/*! For license information please see main.ecda0d8a.js.LICENSE.txt */
(()=>{var e={3:(e,t,r)=>{"use strict";const n=r(6724),{Query:o}=r(4782);e.exports=class extends o{constructor(e){super("exists"),n(e)||(this._queryOpts.field=e)}field(e){return this._queryOpts.field=e,this}}},15:(e,t,r)=>{"use strict";const{inspect:n}=r(2250),{util:{firstDigitPos:o},consts:{REWRITE_METHOD_SET:i}}=r(4782);t.validateRewiteMethod=function(e,t,r){if(!i.has(e)){const s=`${e.substring(0,o(e))}N`;if(!i.has(s))throw console.log(`See ${r}`),console.warn(`Got '${t}' - ${e}`),new Error(`The '${t}' parameter should belong to ${n(i)}`)}}},20:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);function o(e,t){var r,o;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},39:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(4391)},45:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(8587);function o(e,t){if(null==e)return{};var r,o,i=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},75:(e,t,r)=>{"use strict";t.MatchAllQuery=r(7245),t.MatchNoneQuery=r(1164),t.fullTextQueries=r(3622),t.termLevelQueries=r(8928),t.compoundQueries=r(9136),t.joiningQueries=r(5329),t.geoQueries=r(4896),t.specializedQueries=r(8291),t.spanQueries=r(729)},97:(e,t,r)=>{"use strict";var n=r(4994),o=r(6305);t.A=void 0;var i=o(r(5043)),s=(0,n(r(9846)).default)(i.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),"Description");t.A=s},146:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t){return null==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n),t.apply(this,n)}}),(function(){}))}r.d(t,{A:()=>n})},179:(e,t,r)=>{"use strict";const n=r(7090),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-global-aggregation.html";e.exports=class extends n{constructor(e){super(e,"global")}field(){throw console.log(`Please refer ${o}`),new Error("field is not supported in GlobalAggregation")}script(){throw console.log(`Please refer ${o}`),new Error("script is not supported in GlobalAggregation")}}},191:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case p:case a:return e;default:return t}}case n:return t}}}t.vM=u,t.lD=p},219:(e,t,r)=>{"use strict";var n=r(3763),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||o}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(f){var o=h(r);o&&o!==f&&e(t,o,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var a=l(t),m=l(r),g=0;g<s.length;++g){var v=s[g];if(!i[v]&&(!n||!n[v])&&(!m||!m[v])&&(!a||!a[v])){var b=p(r,v);try{u(t,v,b)}catch(y){}}}}return t}},291:(e,t,r)=>{"use strict";const n=r(2254);e.exports=class extends n{constructor(e,t){super(e,"max_bucket","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-max-bucket-aggregation.html",t)}}},299:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(8168),o=r(45),i=r(5043),s=r(643),a=r(8553),l=r(4822),u=i.forwardRef((function(e,t){var r=e.children,a=e.classes,u=e.className,c=e.color,d=void 0===c?"inherit":c,p=e.component,h=void 0===p?"svg":p,f=e.fontSize,m=void 0===f?"medium":f,g=e.htmlColor,v=e.titleAccess,b=e.viewBox,y=void 0===b?"0 0 24 24":b,x=(0,o.A)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(h,(0,n.A)({className:(0,s.A)(a.root,u,"inherit"!==d&&a["color".concat((0,l.A)(d))],"default"!==m&&"medium"!==m&&a["fontSize".concat((0,l.A)(m))]),focusable:"false",viewBox:y,color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},x),r,v?i.createElement("title",null,v):null)}));u.muiName="SvgIcon";const c=(0,a.A)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u)},304:(e,t,r)=>{"use strict";const{Query:n,util:{checkType:o,setDefault:i}}=r(4782),s=r(7090),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-adjacency-matrix-aggregation.html";e.exports=class extends s{constructor(e){super(e,"adjacency_matrix")}field(){throw console.log(`Please refer ${a}`),new Error("field is not supported in AdjacencyMatrixAggregation")}script(){throw console.log(`Please refer ${a}`),new Error("script is not supported in AdjacencyMatrixAggregation")}filter(e,t){return o(t,n),i(this._aggsDef,"filters",{}),this._aggsDef.filters[e]=t,this}filters(e){return o(e,Object),i(this._aggsDef,"filters",{}),Object.assign(this._aggsDef.filters,e),this}separator(e){return this._aggsDef.separator=e,this}}},314:(e,t,r)=>{"use strict";const n=r(6724),{consts:{SMOOTHING_MODEL_SET:o},util:{recursiveToJSON:i,invalidParam:s}}=r(4782),a=r(5129),l=s("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html","smoothing",o);e.exports=class extends a{constructor(e,t,r){super("phrase",e,t,r)}gramSize(e){return this._suggestOpts.gram_size=e,this}realWordErrorLikelihood(e){return this._suggestOpts.real_word_error_likelihood=e,this}confidence(e){return this._suggestOpts.confidence=e,this}maxErrors(e){return this._suggestOpts.max_errors=e,this}separator(e){return this._suggestOpts.separator=e,this}highlight(e,t){return this._suggestOpts.highlight={pre_tag:e,post_tag:t},this}collate(e){return this._suggestOpts.collate=e,this}smoothing(e){n(e)&&l(e);const t=e.toLowerCase();return o.has(t)||l(e),this._suggestOpts.smoothing=t,this}directGenerator(e){return this._suggestOpts.direct_generator=Array.isArray(e)?e:[e],this}toJSON(){return i(this._body)}}},400:(e,t,r)=>{"use strict";const n=r(6724),o=r(7090),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-parent-aggregation.html";e.exports=class extends o{constructor(e,t){super(e,"parent"),n(t)||this.type(t)}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ParentAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ParentAggregation")}type(e){return this._aggsDef.type=e,this}}},408:(e,t,r)=>{"use strict";const n=r(6724),o=r(7090),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohexgrid-aggregation.html";e.exports=class extends o{constructor(e,t){super(e,"geohex_grid",t)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoHexGridAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GeoHexGridAggregation")}precision(e){if(n(e)||e<0||e>15)throw new Error("`precision` can only be value from 0 to 15.");return this._aggsDef.precision=e,this}size(e){return this._aggsDef.size=e,this}shardSize(e){return this._aggsDef.shard_size=e,this}}},430:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),i=r(579);t.A=(0,o.default)((0,i.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},436:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(3145);var o=r(3893),i=r(7800);function s(e){return function(e){if(Array.isArray(e))return(0,n.A)(e)}(e)||(0,o.A)(e)||(0,i.A)(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.")}()}},440:(e,t,r)=>{"use strict";const n=r(1463),o=r(3650),{checkType:i,recursiveToJSON:s}=r(2960);class a{constructor(e,t){if(o(t))throw new Error("Aggregation `aggType` cannot be empty");this._name=e,this.aggType=t,this._aggs={},this._aggsDef=this._aggs[t]={},this._nestedAggs=[]}name(e){return this._name=e,this}aggregation(e){return i(e,a),this._nestedAggs.push(e),this}agg(e){return this.aggregation(e)}aggregations(e){return i(e,Array),e.forEach((e=>this.aggregation(e))),this}aggs(e){return this.aggregations(e)}meta(e){return this._aggs.meta=e,this}_aggsName(){if(!o(this._name))return this._name;if(n(this._aggsDef,"field"))return`agg_${this.aggType}_${this._aggsDef.field}`;throw new Error("Aggregation name could not be determined")}getDSL(){return this.toJSON()}toJSON(){const e=s(this._aggs);return o(this._nestedAggs)||(e.aggs=Object.assign({},...s(this._nestedAggs))),{[this._aggsName()]:e}}}e.exports=a},457:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(7868)},484:(e,t,r)=>{var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Symbol]",s=/^\[object .+?Constructor\]$/,a=/^(?:0|[1-9]\d*)$/,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")();function d(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!==t)return function(e,t,r,n){var o=e.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}(e,m,r);var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function p(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)if(r(t,e[n]))return!0;return!1}function h(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function f(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function m(e){return e!==e}function g(e,t){return e.has(t)}function v(e,t){return function(r){return e(t(r))}}var b=Array.prototype,y=Function.prototype,x=Object.prototype,w=c["__core-js_shared__"],_=function(){var e=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),S=y.toString,A=x.hasOwnProperty,C=x.toString,k=RegExp("^"+S.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=c.Symbol,R=v(Object.getPrototypeOf,Object),j=x.propertyIsEnumerable,O=b.splice,T=E?E.isConcatSpreadable:void 0,I=Object.getOwnPropertySymbols,P=Math.max,N=G(c,"Map"),M=G(Object,"create");function D(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function L(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function F(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function z(e){var t=-1,r=e?e.length:0;for(this.__data__=new F;++t<r;)this.add(e[t])}function B(e,t){var r=ee(e)||Z(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!t&&!A.call(e,i)||o&&("length"==i||X(i,n))||r.push(i);return r}function $(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!==r&&n!==n)return o;return-1}function H(e,t,r,n,o){var i=-1,s=e.length;for(r||(r=J),o||(o=[]);++i<s;){var a=e[i];t>0&&r(a)?t>1?H(a,t-1,r,n,o):f(o,a):n||(o[o.length]=a)}return o}function U(e){if(!ne(e)||(t=e,_&&_ in t))return!1;var t,r=re(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}(e)?k:s;return r.test(function(e){if(null!=e){try{return S.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function W(e){if(!ne(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=function(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||x;return e===r}(e),r=[];for(var n in e)("constructor"!=n||!t&&A.call(e,n))&&r.push(n);return r}function V(e){return function(e,t,r){var n=t(e);return ee(e)?n:f(n,r(e))}(e,ie,K)}function q(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function G(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return U(r)?r:void 0}D.prototype.clear=function(){this.__data__=M?M(null):{}},D.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},D.prototype.get=function(e){var t=this.__data__;if(M){var r=t[e];return r===n?void 0:r}return A.call(t,e)?t[e]:void 0},D.prototype.has=function(e){var t=this.__data__;return M?void 0!==t[e]:A.call(t,e)},D.prototype.set=function(e,t){return this.__data__[e]=M&&void 0===t?n:t,this},L.prototype.clear=function(){this.__data__=[]},L.prototype.delete=function(e){var t=this.__data__,r=$(t,e);return!(r<0)&&(r==t.length-1?t.pop():O.call(t,r,1),!0)},L.prototype.get=function(e){var t=this.__data__,r=$(t,e);return r<0?void 0:t[r][1]},L.prototype.has=function(e){return $(this.__data__,e)>-1},L.prototype.set=function(e,t){var r=this.__data__,n=$(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},F.prototype.clear=function(){this.__data__={hash:new D,map:new(N||L),string:new D}},F.prototype.delete=function(e){return q(this,e).delete(e)},F.prototype.get=function(e){return q(this,e).get(e)},F.prototype.has=function(e){return q(this,e).has(e)},F.prototype.set=function(e,t){return q(this,e).set(e,t),this},z.prototype.add=z.prototype.push=function(e){return this.__data__.set(e,n),this},z.prototype.has=function(e){return this.__data__.has(e)};var Q=I?v(I,Object):ue,K=I?function(e){for(var t=[];e;)f(t,Q(e)),e=R(e);return t}:ue;function J(e){return ee(e)||Z(e)||!!(T&&e&&e[T])}function X(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}function Y(e){if("string"==typeof e||function(e){return"symbol"==typeof e||oe(e)&&C.call(e)==i}(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Z(e){return function(e){return oe(e)&&te(e)}(e)&&A.call(e,"callee")&&(!j.call(e,"callee")||"[object Arguments]"==C.call(e))}var ee=Array.isArray;function te(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!re(e)}function re(e){var t=ne(e)?C.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function ne(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function oe(e){return!!e&&"object"==typeof e}function ie(e){return te(e)?B(e,!0):W(e)}var se,ae,le=(se=function(e,t){return null==e?{}:(t=h(H(t,1),Y),function(e,t){return function(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var s=t[n],a=e[s];r(a,s)&&(i[s]=a)}return i}(e=Object(e),t,(function(t,r){return r in e}))}(e,function(e,t,r,n){var o,i=-1,s=d,a=!0,l=e.length,u=[],c=t.length;if(!l)return u;r&&(t=h(t,(o=r,function(e){return o(e)}))),n?(s=p,a=!1):t.length>=200&&(s=g,a=!1,t=new z(t));e:for(;++i<l;){var f=e[i],m=r?r(f):f;if(f=n||0!==f?f:0,a&&m===m){for(var v=c;v--;)if(t[v]===m)continue e;u.push(f)}else s(t,m,n)||u.push(f)}return u}(V(e),t)))},ae=P(void 0===ae?se.length-1:ae,0),function(){for(var e=arguments,t=-1,r=P(e.length-ae,0),n=Array(r);++t<r;)n[t]=e[ae+t];t=-1;for(var o=Array(ae+1);++t<ae;)o[t]=e[t];return o[ae]=n,function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(se,this,o)});function ue(){return[]}e.exports=le},498:(e,t,r)=>{"use strict";r.d(t,{N:()=>s});var n=r(2284),o={xs:0,sm:600,md:960,lg:1280,xl:1920},i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function s(e,t,r){if(Array.isArray(t)){var o=e.theme.breakpoints||i;return t.reduce((function(e,n,i){return e[o.up(o.keys[i])]=r(t[i]),e}),{})}if("object"===(0,n.A)(t)){var s=e.theme.breakpoints||i;return Object.keys(t).reduce((function(e,n){return e[s.up(n)]=r(t[n]),e}),{})}return r(t)}},555:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),i=r(579);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch")},579:(e,t,r)=>{"use strict";e.exports=r(1153)},589:(e,t,r)=>{"use strict";const n=r(1463),o=r(6724),i=r(3128);e.exports=class extends i{constructor(e,t,r){super(e,r),o(t)||(this._field=t)}field(e){return this._field=e,this}toJSON(){if(!n(this._queryOpts,"query"))throw new Error("Query string is required for full text query!");const e=1===Object.keys(this._queryOpts).length?this._queryOpts.query:this._queryOpts;return{[this.queryType]:{[this._field]:e}}}}},617:(e,t,r)=>{"use strict";r.d(t,{A:()=>pr});var n=r(45),o=r(8168),i=r(5043),s="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};const a="object"===("undefined"===typeof window?"undefined":s(window))&&"object"===("undefined"===typeof document?"undefined":s(document))&&9===document.nodeType;var l=r(2901),u=r(7387),c=r(9417),d=r(8587),p={}.constructor;function h(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(h);if(e.constructor!==p)return e;var t={};for(var r in e)t[r]=h(e[r]);return t}function f(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=h(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var m=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},g=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=m(e[r]," ");else t=m(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function v(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function b(e,t){for(var r="",n=0;n<t;n++)r+="  ";return r+e}function y(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,s=t.fallbacks;!1===r.format&&(i=-1/0);var a=v(r),l=a.linebreak,u=a.space;if(e&&i++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var d=s[c];for(var p in d){var h=d[p];null!=h&&(n&&(n+=l),n+=b(p+":"+u+g(h)+";",i))}}else for(var f in s){var m=s[f];null!=m&&(n&&(n+=l),n+=b(f+":"+u+g(m)+";",i))}for(var y in t){var x=t[y];null!=x&&"fallbacks"!==y&&(n&&(n+=l),n+=b(y+":"+u+g(x)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),b(""+e+u+"{"+n,--i)+b("}",i)):n}var x=/([[\].#*$><+~=|^:(),"'`\s])/g,w="undefined"!==typeof CSS&&CSS.escape,_=function(e){return w?w(e):e.replace(x,"\\$1")},S=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,s=e in this.style;if(i&&!s&&!n)return this;var a=i&&s;if(a?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),A=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,s=n.scoped,a=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==s&&(o.id=l((0,c.A)((0,c.A)(o)),a),o.selectorText="."+_(o.id)),o}(0,u.A)(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!==typeof r?e[t]=r:Array.isArray(r)&&(e[t]=g(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?(0,o.A)({},e,{allowEmpty:!0}):e;return y(this.selectorText,this.style,r)},(0,l.A)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(S),C={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new A(e,t,r)}},k={indent:1,children:!0},E=/@([\w-]+)/,R=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(E);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Y((0,o.A)({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=k);var t=v(e).linebreak;if(null==e.indent&&(e.indent=k.indent),null==e.children&&(e.children=k.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),j=/@container|@media|@supports\s+/,O={onCreateRule:function(e,t,r){return j.test(e)?new R(e,t,r):null}},T={indent:1,children:!0},I=/@keyframes\s+([\w-]+)/,P=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(I);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,s=r.sheet,a=r.generateId;for(var l in this.id=!1===i?this.name:_(a(this,s)),this.rules=new Y((0,o.A)({},r,{parent:this})),t)this.rules.add(l,t[l],(0,o.A)({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=T);var t=v(e).linebreak;if(null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),N=/@keyframes\s+/,M=/\$([\w-]+)/g,D=function(e,t){return"string"===typeof e?e.replace(M,(function(e,r){return r in t?t[r]:e})):e},L=function(e,t,r){var n=e[t],o=D(n,r);o!==n&&(e[t]=o)},F={onCreateRule:function(e,t,r){return"string"===typeof e&&N.test(e)?new P(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&L(e,"animation-name",r.keyframes),"animation"in e&&L(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return D(e,n.keyframes);default:return e}}},z=function(e){function t(){return e.apply(this,arguments)||this}return(0,u.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?(0,o.A)({},e,{allowEmpty:!0}):e;return y(this.key,this.style,r)},t}(S),B={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new z(e,t,r):null}},$=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=v(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=y(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return y(this.at,this.style,e)},e}(),H=/@font-face/,U={onCreateRule:function(e,t,r){return H.test(e)?new $(e,t,r):null}},W=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return y(this.key,this.style,e)},e}(),V={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new W(e,t,r):null}},q=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),G={"@charset":!0,"@import":!0,"@namespace":!0},Q={onCreateRule:function(e,t,r){return e in G?new q(e,t,r):null}},K=[C,O,F,B,U,V,Q],J={process:!0},X={force:!0,process:!0},Y=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,i=n.parent,s=n.sheet,a=n.jss,l=n.Renderer,u=n.generateId,c=n.scoped,d=(0,o.A)({classes:this.classes,parent:i,sheet:s,jss:a,Renderer:l,generateId:u,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(d.selector="."+_(this.classes[p]));var h=f(p,t,d);if(!h)return null;this.register(h);var m=void 0===d.index?this.index.length:d.index;return this.index.splice(m,0,h),h},t.replace=function(e,t,r){var n=this.get(e),i=this.index.indexOf(n);n&&this.remove(n);var s=r;return-1!==i&&(s=(0,o.A)({},r,{index:i})),this.add(e,t,s)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof A?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof P&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof A?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof P&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=J);var o=this.options,i=o.jss.plugins,s=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var a=t.style;if(i.onUpdate(r,t,s,n),n.process&&a&&a!==t.style){for(var l in i.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,X)}for(var c in a){var d=t.style[c],p=a[c];null==d&&d!==p&&t.prop(c,null,X)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=v(e).linebreak,i=0;i<this.index.length;i++){var s=this.index[i].toString(e);(s||n)&&(t&&(t+=o),t+=s)}return t},e}(),Z=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,o.A)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Y(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),ee=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),te=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=(0,d.A)(t,["attached"]),o=v(n).linebreak,i="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=r&&a.attached!==r||(i&&(i+=o),i+=a.toString(n))}return i},(0,l.A)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),re=new te,ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),oe="2f1acc6c3a606b082e5eef5e54414ffb";null==ne[oe]&&(ne[oe]=0);var ie=ne[oe]++,se=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+ie+o+t:i+r.key+"-"+ie+(o?"-"+o:"")+"-"+t}},ae=function(e){var t;return function(){return t||(t=e()),t}},le=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(r){return""}},ue=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=g(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(s){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(r){}},de=function(e,t){return e.selectorText=t,e.selectorText===t},pe=ae((function(){return document.querySelector("head")}));function he(e){var t=re.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"===typeof n){var o=function(e){for(var t=pe(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var fe=ae((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),me=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(n){return!1}return e.cssRules[r]},ge=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},ve=function(){function e(e){this.getPropertyValue=le,this.setProperty=ue,this.removeProperty=ce,this.setSelector=de,this.hasInsertedRules=!1,this.cssRules=[],e&&re.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=fe();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=he(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"===typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else pe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=ge(r,t);if(!1===(o=me(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var s=e.toString();if(!s)return!1;var a=ge(r,t),l=me(r,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof Z&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),be=0,ye=function(){function e(e){this.id=be++,this.version="10.10.0",this.plugins=new ee,this.options={id:{minify:!1},createGenerateId:se,Renderer:a?ve:null,plugins:[]},this.generateId=se({minify:!1});for(var t=0;t<K.length;t++)this.plugins.use(K[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,o.A)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!==typeof r&&(r=0===re.index?0:re.index+1);var n=new Z(e,(0,o.A)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),re.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"===typeof e)return this.createRule(void 0,e,t);var n=(0,o.A)({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var i=f(e,t,n);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),xe=function(e){return new ye(e)},we="object"===typeof CSS&&null!=CSS&&"number"in CSS;function _e(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=_e(n);i&&(t||(t={}),t[r]=i)}}return t}xe();var Se=r(1560),Ae={set:function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},get:function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},delete:function(e,t,r){e.get(t).delete(r)}};const Ce=Ae;var ke=r(9484);const Ee="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var Re=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var je=Date.now(),Oe="fnValues"+je,Te="fnStyle"+ ++je;const Ie=function(){return{onCreateRule:function(e,t,r){if("function"!==typeof t)return null;var n=f(e,{},r);return n[Te]=t,n},onProcessStyle:function(e,t){if(Oe in t||Te in t)return e;var r={};for(var n in e){var o=e[n];"function"===typeof o&&(delete e[n],r[n]=o)}return t[Oe]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Te];i&&(o.style=i(e)||{});var s=o[Oe];if(s)for(var a in s)o.prop(a,s[a](e),n)}}};var Pe="@global",Ne="@global ",Me=function(){function e(e,t,r){for(var n in this.type="global",this.at=Pe,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Y((0,o.A)({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),De=function(){function e(e,t,r){this.type="global",this.at=Pe,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,(0,o.A)({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Le=/\s*,\s*/g;function Fe(e,t){for(var r=e.split(Le),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}const ze=function(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Pe)return new Me(e,t,r);if("@"===e[0]&&e.substr(0,8)===Ne)return new De(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,i=n?n[Pe]:null;if(i){for(var s in i)t.addRule(s,i[s],(0,o.A)({},r,{selector:Fe(s,e.selector)}));delete n[Pe]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var i in n)if("@"===i[0]&&i.substr(0,7)===Pe){var s=Fe(i.substr(7),e.selector);t.addRule(s,n[i],(0,o.A)({},r,{selector:s})),delete n[i]}}(e,t))}}};var Be=/\s*,\s*/g,$e=/&/g,He=/\$([\w-]+)/g;const Ue=function(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(Be),n=e.split(Be),o="",i=0;i<r.length;i++)for(var s=r[i],a=0;a<n.length;a++){var l=n[a];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace($e,s):s+" "+l}return o}function r(e,t,r){if(r)return(0,o.A)({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=(0,o.A)({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,s){if("style"!==i.type)return n;var a,l,u=i,c=u.options.parent;for(var d in n){var p=-1!==d.indexOf("&"),h="@"===d[0];if(p||h){if(a=r(u,c,a),p){var f=t(d,u.selector);l||(l=e(c,s)),f=f.replace(He,l);var m=u.key+"-"+d;"replaceRule"in c?c.replaceRule(m,n[d],(0,o.A)({},a,{selector:f})):c.addRule(m,n[d],(0,o.A)({},a,{selector:f}))}else h&&c.addRule(d,{},a).addRule(u.key,n[d],{selector:u.selector});delete n[d]}}return n}}};var We=/[A-Z]/g,Ve=/^ms-/,qe={};function Ge(e){return"-"+e.toLowerCase()}const Qe=function(e){if(qe.hasOwnProperty(e))return qe[e];var t=e.replace(We,Ge);return qe[e]=Ve.test(t)?"-"+t:t};function Ke(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Qe(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ke):t.fallbacks=Ke(e.fallbacks)),t}const Je=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ke(e[t]);return e}return Ke(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Qe(t);return t===n?e:(r.prop(n,e),null)}}};var Xe=we&&CSS?CSS.px:"px",Ye=we&&CSS?CSS.ms:"ms",Ze=we&&CSS?CSS.percent:"%";function et(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var tt=et({"animation-delay":Ye,"animation-duration":Ye,"background-position":Xe,"background-position-x":Xe,"background-position-y":Xe,"background-size":Xe,border:Xe,"border-bottom":Xe,"border-bottom-left-radius":Xe,"border-bottom-right-radius":Xe,"border-bottom-width":Xe,"border-left":Xe,"border-left-width":Xe,"border-radius":Xe,"border-right":Xe,"border-right-width":Xe,"border-top":Xe,"border-top-left-radius":Xe,"border-top-right-radius":Xe,"border-top-width":Xe,"border-width":Xe,"border-block":Xe,"border-block-end":Xe,"border-block-end-width":Xe,"border-block-start":Xe,"border-block-start-width":Xe,"border-block-width":Xe,"border-inline":Xe,"border-inline-end":Xe,"border-inline-end-width":Xe,"border-inline-start":Xe,"border-inline-start-width":Xe,"border-inline-width":Xe,"border-start-start-radius":Xe,"border-start-end-radius":Xe,"border-end-start-radius":Xe,"border-end-end-radius":Xe,margin:Xe,"margin-bottom":Xe,"margin-left":Xe,"margin-right":Xe,"margin-top":Xe,"margin-block":Xe,"margin-block-end":Xe,"margin-block-start":Xe,"margin-inline":Xe,"margin-inline-end":Xe,"margin-inline-start":Xe,padding:Xe,"padding-bottom":Xe,"padding-left":Xe,"padding-right":Xe,"padding-top":Xe,"padding-block":Xe,"padding-block-end":Xe,"padding-block-start":Xe,"padding-inline":Xe,"padding-inline-end":Xe,"padding-inline-start":Xe,"mask-position-x":Xe,"mask-position-y":Xe,"mask-size":Xe,height:Xe,width:Xe,"min-height":Xe,"max-height":Xe,"min-width":Xe,"max-width":Xe,bottom:Xe,left:Xe,top:Xe,right:Xe,inset:Xe,"inset-block":Xe,"inset-block-end":Xe,"inset-block-start":Xe,"inset-inline":Xe,"inset-inline-end":Xe,"inset-inline-start":Xe,"box-shadow":Xe,"text-shadow":Xe,"column-gap":Xe,"column-rule":Xe,"column-rule-width":Xe,"column-width":Xe,"font-size":Xe,"font-size-delta":Xe,"letter-spacing":Xe,"text-decoration-thickness":Xe,"text-indent":Xe,"text-stroke":Xe,"text-stroke-width":Xe,"word-spacing":Xe,motion:Xe,"motion-offset":Xe,outline:Xe,"outline-offset":Xe,"outline-width":Xe,perspective:Xe,"perspective-origin-x":Ze,"perspective-origin-y":Ze,"transform-origin":Ze,"transform-origin-x":Ze,"transform-origin-y":Ze,"transform-origin-z":Ze,"transition-delay":Ye,"transition-duration":Ye,"vertical-align":Xe,"flex-basis":Xe,"shape-margin":Xe,size:Xe,gap:Xe,grid:Xe,"grid-gap":Xe,"row-gap":Xe,"grid-row-gap":Xe,"grid-column-gap":Xe,"grid-template-rows":Xe,"grid-template-columns":Xe,"grid-auto-rows":Xe,"grid-auto-columns":Xe,"box-shadow-x":Xe,"box-shadow-y":Xe,"box-shadow-blur":Xe,"box-shadow-spread":Xe,"font-line-height":Xe,"text-shadow-x":Xe,"text-shadow-y":Xe,"text-shadow-blur":Xe});function rt(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=rt(e,t[n],r);else if("object"===typeof t)if("fallbacks"===e)for(var o in t)t[o]=rt(o,t[o],r);else for(var i in t)t[i]=rt(e+"-"+i,t[i],r);else if("number"===typeof t&&!1===isNaN(t)){var s=r[e]||tt[e];return!s||0===t&&s===Xe?t.toString():"function"===typeof s?s(t).toString():""+t+s}return t}const nt=function(e){void 0===e&&(e={});var t=et(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=rt(n,e[n],t);return e},onChangeValue:function(e,r){return rt(r,e,t)}}};var ot=r(436),it="",st="",at="",lt="",ut=a&&"ontouchstart"in document.documentElement;if(a){var ct={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},dt=document.createElement("p").style;for(var pt in ct)if(pt+"Transform"in dt){it=pt,st=ct[pt];break}"Webkit"===it&&"msHyphens"in dt&&(it="ms",st=ct.ms,lt="edge"),"Webkit"===it&&"-apple-trailing-word"in dt&&(at="apple")}var ht=it,ft=st,mt=at,gt=lt,vt=ut;var bt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ht?"-webkit-"+e:ft+e)}},yt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ht?ft+"print-"+e:e)}},xt=/[-\s]+(.)?/g;function wt(e,t){return t?t.toUpperCase():""}function _t(e){return e.replace(xt,wt)}function St(e){return _t("-"+e)}var At,Ct={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ht){var r="mask-image";if(_t(r)in t)return e;if(ht+St(r)in t)return ft+e}return e}},kt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==mt||vt?e:ft+e)}},Et={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:ft+e)}},Rt={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:ft+e)}},jt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ht||"ms"===ht&&"edge"!==gt?ft+e:e)}},Ot={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ht||"ms"===ht||"apple"===mt?ft+e:e)}},Tt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ht?"WebkitColumn"+St(e)in t&&ft+"column-"+e:"Moz"===ht&&("page"+St(e)in t&&"page-"+e))}},It={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ht)return e;var r=e.replace("-inline","");return ht+St(r)in t&&ft+r}},Pt={supportedProperty:function(e,t){return _t(e)in t&&e}},Nt={supportedProperty:function(e,t){var r=St(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ht+r in t?ft+e:"Webkit"!==ht&&"Webkit"+r in t&&"-webkit-"+e}},Mt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ht?""+ft+e:e)}},Dt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ht?ft+"scroll-chaining":e)}},Lt={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Ft={supportedProperty:function(e,t){var r=Lt[e];return!!r&&(ht+St(r)in t&&ft+r)}},zt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Bt=Object.keys(zt),$t=function(e){return ft+e},Ht={supportedProperty:function(e,t,r){var n=r.multiple;if(Bt.indexOf(e)>-1){var o=zt[e];if(!Array.isArray(o))return ht+St(o)in t&&ft+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(ht+St(o[0])in t))return!1;return o.map($t)}return!1}},Ut=[bt,yt,Ct,kt,Et,Rt,jt,Ot,Tt,It,Pt,Nt,Mt,Dt,Ft,Ht],Wt=Ut.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Vt=Ut.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,ot.A)(t.noPrefill)),e}),[]),qt={};if(a){At=document.createElement("p");var Gt=window.getComputedStyle(document.documentElement,"");for(var Qt in Gt)isNaN(Qt)||(qt[Gt[Qt]]=Gt[Qt]);Vt.forEach((function(e){return delete qt[e]}))}function Kt(e,t){if(void 0===t&&(t={}),!At)return e;if(null!=qt[e])return qt[e];"transition"!==e&&"transform"!==e||(t[e]=e in At.style);for(var r=0;r<Wt.length&&(qt[e]=Wt[r](e,At.style,t),!qt[e]);r++);try{At.style[e]=""}catch(n){return!1}return qt[e]}var Jt,Xt={},Yt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Zt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function er(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Kt(t):", "+Kt(r);return n||(t||r)}function tr(e,t){var r=t;if(!Jt||"content"===e)return t;if("string"!==typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Xt[n])return Xt[n];try{Jt.style[e]=r}catch(o){return Xt[n]=!1,!1}if(Yt[e])r=r.replace(Zt,er);else if(""===Jt.style[e]&&("-ms-flex"===(r=ft+r)&&(Jt.style[e]="-ms-flexbox"),Jt.style[e]=r,""===Jt.style[e]))return Xt[n]=!1,!1;return Jt.style[e]="",Xt[n]=r,Xt[n]}a&&(Jt=document.createElement("p"));const rr=function(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=Kt(r);i&&i!==r&&(o=!0);var s=!1,a=tr(i,g(n));a&&a!==n&&(s=!0),(o||s)&&(o&&delete t[r],t[i||r]=a||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===ht?e:"@"+ft+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return tr(t,g(e))||e}}};const nr=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}};var or=xe({plugins:[Ie(),ze(),Ue(),Je(),nt(),"undefined"===typeof window?null:rr(),nr()]}),ir=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,s=void 0===i?"":i,a=""===s?"":"".concat(s,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==Re.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(a).concat(n,"-").concat(e.key);return t.options.theme[Ee]&&""===s?"".concat(i,"-").concat(u()):i}return"".concat(a).concat(o).concat(u())}}(),sr={disableGeneration:!1,generateClassName:ir,jss:or,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},ar=i.createContext(sr);var lr=-1e9;var ur=r(3806);const cr={};function dr(e,t){var r=e.state,n=e.theme,i=e.stylesOptions,s=e.stylesCreator,a=e.name;if(!i.disableGeneration){var l=Ce.get(i.sheetsManager,s,n);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Ce.set(i.sheetsManager,s,n,l));var u=(0,o.A)({},s.options,i,{theme:n,flip:"boolean"===typeof i.flip?i.flip:"rtl"===n.direction});u.generateId=u.serverGenerateClassName||u.generateClassName;var c=i.sheetsRegistry;if(0===l.refs){var d;i.sheetsCache&&(d=Ce.get(i.sheetsCache,s,n));var p=s.create(n,a);d||((d=i.jss.createStyleSheet(p,(0,o.A)({link:!1},u))).attach(),i.sheetsCache&&Ce.set(i.sheetsCache,s,n,d)),c&&c.add(d),l.staticSheet=d,l.dynamicStyles=_e(p)}if(l.dynamicStyles){var h=i.jss.createStyleSheet(l.dynamicStyles,(0,o.A)({link:!0},u));h.update(t),h.attach(),r.dynamicSheet=h,r.classes=(0,Se.A)({baseClasses:l.staticSheet.classes,newClasses:h.classes}),c&&c.add(h)}else r.classes=l.staticSheet.classes;l.refs+=1}}function pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,s=t.classNamePrefix,a=t.Component,l=t.defaultTheme,u=void 0===l?cr:l,c=(0,n.A)(t,["name","classNamePrefix","Component","defaultTheme"]),d=function(e){var t="function"===typeof e;return{create:function(r,n){var i;try{i=t?e(r):e}catch(l){throw l}if(!n||!r.overrides||!r.overrides[n])return i;var s=r.overrides[n],a=(0,o.A)({},i);return Object.keys(s).forEach((function(e){a[e]=(0,ur.A)(a[e],s[e])})),a},options:{}}}(e),p=r||s||"makeStyles";d.options={index:lr+=1,name:r,meta:p,classNamePrefix:p};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,ke.A)()||u,n=(0,o.A)({},i.useContext(ar),c),s=i.useRef(),l=i.useRef();!function(e,t){var r,n=i.useRef([]),o=i.useMemo((function(){return{}}),t);n.current!==o&&(n.current=o,r=e()),i.useEffect((function(){return function(){r&&r()}}),[o])}((function(){var o={name:r,state:{},stylesCreator:d,stylesOptions:n,theme:t};return dr(o,e),l.current=!1,s.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=Ce.get(n.sheetsManager,o,r);i.refs-=1;var s=n.sheetsRegistry;0===i.refs&&(Ce.delete(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),s&&s.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),s&&s.remove(t.dynamicSheet))}}(o)}}),[t,d]),i.useEffect((function(){l.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(s.current,e),l.current=!0}));var p=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=(0,Se.A)({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(s.current,e.classes,a);return p}}},643:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}r.d(t,{A:()=>o});const o=function(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}},672:(e,t,r)=>{"use strict";var n=r(6267),o=r(6973),i=r(8938),s=r(6438);var a=function e(t){var r=new i(t),a=o(i.prototype.request,r);return n.extend(a,i.prototype,r),n.extend(a,r),a.create=function(r){return e(s(t,r))},a}(r(1550));a.Axios=i,a.Cancel=r(5299),a.CancelToken=r(7690),a.isCancel=r(7767),a.VERSION=r(3104).version,a.all=function(e){return Promise.all(e)},a.spread=r(8125),a.isAxiosError=r(8738),e.exports=a,e.exports.default=a},705:(e,t,r)=>{"use strict";var n=r(6267);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},729:(e,t,r)=>{"use strict";t.SpanLittleBigQueryBase=r(6764),t.SpanTermQuery=r(7661),t.SpanMultiTermQuery=r(3389),t.SpanFirstQuery=r(9831),t.SpanNearQuery=r(2781),t.SpanOrQuery=r(1226),t.SpanNotQuery=r(6296),t.SpanContainingQuery=r(9275),t.SpanWithinQuery=r(7600),t.SpanFieldMaskingQuery=r(1640)},768:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5043),o=r(9189);function i(e,t){return n.useMemo((function(){return null==e&&null==t?null:function(r){(0,o.A)(e,r),(0,o.A)(t,r)}}),[e,t])}},816:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2284);function o(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},840:(e,t,r)=>{var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,l=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,h="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,f="object"==typeof self&&self&&self.Object===Object&&self,m=h||f||Function("return this")();var g=Array.prototype,v=Function.prototype,b=Object.prototype,y=m["__core-js_shared__"],x=function(){var e=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),w=v.toString,_=b.hasOwnProperty,S=b.toString,A=RegExp("^"+w.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=m.Symbol,k=b.propertyIsEnumerable,E=g.splice,R=z(m,"Map"),j=z(Object,"create"),O=C?C.prototype:void 0,T=O?O.toString:void 0;function I(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function P(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function N(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function M(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!==r&&n!==n)return o;return-1}function D(e,t){return null!=e&&t in Object(e)}function L(e){if(!G(e)||(t=e,x&&x in t))return!1;var t,r=V(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}(e)?A:d;return r.test(function(e){if(null!=e){try{return w.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function F(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function z(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return L(r)?r:void 0}function B(e,t,r){var n;t=function(e,t){if(W(e))return!1;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||K(e))return!0;return a.test(e)||!s.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:W(n=t)?n:$(n);for(var l,u=-1,c=t.length;++u<c;){var d=H(t[u]);if(!(l=null!=e&&r(e,d)))break;e=e[d]}return l||!!(c=e?e.length:0)&&q(c)&&function(e,t){return t=null==t?o:t,!!t&&("number"==typeof e||p.test(e))&&e>-1&&e%1==0&&e<t}(d,c)&&(W(e)||function(e){return function(e){return Q(e)&&function(e){return null!=e&&q(e.length)&&!V(e)}(e)}(e)&&_.call(e,"callee")&&(!k.call(e,"callee")||S.call(e)==i)}(e))}I.prototype.clear=function(){this.__data__=j?j(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(j){var r=t[e];return r===n?void 0:r}return _.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return j?void 0!==t[e]:_.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=j&&void 0===t?n:t,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(e){var t=this.__data__,r=M(t,e);return!(r<0)&&(r==t.length-1?t.pop():E.call(t,r,1),!0)},P.prototype.get=function(e){var t=this.__data__,r=M(t,e);return r<0?void 0:t[r][1]},P.prototype.has=function(e){return M(this.__data__,e)>-1},P.prototype.set=function(e,t){var r=this.__data__,n=M(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},N.prototype.clear=function(){this.__data__={hash:new I,map:new(R||P),string:new I}},N.prototype.delete=function(e){return F(this,e).delete(e)},N.prototype.get=function(e){return F(this,e).get(e)},N.prototype.has=function(e){return F(this,e).has(e)},N.prototype.set=function(e,t){return F(this,e).set(e,t),this};var $=U((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(K(e))return T?T.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return l.test(e)&&r.push(""),e.replace(u,(function(e,t,n,o){r.push(n?o.replace(c,"$1"):t||e)})),r}));function H(e){if("string"==typeof e||K(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function U(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s),s};return r.cache=new(U.Cache||N),r}U.Cache=N;var W=Array.isArray;function V(e){var t=G(e)?S.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function q(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function G(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Q(e){return!!e&&"object"==typeof e}function K(e){return"symbol"==typeof e||Q(e)&&"[object Symbol]"==S.call(e)}e.exports=function(e,t){return null!=e&&B(e,t,D)}},854:(e,t,r)=>{e.exports=r(672)},861:(e,t,r)=>{"use strict";const{util:{checkType:n}}=r(4782),o=r(8417),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significanttext-aggregation.html";e.exports=class extends o{constructor(e,t){super(e,"significant_text",i,t)}filterDuplicateText(e){return this._aggsDef.filter_duplicate_text=e,this}sourceFields(e){return n(e,Array),this._aggsDef.source_fields=e,this}missing(){throw console.log(`Please refer ${i}`),new Error("missing is not supported in SignificantTextAggregation")}executionHint(){throw console.log(`Please refer ${i}`),new Error("executionHint is not supported in SignificantTextAggregation")}}},869:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(5043);var n=r(3290),o=r(579);function i(e){const{styles:t,defaultTheme:r={}}=e,i="function"===typeof t?e=>{return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,o.jsx)(n.mL,{styles:i})}},918:(e,t,r)=>{"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},938:(e,t,r)=>{"use strict";var n=r(9478);e.exports=function(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},950:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(3468).A},979:(e,t,r)=>{"use strict";const n=r(6724),{Query:o}=r(4782);e.exports=class extends o{constructor(e){super("type"),n(e)||(this._queryOpts.value=e)}value(e){return this._queryOpts.value=e,this}type(e){return this.value(e)}}},1023:(e,t,r)=>{"use strict";const n=r(3650),{util:{checkType:o}}=r(4782),i=r(7090),s=Object.prototype.hasOwnProperty;e.exports=class extends i{constructor(e,t,r){super(e,t,r),this._rangeRequiredKeys=["from","to"],this._aggsDef.ranges=[]}format(e){return this._aggsDef.format=e,this}range(e){if(o(e,Object),!this._rangeRequiredKeys.some(s,e))throw new Error(`Invalid Range! Range must have at least one of ${this._rangeRequiredKeys}`);return this._aggsDef.ranges.push(e),this}ranges(e){return o(e,Array),e.forEach((e=>this.range(e))),this}missing(e){return this._aggsDef.missing=e,this}keyed(e){return this._aggsDef.keyed=e,this}toJSON(){if(n(this._aggsDef.ranges))throw new Error("`ranges` cannot be empty.");return super.toJSON()}}},1051:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);function o(e){var t=e.controlled,r=e.default,o=(e.name,e.state,n.useRef(void 0!==t).current),i=n.useState(r),s=i[0],a=i[1];return[o?t:s,n.useCallback((function(e){o||a(e)}),[])]}},1052:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);function o(e){let{controlled:t,default:r,name:o,state:i="value"}=e;const{current:s}=n.useRef(void 0!==t),[a,l]=n.useState(r);return[s?t:a,n.useCallback((e=>{s||l(e)}),[])]}},1107:(e,t,r)=>{"use strict";const n=r(6724),{GeoPoint:o,util:{checkType:i,setDefault:s}}=r(4782),a=r(7090),l="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geotilegrid-aggregation.html";e.exports=class extends a{constructor(e,t){super(e,"geotile_grid",t)}format(){throw console.log(`Please refer ${l}`),new Error("format is not supported in GeoTileGridAggregation")}script(){throw console.log(`Please refer ${l}`),new Error("script is not supported in GeoTileGridAggregation")}precision(e){if(n(e)||e<0||e>29)throw new Error("`precision` can only be value from 0 to 29.");return this._aggsDef.precision=e,this}size(e){return this._aggsDef.size=e,this}shardSize(e){return this._aggsDef.shard_size=e,this}topLeft(e){return i(e,o),s(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_left=e,this}bottomRight(e){return i(e,o),s(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_right=e,this}topRight(e){return i(e,o),s(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_right=e,this}bottomLeft(e){return i(e,o),s(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_left=e,this}top(e){return s(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top=e,this}left(e){return s(this._aggsDef,"bounds",{}),this._aggsDef.bounds.left=e,this}bottom(e){return s(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom=e,this}right(e){return s(this._aggsDef,"bounds",{}),this._aggsDef.bounds.right=e,this}}},1109:(e,t,r)=>{"use strict";const n=r(2607);e.exports=class extends n{constructor(e,t){super("term",e,t)}}},1127:(e,t,r)=>{"use strict";const n=r(6724),o=["boolean","composite","date","double","geo_point","ip","keyword","long","lookup"];e.exports=class{constructor(e,t){this._body={},this._isTypeSet=!1,this._isScriptSet=!1,n(e)||this.type(e),n(t)||this.script(t)}script(e){return this._body.script={source:e},this._isScriptSet=!0,this}type(e){const t=e.toLowerCase();if(!o.includes(t))throw new Error(`\`type\` must be one of ${o.join(", ")}`);return this._body.type=t,this._isTypeSet=!0,this}lang(e){return n(this._body.script)||(this._body.script.lang=e),this}params(e){return n(this._body.script)||(this._body.script.params=e),this}toJSON(){if(!this._isTypeSet)throw new Error("`type` should be set");if(!this._isScriptSet)throw new Error("`script` should be set");return this._body}}},1132:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),i=r(579);t.A=(0,o.default)((0,i.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download")},1138:(e,t,r)=>{"use strict";const n=r(6724),{util:{checkType:o}}=r(4782),{Query:i}=r(4782);e.exports=class extends i{constructor(e,t){super("terms"),this._isTermsLookup=!1,this._termsLookupOpts={},this._values=[],n(e)||(this._field=e),n(t)||(Array.isArray(t)?this.values(t):this.value(t))}_setTermsLookupOpt(e,t){this._isTermsLookup=!0,this._termsLookupOpts[e]=t}field(e){return this._field=e,this}value(e){return this._values.push(e),this}values(e){return o(e,Array),this._values=this._values.concat(e),this}termsLookup(e){return o(e,Object),this._isTermsLookup=!0,Object.assign(this._termsLookupOpts,e),this}index(e){return this._setTermsLookupOpt("index",e),this}type(e){return this._setTermsLookupOpt("type",e),this}id(e){return this._setTermsLookupOpt("id",e),this}path(e){return this._setTermsLookupOpt("path",e),this}routing(e){return this._setTermsLookupOpt("routing",e),this}toJSON(){return{[this.queryType]:Object.assign({},this._queryOpts,{[this._field]:this._isTermsLookup?this._termsLookupOpts:this._values})}}}},1153:(e,t,r)=>{"use strict";r(2123);var n=r(5043),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.jsx=u,t.jsxs=u},1164:(e,t,r)=>{"use strict";const{Query:n}=r(4782);e.exports=class extends n{constructor(){super("match_none")}}},1188:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,r))}},1226:(e,t,r)=>{"use strict";const{util:{checkType:n}}=r(4782),o=r(3420);e.exports=class extends o{constructor(){super("span_or")}clauses(e){return n(e,Array),e.forEach((e=>n(e,o))),this._queryOpts.clauses=e,this}}},1248:(e,t,r)=>{"use strict";const n=r(6724),{GeoPoint:o,util:{checkType:i,invalidParam:s}}=r(4782),a=r(2668),l=s("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html","distance_type","'plane' or 'arc'");e.exports=class extends a{constructor(e,t){super("geo_distance",e),n(t)||this.geoPoint(t)}distance(e){return this._queryOpts.distance=e,this}distanceType(e){n(e)&&l(e);const t=e.toLowerCase();return"plane"!==t&&"arc"!==t&&l(e),this._queryOpts.distance_type=t,this}geoPoint(e){return i(e,o),this._fieldOpts=e,this}}},1250:(e,t,r)=>{"use strict";const{Script:n}=r(4782),o=r(7846),i=r(6724),s="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-weight-avg-aggregation.html";e.exports=class extends o{constructor(e,t,r){super(e,"weighted_avg"),this._aggsDef.value={},this._aggsDef.weight={},i(t)||this.value(t),i(r)||this.weight(r)}value(e,t){if("string"!==typeof e&&!(e instanceof n))throw new TypeError("Value must be either a string or instanceof Script");return e instanceof n?(this._aggsDef.value.field&&delete this._aggsDef.value.field,this._aggsDef.value.script=e):(this._aggsDef.value.script&&delete this._aggsDef.value.script,this._aggsDef.value.field=e),i(t)||(this._aggsDef.value.missing=t),this}weight(e,t){if("string"!==typeof e&&!(e instanceof n))throw new TypeError("Weight must be either a string or instanceof Script");return e instanceof n?(this._aggsDef.weight.field&&delete this._aggsDef.weight.field,this._aggsDef.weight.script=e):(this._aggsDef.weight.script&&delete this._aggsDef.weight.script,this._aggsDef.weight.field=e),i(t)||(this._aggsDef.weight.missing=t),this}script(){throw console.log(`Please refer ${s}`),new Error("script is not supported in WeightedAverageAggregation")}missing(){throw console.log(`Please refer ${s}`),new Error("missing is not supported in WeightedAverageAggregation")}field(){throw console.log(`Please refer ${s}`),new Error("field is not supported in WeightedAverageAggregation")}}},1295:(e,t,r)=>{"use strict";const n=r(6724),{Query:o,util:{checkType:i}}=r(4782);e.exports=class extends o{constructor(e,t){super("ids"),n(e)||(this._queryOpts.type=e),n(t)||this.values(t)}type(e){return this._queryOpts.type=e,this}values(e){return i(e,Array),this._queryOpts.values=e,this}ids(e){return this.values(e)}}},1337:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),i=r(579);t.A=(0,o.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},1439:(e,t,r)=>{"use strict";t.PipelineAggregationBase=r(2254),t.AvgBucketAggregation=r(6321),t.DerivativeAggregation=r(6213),t.MaxBucketAggregation=r(291),t.MinBucketAggregation=r(9957),t.SumBucketAggregation=r(5152),t.StatsBucketAggregation=r(8296),t.ExtendedStatsBucketAggregation=r(7716),t.PercentilesBucketAggregation=r(9265),t.MovingAverageAggregation=r(3512),t.MovingFunctionAggregation=r(6969),t.CumulativeSumAggregation=r(3945),t.BucketScriptAggregation=r(8022),t.BucketSelectorAggregation=r(3292),t.SerialDifferencingAggregation=r(2191),t.BucketSortAggregation=r(3897)},1463:(e,t,r)=>{var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,l=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,h="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,f="object"==typeof self&&self&&self.Object===Object&&self,m=h||f||Function("return this")();var g=Array.prototype,v=Function.prototype,b=Object.prototype,y=m["__core-js_shared__"],x=function(){var e=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),w=v.toString,_=b.hasOwnProperty,S=b.toString,A=RegExp("^"+w.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=m.Symbol,k=b.propertyIsEnumerable,E=g.splice,R=z(m,"Map"),j=z(Object,"create"),O=C?C.prototype:void 0,T=O?O.toString:void 0;function I(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function P(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function N(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function M(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!==r&&n!==n)return o;return-1}function D(e,t){return null!=e&&_.call(e,t)}function L(e){if(!G(e)||(t=e,x&&x in t))return!1;var t,r=V(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}(e)?A:d;return r.test(function(e){if(null!=e){try{return w.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function F(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function z(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return L(r)?r:void 0}function B(e,t,r){var n;t=function(e,t){if(W(e))return!1;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||K(e))return!0;return a.test(e)||!s.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:W(n=t)?n:$(n);for(var l,u=-1,c=t.length;++u<c;){var d=H(t[u]);if(!(l=null!=e&&r(e,d)))break;e=e[d]}return l||!!(c=e?e.length:0)&&q(c)&&function(e,t){return t=null==t?o:t,!!t&&("number"==typeof e||p.test(e))&&e>-1&&e%1==0&&e<t}(d,c)&&(W(e)||function(e){return function(e){return Q(e)&&function(e){return null!=e&&q(e.length)&&!V(e)}(e)}(e)&&_.call(e,"callee")&&(!k.call(e,"callee")||S.call(e)==i)}(e))}I.prototype.clear=function(){this.__data__=j?j(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(j){var r=t[e];return r===n?void 0:r}return _.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return j?void 0!==t[e]:_.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=j&&void 0===t?n:t,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(e){var t=this.__data__,r=M(t,e);return!(r<0)&&(r==t.length-1?t.pop():E.call(t,r,1),!0)},P.prototype.get=function(e){var t=this.__data__,r=M(t,e);return r<0?void 0:t[r][1]},P.prototype.has=function(e){return M(this.__data__,e)>-1},P.prototype.set=function(e,t){var r=this.__data__,n=M(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},N.prototype.clear=function(){this.__data__={hash:new I,map:new(R||P),string:new I}},N.prototype.delete=function(e){return F(this,e).delete(e)},N.prototype.get=function(e){return F(this,e).get(e)},N.prototype.has=function(e){return F(this,e).has(e)},N.prototype.set=function(e,t){return F(this,e).set(e,t),this};var $=U((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(K(e))return T?T.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return l.test(e)&&r.push(""),e.replace(u,(function(e,t,n,o){r.push(n?o.replace(c,"$1"):t||e)})),r}));function H(e){if("string"==typeof e||K(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function U(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s),s};return r.cache=new(U.Cache||N),r}U.Cache=N;var W=Array.isArray;function V(e){var t=G(e)?S.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function q(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function G(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Q(e){return!!e&&"object"==typeof e}function K(e){return"symbol"==typeof e||Q(e)&&"[object Symbol]"==S.call(e)}e.exports=function(e,t){return null!=e&&B(e,t,D)}},1475:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(7123);const o=e=>(0,n.A)(e)&&"classes"!==e},1478:(e,t,r)=>{"use strict";const n=r(7846),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html";e.exports=class extends n{constructor(e){super(e,"scripted_metric")}field(){throw console.log(`Please refer ${o}`),new Error("field is not supported in ScriptedMetricAggregation")}script(){throw console.log(`Please refer ${o}`),new Error("script is not supported in ScriptedMetricAggregation")}missing(){throw console.log(`Please refer ${o}`),new Error("missing is not supported in ScriptedMetricAggregation")}initScript(e){return this._aggsDef.init_script=e,this}mapScript(e){return this._aggsDef.map_script=e,this}combineScript(e){return this._aggsDef.combine_script=e,this}reduceScript(e){return this._aggsDef.reduce_script=e,this}params(e){return this._aggsDef.params=e,this}}},1497:(e,t,r)=>{"use strict";var n=r(3218);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){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:i,resetWarningCache:o};return r.PropTypes=r,r}},1523:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},1529:(e,t,r)=>{"use strict";const n=r(1463),{Query:o,util:{checkType:i}}=r(4782);e.exports=class extends o{constructor(){super("more_like_this")}_setSearchClause(e,t){Array.isArray(t)?this._queryOpts[e]=t:n(this._queryOpts,e)?(Array.isArray(this._queryOpts[e])||(this._queryOpts[e]=[this._queryOpts[e]]),this._queryOpts[e].push(t)):this._queryOpts[e]=t}fields(e){return i(e,Array),this._queryOpts.fields=e,this}like(e){return this._setSearchClause("like",e),this}unlike(e){return this._setSearchClause("unlike",e),this}likeText(e){return this._queryOpts.like_text=e,this}ids(e){return i(e,Array),this._queryOpts.ids=e,this}docs(e){return i(e,Array),this._queryOpts.docs=e,this}maxQueryTerms(e){return this._queryOpts.max_query_terms=e,this}minTermFreq(e){return this._queryOpts.min_term_freq=e,this}minDocFreq(e){return this._queryOpts.min_doc_freq=e,this}maxDocFreq(e){return this._queryOpts.max_doc_freq=e,this}minWordLength(e){return this._queryOpts.min_word_length=e,this}maxWordLength(e){return this._queryOpts.max_word_length=e,this}stopWords(e){return this._queryOpts.stop_words=e,this}analyzer(e){return this._queryOpts.analyzer=e,this}minimumShouldMatch(e){return this._queryOpts.minimum_should_match=e,this}boostTerms(e){return this._queryOpts.boost_terms=e,this}include(e){return this._queryOpts.include=e,this}}},1550:(e,t,r)=>{"use strict";var n=r(6267),o=r(2121),i=r(9478),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=r(1989)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw i(a,this,"E_JSON_PARSE");throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(s)})),e.exports=l},1560:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(8168);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;e.Component;if(!r)return t;var o=(0,n.A)({},t);return Object.keys(r).forEach((function(e){r[e]&&(o[e]="".concat(t[e]," ").concat(r[e]))})),o}},1571:(e,t,r)=>{"use strict";const n=r(6724),o=r(5286),{checkType:i,invalidParam:s,recursiveToJSON:a}=r(2960),{RESCORE_MODE_SET:l}=r(6912),u=s("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-rescore.html","score_mode",l);e.exports=class{constructor(e,t){this._body={},this._rescoreOpts=this._body.query={},n(e)||(this._body.window_size=e),n(t)||this.rescoreQuery(t)}windowSize(e){return this._body.window_size=e,this}rescoreQuery(e){return i(e,o),this._rescoreOpts.rescore_query=e,this}queryWeight(e){return this._rescoreOpts.query_weight=e,this}rescoreQueryWeight(e){return this._rescoreOpts.rescore_query_weight=e,this}scoreMode(e){n(e)&&u(e);const t=e.toLowerCase();return l.has(t)||u(e),this._rescoreOpts.score_mode=t,this}toJSON(){return a(this._body)}}},1599:(e,t,r)=>{"use strict";const{util:{checkType:n}}=r(4782),o=r(7846);e.exports=class extends o{constructor(e,t){super(e,"percentiles",t)}keyed(e){return this._aggsDef.keyed=e,this}percents(e){return n(e,Array),this._aggsDef.percents=e,this}tdigest(e){return this._aggsDef.tdigest={compression:e},this}compression(e){return this._aggsDef.tdigest={compression:e},this}hdr(e){return this._aggsDef.hdr={number_of_significant_value_digits:e},this}}},1621:(e,t,r)=>{"use strict";const n=r(2295),{validateRewiteMethod:o}=r(15);e.exports=class extends n{constructor(e,t){super("wildcard",e,t)}caseInsensitive(e){return this._queryOpts.case_insensitive=e,this}rewrite(e){return o(e,"rewrite","https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html"),this._queryOpts.rewrite=e,this}}},1640:(e,t,r)=>{"use strict";const n=r(6724),{util:{checkType:o}}=r(4782),i=r(3420);e.exports=class extends i{constructor(e,t){super("field_masking_span"),n(e)||(this._queryOpts.field=e),n(t)||this.query(t)}query(e){return o(e,i),this._queryOpts.query=e,this}field(e){return this._queryOpts.field=e,this}}},1668:(e,t,r)=>{"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{A:()=>n})},1707:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),i=r(579);t.A=(0,o.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},1722:(e,t,r)=>{"use strict";r.d(t,{Rk:()=>n,SF:()=>o,sk:()=>i});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},1782:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5043),o=r(4440);const i=function(e){const t=n.useRef(e);return(0,o.A)((()=>{t.current=e})),n.useRef((function(){return(0,t.current)(...arguments)})).current}},1821:(e,t,r)=>{"use strict";const n=r(6724),o=r(7090);e.exports=class extends o{constructor(e,t,r){super(e,"variable_width_histogram",t),n(r)||(this._aggsDef.buckets=r)}buckets(e){return this._aggsDef.buckets=e,this}}},1849:(e,t,r)=>{"use strict";const n=r(6724),o=r(7090);e.exports=class extends o{constructor(e,t,r){super(e,"auto_date_histogram",t),n(r)||(this._aggsDef.buckets=r)}buckets(e){return this._aggsDef.buckets=e,this}minimumInterval(e){return this._aggsDef.minimum_interval=e,this}format(e){return this._aggsDef.format=e,this}missing(e){return this._aggsDef.missing=e,this}timeZone(e){return this._aggsDef.time_zone=e,this}}},1888:(e,t,r)=>{"use strict";const n=r(7846);e.exports=class extends n{constructor(e,t){super(e,"value_count",t)}format(){throw console.log("Please refer https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-valuecount-aggregation.html"),new Error("format is not supported in ValueCountAggregation")}}},1917:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(8168),o=r(5043),i=r(299);function s(e,t){var r=function(t,r){return o.createElement(i.A,(0,n.A)({ref:r},t),e)};return r.muiName=i.A.muiName,o.memo(o.forwardRef(r))}},1918:(e,t,r)=>{"use strict";t.CSVLink=void 0;var n=i(r(2483)),o=i(r(3027));function i(e){return e&&e.__esModule?e:{default:e}}n.default,t.CSVLink=o.default},1951:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},1989:(e,t,r)=>{"use strict";var n=r(6267),o=r(3229),i=r(7903),s=r(6735),a=r(7638),l=r(3101),u=r(705),c=r(938),d=r(1550),p=r(5299);e.exports=function(e){return new Promise((function(t,r){var h,f=e.data,m=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(f)&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+x)}var w=a(e.baseURL,e.url);function _(){if(b){var n="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};o((function(e){t(e),v()}),(function(e){r(e),v()}),i),b=null}}if(b.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(_)},b.onabort=function(){b&&(r(c("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){r(c("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(c(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},n.isStandardBrowserEnv()){var S=(e.withCredentials||u(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in b&&n.forEach(m,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(r(!e||e&&e.type?new p("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),f||(f=null),b.send(f)}))}},2086:(e,t,r)=>{"use strict";r(5082)},2104:e=>{var t=Object.prototype.toString,r=Array.isArray;e.exports=function(e){return"string"==typeof e||!r(e)&&function(e){return!!e&&"object"==typeof e}(e)&&"[object String]"==t.call(e)}},2121:(e,t,r)=>{"use strict";var n=r(6267);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},2123:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,s,a=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))r.call(i,u)&&(a[u]=i[u]);if(t){s=t(i);for(var c=0;c<s.length;c++)n.call(i,s[c])&&(a[s[c]]=i[s[c]])}}return a}},2152:(e,t,r)=>{"use strict";const n=r(6724),{util:{checkType:o},Query:i}=r(4782);e.exports=class extends i{constructor(e,t){super("percolate"),this._queryOpts.documents=[],n(e)||(this._queryOpts.field=e),n(t)||(this._queryOpts.document_type=t)}field(e){return this._queryOpts.field=e,this}documentType(e){return this._queryOpts.document_type=e,this}document(e){return this._queryOpts.documents.push(e),this}documents(e){return o(e,Array),this._queryOpts.documents=this._queryOpts.documents.concat(e),this}index(e){return this._queryOpts.index=e,this}type(e){return this._queryOpts.type=e,this}id(e){return this._queryOpts.id=e,this}routing(e){return this._queryOpts.routing=e,this}preference(e){return this._queryOpts.preference=e,this}version(e){return this._queryOpts.version=e,this}}},2158:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5043),o="undefined"!==typeof window?n.useLayoutEffect:n.useEffect;function i(e){var t=n.useRef(e);return o((function(){t.current=e})),n.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},2191:(e,t,r)=>{"use strict";const n=r(2254);e.exports=class extends n{constructor(e,t){super(e,"serial_diff","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-serialdiff-aggregation.html",t)}lag(e){return this._aggsDef.lag=e,this}}},2237:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);function o(e){var t=n.useState(e),r=t[0],o=t[1],i=e||r;return n.useEffect((function(){null==r&&o("mui-".concat(Math.round(1e5*Math.random())))}),[r]),i}},2246:(e,t,r)=>{"use strict";const n=r(6724),o=r(5476);e.exports=class extends o{constructor(e){super("script_score"),n(e)||(this._opts.script=e)}script(e){return this._opts.script=e,this}}},2250:(e,t,r)=>{"use strict";const n=r(2104),o=r(6878);function i(e,r){const n={seen:[],stylize:s};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),u(r)?n.showHidden=r:r&&t._extend(n,r),d(n.showHidden)&&(n.showHidden=!1),d(n.depth)&&(n.depth=2),d(n.colors)&&(n.colors=!1),d(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),l(n,e,n.depth)}function s(e){return e}function a(e,t){const r=i.styles[t];return r?`\x1b[${i.colors[r][0]}m${e}\x1b[${i.colors[r][1]}m`:e}function l(e,r,o){if(e.customInspect&&r&&m(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){let t=r.inspect(o,e);return n(t)||(t=l(e,t,o)),t}const i=function(e,t){if(d(t))return e.stylize("undefined","undefined");if(n(t)){const r=`'${JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')}'`;return e.stylize(r,"string")}if(r=t,"number"===typeof r)return e.stylize(`${t}`,"number");var r;if(u(t))return e.stylize(`${t}`,"boolean");if(c(t))return e.stylize("null","null")}(e,r);if(i)return i;let s=Object.keys(r);const a=function(e){const t={};return e.forEach((e=>{t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),f(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return g(r);if(0===s.length){if(m(r)){const t=r.name?`: ${r.name}`:"";return e.stylize(`[Function${t}]`,"special")}if(p(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(h(r))return e.stylize(Date.prototype.toString.call(r),"date");if(f(r))return g(r)}let b="",y=!1,x=["{","}"];var w;if(w=r,Array.isArray(w)&&(y=!0,x=["[","]"]),m(r)){b=` [Function${r.name?`: ${r.name}`:""}]`}if(p(r)&&(b=` ${RegExp.prototype.toString.call(r)}`),h(r)&&(b=` ${Date.prototype.toUTCString.call(r)}`),f(r)&&(b=` ${g(r)}`),0===s.length&&(!y||0===r.length))return x[0]+b+x[1];if(o<0)return p(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");let _;return e.seen.push(r),_=y?function(e,t,r,n,o){const i=[];for(let s=0,a=t.length;s<a;++s)hasOwnProperty(t,String(s))?i.push(v(e,t,r,n,String(s),!0)):i.push("");return o.forEach((o=>{o.match(/^\d+$/)||i.push(v(e,t,r,n,o,!0))})),i}(e,r,o,a,s):s.map((t=>v(e,r,o,a,t,y))),e.seen.pop(),function(e,t,r){const n=e.reduce(((e,t)=>e+t.replace(/\u001b\[\d\d?m/g,"").length+1),0);if(n>60)return`${r[0]+(""===t?"":`${t}\n `)} ${e.join(",\n  ")} ${r[1]}`;return`${r[0]+t} ${e.join(", ")} ${r[1]}`}(_,b,x)}function u(e){return"boolean"===typeof e}function c(e){return null===e}function d(e){return void 0===e}function p(e){return o(e)&&"[object RegExp]"===b(e)}function h(e){return o(e)&&"[object Date]"===b(e)}function f(e){return o(e)&&("[object Error]"===b(e)||e instanceof Error)}function m(e){return"function"===typeof e}function g(e){return`[${Error.prototype.toString.call(e)}]`}function v(e,t,r,n,o,i){let s,a;const u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]};if(u.get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),hasOwnProperty(n,o)||(s=`[${o}]`),a||(e.seen.indexOf(u.value)<0?(a=c(r)?l(e,u.value,null):l(e,u.value,r-1),a.indexOf("\n")>-1&&(a=i?a.split("\n").map((e=>`  ${e}`)).join("\n").slice(2):`\n${a.split("\n").map((e=>`   ${e}`)).join("\n")}`)):a=e.stylize("[Circular]","special")),d(s)){if(i&&o.match(/^\d+$/))return a;s=JSON.stringify(`${o}`),s.match(/^"([a-zA-Z_]\w*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return`${s}: ${a}`}function b(e){return Object.prototype.toString.call(e)}e.exports=i},2254:(e,t,r)=>{"use strict";const n=r(6724),{Aggregation:o,util:{invalidParam:i}}=r(4782),s=i("","gap_policy","'skip' or 'insert_zeros'");e.exports=class extends o{constructor(e,t,r,o){super(e,t),this._refUrl=r,n(o)||(this._aggsDef.buckets_path=o)}bucketsPath(e){return this._aggsDef.buckets_path=e,this}gapPolicy(e){n(e)&&s(e,this._refUrl);const t=e.toLowerCase();return"skip"!==t&&"insert_zeros"!==t&&s(e,this._refUrl),this._aggsDef.gap_policy=t,this}format(e){return this._aggsDef.format=e,this}}},2284:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}r.d(t,{A:()=>n})},2295:(e,t,r)=>{"use strict";const n=r(2607);e.exports=class extends n{}},2372:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>i});var n=r(9386);const o={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 i(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i=o[t];return i?`${r}-${i}`:`${n.A.generate(e)}-${t}`}},2374:(e,t,r)=>{"use strict";t.A=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}(r(5043)),o=r(3174);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=n.useContext(o.ThemeContext);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},2378:(e,t,r)=>{e.exports=r(1918)},2427:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(1668).A},2454:(e,t,r)=>{"use strict";r.d(t,{X4:()=>c,a:()=>p,e$:()=>d,eM:()=>a,tL:()=>u});var n=r(8565);function o(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)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(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((0,n.A)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:r,values:o=o.map((function(e){return parseFloat(e)}))}}function s(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(", "),")")}function a(e,t){var r=l(e),n=l(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function l(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-a*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?d(e,t):p(e,t)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return s(e)}},2456:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t)=>null==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n),t.apply(this,n)}),(()=>{}))}r.d(t,{A:()=>n})},2478:(e,t,r)=>{"use strict";var n=r(3104).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new Error(o(n," has been removed"+(t?" in "+t:"")));return t&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!==typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],s=t[i];if(s){var a=e[i],l=void 0===a||s(a,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},2483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(5043),s=(n=i)&&n.__esModule?n:{default:n},a=r(7907),l=r(3847);var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildURI",value:function(){return a.buildURI.apply(void 0,arguments)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.data,r=e.headers,n=e.separator,o=e.enclosingCharacter,i=e.uFEFF,s=e.target,a=e.specs,l=e.replace;this.state.page=window.open(this.buildURI(t,i,r,n,o),s,a,l)}},{key:"getWindow",value:function(){return this.state.page}},{key:"render",value:function(){return null}}]),t}(s.default.Component);u.defaultProps=Object.assign(l.defaultProps,{target:"_blank"}),u.propTypes=l.propTypes,t.default=u},2532:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2372);function o(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,n.Ay)(e,t,r)})),o}},2542:(e,t,r)=>{"use strict";const n=r(6724),o=r(7090);e.exports=class extends o{constructor(e,t){super(e,"rare_terms",t)}maxDocCount(e){if(n(e)||e<1||e>100)throw new Error("`maxDocCount` can only be value from 1 to 100.");return this._aggsDef.max_doc_count=e,this}precision(e){if(e<1e-5)throw new Error("`precision` must be greater than 0.00001.");return this._aggsDef.precision=e,this}include(e){return this._aggsDef.include=e,this}exclude(e){return this._aggsDef.exclude=e,this}missing(e){return this._aggsDef.missing=e,this}script(){throw console.log("Please refer https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-rare-terms-aggregation.html"),new Error("script is not supported in RareTermsAggregation")}}},2570:(e,t,r)=>{"use strict";t.metricsAggregations=r(8588),t.bucketAggregations=r(5651),t.pipelineAggregations=r(1439),t.matrixAggregations=r(7402)},2572:(e,t,r)=>{"use strict";const{RequestBodySearch:n,Highlight:o,Script:i,GeoPoint:s,GeoShape:a,IndexedShape:l,Sort:u,Rescore:c,InnerHits:d,RuntimeField:p,SearchTemplate:h,Query:f,KNN:m,util:{constructorWrapper:g}}=r(4782),{MatchAllQuery:v,MatchNoneQuery:b,fullTextQueries:{MatchQuery:y,MatchPhraseQuery:x,MatchPhrasePrefixQuery:w,MultiMatchQuery:_,CommonTermsQuery:S,QueryStringQuery:A,SimpleQueryStringQuery:C,CombinedFieldsQuery:k},termLevelQueries:{TermQuery:E,TermsQuery:R,TermsSetQuery:j,RangeQuery:O,ExistsQuery:T,PrefixQuery:I,WildcardQuery:P,RegexpQuery:N,FuzzyQuery:M,TypeQuery:D,IdsQuery:L},compoundQueries:{ConstantScoreQuery:F,BoolQuery:z,DisMaxQuery:B,FunctionScoreQuery:$,BoostingQuery:H,scoreFunctions:{ScriptScoreFunction:U,WeightScoreFunction:W,RandomScoreFunction:V,FieldValueFactorFunction:q,DecayScoreFunction:G}},joiningQueries:{NestedQuery:Q,HasChildQuery:K,HasParentQuery:J,ParentIdQuery:X},geoQueries:{GeoShapeQuery:Y,GeoBoundingBoxQuery:Z,GeoDistanceQuery:ee,GeoPolygonQuery:te},specializedQueries:{MoreLikeThisQuery:re,ScriptQuery:ne,ScriptScoreQuery:oe,PercolateQuery:ie,DistanceFeatureQuery:se,RankFeatureQuery:ae},spanQueries:{SpanTermQuery:le,SpanMultiTermQuery:ue,SpanFirstQuery:ce,SpanNearQuery:de,SpanOrQuery:pe,SpanNotQuery:he,SpanContainingQuery:fe,SpanWithinQuery:me,SpanFieldMaskingQuery:ge}}=r(75),{metricsAggregations:{AvgAggregation:ve,CardinalityAggregation:be,ExtendedStatsAggregation:ye,GeoBoundsAggregation:xe,GeoCentroidAggregation:we,MaxAggregation:_e,MinAggregation:Se,PercentilesAggregation:Ae,PercentileRanksAggregation:Ce,ScriptedMetricAggregation:ke,StatsAggregation:Ee,SumAggregation:Re,TopHitsAggregation:je,ValueCountAggregation:Oe,WeightedAverageAggregation:Te},bucketAggregations:{AdjacencyMatrixAggregation:Ie,ChildrenAggregation:Pe,CompositeAggregation:Ne,DateHistogramAggregation:Me,AutoDateHistogramAggregation:De,VariableWidthHistogramAggregation:Le,DateRangeAggregation:Fe,DiversifiedSamplerAggregation:ze,FilterAggregation:Be,FiltersAggregation:$e,GeoDistanceAggregation:He,GeoHashGridAggregation:Ue,GeoHexGridAggregation:We,GeoTileGridAggregation:Ve,GlobalAggregation:qe,HistogramAggregation:Ge,IpRangeAggregation:Qe,MissingAggregation:Ke,NestedAggregation:Je,ParentAggregation:Xe,RangeAggregation:Ye,RareTermsAggregation:Ze,ReverseNestedAggregation:et,SamplerAggregation:tt,SignificantTermsAggregation:rt,SignificantTextAggregation:nt,TermsAggregation:ot},pipelineAggregations:{AvgBucketAggregation:it,DerivativeAggregation:st,MaxBucketAggregation:at,MinBucketAggregation:lt,SumBucketAggregation:ut,StatsBucketAggregation:ct,ExtendedStatsBucketAggregation:dt,PercentilesBucketAggregation:pt,MovingAverageAggregation:ht,MovingFunctionAggregation:ft,CumulativeSumAggregation:mt,BucketScriptAggregation:gt,BucketSelectorAggregation:vt,SerialDifferencingAggregation:bt,BucketSortAggregation:yt},matrixAggregations:{MatrixStatsAggregation:xt}}=r(2570),{TermSuggester:wt,DirectGenerator:_t,PhraseSuggester:St,CompletionSuggester:At}=r(8287),Ct=r(6135);t.RequestBodySearch=n,t.requestBodySearch=g(n),t.Query=f,t.query=g(f),t.MatchAllQuery=v,t.matchAllQuery=g(v),t.MatchNoneQuery=b,t.matchNoneQuery=g(b),t.MatchQuery=y,t.matchQuery=g(y),t.MatchPhraseQuery=x,t.matchPhraseQuery=g(x),t.MatchPhrasePrefixQuery=w,t.matchPhrasePrefixQuery=g(w),t.MultiMatchQuery=_,t.multiMatchQuery=g(_),t.CommonTermsQuery=S,t.commonTermsQuery=g(S),t.QueryStringQuery=A,t.queryStringQuery=g(A),t.SimpleQueryStringQuery=C,t.simpleQueryStringQuery=g(C),t.CombinedFieldsQuery=k,t.combinedFieldsQuery=g(k),t.TermQuery=E,t.termQuery=g(E),t.TermsQuery=R,t.termsQuery=g(R),t.TermsSetQuery=j,t.termsSetQuery=g(j),t.RangeQuery=O,t.rangeQuery=g(O),t.ExistsQuery=T,t.existsQuery=g(T),t.PrefixQuery=I,t.prefixQuery=g(I),t.WildcardQuery=P,t.wildcardQuery=g(P),t.RegexpQuery=N,t.regexpQuery=g(N),t.FuzzyQuery=M,t.fuzzyQuery=g(M),t.TypeQuery=D,t.typeQuery=g(D),t.IdsQuery=L,t.idsQuery=g(L),t.ConstantScoreQuery=F,t.constantScoreQuery=g(F),t.BoolQuery=z,t.boolQuery=g(z),t.DisMaxQuery=B,t.disMaxQuery=g(B),t.FunctionScoreQuery=$,t.functionScoreQuery=g($),t.BoostingQuery=H,t.boostingQuery=g(H),t.NestedQuery=Q,t.nestedQuery=g(Q),t.HasChildQuery=K,t.hasChildQuery=g(K),t.HasParentQuery=J,t.hasParentQuery=g(J),t.ParentIdQuery=X,t.parentIdQuery=g(X),t.GeoShapeQuery=Y,t.geoShapeQuery=g(Y),t.GeoBoundingBoxQuery=Z,t.geoBoundingBoxQuery=g(Z),t.GeoDistanceQuery=ee,t.geoDistanceQuery=g(ee),t.GeoPolygonQuery=te,t.geoPolygonQuery=g(te),t.MoreLikeThisQuery=re,t.moreLikeThisQuery=g(re),t.ScriptQuery=ne,t.scriptQuery=g(ne),t.ScriptScoreQuery=oe,t.scriptScoreQuery=g(oe),t.PercolateQuery=ie,t.percolateQuery=g(ie),t.DistanceFeatureQuery=se,t.distanceFeatureQuery=g(se),t.RankFeatureQuery=ae,t.rankFeatureQuery=g(ae),t.SpanTermQuery=le,t.spanTermQuery=g(le),t.SpanMultiTermQuery=ue,t.spanMultiTermQuery=g(ue),t.SpanFirstQuery=ce,t.spanFirstQuery=g(ce),t.SpanNearQuery=de,t.spanNearQuery=g(de),t.SpanOrQuery=pe,t.spanOrQuery=g(pe),t.SpanNotQuery=he,t.spanNotQuery=g(he),t.SpanContainingQuery=fe,t.spanContainingQuery=g(fe),t.SpanWithinQuery=me,t.spanWithinQuery=g(me),t.SpanFieldMaskingQuery=ge,t.spanFieldMaskingQuery=g(ge),t.KNN=m,t.kNN=g(m),t.AvgAggregation=ve,t.avgAggregation=g(ve),t.WeightedAverageAggregation=Te,t.weightedAverageAggregation=g(Te),t.CardinalityAggregation=be,t.cardinalityAggregation=g(be),t.ExtendedStatsAggregation=ye,t.extendedStatsAggregation=g(ye),t.GeoBoundsAggregation=xe,t.geoBoundsAggregation=g(xe),t.GeoCentroidAggregation=we,t.geoCentroidAggregation=g(we),t.MaxAggregation=_e,t.maxAggregation=g(_e),t.MinAggregation=Se,t.minAggregation=g(Se),t.PercentilesAggregation=Ae,t.percentilesAggregation=g(Ae),t.PercentileRanksAggregation=Ce,t.percentileRanksAggregation=g(Ce),t.ScriptedMetricAggregation=ke,t.scriptedMetricAggregation=g(ke),t.StatsAggregation=Ee,t.statsAggregation=g(Ee),t.SumAggregation=Re,t.sumAggregation=g(Re),t.TopHitsAggregation=je,t.topHitsAggregation=g(je),t.ValueCountAggregation=Oe,t.valueCountAggregation=g(Oe),t.AdjacencyMatrixAggregation=Ie,t.adjacencyMatrixAggregation=g(Ie),t.ChildrenAggregation=Pe,t.childrenAggregation=g(Pe),t.CompositeAggregation=Ne,t.compositeAggregation=g(Ne),t.DateHistogramAggregation=Me,t.dateHistogramAggregation=g(Me),t.AutoDateHistogramAggregation=De,t.autoDateHistogramAggregation=g(De),t.VariableWidthHistogramAggregation=Le,t.variableWidthHistogramAggregation=g(Le),t.DateRangeAggregation=Fe,t.dateRangeAggregation=g(Fe),t.DiversifiedSamplerAggregation=ze,t.diversifiedSamplerAggregation=g(ze),t.FilterAggregation=Be,t.filterAggregation=g(Be),t.FiltersAggregation=$e,t.filtersAggregation=g($e),t.GeoDistanceAggregation=He,t.geoDistanceAggregation=g(He),t.GeoHashGridAggregation=Ue,t.geoHashGridAggregation=g(Ue),t.GeoHexGridAggregation=We,t.geoHexGridAggregation=g(We),t.GeoTileGridAggregation=Ve,t.geoTileGridAggregation=g(Ve),t.GlobalAggregation=qe,t.globalAggregation=g(qe),t.HistogramAggregation=Ge,t.histogramAggregation=g(Ge),t.IpRangeAggregation=Qe,t.ipRangeAggregation=g(Qe),t.MissingAggregation=Ke,t.missingAggregation=g(Ke),t.NestedAggregation=Je,t.nestedAggregation=g(Je),t.ParentAggregation=Xe,t.parentAggregation=g(Xe),t.RangeAggregation=Ye,t.rangeAggregation=g(Ye),t.RareTermsAggregation=Ze,t.rareTermsAggregation=g(Ze),t.ReverseNestedAggregation=et,t.reverseNestedAggregation=g(et),t.SamplerAggregation=tt,t.samplerAggregation=g(tt),t.SignificantTermsAggregation=rt,t.significantTermsAggregation=g(rt),t.SignificantTextAggregation=nt,t.significantTextAggregation=g(nt),t.TermsAggregation=ot,t.termsAggregation=g(ot),t.AvgBucketAggregation=it,t.avgBucketAggregation=g(it),t.DerivativeAggregation=st,t.derivativeAggregation=g(st),t.MaxBucketAggregation=at,t.maxBucketAggregation=g(at),t.MinBucketAggregation=lt,t.minBucketAggregation=g(lt),t.BucketSortAggregation=yt,t.bucketSortAggregation=g(yt),t.SumBucketAggregation=ut,t.sumBucketAggregation=g(ut),t.StatsBucketAggregation=ct,t.statsBucketAggregation=g(ct),t.ExtendedStatsBucketAggregation=dt,t.extendedStatsBucketAggregation=g(dt),t.PercentilesBucketAggregation=pt,t.percentilesBucketAggregation=g(pt),t.MovingAverageAggregation=ht,t.movingAverageAggregation=g(ht),t.MovingFunctionAggregation=ft,t.movingFunctionAggregation=g(ft),t.CumulativeSumAggregation=mt,t.cumulativeSumAggregation=g(mt),t.BucketScriptAggregation=gt,t.bucketScriptAggregation=g(gt),t.BucketSelectorAggregation=vt,t.bucketSelectorAggregation=g(vt),t.SerialDifferencingAggregation=bt,t.serialDifferencingAggregation=g(bt),t.MatrixStatsAggregation=xt,t.matrixStatsAggregation=g(xt),t.ScriptScoreFunction=U,t.scriptScoreFunction=g(U),t.WeightScoreFunction=W,t.weightScoreFunction=g(W),t.RandomScoreFunction=V,t.randomScoreFunction=g(V),t.FieldValueFactorFunction=q,t.fieldValueFactorFunction=g(q),t.DecayScoreFunction=G,t.decayScoreFunction=g(G),t.TermSuggester=wt,t.termSuggester=g(wt),t.DirectGenerator=_t,t.directGenerator=g(_t),t.PhraseSuggester=St,t.phraseSuggester=g(St),t.CompletionSuggester=At,t.completionSuggester=g(At),t.recipes=Ct,t.cookMissingQuery=Ct.missingQuery,t.cookRandomSortQuery=Ct.randomSortQuery,t.cookFilterQuery=Ct.filterQuery,t.Highlight=o,t.highlight=g(o),t.Script=i,t.script=g(i),t.GeoPoint=s,t.geoPoint=g(s),t.GeoShape=a,t.geoShape=g(a),t.IndexedShape=l,t.indexedShape=g(l),t.Sort=u,t.sort=g(u),t.Rescore=c,t.rescore=g(c),t.InnerHits=d,t.innerHits=g(d),t.SearchTemplate=h,t.searchTemplate=g(h),t.RuntimeField=p,t.runtimeField=g(p),t.prettyPrint=function(e){console.log(JSON.stringify(e,null,2))}},2607:(e,t,r)=>{"use strict";const n=r(1463),o=r(6724),{Query:i}=r(4782);e.exports=class extends i{constructor(e,t,r){super(e),o(t)||(this._field=t),o(r)||(this._queryOpts.value=r)}field(e){return this._field=e,this}value(e){return this._queryOpts.value=e,this}toJSON(){if(!n(this._queryOpts,"value"))throw new Error("Value is required for term level query!");const e=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:e}}}caseInsensitive(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._queryOpts.case_insensitive=e,this}}},2615:(e,t,r)=>{"use strict";const n=r(6724),{recursiveToJSON:o}=r(2960);e.exports=class{constructor(e,t){if(this._isTypeSet=!1,this._body={},!n(e)&&!n(t)){const r=e.toLowerCase();if("inline"!==r&&"id"!==r&&"indexed"!==r&&"file"!==r)throw new Error("`type` must be one of `inline`, `id`, `indexed`, `file`");this[r](t)}}_warn(e){console.warn(`[SearchTemplate] ${e}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Search template source(`inline`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.file,delete this._body.id,delete this._body.file)}_setSource(e,t){return this._checkMixedRepr(),this._body[e]=t,this._isTypeSet=!0,this}inline(e){return this._setSource("inline",e)}id(e){return this._setSource("id",e)}indexed(e){return this.id(e)}file(e){return this._setSource("file",e)}params(e){return this._body.params=e,this}toJSON(){return o(this._body)}}},2668:(e,t,r)=>{"use strict";const n=r(6724),{Query:o,util:{invalidParam:i,recursiveToJSON:s}}=r(4782),a=i("","validation_method","'IGNORE_MALFORMED', 'COERCE' or 'STRICT'");e.exports=class extends o{constructor(e,t){super(e),this._field=null,this._fieldOpts={},n(t)||(this._field=t)}field(e){return this._field=e,this}validationMethod(e){n(e)&&a(e);const t=e.toUpperCase();return"IGNORE_MALFORMED"!==t&&"COERCE"!==t&&"STRICT"!==t&&a(e),this._queryOpts.validation_method=t,this}toJSON(){return s({[this.queryType]:Object.assign({[this._field]:this._fieldOpts},this._queryOpts)})}}},2692:(e,t,r)=>{"use strict";const n=r(6724),{Query:o,InnerHits:i,util:{checkType:s,invalidParam:a},consts:{NESTED_SCORE_MODE_SET:l}}=r(4782),u=a("","score_mode",l);e.exports=class extends o{constructor(e,t,r){super(e),this.refUrl=t,n(r)||this.query(r)}query(e){return s(e,o),this._queryOpts.query=e,this}scoreMode(e){n(e)&&u(e);const t=e.toLowerCase();return l.has(t)||u(e),this._queryOpts.score_mode=t,this}ignoreUnmapped(e){return this._queryOpts.ignore_unmapped=e,this}innerHits(e){return s(e,i),this._queryOpts.inner_hits=e,this}}},2693:(e,t,r)=>{"use strict";const n=r(8417);e.exports=class extends n{constructor(e,t){super(e,"significant_terms","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significantterms-aggregation.html",t)}}},2695:(e,t,r)=>{"use strict";const n=r(6724),o=r(3650);e.exports=class{constructor(e,t,r){if(o(e))throw new Error("Suggester `suggesterType` cannot be empty");if(o(t))throw new Error("Suggester `name` cannot be empty");this.name=t,this.suggesterType=e,this._body={},this._opts=this._body[t]={},this._suggestOpts=this._opts[e]={},n(r)||(this._suggestOpts.field=r)}field(e){return this._suggestOpts.field=e,this}size(e){return this._suggestOpts.size=e,this}toJSON(){return this._body}}},2730:(e,t,r)=>{"use strict";var n=r(5043),o=r(2123),i=r(8853);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(s(227));var a=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,f={},m={};function g(e,t,r,n,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function x(e,t,r,n){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0===o.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!h.call(m,e)||!h.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,S=60106,A=60107,C=60108,k=60114,E=60109,R=60110,j=60112,O=60113,T=60120,I=60115,P=60116,N=60121,M=60128,D=60129,L=60130,F=60131;if("function"===typeof Symbol&&Symbol.for){var z=Symbol.for;_=z("react.element"),S=z("react.portal"),A=z("react.fragment"),C=z("react.strict_mode"),k=z("react.profiler"),E=z("react.provider"),R=z("react.context"),j=z("react.forward_ref"),O=z("react.suspense"),T=z("react.suspense_list"),I=z("react.memo"),P=z("react.lazy"),N=z("react.block"),z("react.scope"),M=z("react.opaque.id"),D=z("react.debug_trace_mode"),L=z("react.offscreen"),F=z("react.legacy_hidden")}var B,$="function"===typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=$&&e[$]||e["@@iterator"])?e:null}function U(e){if(void 0===B)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var W=!1;function V(e,t){if(!e||W)return"";W=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&"string"===typeof l.stack){for(var o=l.stack.split("\n"),i=n.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a])return"\n"+o[s].replace(" at new "," at ")}while(1<=s&&0<=a);break}}}finally{W=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?U(e):""}function q(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case A:return"Fragment";case S:return"Portal";case k:return"Profiler";case C:return"StrictMode";case O:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case R:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return G(e.type);case N:return G(e._render);case P:t=e._payload,e=e._init;try{return G(e(t))}catch(r){}}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function J(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=K(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var r=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function ee(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Q(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){te(e,t);var r=Q(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,r):t.hasOwnProperty("defaultValue")&&oe(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ne(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function oe(e,t,r){"number"===t&&Y(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Q(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(s(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(s(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:Q(r)}}function ue(e,t){var r=Q(t.value),n=Q(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ge,ve=(ge=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function be(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function we(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function _e(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=we(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(ye).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ae(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(s(62))}}function Ce(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Re=null,je=null;function Oe(e){if(e=no(e)){if("function"!==typeof Ee)throw Error(s(280));var t=e.stateNode;t&&(t=io(t),Ee(e.stateNode,e.type,t))}}function Te(e){Re?je?je.push(e):je=[e]:Re=e}function Ie(){if(Re){var e=Re,t=je;if(je=Re=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Pe(e,t){return e(t)}function Ne(e,t,r,n,o){return e(t,r,n,o)}function Me(){}var De=Pe,Le=!1,Fe=!1;function ze(){null===Re&&null===je||(Me(),Ie())}function Be(e,t){var r=e.stateNode;if(null===r)return null;var n=io(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(s(231,t,typeof r));return r}var $e=!1;if(d)try{var He={};Object.defineProperty(He,"passive",{get:function(){$e=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ge){$e=!1}function Ue(e,t,r,n,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var We=!1,Ve=null,qe=!1,Ge=null,Qe={onError:function(e){We=!0,Ve=e}};function Ke(e,t,r,n,o,i,s,a,l){We=!1,Ve=null,Ue.apply(Qe,arguments)}function Je(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ye(e){if(Je(e)!==e)throw Error(s(188))}function Ze(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(s(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return Ye(o),e;if(i===n)return Ye(o),t;i=i.sibling}throw Error(s(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,l=o.child;l;){if(l===r){a=!0,r=o,n=i;break}if(l===n){a=!0,n=o,r=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===r){a=!0,r=i,n=o;break}if(l===n){a=!0,n=i,r=o;break}l=l.sibling}if(!a)throw Error(s(189))}}if(r.alternate!==n)throw Error(s(190))}if(3!==r.tag)throw Error(s(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var r=e.alternate;null!==t;){if(t===e||t===r)return!0;t=t.return}return!1}var tt,rt,nt,ot,it=!1,st=[],at=null,lt=null,ut=null,ct=new Map,dt=new Map,pt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ft(e,t,r,n,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|r,nativeEvent:o,targetContainers:[n]}}function mt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function gt(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e=ft(t,r,n,o,i),null!==t&&(null!==(t=no(t))&&rt(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function vt(e){var t=ro(e.target);if(null!==t){var r=Je(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Xe(r)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(r)}))}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=no(r))&&rt(t),e.blockedOn=r,!1;t.shift()}return!0}function yt(e,t,r){bt(e)&&r.delete(t)}function xt(){for(it=!1;0<st.length;){var e=st[0];if(null!==e.blockedOn){null!==(e=no(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var r=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r){e.blockedOn=r;break}t.shift()}null===e.blockedOn&&st.shift()}null!==at&&bt(at)&&(at=null),null!==lt&&bt(lt)&&(lt=null),null!==ut&&bt(ut)&&(ut=null),ct.forEach(yt),dt.forEach(yt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,xt)))}function _t(e){function t(t){return wt(t,e)}if(0<st.length){wt(st[0],e);for(var r=1;r<st.length;r++){var n=st[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==at&&wt(at,e),null!==lt&&wt(lt,e),null!==ut&&wt(ut,e),ct.forEach(t),dt.forEach(t),r=0;r<pt.length;r++)(n=pt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<pt.length&&null===(r=pt[0]).blockedOn;)vt(r),null===r.blockedOn&&pt.shift()}function St(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var At={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},Ct={},kt={};function Et(e){if(Ct[e])return Ct[e];if(!At[e])return e;var t,r=At[e];for(t in r)if(r.hasOwnProperty(t)&&t in kt)return Ct[e]=r[t];return e}d&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete At.animationend.animation,delete At.animationiteration.animation,delete At.animationstart.animation),"TransitionEvent"in window||delete At.transitionend.transition);var Rt=Et("animationend"),jt=Et("animationiteration"),Ot=Et("animationstart"),Tt=Et("transitionend"),It=new Map,Pt=new Map,Nt=["abort","abort",Rt,"animationEnd",jt,"animationIteration",Ot,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Tt,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],o=e[r+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Pt.set(n,t),It.set(n,o),u(o,[n])}}(0,i.unstable_now)();var Dt=8;function Lt(e){if(0!==(1&e))return Dt=15,1;if(0!==(2&e))return Dt=14,2;if(0!==(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!==(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!==(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!==(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!==(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!==(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Ft(e,t){var r=e.pendingLanes;if(0===r)return Dt=0;var n=0,o=0,i=e.expiredLanes,s=e.suspendedLanes,a=e.pingedLanes;if(0!==i)n=i,o=Dt=15;else if(0!==(i=134217727&r)){var l=i&~s;0!==l?(n=Lt(l),o=Dt):0!==(a&=i)&&(n=Lt(a),o=Dt)}else 0!==(i=r&~s)?(n=Lt(i),o=Dt):0!==a&&(n=Lt(a),o=Dt);if(0===n)return 0;if(n=r&((0>(n=31-Wt(n))?0:1<<n)<<1)-1,0!==t&&t!==n&&0===(t&s)){if(Lt(t),o<=Dt)return t;Dt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Wt(t)),n|=e[r],t&=~o;return n}function zt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=$t(24&~t))?Bt(10,t):e;case 10:return 0===(e=$t(192&~t))?Bt(8,t):e;case 8:return 0===(e=$t(3584&~t))&&(0===(e=$t(4186112&~t))&&(e=512)),e;case 2:return 0===(t=$t(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function $t(e){return e&-e}function Ht(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ut(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,(e=e.eventTimes)[t=31-Wt(t)]=r}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Vt(e)/qt|0)|0},Vt=Math.log,qt=Math.LN2;var Gt=i.unstable_UserBlockingPriority,Qt=i.unstable_runWithPriority,Kt=!0;function Jt(e,t,r,n){Le||Me();var o=Yt,i=Le;Le=!0;try{Ne(o,e,t,r,n)}finally{(Le=i)||ze()}}function Xt(e,t,r,n){Qt(Gt,Yt.bind(null,e,t,r,n))}function Yt(e,t,r,n){var o;if(Kt)if((o=0===(4&t))&&0<st.length&&-1<ht.indexOf(e))e=ft(null,e,t,r,n),st.push(e);else{var i=Zt(e,t,r,n);if(null===i)o&&mt(e,n);else{if(o){if(-1<ht.indexOf(e))return e=ft(i,e,t,r,n),void st.push(e);if(function(e,t,r,n,o){switch(t){case"focusin":return at=gt(at,e,t,r,n,o),!0;case"dragenter":return lt=gt(lt,e,t,r,n,o),!0;case"mouseover":return ut=gt(ut,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return ct.set(i,gt(ct.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,dt.set(i,gt(dt.get(i)||null,e,t,r,n,o)),!0}return!1}(i,e,t,r,n))return;mt(e,n)}Mn(e,t,n,null,r)}}}function Zt(e,t,r,n){var o=ke(n);if(null!==(o=ro(o))){var i=Je(o);if(null===i)o=null;else{var s=i.tag;if(13===s){if(null!==(o=Xe(i)))return o;o=null}else if(3===s){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Mn(e,t,n,o,r),null}var er=null,tr=null,rr=null;function nr(){if(rr)return rr;var e,t,r=tr,n=r.length,o="value"in er?er.value:er.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var s=n-e;for(t=1;t<=s&&r[n-t]===o[i-t];t++);return rr=o.slice(e,1<t?1-t:void 0)}function or(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function ir(){return!0}function sr(){return!1}function ar(e){function t(t,r,n,o,i){for(var s in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?ir:sr,this.isPropagationStopped=sr,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ir)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ir)},persist:function(){},isPersistent:ir}),t}var lr,ur,cr,dr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pr=ar(dr),hr=o({},dr,{view:0,detail:0}),fr=ar(hr),mr=o({},hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Er,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cr&&(cr&&"mousemove"===e.type?(lr=e.screenX-cr.screenX,ur=e.screenY-cr.screenY):ur=lr=0,cr=e),lr)},movementY:function(e){return"movementY"in e?e.movementY:ur}}),gr=ar(mr),vr=ar(o({},mr,{dataTransfer:0})),br=ar(o({},hr,{relatedTarget:0})),yr=ar(o({},dr,{animationName:0,elapsedTime:0,pseudoElement:0})),xr=o({},dr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wr=ar(xr),_r=ar(o({},dr,{data:0})),Sr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ar={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function Er(){return kr}var Rr=o({},hr,{key:function(e){if(e.key){var t=Sr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=or(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ar[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Er,charCode:function(e){return"keypress"===e.type?or(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?or(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jr=ar(Rr),Or=ar(o({},mr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tr=ar(o({},hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Er})),Ir=ar(o({},dr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pr=o({},mr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nr=ar(Pr),Mr=[9,13,27,32],Dr=d&&"CompositionEvent"in window,Lr=null;d&&"documentMode"in document&&(Lr=document.documentMode);var Fr=d&&"TextEvent"in window&&!Lr,zr=d&&(!Dr||Lr&&8<Lr&&11>=Lr),Br=String.fromCharCode(32),$r=!1;function Hr(e,t){switch(e){case"keyup":return-1!==Mr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ur(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wr=!1;var Vr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vr[e.type]:"textarea"===t}function Gr(e,t,r,n){Te(n),0<(t=Ln(t,"onChange")).length&&(r=new pr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Qr=null,Kr=null;function Jr(e){jn(e,0)}function Xr(e){if(X(oo(e)))return e}function Yr(e,t){if("change"===e)return t}var Zr=!1;if(d){var en;if(d){var tn="oninput"in document;if(!tn){var rn=document.createElement("div");rn.setAttribute("oninput","return;"),tn="function"===typeof rn.oninput}en=tn}else en=!1;Zr=en&&(!document.documentMode||9<document.documentMode)}function nn(){Qr&&(Qr.detachEvent("onpropertychange",on),Kr=Qr=null)}function on(e){if("value"===e.propertyName&&Xr(Kr)){var t=[];if(Gr(t,Kr,e,ke(e)),e=Jr,Le)e(t);else{Le=!0;try{Pe(e,t)}finally{Le=!1,ze()}}}}function sn(e,t,r){"focusin"===e?(nn(),Kr=r,(Qr=t).attachEvent("onpropertychange",on)):"focusout"===e&&nn()}function an(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xr(Kr)}function ln(e,t){if("click"===e)return Xr(t)}function un(e,t){if("input"===e||"change"===e)return Xr(t)}var cn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},dn=Object.prototype.hasOwnProperty;function pn(e,t){if(cn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!dn.call(t,r[n])||!cn(e[r[n]],t[r[n]]))return!1;return!0}function hn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var r,n=hn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hn(n)}}function mn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gn(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=Y((e=t.contentWindow).document)}return t}function vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var bn=d&&"documentMode"in document&&11>=document.documentMode,yn=null,xn=null,wn=null,_n=!1;function Sn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;_n||null==yn||yn!==Y(n)||("selectionStart"in(n=yn)&&vn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},wn&&pn(wn,n)||(wn=n,0<(n=Ln(xn,"onSelect")).length&&(t=new pr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=yn)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Nt,2);for(var An="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cn=0;Cn<An.length;Cn++)Pt.set(An[Cn],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),En=new Set("cancel close invalid load scroll toggle".split(" ").concat(kn));function Rn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,i,a,l,u){if(Ke.apply(this,arguments),We){if(!We)throw Error(s(198));var c=Ve;We=!1,Ve=null,qe||(qe=!0,Ge=c)}}(n,t,void 0,e),e.currentTarget=null}function jn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Rn(o,a,u),i=l}else for(s=0;s<n.length;s++){if(l=(a=n[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Rn(o,a,u),i=l}}}if(qe)throw e=Ge,qe=!1,Ge=null,e}function On(e,t){var r=so(t),n=e+"__bubble";r.has(n)||(Nn(t,e,2,!1),r.add(n))}var Tn="_reactListening"+Math.random().toString(36).slice(2);function In(e){e[Tn]||(e[Tn]=!0,a.forEach((function(t){En.has(t)||Pn(t,!1,e,null),Pn(t,!0,e,null)})))}function Pn(e,t,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=r;if("selectionchange"===e&&9!==r.nodeType&&(i=r.ownerDocument),null!==n&&!t&&En.has(e)){if("scroll"!==e)return;o|=2,i=n}var s=so(i),a=e+"__"+(t?"capture":"bubble");s.has(a)||(t&&(o|=4),Nn(i,e,o,t),s.add(a))}function Nn(e,t,r,n){var o=Pt.get(t);switch(void 0===o?2:o){case 0:o=Jt;break;case 1:o=Xt;break;default:o=Yt}r=o.bind(null,t,r,e),o=void 0,!$e||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Mn(e,t,r,n,o){var i=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var s=n.tag;if(3===s||4===s){var a=n.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=n.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=ro(a)))return;if(5===(l=s.tag)||6===l){n=i=s;continue e}a=a.parentNode}}n=n.return}!function(e,t,r){if(Fe)return e(t,r);Fe=!0;try{return De(e,t,r)}finally{Fe=!1,ze()}}((function(){var n=i,o=ke(r),s=[];e:{var a=It.get(e);if(void 0!==a){var l=pr,u=e;switch(e){case"keypress":if(0===or(r))break e;case"keydown":case"keyup":l=jr;break;case"focusin":u="focus",l=br;break;case"focusout":u="blur",l=br;break;case"beforeblur":case"afterblur":l=br;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tr;break;case Rt:case jt:case Ot:l=yr;break;case Tt:l=Ir;break;case"scroll":l=fr;break;case"wheel":l=Nr;break;case"copy":case"cut":case"paste":l=wr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Or}var c=0!==(4&t),d=!c&&"scroll"===e,p=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=n;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=Be(f,p))&&c.push(Dn(f,m,h)))),d)break;f=f.return}0<c.length&&(a=new l(a,u,null,r,o),s.push({event:a,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(u=r.relatedTarget||r.fromElement)||!ro(u)&&!u[eo])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?ro(u):null)&&(u!==(d=Je(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=gr,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Or,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?a:oo(l),h=null==u?a:oo(u),(a=new c(m,f+"leave",l,r,o)).target=d,a.relatedTarget=h,m=null,ro(o)===n&&((c=new c(p,f+"enter",u,r,o)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(p=u,f=0,h=c=l;h;h=Fn(h))f++;for(h=0,m=p;m;m=Fn(m))h++;for(;0<f-h;)c=Fn(c),f--;for(;0<h-f;)p=Fn(p),h--;for(;f--;){if(c===p||null!==p&&c===p.alternate)break e;c=Fn(c),p=Fn(p)}c=null}else c=null;null!==l&&zn(s,a,l,c,!1),null!==u&&null!==d&&zn(s,d,u,c,!0)}if("select"===(l=(a=n?oo(n):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=Yr;else if(qr(a))if(Zr)g=un;else{g=an;var v=sn}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=ln);switch(g&&(g=g(e,n))?Gr(s,g,r,o):(v&&v(e,a,n),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&oe(a,"number",a.value)),v=n?oo(n):window,e){case"focusin":(qr(v)||"true"===v.contentEditable)&&(yn=v,xn=n,wn=null);break;case"focusout":wn=xn=yn=null;break;case"mousedown":_n=!0;break;case"contextmenu":case"mouseup":case"dragend":_n=!1,Sn(s,r,o);break;case"selectionchange":if(bn)break;case"keydown":case"keyup":Sn(s,r,o)}var b;if(Dr)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Wr?Hr(e,r)&&(y="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(y="onCompositionStart");y&&(zr&&"ko"!==r.locale&&(Wr||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wr&&(b=nr()):(tr="value"in(er=o)?er.value:er.textContent,Wr=!0)),0<(v=Ln(n,y)).length&&(y=new _r(y,e,null,r,o),s.push({event:y,listeners:v}),b?y.data=b:null!==(b=Ur(r))&&(y.data=b))),(b=Fr?function(e,t){switch(e){case"compositionend":return Ur(t);case"keypress":return 32!==t.which?null:($r=!0,Br);case"textInput":return(e=t.data)===Br&&$r?null:e;default:return null}}(e,r):function(e,t){if(Wr)return"compositionend"===e||!Dr&&Hr(e,t)?(e=nr(),rr=tr=er=null,Wr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Ln(n,"onBeforeInput")).length&&(o=new _r("onBeforeInput","beforeinput",null,r,o),s.push({event:o,listeners:n}),o.data=b))}jn(s,t)}))}function Dn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ln(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Be(e,r))&&n.unshift(Dn(e,i,o)),null!=(i=Be(e,t))&&n.push(Dn(e,i,o))),e=e.return}return n}function Fn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function zn(e,t,r,n,o){for(var i=t._reactName,s=[];null!==r&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(null!==l&&l===n)break;5===a.tag&&null!==u&&(a=u,o?null!=(l=Be(r,i))&&s.unshift(Dn(r,l,a)):o||null!=(l=Be(r,i))&&s.push(Dn(r,l,a))),r=r.return}0!==s.length&&e.push({event:t,listeners:s})}function Bn(){}var $n=null,Hn=null;function Un(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Wn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Vn="function"===typeof setTimeout?setTimeout:void 0,qn="function"===typeof clearTimeout?clearTimeout:void 0;function Gn(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Qn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Jn=0;var Xn=Math.random().toString(36).slice(2),Yn="__reactFiber$"+Xn,Zn="__reactProps$"+Xn,eo="__reactContainer$"+Xn,to="__reactEvents$"+Xn;function ro(e){var t=e[Yn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[eo]||r[Yn]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Kn(e);null!==e;){if(r=e[Yn])return r;e=Kn(e)}return t}r=(e=r).parentNode}return null}function no(e){return!(e=e[Yn]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function io(e){return e[Zn]||null}function so(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var ao=[],lo=-1;function uo(e){return{current:e}}function co(e){0>lo||(e.current=ao[lo],ao[lo]=null,lo--)}function po(e,t){lo++,ao[lo]=e.current,e.current=t}var ho={},fo=uo(ho),mo=uo(!1),go=ho;function vo(e,t){var r=e.type.contextTypes;if(!r)return ho;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yo(){co(mo),co(fo)}function xo(e,t,r){if(fo.current!==ho)throw Error(s(168));po(fo,t),po(mo,r)}function wo(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in e))throw Error(s(108,G(t)||"Unknown",i));return o({},r,n)}function _o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ho,go=fo.current,po(fo,e),po(mo,mo.current),!0}function So(e,t,r){var n=e.stateNode;if(!n)throw Error(s(169));r?(e=wo(e,t,go),n.__reactInternalMemoizedMergedChildContext=e,co(mo),co(fo),po(fo,e)):co(mo),po(mo,r)}var Ao=null,Co=null,ko=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,Ro=i.unstable_cancelCallback,jo=i.unstable_shouldYield,Oo=i.unstable_requestPaint,To=i.unstable_now,Io=i.unstable_getCurrentPriorityLevel,Po=i.unstable_ImmediatePriority,No=i.unstable_UserBlockingPriority,Mo=i.unstable_NormalPriority,Do=i.unstable_LowPriority,Lo=i.unstable_IdlePriority,Fo={},zo=void 0!==Oo?Oo:function(){},Bo=null,$o=null,Ho=!1,Uo=To(),Wo=1e4>Uo?To:function(){return To()-Uo};function Vo(){switch(Io()){case Po:return 99;case No:return 98;case Mo:return 97;case Do:return 96;case Lo:return 95;default:throw Error(s(332))}}function qo(e){switch(e){case 99:return Po;case 98:return No;case 97:return Mo;case 96:return Do;case 95:return Lo;default:throw Error(s(332))}}function Go(e,t){return e=qo(e),ko(e,t)}function Qo(e,t,r){return e=qo(e),Eo(e,t,r)}function Ko(){if(null!==$o){var e=$o;$o=null,Ro(e)}Jo()}function Jo(){if(!Ho&&null!==Bo){Ho=!0;var e=0;try{var t=Bo;Go(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Bo=null}catch(r){throw null!==Bo&&(Bo=Bo.slice(e+1)),Eo(Po,Ko),r}finally{Ho=!1}}}var Xo=w.ReactCurrentBatchConfig;function Yo(e,t){if(e&&e.defaultProps){for(var r in t=o({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var Zo=uo(null),ei=null,ti=null,ri=null;function ni(){ri=ti=ei=null}function oi(e){var t=Zo.current;co(Zo),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)===t){if(null===r||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,null!==r&&(r.childLanes|=t);e=e.return}}function si(e,t){ei=e,ri=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ls=!0),e.firstContext=null)}function ai(e,t){if(ri!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ri=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(s(308));ti=t,ei.dependencies={lanes:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var li=!1;function ui(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ci(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pi(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function hi(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?o=i=s:i=i.next=s,r=r.next}while(null!==r);null===i?o=i=t:i=i.next=t}else o=i=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function fi(e,t,r,n){var i=e.updateQueue;li=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===a?s=c:a.next=c,a=u;var d=e.alternate;if(null!==d){var p=(d=d.updateQueue).lastBaseUpdate;p!==a&&(null===p?d.firstBaseUpdate=c:p.next=c,d.lastBaseUpdate=u)}}if(null!==s){for(p=i.baseState,a=0,d=c=u=null;;){l=s.lane;var h=s.eventTime;if((n&l)===l){null!==d&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(l=t,h=r,m.tag){case 1:if("function"===typeof(f=m.payload)){p=f.call(h,p,l);break e}p=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null===(l="function"===typeof(f=m.payload)?f.call(h,p,l):f)||void 0===l)break e;p=o({},p,l);break e;case 2:li=!0}}null!==s.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[s]:l.push(s))}else h={eventTime:h,lane:l,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=h,u=p):d=d.next=h,a|=l;if(null===(s=s.next)){if(null===(l=i.shared.pending))break;s=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===d&&(u=p),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,Ha|=a,e.lanes=a,e.memoizedState=p}}function mi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!==typeof o)throw Error(s(191,o));o.call(n)}}}var gi=(new n.Component).refs;function vi(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:o({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var bi={isMounted:function(e){return!!(e=e._reactInternals)&&Je(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=hl(),o=fl(e),i=di(n,o);i.payload=t,void 0!==r&&null!==r&&(i.callback=r),pi(e,i),ml(e,o,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=hl(),o=fl(e),i=di(n,o);i.tag=1,i.payload=t,void 0!==r&&null!==r&&(i.callback=r),pi(e,i),ml(e,o,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=hl(),n=fl(e),o=di(r,n);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),pi(e,o),ml(e,n,r)}};function yi(e,t,r,n,o,i,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!pn(r,n)||!pn(o,i))}function xi(e,t,r){var n=!1,o=ho,i=t.contextType;return"object"===typeof i&&null!==i?i=ai(i):(o=bo(t)?go:fo.current,i=(n=null!==(n=t.contextTypes)&&void 0!==n)?vo(e,o):ho),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bi,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function wi(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&bi.enqueueReplaceState(t,t.state,null)}function _i(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=gi,ui(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=ai(i):(i=bo(t)?go:fo.current,o.context=vo(e,i)),fi(e,r,o,n),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,r),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&bi.enqueueReplaceState(o,o.state,null),fi(e,r,o,n),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var Si=Array.isArray;function Ai(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(s(309));var n=r.stateNode}if(!n)throw Error(s(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=n.refs;t===gi&&(t=n.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(s(284));if(!r._owner)throw Error(s(290,e))}return e}function Ci(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ki(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.flags=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Gl(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags=2,r):n:(t.flags=2,r):r}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Xl(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function u(e,t,r,n){return null!==t&&t.elementType===r.type?((n=o(t,r.props)).ref=Ai(e,t,r),n.return=e,n):((n=Ql(r.type,r.key,r.props,null,e.mode,n)).ref=Ai(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Yl(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function d(e,t,r,n,i){return null===t||7!==t.tag?((t=Kl(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function p(e,t,r){if("string"===typeof t||"number"===typeof t)return(t=Xl(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(r=Ql(t.type,t.key,t.props,null,e.mode,r)).ref=Ai(e,null,t),r.return=e,r;case S:return(t=Yl(t,e.mode,r)).return=e,t}if(Si(t)||H(t))return(t=Kl(t,e.mode,r,null)).return=e,t;Ci(e,t)}return null}function h(e,t,r,n){var o=null!==t?t.key:null;if("string"===typeof r||"number"===typeof r)return null!==o?null:l(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return r.key===o?r.type===A?d(e,t,r.props.children,n,o):u(e,t,r,n):null;case S:return r.key===o?c(e,t,r,n):null}if(Si(r)||H(r))return null!==o?null:d(e,t,r,n,null);Ci(e,r)}return null}function f(e,t,r,n,o){if("string"===typeof n||"number"===typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return e=e.get(null===n.key?r:n.key)||null,n.type===A?d(t,e,n.props.children,o,n.key):u(t,e,n,o);case S:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o)}if(Si(n)||H(n))return d(t,e=e.get(r)||null,n,o,null);Ci(t,n)}return null}function m(o,s,a,l){for(var u=null,c=null,d=s,m=s=0,g=null;null!==d&&m<a.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(o,d,a[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),s=i(v,s,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===a.length)return r(o,d),u;if(null===d){for(;m<a.length;m++)null!==(d=p(o,a[m],l))&&(s=i(d,s,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=n(o,d);m<a.length;m++)null!==(g=f(d,o,m,a[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),s=i(g,s,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(o,e)})),u}function g(o,a,l,u){var c=H(l);if("function"!==typeof c)throw Error(s(150));if(null==(l=c.call(l)))throw Error(s(151));for(var d=c=null,m=a,g=a=0,v=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=h(o,m,b.value,u);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),a=i(y,a,g),null===d?c=y:d.sibling=y,d=y,m=v}if(b.done)return r(o,m),c;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=p(o,b.value,u))&&(a=i(b,a,g),null===d?c=b:d.sibling=b,d=b);return c}for(m=n(o,m);!b.done;g++,b=l.next())null!==(b=f(m,o,g,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),a=i(b,a,g),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(o,e)})),c}return function(e,n,i,l){var u="object"===typeof i&&null!==i&&i.type===A&&null===i.key;u&&(i=i.props.children);var c="object"===typeof i&&null!==i;if(c)switch(i.$$typeof){case _:e:{for(c=i.key,u=n;null!==u;){if(u.key===c){if(7===u.tag){if(i.type===A){r(e,u.sibling),(n=o(u,i.props.children)).return=e,e=n;break e}}else if(u.elementType===i.type){r(e,u.sibling),(n=o(u,i.props)).ref=Ai(e,u,i),n.return=e,e=n;break e}r(e,u);break}t(e,u),u=u.sibling}i.type===A?((n=Kl(i.props.children,e.mode,l,i.key)).return=e,e=n):((l=Ql(i.type,i.key,i.props,null,e.mode,l)).ref=Ai(e,n,i),l.return=e,e=l)}return a(e);case S:e:{for(u=i.key;null!==n;){if(n.key===u){if(4===n.tag&&n.stateNode.containerInfo===i.containerInfo&&n.stateNode.implementation===i.implementation){r(e,n.sibling),(n=o(n,i.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=Yl(i,e.mode,l)).return=e,e=n}return a(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==n&&6===n.tag?(r(e,n.sibling),(n=o(n,i)).return=e,e=n):(r(e,n),(n=Xl(i,e.mode,l)).return=e,e=n),a(e);if(Si(i))return m(e,n,i,l);if(H(i))return g(e,n,i,l);if(c&&Ci(e,i),"undefined"===typeof i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,G(e.type)||"Component"))}return r(e,n)}}var Ei=ki(!0),Ri=ki(!1),ji={},Oi=uo(ji),Ti=uo(ji),Ii=uo(ji);function Pi(e){if(e===ji)throw Error(s(174));return e}function Ni(e,t){switch(po(Ii,t),po(Ti,e),po(Oi,ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}co(Oi),po(Oi,t)}function Mi(){co(Oi),co(Ti),co(Ii)}function Di(e){Pi(Ii.current);var t=Pi(Oi.current),r=fe(t,e.type);t!==r&&(po(Ti,e),po(Oi,r))}function Li(e){Ti.current===e&&(co(Oi),co(Ti))}var Fi=uo(0);function zi(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bi=null,$i=null,Hi=!1;function Ui(e,t){var r=Vl(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Wi(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Vi(e){if(Hi){var t=$i;if(t){var r=t;if(!Wi(e,t)){if(!(t=Qn(r.nextSibling))||!Wi(e,t))return e.flags=-1025&e.flags|2,Hi=!1,void(Bi=e);Ui(Bi,r)}Bi=e,$i=Qn(t.firstChild)}else e.flags=-1025&e.flags|2,Hi=!1,Bi=e}}function qi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bi=e}function Gi(e){if(e!==Bi)return!1;if(!Hi)return qi(e),Hi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Wn(t,e.memoizedProps))for(t=$i;t;)Ui(e,t),t=Qn(t.nextSibling);if(qi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){$i=Qn(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}$i=null}}else $i=Bi?Qn(e.stateNode.nextSibling):null;return!0}function Qi(){$i=Bi=null,Hi=!1}var Ki=[];function Ji(){for(var e=0;e<Ki.length;e++)Ki[e]._workInProgressVersionPrimary=null;Ki.length=0}var Xi=w.ReactCurrentDispatcher,Yi=w.ReactCurrentBatchConfig,Zi=0,es=null,ts=null,rs=null,ns=!1,os=!1;function is(){throw Error(s(321))}function ss(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!cn(e[r],t[r]))return!1;return!0}function as(e,t,r,n,o,i){if(Zi=i,es=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=null===e||null===e.memoizedState?Ps:Ns,e=r(n,o),os){i=0;do{if(os=!1,!(25>i))throw Error(s(301));i+=1,rs=ts=null,t.updateQueue=null,Xi.current=Ms,e=r(n,o)}while(os)}if(Xi.current=Is,t=null!==ts&&null!==ts.next,Zi=0,rs=ts=es=null,ns=!1,t)throw Error(s(300));return e}function ls(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===rs?es.memoizedState=rs=e:rs=rs.next=e,rs}function us(){if(null===ts){var e=es.alternate;e=null!==e?e.memoizedState:null}else e=ts.next;var t=null===rs?es.memoizedState:rs.next;if(null!==t)rs=t,ts=e;else{if(null===e)throw Error(s(310));e={memoizedState:(ts=e).memoizedState,baseState:ts.baseState,baseQueue:ts.baseQueue,queue:ts.queue,next:null},null===rs?es.memoizedState=rs=e:rs=rs.next=e}return rs}function cs(e,t){return"function"===typeof t?t(e):t}function ds(e){var t=us(),r=t.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=e;var n=ts,o=n.baseQueue,i=r.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(null!==o){o=o.next,n=n.baseState;var l=a=i=null,u=o;do{var c=u.lane;if((Zi&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(a=l=d,i=n):l=l.next=d,es.lanes|=c,Ha|=c}u=u.next}while(null!==u&&u!==o);null===l?i=n:l.next=a,cn(n,t.memoizedState)||(Ls=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ps(e){var t=us(),r=t.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);cn(i,t.memoizedState)||(Ls=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function hs(e,t,r){var n=t._getVersion;n=n(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===n:(e=e.mutableReadLanes,(e=(Zi&e)===e)&&(t._workInProgressVersionPrimary=n,Ki.push(t))),e)return r(t._source);throw Ki.push(t),Error(s(350))}function fs(e,t,r,n){var o=Na;if(null===o)throw Error(s(349));var i=t._getVersion,a=i(t._source),l=Xi.current,u=l.useState((function(){return hs(o,t,r)})),c=u[1],d=u[0];u=rs;var p=e.memoizedState,h=p.refs,f=h.getSnapshot,m=p.source;p=p.subscribe;var g=es;return e.memoizedState={refs:h,source:t,subscribe:n},l.useEffect((function(){h.getSnapshot=r,h.setSnapshot=c;var e=i(t._source);if(!cn(a,e)){e=r(t._source),cn(d,e)||(c(e),e=fl(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var n=o.entanglements,s=e;0<s;){var l=31-Wt(s),u=1<<l;n[l]|=e,s&=~u}}}),[r,t,n]),l.useEffect((function(){return n(t._source,(function(){var e=h.getSnapshot,r=h.setSnapshot;try{r(e(t._source));var n=fl(g);o.mutableReadLanes|=n&o.pendingLanes}catch(i){r((function(){throw i}))}}))}),[t,n]),cn(f,r)&&cn(m,t)&&cn(p,n)||((e={pending:null,dispatch:null,lastRenderedReducer:cs,lastRenderedState:d}).dispatch=c=Ts.bind(null,es,e),u.queue=e,u.baseQueue=null,d=hs(o,t,r),u.memoizedState=u.baseState=d),d}function ms(e,t,r){return fs(us(),e,t,r)}function gs(e){var t=ls();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:cs,lastRenderedState:e}).dispatch=Ts.bind(null,es,e),[t.memoizedState,e]}function vs(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=es.updateQueue)?(t={lastEffect:null},es.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function bs(e){return e={current:e},ls().memoizedState=e}function ys(){return us().memoizedState}function xs(e,t,r,n){var o=ls();es.flags|=e,o.memoizedState=vs(1|t,r,void 0,void 0===n?null:n)}function ws(e,t,r,n){var o=us();n=void 0===n?null:n;var i=void 0;if(null!==ts){var s=ts.memoizedState;if(i=s.destroy,null!==n&&ss(n,s.deps))return void vs(t,r,i,n)}es.flags|=e,o.memoizedState=vs(1|t,r,i,n)}function _s(e,t){return xs(516,4,e,t)}function Ss(e,t){return ws(516,4,e,t)}function As(e,t){return ws(4,2,e,t)}function Cs(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ks(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,ws(4,2,Cs.bind(null,t,e),r)}function Es(){}function Rs(e,t){var r=us();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ss(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function js(e,t){var r=us();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ss(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Os(e,t){var r=Vo();Go(98>r?98:r,(function(){e(!0)})),Go(97<r?97:r,(function(){var r=Yi.transition;Yi.transition=1;try{e(!1),t()}finally{Yi.transition=r}}))}function Ts(e,t,r){var n=hl(),o=fl(e),i={lane:o,action:r,eagerReducer:null,eagerState:null,next:null},s=t.pending;if(null===s?i.next=i:(i.next=s.next,s.next=i),t.pending=i,s=e.alternate,e===es||null!==s&&s===es)os=ns=!0;else{if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=s(a,r);if(i.eagerReducer=s,i.eagerState=l,cn(l,a))return}catch(u){}ml(e,o,n)}}var Is={readContext:ai,useCallback:is,useContext:is,useEffect:is,useImperativeHandle:is,useLayoutEffect:is,useMemo:is,useReducer:is,useRef:is,useState:is,useDebugValue:is,useDeferredValue:is,useTransition:is,useMutableSource:is,useOpaqueIdentifier:is,unstable_isNewReconciler:!1},Ps={readContext:ai,useCallback:function(e,t){return ls().memoizedState=[e,void 0===t?null:t],e},useContext:ai,useEffect:_s,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,xs(4,2,Cs.bind(null,t,e),r)},useLayoutEffect:function(e,t){return xs(4,2,e,t)},useMemo:function(e,t){var r=ls();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ls();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ts.bind(null,es,e),[n.memoizedState,e]},useRef:bs,useState:gs,useDebugValue:Es,useDeferredValue:function(e){var t=gs(e),r=t[0],n=t[1];return _s((function(){var t=Yi.transition;Yi.transition=1;try{n(e)}finally{Yi.transition=t}}),[e]),r},useTransition:function(){var e=gs(!1),t=e[0];return bs(e=Os.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,r){var n=ls();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},fs(n,e,t,r)},useOpaqueIdentifier:function(){if(Hi){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,r("r:"+(Jn++).toString(36))),Error(s(355))})),r=gs(t)[1];return 0===(2&es.mode)&&(es.flags|=516,vs(5,(function(){r("r:"+(Jn++).toString(36))}),void 0,null)),t}return gs(t="r:"+(Jn++).toString(36)),t},unstable_isNewReconciler:!1},Ns={readContext:ai,useCallback:Rs,useContext:ai,useEffect:Ss,useImperativeHandle:ks,useLayoutEffect:As,useMemo:js,useReducer:ds,useRef:ys,useState:function(){return ds(cs)},useDebugValue:Es,useDeferredValue:function(e){var t=ds(cs),r=t[0],n=t[1];return Ss((function(){var t=Yi.transition;Yi.transition=1;try{n(e)}finally{Yi.transition=t}}),[e]),r},useTransition:function(){var e=ds(cs)[0];return[ys().current,e]},useMutableSource:ms,useOpaqueIdentifier:function(){return ds(cs)[0]},unstable_isNewReconciler:!1},Ms={readContext:ai,useCallback:Rs,useContext:ai,useEffect:Ss,useImperativeHandle:ks,useLayoutEffect:As,useMemo:js,useReducer:ps,useRef:ys,useState:function(){return ps(cs)},useDebugValue:Es,useDeferredValue:function(e){var t=ps(cs),r=t[0],n=t[1];return Ss((function(){var t=Yi.transition;Yi.transition=1;try{n(e)}finally{Yi.transition=t}}),[e]),r},useTransition:function(){var e=ps(cs)[0];return[ys().current,e]},useMutableSource:ms,useOpaqueIdentifier:function(){return ps(cs)[0]},unstable_isNewReconciler:!1},Ds=w.ReactCurrentOwner,Ls=!1;function Fs(e,t,r,n){t.child=null===e?Ri(t,null,r,n):Ei(t,e.child,r,n)}function zs(e,t,r,n,o){r=r.render;var i=t.ref;return si(t,o),n=as(e,t,r,n,i,o),null===e||Ls?(t.flags|=1,Fs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,sa(e,t,o))}function Bs(e,t,r,n,o,i){if(null===e){var s=r.type;return"function"!==typeof s||ql(s)||void 0!==s.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Ql(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,$s(e,t,s,n,o,i))}return s=e.child,0===(o&i)&&(o=s.memoizedProps,(r=null!==(r=r.compare)?r:pn)(o,n)&&e.ref===t.ref)?sa(e,t,i):(t.flags|=1,(e=Gl(s,n)).ref=t.ref,e.return=t,t.child=e)}function $s(e,t,r,n,o,i){if(null!==e&&pn(e.memoizedProps,n)&&e.ref===t.ref){if(Ls=!1,0===(i&o))return t.lanes=e.lanes,sa(e,t,i);0!==(16384&e.flags)&&(Ls=!0)}return Ws(e,t,r,n,i)}function Hs(e,t,r){var n=t.pendingProps,o=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode||"unstable-defer-without-hiding"===n.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},Sl(t,r);else{if(0===(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Sl(t,e),null;t.memoizedState={baseLanes:0},Sl(t,null!==i?i.baseLanes:r)}else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,Sl(t,n);return Fs(e,t,o,r),t.child}function Us(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=128)}function Ws(e,t,r,n,o){var i=bo(r)?go:fo.current;return i=vo(t,i),si(t,o),r=as(e,t,r,n,i,o),null===e||Ls?(t.flags|=1,Fs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,sa(e,t,o))}function Vs(e,t,r,n,o){if(bo(r)){var i=!0;_o(t)}else i=!1;if(si(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),xi(t,r,n),_i(t,r,n,o),n=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=r.contextType;"object"===typeof u&&null!==u?u=ai(u):u=vo(t,u=bo(r)?go:fo.current);var c=r.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof s.getSnapshotBeforeUpdate;d||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==n||l!==u)&&wi(t,s,n,u),li=!1;var p=t.memoizedState;s.state=p,fi(t,n,s,o),l=t.memoizedState,a!==n||p!==l||mo.current||li?("function"===typeof c&&(vi(t,r,c,n),l=t.memoizedState),(a=li||yi(t,r,a,n,p,l,u))?(d||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4)):("function"===typeof s.componentDidMount&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=u,n=a):("function"===typeof s.componentDidMount&&(t.flags|=4),n=!1)}else{s=t.stateNode,ci(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Yo(t.type,a),s.props=u,d=t.pendingProps,p=s.context,"object"===typeof(l=r.contextType)&&null!==l?l=ai(l):l=vo(t,l=bo(r)?go:fo.current);var h=r.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==d||p!==l)&&wi(t,s,n,l),li=!1,p=t.memoizedState,s.state=p,fi(t,n,s,o);var f=t.memoizedState;a!==d||p!==f||mo.current||li?("function"===typeof h&&(vi(t,r,h,n),f=t.memoizedState),(u=li||yi(t,r,u,n,p,f,l))?(c||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(n,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(n,f,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=f),s.props=n,s.state=f,s.context=l,n=u):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),n=!1)}return qs(e,t,r,n,i,o)}function qs(e,t,r,n,o,i){Us(e,t);var s=0!==(64&t.flags);if(!n&&!s)return o&&So(t,r,!1),sa(e,t,i);n=t.stateNode,Ds.current=t;var a=s&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&s?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,a,i)):Fs(e,t,a,i),t.memoizedState=n.state,o&&So(t,r,!0),t.child}function Gs(e){var t=e.stateNode;t.pendingContext?xo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xo(0,t.context,!1),Ni(e,t.containerInfo)}var Qs,Ks,Js,Xs,Ys={dehydrated:null,retryLane:0};function Zs(e,t,r){var n,o=t.pendingProps,i=Fi.current,s=!1;return(n=0!==(64&t.flags))||(n=(null===e||null!==e.memoizedState)&&0!==(2&i)),n?(s=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),po(Fi,1&i),null===e?(void 0!==o.fallback&&Vi(t),e=o.children,i=o.fallback,s?(e=ea(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Ys,e):"number"===typeof o.unstable_expectedLoadTime?(e=ea(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Ys,t.lanes=33554432,e):((r=Jl({mode:"visible",children:e},t.mode,r,null)).return=t,t.child=r)):(e.memoizedState,s?(o=ra(e,t,o.children,o.fallback,r),s=t.child,i=e.child.memoizedState,s.memoizedState=null===i?{baseLanes:r}:{baseLanes:i.baseLanes|r},s.childLanes=e.childLanes&~r,t.memoizedState=Ys,o):(r=ta(e,t,o.children,r),t.memoizedState=null,r))}function ea(e,t,r,n){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Jl(t,o,0,null),r=Kl(r,o,n,null),i.return=e,r.return=e,i.sibling=r,e.child=i,r}function ta(e,t,r,n){var o=e.child;return e=o.sibling,r=Gl(o,{mode:"visible",children:r}),0===(2&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function ra(e,t,r,n,o){var i=t.mode,s=e.child;e=s.sibling;var a={mode:"hidden",children:r};return 0===(2&i)&&t.child!==s?((r=t.child).childLanes=0,r.pendingProps=a,null!==(s=r.lastEffect)?(t.firstEffect=r.firstEffect,t.lastEffect=s,s.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Gl(s,a),null!==e?n=Gl(e,n):(n=Kl(n,i,o,null)).flags|=2,n.return=t,r.return=t,r.sibling=n,t.child=r,n}function na(e,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ii(e.return,t)}function oa(e,t,r,n,o,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o,lastEffect:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=o,s.lastEffect=i)}function ia(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Fs(e,t,n.children,r),0!==(2&(n=Fi.current)))n=1&n|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&na(e,r);else if(19===e.tag)na(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(po(Fi,n),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===zi(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),oa(t,!1,o,r,i,t.lastEffect);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===zi(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}oa(t,!0,r,null,i,t.lastEffect);break;case"together":oa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function sa(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ha|=t.lanes,0!==(r&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(r=Gl(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Gl(e,e.pendingProps)).return=t;r.sibling=null}return t.child}return null}function aa(e,t){if(!Hi)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function la(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return bo(t.type)&&yo(),null;case 3:return Mi(),co(mo),co(fo),Ji(),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Gi(t)?t.flags|=4:n.hydrate||(t.flags|=256)),Ks(t),null;case 5:Li(t);var i=Pi(Ii.current);if(r=t.type,null!==e&&null!=t.stateNode)Js(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(null===t.stateNode)throw Error(s(166));return null}if(e=Pi(Oi.current),Gi(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Yn]=t,n[Zn]=a,r){case"dialog":On("cancel",n),On("close",n);break;case"iframe":case"object":case"embed":On("load",n);break;case"video":case"audio":for(e=0;e<kn.length;e++)On(kn[e],n);break;case"source":On("error",n);break;case"img":case"image":case"link":On("error",n),On("load",n);break;case"details":On("toggle",n);break;case"input":ee(n,a),On("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},On("invalid",n);break;case"textarea":le(n,a),On("invalid",n)}for(var u in Ae(r,a),e=null,a)a.hasOwnProperty(u)&&(i=a[u],"children"===u?"string"===typeof i?n.textContent!==i&&(e=["children",i]):"number"===typeof i&&n.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&On("scroll",n));switch(r){case"input":J(n),ne(n,a,!0);break;case"textarea":J(n),ce(n);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(n.onclick=Bn)}n=e,t.updateQueue=n,null!==n&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===de&&(e=he(r)),e===de?"script"===r?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=u.createElement(r,{is:n.is}):(e=u.createElement(r),"select"===r&&(u=e,n.multiple?u.multiple=!0:n.size&&(u.size=n.size))):e=u.createElementNS(e,r),e[Yn]=t,e[Zn]=n,Qs(e,t,!1,!1),t.stateNode=e,u=Ce(r,n),r){case"dialog":On("cancel",e),On("close",e),i=n;break;case"iframe":case"object":case"embed":On("load",e),i=n;break;case"video":case"audio":for(i=0;i<kn.length;i++)On(kn[i],e);i=n;break;case"source":On("error",e),i=n;break;case"img":case"image":case"link":On("error",e),On("load",e),i=n;break;case"details":On("toggle",e),i=n;break;case"input":ee(e,n),i=Z(e,n),On("invalid",e);break;case"option":i=ie(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=o({},n,{value:void 0}),On("invalid",e);break;case"textarea":le(e,n),i=ae(e,n),On("invalid",e);break;default:i=n}Ae(r,i);var c=i;for(a in c)if(c.hasOwnProperty(a)){var d=c[a];"style"===a?_e(e,d):"dangerouslySetInnerHTML"===a?null!=(d=d?d.__html:void 0)&&ve(e,d):"children"===a?"string"===typeof d?("textarea"!==r||""!==d)&&be(e,d):"number"===typeof d&&be(e,""+d):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=d&&"onScroll"===a&&On("scroll",e):null!=d&&x(e,a,d,u))}switch(r){case"input":J(e),ne(e,n,!1);break;case"textarea":J(e),ce(e);break;case"option":null!=n.value&&e.setAttribute("value",""+Q(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?se(e,!!n.multiple,a,!1):null!=n.defaultValue&&se(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Bn)}Un(r,n)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Xs(e,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(s(166));r=Pi(Ii.current),Pi(Oi.current),Gi(t)?(n=t.stateNode,r=t.memoizedProps,n[Yn]=t,n.nodeValue!==r&&(t.flags|=4)):((n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Yn]=t,t.stateNode=n)}return null;case 13:return co(Fi),n=t.memoizedState,0!==(64&t.flags)?(t.lanes=r,t):(n=null!==n,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Gi(t):r=null!==e.memoizedState,n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Fi.current)?0===za&&(za=3):(0!==za&&3!==za||(za=4),null===Na||0===(134217727&Ha)&&0===(134217727&Ua)||yl(Na,Da))),(n||r)&&(t.flags|=4),null);case 4:return Mi(),Ks(t),null===e&&In(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(co(Fi),null===(n=t.memoizedState))return null;if(a=0!==(64&t.flags),null===(u=n.rendering))if(a)aa(n,!1);else{if(0!==za||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=zi(e))){for(t.flags|=64,aa(n,!1),null!==(a=u.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return po(Fi,1&Fi.current|2),t.child}e=e.sibling}null!==n.tail&&Wo()>Ga&&(t.flags|=64,a=!0,aa(n,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=zi(u))){if(t.flags|=64,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),aa(n,!0),null===n.tail&&"hidden"===n.tailMode&&!u.alternate&&!Hi)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Wo()-n.renderingStartTime>Ga&&1073741824!==r&&(t.flags|=64,a=!0,aa(n,!1),t.lanes=33554432);n.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=n.last)?r.sibling=u:t.child=u,n.last=u)}return null!==n.tail?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Wo(),r.sibling=null,t=Fi.current,po(Fi,a?1&t|2:1&t),r):null;case 23:case 24:return Al(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==n.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function ua(e){switch(e.tag){case 1:bo(e.type)&&yo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Mi(),co(mo),co(fo),Ji(),0!==(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Li(e),null;case 13:return co(Fi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return co(Fi),null;case 4:return Mi(),null;case 10:return oi(e),null;case 23:case 24:return Al(),null;default:return null}}function ca(e,t){try{var r="",n=t;do{r+=q(n),n=n.return}while(n);var o=r}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function da(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}Qs=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ks=function(){},Js=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Pi(Oi.current);var s,a=null;switch(r){case"input":i=Z(e,i),n=Z(e,n),a=[];break;case"option":i=ie(e,i),n=ie(e,n),a=[];break;case"select":i=o({},i,{value:void 0}),n=o({},n,{value:void 0}),a=[];break;case"textarea":i=ae(e,i),n=ae(e,n),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof n.onClick&&(e.onclick=Bn)}for(d in Ae(r,n),r=null,i)if(!n.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var u=i[d];for(s in u)u.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?a||(a=[]):(a=a||[]).push(d,null));for(d in n){var c=n[d];if(u=null!=i?i[d]:void 0,n.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(r||(r={}),r[s]=c[s])}else r||(a||(a=[]),a.push(d,r)),r=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(a=a||[]).push(d,c)):"children"===d?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&On("scroll",e),a||u===c||(a=[])):"object"===typeof c&&null!==c&&c.$$typeof===M?c.toString():(a=a||[]).push(d,c))}r&&(a=a||[]).push("style",r);var d=a;(t.updateQueue=d)&&(t.flags|=4)}},Xs=function(e,t,r,n){r!==n&&(t.flags|=4)};var pa="function"===typeof WeakMap?WeakMap:Map;function ha(e,t,r){(r=di(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Xa||(Xa=!0,Ya=n),da(0,t)},r}function fa(e,t,r){(r=di(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var o=t.value;r.payload=function(){return da(0,t),n(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(r.callback=function(){"function"!==typeof n&&(null===Za?Za=new Set([this]):Za.add(this),da(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}var ma="function"===typeof WeakSet?WeakSet:Set;function ga(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(r){$l(e,r)}else t.current=null}function va(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Yo(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gn(t.stateNode.containerInfo))}throw Error(s(163))}function ba(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;n=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Fl(r,e),Ll(r,e)),e=n}while(e!==t)}return;case 1:return e=r.stateNode,4&r.flags&&(null===t?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Yo(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=r.updateQueue)&&mi(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}mi(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.flags&&Un(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&_t(r)))))}throw Error(s(163))}function ya(e,t){for(var r=e;;){if(5===r.tag){var n=r.stateNode;if(t)"function"===typeof(n=n.style).setProperty?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var o=r.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,n.style.display=we("display",o)}}else if(6===r.tag)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((23!==r.tag&&24!==r.tag||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function xa(e,t){if(Co&&"function"===typeof Co.onCommitFiberUnmount)try{Co.onCommitFiberUnmount(Ao,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var n=r,o=n.destroy;if(n=n.tag,void 0!==o)if(0!==(4&n))Fl(t,r);else{n=t;try{o()}catch(i){$l(n,i)}}r=r.next}while(r!==e)}break;case 1:if(ga(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){$l(t,i)}break;case 5:ga(t);break;case 4:ka(e,t)}}function wa(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function _a(e){return 5===e.tag||3===e.tag||4===e.tag}function Sa(e){e:{for(var t=e.return;null!==t;){if(_a(t))break e;t=t.return}throw Error(s(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(s(161))}16&r.flags&&(be(t,""),r.flags&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||_a(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.flags)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.flags)){r=r.stateNode;break e}}n?Aa(e,r,t):Ca(e,r,t)}function Aa(e,t,r){var n=e.tag,o=5===n||6===n;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=Bn));else if(4!==n&&null!==(e=e.child))for(Aa(e,t,r),e=e.sibling;null!==e;)Aa(e,t,r),e=e.sibling}function Ca(e,t,r){var n=e.tag,o=5===n||6===n;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(Ca(e,t,r),e=e.sibling;null!==e;)Ca(e,t,r),e=e.sibling}function ka(e,t){for(var r,n,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(s(160));switch(r=i.stateNode,i.tag){case 5:n=!1;break e;case 3:case 4:r=r.containerInfo,n=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var a=e,l=o,u=l;;)if(xa(a,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}n?(a=r,l=o.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,n=!0,o.child.return=o,o=o.child;continue}}else if(xa(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Ea(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var n=r=r.next;do{3===(3&n.tag)&&(e=n.destroy,n.destroy=void 0,void 0!==e&&e()),n=n.next}while(n!==r)}return;case 1:case 12:case 17:return;case 5:if(null!=(r=t.stateNode)){n=t.memoizedProps;var o=null!==e?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[Zn]=n,"input"===e&&"radio"===n.type&&null!=n.name&&te(r,n),Ce(e,o),t=Ce(e,n),o=0;o<i.length;o+=2){var a=i[o],l=i[o+1];"style"===a?_e(r,l):"dangerouslySetInnerHTML"===a?ve(r,l):"children"===a?be(r,l):x(r,a,l,t)}switch(e){case"input":re(r,n);break;case"textarea":ue(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(i=n.value)?se(r,!!n.multiple,i,!1):e!==!!n.multiple&&(null!=n.defaultValue?se(r,!!n.multiple,n.defaultValue,!0):se(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((r=t.stateNode).hydrate&&(r.hydrate=!1,_t(r.containerInfo)));case 13:return null!==t.memoizedState&&(qa=Wo(),ya(t.child,!0)),void Ra(t);case 19:return void Ra(t);case 23:case 24:return void ya(t,null!==t.memoizedState)}throw Error(s(163))}function Ra(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new ma),t.forEach((function(t){var n=Ul.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function ja(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Oa=Math.ceil,Ta=w.ReactCurrentDispatcher,Ia=w.ReactCurrentOwner,Pa=0,Na=null,Ma=null,Da=0,La=0,Fa=uo(0),za=0,Ba=null,$a=0,Ha=0,Ua=0,Wa=0,Va=null,qa=0,Ga=1/0;function Qa(){Ga=Wo()+500}var Ka,Ja=null,Xa=!1,Ya=null,Za=null,el=!1,tl=null,rl=90,nl=[],ol=[],il=null,sl=0,al=null,ll=-1,ul=0,cl=0,dl=null,pl=!1;function hl(){return 0!==(48&Pa)?Wo():-1!==ll?ll:ll=Wo()}function fl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Vo()?1:2;if(0===ul&&(ul=$a),0!==Xo.transition){0!==cl&&(cl=null!==Va?Va.pendingLanes:0),e=ul;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Vo(),0!==(4&Pa)&&98===e?e=Bt(12,ul):e=Bt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ul),e}function ml(e,t,r){if(50<sl)throw sl=0,al=null,Error(s(185));if(null===(e=gl(e,t)))return null;Ut(e,t,r),e===Na&&(Ua|=t,4===za&&yl(e,Da));var n=Vo();1===t?0!==(8&Pa)&&0===(48&Pa)?xl(e):(vl(e,r),0===Pa&&(Qa(),Ko())):(0===(4&Pa)||98!==n&&99!==n||(null===il?il=new Set([e]):il.add(e)),vl(e,r)),Va=e}function gl(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}function vl(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-Wt(a),u=1<<l,c=i[l];if(-1===c){if(0===(u&n)||0!==(u&o)){c=t,Lt(u);var d=Dt;i[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);a&=~u}if(n=Ft(e,e===Na?Da:0),t=Dt,0===n)null!==r&&(r!==Fo&&Ro(r),e.callbackNode=null,e.callbackPriority=0);else{if(null!==r){if(e.callbackPriority===t)return;r!==Fo&&Ro(r)}15===t?(r=xl.bind(null,e),null===Bo?(Bo=[r],$o=Eo(Po,Jo)):Bo.push(r),r=Fo):14===t?r=Qo(99,xl.bind(null,e)):(r=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),r=Qo(r,bl.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function bl(e){if(ll=-1,cl=ul=0,0!==(48&Pa))throw Error(s(327));var t=e.callbackNode;if(Dl()&&e.callbackNode!==t)return null;var r=Ft(e,e===Na?Da:0);if(0===r)return null;var n=r,o=Pa;Pa|=16;var i=El();for(Na===e&&Da===n||(Qa(),Cl(e,n));;)try{Ol();break}catch(l){kl(e,l)}if(ni(),Ta.current=i,Pa=o,null!==Ma?n=0:(Na=null,Da=0,n=za),0!==($a&Ua))Cl(e,0);else if(0!==n){if(2===n&&(Pa|=64,e.hydrate&&(e.hydrate=!1,Gn(e.containerInfo)),0!==(r=zt(e))&&(n=Rl(e,r))),1===n)throw t=Ba,Cl(e,0),yl(e,r),vl(e,Wo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(s(345));case 2:case 5:Pl(e);break;case 3:if(yl(e,r),(62914560&r)===r&&10<(n=qa+500-Wo())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){hl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Vn(Pl.bind(null,e),n);break}Pl(e);break;case 4:if(yl(e,r),(4186112&r)===r)break;for(n=e.eventTimes,o=-1;0<r;){var a=31-Wt(r);i=1<<a,(a=n[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Wo()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Oa(r/1960))-r)){e.timeoutHandle=Vn(Pl.bind(null,e),r);break}Pl(e);break;default:throw Error(s(329))}}return vl(e,Wo()),e.callbackNode===t?bl.bind(null,e):null}function yl(e,t){for(t&=~Wa,t&=~Ua,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Wt(t),n=1<<r;e[r]=-1,t&=~n}}function xl(e){if(0!==(48&Pa))throw Error(s(327));if(Dl(),e===Na&&0!==(e.expiredLanes&Da)){var t=Da,r=Rl(e,t);0!==($a&Ua)&&(r=Rl(e,t=Ft(e,t)))}else r=Rl(e,t=Ft(e,0));if(0!==e.tag&&2===r&&(Pa|=64,e.hydrate&&(e.hydrate=!1,Gn(e.containerInfo)),0!==(t=zt(e))&&(r=Rl(e,t))),1===r)throw r=Ba,Cl(e,0),yl(e,t),vl(e,Wo()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pl(e),vl(e,Wo()),null}function wl(e,t){var r=Pa;Pa|=1;try{return e(t)}finally{0===(Pa=r)&&(Qa(),Ko())}}function _l(e,t){var r=Pa;Pa&=-2,Pa|=8;try{return e(t)}finally{0===(Pa=r)&&(Qa(),Ko())}}function Sl(e,t){po(Fa,La),La|=t,$a|=t}function Al(){La=Fa.current,co(Fa)}function Cl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,qn(r)),null!==Ma)for(r=Ma.return;null!==r;){var n=r;switch(n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&yo();break;case 3:Mi(),co(mo),co(fo),Ji();break;case 5:Li(n);break;case 4:Mi();break;case 13:case 19:co(Fi);break;case 10:oi(n);break;case 23:case 24:Al()}r=r.return}Na=e,Ma=Gl(e.current,null),Da=La=$a=t,za=0,Ba=null,Wa=Ua=Ha=0}function kl(e,t){for(;;){var r=Ma;try{if(ni(),Xi.current=Is,ns){for(var n=es.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ns=!1}if(Zi=0,rs=ts=es=null,os=!1,Ia.current=null,null===r||null===r.return){za=1,Ba=t,Ma=null;break}e:{var i=e,s=r.return,a=r,l=t;if(t=Da,a.flags|=2048,a.firstEffect=a.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var u=l;if(0===(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.lanes=c.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=0!==(1&Fi.current),p=s;do{var h;if(h=13===p.tag){var f=p.memoizedState;if(null!==f)h=null!==f.dehydrated;else{var m=p.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(h){var g=p.updateQueue;if(null===g){var v=new Set;v.add(u),p.updateQueue=v}else g.add(u);if(0===(2&p.mode)){if(p.flags|=64,a.flags|=16384,a.flags&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var b=di(-1,1);b.tag=2,pi(a,b)}a.lanes|=1;break e}l=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new pa,l=new Set,y.set(u,l)):void 0===(l=y.get(u))&&(l=new Set,y.set(u,l)),!l.has(a)){l.add(a);var x=Hl.bind(null,i,u,a);u.then(x,x)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((G(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==za&&(za=2),l=ca(l,a),p=s;do{switch(p.tag){case 3:i=l,p.flags|=4096,t&=-t,p.lanes|=t,hi(p,ha(0,i,t));break e;case 1:i=l;var w=p.type,_=p.stateNode;if(0===(64&p.flags)&&("function"===typeof w.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Za||!Za.has(_)))){p.flags|=4096,t&=-t,p.lanes|=t,hi(p,fa(p,i,t));break e}}p=p.return}while(null!==p)}Il(r)}catch(S){t=S,Ma===r&&null!==r&&(Ma=r=r.return);continue}break}}function El(){var e=Ta.current;return Ta.current=Is,null===e?Is:e}function Rl(e,t){var r=Pa;Pa|=16;var n=El();for(Na===e&&Da===t||Cl(e,t);;)try{jl();break}catch(o){kl(e,o)}if(ni(),Pa=r,Ta.current=n,null!==Ma)throw Error(s(261));return Na=null,Da=0,za}function jl(){for(;null!==Ma;)Tl(Ma)}function Ol(){for(;null!==Ma&&!jo();)Tl(Ma)}function Tl(e){var t=Ka(e.alternate,e,La);e.memoizedProps=e.pendingProps,null===t?Il(e):Ma=t,Ia.current=null}function Il(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(r=la(r,t,La)))return void(Ma=r);if(24!==(r=t).tag&&23!==r.tag||null===r.memoizedState||0!==(1073741824&La)||0===(4&r.mode)){for(var n=0,o=r.child;null!==o;)n|=o.lanes|o.childLanes,o=o.sibling;r.childLanes=n}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(r=ua(t)))return r.flags&=2047,void(Ma=r);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ma=t);Ma=t=e}while(null!==t);0===za&&(za=5)}function Pl(e){var t=Vo();return Go(99,Nl.bind(null,e,t)),null}function Nl(e,t){do{Dl()}while(null!==tl);if(0!==(48&Pa))throw Error(s(327));var r=e.finishedWork;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(s(177));e.callbackNode=null;var n=r.lanes|r.childLanes,o=n,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var a=e.eventTimes,l=e.expirationTimes;0<i;){var u=31-Wt(i),c=1<<u;o[u]=0,a[u]=-1,l[u]=-1,i&=~c}if(null!==il&&0===(24&n)&&il.has(e)&&il.delete(e),e===Na&&(Ma=Na=null,Da=0),1<r.flags?null!==r.lastEffect?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,null!==n){if(o=Pa,Pa|=32,Ia.current=null,$n=Kt,vn(a=gn())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,i=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(k){l=null;break e}var d=0,p=-1,h=-1,f=0,m=0,g=a,v=null;t:for(;;){for(var b;g!==l||0!==i&&3!==g.nodeType||(p=d+i),g!==u||0!==c&&3!==g.nodeType||(h=d+c),3===g.nodeType&&(d+=g.nodeValue.length),null!==(b=g.firstChild);)v=g,g=b;for(;;){if(g===a)break t;if(v===l&&++f===i&&(p=d),v===u&&++m===c&&(h=d),null!==(b=g.nextSibling))break;v=(g=v).parentNode}g=b}l=-1===p||-1===h?null:{start:p,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Hn={focusedElem:a,selectionRange:l},Kt=!1,dl=null,pl=!1,Ja=n;do{try{Ml()}catch(k){if(null===Ja)throw Error(s(330));$l(Ja,k),Ja=Ja.nextEffect}}while(null!==Ja);dl=null,Ja=n;do{try{for(a=e;null!==Ja;){var y=Ja.flags;if(16&y&&be(Ja.stateNode,""),128&y){var x=Ja.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&y){case 2:Sa(Ja),Ja.flags&=-3;break;case 6:Sa(Ja),Ja.flags&=-3,Ea(Ja.alternate,Ja);break;case 1024:Ja.flags&=-1025;break;case 1028:Ja.flags&=-1025,Ea(Ja.alternate,Ja);break;case 4:Ea(Ja.alternate,Ja);break;case 8:ka(a,l=Ja);var _=l.alternate;wa(l),null!==_&&wa(_)}Ja=Ja.nextEffect}}catch(k){if(null===Ja)throw Error(s(330));$l(Ja,k),Ja=Ja.nextEffect}}while(null!==Ja);if(w=Hn,x=gn(),y=w.focusedElem,a=w.selectionRange,x!==y&&y&&y.ownerDocument&&mn(y.ownerDocument.documentElement,y)){null!==a&&vn(y)&&(x=a.start,void 0===(w=a.end)&&(w=x),"selectionStart"in y?(y.selectionStart=x,y.selectionEnd=Math.min(w,y.value.length)):(w=(x=y.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),l=y.textContent.length,_=Math.min(a.start,l),a=void 0===a.end?_:Math.min(a.end,l),!w.extend&&_>a&&(l=a,a=_,_=l),l=fn(y,_),i=fn(y,a),l&&i&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((x=x.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),_>a?(w.addRange(x),w.extend(i.node,i.offset)):(x.setEnd(i.node,i.offset),w.addRange(x))))),x=[];for(w=y;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof y.focus&&y.focus(),y=0;y<x.length;y++)(w=x[y]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Kt=!!$n,Hn=$n=null,e.current=r,Ja=n;do{try{for(y=e;null!==Ja;){var S=Ja.flags;if(36&S&&ba(y,Ja.alternate,Ja),128&S){x=void 0;var A=Ja.ref;if(null!==A){var C=Ja.stateNode;Ja.tag,x=C,"function"===typeof A?A(x):A.current=x}}Ja=Ja.nextEffect}}catch(k){if(null===Ja)throw Error(s(330));$l(Ja,k),Ja=Ja.nextEffect}}while(null!==Ja);Ja=null,zo(),Pa=o}else e.current=r;if(el)el=!1,tl=e,rl=t;else for(Ja=n;null!==Ja;)t=Ja.nextEffect,Ja.nextEffect=null,8&Ja.flags&&((S=Ja).sibling=null,S.stateNode=null),Ja=t;if(0===(n=e.pendingLanes)&&(Za=null),1===n?e===al?sl++:(sl=0,al=e):sl=0,r=r.stateNode,Co&&"function"===typeof Co.onCommitFiberRoot)try{Co.onCommitFiberRoot(Ao,r,void 0,64===(64&r.current.flags))}catch(k){}if(vl(e,Wo()),Xa)throw Xa=!1,e=Ya,Ya=null,e;return 0!==(8&Pa)||Ko(),null}function Ml(){for(;null!==Ja;){var e=Ja.alternate;pl||null===dl||(0!==(8&Ja.flags)?et(Ja,dl)&&(pl=!0):13===Ja.tag&&ja(e,Ja)&&et(Ja,dl)&&(pl=!0));var t=Ja.flags;0!==(256&t)&&va(e,Ja),0===(512&t)||el||(el=!0,Qo(97,(function(){return Dl(),null}))),Ja=Ja.nextEffect}}function Dl(){if(90!==rl){var e=97<rl?97:rl;return rl=90,Go(e,zl)}return!1}function Ll(e,t){nl.push(t,e),el||(el=!0,Qo(97,(function(){return Dl(),null})))}function Fl(e,t){ol.push(t,e),el||(el=!0,Qo(97,(function(){return Dl(),null})))}function zl(){if(null===tl)return!1;var e=tl;if(tl=null,0!==(48&Pa))throw Error(s(331));var t=Pa;Pa|=32;var r=ol;ol=[];for(var n=0;n<r.length;n+=2){var o=r[n],i=r[n+1],a=o.destroy;if(o.destroy=void 0,"function"===typeof a)try{a()}catch(u){if(null===i)throw Error(s(330));$l(i,u)}}for(r=nl,nl=[],n=0;n<r.length;n+=2){o=r[n],i=r[n+1];try{var l=o.create;o.destroy=l()}catch(u){if(null===i)throw Error(s(330));$l(i,u)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Pa=t,Ko(),!0}function Bl(e,t,r){pi(e,t=ha(0,t=ca(r,t),1)),t=hl(),null!==(e=gl(e,1))&&(Ut(e,1,t),vl(e,t))}function $l(e,t){if(3===e.tag)Bl(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Bl(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"===typeof r.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Za||!Za.has(n))){var o=fa(r,e=ca(t,e),1);if(pi(r,o),o=hl(),null!==(r=gl(r,1)))Ut(r,1,o),vl(r,o);else if("function"===typeof n.componentDidCatch&&(null===Za||!Za.has(n)))try{n.componentDidCatch(t,e)}catch(i){}break}}r=r.return}}function Hl(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=hl(),e.pingedLanes|=e.suspendedLanes&r,Na===e&&(Da&r)===r&&(4===za||3===za&&(62914560&Da)===Da&&500>Wo()-qa?Cl(e,0):Wa|=r),vl(e,t)}function Ul(e,t){var r=e.stateNode;null!==r&&r.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Vo()?1:2:(0===ul&&(ul=$a),0===(t=$t(62914560&~ul))&&(t=4194304))),r=hl(),null!==(e=gl(e,t))&&(Ut(e,t,r),vl(e,r))}function Wl(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Vl(e,t,r,n){return new Wl(e,t,r,n)}function ql(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gl(e,t){var r=e.alternate;return null===r?((r=Vl(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ql(e,t,r,n,o,i){var a=2;if(n=e,"function"===typeof e)ql(e)&&(a=1);else if("string"===typeof e)a=5;else e:switch(e){case A:return Kl(r.children,o,i,t);case D:a=8,o|=16;break;case C:a=8,o|=1;break;case k:return(e=Vl(12,r,t,8|o)).elementType=k,e.type=k,e.lanes=i,e;case O:return(e=Vl(13,r,t,o)).type=O,e.elementType=O,e.lanes=i,e;case T:return(e=Vl(19,r,t,o)).elementType=T,e.lanes=i,e;case L:return Jl(r,o,i,t);case F:return(e=Vl(24,r,t,o)).elementType=F,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:a=10;break e;case R:a=9;break e;case j:a=11;break e;case I:a=14;break e;case P:a=16,n=null;break e;case N:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Vl(a,r,t,o)).elementType=e,t.type=n,t.lanes=i,t}function Kl(e,t,r,n){return(e=Vl(7,e,n,t)).lanes=r,e}function Jl(e,t,r,n){return(e=Vl(23,e,n,t)).elementType=L,e.lanes=r,e}function Xl(e,t,r){return(e=Vl(6,e,null,t)).lanes=r,e}function Yl(e,t,r){return(t=Vl(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zl(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function eu(e,t,r,n){var o=t.current,i=hl(),a=fl(o);e:if(r){t:{if(Je(r=r._reactInternals)!==r||1!==r.tag)throw Error(s(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(bo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===r.tag){var u=r.type;if(bo(u)){r=wo(r,u,l);break e}}r=l}else r=ho;return null===t.context?t.context=r:t.pendingContext=r,(t=di(i,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),pi(o,t),ml(o,a,i),a}function tu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ru(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function nu(e,t){ru(e,t),(e=e.alternate)&&ru(e,t)}function ou(e,t,r){var n=null!=r&&null!=r.hydrationOptions&&r.hydrationOptions.mutableSources||null;if(r=new Zl(e,t,null!=r&&!0===r.hydrate),t=Vl(3,null,null,2===t?7:1===t?3:0),r.current=t,t.stateNode=r,ui(t),e[eo]=r.current,In(8===e.nodeType?e.parentNode:e),n)for(e=0;e<n.length;e++){var o=(t=n[e])._getVersion;o=o(t._source),null==r.mutableSourceEagerHydrationData?r.mutableSourceEagerHydrationData=[t,o]:r.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=r}function iu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function su(e,t,r,n,o){var i=r._reactRootContainer;if(i){var s=i._internalRoot;if("function"===typeof o){var a=o;o=function(){var e=tu(s);a.call(e)}}eu(t,s,e,o)}else{if(i=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new ou(e,0,t?{hydrate:!0}:void 0)}(r,n),s=i._internalRoot,"function"===typeof o){var l=o;o=function(){var e=tu(s);l.call(e)}}_l((function(){eu(t,s,e,o)}))}return tu(s)}function au(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!iu(t))throw Error(s(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)}Ka=function(e,t,r){var n=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||mo.current)Ls=!0;else{if(0===(r&n)){switch(Ls=!1,t.tag){case 3:Gs(t),Qi();break;case 5:Di(t);break;case 1:bo(t.type)&&_o(t);break;case 4:Ni(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var o=t.type._context;po(Zo,o._currentValue),o._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(r&t.child.childLanes)?Zs(e,t,r):(po(Fi,1&Fi.current),null!==(t=sa(e,t,r))?t.sibling:null);po(Fi,1&Fi.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(64&e.flags)){if(n)return ia(e,t,r);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),po(Fi,Fi.current),n)break;return null;case 23:case 24:return t.lanes=0,Hs(e,t,r)}return sa(e,t,r)}Ls=0!==(16384&e.flags)}else Ls=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=vo(t,fo.current),si(t,r),o=as(null,t,n,e,o,r),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,bo(n)){var i=!0;_o(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ui(t);var a=n.getDerivedStateFromProps;"function"===typeof a&&vi(t,n,a,e),o.updater=bi,t.stateNode=o,o._reactInternals=t,_i(t,n,e,r),t=qs(null,t,n,!0,i,r)}else t.tag=0,Fs(null,t,o,r),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return ql(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===j)return 11;if(e===I)return 14}return 2}(o),e=Yo(o,e),i){case 0:t=Ws(null,t,o,e,r);break e;case 1:t=Vs(null,t,o,e,r);break e;case 11:t=zs(null,t,o,e,r);break e;case 14:t=Bs(null,t,o,Yo(o.type,e),n,r);break e}throw Error(s(306,o,""))}return t;case 0:return n=t.type,o=t.pendingProps,Ws(e,t,n,o=t.elementType===n?o:Yo(n,o),r);case 1:return n=t.type,o=t.pendingProps,Vs(e,t,n,o=t.elementType===n?o:Yo(n,o),r);case 3:if(Gs(t),n=t.updateQueue,null===e||null===n)throw Error(s(282));if(n=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ci(e,t),fi(t,n,null,r),(n=t.memoizedState.element)===o)Qi(),t=sa(e,t,r);else{if((i=(o=t.stateNode).hydrate)&&($i=Qn(t.stateNode.containerInfo.firstChild),Bi=t,i=Hi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Ki.push(i);for(r=Ri(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|1024,r=r.sibling}else Fs(e,t,n,r),Qi();t=t.child}return t;case 5:return Di(t),null===e&&Vi(t),n=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Wn(n,o)?a=null:null!==i&&Wn(n,i)&&(t.flags|=16),Us(e,t),Fs(e,t,a,r),t.child;case 6:return null===e&&Vi(t),null;case 13:return Zs(e,t,r);case 4:return Ni(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ei(t,null,n,r):Fs(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,zs(e,t,n,o=t.elementType===n?o:Yo(n,o),r);case 7:return Fs(e,t,t.pendingProps,r),t.child;case 8:case 12:return Fs(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;var l=t.type._context;if(po(Zo,l._currentValue),l._currentValue=i,null!==a)if(l=a.value,0===(i=cn(l,i)?0:0|("function"===typeof n._calculateChangedBits?n._calculateChangedBits(l,i):1073741823))){if(a.children===o.children&&!mo.current){t=sa(e,t,r);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){a=l.child;for(var c=u.firstContext;null!==c;){if(c.context===n&&0!==(c.observedBits&i)){1===l.tag&&((c=di(-1,r&-r)).tag=2,pi(l,c)),l.lanes|=r,null!==(c=l.alternate)&&(c.lanes|=r),ii(l.return,r),u.lanes|=r;break}c=c.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}Fs(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=(i=t.pendingProps).children,si(t,r),n=n(o=ai(o,i.unstable_observedBits)),t.flags|=1,Fs(e,t,n,r),t.child;case 14:return i=Yo(o=t.type,t.pendingProps),Bs(e,t,o,i=Yo(o.type,i),n,r);case 15:return $s(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Yo(n,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,bo(n)?(e=!0,_o(t)):e=!1,si(t,r),xi(t,n,o),_i(t,n,o,r),qs(null,t,n,!0,e,r);case 19:return ia(e,t,r);case 23:case 24:return Hs(e,t,r)}throw Error(s(156,t.tag))},ou.prototype.render=function(e){eu(e,this._internalRoot,null,null)},ou.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;eu(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(ml(e,4,hl()),nu(e,4))},rt=function(e){13===e.tag&&(ml(e,67108864,hl()),nu(e,67108864))},nt=function(e){if(13===e.tag){var t=hl(),r=fl(e);ml(e,r,t),nu(e,r)}},ot=function(e,t){return t()},Ee=function(e,t,r){switch(t){case"input":if(re(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=io(n);if(!o)throw Error(s(90));X(n),re(n,o)}}}break;case"textarea":ue(e,r);break;case"select":null!=(t=r.value)&&se(e,!!r.multiple,t,!1)}},Pe=wl,Ne=function(e,t,r,n,o){var i=Pa;Pa|=4;try{return Go(98,e.bind(null,t,r,n,o))}finally{0===(Pa=i)&&(Qa(),Ko())}},Me=function(){0===(49&Pa)&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,vl(e,Wo())}))}Ko()}(),Dl())},De=function(e,t){var r=Pa;Pa|=2;try{return e(t)}finally{0===(Pa=r)&&(Qa(),Ko())}};var lu={Events:[no,oo,io,Te,Ie,Dl,{current:!1}]},uu={findFiberByHostInstance:ro,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cu={bundleType:uu.bundleType,version:uu.version,rendererPackageName:uu.rendererPackageName,rendererConfig:uu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:uu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!du.isDisabled&&du.supportsFiber)try{Ao=du.inject(cu),Co=du}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lu,t.createPortal=au,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return e=null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var r=Pa;if(0!==(48&r))return e(t);Pa|=1;try{if(e)return Go(99,e.bind(null,t))}finally{Pa=r,Ko()}},t.hydrate=function(e,t,r){if(!iu(t))throw Error(s(200));return su(null,e,t,!0,r)},t.render=function(e,t,r){if(!iu(t))throw Error(s(200));return su(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!iu(e))throw Error(s(40));return!!e._reactRootContainer&&(_l((function(){su(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=wl,t.unstable_createPortal=function(e,t){return au(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!iu(r))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return su(e,t,r,!1,n)},t.version="17.0.2"},2762:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},2771:(e,t,r)=>{"use strict";const n=r(6724),o=r(2692);e.exports=class extends o{constructor(e,t){super("has_child","https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-child-query.html",e),n(t)||(this._queryOpts.type=t)}type(e){return this._queryOpts.type=e,this}childType(e){return console.warn("[HasChildQuery] Field `child_type` is deprecated. Use `type` instead."),this.type(e)}minChildren(e){return this._queryOpts.min_children=e,this}maxChildren(e){return this._queryOpts.max_children=e,this}}},2781:(e,t,r)=>{"use strict";const{util:{checkType:n}}=r(4782),o=r(3420);e.exports=class extends o{constructor(){super("span_near")}clauses(e){return n(e,Array),e.forEach((e=>n(e,o))),this._queryOpts.clauses=e,this}slop(e){return this._queryOpts.slop=e,this}inOrder(e){return this._queryOpts.in_order=e,this}}},2862:(e,t,r)=>{"use strict";const n=r(6724),{consts:{SUGGEST_MODE_SET:o},util:{invalidParam:i}}=r(4782),s=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html#_direct_generators","suggest_mode",o);e.exports=class{constructor(e){this._body={},n(e)||(this._body.field=e)}field(e){return this._body.field=e,this}size(e){return this._body.size=e,this}suggestMode(e){n(e)&&s(e);const t=e.toLowerCase();return o.has(t)||s(e),this._body.suggest_mode=t,this}maxEdits(e){return this._body.max_edits=e,this}prefixLength(e){return this._body.prefix_length=e,this}minWordLength(e){return this._body.min_word_length=e,this}maxInspections(e){return this._body.max_inspections=e,this}minDocFreq(e){return this._body.min_doc_freq=e,this}maxTermFreq(e){return this._body.max_term_freq=e,this}preFilter(e){return this._body.pre_filter=e,this}postFilter(e){return this._body.post_filter=e,this}toJSON(){return this._body}}},2870:e=>{"use strict";const t=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],n=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],o=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],i=(e,t,r)=>{let n=e;return"string"===typeof t||Array.isArray(t)?n=e.toLocaleString(t,r):!0!==t&&void 0===r||(n=e.toLocaleString(void 0,r)),n};e.exports=(e,s)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const a=(s=Object.assign({bits:!1,binary:!1},s)).bits?s.binary?o:n:s.binary?r:t;if(s.signed&&0===e)return` 0 ${a[0]}`;const l=e<0,u=l?"-":s.signed?"+":"";let c;if(l&&(e=-e),void 0!==s.minimumFractionDigits&&(c={minimumFractionDigits:s.minimumFractionDigits}),void 0!==s.maximumFractionDigits&&(c=Object.assign({maximumFractionDigits:s.maximumFractionDigits},c)),e<1){return u+i(e,s.locale,c)+" "+a[0]}const d=Math.min(Math.floor(s.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),a.length-1);e/=Math.pow(s.binary?1024:1e3,d),c||(e=e.toPrecision(3));return u+i(Number(e),s.locale,c)+" "+a[d]}},2879:(e,t,r)=>{"use strict";const n=r(5350);e.exports=class extends n{constructor(e,t,r){super(e,"date_histogram",t,r)}timeZone(e){return this._aggsDef.time_zone=e,this}calendarInterval(e){return this._aggsDef.calendar_interval=e,this}fixedInterval(e){return this._aggsDef.fixed_interval=e,this}}},2899:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,p0:()=>i});var n=r(45),o={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)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s(e){return"".concat(Math.round(e),"ms")}const a={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.duration,a=void 0===r?i.standard:r,l=t.easing,u=void 0===l?o.easeInOut:l,c=t.delay,d=void 0===c?0:c;(0,n.A)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof a?a:s(a)," ").concat(u," ").concat("string"===typeof d?d:s(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},2901:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(816);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.A)(o.key),o)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},2960:(e,t,r)=>{"use strict";const n=r(3650),o=r(6724),i=r(2104),s=r(6878),a=r(840),l=r(1463),u=r(2250);t.checkType=function(e,t){if(!(e instanceof t))throw o(e)?console.warn(`Was expecting instance of ${t.name} but got ${e}!`):console.warn(`${u(e)} is of the type ${typeof e}`),new TypeError(`Argument must be an instance of ${t.name}`)},t.constructorWrapper=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new e(...r)}},t.firstDigitPos=function(e){if(n(e))return-1;const t=e.length;for(let n=0;n<t;n++)if(r=e.charCodeAt(n),o=57,r>=48&&r<=o)return n;var r,o;return-1},t.recursiveToJSON=function e(t){if(!s(t))return t;if(Array.isArray(t))return t.map((t=>e(t)));if(a(t,"toJSON")&&t.constructor!==Object)return e(t.toJSON());const r={};for(const n of Object.keys(t))r[n]=e(t[n]);return r},t.invalidParam=function(e,t,r){return function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;o&&console.log(`See ${o}`),console.warn(`Got '${t}' - '${n}'`);const s=i(r)?r:u(r);throw new Error(`The '${t}' parameter should be one of ${s}`)}},t.setDefault=function(e,t,r){const n=!l(e,t);return n&&(e[t]=r),n}},2965:(e,t,r)=>{"use strict";const n=r(6724),{consts:{SUGGEST_MODE_SET:o,STRING_DISTANCE_SET:i},util:{invalidParam:s}}=r(4782),a=r(5129),l="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-term.html",u=s(l,"sort","'score' or 'frequency'"),c=s(l,"suggest_mode",o),d=s(l,"string_distance",i);e.exports=class extends a{constructor(e,t,r){super("term",e,t,r)}sort(e){n(e)&&u(e);const t=e.toLowerCase();return"score"!==t&&"frequency"!==t&&u(e),this._suggestOpts.sort=t,this}suggestMode(e){n(e)&&c(e);const t=e.toLowerCase();return o.has(t)||c(e),this._suggestOpts.suggest_mode=t,this}maxEdits(e){return this._suggestOpts.max_edits=e,this}prefixLength(e){return this._suggestOpts.prefix_length=e,this}minWordLength(e){return this._suggestOpts.min_word_length=e,this}maxInspections(e){return this._suggestOpts.max_inspections=e,this}minDocFreq(e){return this._suggestOpts.min_doc_freq=e,this}maxTermFreq(e){return this._suggestOpts.max_term_freq=e,this}stringDistance(e){n(e)&&d(e);const t=e.toLowerCase();return i.has(t)||d(e),this._suggestOpts.string_distance=t,this}}},2985:(e,t,r)=>{"use strict";const n=r(1023);e.exports=class extends n{constructor(e,t){super(e,"ip_range",t),this._rangeRequiredKeys=["from","to","mask"]}format(){throw console.log("Please refer https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-iprange-aggregation.html"),new Error("format is not supported in IpRangeAggregation")}}},3024:(e,t,r)=>{"use strict";var n=r(6267),o=r(1550);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},3027:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=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},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(5043),a=(n=s)&&n.__esModule?n:{default:n},l=r(7907),u=r(3847);var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.buildURI=r.buildURI.bind(r),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"buildURI",value:function(){return l.buildURI.apply(void 0,arguments)}},{key:"handleLegacy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(window.navigator.msSaveOrOpenBlob){e.preventDefault();var r=this.props,n=r.data,o=r.headers,i=r.separator,s=r.filename,a=r.enclosingCharacter,u=r.uFEFF,c=t&&"function"===typeof n?n():n,d=new Blob([u?"\ufeff":"",(0,l.toCSV)(c,o,i,a)]);return window.navigator.msSaveBlob(d,s),!1}}},{key:"handleAsyncClick",value:function(e){var t=this;this.props.onClick(e,(function(r){!1!==r?t.handleLegacy(e,!0):e.preventDefault()}))}},{key:"handleSyncClick",value:function(e){!1===this.props.onClick(e)?e.preventDefault():this.handleLegacy(e)}},{key:"handleClick",value:function(){var e=this;return function(t){if("function"===typeof e.props.onClick)return e.props.asyncOnClick?e.handleAsyncClick(t):e.handleSyncClick(t);e.handleLegacy(t)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.data,n=t.headers,i=t.separator,s=t.filename,l=t.uFEFF,u=t.children,c=(t.onClick,t.asyncOnClick,t.enclosingCharacter),d=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["data","headers","separator","filename","uFEFF","children","onClick","asyncOnClick","enclosingCharacter"]),p="undefined"===typeof window?"":this.buildURI(r,l,n,i,c);return a.default.createElement("a",o({download:s},d,{ref:function(t){return e.link=t},target:"_self",href:p,onClick:this.handleClick()}),u)}}]),t}(a.default.Component);c.defaultProps=u.defaultProps,c.propTypes=u.propTypes,t.default=c},3030:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(8168);function o(e,t){const r=(0,n.A)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))r[i]=(0,n.A)({},e[i],r[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const s=e[i]||{},a=t[i];r[i]={},a&&Object.keys(a)?s&&Object.keys(s)?(r[i]=(0,n.A)({},a),Object.keys(s).forEach((e=>{r[i][e]=o(s[e],a[e])}))):r[i]=a:r[i]=s}else void 0===r[i]&&(r[i]=e[i])})),r}},3082:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),i=r(579);t.A=(0,o.default)((0,i.jsx)("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z"}),"FileOpen")},3101:(e,t,r)=>{"use strict";var n=r(6267),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,s={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},3104:e=>{e.exports={version:"0.24.0"}},3128:(e,t,r)=>{"use strict";const n=r(6724),{Query:o}=r(4782);e.exports=class extends o{constructor(e,t){super(e),n(t)||(this._queryOpts.query=t)}analyzer(e){return this._queryOpts.analyzer=e,this}minimumShouldMatch(e){return this._queryOpts.minimum_should_match=e,this}query(e){return this._queryOpts.query=e,this}}},3143:(e,t,r)=>{"use strict";const n=r(8476);e.exports=class extends n{constructor(e,t){super("match_phrase_prefix","https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase-prefix.html",e,t)}maxExpansions(e){return this._queryOpts.max_expansions=e,this}}},3145:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{A:()=>n})},3174:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalStyles:()=>_.A,StyledEngineProvider:()=>w,ThemeContext:()=>o.T,css:()=>v.AH,default:()=>S,internal_processStyles:()=>A,keyframes:()=>v.i7});var n=r(8168),o=r(9369),i=r(6598),s=r(9436),a=r(1722),l=r(5043),u=r(918),c=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,d=(0,u.A)((function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:p},f=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},m=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,a.SF)(t,r,n),(0,s.s)((function(){return(0,a.sk)(t,r,n)})),null},g=function e(t,r){var s,u,c=t.__emotion_real===t,d=c&&t.__emotion_base||t;void 0!==r&&(s=r.label,u=r.target);var p=f(t,r,c),g=p||h(d),v=!g("as");return function(){var b=arguments,y=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==s&&y.push("label:"+s+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{var x=b[0];y.push(x[0]);for(var w=b.length,_=1;_<w;_++)y.push(b[_],x[_])}var S=(0,o.w)((function(e,t,r){var n=v&&e.as||d,s="",c=[],f=e;if(null==e.theme){for(var b in f={},e)f[b]=e[b];f.theme=l.useContext(o.T)}"string"===typeof e.className?s=(0,a.Rk)(t.registered,c,e.className):null!=e.className&&(s=e.className+" ");var x=(0,i.J)(y.concat(c),t.registered,f);s+=t.key+"-"+x.name,void 0!==u&&(s+=" "+u);var w=v&&void 0===p?h(n):g,_={};for(var S in e)v&&"as"===S||w(S)&&(_[S]=e[S]);return _.className=s,r&&(_.ref=r),l.createElement(l.Fragment,null,l.createElement(m,{cache:t,serialized:x,isStringTag:"string"===typeof n}),l.createElement(n,_))}));return S.displayName=void 0!==s?s:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=d,S.__emotion_styles=y,S.__emotion_forwardProp=p,Object.defineProperty(S,"toString",{value:function(){return"."+u}}),S.withComponent=function(t,o){return e(t,(0,n.A)({},r,o,{shouldForwardProp:f(S,o,!0)})).apply(void 0,y)},S}}.bind(null);["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){g[e]=g(e)}));var v=r(3290),b=r(3803),y=r(579);let x;function w(e){const{injectFirst:t,children:r}=e;return t&&x?(0,y.jsx)(o.C,{value:x,children:r}):r}"object"===typeof document&&(x=(0,b.A)({key:"css",prepend:!0}));var _=r(869);function S(e,t){return g(e,t)}const A=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3229:(e,t,r)=>{"use strict";var n=r(938);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},3234:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>n.k,unstable_defaultSxConfig:()=>i.A});var n=r(8812),o=r(8698),i=r(7758)},3252:(e,t,r)=>{"use strict";const n=r(4013);e.exports=class extends n{constructor(e){super("simple_query_string","https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html",e)}flags(e){return this._queryOpts.flags=e,this}}},3290:(e,t,r)=>{"use strict";r.d(t,{AH:()=>c,i7:()=>d,mL:()=>u});var n=r(9369),o=r(5043),i=r(1722),s=r(9436),a=r(6598),l=(r(3803),r(219),function(e,t){var r=arguments;if(null==t||!n.h.call(t,"css"))return o.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=n.E,s[1]=(0,n.c)(e,t);for(var a=2;a<i;a++)s[a]=r[a];return o.createElement.apply(null,s)});!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(l||(l={}));var u=(0,n.w)((function(e,t){var r=e.styles,l=(0,a.J)([r],void 0,o.useContext(n.T)),u=o.useRef();return(0,s.i)((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==o&&(n=!0,o.setAttribute("data-emotion",e),r.hydrate([o])),u.current=[r,n],function(){r.flush()}}),[t]),(0,s.i)((function(){var e=u.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)}}),[t,l.name]),null}));function c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.J)(t)}function d(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},3292:(e,t,r)=>{"use strict";const n=r(2254),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-selector-aggregation.html";e.exports=class extends n{constructor(e,t){super(e,"bucket_selector",o,t)}format(){throw console.log(`Please refer ${o}`),new Error("format is not supported in BucketSelectorAggregation")}script(e){return this._aggsDef.script=e,this}}},3319:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(1782).A},3375:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n="$$material"},3382:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,getFunctionName:()=>i});var n=r(191);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){const t=`${e}`.match(o);return t&&t[1]||""}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||i(e)||t}function a(e,t,r){const n=s(t);return e.displayName||(""!==n?`${r}(${n})`:r)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return s(e,"Component");if("object"===typeof e)switch(e.$$typeof){case n.vM:return a(e,e.render,"ForwardRef");case n.lD:return a(e,e.type,"memo");default:return}}}},3389:(e,t,r)=>{"use strict";const n=r(6724),{util:{checkType:o}}=r(4782),{MultiTermQueryBase:i}=r(8928),s=r(3420);e.exports=class extends s{constructor(e){super("span_multi"),n(e)||this.match(e)}match(e){return o(e,i),this._queryOpts.match=e,this}}},3420:(e,t,r)=>{"use strict";const{Query:n}=r(4782);e.exports=class extends n{}},3462:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5043),o=r(6564);function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.A)(t,e)}))}),t)}},3468:(e,t,r)=>{"use strict";function n(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),r)}return n.clear=()=>{clearTimeout(t)},n}r.d(t,{A:()=>n})},3512:(e,t,r)=>{"use strict";const n=r(6724),{util:{invalidParam:o},consts:{MODEL_SET:i}}=r(4782),s=r(2254),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movavg-aggregation.html",l=o(a,"model",i);e.exports=class extends s{constructor(e,t){super(e,"moving_avg",a,t)}format(){throw console.log(`Please refer ${a}`),new Error("format is not supported in MovingAverageAggregation")}model(e){n(e)&&l(e);const t=e.toLowerCase();return i.has(t)||l(e),this._aggsDef.model=t,this}window(e){return this._aggsDef.window=e,this}minimize(e){return this._aggsDef.minimize=e,this}settings(e){return this._aggsDef.settings=e,this}predict(e){return this._aggsDef.predict=e,this}}},3536:function(e,t,r){var n;e=r.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,u=32,c=64,d=128,p=256,h=1/0,f=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",p]],b="[object Arguments]",y="[object Array]",x="[object Boolean]",w="[object Date]",_="[object Error]",S="[object Function]",A="[object GeneratorFunction]",C="[object Map]",k="[object Number]",E="[object Object]",R="[object Promise]",j="[object RegExp]",O="[object Set]",T="[object String]",I="[object Symbol]",P="[object WeakMap]",N="[object ArrayBuffer]",M="[object DataView]",D="[object Float32Array]",L="[object Float64Array]",F="[object Int8Array]",z="[object Int16Array]",B="[object Int32Array]",$="[object Uint8Array]",H="[object Uint8ClampedArray]",U="[object Uint16Array]",W="[object Uint32Array]",V=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,J=RegExp(Q.source),X=RegExp(K.source),Y=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),se=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",Ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Re="A-Z\\xc0-\\xd6\\xd8-\\xde",je="\\ufe0e\\ufe0f",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['\u2019]",Ie="["+Ae+"]",Pe="["+Oe+"]",Ne="["+Ce+"]",Me="\\d+",De="["+ke+"]",Le="["+Ee+"]",Fe="[^"+Ae+Oe+Me+ke+Ee+Re+"]",ze="\\ud83c[\\udffb-\\udfff]",Be="[^"+Ae+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Re+"]",We="\\u200d",Ve="(?:"+Le+"|"+Fe+")",qe="(?:"+Ue+"|"+Fe+")",Ge="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Qe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Ne+"|"+ze+")"+"?",Je="["+je+"]?",Xe=Je+Ke+("(?:"+We+"(?:"+[Be,$e,He].join("|")+")"+Je+Ke+")*"),Ye="(?:"+[De,$e,He].join("|")+")"+Xe,Ze="(?:"+[Be+Ne+"?",Ne,$e,He,Ie].join("|")+")",et=RegExp(Te,"g"),tt=RegExp(Ne,"g"),rt=RegExp(ze+"(?="+ze+")|"+Ze+Xe,"g"),nt=RegExp([Ue+"?"+Le+"+"+Ge+"(?="+[Pe,Ue,"$"].join("|")+")",qe+"+"+Qe+"(?="+[Pe,Ue+Ve,"$"].join("|")+")",Ue+"?"+Ve+"+"+Ge,Ue+"+"+Qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Ye].join("|"),"g"),ot=RegExp("["+We+Ae+Ce+je+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,lt={};lt[D]=lt[L]=lt[F]=lt[z]=lt[B]=lt[$]=lt[H]=lt[U]=lt[W]=!0,lt[b]=lt[y]=lt[N]=lt[x]=lt[M]=lt[w]=lt[_]=lt[S]=lt[C]=lt[k]=lt[E]=lt[j]=lt[O]=lt[T]=lt[P]=!1;var ut={};ut[b]=ut[y]=ut[N]=ut[M]=ut[x]=ut[w]=ut[D]=ut[L]=ut[F]=ut[z]=ut[B]=ut[C]=ut[k]=ut[E]=ut[j]=ut[O]=ut[T]=ut[I]=ut[$]=ut[H]=ut[U]=ut[W]=!0,ut[_]=ut[S]=ut[P]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ht="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=ht||ft||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,bt=vt&&vt.exports===gt,yt=bt&&ht.process,xt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(t){}}(),wt=xt&&xt.isArrayBuffer,_t=xt&&xt.isDate,St=xt&&xt.isMap,At=xt&&xt.isRegExp,Ct=xt&&xt.isSet,kt=xt&&xt.isTypedArray;function Et(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Rt(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(n,s,r(s),e)}return n}function jt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ot(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Tt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function It(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function Pt(e,t){return!!(null==e?0:e.length)&&Ut(e,t,0)>-1}function Nt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function Mt(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function Dt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Lt(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function Ft(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function zt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Bt=Gt("length");function $t(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Ht(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ut(e,t,r){return t===t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Ht(e,Vt,r)}function Wt(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function Vt(e){return e!==e}function qt(e,t){var r=null==e?0:e.length;return r?Jt(e,t)/r:m}function Gt(e){return function(t){return null==t?o:t[e]}}function Qt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function Jt(e,t){for(var r,n=-1,i=e.length;++n<i;){var s=t(e[n]);s!==o&&(r=r===o?s:r+s)}return r}function Xt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Yt(e){return e?e.slice(0,mr(e)+1).replace(se,""):e}function Zt(e){return function(t){return e(t)}}function er(e,t){return Mt(t,(function(t){return e[t]}))}function tr(e,t){return e.has(t)}function rr(e,t){for(var r=-1,n=e.length;++r<n&&Ut(t,e[r],0)>-1;);return r}function nr(e,t){for(var r=e.length;r--&&Ut(t,e[r],0)>-1;);return r}var or=Qt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),ir=Qt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sr(e){return"\\"+ct[e]}function ar(e){return ot.test(e)}function lr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function ur(e,t){return function(r){return e(t(r))}}function cr(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var s=e[r];s!==t&&s!==a||(e[r]=a,i[o++]=r)}return i}function dr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function pr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function hr(e){return ar(e)?function(e){var t=rt.lastIndex=0;for(;rt.test(e);)++t;return t}(e):Bt(e)}function fr(e){return ar(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.split("")}(e)}function mr(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var gr=Qt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vr=function e(t){var r=(t=null==t?mt:vr.defaults(mt.Object(),t,vr.pick(mt,st))).Array,n=t.Date,ae=t.Error,Ae=t.Function,Ce=t.Math,ke=t.Object,Ee=t.RegExp,Re=t.String,je=t.TypeError,Oe=r.prototype,Te=Ae.prototype,Ie=ke.prototype,Pe=t["__core-js_shared__"],Ne=Te.toString,Me=Ie.hasOwnProperty,De=0,Le=function(){var e=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=Ie.toString,ze=Ne.call(ke),Be=mt._,$e=Ee("^"+Ne.call(Me).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=bt?t.Buffer:o,Ue=t.Symbol,We=t.Uint8Array,Ve=He?He.allocUnsafe:o,qe=ur(ke.getPrototypeOf,ke),Ge=ke.create,Qe=Ie.propertyIsEnumerable,Ke=Oe.splice,Je=Ue?Ue.isConcatSpreadable:o,Xe=Ue?Ue.iterator:o,Ye=Ue?Ue.toStringTag:o,Ze=function(){try{var e=pi(ke,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ot=n&&n.now!==mt.Date.now&&n.now,ct=t.setTimeout!==mt.setTimeout&&t.setTimeout,ht=Ce.ceil,ft=Ce.floor,gt=ke.getOwnPropertySymbols,vt=He?He.isBuffer:o,yt=t.isFinite,xt=Oe.join,Bt=ur(ke.keys,ke),Qt=Ce.max,br=Ce.min,yr=n.now,xr=t.parseInt,wr=Ce.random,_r=Oe.reverse,Sr=pi(t,"DataView"),Ar=pi(t,"Map"),Cr=pi(t,"Promise"),kr=pi(t,"Set"),Er=pi(t,"WeakMap"),Rr=pi(ke,"create"),jr=Er&&new Er,Or={},Tr=Fi(Sr),Ir=Fi(Ar),Pr=Fi(Cr),Nr=Fi(kr),Mr=Fi(Er),Dr=Ue?Ue.prototype:o,Lr=Dr?Dr.valueOf:o,Fr=Dr?Dr.toString:o;function zr(e){if(ta(e)&&!Ws(e)&&!(e instanceof Ur)){if(e instanceof Hr)return e;if(Me.call(e,"__wrapped__"))return zi(e)}return new Hr(e)}var Br=function(){function e(){}return function(t){if(!ea(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function $r(){}function Hr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Ur(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new qr;++t<r;)this.add(e[t])}function Qr(e){var t=this.__data__=new Vr(e);this.size=t.size}function Kr(e,t){var r=Ws(e),n=!r&&Us(e),o=!r&&!n&&Qs(e),i=!r&&!n&&!o&&ua(e),s=r||n||o||i,a=s?Xt(e.length,Re):[],l=a.length;for(var u in e)!t&&!Me.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||yi(u,l))||a.push(u);return a}function Jr(e){var t=e.length;return t?e[Qn(0,t-1)]:o}function Xr(e,t){return Mi(Oo(e),an(t,0,e.length))}function Yr(e){return Mi(Oo(e))}function Zr(e,t,r){(r!==o&&!Bs(e[t],r)||r===o&&!(t in e))&&on(e,t,r)}function en(e,t,r){var n=e[t];Me.call(e,t)&&Bs(n,r)&&(r!==o||t in e)||on(e,t,r)}function tn(e,t){for(var r=e.length;r--;)if(Bs(e[r][0],t))return r;return-1}function rn(e,t,r,n){return pn(e,(function(e,o,i){t(n,e,r(e),i)})),n}function nn(e,t){return e&&To(t,Ta(t),e)}function on(e,t,r){"__proto__"==t&&Ze?Ze(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function sn(e,t){for(var n=-1,i=t.length,s=r(i),a=null==e;++n<i;)s[n]=a?o:ka(e,t[n]);return s}function an(e,t,r){return e===e&&(r!==o&&(e=e<=r?e:r),t!==o&&(e=e>=t?e:t)),e}function ln(e,t,r,n,i,s){var a,l=1&t,u=2&t,c=4&t;if(r&&(a=i?r(e,n,i,s):r(e)),a!==o)return a;if(!ea(e))return e;var d=Ws(e);if(d){if(a=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!l)return Oo(e,a)}else{var p=mi(e),h=p==S||p==A;if(Qs(e))return Ao(e,l);if(p==E||p==b||h&&!i){if(a=u||h?{}:vi(e),!l)return u?function(e,t){return To(e,fi(e),t)}(e,function(e,t){return e&&To(t,Ia(t),e)}(a,e)):function(e,t){return To(e,hi(e),t)}(e,nn(a,e))}else{if(!ut[p])return i?e:{};a=function(e,t,r){var n=e.constructor;switch(t){case N:return Co(e);case x:case w:return new n(+e);case M:return function(e,t){var r=t?Co(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case D:case L:case F:case z:case B:case $:case H:case U:case W:return ko(e,r);case C:return new n;case k:case T:return new n(e);case j:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new n;case I:return o=e,Lr?ke(Lr.call(o)):{}}var o}(e,p,l)}}s||(s=new Qr);var f=s.get(e);if(f)return f;s.set(e,a),sa(e)?e.forEach((function(n){a.add(ln(n,t,r,n,e,s))})):ra(e)&&e.forEach((function(n,o){a.set(o,ln(n,t,r,o,e,s))}));var m=d?o:(c?u?ii:oi:u?Ia:Ta)(e);return jt(m||e,(function(n,o){m&&(n=e[o=n]),en(a,o,ln(n,t,r,o,e,s))})),a}function un(e,t,r){var n=r.length;if(null==e)return!n;for(e=ke(e);n--;){var i=r[n],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function cn(e,t,r){if("function"!=typeof e)throw new je(i);return Ti((function(){e.apply(o,r)}),t)}function dn(e,t,r,n){var o=-1,i=Pt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;r&&(t=Mt(t,Zt(r))),n?(i=Nt,s=!1):t.length>=200&&(i=tr,s=!1,t=new Gr(t));e:for(;++o<a;){var c=e[o],d=null==r?c:r(c);if(c=n||0!==c?c:0,s&&d===d){for(var p=u;p--;)if(t[p]===d)continue e;l.push(c)}else i(t,d,n)||l.push(c)}return l}zr.templateSettings={escape:Y,evaluate:Z,interpolate:ee,variable:"",imports:{_:zr}},zr.prototype=$r.prototype,zr.prototype.constructor=zr,Hr.prototype=Br($r.prototype),Hr.prototype.constructor=Hr,Ur.prototype=Br($r.prototype),Ur.prototype.constructor=Ur,Wr.prototype.clear=function(){this.__data__=Rr?Rr(null):{},this.size=0},Wr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wr.prototype.get=function(e){var t=this.__data__;if(Rr){var r=t[e];return r===s?o:r}return Me.call(t,e)?t[e]:o},Wr.prototype.has=function(e){var t=this.__data__;return Rr?t[e]!==o:Me.call(t,e)},Wr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Rr&&t===o?s:t,this},Vr.prototype.clear=function(){this.__data__=[],this.size=0},Vr.prototype.delete=function(e){var t=this.__data__,r=tn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ke.call(t,r,1),--this.size,!0)},Vr.prototype.get=function(e){var t=this.__data__,r=tn(t,e);return r<0?o:t[r][1]},Vr.prototype.has=function(e){return tn(this.__data__,e)>-1},Vr.prototype.set=function(e,t){var r=this.__data__,n=tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},qr.prototype.clear=function(){this.size=0,this.__data__={hash:new Wr,map:new(Ar||Vr),string:new Wr}},qr.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},qr.prototype.get=function(e){return ci(this,e).get(e)},qr.prototype.has=function(e){return ci(this,e).has(e)},qr.prototype.set=function(e,t){var r=ci(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(e){return this.__data__.set(e,s),this},Gr.prototype.has=function(e){return this.__data__.has(e)},Qr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Qr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Qr.prototype.get=function(e){return this.__data__.get(e)},Qr.prototype.has=function(e){return this.__data__.has(e)},Qr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!Ar||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new qr(n)}return r.set(e,t),this.size=r.size,this};var pn=No(xn),hn=No(wn,!0);function fn(e,t){var r=!0;return pn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function mn(e,t,r){for(var n=-1,i=e.length;++n<i;){var s=e[n],a=t(s);if(null!=a&&(l===o?a===a&&!la(a):r(a,l)))var l=a,u=s}return u}function gn(e,t){var r=[];return pn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function vn(e,t,r,n,o){var i=-1,s=e.length;for(r||(r=bi),o||(o=[]);++i<s;){var a=e[i];t>0&&r(a)?t>1?vn(a,t-1,r,n,o):Dt(o,a):n||(o[o.length]=a)}return o}var bn=Mo(),yn=Mo(!0);function xn(e,t){return e&&bn(e,t,Ta)}function wn(e,t){return e&&yn(e,t,Ta)}function _n(e,t){return It(t,(function(t){return Xs(e[t])}))}function Sn(e,t){for(var r=0,n=(t=xo(t,e)).length;null!=e&&r<n;)e=e[Li(t[r++])];return r&&r==n?e:o}function An(e,t,r){var n=t(e);return Ws(e)?n:Dt(n,r(e))}function Cn(e){return null==e?e===o?"[object Undefined]":"[object Null]":Ye&&Ye in ke(e)?function(e){var t=Me.call(e,Ye),r=e[Ye];try{e[Ye]=o;var n=!0}catch(s){}var i=Fe.call(e);n&&(t?e[Ye]=r:delete e[Ye]);return i}(e):function(e){return Fe.call(e)}(e)}function kn(e,t){return e>t}function En(e,t){return null!=e&&Me.call(e,t)}function Rn(e,t){return null!=e&&t in ke(e)}function jn(e,t,n){for(var i=n?Nt:Pt,s=e[0].length,a=e.length,l=a,u=r(a),c=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Mt(p,Zt(t))),c=br(p.length,c),u[l]=!n&&(t||s>=120&&p.length>=120)?new Gr(l&&p):o}p=e[0];var h=-1,f=u[0];e:for(;++h<s&&d.length<c;){var m=p[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(f?tr(f,g):i(d,g,n))){for(l=a;--l;){var v=u[l];if(!(v?tr(v,g):i(e[l],g,n)))continue e}f&&f.push(g),d.push(m)}}return d}function On(e,t,r){var n=null==(e=Ri(e,t=xo(t,e)))?e:e[Li(Ji(t))];return null==n?o:Et(n,e,r)}function Tn(e){return ta(e)&&Cn(e)==b}function In(e,t,r,n,i){return e===t||(null==e||null==t||!ta(e)&&!ta(t)?e!==e&&t!==t:function(e,t,r,n,i,s){var a=Ws(e),l=Ws(t),u=a?y:mi(e),c=l?y:mi(t),d=(u=u==b?E:u)==E,p=(c=c==b?E:c)==E,h=u==c;if(h&&Qs(e)){if(!Qs(t))return!1;a=!0,d=!1}if(h&&!d)return s||(s=new Qr),a||ua(e)?ri(e,t,r,n,i,s):function(e,t,r,n,o,i,s){switch(r){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!i(new We(e),new We(t)));case x:case w:case k:return Bs(+e,+t);case _:return e.name==t.name&&e.message==t.message;case j:case T:return e==t+"";case C:var a=lr;case O:var l=1&n;if(a||(a=dr),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=2,s.set(e,t);var c=ri(a(e),a(t),n,o,i,s);return s.delete(e),c;case I:if(Lr)return Lr.call(e)==Lr.call(t)}return!1}(e,t,u,r,n,i,s);if(!(1&r)){var f=d&&Me.call(e,"__wrapped__"),m=p&&Me.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,v=m?t.value():t;return s||(s=new Qr),i(g,v,r,n,s)}}if(!h)return!1;return s||(s=new Qr),function(e,t,r,n,i,s){var a=1&r,l=oi(e),u=l.length,c=oi(t),d=c.length;if(u!=d&&!a)return!1;var p=u;for(;p--;){var h=l[p];if(!(a?h in t:Me.call(t,h)))return!1}var f=s.get(e),m=s.get(t);if(f&&m)return f==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var v=a;for(;++p<u;){var b=e[h=l[p]],y=t[h];if(n)var x=a?n(y,b,h,t,e,s):n(b,y,h,e,t,s);if(!(x===o?b===y||i(b,y,r,n,s):x)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,r,n,i,s)}(e,t,r,n,In,i))}function Pn(e,t,r,n){var i=r.length,s=i,a=!n;if(null==e)return!s;for(e=ke(e);i--;){var l=r[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){var u=(l=r[i])[0],c=e[u],d=l[1];if(a&&l[2]){if(c===o&&!(u in e))return!1}else{var p=new Qr;if(n)var h=n(c,d,u,e,t,p);if(!(h===o?In(d,c,3,n,p):h))return!1}}return!0}function Nn(e){return!(!ea(e)||(t=e,Le&&Le in t))&&(Xs(e)?$e:be).test(Fi(e));var t}function Mn(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Ws(e)?$n(e[0],e[1]):Bn(e):pl(e)}function Dn(e){if(!Ai(e))return Bt(e);var t=[];for(var r in ke(e))Me.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Ln(e){if(!ea(e))return function(e){var t=[];if(null!=e)for(var r in ke(e))t.push(r);return t}(e);var t=Ai(e),r=[];for(var n in e)("constructor"!=n||!t&&Me.call(e,n))&&r.push(n);return r}function Fn(e,t){return e<t}function zn(e,t){var n=-1,o=qs(e)?r(e.length):[];return pn(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Bn(e){var t=di(e);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(r){return r===e||Pn(r,e,t)}}function $n(e,t){return wi(e)&&Ci(t)?ki(Li(e),t):function(r){var n=ka(r,e);return n===o&&n===t?Ea(r,e):In(t,n,3)}}function Hn(e,t,r,n,i){e!==t&&bn(t,(function(s,a){if(i||(i=new Qr),ea(s))!function(e,t,r,n,i,s,a){var l=ji(e,r),u=ji(t,r),c=a.get(u);if(c)return void Zr(e,r,c);var d=s?s(l,u,r+"",e,t,a):o,p=d===o;if(p){var h=Ws(u),f=!h&&Qs(u),m=!h&&!f&&ua(u);d=u,h||f||m?Ws(l)?d=l:Gs(l)?d=Oo(l):f?(p=!1,d=Ao(u,!0)):m?(p=!1,d=ko(u,!0)):d=[]:oa(u)||Us(u)?(d=l,Us(l)?d=va(l):ea(l)&&!Xs(l)||(d=vi(u))):p=!1}p&&(a.set(u,d),i(d,u,n,s,a),a.delete(u));Zr(e,r,d)}(e,t,a,r,Hn,n,i);else{var l=n?n(ji(e,a),s,a+"",e,t,i):o;l===o&&(l=s),Zr(e,a,l)}}),Ia)}function Un(e,t){var r=e.length;if(r)return yi(t+=t<0?r:0,r)?e[t]:o}function Wn(e,t,r){t=t.length?Mt(t,(function(e){return Ws(e)?function(t){return Sn(t,1===e.length?e[0]:e)}:e})):[nl];var n=-1;t=Mt(t,Zt(ui()));var o=zn(e,(function(e,r,o){var i=Mt(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(o,(function(e,t){return function(e,t,r){var n=-1,o=e.criteria,i=t.criteria,s=o.length,a=r.length;for(;++n<s;){var l=Eo(o[n],i[n]);if(l)return n>=a?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function Vn(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var s=t[n],a=Sn(e,s);r(a,s)&&Zn(i,xo(s,e),a)}return i}function qn(e,t,r,n){var o=n?Wt:Ut,i=-1,s=t.length,a=e;for(e===t&&(t=Oo(t)),r&&(a=Mt(e,Zt(r)));++i<s;)for(var l=0,u=t[i],c=r?r(u):u;(l=o(a,c,l,n))>-1;)a!==e&&Ke.call(a,l,1),Ke.call(e,l,1);return e}function Gn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;yi(o)?Ke.call(e,o,1):po(e,o)}}return e}function Qn(e,t){return e+ft(wr()*(t-e+1))}function Kn(e,t){var r="";if(!e||t<1||t>f)return r;do{t%2&&(r+=e),(t=ft(t/2))&&(e+=e)}while(t);return r}function Jn(e,t){return Ii(Ei(e,t,nl),e+"")}function Xn(e){return Jr(Ba(e))}function Yn(e,t){var r=Ba(e);return Mi(r,an(t,0,r.length))}function Zn(e,t,r,n){if(!ea(e))return e;for(var i=-1,s=(t=xo(t,e)).length,a=s-1,l=e;null!=l&&++i<s;){var u=Li(t[i]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var d=l[u];(c=n?n(d,u,l):o)===o&&(c=ea(d)?d:yi(t[i+1])?[]:{})}en(l,u,c),l=l[u]}return e}var eo=jr?function(e,t){return jr.set(e,t),e}:nl,to=Ze?function(e,t){return Ze(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:nl;function ro(e){return Mi(Ba(e))}function no(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=r(i);++o<i;)s[o]=e[o+t];return s}function oo(e,t){var r;return pn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function io(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t===t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,s=e[i];null!==s&&!la(s)&&(r?s<=t:s<t)?n=i+1:o=i}return o}return so(e,t,nl,r)}function so(e,t,r,n){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!==t,l=null===t,u=la(t),c=t===o;i<s;){var d=ft((i+s)/2),p=r(e[d]),h=p!==o,f=null===p,m=p===p,g=la(p);if(a)var v=n||m;else v=c?m&&(n||h):l?m&&h&&(n||!f):u?m&&h&&!f&&(n||!g):!f&&!g&&(n?p<=t:p<t);v?i=d+1:s=d}return br(s,4294967294)}function ao(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var s=e[r],a=t?t(s):s;if(!r||!Bs(a,l)){var l=a;i[o++]=0===s?0:s}}return i}function lo(e){return"number"==typeof e?e:la(e)?m:+e}function uo(e){if("string"==typeof e)return e;if(Ws(e))return Mt(e,uo)+"";if(la(e))return Fr?Fr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,r){var n=-1,o=Pt,i=e.length,s=!0,a=[],l=a;if(r)s=!1,o=Nt;else if(i>=200){var u=t?null:Jo(e);if(u)return dr(u);s=!1,o=tr,l=new Gr}else l=t?[]:a;e:for(;++n<i;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,s&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),a.push(c)}else o(l,d,r)||(l!==a&&l.push(d),a.push(c))}return a}function po(e,t){return null==(e=Ri(e,t=xo(t,e)))||delete e[Li(Ji(t))]}function ho(e,t,r,n){return Zn(e,t,r(Sn(e,t)),n)}function fo(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?no(e,n?0:i,n?i+1:o):no(e,n?i+1:0,n?o:i)}function mo(e,t){var r=e;return r instanceof Ur&&(r=r.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),r)}function go(e,t,n){var o=e.length;if(o<2)return o?co(e[0]):[];for(var i=-1,s=r(o);++i<o;)for(var a=e[i],l=-1;++l<o;)l!=i&&(s[i]=dn(s[i]||a,e[l],t,n));return co(vn(s,1),t,n)}function vo(e,t,r){for(var n=-1,i=e.length,s=t.length,a={};++n<i;){var l=n<s?t[n]:o;r(a,e[n],l)}return a}function bo(e){return Gs(e)?e:[]}function yo(e){return"function"==typeof e?e:nl}function xo(e,t){return Ws(e)?e:wi(e,t)?[e]:Di(ba(e))}var wo=Jn;function _o(e,t,r){var n=e.length;return r=r===o?n:r,!t&&r>=n?e:no(e,t,r)}var So=rt||function(e){return mt.clearTimeout(e)};function Ao(e,t){if(t)return e.slice();var r=e.length,n=Ve?Ve(r):new e.constructor(r);return e.copy(n),n}function Co(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function ko(e,t){var r=t?Co(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var r=e!==o,n=null===e,i=e===e,s=la(e),a=t!==o,l=null===t,u=t===t,c=la(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||n&&a&&u||!r&&u||!i)return 1;if(!n&&!s&&!c&&e<t||c&&r&&i&&!n&&!s||l&&r&&i||!a&&i||!u)return-1}return 0}function Ro(e,t,n,o){for(var i=-1,s=e.length,a=n.length,l=-1,u=t.length,c=Qt(s-a,0),d=r(u+c),p=!o;++l<u;)d[l]=t[l];for(;++i<a;)(p||i<s)&&(d[n[i]]=e[i]);for(;c--;)d[l++]=e[i++];return d}function jo(e,t,n,o){for(var i=-1,s=e.length,a=-1,l=n.length,u=-1,c=t.length,d=Qt(s-l,0),p=r(d+c),h=!o;++i<d;)p[i]=e[i];for(var f=i;++u<c;)p[f+u]=t[u];for(;++a<l;)(h||i<s)&&(p[f+n[a]]=e[i++]);return p}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function To(e,t,r,n){var i=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var l=t[s],u=n?n(r[l],e[l],l,r,e):o;u===o&&(u=e[l]),i?on(r,l,u):en(r,l,u)}return r}function Io(e,t){return function(r,n){var o=Ws(r)?Rt:rn,i=t?t():{};return o(r,e,ui(n,2),i)}}function Po(e){return Jn((function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:o,a=i>2?r[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&xi(r[0],r[1],a)&&(s=i<3?o:s,i=1),t=ke(t);++n<i;){var l=r[n];l&&e(t,l,n,s)}return t}))}function No(e,t){return function(r,n){if(null==r)return r;if(!qs(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=ke(r);(t?i--:++i<o)&&!1!==n(s[i],i,s););return r}}function Mo(e){return function(t,r,n){for(var o=-1,i=ke(t),s=n(t),a=s.length;a--;){var l=s[e?a:++o];if(!1===r(i[l],l,i))break}return t}}function Do(e){return function(t){var r=ar(t=ba(t))?fr(t):o,n=r?r[0]:t.charAt(0),i=r?_o(r,1).join(""):t.slice(1);return n[e]()+i}}function Lo(e){return function(t){return Lt(Xa(Ua(t).replace(et,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Br(e.prototype),n=e.apply(r,t);return ea(n)?n:r}}function zo(e){return function(t,r,n){var i=ke(t);if(!qs(t)){var s=ui(r,3);t=Ta(t),r=function(e){return s(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[s?t[a]:a]:o}}function Bo(e){return ni((function(t){var r=t.length,n=r,s=Hr.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new je(i);if(s&&!l&&"wrapper"==ai(a))var l=new Hr([],!0)}for(n=l?n:r;++n<r;){var u=ai(a=t[n]),c="wrapper"==u?si(a):o;l=c&&_i(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ai(c[0])].apply(l,c[3]):1==a.length&&_i(a)?l[u]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Ws(n))return l.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function $o(e,t,n,i,s,a,l,u,c,p){var h=t&d,f=1&t,m=2&t,g=24&t,v=512&t,b=m?o:Fo(e);return function d(){for(var y=arguments.length,x=r(y),w=y;w--;)x[w]=arguments[w];if(g)var _=li(d),S=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(x,_);if(i&&(x=Ro(x,i,s,g)),a&&(x=jo(x,a,l,g)),y-=S,g&&y<p){var A=cr(x,_);return Qo(e,t,$o,d.placeholder,n,x,A,u,c,p-y)}var C=f?n:this,k=m?C[e]:e;return y=x.length,u?x=function(e,t){var r=e.length,n=br(t.length,r),i=Oo(e);for(;n--;){var s=t[n];e[n]=yi(s,r)?i[s]:o}return e}(x,u):v&&y>1&&x.reverse(),h&&c<y&&(x.length=c),this&&this!==mt&&this instanceof d&&(k=b||Fo(k)),k.apply(C,x)}}function Ho(e,t){return function(r,n){return function(e,t,r,n){return xn(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function Uo(e,t){return function(r,n){var i;if(r===o&&n===o)return t;if(r!==o&&(i=r),n!==o){if(i===o)return n;"string"==typeof r||"string"==typeof n?(r=uo(r),n=uo(n)):(r=lo(r),n=lo(n)),i=e(r,n)}return i}}function Wo(e){return ni((function(t){return t=Mt(t,Zt(ui())),Jn((function(r){var n=this;return e(t,(function(e){return Et(e,n,r)}))}))}))}function Vo(e,t){var r=(t=t===o?" ":uo(t)).length;if(r<2)return r?Kn(t,e):t;var n=Kn(t,ht(e/hr(t)));return ar(t)?_o(fr(n),0,e).join(""):n.slice(0,e)}function qo(e){return function(t,n,i){return i&&"number"!=typeof i&&xi(t,n,i)&&(n=i=o),t=ha(t),n===o?(n=t,t=0):n=ha(n),function(e,t,n,o){for(var i=-1,s=Qt(ht((t-e)/(n||1)),0),a=r(s);s--;)a[o?s:++i]=e,e+=n;return a}(t,n,i=i===o?t<n?1:-1:ha(i),e)}}function Go(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ga(t),r=ga(r)),e(t,r)}}function Qo(e,t,r,n,i,s,a,l,d,p){var h=8&t;t|=h?u:c,4&(t&=~(h?c:u))||(t&=-4);var f=[e,t,i,h?s:o,h?a:o,h?o:s,h?o:a,l,d,p],m=r.apply(o,f);return _i(e)&&Oi(m,f),m.placeholder=n,Pi(m,e,t)}function Ko(e){var t=Ce[e];return function(e,r){if(e=ga(e),(r=null==r?0:br(fa(r),292))&&yt(e)){var n=(ba(e)+"e").split("e");return+((n=(ba(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Jo=kr&&1/dr(new kr([,-0]))[1]==h?function(e){return new kr(e)}:ll;function Xo(e){return function(t){var r=mi(t);return r==C?lr(t):r==O?pr(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yo(e,t,n,s,h,f,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new je(i);var b=s?s.length:0;if(b||(t&=-97,s=h=o),m=m===o?m:Qt(fa(m),0),g=g===o?g:fa(g),b-=h?h.length:0,t&c){var y=s,x=h;s=h=o}var w=v?o:si(e),_=[e,t,n,s,h,y,x,f,m,g];if(w&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,s=n==d&&8==r||n==d&&r==p&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!s)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Ro(u,l,t[4]):l,e[4]=u?cr(e[3],a):t[4]}(l=t[5])&&(u=e[5],e[5]=u?jo(u,l,t[6]):l,e[6]=u?cr(e[5],a):t[6]);(l=t[7])&&(e[7]=l);n&d&&(e[8]=null==e[8]?t[8]:br(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(_,w),e=_[0],t=_[1],n=_[2],s=_[3],h=_[4],!(g=_[9]=_[9]===o?v?0:e.length:Qt(_[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==l?function(e,t,n){var i=Fo(e);return function s(){for(var a=arguments.length,l=r(a),u=a,c=li(s);u--;)l[u]=arguments[u];var d=a<3&&l[0]!==c&&l[a-1]!==c?[]:cr(l,c);return(a-=d.length)<n?Qo(e,t,$o,s.placeholder,o,l,d,o,o,n-a):Et(this&&this!==mt&&this instanceof s?i:e,this,l)}}(e,t,g):t!=u&&33!=t||h.length?$o.apply(o,_):function(e,t,n,o){var i=1&t,s=Fo(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=o.length,d=r(c+l),p=this&&this!==mt&&this instanceof t?s:e;++u<c;)d[u]=o[u];for(;l--;)d[u++]=arguments[++a];return Et(p,i?n:this,d)}}(e,t,n,s);else var S=function(e,t,r){var n=1&t,o=Fo(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,n);return Pi((w?eo:Oi)(S,_),e,t)}function Zo(e,t,r,n){return e===o||Bs(e,Ie[r])&&!Me.call(n,r)?t:e}function ei(e,t,r,n,i,s){return ea(e)&&ea(t)&&(s.set(t,e),Hn(e,t,o,ei,s),s.delete(t)),e}function ti(e){return oa(e)?o:e}function ri(e,t,r,n,i,s){var a=1&r,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var p=-1,h=!0,f=2&r?new Gr:o;for(s.set(e,t),s.set(t,e);++p<l;){var m=e[p],g=t[p];if(n)var v=a?n(g,m,p,t,e,s):n(m,g,p,e,t,s);if(v!==o){if(v)continue;h=!1;break}if(f){if(!zt(t,(function(e,t){if(!tr(f,t)&&(m===e||i(m,e,r,n,s)))return f.push(t)}))){h=!1;break}}else if(m!==g&&!i(m,g,r,n,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function ni(e){return Ii(Ei(e,o,Vi),e+"")}function oi(e){return An(e,Ta,hi)}function ii(e){return An(e,Ia,fi)}var si=jr?function(e){return jr.get(e)}:ll;function ai(e){for(var t=e.name+"",r=Or[t],n=Me.call(Or,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function li(e){return(Me.call(zr,"placeholder")?zr:e).placeholder}function ui(){var e=zr.iteratee||ol;return e=e===ol?Mn:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function di(e){for(var t=Ta(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Ci(o)]}return t}function pi(e,t){var r=function(e,t){return null==e?o:e[t]}(e,t);return Nn(r)?r:o}var hi=gt?function(e){return null==e?[]:(e=ke(e),It(gt(e),(function(t){return Qe.call(e,t)})))}:ml,fi=gt?function(e){for(var t=[];e;)Dt(t,hi(e)),e=qe(e);return t}:ml,mi=Cn;function gi(e,t,r){for(var n=-1,o=(t=xo(t,e)).length,i=!1;++n<o;){var s=Li(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Zs(o)&&yi(s,o)&&(Ws(e)||Us(e))}function vi(e){return"function"!=typeof e.constructor||Ai(e)?{}:Br(qe(e))}function bi(e){return Ws(e)||Us(e)||!!(Je&&e&&e[Je])}function yi(e,t){var r=typeof e;return!!(t=null==t?f:t)&&("number"==r||"symbol"!=r&&xe.test(e))&&e>-1&&e%1==0&&e<t}function xi(e,t,r){if(!ea(r))return!1;var n=typeof t;return!!("number"==n?qs(r)&&yi(t,r.length):"string"==n&&t in r)&&Bs(r[t],e)}function wi(e,t){if(Ws(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!la(e))||(re.test(e)||!te.test(e)||null!=t&&e in ke(t))}function _i(e){var t=ai(e),r=zr[t];if("function"!=typeof r||!(t in Ur.prototype))return!1;if(e===r)return!0;var n=si(r);return!!n&&e===n[0]}(Sr&&mi(new Sr(new ArrayBuffer(1)))!=M||Ar&&mi(new Ar)!=C||Cr&&mi(Cr.resolve())!=R||kr&&mi(new kr)!=O||Er&&mi(new Er)!=P)&&(mi=function(e){var t=Cn(e),r=t==E?e.constructor:o,n=r?Fi(r):"";if(n)switch(n){case Tr:return M;case Ir:return C;case Pr:return R;case Nr:return O;case Mr:return P}return t});var Si=Pe?Xs:gl;function Ai(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function Ci(e){return e===e&&!ea(e)}function ki(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==o||e in ke(r)))}}function Ei(e,t,n){return t=Qt(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=Qt(o.length-t,0),a=r(s);++i<s;)a[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(a),Et(e,this,l)}}function Ri(e,t){return t.length<2?e:Sn(e,no(t,0,-1))}function ji(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=Ni(eo),Ti=ct||function(e,t){return mt.setTimeout(e,t)},Ii=Ni(to);function Pi(e,t,r){var n=t+"";return Ii(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return jt(v,(function(r){var n="_."+r[0];t&r[1]&&!Pt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(n),r)))}function Ni(e){var t=0,r=0;return function(){var n=yr(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Mi(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r<t;){var s=Qn(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var Di=function(e){var t=Ns(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,r,n,o){t.push(n?o.replace(he,"$1"):r||e)})),t}));function Li(e){if("string"==typeof e||la(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Ne.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function zi(e){if(e instanceof Ur)return e.clone();var t=new Hr(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Jn((function(e,t){return Gs(e)?dn(e,vn(t,1,Gs,!0)):[]})),$i=Jn((function(e,t){var r=Ji(t);return Gs(r)&&(r=o),Gs(e)?dn(e,vn(t,1,Gs,!0),ui(r,2)):[]})),Hi=Jn((function(e,t){var r=Ji(t);return Gs(r)&&(r=o),Gs(e)?dn(e,vn(t,1,Gs,!0),o,r):[]}));function Ui(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:fa(r);return o<0&&(o=Qt(n+o,0)),Ht(e,ui(t,3),o)}function Wi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==o&&(i=fa(r),i=r<0?Qt(n+i,0):br(i,n-1)),Ht(e,ui(t,3),i,!0)}function Vi(e){return(null==e?0:e.length)?vn(e,1):[]}function qi(e){return e&&e.length?e[0]:o}var Gi=Jn((function(e){var t=Mt(e,bo);return t.length&&t[0]===e[0]?jn(t):[]})),Qi=Jn((function(e){var t=Ji(e),r=Mt(e,bo);return t===Ji(r)?t=o:r.pop(),r.length&&r[0]===e[0]?jn(r,ui(t,2)):[]})),Ki=Jn((function(e){var t=Ji(e),r=Mt(e,bo);return(t="function"==typeof t?t:o)&&r.pop(),r.length&&r[0]===e[0]?jn(r,o,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xi=Jn(Yi);function Yi(e,t){return e&&e.length&&t&&t.length?qn(e,t):e}var Zi=ni((function(e,t){var r=null==e?0:e.length,n=sn(e,t);return Gn(e,Mt(t,(function(e){return yi(e,r)?+e:e})).sort(Eo)),n}));function es(e){return null==e?e:_r.call(e)}var ts=Jn((function(e){return co(vn(e,1,Gs,!0))})),rs=Jn((function(e){var t=Ji(e);return Gs(t)&&(t=o),co(vn(e,1,Gs,!0),ui(t,2))})),ns=Jn((function(e){var t=Ji(e);return t="function"==typeof t?t:o,co(vn(e,1,Gs,!0),o,t)}));function os(e){if(!e||!e.length)return[];var t=0;return e=It(e,(function(e){if(Gs(e))return t=Qt(e.length,t),!0})),Xt(t,(function(t){return Mt(e,Gt(t))}))}function is(e,t){if(!e||!e.length)return[];var r=os(e);return null==t?r:Mt(r,(function(e){return Et(t,o,e)}))}var ss=Jn((function(e,t){return Gs(e)?dn(e,t):[]})),as=Jn((function(e){return go(It(e,Gs))})),ls=Jn((function(e){var t=Ji(e);return Gs(t)&&(t=o),go(It(e,Gs),ui(t,2))})),us=Jn((function(e){var t=Ji(e);return t="function"==typeof t?t:o,go(It(e,Gs),o,t)})),cs=Jn(os);var ds=Jn((function(e){var t=e.length,r=t>1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,is(e,r)}));function ps(e){var t=zr(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var fs=ni((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return sn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Ur&&yi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:hs,args:[i],thisArg:o}),new Hr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ms=Io((function(e,t,r){Me.call(e,r)?++e[r]:on(e,r,1)}));var gs=zo(Ui),vs=zo(Wi);function bs(e,t){return(Ws(e)?jt:pn)(e,ui(t,3))}function ys(e,t){return(Ws(e)?Ot:hn)(e,ui(t,3))}var xs=Io((function(e,t,r){Me.call(e,r)?e[r].push(t):on(e,r,[t])}));var ws=Jn((function(e,t,n){var o=-1,i="function"==typeof t,s=qs(e)?r(e.length):[];return pn(e,(function(e){s[++o]=i?Et(t,e,n):On(e,t,n)})),s})),_s=Io((function(e,t,r){on(e,r,t)}));function Ss(e,t){return(Ws(e)?Mt:zn)(e,ui(t,3))}var As=Io((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Cs=Jn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&xi(e,t[0],t[1])?t=[]:r>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Wn(e,vn(t,1),[])})),ks=ot||function(){return mt.Date.now()};function Es(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Yo(e,d,o,o,o,o,t)}function Rs(e,t){var r;if("function"!=typeof t)throw new je(i);return e=fa(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var js=Jn((function(e,t,r){var n=1;if(r.length){var o=cr(r,li(js));n|=u}return Yo(e,n,t,r,o)})),Os=Jn((function(e,t,r){var n=3;if(r.length){var o=cr(r,li(Os));n|=u}return Yo(t,n,e,r,o)}));function Ts(e,t,r){var n,s,a,l,u,c,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new je(i);function m(t){var r=n,i=s;return n=s=o,d=t,l=e.apply(i,r)}function g(e){var r=e-c;return c===o||r>=t||r<0||h&&e-d>=a}function v(){var e=ks();if(g(e))return b(e);u=Ti(v,function(e){var r=t-(e-c);return h?br(r,a-(e-d)):r}(e))}function b(e){return u=o,f&&n?m(e):(n=s=o,l)}function y(){var e=ks(),r=g(e);if(n=arguments,s=this,c=e,r){if(u===o)return function(e){return d=e,u=Ti(v,t),p?m(e):l}(c);if(h)return So(u),u=Ti(v,t),m(c)}return u===o&&(u=Ti(v,t)),l}return t=ga(t)||0,ea(r)&&(p=!!r.leading,a=(h="maxWait"in r)?Qt(ga(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),y.cancel=function(){u!==o&&So(u),d=0,n=c=s=u=o},y.flush=function(){return u===o?l:b(ks())},y}var Is=Jn((function(e,t){return cn(e,1,t)})),Ps=Jn((function(e,t,r){return cn(e,ga(t)||0,r)}));function Ns(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new je(i);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Ns.Cache||qr),r}function Ms(e){if("function"!=typeof e)throw new je(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ns.Cache=qr;var Ds=wo((function(e,t){var r=(t=1==t.length&&Ws(t[0])?Mt(t[0],Zt(ui())):Mt(vn(t,1),Zt(ui()))).length;return Jn((function(n){for(var o=-1,i=br(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return Et(e,this,n)}))})),Ls=Jn((function(e,t){var r=cr(t,li(Ls));return Yo(e,u,o,t,r)})),Fs=Jn((function(e,t){var r=cr(t,li(Fs));return Yo(e,c,o,t,r)})),zs=ni((function(e,t){return Yo(e,p,o,o,o,t)}));function Bs(e,t){return e===t||e!==e&&t!==t}var $s=Go(kn),Hs=Go((function(e,t){return e>=t})),Us=Tn(function(){return arguments}())?Tn:function(e){return ta(e)&&Me.call(e,"callee")&&!Qe.call(e,"callee")},Ws=r.isArray,Vs=wt?Zt(wt):function(e){return ta(e)&&Cn(e)==N};function qs(e){return null!=e&&Zs(e.length)&&!Xs(e)}function Gs(e){return ta(e)&&qs(e)}var Qs=vt||gl,Ks=_t?Zt(_t):function(e){return ta(e)&&Cn(e)==w};function Js(e){if(!ta(e))return!1;var t=Cn(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oa(e)}function Xs(e){if(!ea(e))return!1;var t=Cn(e);return t==S||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ys(e){return"number"==typeof e&&e==fa(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var ra=St?Zt(St):function(e){return ta(e)&&mi(e)==C};function na(e){return"number"==typeof e||ta(e)&&Cn(e)==k}function oa(e){if(!ta(e)||Cn(e)!=E)return!1;var t=qe(e);if(null===t)return!0;var r=Me.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ne.call(r)==ze}var ia=At?Zt(At):function(e){return ta(e)&&Cn(e)==j};var sa=Ct?Zt(Ct):function(e){return ta(e)&&mi(e)==O};function aa(e){return"string"==typeof e||!Ws(e)&&ta(e)&&Cn(e)==T}function la(e){return"symbol"==typeof e||ta(e)&&Cn(e)==I}var ua=kt?Zt(kt):function(e){return ta(e)&&Zs(e.length)&&!!lt[Cn(e)]};var ca=Go(Fn),da=Go((function(e,t){return e<=t}));function pa(e){if(!e)return[];if(qs(e))return aa(e)?fr(e):Oo(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=mi(e);return(t==C?lr:t==O?dr:Ba)(e)}function ha(e){return e?(e=ga(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function fa(e){var t=ha(e),r=t%1;return t===t?r?t-r:t:0}function ma(e){return e?an(fa(e),0,g):0}function ga(e){if("number"==typeof e)return e;if(la(e))return m;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var r=ve.test(e);return r||ye.test(e)?pt(e.slice(2),r?2:8):ge.test(e)?m:+e}function va(e){return To(e,Ia(e))}function ba(e){return null==e?"":uo(e)}var ya=Po((function(e,t){if(Ai(t)||qs(t))To(t,Ta(t),e);else for(var r in t)Me.call(t,r)&&en(e,r,t[r])})),xa=Po((function(e,t){To(t,Ia(t),e)})),wa=Po((function(e,t,r,n){To(t,Ia(t),e,n)})),_a=Po((function(e,t,r,n){To(t,Ta(t),e,n)})),Sa=ni(sn);var Aa=Jn((function(e,t){e=ke(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&xi(t[0],t[1],i)&&(n=1);++r<n;)for(var s=t[r],a=Ia(s),l=-1,u=a.length;++l<u;){var c=a[l],d=e[c];(d===o||Bs(d,Ie[c])&&!Me.call(e,c))&&(e[c]=s[c])}return e})),Ca=Jn((function(e){return e.push(o,ei),Et(Na,o,e)}));function ka(e,t,r){var n=null==e?o:Sn(e,t);return n===o?r:n}function Ea(e,t){return null!=e&&gi(e,t,Rn)}var Ra=Ho((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=r}),el(nl)),ja=Ho((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Me.call(e,t)?e[t].push(r):e[t]=[r]}),ui),Oa=Jn(On);function Ta(e){return qs(e)?Kr(e):Dn(e)}function Ia(e){return qs(e)?Kr(e,!0):Ln(e)}var Pa=Po((function(e,t,r){Hn(e,t,r)})),Na=Po((function(e,t,r,n){Hn(e,t,r,n)})),Ma=ni((function(e,t){var r={};if(null==e)return r;var n=!1;t=Mt(t,(function(t){return t=xo(t,e),n||(n=t.length>1),t})),To(e,ii(e),r),n&&(r=ln(r,7,ti));for(var o=t.length;o--;)po(r,t[o]);return r}));var Da=ni((function(e,t){return null==e?{}:function(e,t){return Vn(e,t,(function(t,r){return Ea(e,r)}))}(e,t)}));function La(e,t){if(null==e)return{};var r=Mt(ii(e),(function(e){return[e]}));return t=ui(t),Vn(e,r,(function(e,r){return t(e,r[0])}))}var Fa=Xo(Ta),za=Xo(Ia);function Ba(e){return null==e?[]:er(e,Ta(e))}var $a=Lo((function(e,t,r){return t=t.toLowerCase(),e+(r?Ha(t):t)}));function Ha(e){return Ja(ba(e).toLowerCase())}function Ua(e){return(e=ba(e))&&e.replace(we,or).replace(tt,"")}var Wa=Lo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Va=Lo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),qa=Do("toLowerCase");var Ga=Lo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Qa=Lo((function(e,t,r){return e+(r?" ":"")+Ja(t)}));var Ka=Lo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ja=Do("toUpperCase");function Xa(e,t,r){return e=ba(e),(t=r?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Ya=Jn((function(e,t){try{return Et(e,o,t)}catch(r){return Js(r)?r:new ae(r)}})),Za=ni((function(e,t){return jt(t,(function(t){t=Li(t),on(e,t,js(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Bo(),rl=Bo(!0);function nl(e){return e}function ol(e){return Mn("function"==typeof e?e:ln(e,1))}var il=Jn((function(e,t){return function(r){return On(r,e,t)}})),sl=Jn((function(e,t){return function(r){return On(e,r,t)}}));function al(e,t,r){var n=Ta(t),o=_n(t,n);null!=r||ea(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=_n(t,Ta(t)));var i=!(ea(r)&&"chain"in r)||!!r.chain,s=Xs(e);return jt(o,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Oo(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Dt([this.value()],arguments))})})),e}function ll(){}var ul=Wo(Mt),cl=Wo(Tt),dl=Wo(zt);function pl(e){return wi(e)?Gt(Li(e)):function(e){return function(t){return Sn(t,e)}}(e)}var hl=qo(),fl=qo(!0);function ml(){return[]}function gl(){return!1}var vl=Uo((function(e,t){return e+t}),0),bl=Ko("ceil"),yl=Uo((function(e,t){return e/t}),1),xl=Ko("floor");var wl=Uo((function(e,t){return e*t}),1),_l=Ko("round"),Sl=Uo((function(e,t){return e-t}),0);return zr.after=function(e,t){if("function"!=typeof t)throw new je(i);return e=fa(e),function(){if(--e<1)return t.apply(this,arguments)}},zr.ary=Es,zr.assign=ya,zr.assignIn=xa,zr.assignInWith=wa,zr.assignWith=_a,zr.at=Sa,zr.before=Rs,zr.bind=js,zr.bindAll=Za,zr.bindKey=Os,zr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ws(e)?e:[e]},zr.chain=ps,zr.chunk=function(e,t,n){t=(n?xi(e,t,n):t===o)?1:Qt(fa(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,l=r(ht(i/t));s<i;)l[a++]=no(e,s,s+=t);return l},zr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},zr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Dt(Ws(n)?Oo(n):[n],vn(t,1))},zr.cond=function(e){var t=null==e?0:e.length,r=ui();return e=t?Mt(e,(function(e){if("function"!=typeof e[1])throw new je(i);return[r(e[0]),e[1]]})):[],Jn((function(r){for(var n=-1;++n<t;){var o=e[n];if(Et(o[0],this,r))return Et(o[1],this,r)}}))},zr.conforms=function(e){return function(e){var t=Ta(e);return function(r){return un(r,e,t)}}(ln(e,1))},zr.constant=el,zr.countBy=ms,zr.create=function(e,t){var r=Br(e);return null==t?r:nn(r,t)},zr.curry=function e(t,r,n){var i=Yo(t,8,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},zr.curryRight=function e(t,r,n){var i=Yo(t,l,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},zr.debounce=Ts,zr.defaults=Aa,zr.defaultsDeep=Ca,zr.defer=Is,zr.delay=Ps,zr.difference=Bi,zr.differenceBy=$i,zr.differenceWith=Hi,zr.drop=function(e,t,r){var n=null==e?0:e.length;return n?no(e,(t=r||t===o?1:fa(t))<0?0:t,n):[]},zr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?no(e,0,(t=n-(t=r||t===o?1:fa(t)))<0?0:t):[]},zr.dropRightWhile=function(e,t){return e&&e.length?fo(e,ui(t,3),!0,!0):[]},zr.dropWhile=function(e,t){return e&&e.length?fo(e,ui(t,3),!0):[]},zr.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&xi(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=fa(r))<0&&(r=-r>i?0:i+r),(n=n===o||n>i?i:fa(n))<0&&(n+=i),n=r>n?0:ma(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},zr.filter=function(e,t){return(Ws(e)?It:gn)(e,ui(t,3))},zr.flatMap=function(e,t){return vn(Ss(e,t),1)},zr.flatMapDeep=function(e,t){return vn(Ss(e,t),h)},zr.flatMapDepth=function(e,t,r){return r=r===o?1:fa(r),vn(Ss(e,t),r)},zr.flatten=Vi,zr.flattenDeep=function(e){return(null==e?0:e.length)?vn(e,h):[]},zr.flattenDepth=function(e,t){return(null==e?0:e.length)?vn(e,t=t===o?1:fa(t)):[]},zr.flip=function(e){return Yo(e,512)},zr.flow=tl,zr.flowRight=rl,zr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},zr.functions=function(e){return null==e?[]:_n(e,Ta(e))},zr.functionsIn=function(e){return null==e?[]:_n(e,Ia(e))},zr.groupBy=xs,zr.initial=function(e){return(null==e?0:e.length)?no(e,0,-1):[]},zr.intersection=Gi,zr.intersectionBy=Qi,zr.intersectionWith=Ki,zr.invert=Ra,zr.invertBy=ja,zr.invokeMap=ws,zr.iteratee=ol,zr.keyBy=_s,zr.keys=Ta,zr.keysIn=Ia,zr.map=Ss,zr.mapKeys=function(e,t){var r={};return t=ui(t,3),xn(e,(function(e,n,o){on(r,t(e,n,o),e)})),r},zr.mapValues=function(e,t){var r={};return t=ui(t,3),xn(e,(function(e,n,o){on(r,n,t(e,n,o))})),r},zr.matches=function(e){return Bn(ln(e,1))},zr.matchesProperty=function(e,t){return $n(e,ln(t,1))},zr.memoize=Ns,zr.merge=Pa,zr.mergeWith=Na,zr.method=il,zr.methodOf=sl,zr.mixin=al,zr.negate=Ms,zr.nthArg=function(e){return e=fa(e),Jn((function(t){return Un(t,e)}))},zr.omit=Ma,zr.omitBy=function(e,t){return La(e,Ms(ui(t)))},zr.once=function(e){return Rs(2,e)},zr.orderBy=function(e,t,r,n){return null==e?[]:(Ws(t)||(t=null==t?[]:[t]),Ws(r=n?o:r)||(r=null==r?[]:[r]),Wn(e,t,r))},zr.over=ul,zr.overArgs=Ds,zr.overEvery=cl,zr.overSome=dl,zr.partial=Ls,zr.partialRight=Fs,zr.partition=As,zr.pick=Da,zr.pickBy=La,zr.property=pl,zr.propertyOf=function(e){return function(t){return null==e?o:Sn(e,t)}},zr.pull=Xi,zr.pullAll=Yi,zr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?qn(e,t,ui(r,2)):e},zr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?qn(e,t,o,r):e},zr.pullAt=Zi,zr.range=hl,zr.rangeRight=fl,zr.rearg=zs,zr.reject=function(e,t){return(Ws(e)?It:gn)(e,Ms(ui(t,3)))},zr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=ui(t,3);++n<i;){var s=e[n];t(s,n,e)&&(r.push(s),o.push(n))}return Gn(e,o),r},zr.rest=function(e,t){if("function"!=typeof e)throw new je(i);return Jn(e,t=t===o?t:fa(t))},zr.reverse=es,zr.sampleSize=function(e,t,r){return t=(r?xi(e,t,r):t===o)?1:fa(t),(Ws(e)?Xr:Yn)(e,t)},zr.set=function(e,t,r){return null==e?e:Zn(e,t,r)},zr.setWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Zn(e,t,r,n)},zr.shuffle=function(e){return(Ws(e)?Yr:ro)(e)},zr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&xi(e,t,r)?(t=0,r=n):(t=null==t?0:fa(t),r=r===o?n:fa(r)),no(e,t,r)):[]},zr.sortBy=Cs,zr.sortedUniq=function(e){return e&&e.length?ao(e):[]},zr.sortedUniqBy=function(e,t){return e&&e.length?ao(e,ui(t,2)):[]},zr.split=function(e,t,r){return r&&"number"!=typeof r&&xi(e,t,r)&&(t=r=o),(r=r===o?g:r>>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=uo(t))&&ar(e)?_o(fr(e),0,r):e.split(t,r):[]},zr.spread=function(e,t){if("function"!=typeof e)throw new je(i);return t=null==t?0:Qt(fa(t),0),Jn((function(r){var n=r[t],o=_o(r,0,t);return n&&Dt(o,n),Et(e,this,o)}))},zr.tail=function(e){var t=null==e?0:e.length;return t?no(e,1,t):[]},zr.take=function(e,t,r){return e&&e.length?no(e,0,(t=r||t===o?1:fa(t))<0?0:t):[]},zr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?no(e,(t=n-(t=r||t===o?1:fa(t)))<0?0:t,n):[]},zr.takeRightWhile=function(e,t){return e&&e.length?fo(e,ui(t,3),!1,!0):[]},zr.takeWhile=function(e,t){return e&&e.length?fo(e,ui(t,3)):[]},zr.tap=function(e,t){return t(e),e},zr.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new je(i);return ea(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ts(e,t,{leading:n,maxWait:t,trailing:o})},zr.thru=hs,zr.toArray=pa,zr.toPairs=Fa,zr.toPairsIn=za,zr.toPath=function(e){return Ws(e)?Mt(e,Li):la(e)?[e]:Oo(Di(ba(e)))},zr.toPlainObject=va,zr.transform=function(e,t,r){var n=Ws(e),o=n||Qs(e)||ua(e);if(t=ui(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:ea(e)&&Xs(i)?Br(qe(e)):{}}return(o?jt:xn)(e,(function(e,n,o){return t(r,e,n,o)})),r},zr.unary=function(e){return Es(e,1)},zr.union=ts,zr.unionBy=rs,zr.unionWith=ns,zr.uniq=function(e){return e&&e.length?co(e):[]},zr.uniqBy=function(e,t){return e&&e.length?co(e,ui(t,2)):[]},zr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?co(e,o,t):[]},zr.unset=function(e,t){return null==e||po(e,t)},zr.unzip=os,zr.unzipWith=is,zr.update=function(e,t,r){return null==e?e:ho(e,t,yo(r))},zr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:ho(e,t,yo(r),n)},zr.values=Ba,zr.valuesIn=function(e){return null==e?[]:er(e,Ia(e))},zr.without=ss,zr.words=Xa,zr.wrap=function(e,t){return Ls(yo(t),e)},zr.xor=as,zr.xorBy=ls,zr.xorWith=us,zr.zip=cs,zr.zipObject=function(e,t){return vo(e||[],t||[],en)},zr.zipObjectDeep=function(e,t){return vo(e||[],t||[],Zn)},zr.zipWith=ds,zr.entries=Fa,zr.entriesIn=za,zr.extend=xa,zr.extendWith=wa,al(zr,zr),zr.add=vl,zr.attempt=Ya,zr.camelCase=$a,zr.capitalize=Ha,zr.ceil=bl,zr.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=ga(r))===r?r:0),t!==o&&(t=(t=ga(t))===t?t:0),an(ga(e),t,r)},zr.clone=function(e){return ln(e,4)},zr.cloneDeep=function(e){return ln(e,5)},zr.cloneDeepWith=function(e,t){return ln(e,5,t="function"==typeof t?t:o)},zr.cloneWith=function(e,t){return ln(e,4,t="function"==typeof t?t:o)},zr.conformsTo=function(e,t){return null==t||un(e,t,Ta(t))},zr.deburr=Ua,zr.defaultTo=function(e,t){return null==e||e!==e?t:e},zr.divide=yl,zr.endsWith=function(e,t,r){e=ba(e),t=uo(t);var n=e.length,i=r=r===o?n:an(fa(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},zr.eq=Bs,zr.escape=function(e){return(e=ba(e))&&X.test(e)?e.replace(K,ir):e},zr.escapeRegExp=function(e){return(e=ba(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},zr.every=function(e,t,r){var n=Ws(e)?Tt:fn;return r&&xi(e,t,r)&&(t=o),n(e,ui(t,3))},zr.find=gs,zr.findIndex=Ui,zr.findKey=function(e,t){return $t(e,ui(t,3),xn)},zr.findLast=vs,zr.findLastIndex=Wi,zr.findLastKey=function(e,t){return $t(e,ui(t,3),wn)},zr.floor=xl,zr.forEach=bs,zr.forEachRight=ys,zr.forIn=function(e,t){return null==e?e:bn(e,ui(t,3),Ia)},zr.forInRight=function(e,t){return null==e?e:yn(e,ui(t,3),Ia)},zr.forOwn=function(e,t){return e&&xn(e,ui(t,3))},zr.forOwnRight=function(e,t){return e&&wn(e,ui(t,3))},zr.get=ka,zr.gt=$s,zr.gte=Hs,zr.has=function(e,t){return null!=e&&gi(e,t,En)},zr.hasIn=Ea,zr.head=qi,zr.identity=nl,zr.includes=function(e,t,r,n){e=qs(e)?e:Ba(e),r=r&&!n?fa(r):0;var o=e.length;return r<0&&(r=Qt(o+r,0)),aa(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Ut(e,t,r)>-1},zr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:fa(r);return o<0&&(o=Qt(n+o,0)),Ut(e,t,o)},zr.inRange=function(e,t,r){return t=ha(t),r===o?(r=t,t=0):r=ha(r),function(e,t,r){return e>=br(t,r)&&e<Qt(t,r)}(e=ga(e),t,r)},zr.invoke=Oa,zr.isArguments=Us,zr.isArray=Ws,zr.isArrayBuffer=Vs,zr.isArrayLike=qs,zr.isArrayLikeObject=Gs,zr.isBoolean=function(e){return!0===e||!1===e||ta(e)&&Cn(e)==x},zr.isBuffer=Qs,zr.isDate=Ks,zr.isElement=function(e){return ta(e)&&1===e.nodeType&&!oa(e)},zr.isEmpty=function(e){if(null==e)return!0;if(qs(e)&&(Ws(e)||"string"==typeof e||"function"==typeof e.splice||Qs(e)||ua(e)||Us(e)))return!e.length;var t=mi(e);if(t==C||t==O)return!e.size;if(Ai(e))return!Dn(e).length;for(var r in e)if(Me.call(e,r))return!1;return!0},zr.isEqual=function(e,t){return In(e,t)},zr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:o)?r(e,t):o;return n===o?In(e,t,o,r):!!n},zr.isError=Js,zr.isFinite=function(e){return"number"==typeof e&&yt(e)},zr.isFunction=Xs,zr.isInteger=Ys,zr.isLength=Zs,zr.isMap=ra,zr.isMatch=function(e,t){return e===t||Pn(e,t,di(t))},zr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:o,Pn(e,t,di(t),r)},zr.isNaN=function(e){return na(e)&&e!=+e},zr.isNative=function(e){if(Si(e))throw new ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nn(e)},zr.isNil=function(e){return null==e},zr.isNull=function(e){return null===e},zr.isNumber=na,zr.isObject=ea,zr.isObjectLike=ta,zr.isPlainObject=oa,zr.isRegExp=ia,zr.isSafeInteger=function(e){return Ys(e)&&e>=-9007199254740991&&e<=f},zr.isSet=sa,zr.isString=aa,zr.isSymbol=la,zr.isTypedArray=ua,zr.isUndefined=function(e){return e===o},zr.isWeakMap=function(e){return ta(e)&&mi(e)==P},zr.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==Cn(e)},zr.join=function(e,t){return null==e?"":xt.call(e,t)},zr.kebabCase=Wa,zr.last=Ji,zr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=fa(r))<0?Qt(n+i,0):br(i,n-1)),t===t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Ht(e,Vt,i,!0)},zr.lowerCase=Va,zr.lowerFirst=qa,zr.lt=ca,zr.lte=da,zr.max=function(e){return e&&e.length?mn(e,nl,kn):o},zr.maxBy=function(e,t){return e&&e.length?mn(e,ui(t,2),kn):o},zr.mean=function(e){return qt(e,nl)},zr.meanBy=function(e,t){return qt(e,ui(t,2))},zr.min=function(e){return e&&e.length?mn(e,nl,Fn):o},zr.minBy=function(e,t){return e&&e.length?mn(e,ui(t,2),Fn):o},zr.stubArray=ml,zr.stubFalse=gl,zr.stubObject=function(){return{}},zr.stubString=function(){return""},zr.stubTrue=function(){return!0},zr.multiply=wl,zr.nth=function(e,t){return e&&e.length?Un(e,fa(t)):o},zr.noConflict=function(){return mt._===this&&(mt._=Be),this},zr.noop=ll,zr.now=ks,zr.pad=function(e,t,r){e=ba(e);var n=(t=fa(t))?hr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Vo(ft(o),r)+e+Vo(ht(o),r)},zr.padEnd=function(e,t,r){e=ba(e);var n=(t=fa(t))?hr(e):0;return t&&n<t?e+Vo(t-n,r):e},zr.padStart=function(e,t,r){e=ba(e);var n=(t=fa(t))?hr(e):0;return t&&n<t?Vo(t-n,r)+e:e},zr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),xr(ba(e).replace(se,""),t||0)},zr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&xi(e,t,r)&&(t=r=o),r===o&&("boolean"==typeof t?(r=t,t=o):"boolean"==typeof e&&(r=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ha(e),t===o?(t=e,e=0):t=ha(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=wr();return br(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Qn(e,t)},zr.reduce=function(e,t,r){var n=Ws(e)?Lt:Kt,o=arguments.length<3;return n(e,ui(t,4),r,o,pn)},zr.reduceRight=function(e,t,r){var n=Ws(e)?Ft:Kt,o=arguments.length<3;return n(e,ui(t,4),r,o,hn)},zr.repeat=function(e,t,r){return t=(r?xi(e,t,r):t===o)?1:fa(t),Kn(ba(e),t)},zr.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zr.result=function(e,t,r){var n=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=o);++n<i;){var s=null==e?o:e[Li(t[n])];s===o&&(n=i,s=r),e=Xs(s)?s.call(e):s}return e},zr.round=_l,zr.runInContext=e,zr.sample=function(e){return(Ws(e)?Jr:Xn)(e)},zr.size=function(e){if(null==e)return 0;if(qs(e))return aa(e)?hr(e):e.length;var t=mi(e);return t==C||t==O?e.size:Dn(e).length},zr.snakeCase=Ga,zr.some=function(e,t,r){var n=Ws(e)?zt:oo;return r&&xi(e,t,r)&&(t=o),n(e,ui(t,3))},zr.sortedIndex=function(e,t){return io(e,t)},zr.sortedIndexBy=function(e,t,r){return so(e,t,ui(r,2))},zr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=io(e,t);if(n<r&&Bs(e[n],t))return n}return-1},zr.sortedLastIndex=function(e,t){return io(e,t,!0)},zr.sortedLastIndexBy=function(e,t,r){return so(e,t,ui(r,2),!0)},zr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=io(e,t,!0)-1;if(Bs(e[r],t))return r}return-1},zr.startCase=Qa,zr.startsWith=function(e,t,r){return e=ba(e),r=null==r?0:an(fa(r),0,e.length),t=uo(t),e.slice(r,r+t.length)==t},zr.subtract=Sl,zr.sum=function(e){return e&&e.length?Jt(e,nl):0},zr.sumBy=function(e,t){return e&&e.length?Jt(e,ui(t,2)):0},zr.template=function(e,t,r){var n=zr.templateSettings;r&&xi(e,t,r)&&(t=o),e=ba(e),t=wa({},t,n,Zo);var i,s,a=wa({},t.imports,n.imports,Zo),l=Ta(a),u=er(a,l),c=0,d=t.interpolate||_e,p="__p += '",h=Ee((t.escape||_e).source+"|"+d.source+"|"+(d===ee?fe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),f="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(h,(function(t,r,n,o,a,l){return n||(n=o),p+=e.slice(c,l).replace(Se,sr),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),p+="';\n";var m=Me.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new ae("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(V,""):p).replace(q,"$1").replace(G,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Ya((function(){return Ae(l,f+"return "+p).apply(o,u)}));if(g.source=p,Js(g))throw g;return g},zr.times=function(e,t){if((e=fa(e))<1||e>f)return[];var r=g,n=br(e,g);t=ui(t),e-=g;for(var o=Xt(n,t);++r<e;)t(r);return o},zr.toFinite=ha,zr.toInteger=fa,zr.toLength=ma,zr.toLower=function(e){return ba(e).toLowerCase()},zr.toNumber=ga,zr.toSafeInteger=function(e){return e?an(fa(e),-9007199254740991,f):0===e?e:0},zr.toString=ba,zr.toUpper=function(e){return ba(e).toUpperCase()},zr.trim=function(e,t,r){if((e=ba(e))&&(r||t===o))return Yt(e);if(!e||!(t=uo(t)))return e;var n=fr(e),i=fr(t);return _o(n,rr(n,i),nr(n,i)+1).join("")},zr.trimEnd=function(e,t,r){if((e=ba(e))&&(r||t===o))return e.slice(0,mr(e)+1);if(!e||!(t=uo(t)))return e;var n=fr(e);return _o(n,0,nr(n,fr(t))+1).join("")},zr.trimStart=function(e,t,r){if((e=ba(e))&&(r||t===o))return e.replace(se,"");if(!e||!(t=uo(t)))return e;var n=fr(e);return _o(n,rr(n,fr(t))).join("")},zr.truncate=function(e,t){var r=30,n="...";if(ea(t)){var i="separator"in t?t.separator:i;r="length"in t?fa(t.length):r,n="omission"in t?uo(t.omission):n}var s=(e=ba(e)).length;if(ar(e)){var a=fr(e);s=a.length}if(r>=s)return e;var l=r-hr(n);if(l<1)return n;var u=a?_o(a,0,l).join(""):e.slice(0,l);if(i===o)return u+n;if(a&&(l+=u.length-l),ia(i)){if(e.slice(l).search(i)){var c,d=u;for(i.global||(i=Ee(i.source,ba(me.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var p=c.index;u=u.slice(0,p===o?l:p)}}else if(e.indexOf(uo(i),l)!=l){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+n},zr.unescape=function(e){return(e=ba(e))&&J.test(e)?e.replace(Q,gr):e},zr.uniqueId=function(e){var t=++De;return ba(e)+t},zr.upperCase=Ka,zr.upperFirst=Ja,zr.each=bs,zr.eachRight=ys,zr.first=qi,al(zr,function(){var e={};return xn(zr,(function(t,r){Me.call(zr.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),zr.VERSION="4.17.21",jt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zr[e].placeholder=zr})),jt(["drop","take"],(function(e,t){Ur.prototype[e]=function(r){r=r===o?1:Qt(fa(r),0);var n=this.__filtered__&&!t?new Ur(this):this.clone();return n.__filtered__?n.__takeCount__=br(r,n.__takeCount__):n.__views__.push({size:br(r,g),type:e+(n.__dir__<0?"Right":"")}),n},Ur.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),jt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Ur.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),jt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Ur.prototype[e]=function(){return this[r](1).value()[0]}})),jt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Ur.prototype[e]=function(){return this.__filtered__?new Ur(this):this[r](1)}})),Ur.prototype.compact=function(){return this.filter(nl)},Ur.prototype.find=function(e){return this.filter(e).head()},Ur.prototype.findLast=function(e){return this.reverse().find(e)},Ur.prototype.invokeMap=Jn((function(e,t){return"function"==typeof e?new Ur(this):this.map((function(r){return On(r,e,t)}))})),Ur.prototype.reject=function(e){return this.filter(Ms(ui(e)))},Ur.prototype.slice=function(e,t){e=fa(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Ur(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=fa(t))<0?r.dropRight(-t):r.take(t-e)),r)},Ur.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ur.prototype.toArray=function(){return this.take(g)},xn(Ur.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=zr[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);i&&(zr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,l=t instanceof Ur,u=a[0],c=l||Ws(t),d=function(e){var t=i.apply(zr,Dt([e],a));return n&&p?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var p=this.__chain__,h=!!this.__actions__.length,f=s&&!p,m=l&&!h;if(!s&&c){t=m?t:new Ur(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[d],thisArg:o}),new Hr(g,p)}return f&&m?e.apply(this,a):(g=this.thru(d),f?n?g.value()[0]:g.value():g)})})),jt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);zr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Ws(o)?o:[],e)}return this[r]((function(r){return t.apply(Ws(r)?r:[],e)}))}})),xn(Ur.prototype,(function(e,t){var r=zr[t];if(r){var n=r.name+"";Me.call(Or,n)||(Or[n]=[]),Or[n].push({name:t,func:r})}})),Or[$o(o,2).name]=[{name:"wrapper",func:o}],Ur.prototype.clone=function(){var e=new Ur(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Ur.prototype.reverse=function(){if(this.__filtered__){var e=new Ur(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ur.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Ws(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var i=r[n],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=br(t,e+s);break;case"takeRight":e=Qt(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,l=a-s,u=n?a:s-1,c=this.__iteratees__,d=c.length,p=0,h=br(l,this.__takeCount__);if(!r||!n&&o==l&&h==l)return mo(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[u+=t];++m<d;){var v=c[m],b=v.iteratee,y=v.type,x=b(g);if(2==y)g=x;else if(!x){if(1==y)continue e;break e}}f[p++]=g}return f},zr.prototype.at=fs,zr.prototype.chain=function(){return ps(this)},zr.prototype.commit=function(){return new Hr(this.value(),this.__chain__)},zr.prototype.next=function(){this.__values__===o&&(this.__values__=pa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},zr.prototype.plant=function(e){for(var t,r=this;r instanceof $r;){var n=zi(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},zr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Ur){var t=e;return this.__actions__.length&&(t=new Ur(this)),(t=t.reverse()).__actions__.push({func:hs,args:[es],thisArg:o}),new Hr(t,this.__chain__)}return this.thru(es)},zr.prototype.toJSON=zr.prototype.valueOf=zr.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},zr.prototype.first=zr.prototype.head,Xe&&(zr.prototype[Xe]=function(){return this}),zr}();mt._=vr,(n=function(){return vr}.call(t,r,t,e))===o||(e.exports=n)}.call(this)},3567:(e,t,r)=>{"use strict";const n=r(6724),{GeoPoint:o,util:{checkType:i,invalidParam:s},consts:{UNIT_SET:a}}=r(4782),l=r(1023),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geodistance-aggregation.html",c=s(u,"unit",a),d=s(u,"distance_type","'plane' or 'arc'");e.exports=class extends l{constructor(e,t){super(e,"geo_distance",t)}format(){throw console.log(`Please refer ${u}`),new Error("format is not supported in GeoDistanceAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in GeoDistanceAggregation")}origin(e){return i(e,o),this._aggsDef.origin=e,this}unit(e){return a.has(e)||c(e),this._aggsDef.unit=e,this}distanceType(e){n(e)&&d(e);const t=e.toLowerCase();return"plane"!==t&&"arc"!==t&&d(e),this._aggsDef.distance_type=t,this}}},3574:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(5043),o=r(9303);let i=!0,s=!1;const a=new o.E,l={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 u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function d(){"hidden"===this.visibilityState&&s&&(i=!0)}function p(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return i||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!l[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}const h=function(){const e=n.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!p(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(s=!0,a.start(100,(()=>{s=!1})),t.current=!1,!0)},ref:e}}},3622:(e,t,r)=>{"use strict";t.FullTextQueryBase=r(3128),t.MatchPhraseQueryBase=r(8476),t.MonoFieldQueryBase=r(589),t.QueryStringQueryBase=r(4013),t.MatchQuery=r(9062),t.MatchPhraseQuery=r(9032),t.MatchPhrasePrefixQuery=r(3143),t.MultiMatchQuery=r(7774),t.CommonTermsQuery=r(4390),t.QueryStringQuery=r(4727),t.SimpleQueryStringQuery=r(3252),t.CombinedFieldsQuery=r(6176)},3650:(e,t,r)=>{e=r.nmd(e);var n=9007199254740991,o="[object Map]",i="[object Promise]",s="[object Set]",a="[object WeakMap]",l="[object DataView]",u=/^\[object .+?Constructor\]$/,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,p=c||d||Function("return this")(),h=t&&!t.nodeType&&t,f=h&&e&&!e.nodeType&&e,m=f&&f.exports===h;var g,v,b=Function.prototype,y=Object.prototype,x=p["__core-js_shared__"],w=function(){var e=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_=b.toString,S=y.hasOwnProperty,A=y.toString,C=RegExp("^"+_.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=m?p.Buffer:void 0,E=y.propertyIsEnumerable,R=k?k.isBuffer:void 0,j=(g=Object.keys,v=Object,function(e){return g(v(e))}),O=H(p,"DataView"),T=H(p,"Map"),I=H(p,"Promise"),P=H(p,"Set"),N=H(p,"WeakMap"),M=!E.call({valueOf:1},"valueOf"),D=W(O),L=W(T),F=W(I),z=W(P),B=W(N);function $(e){if(!J(e)||function(e){return!!w&&w in e}(e))return!1;var t=K(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}(e)?C:u;return t.test(W(e))}function H(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return $(r)?r:void 0}var U=function(e){return A.call(e)};function W(e){if(null!=e){try{return _.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function V(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&G(e)}(e)&&S.call(e,"callee")&&(!E.call(e,"callee")||"[object Arguments]"==A.call(e))}(O&&U(new O(new ArrayBuffer(1)))!=l||T&&U(new T)!=o||I&&U(I.resolve())!=i||P&&U(new P)!=s||N&&U(new N)!=a)&&(U=function(e){var t=A.call(e),r="[object Object]"==t?e.constructor:void 0,n=r?W(r):void 0;if(n)switch(n){case D:return l;case L:return o;case F:return i;case z:return s;case B:return a}return t});var q=Array.isArray;function G(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!K(e)}var Q=R||function(){return!1};function K(e){var t=J(e)?A.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function J(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(G(e)&&(q(e)||"string"==typeof e||"function"==typeof e.splice||Q(e)||V(e)))return!e.length;var t=U(e);if(t==o||t==s)return!e.size;if(M||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||y)}(e))return!j(e).length;for(var r in e)if(S.call(e,r))return!1;return!0}},3662:(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{A:()=>n})},3738:e=>{function t(r){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3762:(e,t,r)=>{"use strict";const n=r(6724),o=r(7090),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-reverse-nested-aggregation.html";e.exports=class extends o{constructor(e,t){super(e,"reverse_nested"),n(t)||(this._aggsDef.path=t)}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ReverseNestedAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ReverseNestedAggregation")}path(e){return this._aggsDef.path=e,this}}},3763:(e,t,r)=>{"use strict";e.exports=r(4983)},3791:(e,t,r)=>{"use strict";const n=r(6724),o=r(1463),{checkType:i,invalidParam:s}=r(2960),{GEO_SHAPE_TYPES:a}=r(6912),l=s("https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html","type",a);e.exports=class{constructor(e,t){this._body={},n(e)||this.type(e),n(t)||this.coordinates(t)}type(e){n(e)&&l(e);const t=e.toLowerCase();return a.has(t)||l(e),this._body.type=t,this}coordinates(e){return i(e,Array),this._body.coordinates=e,this}radius(e){return this._body.radius=e,this}toJSON(){if(!o(this._body,"type")||!o(this._body,"coordinates"))throw new Error("For all types, both the inner `type` and `coordinates` fields are required.");return this._body}}},3803:(e,t,r)=>{"use strict";r.d(t,{A:()=>oe});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,s=Object.assign;function a(e){return e.trim()}function l(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function p(e){return e.length}function h(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,v=0,b=0,y=0,x="";function w(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:m,column:g,length:s,return:""}}function _(e,t){return s(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return y=b>0?c(x,--b):0,g--,10===y&&(g=1,m--),y}function A(){return y=b<v?c(x,b++):0,g++,10===y&&(g=1,m++),y}function C(){return c(x,b)}function k(){return b}function E(e,t){return d(x,e,t)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function j(e){return m=g=1,v=p(x=e),b=0,[]}function O(e){return x="",e}function T(e){return a(E(b-1,N(91===e?e+2:40===e?e+1:e)))}function I(e){for(;(y=C())&&y<33;)A();return R(e)>2||R(y)>3?"":" "}function P(e,t){for(;--t&&A()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return E(e,k()+(t<6&&32==C()&&32==A()))}function N(e){for(;A();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&N(y);break;case 40:41===e&&N(e);break;case 92:A()}return b}function M(e,t){for(;A()&&e+y!==57&&(e+y!==84||47!==C()););return"/*"+E(t,b-1)+"*"+i(47===e?e:A())}function D(e){for(;!R(C());)A();return E(e,b)}var L="-ms-",F="-moz-",z="-webkit-",B="comm",$="rule",H="decl",U="@keyframes";function W(e,t){for(var r="",n=h(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function V(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case B:return"";case U:return e.return=e.value+"{"+W(e.children,n)+"}";case $:e.value=e.props.join(",")}return p(r=W(e.children,n))?e.return=e.value+"{"+r+"}":""}function q(e){return O(G("",null,null,null,[""],e=j(e),0,[0],e))}function G(e,t,r,n,o,s,a,d,h){for(var m=0,g=0,v=a,b=0,y=0,x=0,w=1,_=1,E=1,R=0,j="",O=o,N=s,L=n,F=j;_;)switch(x=R,R=A()){case 40:if(108!=x&&58==c(F,v-1)){-1!=u(F+=l(T(R),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:F+=T(R);break;case 9:case 10:case 13:case 32:F+=I(x);break;case 92:F+=P(k()-1,7);continue;case 47:switch(C()){case 42:case 47:f(K(M(A(),k()),t,r),h);break;default:F+="/"}break;case 123*w:d[m++]=p(F)*E;case 125*w:case 59:case 0:switch(R){case 0:case 125:_=0;case 59+g:-1==E&&(F=l(F,/\f/g,"")),y>0&&p(F)-v&&f(y>32?J(F+";",n,r,v-1):J(l(F," ","")+";",n,r,v-2),h);break;case 59:F+=";";default:if(f(L=Q(F,t,r,m,g,o,d,j,O=[],N=[],v),s),123===R)if(0===g)G(F,t,L,L,O,s,v,d,N);else switch(99===b&&110===c(F,3)?100:b){case 100:case 108:case 109:case 115:G(e,L,L,n&&f(Q(e,L,L,0,0,o,d,j,o,O=[],v),N),o,N,v,d,n?O:N);break;default:G(F,L,L,L,[""],N,0,d,N)}}m=g=y=0,w=E=1,j=F="",v=a;break;case 58:v=1+p(F),y=x;default:if(w<1)if(123==R)--w;else if(125==R&&0==w++&&125==S())continue;switch(F+=i(R),R*w){case 38:E=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(p(F)-1)*E,E=1;break;case 64:45===C()&&(F+=T(A())),b=C(),g=v=p(j=F+=D(k())),R++;break;case 45:45===x&&2==p(F)&&(w=0)}}return s}function Q(e,t,r,n,i,s,u,c,p,f,m){for(var g=i-1,v=0===i?s:[""],b=h(v),y=0,x=0,_=0;y<n;++y)for(var S=0,A=d(e,g+1,g=o(x=u[y])),C=e;S<b;++S)(C=a(x>0?v[S]+" "+A:l(A,/&\f/g,v[S])))&&(p[_++]=C);return w(e,t,r,0===i?$:c,p,f,m)}function K(e,t,r){return w(e,t,r,B,i(y),d(e,2,-2),0)}function J(e,t,r,n){return w(e,t,r,H,d(e,0,n),d(e,n+1,-1),n)}var X=function(e,t,r){for(var n=0,o=0;n=o,o=C(),38===n&&12===o&&(t[r]=1),!R(o);)A();return E(e,b)},Y=function(e,t){return O(function(e,t){var r=-1,n=44;do{switch(R(n)){case 0:38===n&&12===C()&&(t[r]=1),e[r]+=X(b-1,t,r);break;case 2:e[r]+=T(n);break;case 4:if(44===n){e[++r]=58===C()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}}while(n=A());return e}(j(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(r))&&!n){Z.set(e,!0);for(var o=[],i=Y(t,o),s=r.props,a=0,l=0;a<i.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[u]):s[u]+" "+i[a]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function re(e,t){switch(function(e,t){return 45^c(e,0)?(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0}(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+F+e+L+e+e;case 6828:case 4268:return z+e+L+e+e;case 6165:return z+e+L+"flex-"+e+e;case 5187:return z+e+l(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return z+e+L+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return z+e+L+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+L+l(e,"shrink","negative")+e;case 5292:return z+e+L+l(e,"basis","preferred-size")+e;case 6060:return z+"box-"+l(e,"-grow","")+z+e+L+l(e,"grow","positive")+e;case 4554:return z+l(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+F+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?re(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,p(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===c(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+L+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return z+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+L+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+L+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=re(e.value,e.length);break;case U:return W([_(e,{value:l(e.value,"@","@"+z)})],n);case $:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([_(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return W([_(e,{props:[l(t,/:(plac\w+)/,":"+z+"input-$1")]}),_(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),_(e,{props:[l(t,/:(plac\w+)/,L+"input-$1")]})],n)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,s=e.stylisPlugins||ne,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;l.push(e)}));var u,c,d=[V,(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],p=function(e){var t=h(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}([ee,te].concat(s,d));i=function(e,t,r,n){u=r,W(q(e?e+"{"+t.styles+"}":t.styles),p),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new n({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(l),f}},3806:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(8168),o=r(2284);function i(e){return e&&"object"===(0,o.A)(e)&&e.constructor===Object}function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=r.clone?(0,n.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(n){"__proto__"!==n&&(i(t[n])&&n in e?o[n]=s(e[n],t[n],r):o[n]=t[n])})),o}},3815:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9172);const o=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},3847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PropsNotForwarded=t.defaultProps=t.propTypes=void 0;var n,o=r(5043),i=((n=o)&&n.__esModule,r(5173));t.propTypes={data:(0,i.oneOfType)([i.string,i.array,i.func]).isRequired,headers:i.array,target:i.string,separator:i.string,filename:i.string,uFEFF:i.bool,onClick:i.func,asyncOnClick:i.bool,enclosingCharacter:i.string},t.defaultProps={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},t.PropsNotForwarded=["data","headers"]},3893:(e,t,r)=>{"use strict";function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{A:()=>n})},3897:(e,t,r)=>{"use strict";const n=r(2254);e.exports=class extends n{constructor(e){super(e,"bucket_sort","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-sort-aggregation.html")}sort(e){return this._aggsDef.sort=e,this}from(e){return this._aggsDef.from=e,this}size(e){return this._aggsDef.size=e,this}}},3912:(e,t,r)=>{"use strict";const n=r(7846);e.exports=class extends n{constructor(e,t){super(e,"stats",t)}}},3940:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1668);function o(e){return(0,n.A)(e).defaultView||window}},3944:(e,t,r)=>{"use strict";const n=r(6724),{Aggregation:o,util:{checkType:i}}=r(4782);e.exports=class extends o{constructor(e,t){super(e,"matrix_stats"),n(t)||this.fields(t)}fields(e){return i(e,Array),this._aggsDef.fields=e,this}mode(e){return this._aggsDef.mode=e,this}missing(e){return this._aggsDef.missing=e,this}}},3945:(e,t,r)=>{"use strict";const n=r(2254),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-cumulative-sum-aggregation.html";e.exports=class extends n{constructor(e,t){super(e,"cumulative_sum",o,t)}gapPolicy(){throw console.log(`Please refer ${o}`),new Error("gapPolicy is not supported in CumulativeSumAggregation")}}},3960:(e,t,r)=>{"use strict";const n=r(6724),{Query:o,Script:i,util:{checkType:s}}=r(4782);e.exports=class extends o{constructor(e){super("script"),n(e)||this.script(e)}script(e){return s(e,i),this._queryOpts.script=e,this}}},4013:(e,t,r)=>{"use strict";const n=r(6724),{util:{checkType:o,setDefault:i,invalidParam:s}}=r(4782),a=r(3128),l=s("","operator","'AND' or 'OR'");e.exports=class extends a{constructor(e,t,r){super(e,r),this._refUrl=t}field(e){return i(this._queryOpts,"fields",[]),this._queryOpts.fields.push(e),this}fields(e){return o(e,Array),i(this._queryOpts,"fields",[]),this._queryOpts.fields=this._queryOpts.fields.concat(e),this}defaultOperator(e){n(e)&&l(e,this._refUrl);const t=e.toUpperCase();return"AND"!==t&&"OR"!==t&&l(e,this._refUrl),this._queryOpts.default_operator=t,this}analyzeWildcard(e){return this._queryOpts.analyze_wildcard=e,this}lenient(e){return this._queryOpts.lenient=e,this}quoteFieldSuffix(e){return this._queryOpts.quote_field_suffix=e,this}allFields(e){return this._queryOpts.all_fields=e,this}}},4033:(e,t,r)=>{"use strict";const n=r(3650),o=r(6724),{util:{invalidParam:i,recursiveToJSON:s}}=r(4782),a=i("","order","'asc' or 'desc'");e.exports=class{constructor(e,t,r,i){if(n(e))throw new Error("ValuesSourceBase `valueSrcType` cannot be empty");this._name=r,this._valueSrcType=e,this._refUrl=t,this._body={},this._opts=this._body[e]={},o(i)||(this._opts.field=i)}field(e){return this._opts.field=e,this}script(e){return this._opts.script=e,this}valueType(e){return this._opts.value_type=e,this}order(e){o(e)&&a(e,this._refUrl);const t=e.toLowerCase();return"asc"!==t&&"desc"!==t&&a(e,this._refUrl),this._opts.order=t,this}missing(e){return this._opts.missing=e,this}missingBucket(e){return this._opts.missing_bucket=e,this}toJSON(){return{[this._name]:s(this._body)}}}},4038:(e,t,r)=>{"use strict";const n=r(6724),{Query:o}=r(4782);e.exports=class extends o{constructor(e,t){super("parent_id"),n(e)||(this._queryOpts.type=e),n(t)||(this._queryOpts.id=t)}type(e){return this._queryOpts.type=e,this}id(e){return this._queryOpts.id=e,this}ignoreUnmapped(e){return this._queryOpts.ignore_unmapped=e,this}}},4092:(e,t,r)=>{"use strict";const n=r(3650),o=r(1463),i=r(6724),s=r(5286),a=r(4695),{checkType:l,invalidParam:u,recursiveToJSON:c}=r(2960),{SORT_MODE_SET:d,UNIT_SET:p}=r(6912),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html",f=u(h,"order","'asc' or 'desc'"),m=u(h,"mode",d),g=u(h,"distance_type","'plane' or 'arc'"),v=u(h,"unit",p);e.exports=class{constructor(e,t){this._opts={},this._geoPoint=null,this._script=null,i(e)||(this._field=e),i(t)||this.order(t)}order(e){i(e)&&f(e);const t=e.toLowerCase();return"asc"!==t&&"desc"!==t&&f(e),this._opts.order=t,this}mode(e){i(e)&&m(e);const t=e.toLowerCase();return d.has(t)||m(e),this._opts.mode=t,this}nestedPath(e){return this._opts.nested_path=e,this}nestedFilter(e){return l(e,s),this._opts.nested_filter=e,this}nested(e){const{filter:t}=e;return i(t)||l(t,s),this._opts.nested=e,this}missing(e){return this._opts.missing=e,this}unmappedType(e){return this._opts.unmapped_type=e,this}geoDistance(e){return this._geoPoint=e,this}distanceType(e){i(e)&&g(e);const t=e.toLowerCase();return"plane"!==t&&"arc"!==t&&g(e),this._opts.distance_type=t,this}unit(e){return p.has(e)||v(e),this._opts.unit=e,this}script(e){return l(e,a),this._script=e,this}type(e){return this._opts.type=e,this}format(e){return this._opts.format=e,this}reverse(e){return this._opts.reverse=e,this}toJSON(){const e=i(this._geoPoint),t=i(this._script);if(e&&t){if(n(this._opts))return this._field;if(1===Object.keys(this._opts).length&&o(this._opts,"order"))return{[this._field]:this._opts.order}}let r;return r=e?t?{[this._field]:this._opts}:{_script:Object.assign({script:this._script},this._opts)}:{_geo_distance:Object.assign({[this._field]:this._geoPoint},this._opts)},c(r)}}},4161:(e,t,r)=>{"use strict";const n=r(6724),o=r(4092),i=r(4894),{checkType:s,setDefault:a,recursiveToJSON:l}=r(2960);e.exports=class{constructor(e){this._body={},n(e)||(this._body.name=e)}name(e){return this._body.name=e,this}from(e){return this._body.from=e,this}size(e){return this._body.size=e,this}sort(e){return s(e,o),a(this._body,"sort",[]),this._body.sort.push(e),this}sorts(e){return e.forEach((e=>this.sort(e))),this}highlight(e){return s(e,i),this._body.highlight=e,this}explain(e){return this._body.explain=e,this}source(e){return this._body._source=e,this}storedFields(e){return this._body.stored_fields=e,this}scriptField(e,t){return a(this._body,"script_fields",{}),this._body.script_fields[e]={script:t},this}scriptFields(e){return s(e,Object),Object.keys(e).forEach((t=>this.scriptField(t,e[t]))),this}docvalueFields(e){return this._body.docvalue_fields=e,this}version(e){return this._body.version=e,this}toJSON(){return l(this._body)}}},4202:(e,t,r)=>{"use strict";var n=r(2123),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var s=60109,a=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),s=d("react.provider"),a=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var p="function"===typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||f}function v(){}function b(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||f}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var y=b.prototype=new v;y.constructor=b,n(y,g.prototype),y.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var n,i={},s=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)w.call(t,n)&&!_.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===i[n]&&(i[n]=l[n]);return{$$typeof:o,type:e,key:s,ref:a,props:i,_owner:x.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var C=/\/+/g;function k(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,r,n,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return s=s(l=e),e=""===n?"."+k(l,0):n,Array.isArray(s)?(r="",null!=e&&(r=e.replace(C,"$&/")+"/"),E(s,t,r,"",(function(e){return e}))):null!=s&&(A(s)&&(s=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,r+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(C,"$&/")+"/")+e)),t.push(s)),1;if(l=0,n=""===n?".":n+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=n+k(a=e[u],u);l+=E(a,t,r,c,s)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=E(a=a.value,t,r,c=n+k(a,u++),s);else if("object"===a)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function R(e,t,r){if(null==e)return e;var n=[],o=0;return E(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function j(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var O={current:null};function T(){var e=O.current;if(null===e)throw Error(h(321));return e}var I={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:R,forEach:function(e,t,r){R(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error(h(143));return e}},t.Component=g,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error(h(267,e));var i=n({},e.props),s=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=x.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!_.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];i.children=u}return{$$typeof:o,type:e.type,key:s,ref:a,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return T().useCallback(e,t)},t.useContext=function(e,t){return T().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return T().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return T().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return T().useLayoutEffect(e,t)},t.useMemo=function(e,t){return T().useMemo(e,t)},t.useReducer=function(e,t,r){return T().useReducer(e,t,r)},t.useRef=function(e){return T().useRef(e)},t.useState=function(e){return T().useState(e)},t.version="17.0.2"},4207:(e,t,r)=>{"use strict";r.r(t),r.d(t,{capitalize:()=>n.A,createChainedFunction:()=>o.A,createSvgIcon:()=>i.A,debounce:()=>s.A,deprecatedPropType:()=>a,isMuiElement:()=>u,ownerDocument:()=>c.A,ownerWindow:()=>d.A,requirePropFactory:()=>p,setRef:()=>h.A,unstable_useId:()=>b.A,unsupportedProp:()=>f,useControlled:()=>m.A,useEventCallback:()=>g.A,useForkRef:()=>v.A,useIsFocusVisible:()=>y.A});var n=r(4822),o=r(146),i=r(1917),s=r(9736);function a(e,t){return function(){return null}}var l=r(5043);function u(e,t){return l.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var c=r(9892),d=r(7249);function p(e){return function(){return null}}var h=r(9189);function f(e,t,r,n,o){return null}var m=r(1051),g=r(2158),v=r(768),b=r(2237),y=r(6836)},4318:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,p0:()=>a});var n=r(8587),o=r(8168);const i=["duration","easing","delay"],s={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)"},a={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function u(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function c(e){const t=(0,o.A)({},s,e.easing),r=(0,o.A)({},a,e.duration);return(0,o.A)({getAutoHeightDuration:u,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:s=r.standard,easing:a=t.easeInOut,delay:u=0}=o;(0,n.A)(o,i);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof s?s:l(s)} ${a} ${"string"===typeof u?u:l(u)}`)).join(",")}},e,{easing:t,duration:r})}},4390:(e,t,r)=>{"use strict";const n=r(6724),o=r(6878),{util:{invalidParam:i,setDefault:s}}=r(4782),a=r(589),l="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-common-terms-query.html",u=i(l,"low_freq_operator","'and' or 'or'"),c=i(l,"high_freq_operator","'and' or 'or'");e.exports=class extends a{constructor(e,t){super("common",e,t)}_warn(e){console.warn(`[CommonTermsQuery] ${e}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkMinMatchRepr(){s(this._queryOpts,"minimum_should_match",{})||o(this._queryOpts.minimum_should_match)||(this._warnMixedRepr(),this._queryOpts.minimum_should_match={})}cutoffFrequency(e){return this._queryOpts.cutoff_frequency=e,this}lowFreqOperator(e){n(e)&&u(e);const t=e.toLowerCase();return"and"!==t&&"or"!==t&&u(e),this._queryOpts.low_freq_operator=t,this}highFreqOperator(e){n(e)&&c(e);const t=e.toLowerCase();return"and"!==t&&"or"!==t&&c(e),this._queryOpts.high_freq_operator=t,this}lowFreq(e){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.low_freq=e,this}highFreq(e){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.high_freq=e,this}disableCoord(e){return this._queryOpts.disable_coord=e,this}}},4391:(e,t,r)=>{"use strict";r.r(t),r.d(t,{capitalize:()=>o.A,createChainedFunction:()=>i.A,createSvgIcon:()=>s.A,debounce:()=>a.A,deprecatedPropType:()=>l,isMuiElement:()=>u.A,ownerDocument:()=>c.A,ownerWindow:()=>d.A,requirePropFactory:()=>p,setRef:()=>h,unstable_ClassNameGenerator:()=>w,unstable_useEnhancedEffect:()=>f.A,unstable_useId:()=>m.A,unsupportedProp:()=>g,useControlled:()=>v.A,useEventCallback:()=>b.A,useForkRef:()=>y.A,useIsFocusVisible:()=>x.A});var n=r(9386),o=r(6803),i=r(6593),s=r(6734),a=r(950);const l=function(e,t){return()=>null};var u=r(7034),c=r(2427),d=r(6078);r(8168);const p=function(e,t){return()=>null};const h=r(6564).A;var f=r(5013),m=r(5879);const g=function(e,t,r,n,o){return null};var v=r(4516),b=r(3319),y=r(5849),x=r(3574);const w={configure:e=>{n.A.configure(e)}}},4395:(e,t,r)=>{"use strict";var n=r(6267),o=r(3024),i=r(7767),s=r(1550),a=r(5299);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4440:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);const o="undefined"!==typeof window?n.useLayoutEffect:n.useEffect},4455:(e,t,r)=>{"use strict";const n=r(7846);e.exports=class extends n{constructor(e,t){super(e,"cardinality",t)}format(){throw console.log("Please refer https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html"),new Error("format is not supported in CardinalityAggregation")}precisionThreshold(e){return this._aggsDef.precision_threshold=e,this}}},4467:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(816);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},4484:(e,t,r)=>{"use strict";const n=r(7846),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geobounds-aggregation.html";e.exports=class extends n{constructor(e,t){super(e,"geo_bounds",t)}format(){throw console.log(`Please refer ${o}`),new Error("format is not supported in GeoBoundsAggregation")}script(){throw console.log(`Please refer ${o}`),new Error("script is not supported in GeoBoundsAggregation")}wrapLongitude(e){return this._aggsDef.wrap_longitude=e,this}}},4516:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(1052).A},4534:(e,t,r)=>{"use strict";function n(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}r.d(t,{A:()=>n})},4535:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a});var n=r(8052),o=r(5170),i=r(3375),s=r(1475);const a=(0,n.Ay)({themeId:i.A,defaultTheme:o.A,rootShouldForwardProp:s.A})},4591:(e,t,r)=>{"use strict";const n=r(6724),o=r(7090),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html";e.exports=class extends o{constructor(e,t){super(e,"geohash_grid",t)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoHashGridAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GeoHashGridAggregation")}precision(e){if(n(e)||e<1||e>12)throw new Error("`precision` can only be value from 1 to 12.");return this._aggsDef.precision=e,this}size(e){return this._aggsDef.size=e,this}shardSize(e){return this._aggsDef.shard_size=e,this}}},4617:(e,t,r)=>{"use strict";const n=r(7846),{Highlight:o,Sort:i,util:{checkType:s,setDefault:a}}=r(4782),l="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html";e.exports=class extends n{constructor(e){super(e,"top_hits")}field(){throw console.log(`Please refer ${l}`),new Error("field is not supported in TopHitsAggregation")}script(){throw console.log(`Please refer ${l}`),new Error("script is not supported in TopHitsAggregation")}missing(){throw console.log(`Please refer ${l}`),new Error("missing is not supported in TopHitsAggregation")}format(){throw console.log(`Please refer ${l}`),new Error("format is not supported in TopHitsAggregation")}from(e){return this._aggsDef.from=e,this}size(e){return this._aggsDef.size=e,this}sort(e){return s(e,i),a(this._aggsDef,"sort",[]),this._aggsDef.sort.push(e),this}sorts(e){return e.forEach((e=>this.sort(e))),this}trackScores(e){return this._aggsDef.track_scores=e,this}version(e){return this._aggsDef.version=e,this}explain(e){return this._aggsDef.explain=e,this}highlight(e){return s(e,o),this._aggsDef.highlight=e,this}source(e){return this._aggsDef._source=e,this}storedFields(e){return this._aggsDef.stored_fields=e,this}scriptField(e,t){return a(this._aggsDef,"script_fields",{}),this._aggsDef.script_fields[e]={script:t},this}scriptFields(e){return s(e,Object),Object.keys(e).forEach((t=>this.scriptField(t,e[t]))),this}docvalueFields(e){return this._aggsDef.docvalue_fields=e,this}}},4633:(e,t,r)=>{var n=r(3738).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),s=new P(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=h;var m="suspendedStart",g="suspendedYield",v="executing",b="completed",y={};function x(){}function w(){}function _(){}var S={};p(S,u,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(N([])));C&&C!==i&&s.call(C,u)&&(S=C);var k=_.prototype=x.prototype=Object.create(S);function E(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,l){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==n(d)&&s.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=m;return function(i,s){if(o===v)throw Error("Generator is already running");if(o===b){if("throw"===i)throw s;return{value:t,done:!0}}for(n.method=i,n.arg=s;;){var a=n.delegate;if(a){var l=O(a,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?b:g,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=b,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var s=i.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(s.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=p(_,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,p(e,d,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},E(R.prototype),p(R.prototype,c,(function(){return this})),r.AsyncIterator=R,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var s=new R(h(e,t,n,o),i);return r.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},E(k),p(k,d,"Generator"),p(k,u,(function(){return this})),p(k,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=N,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4663:(e,t,r)=>{"use strict";const{util:{checkType:n}}=r(4782),o=r(2668);e.exports=class extends o{constructor(e){super("geo_polygon",e)}points(e){return n(e,Array),this._fieldOpts.points=e,this}}},4695:(e,t,r)=>{"use strict";const n=r(6724);e.exports=class{constructor(e,t){if(this._isTypeSet=!1,this._body={},!n(e)&&!n(t)){switch(e.toLowerCase()){case"inline":this.inline(t);break;case"source":this.source(t);break;case"stored":this.stored(t);break;case"id":this.id(t);break;case"file":this.file(t);break;default:throw new Error("`type` must be one of `inline`, `stored`, `file`")}}}_warn(e){console.warn(`[Script] ${e}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Script source(`inline`/`source`/`stored`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.inline,delete this._body.source,delete this._body.stored,delete this._body.id,delete this._body.file)}inline(e){return this._checkMixedRepr(),this._body.inline=e,this._isTypeSet=!0,this}source(e){return this._checkMixedRepr(),this._body.source=e,this._isTypeSet=!0,this}stored(e){return this._checkMixedRepr(),this._body.stored=e,this._isTypeSet=!0,this}id(e){return this._checkMixedRepr(),this._body.id=e,this._isTypeSet=!0,this}file(e){return this._checkMixedRepr(),this._body.file=e,this._isTypeSet=!0,this}lang(e){return this._body.lang=e,this}params(e){return this._body.params=e,this}toJSON(){return this._body}}},4727:(e,t,r)=>{"use strict";const n=r(4013),{validateRewiteMethod:o}=r(15),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html";e.exports=class extends n{constructor(e){super("query_string",i,e)}defaultField(e){return this._queryOpts.default_field=e,this}allowLeadingWildcard(e){return this._queryOpts.allow_leading_wildcard=e,this}enablePositionIncrements(e){return this._queryOpts.enable_position_increments=e,this}fuzzyMaxExpansions(e){return this._queryOpts.fuzzy_max_expansions=e,this}fuzziness(e){return this._queryOpts.fuzziness=e,this}fuzzyPrefixLength(e){return this._queryOpts.fuzzy_prefix_length=e,this}rewrite(e){return o(e,"rewrite",i),this._queryOpts.rewrite=e,this}fuzzyRewrite(e){return o(e,"fuzzy_rewrite",i),this._queryOpts.fuzzy_rewrite=e,this}phraseSlop(e){return this._queryOpts.phrase_slop=e,this}autoGeneratePhraseQueries(e){return this._queryOpts.auto_generate_phrase_queries=e,this}maxDeterminizedStates(e){return this._queryOpts.max_determinized_states=e,this}timeZone(e){return this._queryOpts.time_zone=e,this}splitOnWhitespace(e){return this._queryOpts.split_on_whitespace=e,this}useDisMax(e){return this._queryOpts.use_dis_max=e,this}tieBreaker(e){return this._queryOpts.tie_breaker=e,this}quoteAnalyzer(e){return this._queryOpts.quote_analyzer=e,this}escape(e){return this._queryOpts.escape=e,this}}},4731:(e,t,r)=>{"use strict";const n=r(7846);e.exports=class extends n{constructor(e,t){super(e,"avg",t)}}},4756:(e,t,r)=>{var n=r(4633)();e.exports=n;try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},4782:(e,t,r)=>{"use strict";t.RequestBodySearch=r(8153),t.Aggregation=r(440),t.Query=r(5286),t.KNN=r(6599),t.Suggester=r(2695),t.Script=r(4695),t.Highlight=r(4894),t.GeoPoint=r(9628),t.GeoShape=r(3791),t.IndexedShape=r(5403),t.Sort=r(4092),t.Rescore=r(1571),t.InnerHits=r(4161),t.SearchTemplate=r(2615),t.consts=r(6912),t.util=r(2960),t.RuntimeField=r(1127)},4802:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),i=r(579);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},4822:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(8565);function o(e){if("string"!==typeof e)throw new Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},4853:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(8587),o=r(8168);const i=["values","unit","step"],s=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)=>(0,o.A)({},e,{[t.key]:t.val})),{})};function a(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5}=e,l=(0,n.A)(e,i),u=s(t),c=Object.keys(u);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${r})`}function p(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-a/100}${r})`}function h(e,n){const o=c.indexOf(n);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"===typeof t[c[o]]?t[c[o]]:n)-a/100}${r})`}return(0,o.A)({keys:c,values:u,up:d,down:p,between:h,only:function(e){return c.indexOf(e)+1<c.length?h(e,c[c.indexOf(e)+1]):d(e)},not:function(e){const t=c.indexOf(e);return 0===t?d(c[1]):t===c.length-1?p(c[t]):h(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},l)}},4885:(e,t,r)=>{"use strict";const n=r(4033);e.exports=class extends n{constructor(e,t){super("terms","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_terms",e,t)}}},4893:e=>{e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},4894:(e,t,r)=>{"use strict";const n=r(1463),o=r(3650),i=r(6724),s=r(2104),a=r(5286),{checkType:l,invalidParam:u,recursiveToJSON:c}=r(2960),d="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html",p=u(d,"encoder","'default' or 'html'"),h=u(d,"type","'plain', 'postings', 'unified' or 'fvh'"),f=u(d,"fragmenter","'simple' or 'span'");e.exports=class{constructor(e){this._fields={},this._highlight={fields:this._fields},i(e)||(s(e)?this.field(e):this.fields(e))}_setFieldOption(e,t,r){i(e)?this._highlight[t]=r:(this.field(e),this._fields[e][t]=r)}field(e){return i(e)||n(this._fields,e)||(this._fields[e]={}),this}fields(e){return l(e,Array),e.forEach((e=>this.field(e))),this}preTags(e,t){return this._setFieldOption(t,"pre_tags",s(e)?[e]:e),this}postTags(e,t){return this._setFieldOption(t,"post_tags",s(e)?[e]:e),this}styledTagsSchema(){return this._highlight.tags_schema="styled",this}scoreOrder(e){return this._setFieldOption(e,"order","score"),this}fragmentSize(e,t){return this._setFieldOption(t,"fragment_size",e),this}numberOfFragments(e,t){return this._setFieldOption(t,"number_of_fragments",e),this}noMatchSize(e,t){return this._setFieldOption(t,"no_match_size",e),this}highlightQuery(e,t){return l(e,a),this._setFieldOption(t,"highlight_query",e),this}matchedFields(e,t){if(l(e,Array),o(t))throw new Error("`matched_fields` requires field name to be passed");return this.type("fvh",t),this._setFieldOption(t,"matched_fields",e),this}phraseLimit(e){return this._highlight.phrase_limit=e,this}encoder(e){i(e)&&p(e);const t=e.toLowerCase();return"default"!==t&&"html"!==t&&p(e),this._highlight.encoder=t,this}requireFieldMatch(e,t){return this._setFieldOption(t,"require_field_match",e),this}boundaryMaxScan(e,t){return this._setFieldOption(t,"boundary_max_scan",e),this}boundaryChars(e,t){return this._setFieldOption(t,"boundary_chars",e),this}type(e,t){i(e)&&h(e);const r=e.toLowerCase();return"plain"!==r&&"postings"!==r&&"unified"!==r&&"fvh"!==r&&h(e),this._setFieldOption(t,"type",r),this}forceSource(e,t){return this._setFieldOption(t,"force_source",e),this}fragmenter(e,t){i(e)&&f(e);const r=e.toLowerCase();return"simple"!==r&&"span"!==r&&f(e),this._setFieldOption(t,"fragmenter",r),this}toJSON(){return c(this._highlight)}}},4896:(e,t,r)=>{"use strict";t.GeoQueryBase=r(2668),t.GeoShapeQuery=r(7892),t.GeoBoundingBoxQuery=r(9879),t.GeoDistanceQuery=r(1248),t.GeoPolygonQuery=r(4663)},4913:(e,t,r)=>{"use strict";const n=r(7846);e.exports=class extends n{constructor(e,t){super(e,"geo_centroid",t)}format(){throw console.log("Please refer https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geocentroid-aggregation.html"),new Error("format is not supported in GeoCentroidAggregation")}}},4983:(e,t)=>{"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||w(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===a||e===s||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},4989:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var n=r(8280),o=r(4853),i=r(9703)},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5013:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(4440).A},5043:(e,t,r)=>{"use strict";e.exports=r(4202)},5082:(e,t)=>{"use strict";var r=60103,n=60106,o=60107,i=60108,s=60114,a=60109,l=60110,u=60112,c=60113,d=60120,p=60115,h=60116,f=60121,m=60122,g=60117,v=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;r=y("react.element"),n=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),s=y("react.profiler"),a=y("react.provider"),l=y("react.context"),u=y("react.forward_ref"),c=y("react.suspense"),d=y("react.suspense_list"),p=y("react.memo"),h=y("react.lazy"),f=y("react.block"),m=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case p:case a:return e;default:return t}}case n:return t}}}},5129:(e,t,r)=>{"use strict";const n=r(6724),{Suggester:o}=r(4782);e.exports=class extends o{constructor(e,t,r,o){super(e,t,r),n(o)||(this._opts.text=o)}text(e){return this._opts.text=e,this}analyzer(e){return this._suggestOpts.analyzer=e,this}shardSize(e){return this._suggestOpts.shard_size=e,this}}},5152:(e,t,r)=>{"use strict";const n=r(2254);e.exports=class extends n{constructor(e,t){super(e,"sum_bucket","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-sum-bucket-aggregation.html",t)}}},5170:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(7344).A)()},5173:(e,t,r)=>{e.exports=r(1497)()},5286:(e,t,r)=>{"use strict";const{recursiveToJSON:n}=r(2960);e.exports=class{constructor(e){this.queryType=e,this._body={},this._queryOpts=this._body[e]={}}boost(e){return this._queryOpts.boost=e,this}name(e){return this._queryOpts._name=e,this}getDSL(){return this.toJSON()}toJSON(){return n(this._body)}}},5299:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},5321:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},5329:(e,t,r)=>{"use strict";t.JoiningQueryBase=r(2692),t.NestedQuery=r(5771),t.HasChildQuery=r(2771),t.HasParentQuery=r(9267),t.ParentIdQuery=r(4038)},5350:(e,t,r)=>{"use strict";const n=r(1463),o=r(6724),{util:{invalidParam:i}}=r(4782),s=r(7090),a=i("","direction","'asc' or 'desc'");e.exports=class extends s{constructor(e,t,r,n){super(e,t,r),o(n)||(this._aggsDef.interval=n)}interval(e){return this._aggsDef.interval=e,this}format(e){return this._aggsDef.format=e,this}offset(e){return this._aggsDef.offset=e,this}order(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc";o(t)&&a(t);const r=t.toLowerCase();return"asc"!==r&&"desc"!==r&&a(t),n(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[e]:r})):this._aggsDef.order={[e]:r},this}minDocCount(e){return this._aggsDef.min_doc_count=e,this}extendedBounds(e,t){return this._aggsDef.extended_bounds={min:e,max:t},this}hardBounds(e,t){return this._aggsDef.hard_bounds={min:e,max:t},this}missing(e){return this._aggsDef.missing=e,this}keyed(e){return this._aggsDef.keyed=e,this}}},5403:(e,t,r)=>{"use strict";const n=r(6724);e.exports=class{constructor(e,t){this._body={},n(e)||(this._body.id=e),n(t)||(this._body.type=t)}id(e){return this._body.id=e,this}type(e){return this._body.type=e,this}index(e){return this._body.index=e,this}path(e){return this._body.path=e,this}toJSON(){return this._body}}},5421:(e,t,r)=>{"use strict";const n=r(1023);e.exports=class extends n{constructor(e,t){super(e,"range",t)}}},5442:(e,t,r)=>{"use strict";const n=r(5476);e.exports=class extends n{constructor(){super("random_score")}seed(e){return this._opts.seed=e,this}}},5448:(e,t,r)=>{"use strict";const n=r(6724),{util:{invalidParam:o},consts:{GEO_RELATION_SET:i}}=r(4782),s=r(2295),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html",l=o(a,"relation",i);e.exports=class extends s{constructor(e){super("range",e)}value(){throw console.log(`Please refer ${a}`),new Error("value is not supported in RangeQuery")}gte(e){return this._queryOpts.gte=e,this}lte(e){return this._queryOpts.lte=e,this}gt(e){return this._queryOpts.gt=e,this}lt(e){return this._queryOpts.lt=e,this}from(e){return this._queryOpts.from=e,this}to(e){return this._queryOpts.to=e,this}includeLower(e){return this._queryOpts.include_lower=e,this}includeUpper(e){return this._queryOpts.include_upper=e,this}timeZone(e){return this._queryOpts.time_zone=e,this}format(e){return this._queryOpts.format=e,this}relation(e){n(e)&&l(e);const t=e.toUpperCase();return i.has(t)||l(e),this._queryOpts.relation=t,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},5463:(e,t,r)=>{"use strict";const n=r(6724),o=r(5476),{util:{recursiveToJSON:i}}=r(4782);e.exports=class extends o{constructor(e){super(null),n(e)||(this._body.weight=e)}toJSON(){return i(this._body)}}},5476:(e,t,r)=>{"use strict";const{Query:n,util:{checkType:o,recursiveToJSON:i}}=r(4782);e.exports=class{constructor(e){this._name=e,this._body={},this._opts={}}filter(e){return o(e,n),this._body.filter=e,this}weight(e){return this._body.weight=e,this}toJSON(){const e=Object.assign({[this._name]:this._opts},this._body);return i(e)}}},5544:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6369);var o=r(7800),i=r(6562);function s(e,t){return(0,n.A)(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||(0,o.A)(e,t)||(0,i.A)()}},5651:(e,t,r)=>{"use strict";t.BucketAggregationBase=r(7090),t.HistogramAggregationBase=r(5350),t.RangeAggregationBase=r(1023),t.TermsAggregationBase=r(5725),t.SignificantAggregationBase=r(8417),t.AdjacencyMatrixAggregation=r(304),t.ChildrenAggregation=r(8299),t.CompositeAggregation=r(6823),t.DateHistogramAggregation=r(2879),t.AutoDateHistogramAggregation=r(1849),t.VariableWidthHistogramAggregation=r(1821),t.DateRangeAggregation=r(6800),t.DiversifiedSamplerAggregation=r(9589),t.FilterAggregation=r(7022),t.FiltersAggregation=r(7583),t.GeoDistanceAggregation=r(3567),t.GeoHashGridAggregation=r(4591),t.GeoHexGridAggregation=r(408),t.GeoTileGridAggregation=r(1107),t.GlobalAggregation=r(179),t.HistogramAggregation=r(6502),t.IpRangeAggregation=r(2985),t.MissingAggregation=r(5768),t.NestedAggregation=r(5783),t.ParentAggregation=r(400),t.RangeAggregation=r(5421),t.RareTermsAggregation=r(2542),t.ReverseNestedAggregation=r(3762),t.SamplerAggregation=r(6872),t.SignificantTermsAggregation=r(2693),t.SignificantTextAggregation=r(861),t.TermsAggregation=r(6471)},5714:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(3806);const o=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},5725:(e,t,r)=>{"use strict";const n=r(6724),{util:{invalidParam:o},consts:{EXECUTION_HINT_SET:i}}=r(4782),s=r(7090),a=o("","execution_hint",i);e.exports=class extends s{constructor(e,t,r,n){super(e,t,n),this._refUrl=r}format(e){return this._aggsDef.format=e,this}minDocCount(e){return this._aggsDef.min_doc_count=e,this}shardMinDocCount(e){return this._aggsDef.shard_min_doc_count=e,this}size(e){return this._aggsDef.size=e,this}shardSize(e){return this._aggsDef.shard_size=e,this}missing(e){return this._aggsDef.missing=e,this}include(e){return this._aggsDef.include=e,this}exclude(e){return this._aggsDef.exclude=e,this}executionHint(e){n(e)&&a(e,this._refUrl);const t=e.toLowerCase();return i.has(t)||a(e,this._refUrl),this._aggsDef.execution_hint=e,this}}},5766:function(e,t){var r,n,o;n=[],r=function e(){var t,r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:{},n=!r.document&&!!r.postMessage,o=r.IS_PAPA_WORKER||!1,i={},s=0,a={};function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new h(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let t=this._config.newline;t||(i=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,i)),e=[...e.split(t).slice(n)].join(t)}this.isFirstChunk&&w(this._config.beforeFirstChunk)&&void 0!==(i=this._config.beforeFirstChunk(e))&&(e=i),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var i=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=i.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),i&&i.data&&(this._rowCount+=i.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,o)r.postMessage({results:i,workerId:a.WORKER_ID,finished:n});else if(w(this._config.chunk)&&!t){if(this._config.chunk(i,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=i=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(i.data),this._completeResults.errors=this._completeResults.errors.concat(i.errors),this._completeResults.meta=i.meta),this._completed||!n||!w(this._config.complete)||i&&i.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||i&&i.meta.paused||this._nextChunk(),i}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):o&&this._config.error&&r.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),l.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e,r=this._config.downloadRequestHeaders;for(e in r)t.setRequestHeader(e,r[e])}var o;this._config.chunkSize&&(o=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+o));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function c(e){(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),l.call(this,e);var t,r,n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,o=(this._config.chunkSize&&(o=Math.min(this._start+this._config.chunkSize,this._input.size),e=r.call(e,this._start,o)),t.readAsText(e,this._config.encoding));n||this._chunkLoaded({target:{result:o}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,r;if(!this._finished)return e=this._config.chunkSize,t=e?(r=t.substring(0,e),t.substring(e)):(r=t,""),this._finished=!t,this.parseChunk(r)}}function p(e){l.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=x((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=x((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=x((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=x((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function h(e){var t,r,n,o,i=Math.pow(2,53),s=-i,l=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,d=0,p=0,h=!1,g=!1,v=[],b={data:[],errors:[],meta:{}};function x(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function _(){if(b&&n&&(A("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(b.data=b.data.filter((function(e){return!x(e)}))),S()){if(b)if(Array.isArray(b.data[0])){for(var t=0;S()&&t<b.data.length;t++)b.data[t].forEach(r);b.data.splice(0,1)}else b.data.forEach(r);function r(t,r){w(e.transformHeader)&&(t=e.transformHeader(t,r)),v.push(t)}}function o(t,r){for(var n=e.header?{}:[],o=0;o<t.length;o++){var a=o,c=t[o];c=((t,r)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&((e=>{if(l.test(e)&&(e=parseFloat(e),s<e&&e<i))return 1})(r)?parseFloat(r):u.test(r)?new Date(r):""===r?null:r):r)(a=e.header?o>=v.length?"__parsed_extra":v[o]:a,c=e.transform?e.transform(c,a):c),"__parsed_extra"===a?(n[a]=n[a]||[],n[a].push(c)):n[a]=c}return e.header&&(o>v.length?A("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+o,p+r):o<v.length&&A("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+o,p+r)),n}var c;b&&(e.header||e.dynamicTyping||e.transform)&&(c=1,!b.data.length||Array.isArray(b.data[0])?(b.data=b.data.map(o),c=b.data.length):b.data=o(b.data,0),e.header&&b.meta&&(b.meta.fields=v),p+=c)}function S(){return e.header&&0===v.length}function A(e,t,r,n){e={type:e,code:t,message:r},void 0!==n&&(e.row=n),b.errors.push(e)}w(e.step)&&(o=e.step,e.step=function(t){b=t,S()?_():(_(),0!==b.data.length&&(d+=t.data.length,e.preview&&d>e.preview?r.abort():(b.data=b.data[0],o(b,c))))}),this.parse=function(o,i,s){var l=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(o,l)),n=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(o),b.meta.delimiter=e.delimiter):((l=((t,r,n,o,i)=>{var s,l,u,c;i=i||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var d=0;d<i.length;d++){for(var p,h=i[d],f=0,g=0,v=0,b=(u=void 0,new m({comments:o,delimiter:h,newline:r,preview:10}).parse(t)),y=0;y<b.data.length;y++)n&&x(b.data[y])?v++:(g+=p=b.data[y].length,void 0===u?u=p:0<p&&(f+=Math.abs(p-u),u=p));0<b.data.length&&(g/=b.data.length-v),(void 0===l||f<=l)&&(void 0===c||c<g)&&1.99<g&&(l=f,s=h,c=g)}return{successful:!!(e.delimiter=s),bestDelimiter:s}})(o,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=l.bestDelimiter:(n=!0,e.delimiter=a.DefaultDelimiter),b.meta.delimiter=e.delimiter),l=y(e),e.preview&&e.header&&l.preview++,t=o,r=new m(l),b=r.parse(t,i,s),_(),h?{meta:{paused:!0}}:b||{meta:{paused:!1}}},this.paused=function(){return h},this.pause=function(){h=!0,r.abort(),t=w(e.chunk)?"":t.substring(r.getCharIndex())},this.resume=function(){c.streamer._halted?(h=!1,c.streamer.parseChunk(t,!0)):setTimeout(c.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,r.abort(),b.meta.aborted=!0,w(e.complete)&&e.complete(b),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(f(t)+"([^]*?)"+f(t),"gm");var r=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<r[0].length,1===r.length||e)return"\n";for(var n=0,o=0;o<r.length;o++)"\n"===r[o][0]&&n++;return n>=r.length/2?"\r\n":"\r"}}function f(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var t=(e=e||{}).delimiter,r=e.newline,n=e.comments,o=e.step,i=e.preview,s=e.fastMode,l=null,u=!1,c=null==e.quoteChar?'"':e.quoteChar,d=c;if(void 0!==e.escapeChar&&(d=e.escapeChar),("string"!=typeof t||-1<a.BAD_DELIMITERS.indexOf(t))&&(t=","),n===t)throw new Error("Comment character same as delimiter");!0===n?n="#":("string"!=typeof n||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var p=0,h=!1;this.parse=function(a,m,g){if("string"!=typeof a)throw new Error("Input must be a string");var v=a.length,b=t.length,y=r.length,x=n.length,_=w(o),S=[],A=[],C=[],k=p=0;if(!a)return F();if(s||!1!==s&&-1===a.indexOf(c)){for(var E=a.split(r),R=0;R<E.length;R++){if(C=E[R],p+=C.length,R!==E.length-1)p+=r.length;else if(g)return F();if(!n||C.substring(0,x)!==n){if(_){if(S=[],N(C.split(t)),z(),h)return F()}else N(C.split(t));if(i&&i<=R)return S=S.slice(0,i),F(!0)}}return F()}for(var j=a.indexOf(t,p),O=a.indexOf(r,p),T=new RegExp(f(d)+f(c),"g"),I=a.indexOf(c,p);;)if(a[p]===c)for(I=p,p++;;){if(-1===(I=a.indexOf(c,I+1)))return g||A.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:S.length,index:p}),D();if(I===v-1)return D(a.substring(p,I).replace(T,c));if(c===d&&a[I+1]===d)I++;else if(c===d||0===I||a[I-1]!==d){-1!==j&&j<I+1&&(j=a.indexOf(t,I+1));var P=M(-1===(O=-1!==O&&O<I+1?a.indexOf(r,I+1):O)?j:Math.min(j,O));if(a.substr(I+1+P,b)===t){C.push(a.substring(p,I).replace(T,c)),a[p=I+1+P+b]!==c&&(I=a.indexOf(c,p)),j=a.indexOf(t,p),O=a.indexOf(r,p);break}if(P=M(O),a.substring(I+1+P,I+1+P+y)===r){if(C.push(a.substring(p,I).replace(T,c)),L(I+1+P+y),j=a.indexOf(t,p),I=a.indexOf(c,p),_&&(z(),h))return F();if(i&&S.length>=i)return F(!0);break}A.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:S.length,index:p}),I++}}else if(n&&0===C.length&&a.substring(p,p+x)===n){if(-1===O)return F();p=O+y,O=a.indexOf(r,p),j=a.indexOf(t,p)}else if(-1!==j&&(j<O||-1===O))C.push(a.substring(p,j)),p=j+b,j=a.indexOf(t,p);else{if(-1===O)break;if(C.push(a.substring(p,O)),L(O+y),_&&(z(),h))return F();if(i&&S.length>=i)return F(!0)}return D();function N(e){S.push(e),k=p}function M(e){var t=0;return-1!==e&&(e=a.substring(I+1,e))&&""===e.trim()?e.length:t}function D(e){return g||(void 0===e&&(e=a.substring(p)),C.push(e),p=v,N(C),_&&z()),F()}function L(e){p=e,N(C),C=[],O=a.indexOf(r,p)}function F(n){if(e.header&&!m&&S.length&&!u){var o=S[0],i={},s=new Set(o);let t=!1;for(let r=0;r<o.length;r++){let n=o[r];if(i[n=w(e.transformHeader)?e.transformHeader(n,r):n]){let e,a=i[n];for(;e=n+"_"+a,a++,s.has(e););s.add(e),o[r]=e,i[n]++,t=!0,(l=null===l?{}:l)[e]=n}else i[n]=1,o[r]=n;s.add(n)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:S,errors:A,meta:{delimiter:t,linebreak:r,aborted:h,truncated:!!n,cursor:k+(m||0),renamedHeaders:l}}}function z(){o(F()),S=[],A=[]}},this.abort=function(){h=!0},this.getCharIndex=function(){return p}}function g(e){var t=e.data,r=i[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){n=!0,v(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(w(r.userStep)){for(var s=0;s<t.results.data.length&&(r.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},o),!n);s++);delete t.results}else w(r.userChunk)&&(r.userChunk(t.results,o,t.file),delete t.results)}t.finished&&!n&&v(t.workerId,t.results)}function v(e,t){var r=i[e];w(r.userComplete)&&r.userComplete(t),r.terminate(),delete i[e]}function b(){throw new Error("Not implemented.")}function y(e){if("object"!=typeof e||null===e)return e;var t,r=Array.isArray(e)?[]:{};for(t in e)r[t]=y(e[t]);return r}function x(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return a.parse=function(t,n){var o=(n=n||{}).dynamicTyping||!1;if(w(o)&&(n.dynamicTypingFunction=o,o={}),n.dynamicTyping=o,n.transform=!!w(n.transform)&&n.transform,!n.worker||!a.WORKERS_SUPPORTED)return o=null,a.NODE_STREAM_INPUT,"string"==typeof t?(t=(e=>65279!==e.charCodeAt(0)?e:e.slice(1))(t),o=new(n.download?u:d)(n)):!0===t.readable&&w(t.read)&&w(t.on)?o=new p(n):(r.File&&t instanceof File||t instanceof Object)&&(o=new c(n)),o.stream(t);(o=(()=>{var t;return!!a.WORKERS_SUPPORTED&&(t=(()=>{var t=r.URL||r.webkitURL||null,n=e.toString();return a.BLOB_URL||(a.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))})(),(t=new r.Worker(t)).onmessage=g,t.id=s++,i[t.id]=t)})()).userStep=n.step,o.userChunk=n.chunk,o.userComplete=n.complete,o.userError=n.error,n.step=w(n.step),n.chunk=w(n.chunk),n.complete=w(n.complete),n.error=w(n.error),delete n.worker,o.postMessage({input:t,config:n,workerId:o.id})},a.unparse=function(e,t){var r=!1,n=!0,o=",",i="\r\n",s='"',l=s+s,u=!1,c=null,d=!1,p=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");c=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+s),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}})(),new RegExp(f(s),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,u);if("object"==typeof e[0])return h(c||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||c),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(e,t,r){var s="",a=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),l=!Array.isArray(t[0]);if(a&&n){for(var u=0;u<e.length;u++)0<u&&(s+=o),s+=m(e[u],u);0<t.length&&(s+=i)}for(var c=0;c<t.length;c++){var d=(a?e:t[c]).length,p=!1,h=a?0===Object.keys(t[c]).length:0===t[c].length;if(r&&!a&&(p="greedy"===r?""===t[c].join("").trim():1===t[c].length&&0===t[c][0].length),"greedy"===r&&a){for(var f=[],g=0;g<d;g++){var v=l?e[g]:g;f.push(t[c][v])}p=""===f.join("").trim()}if(!p){for(var b=0;b<d;b++){0<b&&!h&&(s+=o);var y=a&&l?e[b]:b;s+=m(t[c][y],b)}c<t.length-1&&(!r||0<d&&!h)&&(s+=i)}}return s}function m(e,t){var n,i;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(i=!1,d&&"string"==typeof e&&d.test(e)&&(e="'"+e,i=!0),n=e.toString().replace(p,l),(i=i||!0===r||"function"==typeof r&&r(e,t)||Array.isArray(r)&&r[t]||((e,t)=>{for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1})(n,a.BAD_DELIMITERS)||-1<n.indexOf(o)||" "===n.charAt(0)||" "===n.charAt(n.length-1))?s+n+s:n)}},a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!n&&!!r.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=m,a.ParserHandle=h,a.NetworkStreamer=u,a.FileStreamer=c,a.StringStreamer=d,a.ReadableStreamStreamer=p,r.jQuery&&((t=r.jQuery).fn.parse=function(e){var n=e.config||{},o=[];return this.each((function(e){if("INPUT"!==t(this).prop("tagName").toUpperCase()||"file"!==t(this).attr("type").toLowerCase()||!r.FileReader||!this.files||0===this.files.length)return!0;for(var i=0;i<this.files.length;i++)o.push({file:this.files[i],inputElem:this,instanceConfig:t.extend({},n)})})),i(),this;function i(){if(0===o.length)w(e.complete)&&e.complete();else{var r,n,i,l,u=o[0];if(w(e.before)){var c=e.before(u.file,u.inputElem);if("object"==typeof c){if("abort"===c.action)return r="AbortError",n=u.file,i=u.inputElem,l=c.reason,void(w(e.error)&&e.error({name:r},n,i,l));if("skip"===c.action)return void s();"object"==typeof c.config&&(u.instanceConfig=t.extend(u.instanceConfig,c.config))}else if("skip"===c)return void s()}var d=u.instanceConfig.complete;u.instanceConfig.complete=function(e){w(d)&&d(e,u.file,u.inputElem),s()},a.parse(u.file,u.instanceConfig)}}function s(){o.splice(0,1),i()}}),o&&(r.onmessage=function(e){e=e.data,void 0===a.WORKER_ID&&e&&(a.WORKER_ID=e.workerId),"string"==typeof e.input?r.postMessage({workerId:a.WORKER_ID,results:a.parse(e.input,e.config),finished:!0}):(r.File&&e.input instanceof File||e.input instanceof Object)&&(e=a.parse(e.input,e.config))&&r.postMessage({workerId:a.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(l.prototype)).constructor=u,(c.prototype=Object.create(l.prototype)).constructor=c,(d.prototype=Object.create(d.prototype)).constructor=d,(p.prototype=Object.create(l.prototype)).constructor=p,a},void 0===(o="function"===typeof r?r.apply(t,n):r)||(e.exports=o)},5768:(e,t,r)=>{"use strict";const n=r(7090);e.exports=class extends n{constructor(e,t){super(e,"missing",t)}script(){throw console.log("Please refer https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-missing-aggregation.html"),new Error("script is not supported in MissingAggregation")}}},5771:(e,t,r)=>{"use strict";const n=r(6724),o=r(2692);e.exports=class extends o{constructor(e,t){super("nested","https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html",e),n(t)||(this._queryOpts.path=t)}path(e){return this._queryOpts.path=e,this}}},5783:(e,t,r)=>{"use strict";const n=r(6724),o=r(7090),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-nested-aggregation.html";e.exports=class extends o{constructor(e,t){super(e,"nested"),n(t)||(this._aggsDef.path=t)}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in NestedAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in NestedAggregation")}path(e){return this._aggsDef.path=e,this}}},5814:(e,t,r)=>{"use strict";const n=r(2295),{validateRewiteMethod:o}=r(15);e.exports=class extends n{constructor(e,t){super("regexp",e,t)}flags(e){return this._queryOpts.flags=e,this}caseInsensitive(e){return this._queryOpts.case_insensitive=e,this}maxDeterminizedStates(e){return this._queryOpts.max_determinized_states=e,this}rewrite(e){return o(e,"rewrite","https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html"),this._queryOpts.rewrite=e,this}}},5826:(e,t,r)=>{"use strict";const n=r(6724),{util:{invalidParam:o},consts:{FIELD_MODIFIER_SET:i}}=r(4782),s=r(5476),a=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-field-value-factor","modifier",i);e.exports=class extends s{constructor(e){super("field_value_factor"),n(e)||(this._opts.field=e)}field(e){return this._opts.field=e,this}factor(e){return this._opts.factor=e,this}modifier(e){n(e)&&a(e);const t=e.toLowerCase();return i.has(t)||a(e),this._opts.modifier=t,this}missing(e){return this._opts.missing=e,this}}},5844:(e,t,r)=>{"use strict";var n;r.d(t,{A:()=>a});var o=r(5043);let i=0;const s=(n||(n=r.t(o,2)))["useId".toString()];function a(e){if(void 0!==s){const t=s();return null!=e?e:t}return function(e){const[t,r]=o.useState(e),n=e||t;return o.useEffect((()=>{null==t&&(i+=1,r(`mui-${i}`))}),[t]),n}(e)}},5849:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(3462).A},5879:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(5844).A},5896:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),i=r(579);t.A=(0,o.default)((0,i.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},5905:(e,t,r)=>{"use strict";const n=r(6878),{Suggester:o,util:{setDefault:i}}=r(4782);e.exports=class extends o{constructor(e,t){super("completion",e,t)}prefix(e){return this._opts.prefix=e,this}skipDuplicates(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._suggestOpts.skip_duplicates=e,this}_checkFuzzy(){n(this._suggestOpts.fuzzy)||(this._suggestOpts.fuzzy={})}fuzzy(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._suggestOpts.fuzzy=e,this}fuzziness(e){return this._checkFuzzy(),this._suggestOpts.fuzzy.fuzziness=e,this}transpositions(e){return this._checkFuzzy(),this._suggestOpts.fuzzy.transpositions=e,this}minLength(e){return this._checkFuzzy(),this._suggestOpts.fuzzy.min_length=e,this}prefixLength(e){return this._checkFuzzy(),this._suggestOpts.fuzzy.prefix_length=e,this}unicodeAware(e){return this._checkFuzzy(),this._suggestOpts.fuzzy.unicode_aware=e,this}regex(e){return this._opts.regex=e,this}flags(e){return i(this._suggestOpts,"regex",{}),this._suggestOpts.regex.flags=e,this}maxDeterminizedStates(e){return i(this._suggestOpts,"regex",{}),this._suggestOpts.regex.max_determinized_states=e,this}contexts(e,t){return i(this._suggestOpts,"contexts",{}),this._suggestOpts.contexts[e]=t,this}}},5981:(e,t,r)=>{"use strict";const n=r(6724),o=r(4033);e.exports=class extends o{constructor(e,t,r){super("date_histogram","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_date_histogram",e,t),n(r)||(this._opts.interval=r)}interval(e){return this._opts.interval=e,this}calendarInterval(e){return this._opts.calendar_interval=e,this}fixedInterval(e){return this._opts.fixed_interval=e,this}timeZone(e){return this._opts.time_zone=e,this}format(e){return this._opts.format=e,this}}},5995:(e,t,r)=>{"use strict";r.d(t,{L:()=>d,A:()=>f});var n=r(5544),o=r(498),i=r(5714);var s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!l[e])return[e];e=l[e]}var t=e.split(""),r=(0,n.A)(t,2),o=r[0],i=r[1],u=s[o],c=a[i]||"";return Array.isArray(c)?c.map((function(e){return u+e})):[u+c]})),c=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function d(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function p(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"===typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"===typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function h(e){var t=d(e.theme);return Object.keys(e).map((function(r){if(-1===c.indexOf(r))return null;var n=p(u(r),t),i=e[r];return(0,o.N)(e,i,n)})).reduce(i.A,{})}h.propTypes={},h.filterProps=c;const f=h},6078:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(3940).A},6135:(e,t,r)=>{"use strict";const n=r(6724),{MatchAllQuery:o,termLevelQueries:{ExistsQuery:i},compoundQueries:{BoolQuery:s,FunctionScoreQuery:a,scoreFunctions:{RandomScoreFunction:l}}}=r(75),{Query:u,util:{checkType:c}}=r(4782);t.missingQuery=function(e){return(new s).mustNot(new i(e))},t.randomSortQuery=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o,t=arguments.length>1?arguments[1]:void 0;c(e,u);const r=new l;return(new a).query(e).function(n(t)?r:r.seed(t))},t.filterQuery=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c(e,u);const r=(new s).filter(e);return!0===t?r.must(new o):r}},6176:(e,t,r)=>{"use strict";const n=r(6724),{util:{checkType:o,invalidParam:i}}=r(4782),s=r(3128),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-combined-fields-query.html",l=i(a,"operator","'and' or 'or'"),u=i(a,"zero_terms_query","'all' or 'none'");e.exports=class extends s{constructor(e,t){super("combined_fields",t),this._queryOpts.fields=[],n(e)||(Array.isArray(e)?this.fields(e):this.field(e))}field(e){return this._queryOpts.fields.push(e),this}fields(e){return o(e,Array),this._queryOpts.fields=this._queryOpts.fields.concat(e),this}autoGenerateSynonymsPhraseQuery(e){return this._queryOpts.auto_generate_synonyms_phrase_query=e,this}operator(e){n(e)&&l(e);const t=e.toLowerCase();return"and"!==t&&"or"!==t&&l(e),this._queryOpts.operator=t,this}zeroTermsQuery(e){n(e)&&u(e);const t=e.toLowerCase();return"all"!==t&&"none"!==t&&u(e),this._queryOpts.zero_terms_query=t,this}}},6213:(e,t,r)=>{"use strict";const n=r(2254);e.exports=class extends n{constructor(e,t){super(e,"derivative","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-derivative-aggregation.html",t)}unit(e){return this._aggsDef.unit=e,this}}},6267:(e,t,r)=>{"use strict";var n=r(6973),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:a,isPlainObject:l,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return a(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:c,merge:function e(){var t={};function r(r,n){l(t[n])&&l(r)?t[n]=e(t[n],r):l(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},extend:function(e,t,r){return c(t,(function(t,o){e[o]=r&&"function"===typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},6296:(e,t,r)=>{"use strict";const{util:{checkType:n}}=r(4782),o=r(3420);e.exports=class extends o{constructor(){super("span_not")}include(e){return n(e,o),this._queryOpts.include=e,this}exclude(e){return n(e,o),this._queryOpts.exclude=e,this}pre(e){return this._queryOpts.pre=e,this}post(e){return this._queryOpts.post=e,this}dist(e){return this._queryOpts.dist=e,this}}},6305:(e,t,r)=>{var n=r(3738).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=s?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,r&&r.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},6321:(e,t,r)=>{"use strict";const n=r(2254);e.exports=class extends n{constructor(e,t){super(e,"avg_bucket","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html",t)}}},6369:(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{A:()=>n})},6431:(e,t,r)=>{"use strict";r.d(t,{b:()=>a});var n=r(5043),o=r(3030);r(579);const i=n.createContext(void 0);function s(e){let{props:t,name:r}=e;return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?(0,o.A)(i.defaultProps,n):i.styleOverrides||i.variants?n:(0,o.A)(i,n)}({props:t,name:r,theme:{components:n.useContext(i)}})}function a(e){return s(e)}},6438:(e,t,r)=>{"use strict";var n=r(6267);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function s(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function a(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function l(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);n.isUndefined(o)&&t!==l||(r[e]=o)})),r}},6471:(e,t,r)=>{"use strict";const n=r(1463),o=r(6724),{util:{invalidParam:i}}=r(4782),s=r(5725),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html",l=i(a,"direction","'asc' or 'desc'"),u=i(a,"mode","'breadth_first' or 'depth_first'");e.exports=class extends s{constructor(e,t){super(e,"terms",a,t)}showTermDocCountError(e){return this._aggsDef.show_term_doc_count_error=e,this}includePartition(e,t){return this._aggsDef.include={partition:e,num_partitions:t},this}collectMode(e){o(e)&&u(e);const t=e.toLowerCase();return"breadth_first"!==t&&"depth_first"!==t&&u(e),this._aggsDef.collect_mode=t,this}order(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc";o(t)&&l(t);const r=t.toLowerCase();return"asc"!==r&&"desc"!==r&&l(t),n(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[e]:r})):this._aggsDef.order={[e]:r},this}}},6502:(e,t,r)=>{"use strict";const n=r(5350);e.exports=class extends n{constructor(e,t,r){super(e,"histogram",t,r)}}},6531:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(1188)},6561:(e,t,r)=>{"use strict";t.ScoreFunction=r(5476),t.ScriptScoreFunction=r(2246),t.WeightScoreFunction=r(5463),t.RandomScoreFunction=r(5442),t.FieldValueFactorFunction=r(5826),t.DecayScoreFunction=r(8497)},6562:(e,t,r)=>{"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:()=>n})},6564:(e,t,r)=>{"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,{A:()=>n})},6593:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(2456).A},6598:(e,t,r)=>{"use strict";r.d(t,{J:()=>g});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},o=r(918),i=!1,s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!==typeof e},c=(0,o.A)((function(e){return l(e)?e:e.replace(s,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(a,(function(e,t,r){return f={name:t,styles:r,next:f},t}))}return 1===n[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return f={name:o.name,styles:o.styles,next:f},o.name;var s=r;if(void 0!==s.styles){var a=s.next;if(void 0!==a)for(;void 0!==a;)f={name:a.name,styles:a.styles,next:f},a=a.next;return s.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=h(e,t,r[o])+";";else for(var s in r){var a=r[s];if("object"!==typeof a){var l=a;null!=t&&void 0!==t[l]?n+=s+"{"+t[l]+"}":u(l)&&(n+=c(s)+":"+d(s,l)+";")}else{if("NO_COMPONENT_SELECTOR"===s&&i)throw new Error(p);if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var f=h(e,t,a);switch(s){case"animation":case"animationName":n+=c(s)+":"+f+";";break;default:n+=s+"{"+f+"}"}}else for(var m=0;m<a.length;m++)u(a[m])&&(n+=c(s)+":"+d(s,a[m])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var l=f,m=r(e);return f=l,h(e,t,m)}}var g=r;if(null==t)return g;var v=t[g];return void 0!==v?v:g}var f,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,r){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";f=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=h(r,t,i)):o+=i[0];for(var s=1;s<e.length;s++){if(o+=h(r,t,e[s]),n)o+=i[s]}m.lastIndex=0;for(var a,l="";null!==(a=m.exec(o));)l+="-"+a[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:f}}},6599:(e,t,r)=>{"use strict";const{recursiveToJSON:n,checkType:o}=r(2960),i=r(5286);e.exports=class{constructor(e,t,r){if(t>r)throw new Error("KNN numCandidates cannot be less than k");this._body={},this._body.field=e,this._body.k=t,this._body.filter=[],this._body.num_candidates=r}queryVector(e){if(this._body.query_vector_builder)throw new Error("cannot provide both query_vector_builder and query_vector");return this._body.query_vector=e,this}queryVectorBuilder(e,t){if(this._body.query_vector)throw new Error("cannot provide both query_vector_builder and query_vector");return this._body.query_vector_builder={text_embeddings:{model_id:e,model_text:t}},this}filter(e){return(Array.isArray(e)?e:[e]).forEach((e=>{o(e,i),this._body.filter.push(e)})),this}boost(e){return this._body.boost=e,this}similarity(e){return this._body.similarity=e,this}toJSON(){if(!this._body.query_vector&&!this._body.query_vector_builder)throw new Error("either query_vector_builder or query_vector must be provided");return n(this._body)}}},6664:(e,t,r)=>{"use strict";var n=r(6267);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},6724:e=>{e.exports=function(e){return null==e}},6734:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(8168),o=r(5043),i=r(8122),s=r(579);function a(e,t){function r(r,o){return(0,s.jsx)(i.A,(0,n.A)({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return r.muiName=i.A.muiName,o.memo(o.forwardRef(r))}},6735:(e,t,r)=>{"use strict";var n=r(6267);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},6764:(e,t,r)=>{"use strict";const{util:{checkType:n}}=r(4782),o=r(3420);e.exports=class extends o{little(e){return n(e,o),this._queryOpts.little=e,this}big(e){return n(e,o),this._queryOpts.big=e,this}}},6800:(e,t,r)=>{"use strict";const n=r(1023);e.exports=class extends n{constructor(e,t){super(e,"date_range",t)}timeZone(e){return this._aggsDef.time_zone=e,this}}},6803:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(7598).A},6823:(e,t,r)=>{"use strict";const{Aggregation:n,util:{checkType:o,constructorWrapper:i}}=r(4782),{ValuesSourceBase:s,TermsValuesSource:a,HistogramValuesSource:l,DateHistogramValuesSource:u}=r(9835);class c extends n{constructor(e){super(e,"composite"),this._aggsDef.sources=[]}sources(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.forEach((e=>o(e,s))),this._aggsDef.sources=this._aggsDef.sources.concat(t),this}size(e){return this._aggsDef.size=e,this}after(e){return this._aggsDef.after=e,this}}c.TermsValuesSource=a,c.termsValuesSource=i(a),c.HistogramValuesSource=l,c.histogramValuesSource=i(l),c.DateHistogramValuesSource=u,c.dateHistogramValuesSource=i(u),e.exports=c},6836:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(5043),o=r(7950),i=!0,s=!1,a=null,l={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 u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function d(){"hidden"===this.visibilityState&&s&&(i=!0)}function p(e){var t=e.target;try{return t.matches(":focus-visible")}catch(r){}return i||function(e){var t=e.type,r=e.tagName;return!("INPUT"!==r||!l[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function h(){s=!0,window.clearTimeout(a),a=window.setTimeout((function(){s=!1}),100)}function f(){return{isFocusVisible:p,onBlurVisible:h,ref:n.useCallback((function(e){var t,r=o.findDOMNode(e);null!=r&&((t=r.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},6862:(e,t,r)=>{"use strict";const{Query:n}=r(4782),o=r(6724);e.exports=class extends n{constructor(e){super("rank_feature"),o(e)||(this._queryOpts.field=e)}field(e){return this._queryOpts.field=e,this}linear(){return this._queryOpts.linear={},this}saturation(){return this._queryOpts.saturation={},this}saturationPivot(e){return this._queryOpts.saturation={},this._queryOpts.saturation.pivot=e,this}log(e){return this._queryOpts.log={},this._queryOpts.log.scaling_factor=e,this}sigmoid(e,t){return this._queryOpts.sigmoid={},this._queryOpts.sigmoid.pivot=e,this._queryOpts.sigmoid.exponent=t,this}}},6872:(e,t,r)=>{"use strict";const n=r(7090),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-sampler-aggregation.html";e.exports=class extends n{constructor(e){super(e,"sampler")}field(){throw console.log(`Please refer ${o}`),new Error("field is not supported in SamplerAggregation")}script(){throw console.log(`Please refer ${o}`),new Error("script is not supported in SamplerAggregation")}shardSize(e){return this._aggsDef.shard_size=e,this}}},6878:e=>{e.exports=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}},6912:(e,t)=>{"use strict";t.EXECUTION_HINT_SET=new Set(["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]),t.UNIT_SET=new Set(["in","inch","yd","yards","ft","feet","km","kilometers","NM","nmi","nauticalmiles","mm","millimeters","cm","centimeters","mi","miles","m","meters"]),t.MODEL_SET=new Set(["simple","linear","ewma","holt","holt_winters"]),t.SORT_MODE_SET=new Set(["min","max","sum","avg","median"]),t.RESCORE_MODE_SET=new Set(["total","multiply","min","max","avg"]),t.REWRITE_METHOD_SET=new Set(["constant_score","constant_score_auto","constant_score_filter","scoring_boolean","constant_score_boolean","top_terms_N","top_terms_boost_N","top_terms_blended_freqs_N"]),t.MULTI_MATCH_TYPE=new Set(["best_fields","most_fields","cross_fields","phrase","phrase_prefix","bool_prefix"]),t.SCORE_MODE_SET=new Set(["multiply","sum","first","min","max","avg"]),t.BOOST_MODE_SET=new Set(["multiply","sum","replace","min","max","avg"]),t.FIELD_MODIFIER_SET=new Set(["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]),t.NESTED_SCORE_MODE_SET=new Set(["none","sum","min","max","avg"]),t.GEO_SHAPE_TYPES=new Set(["point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection","envelope","circle"]),t.GEO_RELATION_SET=new Set(["WITHIN","CONTAINS","DISJOINT","INTERSECTS"]),t.SUGGEST_MODE_SET=new Set(["missing","popular","always"]),t.STRING_DISTANCE_SET=new Set(["internal","damerau_levenshtein","levenstein","jarowinkler","ngram"]),t.SMOOTHING_MODEL_SET=new Set(["stupid_backoff","laplace","linear_interpolation"])},6969:(e,t,r)=>{"use strict";const n=r(6724),o=r(2254);e.exports=class extends o{constructor(e,t,r,o){super(e,"moving_fn","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movfn-aggregation.html",t),n(r)||(this._aggsDef.window=r),n(o)||(this._aggsDef.script=o)}window(e){return this._aggsDef.window=e,this}shift(e){return this._aggsDef.shift=e,this}script(e){return this._aggsDef.script=e,this}}},6973:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},7022:(e,t,r)=>{"use strict";const n=r(6724),{Query:o,util:{checkType:i}}=r(4782),s=r(7090),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html";e.exports=class extends s{constructor(e,t){super(e,"filter"),n(t)||this.filter(t)}field(){throw console.log(`Please refer ${a}`),new Error("field is not supported in FilterAggregation")}script(){throw console.log(`Please refer ${a}`),new Error("script is not supported in FilterAggregation")}filter(e){return i(e,o),this._aggsDef=this._aggs[this.aggType]=e,this}}},7034:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(20).A},7058:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),i=r(579);t.A=(0,o.default)([(0,i.jsx)("path",{d:"M21 19.1H3V5h18zM21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),(0,i.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41z"},"1")],"CancelPresentation")},7090:(e,t,r)=>{"use strict";const n=r(6724),{Aggregation:o,Script:i,util:{checkType:s}}=r(4782);e.exports=class extends o{constructor(e,t,r){super(e,t),n(r)||(this._aggsDef.field=r)}field(e){return this._aggsDef.field=e,this}script(e){return s(e,i),this._aggsDef.script=e,this}}},7100:(e,t,r)=>{"use strict";const n=r(6724),o=r(4033);e.exports=class extends o{constructor(e,t,r){super("histogram","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_histogram",e,t),n(r)||(this._opts.interval=r)}interval(e){return this._opts.interval=e,this}}},7123:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},7162:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,BO:()=>s,Yn:()=>i});var n=r(7598),o=r(9751);function i(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];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 s(e,t,r){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"===typeof e?e(r):Array.isArray(e)?e[r]||o:i(e,r)||o,t&&(n=t(n,o,e)),n}const a=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:a,transform:l}=e,u=e=>{if(null==e[t])return null;const u=e[t],c=i(e.theme,a)||{};return(0,o.NI)(e,u,(e=>{let o=s(c,l,e);return e===o&&"string"===typeof e&&(o=s(c,l,`${t}${"default"===e?"":(0,n.A)(e)}`,e)),!1===r?o:{[r]:o}}))};return u.propTypes={},u.filterProps=[t],u}},7173:(e,t,r)=>{"use strict";var n=r(4994),o=r(6305);t.A=void 0;var i=o(r(5043)),s=(0,n(r(9846)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");t.A=s},7234:(e,t)=>{"use strict";var r,n,o,i;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(r){throw setTimeout(d,0),r}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(d,0))},n=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var f=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,b=5,y=0;t.unstable_shouldYield=function(){return t.unstable_now()>=y},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();y=e+b;try{g(!0,e)?w.postMessage(null):(m=!1,g=null)}catch(r){throw w.postMessage(null),r}}else m=!1},r=function(e){g=e,m||(m=!0,w.postMessage(null))},n=function(e,r){v=p((function(){e(t.unstable_now())}),r)},o=function(){h(v),v=-1}}function _(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,o=e[n];if(!(void 0!==o&&0<C(o,t)))break e;e[n]=t,e[r]=o,r=n}}function S(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var i=2*(n+1)-1,s=e[i],a=i+1,l=e[a];if(void 0!==s&&0>C(s,r))void 0!==l&&0>C(l,s)?(e[n]=l,e[a]=r,n=a):(e[n]=s,e[i]=r,n=i);else{if(!(void 0!==l&&0>C(l,r)))break e;e[n]=l,e[a]=r,n=a}}}return t}return null}function C(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var k=[],E=[],R=1,j=null,O=3,T=!1,I=!1,P=!1;function N(e){for(var t=S(E);null!==t;){if(null===t.callback)A(E);else{if(!(t.startTime<=e))break;A(E),t.sortIndex=t.expirationTime,_(k,t)}t=S(E)}}function M(e){if(P=!1,N(e),!I)if(null!==S(k))I=!0,r(D);else{var t=S(E);null!==t&&n(M,t.startTime-e)}}function D(e,r){I=!1,P&&(P=!1,o()),T=!0;var i=O;try{for(N(r),j=S(k);null!==j&&(!(j.expirationTime>r)||e&&!t.unstable_shouldYield());){var s=j.callback;if("function"===typeof s){j.callback=null,O=j.priorityLevel;var a=s(j.expirationTime<=r);r=t.unstable_now(),"function"===typeof a?j.callback=a:j===S(k)&&A(k),N(r)}else A(k);j=S(k)}if(null!==j)var l=!0;else{var u=S(E);null!==u&&n(M,u.startTime-r),l=!1}return l}finally{j=null,O=i,T=!1}}var L=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||T||(I=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return S(k)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var r=O;O=t;try{return e()}finally{O=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=O;O=e;try{return t()}finally{O=r}},t.unstable_scheduleCallback=function(e,i,s){var a=t.unstable_now();switch("object"===typeof s&&null!==s?s="number"===typeof(s=s.delay)&&0<s?a+s:a:s=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:R++,callback:i,priorityLevel:e,startTime:s,expirationTime:l=s+l,sortIndex:-1},s>a?(e.sortIndex=s,_(E,e),null===S(k)&&e===S(E)&&(P?o():P=!0,n(M,s-a))):(e.sortIndex=l,_(k,e),I||T||(I=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=O;return function(){var r=O;O=t;try{return e.apply(this,arguments)}finally{O=r}}}},7245:(e,t,r)=>{"use strict";const{Query:n}=r(4782);e.exports=class extends n{constructor(){super("match_all")}}},7249:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9892);function o(e){return(0,n.A)(e).defaultView||window}},7266:(e,t,r)=>{"use strict";var n=r(4994);t.X4=h,t.e$=f,t.tL=g,t.eM=function(e,t){const r=p(e),n=p(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},t.a=m;var o=n(r(457)),i=n(r(6531));function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,r)}function a(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(a(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,o.default)(9,e));let n,i=e.substring(t+1,e.length-1);if("color"===r){if(i=i.split(" "),n=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,o.default)(10,n))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:r,values:i,colorSpace:n}}const u=e=>{const t=l(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};function c(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 d(e){e=l(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)};let a="rgb";const u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(a+="a",u.push(t[3])),c({type:a,values:u})}function p(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(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 h(e,t){return e=l(e),t=s(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,c(e)}function f(e,t){if(e=l(e),t=s(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 c(e)}function m(e,t){if(e=l(e),t=s(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 c(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return p(e)>.5?f(e,t):m(e,t)}},7344:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(8168),o=r(8587),i=r(7868),s=r(9172),a=r(7758),l=r(8812),u=r(8280);var c=r(7266);const d={black:"#000",white:"#fff"},p={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"},h={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"},f={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"},m={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"},g={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"},v={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"},b={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"},y=["mode","contrastThreshold","tonalOffset"],x={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:d.white,default:d.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}},w={text:{primary:d.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:d.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 _(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=(0,c.a)(e.main,o):"dark"===t&&(e.dark=(0,c.e$)(e.main,i)))}function S(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:a=.2}=e,l=(0,o.A)(e,y),u=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),S=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(t),A=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),C=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),k=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(t),E=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function R(e){return(0,c.eM)(e,w.text.primary)>=r?w.text.primary:x.text.primary}const j=e=>{let{color:t,name:r,mainShade:o=500,lightShade:s=300,darkShade:l=700}=e;if(t=(0,n.A)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,i.A)(11,r?` (${r})`:"",o));if("string"!==typeof t.main)throw new Error((0,i.A)(12,r?` (${r})`:"",JSON.stringify(t.main)));return _(t,"light",s,a),_(t,"dark",l,a),t.contrastText||(t.contrastText=R(t.main)),t},O={dark:w,light:x};return(0,s.A)((0,n.A)({common:(0,n.A)({},d),mode:t,primary:j({color:u,name:"primary"}),secondary:j({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:j({color:A,name:"error"}),warning:j({color:E,name:"warning"}),info:j({color:C,name:"info"}),success:j({color:k,name:"success"}),grey:p,contrastThreshold:r,getContrastText:R,augmentColor:j,tonalOffset:a},O[t]),l)}const A=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const C={textTransform:"uppercase"},k='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){const r="function"===typeof t?t(e):t,{fontFamily:i=k,fontSize:a=14,fontWeightLight:l=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:h,pxToRem:f}=r,m=(0,o.A)(r,A);const g=a/14,v=f||(e=>e/p*g+"rem"),b=(e,t,r,o,s)=>{return(0,n.A)({fontFamily:i,fontWeight:e,fontSize:v(t),lineHeight:r},i===k?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},s,h);var a},y={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(u,48,1.167,0),h4:b(u,34,1.235,.25),h5:b(u,24,1.334,0),h6:b(c,20,1.6,.15),subtitle1:b(u,16,1.75,.15),subtitle2:b(c,14,1.57,.1),body1:b(u,16,1.5,.15),body2:b(u,14,1.43,.15),button:b(c,14,1.75,.4,C),caption:b(u,12,1.66,.4),overline:b(u,12,2.66,1,C),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.A)((0,n.A)({htmlFontSize:p,pxToRem:v,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},y),m,{clone:!1})}function R(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const j=["none",R(0,2,1,-1,0,1,1,0,0,1,3,0),R(0,3,1,-2,0,2,2,0,0,1,5,0),R(0,3,3,-2,0,3,4,0,0,1,8,0),R(0,2,4,-1,0,4,5,0,0,1,10,0),R(0,3,5,-1,0,5,8,0,0,1,14,0),R(0,3,5,-1,0,6,10,0,0,1,18,0),R(0,4,5,-2,0,7,10,1,0,2,16,1),R(0,5,5,-3,0,8,10,1,0,3,14,2),R(0,5,6,-3,0,9,12,1,0,3,16,2),R(0,6,6,-3,0,10,14,1,0,4,18,3),R(0,6,7,-4,0,11,15,1,0,4,20,3),R(0,7,8,-4,0,12,17,2,0,5,22,4),R(0,7,8,-4,0,13,19,2,0,5,24,4),R(0,7,9,-4,0,14,21,2,0,5,26,4),R(0,8,9,-5,0,15,22,2,0,6,28,5),R(0,8,10,-5,0,16,24,2,0,6,30,5),R(0,8,11,-5,0,17,26,2,0,6,32,5),R(0,9,11,-5,0,18,28,2,0,7,34,6),R(0,9,12,-6,0,19,29,2,0,7,36,6),R(0,10,13,-6,0,20,31,3,0,8,38,7),R(0,10,13,-6,0,21,33,3,0,8,40,7),R(0,10,14,-6,0,22,35,3,0,8,42,7),R(0,11,14,-7,0,23,36,3,0,9,44,8),R(0,11,15,-7,0,24,38,3,0,9,46,8)];var O=r(4318);const T={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},I=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:r={},transitions:c={},typography:d={}}=e,p=(0,o.A)(e,I);if(e.vars&&void 0===e.generateCssVars)throw new Error((0,i.A)(18));const h=S(r),f=(0,u.A)(e);let m=(0,s.A)(f,{mixins:(g=f.breakpoints,v=t,(0,n.A)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},v)),palette:h,shadows:j.slice(),typography:E(h,d),transitions:(0,O.Ay)(c),zIndex:(0,n.A)({},T)});var g,v;m=(0,s.A)(m,p);for(var b=arguments.length,y=new Array(b>1?b-1:0),x=1;x<b;x++)y[x-1]=arguments[x];return m=y.reduce(((e,t)=>(0,s.A)(e,t)),m),m.unstable_sxConfig=(0,n.A)({},a.A,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const N=P},7355:(e,t,r)=>{"use strict";const n=r(6724),{Query:o}=r(4782);e.exports=class extends o{constructor(e){super("distance_feature"),n(e)||(this._queryOpts.field=e)}field(e){return this._queryOpts.field=e,this}origin(e){return this._queryOpts.origin=e,this}pivot(e){return this._queryOpts.pivot=e,this}}},7372:(e,t,r)=>{"use strict";const n=r(7846);e.exports=class extends n{constructor(e,t){super(e,"sum",t)}}},7387:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(3662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.A)(e,t)}},7402:(e,t,r)=>{"use strict";t.MatrixStatsAggregation=r(3944)},7434:(e,t,r)=>{"use strict";const n=r(6724),{Query:o,util:{checkType:i}}=r(4782);e.exports=class extends o{constructor(e,t,r){super("boosting"),n(e)||this.positive(e),n(t)||this.negative(t),n(r)||(this._queryOpts.negative_boost=r)}positive(e){return i(e,o),this._queryOpts.positive=e,this}negative(e){return i(e,o),this._queryOpts.negative=e,this}negativeBoost(e){return this._queryOpts.negative_boost=e,this}}},7567:(e,t,r)=>{"use strict";const n=r(7846);e.exports=class extends n{constructor(e,t){super(e,"min",t)}}},7583:(e,t,r)=>{"use strict";const n=r(3650),{Query:o,util:{checkType:i,setDefault:s}}=r(4782),a=r(7090),l="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filters-aggregation.html";e.exports=class extends a{constructor(e){super(e,"filters")}field(){throw console.log(`Please refer ${l}`),new Error("field is not supported in FiltersAggregation")}script(){throw console.log(`Please refer ${l}`),new Error("script is not supported in FiltersAggregation")}_warn(e){console.warn(`[FiltersAggregation] ${e}`)}_checkNamedFilters(){!s(this._aggsDef,"filters",{})&&Array.isArray(this._aggsDef.filters)&&(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting anonymous filters."),this._aggsDef.filters={})}_checkAnonymousFilters(){s(this._aggsDef,"filters",[])||Array.isArray(this._aggsDef.filters)||(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting named filters."),this._aggsDef.filters=[])}filter(e,t){return i(t,o),this._checkNamedFilters(),this._aggsDef.filters[e]=t,this}filters(e){return i(e,Object),this._checkNamedFilters(),Object.assign(this._aggsDef.filters,e),this}anonymousFilter(e){return i(e,o),this._checkAnonymousFilters(),this._aggsDef.filters.push(e),this}anonymousFilters(e){return i(e,Array),this._checkAnonymousFilters(),this._aggsDef.filters=this._aggsDef.filters.concat(e),this}otherBucket(e,t){return this._aggsDef.other_bucket=e,!n(t)&&this.otherBucketKey(t),this}otherBucketKey(e){return this._aggsDef.other_bucket_key=e,this}}},7598:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(7868);function o(e){if("string"!==typeof e)throw new Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7600:(e,t,r)=>{"use strict";const n=r(6764);e.exports=class extends n{constructor(){super("span_within")}}},7638:(e,t,r)=>{"use strict";var n=r(2762),o=r(1523);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},7661:(e,t,r)=>{"use strict";const n=r(1463),o=r(6724),i=r(3420);e.exports=class extends i{constructor(e,t){super("span_term"),o(e)||(this._field=e),o(t)||(this._queryOpts.value=t)}field(e){return this._field=e,this}value(e){return this._queryOpts.value=e,this}toJSON(){if(!n(this._queryOpts,"value"))throw new Error("Value is required for Span term query!");const e=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:e}}}}},7690:(e,t,r)=>{"use strict";var n=r(5299);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},7716:(e,t,r)=>{"use strict";const n=r(2254);e.exports=class extends n{constructor(e,t){super(e,"extended_stats_bucket","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-extended-stats-bucket-aggregation.html",t)}sigma(e){return this._aggsDef.sigma=e,this}}},7758:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(8604),o=r(7162),i=r(3815);const s=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,r)=>n[r]?(0,i.A)(t,n[r](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var a=r(9751);function l(e){return"number"!==typeof e?e:`${e}px solid`}function u(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const c=u("border",l),d=u("borderTop",l),p=u("borderRight",l),h=u("borderBottom",l),f=u("borderLeft",l),m=u("borderColor"),g=u("borderTopColor"),v=u("borderRightColor"),b=u("borderBottomColor"),y=u("borderLeftColor"),x=u("outline",l),w=u("outlineColor"),_=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n._W)(t,e)});return(0,a.NI)(e,e.borderRadius,r)}return null};_.propTypes={},_.filterProps=["borderRadius"];s(c,d,p,h,f,m,g,v,b,y,_,x,w);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,n.MA)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n._W)(t,e)});return(0,a.NI)(e,e.gap,r)}return null};S.propTypes={},S.filterProps=["gap"];const A=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,n.MA)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n._W)(t,e)});return(0,a.NI)(e,e.columnGap,r)}return null};A.propTypes={},A.filterProps=["columnGap"];const C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,n.MA)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n._W)(t,e)});return(0,a.NI)(e,e.rowGap,r)}return null};C.propTypes={},C.filterProps=["rowGap"];s(S,A,C,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function k(e,t){return"grey"===t?t:e}s((0,o.Ay)({prop:"color",themeKey:"palette",transform:k}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:k}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:k}));function E(e){return e<=1&&0!==e?100*e+"%":e}const R=(0,o.Ay)({prop:"width",transform:E}),j=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||a.zu[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:E(t)}};return(0,a.NI)(e,e.maxWidth,t)}return null};j.filterProps=["maxWidth"];const O=(0,o.Ay)({prop:"minWidth",transform:E}),T=(0,o.Ay)({prop:"height",transform:E}),I=(0,o.Ay)({prop:"maxHeight",transform:E}),P=(0,o.Ay)({prop:"minHeight",transform:E}),N=((0,o.Ay)({prop:"size",cssProperty:"width",transform:E}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:E}),s(R,j,O,T,I,P,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_},color:{themeKey:"palette",transform:k},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:k},backgroundColor:{themeKey:"palette",transform:k},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},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:S},rowGap:{style:C},columnGap:{style:A},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:j},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},7767:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},7774:(e,t,r)=>{"use strict";const n=r(6724),{util:{checkType:o,invalidParam:i},consts:{MULTI_MATCH_TYPE:s}}=r(4782),a=r(3128),{validateRewiteMethod:l}=r(15),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html",c=i(u,"type",s),d=i(u,"operator","'and' or 'or'"),p=i(u,"behavior","'all' or 'none'");e.exports=class extends a{constructor(e,t){super("multi_match",t),this._queryOpts.fields=[],n(e)||(Array.isArray(e)?this.fields(e):this.field(e))}field(e){return this._queryOpts.fields.push(e),this}fields(e){return o(e,Array),this._queryOpts.fields=this._queryOpts.fields.concat(e),this}type(e){n(e)&&c(e);const t=e.toLowerCase();return s.has(t)||c(e),this._queryOpts.type=t,this}tieBreaker(e){return this._queryOpts.tie_breaker=e,this}operator(e){n(e)&&d(e);const t=e.toLowerCase();return"and"!==t&&"or"!==t&&d(e),this._queryOpts.operator=t,this}lenient(e){return this._queryOpts.lenient=e,this}slop(e){return this._queryOpts.slop=e,this}fuzziness(e){return this._queryOpts.fuzziness=e,this}prefixLength(e){return this._queryOpts.prefix_length=e,this}maxExpansions(e){return this._queryOpts.max_expansions=e,this}rewrite(e){return l(e,"rewrite",u),this._queryOpts.rewrite=e,this}fuzzyRewrite(e){return l(e,"fuzzy_rewrite",u),this._queryOpts.fuzzy_rewrite=e,this}zeroTermsQuery(e){n(e)&&p(e);const t=e.toLowerCase();return"all"!==t&&"none"!==t&&p(e),this._queryOpts.zero_terms_query=e,this}cutoffFrequency(e){return this._queryOpts.cutoff_frequency=e,this}}},7800:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(3145);function o(e,t){if(e){if("string"==typeof e)return(0,n.A)(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.A)(e,t):void 0}}},7846:(e,t,r)=>{"use strict";const n=r(6724),{Aggregation:o,Script:i,util:{checkType:s}}=r(4782);e.exports=class extends o{constructor(e,t,r){super(e,t),n(r)||(this._aggsDef.field=r)}field(e){return this._aggsDef.field=e,this}script(e){return s(e,i),this._aggsDef.script=e,this}missing(e){return this._aggsDef.missing=e,this}format(e){return this._aggsDef.format=e,this}}},7868:(e,t,r)=>{"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}r.d(t,{A:()=>n})},7892:(e,t,r)=>{"use strict";const n=r(6724),{GeoShape:o,IndexedShape:i,util:{checkType:s,invalidParam:a},consts:{GEO_RELATION_SET:l}}=r(4782),u=r(2668),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-query.html",d=a(c,"relation",l);e.exports=class extends u{constructor(e){super("geo_shape",e)}validationMethod(){throw console.log(`Please refer ${c}`),new Error("validationMethod is not supported in GeoShapeQuery")}shape(e){return s(e,o),this._fieldOpts.shape=e,this}indexedShape(e){return s(e,i),this._fieldOpts.indexed_shape=e,this}relation(e){n(e)&&d(e);const t=e.toUpperCase();return l.has(t)||d(e),this._fieldOpts.relation=t,this}ignoreUnmapped(e){return this._queryOpts.ignore_unmapped=e,this}}},7903:(e,t,r)=>{"use strict";var n=r(6267);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},7907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var o=t.isSafari=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},i=t.isJsons=function(e){return Array.isArray(e)&&e.every((function(e){return"object"===("undefined"===typeof e?"undefined":r(e))&&!(e instanceof Array)}))},s=t.isArrays=function(e){return Array.isArray(e)&&e.every((function(e){return Array.isArray(e)}))},a=t.jsonsHeaders=function(e){return Array.from(e.map((function(e){return Object.keys(e)})).reduce((function(e,t){return new Set([].concat(n(e),n(t)))}),[]))},l=t.jsons2arrays=function(e,t){var r=t=t||a(e),o=t;i(t)&&(r=t.map((function(e){return e.label})),o=t.map((function(e){return e.key})));var s=e.map((function(e){return o.map((function(t){return u(t,e)}))}));return[r].concat(n(s))},u=t.getHeaderValue=function(e,t){var r=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce((function(e,t,r,n){var o=e[t];if(void 0!==o&&null!==o)return o;n.splice(1)}),t);return void 0===r?e in t?t[e]:"":r},c=t.elementOrEmpty=function(e){return"undefined"===typeof e||null===e?"":e},d=t.joiner=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'"';return e.filter((function(e){return e})).map((function(e){return e.map((function(e){return c(e)})).map((function(e){return""+r+e+r})).join(t)})).join("\n")},p=t.arrays2csv=function(e,t,r,o){return d(t?[t].concat(n(e)):e,r,o)},h=t.jsons2csv=function(e,t,r,n){return d(l(e,t),r,n)},f=t.string2csv=function(e,t,r,n){return t?t.join(r)+"\n"+e:e.replace(/"/g,'""')},m=t.toCSV=function(e,t,r,n){if(i(e))return h(e,t,r,n);if(s(e))return p(e,t,r,n);if("string"===typeof e)return f(e,t,r);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')};t.buildURI=function(e,t,r,n,i){var s=m(e,r,n,i),a=o()?"application/csv":"text/csv",l=new Blob([t?"\ufeff":"",s],{type:a}),u="data:"+a+";charset=utf-8,"+(t?"\ufeff":"")+s,c=window.URL||window.webkitURL;return"undefined"===typeof c.createObjectURL?u:c.createObjectURL(l)}},7918:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(7598)},7950:(e,t,r)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(2730)},8022:(e,t,r)=>{"use strict";const n=r(2254);e.exports=class extends n{constructor(e,t){super(e,"bucket_script","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html",t)}script(e){return this._aggsDef.script=e,this}}},8052:(e,t,r)=>{"use strict";var n=r(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r=m,rootShouldForwardProp:n=f,slotShouldForwardProp:l=f}=e,c=e=>(0,u.default)((0,o.default)({},e,{theme:v((0,o.default)({},e,{defaultTheme:r,themeId:t}))}));return c.__mui_systemSx=!0,function(e){let u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:m,skipSx:x,overridesResolver:w=b(g(h))}=u,_=(0,i.default)(u,p),S=void 0!==m?m:h&&"Root"!==h&&"root"!==h||!1,A=x||!1;let C=f;"Root"===h||"root"===h?C=n:h?C=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const k=(0,s.default)(e,(0,o.default)({shouldForwardProp:C,label:undefined},_)),E=e=>"function"===typeof e&&e.__emotion_real!==e||(0,a.isPlainObject)(e)?n=>y(e,(0,o.default)({},n,{theme:v({theme:n.theme,defaultTheme:r,themeId:t})})):e,R=function(n){let i=E(n);for(var s=arguments.length,a=new Array(s>1?s-1:0),l=1;l<s;l++)a[l-1]=arguments[l];const u=a?a.map(E):[];d&&w&&u.push((e=>{const n=v((0,o.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[d]||!n.components[d].styleOverrides)return null;const i=n.components[d].styleOverrides,s={};return Object.entries(i).forEach((t=>{let[r,i]=t;s[r]=y(i,(0,o.default)({},e,{theme:n}))})),w(e,s)})),d&&!S&&u.push((e=>{var n;const i=v((0,o.default)({},e,{defaultTheme:r,themeId:t}));return y({variants:null==i||null==(n=i.components)||null==(n=n[d])?void 0:n.variants},(0,o.default)({},e,{theme:i}))})),A||u.push(c);const p=u.length-a.length;if(Array.isArray(n)&&p>0){const e=new Array(p).fill("");i=[...n,...e],i.raw=[...n.raw,...e]}const h=k(i,...u);return e.muiName&&(h.muiName=e.muiName),h};return k.withConfig&&(R.withConfig=k.withConfig),R}};var o=n(r(4634)),i=n(r(4893)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(3174)),a=r(9482),l=(n(r(7918)),n(r(3382)),n(r(4989))),u=n(r(3234));const c=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:r,themeId:n}=e;return o=r,0===Object.keys(o).length?t:r[n]||r;var o}function b(e){return e?(t,r)=>r[e]:null}function y(e,t){let{ownerState:r}=t,n=(0,i.default)(t,c);const s="function"===typeof e?e((0,o.default)({ownerState:r},n)):e;if(Array.isArray(s))return s.flatMap((e=>y(e,(0,o.default)({ownerState:r},n))));if(s&&"object"===typeof s&&Array.isArray(s.variants)){const{variants:e=[]}=s;let t=(0,i.default)(s,d);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.default)({ownerState:r},n,r)):e.style))})),t}return s}},8086:(e,t,r)=>{"use strict";const{Query:n,util:{checkType:o,setDefault:i}}=r(4782);e.exports=class extends n{constructor(){super("dis_max")}_addQuery(e){o(e,n),this._queryOpts.queries.push(e)}tieBreaker(e){return this._queryOpts.tie_breaker=e,this}queries(e){return i(this._queryOpts,"queries",[]),Array.isArray(e)?e.forEach((e=>this._addQuery(e))):this._addQuery(e),this}}},8122:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(8168),o=r(8587),i=r(5043),s=r(9292),a=r(8610),l=r(6803),u=r(6431),c=r(4535),d=r(2532),p=r(2372);function h(e){return(0,p.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=r(579);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,c.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${(0,l.A)(r.color)}`],t[`fontSize${(0,l.A)(r.fontSize)}`]]}})((e=>{let{theme:t,ownerState:r}=e;var n,o,i,s,a,l,u,c,d,p,h,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:r.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(o=n.create)?void 0:o.call(n,"fill",{duration:null==(i=t.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(s=t.typography)||null==(a=s.pxToRem)?void 0:a.call(s,20))||"1.25rem",medium:(null==(l=t.typography)||null==(u=l.pxToRem)?void 0:u.call(l,24))||"1.5rem",large:(null==(c=t.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[r.fontSize],color:null!=(p=null==(h=(t.vars||t).palette)||null==(h=h[r.color])?void 0:h.main)?p:{action:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[r.color]}})),v=i.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiSvgIcon"}),{children:c,className:d,color:p="inherit",component:v="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:x=!1,titleAccess:w,viewBox:_="0 0 24 24"}=r,S=(0,o.A)(r,m),A=i.isValidElement(c)&&"svg"===c.type,C=(0,n.A)({},r,{color:p,component:v,fontSize:b,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:_,hasSvgAsChild:A}),k={};x||(k.viewBox=_);const E=(e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root","inherit"!==t&&`color${(0,l.A)(t)}`,`fontSize${(0,l.A)(r)}`]};return(0,a.A)(o,h,n)})(C);return(0,f.jsxs)(g,(0,n.A)({as:v,className:(0,s.A)(E.root,d),focusable:"false",color:y,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},k,S,A&&c.props,{ownerState:C,children:[A?c.props.children:c,w?(0,f.jsx)("title",{children:w}):null]}))}));v.muiName="SvgIcon";const b=v},8125:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},8153:(e,t,r)=>{"use strict";const n=r(1463),o=r(6724),i=r(3650),s=r(5286),a=r(440),l=r(2695),u=r(1571),c=r(4092),d=r(4894),p=r(4161),h=r(6599),{checkType:f,setDefault:m,recursiveToJSON:g}=r(2960),v=r(1127);function b(e){return Object.assign({},...g(e))}e.exports=class{constructor(){this._body={},this._knn=[],this._aggs=[],this._suggests=[],this._suggestText=null}query(e){return f(e,s),this._body.query=e,this}kNN(e){return(Array.isArray(e)?e:[e]).forEach((e=>{f(e,h),this._knn.push(e)})),this}agg(e){return this.aggregation(e)}aggregation(e){return f(e,a),this._aggs.push(e),this}aggs(e){return this.aggregations(e)}aggregations(e){return f(e,Array),e.forEach((e=>this.aggregation(e))),this}suggest(e){return f(e,l),this._suggests.push(e),this}suggestText(e){return this._suggestText=e,this}timeout(e){return this._body.timeout=e,this}from(e){return this._body.from=e,this}size(e){return this._body.size=e,this}terminateAfter(e){return this._body.terminate_after=e,this}sort(e){return f(e,c),m(this._body,"sort",[]),this._body.sort.push(e),this}sorts(e){return e.forEach((e=>this.sort(e))),this}trackScores(e){return this._body.track_scores=e,this}trackTotalHits(e){return this._body.track_total_hits=e,this}source(e){return this._body._source=e,this}storedFields(e){return this._body.stored_fields=e,this}runtimeMapping(e,t){return f(t,v),m(this._body,"runtime_mappings",{}),this._body.runtime_mappings[e]=t,this}runtimeMappings(e){return f(e,Object),Object.keys(e).forEach((t=>this.runtimeMapping(t,e[t]))),this}scriptField(e,t){return m(this._body,"script_fields",{}),this._body.script_fields[e]={script:t},this}scriptFields(e){return f(e,Object),Object.keys(e).forEach((t=>this.scriptField(t,e[t]))),this}docvalueFields(e){return this._body.docvalue_fields=e,this}postFilter(e){return f(e,s),this._body.post_filter=e,this}highlight(e){return f(e,d),this._body.highlight=e,this}rescore(e){return f(e,u),n(this._body,"rescore")?(Array.isArray(this._body.rescore)||(this._body.rescore=[this._body.rescore]),this._body.rescore.push(e)):this._body.rescore=e,this}explain(e){return this._body.explain=e,this}version(e){return this._body.version=e,this}indexBoost(e,t){return this.indicesBoost(e,t)}indicesBoost(e,t){return m(this._body,"indices_boost",[]),this._body.indices_boost.push({[e]:t}),this}minScore(e){return this._body.min_score=e,this}collapse(e,t,r){const n=this._body.collapse={field:e};return o(t)||(f(t,p),n.inner_hits=t,n.max_concurrent_group_searches=r),this}searchAfter(e){return this._body.search_after=e,this}toJSON(){const e=g(this._body);return i(this._knn)||(e.knn=1==this._knn.length?b(this._knn):this._knn.map((e=>g(e)))),i(this._aggs)||(e.aggs=b(this._aggs)),i(this._suggests)&&o(this._suggestText)||(e.suggest=b(this._suggests),o(this._suggestText)||(e.suggest.text=this._suggestText)),e}}},8164:(e,t,r)=>{"use strict";const n=r(6724),{util:{checkType:o}}=r(4782),i=r(7846);e.exports=class extends i{constructor(e,t,r){super(e,"percentile_ranks",t),n(r)||this.values(r)}format(){throw console.log("Please refer https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-rank-aggregation.html"),new Error("format is not supported in PercentileRanksAggregation")}keyed(e){return this._aggsDef.keyed=e,this}values(e){return o(e,Array),this._aggsDef.values=e,this}tdigest(e){return this._aggsDef.tdigest={compression:e},this}compression(e){return this.tdigest(e)}hdr(e){return this._aggsDef.hdr={number_of_significant_value_digits:e},this}}},8168:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:()=>n})},8257:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},8280:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(8168),o=r(8587),i=r(9172),s=r(4853);const a={borderRadius:4};var l=r(8604);var u=r(8812),c=r(7758),d=r(9703);const p=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:r={},spacing:h,shape:f={}}=e,m=(0,o.A)(e,p),g=(0,s.A)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0===r.length?[1]:r).map((e=>{const r=t(e);return"number"===typeof r?`${r}px`:r})).join(" ")};return r.mui=!0,r}(h);let b=(0,i.A)({breakpoints:g,direction:"ltr",components:{},palette:(0,n.A)({mode:"light"},r),spacing:v,shape:(0,n.A)({},a,f)},m);b.applyStyles=d.A;for(var y=arguments.length,x=new Array(y>1?y-1:0),w=1;w<y;w++)x[w-1]=arguments[w];return b=x.reduce(((e,t)=>(0,i.A)(e,t)),b),b.unstable_sxConfig=(0,n.A)({},c.A,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(e){return(0,u.A)({sx:e,theme:this})},b}},8287:(e,t,r)=>{"use strict";t.AnalyzedSuggesterBase=r(5129),t.TermSuggester=r(2965),t.DirectGenerator=r(2862),t.PhraseSuggester=r(314),t.CompletionSuggester=r(5905)},8291:(e,t,r)=>{"use strict";t.MoreLikeThisQuery=r(1529),t.ScriptQuery=r(3960),t.ScriptScoreQuery=r(9755),t.PercolateQuery=r(2152),t.DistanceFeatureQuery=r(7355),t.RankFeatureQuery=r(6862)},8296:(e,t,r)=>{"use strict";const n=r(2254);e.exports=class extends n{constructor(e,t){super(e,"stats_bucket","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-stats-bucket-aggregation.html",t)}}},8299:(e,t,r)=>{"use strict";const n=r(7090),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-children-aggregation.html";e.exports=class extends n{constructor(e){super(e,"children")}field(){throw console.log(`Please refer ${o}`),new Error("field is not supported in ChildrenAggregation")}script(){throw console.log(`Please refer ${o}`),new Error("script is not supported in ChildrenAggregation")}type(e){return this._aggsDef.type=e,this}}},8417:(e,t,r)=>{"use strict";const{Query:n,Script:o,util:{checkType:i}}=r(4782),s=r(5725);e.exports=class extends s{jlh(){return this._aggsDef.jlh={},this}mutualInformation(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._aggsDef.mutual_information={include_negatives:e,background_is_superset:t},this}chiSquare(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._aggsDef.chi_square={include_negatives:e,background_is_superset:t},this}gnd(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._aggsDef.gnd={background_is_superset:e},this}percentage(){return this._aggsDef.percentage={},this}scriptHeuristic(e){return i(e,o),this._aggsDef.script_heuristic={script:e},this}backgroundFilter(e){return i(e,n),this._aggsDef.background_filter=e,this}script(){throw console.log(`Please refer ${this._refUrl}`),new Error(`script is not supported in ${this.constructor.name}`)}}},8476:(e,t,r)=>{"use strict";const n=r(589);e.exports=class extends n{constructor(e,t,r,n){super(e,r,n),this._refUrl=t}minimumShouldMatch(){throw console.log(`Please refer ${this._refUrl}`),new Error(`minimumShouldMatch is not supported in ${this.constructor.name}`)}slop(e){return this._queryOpts.slop=e,this}}},8497:(e,t,r)=>{"use strict";const n=r(6724),{util:{invalidParam:o,recursiveToJSON:i}}=r(4782),s=r(5476),a=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay","mode","'linear', 'exp' or 'gauss'");e.exports=class extends s{constructor(){let e=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"gauss"),n(e)||(this._field=e)}mode(e){n(e)&&a(e);const t=e.toLowerCase();return"linear"!==t&&"exp"!==t&&"gauss"!==t&&a(e),this._name=e,this}linear(){return this._name="linear",this}exp(){return this._name="exp",this}gauss(){return this._name="gauss",this}field(e){return this._field=e,this}origin(e){return this._opts.origin=e,this}scale(e){return this._opts.scale=e,this}offset(e){return this._opts.offset=e,this}decay(e){return this._opts.decay=e,this}toJSON(){const e=Object.assign({[this._name]:{[this._field]:this._opts}},this._body);return i(e)}}},8543:(e,t,r)=>{"use strict";const n=r(2295),{validateRewiteMethod:o}=r(15);e.exports=class extends n{constructor(e,t){super("prefix",e,t)}rewrite(e){return o(e,"rewrite","https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html"),this._queryOpts.rewrite=e,this}}},8553:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(8168),o=r(45),i=r(5043),s=r(219),a=r.n(s),l=r(617),u=r(4534),c=r(9484);const d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var s=t.defaultTheme,d=t.withTheme,p=void 0!==d&&d,h=t.name,f=(0,o.A)(t,["defaultTheme","withTheme","name"]);var m=h,g=(0,l.A)(e,(0,n.A)({defaultTheme:s,Component:r,name:h||r.displayName,classNamePrefix:m},f)),v=i.forwardRef((function(e,t){e.classes;var a,l=e.innerRef,d=(0,o.A)(e,["classes","innerRef"]),f=g((0,n.A)({},r.defaultProps,e)),m=d;return("string"===typeof h||p)&&(a=(0,c.A)()||s,h&&(m=(0,u.A)({theme:a,name:h,props:d})),p&&!m.theme&&(m.theme=a)),i.createElement(r,(0,n.A)({ref:l||t,classes:f},m))}));return a()(v,r),v}};var p=r(8659);const h=function(e,t){return d(e,(0,n.A)({defaultTheme:p.A},t))}},8565:(e,t,r)=>{"use strict";function n(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."}r.d(t,{A:()=>n})},8569:(e,t,r)=>{"use strict";const n=r(2295);e.exports=class extends n{constructor(e,t){super("fuzzy",e,t)}fuzziness(e){return this._queryOpts.fuzziness=e,this}prefixLength(e){return this._queryOpts.prefix_length=e,this}maxExpansions(e){return this._queryOpts.max_expansions=e,this}transpositions(e){return this._queryOpts.transpositions=e,this}}},8587:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},8588:(e,t,r)=>{"use strict";t.MetricsAggregationBase=r(7846),t.AvgAggregation=r(4731),t.CardinalityAggregation=r(4455),t.ExtendedStatsAggregation=r(9890),t.GeoBoundsAggregation=r(4484),t.GeoCentroidAggregation=r(4913),t.MaxAggregation=r(9461),t.MinAggregation=r(7567),t.PercentilesAggregation=r(1599),t.PercentileRanksAggregation=r(8164),t.ScriptedMetricAggregation=r(1478),t.StatsAggregation=r(3912),t.SumAggregation=r(7372),t.TopHitsAggregation=r(4617),t.ValueCountAggregation=r(1888),t.WeightedAverageAggregation=r(1250)},8604:(e,t,r)=>{"use strict";r.d(t,{LX:()=>f,MA:()=>h,_W:()=>m,Lc:()=>b,Ms:()=>y});var n=r(9751),o=r(7162),i=r(3815);const s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,r]=e.split(""),n=s[t],o=a[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...c,...d];function h(e,t,r,n){var i;const s=null!=(i=(0,o.Yn)(e,t,!1))?i:r;return"number"===typeof s?e=>"string"===typeof e?e:s*e:Array.isArray(s)?e=>"string"===typeof e?e:s[e]:"function"===typeof s?s:()=>{}}function f(e){return h(e,"spacing",8)}function m(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 g(e,t,r,o){if(-1===t.indexOf(r))return null;const i=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=m(t,r),e)),{})}(u(r),o),s=e[r];return(0,n.NI)(e,s,i)}function v(e,t){const r=f(e.theme);return Object.keys(e).map((n=>g(e,t,n,r))).reduce(i.A,{})}function b(e){return v(e,c)}function y(e){return v(e,d)}function x(e){return v(e,p)}b.propTypes={},b.filterProps=c,y.propTypes={},y.filterProps=d,x.propTypes={},x.filterProps=p},8610:(e,t,r)=>{"use strict";function n(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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}r.d(t,{A:()=>n})},8659:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(45),o=r(3806),i=r(8168),s=["xs","sm","md","lg","xl"];var a=r(4467);function l(e,t,r){var n;return(0,i.A)({gutters:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n      paddingLeft: theme.spacing(2),\n      paddingRight: theme.spacing(2),\n      [theme.breakpoints.up('sm')]: {\n        paddingLeft: theme.spacing(3),\n        paddingRight: theme.spacing(3),\n      },\n      "].join("\n")),(0,i.A)({paddingLeft:t(2),paddingRight:t(2)},r,(0,a.A)({},e.up("sm"),(0,i.A)({paddingLeft:t(3),paddingRight:t(3)},r[e.up("sm")])))},toolbar:(n={minHeight:56},(0,a.A)(n,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,a.A)(n,e.up("sm"),{minHeight:64}),n)},r)}var u=r(8565);const c={black:"#000",white:"#fff"};const d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const f={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"};const m={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"};const g={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"};const v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var b=r(2454),y={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:c.white,default:d[50]},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}},x={text:{primary:c.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:c.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 w(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,b.a)(e.main,o):"dark"===t&&(e.dark=(0,b.e$)(e.main,i)))}function _(e){return Math.round(1e5*e)/1e5}function S(e){return _(e)}var A={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){var r="function"===typeof t?t(e):t,s=r.fontFamily,a=void 0===s?C:s,l=r.fontSize,u=void 0===l?14:l,c=r.fontWeightLight,d=void 0===c?300:c,p=r.fontWeightRegular,h=void 0===p?400:p,f=r.fontWeightMedium,m=void 0===f?500:f,g=r.fontWeightBold,v=void 0===g?700:g,b=r.htmlFontSize,y=void 0===b?16:b,x=r.allVariants,w=r.pxToRem,k=(0,n.A)(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var E=u/14,R=w||function(e){return"".concat(e/y*E,"rem")},j=function(e,t,r,n,o){return(0,i.A)({fontFamily:a,fontWeight:e,fontSize:R(t),lineHeight:r},a===C?{letterSpacing:"".concat(_(n/t),"em")}:{},o,x)},O={h1:j(d,96,1.167,-1.5),h2:j(d,60,1.2,-.5),h3:j(h,48,1.167,0),h4:j(h,34,1.235,.25),h5:j(h,24,1.334,0),h6:j(m,20,1.6,.15),subtitle1:j(h,16,1.75,.15),subtitle2:j(m,14,1.57,.1),body1:j(h,16,1.5,.15),body2:j(h,14,1.43,.15),button:j(m,14,1.75,.4,A),caption:j(h,12,1.66,.4),overline:j(h,12,2.66,1,A)};return(0,o.A)((0,i.A)({htmlFontSize:y,pxToRem:R,round:S,fontFamily:a,fontSize:u,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:m,fontWeightBold:v},O),k,{clone:!1})}function E(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const R=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)];const j={borderRadius:4};var O=r(5995);var T=r(2899),I=r(5321);function P(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,r=void 0===t?{}:t,a=e.mixins,_=void 0===a?{}:a,S=e.palette,A=void 0===S?{}:S,C=e.spacing,E=e.typography,P=void 0===E?{}:E,N=(0,n.A)(e,["breakpoints","mixins","palette","spacing","typography"]),M=function(e){var t=e.primary,r=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,s=e.secondary,a=void 0===s?{light:h.A200,main:h.A400,dark:h.A700}:s,l=e.error,_=void 0===l?{light:f[300],main:f[500],dark:f[700]}:l,S=e.warning,A=void 0===S?{light:m[300],main:m[500],dark:m[700]}:S,C=e.info,k=void 0===C?{light:g[300],main:g[500],dark:g[700]}:C,E=e.success,R=void 0===E?{light:v[300],main:v[500],dark:v[700]}:E,j=e.type,O=void 0===j?"light":j,T=e.contrastThreshold,I=void 0===T?3:T,P=e.tonalOffset,N=void 0===P?.2:P,M=(0,n.A)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return(0,b.eM)(e,x.text.primary)>=I?x.text.primary:y.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,i.A)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,u.A)(4,t));if("string"!==typeof e.main)throw new Error((0,u.A)(5,JSON.stringify(e.main)));return w(e,"light",r,N),w(e,"dark",n,N),e.contrastText||(e.contrastText=D(e.main)),e},F={dark:x,light:y};return(0,o.A)((0,i.A)({common:c,type:O,primary:L(r),secondary:L(a,"A400","A200","A700"),error:L(_),warning:L(A),info:L(k),success:L(R),grey:d,contrastThreshold:I,getContrastText:D,augmentColor:L,tonalOffset:N},F[O]),M)}(A),D=function(e){var t=e.values,r=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,a=void 0===o?"px":o,l=e.step,u=void 0===l?5:l,c=(0,n.A)(e,["values","unit","step"]);function d(e){var t="number"===typeof r[e]?r[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function p(e,t){var n=s.indexOf(t);return n===s.length-1?d(e):"@media (min-width:".concat("number"===typeof r[e]?r[e]:e).concat(a,") and ")+"(max-width:".concat((-1!==n&&"number"===typeof r[s[n+1]]?r[s[n+1]]:t)-u/100).concat(a,")")}return(0,i.A)({keys:s,values:r,up:d,down:function(e){var t=s.indexOf(e)+1,n=r[s[t]];return t===s.length?d("xs"):"@media (max-width:".concat(("number"===typeof n&&t>0?n:e)-u/100).concat(a,")")},between:p,only:function(e){return p(e,e)},width:function(e){return r[e]}},c)}(r),L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,O.L)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return 0===r.length?t(1):1===r.length?t(r[0]):r.map((function(e){if("string"===typeof e)return e;var r=t(e);return"number"===typeof r?"".concat(r,"px"):r})).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return e}}),r.mui=!0,r}(C),F=(0,o.A)({breakpoints:D,direction:"ltr",mixins:l(D,L,_),overrides:{},palette:M,props:{},shadows:R,typography:k(M,P),spacing:L,shape:j,transitions:T.Ay,zIndex:I.A},N),z=arguments.length,B=new Array(z>1?z-1:0),$=1;$<z;$++)B[$-1]=arguments[$];return F=B.reduce((function(e,t){return(0,o.A)(e,t)}),F)}const N=P()},8698:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(8168),o=r(8587),i=r(9172),s=r(7758);const a=["sx"],l=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:s.A;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function u(e){const{sx:t}=e,r=(0,o.A)(e,a),{systemProps:s,otherProps:u}=l(r);let c;return c=Array.isArray(t)?[s,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,i.Q)(e)?(0,n.A)({},s,e):s}:(0,n.A)({},s,t),(0,n.A)({},u,{sx:c})}},8738:e=>{"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},8804:(e,t,r)=>{"use strict";const n=r(6724),{Query:o,util:{checkType:i,invalidParam:s},consts:{SCORE_MODE_SET:a,BOOST_MODE_SET:l}}=r(4782),{ScoreFunction:u}=r(6561),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html",d=s(c,"score_mode",a),p=s(c,"boost_mode",l);e.exports=class extends o{constructor(){super("function_score"),this._queryOpts.functions=[]}query(e){return i(e,o),this._queryOpts.query=e,this}scoreMode(e){n(e)&&d(e);const t=e.toLowerCase();return a.has(t)||d(e),this._queryOpts.score_mode=e,this}boostMode(e){n(e)&&p(e);const t=e.toLowerCase();return l.has(t)||p(e),this._queryOpts.boost_mode=t,this}maxBoost(e){return this._queryOpts.max_boost=e,this}minScore(e){return this._queryOpts.min_score=e,this}function(e){return i(e,u),this._queryOpts.functions.push(e),this}functions(e){return i(e,Array),e.forEach((e=>this.function(e))),this}}},8812:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,k:()=>l});var n=r(7598),o=r(3815),i=r(7162),s=r(9751),a=r(7758);function l(){function e(e,t,r,o){const a={[e]:t,theme:r},l=o[e];if(!l)return{[e]:t};const{cssProperty:u=e,themeKey:c,transform:d,style:p}=l;if(null==t)return null;if("typography"===c&&"inherit"===t)return{[e]:t};const h=(0,i.Yn)(r,c)||{};if(p)return p(a);return(0,s.NI)(a,t,(t=>{let r=(0,i.BO)(h,d,t);return t===r&&"string"===typeof t&&(r=(0,i.BO)(h,d,`${e}${"default"===t?"":(0,n.A)(t)}`,t)),!1===u?r:{[u]:r}}))}return function t(r){var n;const{sx:i,theme:l={}}=r||{};if(!i)return null;const u=null!=(n=l.unstable_sxConfig)?n:a.A;function c(r){let n=r;if("function"===typeof r)n=r(l);else if("object"!==typeof r)return r;if(!n)return null;const i=(0,s.EU)(l.breakpoints),a=Object.keys(i);let c=i;return Object.keys(n).forEach((r=>{const i=(a=n[r],d=l,"function"===typeof a?a(d):a);var a,d;if(null!==i&&void 0!==i)if("object"===typeof i)if(u[r])c=(0,o.A)(c,e(r,i,l,u));else{const e=(0,s.NI)({theme:l},i,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(n);return t.every((e=>o.size===Object.keys(e).length))}(e,i)?c=(0,o.A)(c,e):c[r]=t({sx:i,theme:l})}else c=(0,o.A)(c,e(r,i,l,u))})),(0,s.vf)(a,c)}return Array.isArray(i)?i.map(c):c(i)}}const u=l();u.filterProps=["sx"];const c=u},8853:(e,t,r)=>{"use strict";e.exports=r(7234)},8879:(e,t,r)=>{"use strict";const n=r(6724),{Query:o,util:{checkType:i}}=r(4782);e.exports=class extends o{constructor(e,t){super("terms_set"),this._queryOpts.terms=[],n(e)||(this._field=e),n(t)||(Array.isArray(t)?this.terms(t):this.term(t))}field(e){return this._field=e,this}term(e){return this._queryOpts.terms.push(e),this}terms(e){return i(e,Array),this._queryOpts.terms=this._queryOpts.terms.concat(e),this}minimumShouldMatchField(e){return this._queryOpts.minimum_should_match_field=e,this}minimumShouldMatchScript(e){return this._queryOpts.minimum_should_match_script=e,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},8928:(e,t,r)=>{"use strict";t.MultiTermQueryBase=r(2295),t.TermQuery=r(1109),t.TermsQuery=r(1138),t.TermsSetQuery=r(8879),t.RangeQuery=r(5448),t.ExistsQuery=r(3),t.PrefixQuery=r(8543),t.WildcardQuery=r(1621),t.RegexpQuery=r(5814),t.FuzzyQuery=r(8569),t.TypeQuery=r(979),t.IdsQuery=r(1295)},8938:(e,t,r)=>{"use strict";var n=r(6267),o=r(6735),i=r(6664),s=r(4395),a=r(6438),l=r(2478),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var c=[s,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(i),o=Promise.resolve(e);c.length;)o=o.then(c.shift(),c.shift());return o}for(var d=e;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(f){h(f);break}}try{o=s(d)}catch(f){return Promise.reject(f)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},c.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}})),e.exports=c},9032:(e,t,r)=>{"use strict";const n=r(8476);e.exports=class extends n{constructor(e,t){super("match_phrase","https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase.html",e,t)}}},9051:(e,t,r)=>{"use strict";const n=r(1463),o=r(1951),i=r(484),{Query:s,util:{checkType:a,setDefault:l,recursiveToJSON:u}}=r(4782);e.exports=class extends s{constructor(){super("bool")}_addQuery(e,t){a(t,s),this._queryOpts[e].push(t)}_addQueries(e,t){l(this._queryOpts,e,[]),Array.isArray(t)?t.forEach((t=>this._addQuery(e,t))):this._addQuery(e,t)}must(e){return this._addQueries("must",e),this}filter(e){return this._addQueries("filter",e),this}mustNot(e){return this._addQueries("must_not",e),this}should(e){return this._addQueries("should",e),this}disableCoord(e){return this._queryOpts.disable_coord=e,this}minimumShouldMatch(e){return this._queryOpts.minimum_should_match=e,this}adjustPureNegative(e){return this._queryOpts.adjust_pure_negative=e,this}toJSON(){const e=["must","filter","must_not","should"],t=e.filter((e=>n(this._queryOpts,e))).reduce(((e,t)=>{const r=this._queryOpts[t];return e[t]=u(1===r.length?o(r):r),e}),i(this._queryOpts,e));return{[this.queryType]:t}}}},9062:(e,t,r)=>{"use strict";const n=r(6724),{util:{invalidParam:o}}=r(4782),i=r(589),{validateRewiteMethod:s}=r(15),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html",l=o(a,"operator","'and' or 'or'"),u=o(a,"zero_terms_query","'all' or 'none'");e.exports=class extends i{constructor(e,t){super("match",e,t)}operator(e){n(e)&&l(e);const t=e.toLowerCase();return"and"!==t&&"or"!==t&&l(e),this._queryOpts.operator=t,this}lenient(e){return this._queryOpts.lenient=e,this}fuzziness(e){return this._queryOpts.fuzziness=e,this}prefixLength(e){return this._queryOpts.prefix_length=e,this}maxExpansions(e){return this._queryOpts.max_expansions=e,this}rewrite(e){return s(e,"rewrite",a),this._queryOpts.rewrite=e,this}fuzzyRewrite(e){return s(e,"fuzzy_rewrite",a),this._queryOpts.fuzzy_rewrite=e,this}fuzzyTranspositions(e){return this._queryOpts.fuzzy_transpositions=e,this}zeroTermsQuery(e){n(e)&&u(e);const t=e.toLowerCase();return"all"!==t&&"none"!==t&&u(e),this._queryOpts.zero_terms_query=t,this}cutoffFrequency(e){return this._queryOpts.cutoff_frequency=e,this}}},9136:(e,t,r)=>{"use strict";t.scoreFunctions=r(6561),t.ConstantScoreQuery=r(9776),t.BoolQuery=r(9051),t.DisMaxQuery=r(8086),t.FunctionScoreQuery=r(8804),t.BoostingQuery=r(7434)},9172:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,Q:()=>i});var n=r(8168),o=r(5043);function i(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function s(e){if(o.isValidElement(e)||!i(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=s(e[r])})),t}function a(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const l=r.clone?(0,n.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((n=>{o.isValidElement(t[n])?l[n]=t[n]:i(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&i(e[n])?l[n]=a(e[n],t[n],r):r.clone?l[n]=i(t[n])?s(t[n]):t[n]:l[n]=t[n]})),l}},9189:(e,t,r)=>{"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,{A:()=>n})},9265:(e,t,r)=>{"use strict";const{util:{checkType:n}}=r(4782),o=r(2254);e.exports=class extends o{constructor(e,t){super(e,"percentiles_bucket","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-percentiles-bucket-aggregation.html",t)}percents(e){return n(e,Array),this._aggsDef.percents=e,this}}},9267:(e,t,r)=>{"use strict";const n=r(6724),o=r(2692),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-query.html";e.exports=class extends o{constructor(e,t){super("has_parent",i,e),n(t)||(this._queryOpts.parent_type=t)}scoreMode(){throw console.log("`score_mode` is deprecated. Use `score` instead"),console.log(`Please refer ${i}`),new Error("scoreMode is not supported in HasParentQuery")}type(e){return this.parentType(e)}parentType(e){return this._queryOpts.parent_type=e,this}score(e){return this._queryOpts.score=e,this}}},9275:(e,t,r)=>{"use strict";const n=r(6764);e.exports=class extends n{constructor(){super("span_containing")}}},9292:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}r.d(t,{A:()=>o});const o=function(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}},9303:(e,t,r)=>{"use strict";r.d(t,{E:()=>s,A:()=>a});var n=r(5043);const o={};const i=[];class s{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new s}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function a(){const e=function(e,t){const r=n.useRef(o);return r.current===o&&(r.current=e(t)),r}(s.create).current;var t;return t=e.disposeEffect,n.useEffect(t,i),e}},9369:(e,t,r)=>{"use strict";r.d(t,{C:()=>u,E:()=>g,T:()=>d,c:()=>f,h:()=>p,w:()=>c});var n=r(5043),o=r(3803),i=r(1722),s=r(6598),a=r(9436),l=n.createContext("undefined"!==typeof HTMLElement?(0,o.A)({key:"css"}):null),u=l.Provider,c=function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(l);return e(t,o,r)}))},d=n.createContext({});var p={}.hasOwnProperty,h="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var r={};for(var n in t)p.call(t,n)&&(r[n]=t[n]);return r[h]=e,r},m=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,i.SF)(t,r,n),(0,a.s)((function(){return(0,i.sk)(t,r,n)})),null},g=c((function(e,t,r){var o=e.css;"string"===typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[h],l=[o],u="";"string"===typeof e.className?u=(0,i.Rk)(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var c=(0,s.J)(l,void 0,n.useContext(d));u+=t.key+"-"+c.name;var f={};for(var g in e)p.call(e,g)&&"css"!==g&&g!==h&&(f[g]=e[g]);return f.className=u,r&&(f.ref=r),n.createElement(n.Fragment,null,n.createElement(m,{cache:t,serialized:c,isStringTag:"string"===typeof a}),n.createElement(a,f))}))},9386:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n=e=>e,o=(()=>{let e=n;return{configure(t){e=t},generate:t=>e(t),reset(){e=n}}})()},9417:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>n})},9436:(e,t,r)=>{"use strict";var n;r.d(t,{i:()=>a,s:()=>s});var o=r(5043),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,s=i||function(e){return e()},a=i||o.useLayoutEffect},9461:(e,t,r)=>{"use strict";const n=r(7846);e.exports=class extends n{constructor(e,t){super(e,"max",t)}}},9478:e=>{"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},9482:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,isPlainObject:()=>n.Q});var n=r(9172)},9484:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5043);const o=n.createContext(null);function i(){return n.useContext(o)}},9589:(e,t,r)=>{"use strict";const n=r(6724),{util:{invalidParam:o},consts:{EXECUTION_HINT_SET:i}}=r(4782),s=r(7090),a=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-diversified-sampler-aggregation.html","execution_hint",i);e.exports=class extends s{constructor(e,t){super(e,"diversified_sampler",t)}shardSize(e){return this._aggsDef.shard_size=e,this}maxDocsPerValue(e){return this._aggsDef.max_docs_per_value=e,this}executionHint(e){n(e)&&a(e);const t=e.toLowerCase();return i.has(t)||a(e),this._aggsDef.execution_hint=t,this}}},9628:(e,t,r)=>{"use strict";const n=r(6878),o=r(6724),{checkType:i}=r(2960);e.exports=class{constructor(){this._point=null}_warn(e){console.warn(`[GeoPoint] ${e}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkObjRepr(){o(this._point)?this._point={}:n(this._point)||(this._warnMixedRepr(),this._point={})}lat(e){return this._checkObjRepr(),this._point.lat=e,this}lon(e){return this._checkObjRepr(),this._point.lon=e,this}object(e){return i(e,Object),!o(this._point)&&this._warnMixedRepr(),this._point=e,this}array(e){return i(e,Array),!o(this._point)&&this._warnMixedRepr(),this._point=e,this}string(e){return!o(this._point)&&this._warnMixedRepr(),this._point=e,this}toJSON(){return this._point}}},9703:(e,t,r)=>{"use strict";function n(e,t){const r=this;if(r.vars&&"function"===typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}r.d(t,{A:()=>n})},9736:(e,t,r)=>{"use strict";function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var s=this;clearTimeout(t),t=setTimeout((function(){e.apply(s,o)}),r)}return n.clear=function(){clearTimeout(t)},n}r.d(t,{A:()=>n})},9751:(e,t,r)=>{"use strict";r.d(t,{EU:()=>a,NI:()=>s,iZ:()=>u,kW:()=>c,vf:()=>l,zu:()=>o});var n=r(9172);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function s(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||i;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"===typeof t){const e=n.breakpoints||i;return Object.keys(t).reduce(((n,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){n[e.up(i)]=r(t[i],i)}else{const e=i;n[e]=t[e]}return n}),{})}return r(t)}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function u(e){const t=a(e);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];const s=[t,...o].reduce(((e,t)=>(0,n.A)(e,t)),{});return l(Object.keys(t),s)}function c(e){let{values:t,breakpoints:r,base:n}=e;const o=n||function(e,t){if("object"!==typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(t,r),i=Object.keys(o);if(0===i.length)return t;let s;return i.reduce(((e,r,n)=>(Array.isArray(t)?(e[r]=null!=t[n]?t[n]:t[s],s=n):"object"===typeof t?(e[r]=null!=t[r]?t[r]:t[s],s=r):e[r]=t,e)),{})}},9755:(e,t,r)=>{"use strict";const{Query:n,Script:o,util:{checkType:i}}=r(4782);e.exports=class extends n{constructor(){super("script_score")}query(e){return i(e,n),this._queryOpts.query=e,this}script(e){return i(e,o),this._queryOpts.script=e,this}minScore(e){return this._queryOpts.min_score=e,this}}},9776:(e,t,r)=>{"use strict";const n=r(6724),{Query:o,util:{checkType:i}}=r(4782);e.exports=class extends o{constructor(e){super("constant_score"),n(e)||this.filter(e)}filter(e){return i(e,o),this._queryOpts.filter=e,this}query(e){return this.filter(e)}}},9831:(e,t,r)=>{"use strict";const n=r(6724),{util:{checkType:o}}=r(4782),i=r(3420);e.exports=class extends i{constructor(e){super("span_first"),n(e)||this.match(e)}match(e){return o(e,i),this._queryOpts.match=e,this}end(e){return this._queryOpts.end=e,this}}},9835:(e,t,r)=>{"use strict";t.ValuesSourceBase=r(4033),t.TermsValuesSource=r(4885),t.HistogramValuesSource=r(7100),t.DateHistogramValuesSource=r(5981)},9846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(4207)},9879:(e,t,r)=>{"use strict";const n=r(6724),{GeoPoint:o,util:{checkType:i,invalidParam:s}}=r(4782),a=r(2668),l=s("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-query.html","type","'memory' or 'indexed'");e.exports=class extends a{constructor(e){super("geo_bounding_box",e)}topLeft(e){return i(e,o),this._fieldOpts.top_left=e,this}bottomRight(e){return i(e,o),this._fieldOpts.bottom_right=e,this}topRight(e){return i(e,o),this._fieldOpts.top_right=e,this}bottomLeft(e){return i(e,o),this._fieldOpts.bottom_left=e,this}top(e){return this._fieldOpts.top=e,this}left(e){return this._fieldOpts.left=e,this}bottom(e){return this._fieldOpts.bottom=e,this}right(e){return this._fieldOpts.right=e,this}type(e){n(e)&&l(e);const t=e.toLowerCase();return"memory"!==t&&"indexed"!==t&&l(e),this._queryOpts.type=t,this}}},9890:(e,t,r)=>{"use strict";const n=r(7846);e.exports=class extends n{constructor(e,t){super(e,"extended_stats",t)}sigma(e){return this._aggsDef.sigma=e,this}}},9892:(e,t,r)=>{"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{A:()=>n})},9957:(e,t,r)=>{"use strict";const n=r(2254);e.exports=class extends n{constructor(e,t){super(e,"min_bucket","https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-min-bucket-aggregation.html",t)}}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"===typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"===typeof n.then)return n}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,r.d(i,s),i}})(),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.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),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})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e,t,n=r(7950),o=r.t(n,2),i=r(5043),s=r.t(i,2);function a(){return a=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},a.apply(this,arguments)}(t=e||(e={})).Pop="POP",t.Push="PUSH",t.Replace="REPLACE";const l="popstate";function u(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function c(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(r){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r,n){return void 0===r&&(r=null),a({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?f(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function f(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function m(t,r,n,o){void 0===o&&(o={});let{window:i=document.defaultView,v5Compat:s=!1}=o,c=i.history,f=e.Pop,m=null,g=v();function v(){return(c.state||{idx:null}).idx}function b(){f=e.Pop;let t=v(),r=null==t?null:t-g;g=t,m&&m({action:f,location:x.location,delta:r})}function y(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,r="string"===typeof e?e:h(e);return r=r.replace(/ $/,"%20"),u(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==g&&(g=0,c.replaceState(a({},c.state,{idx:g}),""));let x={get action(){return f},get location(){return t(i,c)},listen(e){if(m)throw new Error("A history only accepts one active listener");return i.addEventListener(l,b),m=e,()=>{i.removeEventListener(l,b),m=null}},createHref:e=>r(i,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,r){f=e.Push;let o=p(x.location,t,r);n&&n(o,t),g=v()+1;let a=d(o,g),l=x.createHref(o);try{c.pushState(a,"",l)}catch(u){if(u instanceof DOMException&&"DataCloneError"===u.name)throw u;i.location.assign(l)}s&&m&&m({action:f,location:x.location,delta:1})},replace:function(t,r){f=e.Replace;let o=p(x.location,t,r);n&&n(o,t),g=v();let i=d(o,g),a=x.createHref(o);c.replaceState(i,"",a),s&&m&&m({action:f,location:x.location,delta:0})},go:e=>c.go(e)};return x}var g,v;(v=g||(g={})).data="data",v.deferred="deferred",v.redirect="redirect",v.error="error";new Set(["lazy","caseSensitive","path","id","index","children"]);function b(e,t,r){return void 0===r&&(r="/"),y(e,t,r,!1)}function y(e,t,r,n){let o=P(("string"===typeof t?f(t):t).pathname||"/",r);if(null==o)return null;let i=x(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let s=null;for(let a=0;null==s&&a<i.length;++a){let e=I(o);s=O(i[a],e,n)}return s}function x(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(e,o,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(u(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(n.length));let a=F([n,s.relativePath]),l=r.concat(s);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),x(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:j(a,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of w(e.path))o(e,t,n);else o(e,t)})),t}function w(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let s=w(n.join("/")),a=[];return a.push(...s.map((e=>""===e?i:[i,e].join("/")))),o&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}const _=/^:[\w-]+$/,S=3,A=2,C=1,k=10,E=-2,R=e=>"*"===e;function j(e,t){let r=e.split("/"),n=r.length;return r.some(R)&&(n+=E),t&&(n+=A),r.filter((e=>!R(e))).reduce(((e,t)=>e+(_.test(t)?S:""===t?C:k)),n)}function O(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,o={},i="/",s=[];for(let a=0;a<n.length;++a){let e=n[a],l=a===n.length-1,u="/"===i?t:t.slice(i.length)||"/",c=T({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},u),d=e.route;if(!c&&l&&r&&!n[n.length-1].route.index&&(c=T({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),s.push({params:o,pathname:F([i,c.pathname]),pathnameBase:z(F([i,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(i=F([i,c.pathnameBase]))}return s}function T(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:o}=t;if("*"===n){let e=a[r]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[r];return e[n]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:s,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function N(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function M(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function D(e,t){let r=M(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function L(e,t,r,n){let o;void 0===n&&(n=!1),"string"===typeof e?o=f(e):(o=a({},e),u(!o.pathname||!o.pathname.includes("?"),N("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),N("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),N("#","search","hash",o)));let i,s=""===e||""===o.pathname,l=s?"/":o.pathname;if(null==l)i=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:o=""}="string"===typeof e?f(e):e,i=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:i,search:B(n),hash:$(o)}}(o,i),d=l&&"/"!==l&&l.endsWith("/"),p=(s||"."===l)&&r.endsWith("/");return c.pathname.endsWith("/")||!d&&!p||(c.pathname+="/"),c}const F=e=>e.join("/").replace(/\/\/+/g,"/"),z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function H(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const U=["post","put","patch","delete"],W=(new Set(U),["get",...U]);new Set(W),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function V(){return V=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},V.apply(this,arguments)}const q=i.createContext(null);const G=i.createContext(null);const Q=i.createContext(null);const K=i.createContext(null);const J=i.createContext({outlet:null,matches:[],isDataRoute:!1});const X=i.createContext(null);function Y(){return null!=i.useContext(K)}function Z(){return Y()||u(!1),i.useContext(K).location}function ee(e){i.useContext(Q).static||i.useLayoutEffect(e)}function te(){let{isDataRoute:e}=i.useContext(J);return e?function(){let{router:e}=pe(ce.UseNavigateStable),t=fe(de.UseNavigateStable),r=i.useRef(!1);return ee((()=>{r.current=!0})),i.useCallback((function(n,o){void 0===o&&(o={}),r.current&&("number"===typeof n?e.navigate(n):e.navigate(n,V({fromRouteId:t},o)))}),[e,t])}():function(){Y()||u(!1);let e=i.useContext(q),{basename:t,future:r,navigator:n}=i.useContext(Q),{matches:o}=i.useContext(J),{pathname:s}=Z(),a=JSON.stringify(D(o,r.v7_relativeSplatPath)),l=i.useRef(!1);return ee((()=>{l.current=!0})),i.useCallback((function(r,o){if(void 0===o&&(o={}),!l.current)return;if("number"===typeof r)return void n.go(r);let i=L(r,JSON.parse(a),s,"path"===o.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:F([t,i.pathname])),(o.replace?n.replace:n.push)(i,o.state,o)}),[t,n,a,s,e])}()}function re(){let{matches:e}=i.useContext(J),t=e[e.length-1];return t?t.params:{}}function ne(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=i.useContext(Q),{matches:o}=i.useContext(J),{pathname:s}=Z(),a=JSON.stringify(D(o,n.v7_relativeSplatPath));return i.useMemo((()=>L(e,JSON.parse(a),s,"path"===r)),[e,a,s,r])}function oe(t,r,n,o){Y()||u(!1);let{navigator:s,static:a}=i.useContext(Q),{matches:l}=i.useContext(J),c=l[l.length-1],d=c?c.params:{},p=(c&&c.pathname,c?c.pathnameBase:"/");c&&c.route;let h,m=Z();if(r){var g;let e="string"===typeof r?f(r):r;"/"===p||(null==(g=e.pathname)?void 0:g.startsWith(p))||u(!1),h=e}else h=m;let v=h.pathname||"/",y=v;if("/"!==p){let e=p.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=!a&&n&&n.matches&&n.matches.length>0?n.matches:b(t,{pathname:y});let w=ue(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:F([p,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:F([p,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,o);return r&&w?i.createElement(K.Provider,{value:{location:V({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:e.Pop}},w):w}function ie(){let e=function(){var e;let t=i.useContext(X),r=he(de.UseRouteError),n=fe(de.UseRouteError);if(void 0!==t)return t;return null==(e=r.errors)?void 0:e[n]}(),t=H(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:o},r):null,null)}const se=i.createElement(ie,null);class ae extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(J.Provider,{value:this.props.routeContext},i.createElement(X.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function le(e){let{routeContext:t,match:r,children:n}=e,o=i.useContext(q);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(J.Provider,{value:t},n)}function ue(e,t,r,n){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var s;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(s=n)&&s.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let a=e,l=null==(o=r)?void 0:o.errors;if(null!=l){let e=a.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||u(!1),a=a.slice(0,Math.min(a.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let i=0;i<a.length;i++){let e=a[i];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=i),e.route.id){let{loaderData:t,errors:n}=r,o=e.route.loader&&void 0===t[e.route.id]&&(!n||void 0===n[e.route.id]);if(e.route.lazy||o){c=!0,a=d>=0?a.slice(0,d+1):[a[0]];break}}}return a.reduceRight(((e,n,o)=>{let s,u=!1,p=null,h=null;var f;r&&(s=l&&n.route.id?l[n.route.id]:void 0,p=n.route.errorElement||se,c&&(d<0&&0===o?(f="route-fallback",!1||me[f]||(me[f]=!0),u=!0,h=null):d===o&&(u=!0,h=n.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,o+1)),g=()=>{let t;return t=s?p:u?h:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(le,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?i.createElement(ae,{location:r.location,revalidation:r.revalidation,component:p,error:s,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var ce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ce||{}),de=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(de||{});function pe(e){let t=i.useContext(q);return t||u(!1),t}function he(e){let t=i.useContext(G);return t||u(!1),t}function fe(e){let t=function(){let e=i.useContext(J);return e||u(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||u(!1),r.route.id}const me={};function ge(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}s.startTransition;function ve(e){u(!1)}function be(t){let{basename:r="/",children:n=null,location:o,navigationType:s=e.Pop,navigator:a,static:l=!1,future:c}=t;Y()&&u(!1);let d=r.replace(/^\/*/,"/"),p=i.useMemo((()=>({basename:d,navigator:a,static:l,future:V({v7_relativeSplatPath:!1},c)})),[d,c,a,l]);"string"===typeof o&&(o=f(o));let{pathname:h="/",search:m="",hash:g="",state:v=null,key:b="default"}=o,y=i.useMemo((()=>{let e=P(h,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:v,key:b},navigationType:s}}),[d,h,m,g,v,b,s]);return null==y?null:i.createElement(Q.Provider,{value:p},i.createElement(K.Provider,{children:n,value:y}))}function ye(e){let{children:t,location:r}=e;return oe(xe(t),r)}new Promise((()=>{}));i.Component;function xe(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,((e,n)=>{if(!i.isValidElement(e))return;let o=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,xe(e.props.children,o));e.type!==ve&&u(!1),e.props.index&&e.props.children&&u(!1);let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=xe(e.props.children,o)),r.push(s)})),r}function we(){return we=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},we.apply(this,arguments)}function _e(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}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Se=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(Wz){}new Map;const Ae=s.startTransition;o.flushSync,s.useId;function Ce(e){let{basename:t,children:r,future:n,window:o}=e,s=i.useRef();var a;null==s.current&&(s.current=(void 0===(a={window:o,v5Compat:!0})&&(a={}),m((function(e,t){let{pathname:r,search:n,hash:o}=e.location;return p("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:h(t)}),null,a)));let l=s.current,[u,c]=i.useState({action:l.action,location:l.location}),{v7_startTransition:d}=n||{},f=i.useCallback((e=>{d&&Ae?Ae((()=>c(e))):c(e)}),[c,d]);return i.useLayoutEffect((()=>l.listen(f)),[l,f]),i.useEffect((()=>ge(n)),[n]),i.createElement(be,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:l,future:n})}const ke="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Ee=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Re=i.forwardRef((function(e,t){let r,{onClick:n,relative:o,reloadDocument:s,replace:a,state:l,target:c,to:d,preventScrollReset:p,viewTransition:f}=e,m=_e(e,Se),{basename:g}=i.useContext(Q),v=!1;if("string"===typeof d&&Ee.test(d)&&(r=d,ke))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),r=P(t.pathname,g);t.origin===e.origin&&null!=r?d=r+t.search+t.hash:v=!0}catch(Wz){}let b=function(e,t){let{relative:r}=void 0===t?{}:t;Y()||u(!1);let{basename:n,navigator:o}=i.useContext(Q),{hash:s,pathname:a,search:l}=ne(e,{relative:r}),c=a;return"/"!==n&&(c="/"===a?n:F([n,a])),o.createHref({pathname:c,search:l,hash:s})}(d,{relative:o}),y=function(e,t){let{target:r,replace:n,state:o,preventScrollReset:s,relative:a,viewTransition:l}=void 0===t?{}:t,u=te(),c=Z(),d=ne(e,{relative:a});return i.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let r=void 0!==n?n:h(c)===h(d);u(e,{replace:r,state:o,preventScrollReset:s,relative:a,viewTransition:l})}}),[c,u,d,n,o,r,e,s,a,l])}(d,{replace:a,state:l,target:c,preventScrollReset:p,relative:o,viewTransition:f});return i.createElement("a",we({},m,{href:r||b,onClick:v||s?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:c}))}));var je,Oe,Te,Ie;(Oe=je||(je={})).UseScrollRestoration="useScrollRestoration",Oe.UseSubmit="useSubmit",Oe.UseSubmitFetcher="useSubmitFetcher",Oe.UseFetcher="useFetcher",Oe.useViewTransitionState="useViewTransitionState",(Ie=Te||(Te={})).UseFetcher="useFetcher",Ie.UseFetchers="useFetchers",Ie.UseScrollRestoration="useScrollRestoration";const Pe=(0,i.createContext)();var Ne=r(579);class Me extends i.Component{constructor(){super(...arguments),this.state={}}render(){const{organ:e,handleClose:t,show:r,children:n}=this.props,o=e?"modal-organ":"modal-main",i=r?"mymodal display-block":"mymodal display-none";return(0,Ne.jsx)("div",{className:i,children:(0,Ne.jsxs)("section",{className:o,children:[n,(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-sm-12 pads text-center",children:(0,Ne.jsx)("button",{className:"btn btn-secondary",type:"button",onClick:t,children:"Close"})})})]})})}}const De=Me,Le={donor:"Donor",sample:"Sample",dataset:"Dataset",upload:"Data Upload",publication:"Publication",collection:"Collection"},Fe=[{organ:"Organ"},{block:"Block"},{section:"Section"},{suspension:"Suspension"}],ze={organ:"Organ",block:"Block",section:"Section",suspension:"Suspension"},Be={AO:"http://purl.obolibrary.org/obo/UBERON_0000948",BL:"http://purl.obolibrary.org/obo/UBERON_0001255",BD:"http://purl.obolibrary.org/obo/UBERON_0001270",BM:"http://purl.obolibrary.org/obo/UBERON_0001270",BR:"http://purl.obolibrary.org/obo/UBERON_0000955",LB:"http://purl.obolibrary.org/obo/UBERON_0001004",RB:"http://purl.obolibrary.org/obo/UBERON_0001004",LE:"http://purl.obolibrary.org/obo/UBERON_0004548",RE:"http://purl.obolibrary.org/obo/UBERON_0004549",LF:"http://purl.obolibrary.org/obo/UBERON_0001303",RF:"http://purl.obolibrary.org/obo/UBERON_0001302",HT:"http://purl.obolibrary.org/obo/UBERON_0000948",LK:"http://purl.obolibrary.org/obo/UBERON_0004538",RK:"http://purl.obolibrary.org/obo/UBERON_0004539",LI:"http://purl.obolibrary.org/obo/UBERON_0000059",LV:"http://purl.obolibrary.org/obo/UBERON_0002107",LL:"http://purl.obolibrary.org/obo/UBERON_0001004",LN:"http://purl.obolibrary.org/obo/FMA_24978",RL:"http://purl.obolibrary.org/obo/UBERON_0001004",RN:"http://purl.obolibrary.org/obo/FMA_24977",LY:"http://purl.obolibrary.org/obo/UBERON_0002509",LO:"http://purl.obolibrary.org/obo/FMA_7214",RO:"http://purl.obolibrary.org/obo/FMA_7213",PA:"http://purl.obolibrary.org/obo/UBERON_0001264",PL:"http://purl.obolibrary.org/obo/UBERON_0001987",SI:"http://purl.obolibrary.org/obo/UBERON_0002108",SK:"http://purl.obolibrary.org/obo/UBERON_0002097",SP:"http://purl.obolibrary.org/obo/UBERON_0002106",RT:"http://purl.org/sig/ont/fma/fma54973",LT:"http://purl.org/sig/ont/fma/fma54974",TH:"http://purl.obolibrary.org/obo/UBERON_0002370",TR:"http://purl.obolibrary.org/obo/UBERON_0001004",UR:"http://purl.obolibrary.org/obo/UBERON_0001223",UT:"http://purl.obolibrary.org/obo/UBERON_0000995"},$e=Object.keys(Be),He=["created_by_user_displayname","created_by_user_email","dataset_info","datasets.group_uuid","description.keyword","display_doi.keyword","display_subtype.keyword","hubmap_id.keyword","lab_dataset_id.keyword","lab_donor_id.keyword","lab_name.keyword","lab_tissue_sample_id.keyword","submission_id.keyword"],Ue=["submission_id","hubmap_id","lab_donor_id","lab_name","lab_tissue_sample_id","lab_dataset_id"];function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ve=r(2901),qe=r(9417),Ge=r(3662);var Qe=r(2284);function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}var Je=r(5173),Xe=r.n(Je);function Ye(e,t,r,n,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,o)}function Ze(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){Ye(i,n,o,s,a,"next",e)}function a(e){Ye(i,n,o,s,a,"throw",e)}s(void 0)}))}}var et=r(5544),tt=r(4756),rt=r.n(tt),nt="object"===("undefined"==typeof window||"undefined"==typeof window?"undefined":(0,Qe.A)(window)),ot=nt?document:{},it=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange"];function st(e,t){var r;function n(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r&&clearTimeout(r),r=setTimeout((function(){e.apply(void 0,o),r=null}),t)}return n.cancel=function(){clearTimeout(r)},n}function at(e,t){var r=0;return function(){var n=(new Date).getTime();if(!(n-r<t))return r=n,e.apply(void 0,arguments)}}var lt=0,ut=0;function ct(){var e=(new Date).getTime();return e===lt?1e3*e+ ++ut:(lt=e,ut=0,1e3*e)}function dt(){return Math.random().toString(36).substring(2)}function pt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(t){return setTimeout(t,e)}))}function ht(){return(new Date).getTime()}var ft={create:function(e){var t={messagesCallback:null,bc:new BroadcastChannel(e)};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t},close:function(e){e.bc.close()},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){try{return e.bc.postMessage(t,!1),Promise.resolve()}catch(e){return Promise.reject(e)}},canBeUsed:function(){return"function"==typeof BroadcastChannel},type:"broadcastChannel",averageResponseTime:function(){return 150},microSeconds:ct},mt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4;We(this,e),this.ttl=t,this.set=new Set,this.timeMap=new Map}return(0,Ve.A)(e,[{key:"has",value:function(e){return this.set.has(e)}},{key:"add",value:function(e){this.timeMap.set(e,ht()),this.set.add(e),this._removeTooOldValues()}},{key:"clear",value:function(){this.set.clear(),this.timeMap.clear()}},{key:"_removeTooOldValues",value:function(){for(var e=ht()-this.ttl,t=this.set[Symbol.iterator]();;){var r=t.next().value;if(!r)return;if(!(this.timeMap.get(r)<e))return;this.timeMap.delete(r),this.set.delete(r)}}}]),e}();function gt(){var e;if("undefined"==typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function vt(){var e=gt();if(!e)return!1;try{var t="__check";e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}var bt={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!vt())throw new Error("\u274c localStorage cannot be used.");var r=dt(),n=new mt(t.removeTimeout),o={channelName:e,uuid:r,eMIs:n};return o.listener=function(e,t){var r=e,n=function(e){e.key===r&&t(JSON.parse(e.newValue))};return window.addEventListener("storage",n),n}(e,(function(e){o.messagesCallback&&e.uuid!==r&&e.token&&!n.has(e.token)&&(e.data.time&&e.data.time<o.messagesCallbackTime||(n.add(e.token),o.messagesCallback(e.data)))})),o},close:function(e){var t;t=e.listener,window.removeEventListener("storage",t)},onMessage:function(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t},postMessage:function(e,t){return new Promise((function(r){var n=e.channelName,o={token:dt(),time:(new Date).getTime(),data:t,uuid:e.uuid},i=JSON.stringify(o);gt().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()}))},canBeUsed:vt,type:"localStorage",averageResponseTime:function(){var e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?240:120},microSeconds:ct},yt=new Set,xt={create:function(e){var t={name:e,messagesCallback:null};return yt.add(t),t},close:function(e){yt.delete(e)},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){return new Promise((function(r){return setTimeout((function(){Array.from(yt).filter((function(t){return t.name===e.name})).filter((function(t){return t!==e})).filter((function(e){return!!e.messagesCallback})).forEach((function(e){return e.messagesCallback(t)})),r()}),5)}))},canBeUsed:function(){return!0},type:"simulate",averageResponseTime:function(){return 5},microSeconds:ct},wt=[ft,bt];var _t=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};We(this,e),this.name=t,this.options=r,this.method=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.type){if("simulate"===e.type)return xt;var t=wt.find((function(t){return t.type===e.type}));if(t)return t;throw new Error("\u274c Method ".concat(e.type," is not supported."))}var r=wt.find((function(e){return e.canBeUsed()}));if(!r)throw new Error("\u274c No method found ".concat(JSON.stringify(wt.map((function(e){return e.type})))));return r}(this.options),this.closed=!1,this._isListening=!1,this._onMessageListener=null,this._addEventListeners={message:[],internal:[]},this._unSendMessagePromises=new Set,this._beforeClose=[],this._preparePromises=null,function(e){var t,r=e.method.create(e.name,e.options);(t=r)&&"function"==typeof t.then?(e._preparePromises=r,r.then((function(t){e._state=t}))):e._state=r}(this)}return(0,Ve.A)(e,[{key:"postMessage",value:function(e){if(this.closed)throw new Error("\u274c Cannot post message after channel has closed");return St(this,"message",e)}},{key:"postInternal",value:function(e){return St(this,"internal",e)}},{key:"onmessage",get:function(){return this._onMessageListener},set:function(e){var t={time:this.method.microSeconds(),fn:e};kt(this,"message",this._onMessageListener),e&&"function"==typeof e?(this._onMessageListener=t,Ct(this,"message",t)):this._onMessageListener=null}},{key:"addEventListener",value:function(e,t){Ct(this,e,{time:this.method.microSeconds(),fn:t})}},{key:"removeEventListener",value:function(e,t){kt(this,e,this._addEventListeners[e].find((function(e){return e.fn===t})))}},{key:"close",value:function(){var e=this;if(!this.closed){this.closed=!0;var t=this._preparePromises?this._preparePromises:Promise.resolve();return this._onMessageListener=null,this._addEventListeners.message=[],t.then((function(){return Promise.all(Array.from(e._unSendMessagePromises))})).then((function(){return Promise.all(e._beforeClose.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}}},{key:"type",get:function(){return this.method.type}},{key:"isClosed",value:function(){return this.closed}}]),e}();function St(e,t,r){var n={time:e.method.microSeconds(),type:t,data:r};return(e._preparePromises?e._preparePromises:Promise.resolve()).then((function(){var t=e.method.postMessage(e._state,n);return e._unSendMessagePromises.add(t),t.catch().then((function(){return e._unSendMessagePromises.delete(t)})),t}))}function At(e){return e._addEventListeners.message.length>0||e._addEventListeners.internal.length>0}function Ct(e,t,r){e._addEventListeners[t].push(r),function(e){if(!e._isListening&&At(e)){var t=function(t){e._addEventListeners[t.type].forEach((function(e){t.time>=e.time&&e.fn(t.data)}))},r=e.method.microSeconds();e._preparePromises?e._preparePromises.then((function(){e._isListening=!0,e.method.onMessage(e._state,t,r)})):(e._isListening=!0,e.method.onMessage(e._state,t,r))}}(e)}function kt(e,t,r){e._addEventListeners[t]=e._addEventListeners[t].filter((function(e){return e!==r})),function(e){if(e._isListening&&!At(e)){e._isListening=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}var Et=function(){function e(t,r){var n=this;We(this,e),this._channel=t,this._options=r,this.isLeader=!1,this.isDead=!1,this.token=dt(),this._isApplying=!1,this._reApply=!1,this._unloadFns=[],this._listeners=[],this._intervals=[],this._duplicateListeners=function(){},this._duplicateCalled=!1,this._onBeforeDie=Ze(rt().mark((function e(){return rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));var o=function(){var e=Ze(rt().mark((function e(){return rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.die());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();nt&&(window.addEventListener("beforeUnload",o),window.addEventListener("unload",o),this._unloadFns.push(["beforeUnload",o]),this._unloadFns.push(["unload",o]))}var t;return(0,Ve.A)(e,[{key:"applyOnce",value:function(){var e=this;if(this.isLeader)return Promise.resolve(!1);if(this.isDead)return Promise.resolve(!1);if(this._isApplying)return this._reApply=!0,Promise.resolve(!1);this._isApplying=!0;var t=!1,r=function(r){"leader"===r.context&&r.token!==e.token&&("apply"===r.action&&r.token>e.token&&(t=!0),"tell"===r.action&&(t=!0))};return this._channel.addEventListener("internal",r),Rt(this,"apply").then((function(){return pt(e._options.responseTime)})).then((function(){return t?Promise.reject(new Error):Rt(e,"apply")})).then((function(){return pt(e._options.responseTime)})).then((function(){return t?Promise.reject(new Error):Rt(e)})).then((function(){return function(e){e.isLeader=!0;var t=function(t){"leader"===t.context&&"apply"===t.action&&Rt(e,"tell"),"leader"!==t.context||"tell"!==t.action||e._duplicateCalled||(e._duplicateCalled=!0,e._duplicateListeners(),Rt(e,"tell"))};return e._channel.addEventListener("internal",t),e._listeners.push(t),Rt(e,"tell")}(e)})).then((function(){return!0})).catch((function(){return!1})).then((function(t){return e._channel.removeEventListener("internal",r),e._isApplying=!1,!t&&e._reApply?(e._reApply=!1,e.applyOnce()):t}))}},{key:"awaitLeadership",value:function(){var e;return this._awaitLeadershipPromise||(this._awaitLeadershipPromise=(e=this).isLeader?Promise.resolve():new Promise((function(t){var r=!1;function n(){r||(r=!0,clearInterval(o),e._channel.removeEventListener("internal",i),t(!0))}e.applyOnce().then((function(){e.isLeader&&n()}));var o=setInterval((function(){e.applyOnce().then((function(){e.isLeader&&n()}))}),e._options.fallbackInterval);e._intervals.push(o);var i=function(t){"leader"===t.context&&"death"===t.action&&e.applyOnce().then((function(){e.isLeader&&n()}))};e._channel.addEventListener("internal",i),e._listeners.push(i)}))),this._awaitLeadershipPromise}},{key:"onDuplicate",get:function(){return this._duplicateListeners},set:function(e){this._duplicateListeners=e}},{key:"onBeforeDie",get:function(){return this._onBeforeDie},set:function(e){this._onBeforeDie=e}},{key:"die",value:(t=Ze(rt().mark((function e(){var t=this;return rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isDead){e.next=2;break}return e.abrupt("return");case 2:return this.isDead=!0,e.next=5,this.onBeforeDie();case 5:return this._listeners.forEach((function(e){return t._channel.removeEventListener("internal",e)})),this._intervals.forEach((function(e){return clearInterval(e)})),this._unloadFns.forEach((function(e){nt&&window.removeEventListener(e[0],e[1])})),e.abrupt("return",Rt(this,"death"));case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}();function Rt(e,t){var r={context:"leader",action:t,token:e.token};return e._channel.postInternal(r)}var jt=function(e){var t=e.type,r=e.channelName,n=e.fallbackInterval,o=e.responseTime,i=e.emitOnAllTabs,s=e.callbacks,a=e.start,l=e.reset,u=e.pause,c=e.resume,d=new _t(r,{type:t}),p=function(e,t){if(e._leaderElector)throw new Error("\u274c MessageChannel already has a leader-elector");var r=new Et(e,t);return e._beforeClose.push(Ze(rt().mark((function e(){return rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.die());case 1:case"end":return e.stop()}}),e)})))),e._leaderElector=r,r}(d,{fallbackInterval:n,responseTime:o}),h={};h[p.token]=!1;var f=!1,m=!0,g=function(){return f};p.awaitLeadership().then((function(){f=!0})),d.addEventListener("message",(function(e){var t=(0,et.A)(e,2),r=t[0],n=t[1];switch(r){case"register":h[n]=!1;break;case"deregister":delete h[n];break;case"idle":v(n);break;case"active":b(n);break;case"emitIdle":s.onIdle();break;case"emitActive":s.onActive();break;case"start":a(!0);break;case"reset":l(!0);break;case"pause":u(!0);break;case"resume":c(!0)}}));var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.token;h[e]=!0;var t=Object.values(h).every((function(e){return e}));!m&&t&&(m=!0,g()?(s.onIdle(),i&&y("emitIdle")):y("idle"))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.token;h[e]=!1;var t=Object.values(h).some((function(e){return!e}));m&&t&&(m=!1,g()?(s.onActive(),i&&y("emitActive")):y("active"))};p.onDuplicate=Ze(rt().mark((function e(){return rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.die();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),p.onBeforeDie=Ze(rt().mark((function e(){return rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y("deregister");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));var y=function(){var e=Ze(rt().mark((function e(t){return rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",d.postMessage([t,p.token]));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=Ze(rt().mark((function e(){return rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.die();case 2:return e.next=4,d.close();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return y("register"),{close:x,send:y,isLeader:g,idle:v,active:b,isAllIdle:function(){return m},setAllIdle:function(e){m=e}}};function Ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ke(e);if(t){var o=Ke(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==(0,Qe.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,qe.A)(e)}(this,r)}}var Tt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,Ge.A)(e,t)}(t,i.Component);var e=Ot(t);function t(r){var n;if(We(this,t),(n=e.call(this,r)).state={idle:!1,oldDate:+new Date,lastActive:+new Date,lastIdle:null,idleTime:0,remaining:null,pageX:null,pageY:null},n.tId=null,n.eventsBound=!1,n.callbackRefs={},r.debounce>0&&r.throttle>0)throw new Error("onAction can either be throttled or debounced (not both)");return r.debounce>0?n._onAction=st(r.onAction,r.debounce):r.throttle>0?n._onAction=at(r.onAction,r.throttle):n._onAction=r.onAction,r.eventsThrottle>0?n.handleEvent=at(n._handleEvent.bind((0,qe.A)(n)),r.eventsThrottle):n.handleEvent=n._handleEvent.bind((0,qe.A)(n)),r.startOnMount&&!r.startManually||(n.state.idle=!0),n._toggleIdleState=n._toggleIdleState.bind((0,qe.A)(n)),n.start=n.start.bind((0,qe.A)(n)),n.reset=n.reset.bind((0,qe.A)(n)),n.pause=n.pause.bind((0,qe.A)(n)),n.resume=n.resume.bind((0,qe.A)(n)),n.isIdle=n.isIdle.bind((0,qe.A)(n)),n.getRemainingTime=n.getRemainingTime.bind((0,qe.A)(n)),n.getElapsedTime=n.getElapsedTime.bind((0,qe.A)(n)),n.getLastActiveTime=n.getLastActiveTime.bind((0,qe.A)(n)),n.getLastIdleTime=n.getLastIdleTime.bind((0,qe.A)(n)),n.getTotalIdleTime=n.getTotalIdleTime.bind((0,qe.A)(n)),n.getTotalActiveTime=n.getTotalActiveTime.bind((0,qe.A)(n)),n}return(0,Ve.A)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.startOnMount,r=e.startManually;this._setupTabManager(),r||(t?this.start():this._bindEvents())}},{key:"componentDidUpdate",value:function(e){e.debounce!==this.props.debounce&&this.props.debounce>0?(this._onAction.cancel&&this._onAction.cancel(),this._onAction=st(this.props.onAction,this.props.debounce)):e.throttle!==this.props.throttle&&this.props.throttle>0?(this._onAction.cancel&&this._onAction.cancel(),this._onAction=at(this.props.onAction,this.props.throttle)):(e.throttle&&0===this.props.throttle||e.debounce&&0===this.props.debounce)&&(this._onAction.cancel&&this._onAction.cancel(),this._onAction=this.props.onAction),e.eventsThrottle!==this.props.eventsThrottle&&(this._unbindEvents(),this.handleEvent=at(this._handleEvent.bind(this),this.props.eventsThrottle),this._bindEvents()),e.timeout!==this.props.timeout&&this.state.idle&&this.reset(),e.onActive!==this.props.onActive&&(this.callbackRefs.onActive=this.props.onActive),e.onIdle!==this.props.onIdle&&(this.callbackRefs.onIdle=this.props.onIdle)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.tId),this._unbindEvents(!0),this._onAction.cancel&&this._onAction.cancel(),this.manager&&this.manager.close().catch(console.error)}},{key:"render",value:function(){return this.props.children||null}},{key:"_setupTabManager",value:function(){var e=this.props,t=e.crossTab,r=e.onIdle,n=e.onActive;if(this.callbackRefs={onIdle:r,onActive:n},t){var o=Object.assign({channelName:"idle-timer",fallbackInterval:2e3,responseTime:100,removeTimeout:6e4,emitOnAllTabs:!1},!0===t?{}:t),i=o.type,s=o.channelName,a=o.fallbackInterval,l=o.responseTime,u=o.emitOnAllTabs;this.manager=jt({type:i,channelName:s,fallbackInterval:a,responseTime:l,emitOnAllTabs:u,callbacks:this.callbackRefs,start:this.start,reset:this.reset,pause:this.pause,resume:this.resume})}}},{key:"_bindEvents",value:function(){var e=this;if(nt){var t=this.props,r=t.element,n=t.events,o=t.passive,i=t.capture;this.eventsBound||(n.forEach((function(t){r.addEventListener(t,e.handleEvent,{capture:i,passive:o})})),this.eventsBound=!0)}}},{key:"_unbindEvents",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(nt){var r=this.props,n=r.element,o=r.events,i=r.passive,s=r.capture;(this.eventsBound||t)&&(o.forEach((function(t){n.removeEventListener(t,e.handleEvent,{capture:s,passive:i})})),this.eventsBound=!1)}}},{key:"_toggleIdleState",value:function(e){var t=this;this.setState((function(e){return{idle:!e.idle,lastIdle:e.idle?e.lastIdle:+new Date-t.props.timeout,idleTime:e.idle?e.idleTime+ +new Date-e.lastIdle:e.idleTime}}),(function(){var r=t.props,n=r.onActive,o=r.onIdle,i=r.stopOnIdle;t.state.idle?(i&&(clearTimeout(t.tId),t.tId=null,t._unbindEvents()),t.manager?t.manager.idle():o(e)):(t._bindEvents(),t.manager?t.manager.active():n(e))}))}},{key:"_handleEvent",value:function(e){var t=this.state,r=t.remaining,n=t.pageX,o=t.pageY,i=t.idle,s=this.props,a=s.timeout,l=s.stopOnIdle;if(this._onAction(e),!r){if("mousemove"===e.type){if(e.pageX===n&&e.pageY===o)return;if(void 0===e.pageX&&void 0===e.pageY)return;if(this.getElapsedTime()<200)return}clearTimeout(this.tId),this.tId=null;var u=+new Date-this.getLastActiveTime();(i&&!l||!i&&u>a)&&this._toggleIdleState(e),this.setState({lastActive:+new Date,pageX:e.pageX,pageY:e.pageY}),i&&l||(this.tId=setTimeout(this._toggleIdleState,a))}}},{key:"start",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];clearTimeout(this.tId),this.tId=null,this._bindEvents(),this.setState({idle:!1,oldDate:+new Date,lastActive:+new Date,remaining:null}),this.manager&&(this.manager.setAllIdle(!1),!e&&this.props.crossTab.emitOnAllTabs&&this.manager.send("start"));var t=this.props.timeout;this.tId=setTimeout(this._toggleIdleState,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];clearTimeout(this.tId),this.tId=null,this._bindEvents(),this.state.idle&&(this.manager?this.manager.active():this.props.onActive()),this.manager&&(this.manager.setAllIdle(!1),!e&&this.props.crossTab.emitOnAllTabs&&this.manager.send("reset")),this.setState({idle:!1,oldDate:+new Date,lastActive:+new Date,remaining:null});var t=this.props.timeout;this.tId=setTimeout(this._toggleIdleState,t)}},{key:"pause",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===this.state.remaining&&(this._unbindEvents(),clearTimeout(this.tId),this.tId=null,this.manager&&!e&&this.props.crossTab.emitOnAllTabs&&this.manager.send("pause"),this.setState({remaining:this.getRemainingTime()}))}},{key:"resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state,r=t.remaining,n=t.idle;null!==r&&(this._bindEvents(),this.manager&&!e&&this.props.crossTab.emitOnAllTabs&&this.manager.send("resume"),n||(this.tId=setTimeout(this._toggleIdleState,r),this.setState({remaining:null,lastActive:+new Date})))}},{key:"getRemainingTime",value:function(){var e=this.state,t=e.remaining,r=e.lastActive,n=this.props.timeout;if(null!==t)return t<0?0:t;var o=n-(+new Date-r);return o<0?0:o}},{key:"getElapsedTime",value:function(){var e=this.state.oldDate;return+new Date-e}},{key:"getLastIdleTime",value:function(){return this.state.lastIdle}},{key:"getTotalIdleTime",value:function(){var e=this.state,t=e.idle,r=e.lastIdle,n=e.idleTime;return t?+new Date-r+n:n}},{key:"getLastActiveTime",value:function(){return this.state.lastActive}},{key:"getTotalActiveTime",value:function(){return this.getElapsedTime()-this.getTotalIdleTime()}},{key:"isIdle",value:function(){return this.state.idle}},{key:"isLeader",value:function(){return!this.manager||this.manager.isLeader()}}]),t}();function It(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.timeout,r=void 0===t?12e5:t,n=e.element,o=void 0===n?ot:n,s=e.events,a=void 0===s?it:s,l=e.onIdle,u=void 0===l?function(){}:l,c=e.onActive,d=void 0===c?function(){}:c,p=e.onAction,h=void 0===p?function(){}:p,f=e.debounce,m=void 0===f?0:f,g=e.throttle,v=void 0===g?0:g,b=e.eventsThrottle,y=void 0===b?200:b,x=e.startOnMount,w=void 0===x||x,_=e.startManually,S=void 0!==_&&_,A=e.stopOnIdle,C=void 0!==A&&A,k=e.capture,E=void 0===k||k,R=e.passive,j=void 0===R||R,O=e.crossTab,T=void 0!==O&&O,I=(0,i.useRef)(!1),P=(0,i.useRef)(!0),N=(0,i.useRef)(+new Date),M=(0,i.useRef)(null),D=(0,i.useRef)(null),L=(0,i.useRef)(null),F=(0,i.useRef)(null),z=(0,i.useRef)(null),B=(0,i.useRef)(null),$=(0,i.useRef)(0),H=(0,i.useRef)(!0),U=(0,i.useRef)(r),W=(0,i.useRef)(null);T&&(!0===T&&(T={}),T=Object.assign({channelName:"idle-timer",fallbackInterval:2e3,responseTime:100,removeTimeout:6e4,emitOnAllTabs:!1},T));var V=(0,i.useRef)(u),q=(0,i.useRef)(d),G=(0,i.useRef)(h);(0,i.useEffect)((function(){V.current=u}),[u]),(0,i.useEffect)((function(){q.current=d}),[d]),(0,i.useEffect)((function(){G.current=h}),[h]);var Q=(0,i.useMemo)((function(){function e(e){G.current(e)}return e.cancel&&e.cancel(),m>0?st(e,m):v>0?at(e,v):e}),[v,m]),K=function(e){var t=!P.current;P.current=t,t?(C&&(clearTimeout(F.current),F.current=null,Z()),B.current=+new Date-U.current,W.current?W.current.idle():V.current(e)):($.current+=+new Date-B.current,Y(),W.current?W.current.active():q.current(e))},J=function(e){if(Q(e),!M.current){if("mousemove"===e.type){if(e.pageX===D&&e.pageY===L)return;if(void 0===e.pageX&&void 0===e.pageY)return;if(te()<200)return}clearTimeout(F.current),F.current=null;var t=+new Date-ne();(P.current&&!C||!P.current&&t>U.current)&&K(e),z.current=+new Date,D.current=e.pageX,L.current=e.pageY,P.current||(F.current=setTimeout(K,U.current))}},X=(0,i.useRef)(J),Y=function(){nt&&(I.current||(a.forEach((function(e){o.addEventListener(e,X.current,{capture:E,passive:j})})),I.current=!0))},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];nt&&(I.current||e)&&(a.forEach((function(e){o.removeEventListener(e,X.current,{capture:E,passive:j})})),I.current=!1)},ee=function(){if(null!==M.current)return M.current<0?0:M.current;var e=U.current-(+new Date-z.current);return e<0?0:e},te=function(){return+new Date-N.current},re=function(){return P.current?+new Date-B.current+$.current:$.current},ne=function(){return z.current},oe=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];clearTimeout(F.current),F.current=null,Y(),P.current=!1,N.current=+new Date,z.current=+new Date,M.current=null,W.current&&(W.current.setAllIdle(!1),!e&&T.emitOnAllTabs&&W.current.send("start")),F.current=setTimeout(K,U.current)},ie=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];clearTimeout(F.current),F.current=null,Y(),P.current&&(W.current?W.current.active():q.current()),P.current=!1,N.current=+new Date,z.current=+new Date,M.current=null,W.current&&(W.current.setAllIdle(!1),!e&&T.emitOnAllTabs&&W.current.send("reset")),F.current=setTimeout(K,U.current)},se=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===M.current&&(Z(),clearTimeout(F.current),F.current=null,M.current=ee(),W.current&&!e&&T.emitOnAllTabs&&W.current.send("pause"))},ae=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null!==M.current&&(Y(),P.current||(F.current=setTimeout(K,M.current),M.current=null,z.current=+new Date),W.current&&!e&&T.emitOnAllTabs&&W.current.send("resume"))};return(0,i.useEffect)((function(){if(m>0&&v>0)throw new Error("onAction can either be throttled or debounced (not both)");return T&&(W.current=jt({type:T.type,channelName:T.channelName,fallbackInterval:T.fallbackInterval,responseTime:T.responseTime,emitOnAllTabs:T.emitOnAllTabs,callbacks:{onIdle:V.current,onActive:q.current},start:oe,reset:ie,pause:se,resume:ae})),S?Ze(rt().mark((function e(){return rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(clearTimeout(F.current),Z(!0),!T){e.next=5;break}return e.next=5,W.current.close();case 5:case"end":return e.stop()}}),e)}))):(w?oe():Y(),Ze(rt().mark((function e(){return rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(clearTimeout(F.current),Z(!0),Q.cancel&&Q.cancel(),!T){e.next=6;break}return e.next=6,W.current.close();case 6:case"end":return e.stop()}}),e)}))))}),[]),(0,i.useEffect)((function(){var e=I.current;e&&Z(),X.current=y>0?at(J,y):J,e&&Y()}),[y]),(0,i.useEffect)((function(){U.current=r,!H.current&&P.current&&ie(),H.current=!1}),[r]),{isIdle:function(){return P.current},isLeader:function(){return!W.current||W.current.isLeader()},start:oe,pause:se,reset:ie,resume:ae,getLastIdleTime:function(){return B.current},getTotalIdleTime:re,getLastActiveTime:ne,getTotalActiveTime:function(){return te()-re()},getElapsedTime:te,getRemainingTime:ee}}Tt.propTypes={timeout:Xe().number,events:Xe().arrayOf(Xe().string),onIdle:Xe().func,onActive:Xe().func,onAction:Xe().func,debounce:Xe().number,throttle:Xe().number,eventsThrottle:Xe().number,element:Xe().oneOfType([Xe().object,Xe().element]),startOnMount:Xe().bool,startManually:Xe().bool,stopOnIdle:Xe().bool,passive:Xe().bool,capture:Xe().bool,crossTab:Xe().oneOfType([Xe().bool,Xe().shape({type:Xe().oneOf(["broadcastChannel","localStorage","simulate"]),channelName:Xe().string,fallbackInterval:Xe().number,responseTime:Xe().number,removeTimeout:Xe().number,emitOnAllTabs:Xe().bool})])},Tt.defaultProps={timeout:12e5,element:ot,events:it,onIdle:function(){},onActive:function(){},onAction:function(){},debounce:0,throttle:0,eventsThrottle:200,startOnMount:!0,startManually:!1,stopOnIdle:!1,capture:!0,passive:!0,crossTab:!1},It.propTypes={timeout:Xe().number,events:Xe().arrayOf(Xe().string),onIdle:Xe().func,onActive:Xe().func,onAction:Xe().func,debounce:Xe().number,throttle:Xe().number,eventsThrottle:Xe().number,element:Xe().oneOfType([Xe().object,Xe().element]),startOnMount:Xe().bool,startManually:Xe().bool,stopOnIdle:Xe().bool,passive:Xe().bool,capture:Xe().bool,crossTab:Xe().oneOfType([Xe().bool,Xe().shape({type:Xe().oneOf(["broadcastChannel","localStorage","simulate"]),channelName:Xe().string,fallbackInterval:Xe().number,responseTime:Xe().number,removeTimeout:Xe().number,emitOnAllTabs:Xe().bool})])},It.defaultProps={timeout:12e5,element:ot,events:it,onIdle:function(){},onActive:function(){},onAction:function(){},debounce:0,throttle:0,eventsThrottle:200,startOnMount:!0,startManually:!1,stopOnIdle:!1,capture:!0,passive:!0,crossTab:!1};const Pt=Tt;class Nt extends i.Component{constructor(e){super(e),this.resetTimer=()=>{this.setState({show:!1,logout_in:60,activeFlag:!0}),this.idleTimer.reset()},this.onIdle=e=>{console.debug("Idle"),"true"===localStorage.getItem("isAuthenticated")&&this.setState({show:!0,logout_in:60,activeFlag:!1},(()=>{setTimeout(function e(){this.setState({logout_in:this.state.logout_in-1},(()=>{this.state.logout_in>0?this.setState({timer:setTimeout(e.bind(this),1e3)}):!0===this.state.activeFlag||this.props.logout()}))}.bind(this),500)}))},this.hideModal=()=>{this.resetTimer(),this.setState({show:!1})},this.onAction=e=>{this.setState({show:!1}),this.resetTimer()},this.onActive=e=>{this.resetTimer()},this.state={activeFlag:!1,timer:"",idleTimer:"",show:!1,logout_in:6e4}}render(){return(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(Pt,{ref:e=>{this.idleTimer=e},element:document,onActive:this.onActive,onIdle:this.onIdle,onAction:this.onAction,debounce:250,timeout:18e5}),(0,Ne.jsx)(De,{show:this.state.show,handleClose:this.hideModal,children:(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"col-sm-12 text-center",children:[(0,Ne.jsx)("h4",{children:"Are you still there?"}),(0,Ne.jsxs)("p",{children:["The application will automatically log out in"," ",this.state.logout_in,' seconds. If you want to keep you logged in, please click "close" below.']})]})})})]})}}const Mt=Nt,Dt=e=>(0,Ne.jsxs)("div",{className:"alert alert-info",role:"alert",children:[(0,Ne.jsx)("h1",{children:"HuBMAP Data Ingest"}),(0,Ne.jsx)("p",{children:"User authentication is required to register donors, samples, tissues and datasets.  Please click the button below and you will be redirected to a login page. There you can login with your institutional credentials. Thank you!"}),(0,Ne.jsx)("hr",{}),(0,Ne.jsx)("a",{className:"btn btn-primary btn-lg",onClick:e=>function(e){e.preventDefault(),console.debug("%c\u25c9 Purging storage... ","color:#00ff7b"),localStorage.removeItem("info"),localStorage.removeItem("organs"),localStorage.removeItem("datatypes"),localStorage.removeItem("allGroups"),localStorage.removeItem("userGroups"),console.debug("%c\u25c9 Goodbye! \ud83d\udc4b","color:#00ff7b"),window.location="https://ingest.api.hubmapconsortium.org/login"}(e),href:"https://ingest.api.hubmapconsortium.org/login",children:"Log in with your institutional credentials"})]});var Lt=r(8587),Ft=r(8168),zt=r(9292),Bt=r(8698),$t=r(8610),Ht=r(4535),Ut=r(6431),Wt=r(6803),Vt=r(2532),qt=r(2372);function Gt(e){return(0,qt.Ay)("MuiTypography",e)}(0,Vt.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Qt=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Kt=(0,Ht.Ay)("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${(0,Wt.A)(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),Jt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Xt={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Yt=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiTypography"}),n=(e=>Xt[e]||e)(r.color),o=(0,Bt.A)((0,Ft.A)({},r,{color:n})),{align:i="inherit",className:s,component:a,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Jt}=o,h=(0,Lt.A)(o,Qt),f=(0,Ft.A)({},o,{align:i,color:n,className:s,component:a,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=a||(c?"p":p[d]||Jt[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,"inherit"!==e.align&&`align${(0,Wt.A)(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,$t.A)(a,Gt,s)})(f);return(0,Ne.jsx)(Kt,(0,Ft.A)({as:m,ref:t,ownerState:f,className:(0,zt.A)(g.root,s)},h))}));function Zt(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const er=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zt(e))&&(n&&(n+=" "),n+=t);return n};var tr=r(3174),rr=r(8812),nr=r(8280),or=r(9369);const ir=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=i.useContext(or.T);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r},sr=(0,nr.A)();const ar=function(){return ir(arguments.length>0&&void 0!==arguments[0]?arguments[0]:sr)},lr=["className","component"];function ur(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,s=(0,tr.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(rr.A);return i.forwardRef((function(e,i){const a=ar(r),l=(0,Bt.A)(e),{className:u,component:c="div"}=l,d=(0,Lt.A)(l,lr);return(0,Ne.jsx)(s,(0,Ft.A)({as:c,ref:i,className:er(u,o?o(n):n),theme:t&&a[t]||a},d))}))}var cr=r(9386),dr=r(7344),pr=r(3375);const hr=(0,Vt.A)("MuiBox",["root"]),fr=(0,dr.A)(),mr=ur({themeId:pr.A,defaultTheme:fr,defaultClassName:hr.root,generateClassName:cr.A.generate});var gr=r(9751),vr=r(5170);function br(){const e=ar(vr.A);return e[pr.A]||e}const yr=i.createContext();function xr(e){return(0,qt.Ay)("MuiGrid",e)}const wr=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],_r=(0,Vt.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...wr.map((e=>`grid-xs-${e}`)),...wr.map((e=>`grid-sm-${e}`)),...wr.map((e=>`grid-md-${e}`)),...wr.map((e=>`grid-lg-${e}`)),...wr.map((e=>`grid-xl-${e}`))]),Sr=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Ar(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Cr(e){let{breakpoints:t,values:r}=e,n="";Object.keys(r).forEach((e=>{""===n&&0!==r[e]&&(n=e)}));const o=Object.keys(t).sort(((e,r)=>t[e]-t[r]));return o.slice(0,o.indexOf(n))}const kr=(0,Ht.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:u}=r;let c=[];n&&(c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&n.push(r[`spacing-${t}-${String(o)}`])})),n}(s,u,t));const d=[];return u.forEach((e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])})),[t.root,n&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==a&&t[`wrap-xs-${String(a)}`],...d]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:r}=e;const n=(0,gr.kW)({values:r.direction,breakpoints:t.breakpoints.values});return(0,gr.NI)({theme:t},n,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${_r.item}`]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:r}=e;const{container:n,rowSpacing:o}=r;let i={};if(n&&0!==o){const e=(0,gr.kW)({values:o,breakpoints:t.breakpoints.values});let r;"object"===typeof e&&(r=Cr({breakpoints:t.breakpoints.values,values:e})),i=(0,gr.NI)({theme:t},e,((e,n)=>{var o;const i=t.spacing(e);return"0px"!==i?{marginTop:`-${Ar(i)}`,[`& > .${_r.item}`]:{paddingTop:Ar(i)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,[`& > .${_r.item}`]:{paddingTop:0}}}))}return i}),(function(e){let{theme:t,ownerState:r}=e;const{container:n,columnSpacing:o}=r;let i={};if(n&&0!==o){const e=(0,gr.kW)({values:o,breakpoints:t.breakpoints.values});let r;"object"===typeof e&&(r=Cr({breakpoints:t.breakpoints.values,values:e})),i=(0,gr.NI)({theme:t},e,((e,n)=>{var o;const i=t.spacing(e);return"0px"!==i?{width:`calc(100% + ${Ar(i)})`,marginLeft:`-${Ar(i)}`,[`& > .${_r.item}`]:{paddingLeft:Ar(i)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${_r.item}`]:{paddingLeft:0}}}))}return i}),(function(e){let t,{theme:r,ownerState:n}=e;return r.breakpoints.keys.reduce(((e,o)=>{let i={};if(n[o]&&(t=n[o]),!t)return e;if(!0===t)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=(0,gr.kW)({values:n.columns,breakpoints:r.breakpoints.values}),a="object"===typeof s?s[o]:s;if(void 0===a||null===a)return e;const l=Math.round(t/a*1e8)/1e6+"%";let u={};if(n.container&&n.item&&0!==n.columnSpacing){const e=r.spacing(n.columnSpacing);if("0px"!==e){const t=`calc(${l} + ${Ar(e)})`;u={flexBasis:t,maxWidth:t}}}i=(0,Ft.A)({flexBasis:l,flexGrow:0,maxWidth:l},u)}return 0===r.breakpoints.values[o]?Object.assign(e,i):e[r.breakpoints.up(o)]=i,e}),{})}));const Er=e=>{const{classes:t,container:r,direction:n,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[`spacing-xs-${String(e)}`];const r=[];return t.forEach((t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}})),r}(i,l));const c=[];l.forEach((t=>{const r=e[t];r&&c.push(`grid-${t}-${String(r)}`)}));const d={root:["root",r&&"container",o&&"item",a&&"zeroMinWidth",...u,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==s&&`wrap-xs-${String(s)}`,...c]};return(0,$t.A)(d,xr,t)};const Rr=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiGrid"}),{breakpoints:n}=br(),o=(0,Bt.A)(r),{className:s,columns:a,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:f=0,wrap:m="wrap",zeroMinWidth:g=!1}=o,v=(0,Lt.A)(o,Sr),b=h||f,y=l||f,x=i.useContext(yr),w=c?a||12:x,_={},S=(0,Ft.A)({},v);n.keys.forEach((e=>{null!=v[e]&&(_[e]=v[e],delete S[e])}));const A=(0,Ft.A)({},o,{columns:w,container:c,direction:d,item:p,rowSpacing:b,columnSpacing:y,wrap:m,zeroMinWidth:g,spacing:f},_,{breakpoints:n.keys}),C=Er(A);return(0,Ne.jsx)(yr.Provider,{value:w,children:(0,Ne.jsx)(kr,(0,Ft.A)({ownerState:A,className:(0,zt.A)(C.root,s),as:u,ref:t},S))})}));function jr(e){return jr="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},jr(e)}function Or(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Tr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ir(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){Tr(e,t,r[t])}))}return e}function Pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Nr=function(){},Mr={},Dr={},Lr={mark:Nr,measure:Nr};try{"undefined"!==typeof window&&(Mr=window),"undefined"!==typeof document&&(Dr=document),"undefined"!==typeof MutationObserver&&MutationObserver,"undefined"!==typeof performance&&(Lr=performance)}catch(Wz){}var Fr=(Mr.navigator||{}).userAgent,zr=void 0===Fr?"":Fr,Br=Mr,$r=Dr,Hr=Lr,Ur=(Br.document,!!$r.documentElement&&!!$r.head&&"function"===typeof $r.addEventListener&&"function"===typeof $r.createElement),Wr=(~zr.indexOf("MSIE")||zr.indexOf("Trident/"),"___FONT_AWESOME___"),Vr="svg-inline--fa",qr="data-fa-i2svg",Gr=(function(){try{return!0}catch(Wz){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),Qr=Gr.concat([11,12,13,14,15,16,17,18,19,20]),Kr={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Jr=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",Kr.GROUP,Kr.SWAP_OPACITY,Kr.PRIMARY,Kr.SECONDARY].concat(Gr.map((function(e){return"".concat(e,"x")}))).concat(Qr.map((function(e){return"w-".concat(e)}))),Br.FontAwesomeConfig||{});if($r&&"function"===typeof $r.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=Pr(e,2),r=t[0],n=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=$r.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(r));void 0!==o&&null!==o&&(Jr[n]=o)}))}var Xr=Ir({},{familyPrefix:"fa",replacementClass:Vr,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Jr);Xr.autoReplaceSvg||(Xr.observeMutations=!1);var Yr=Ir({},Xr);Br.FontAwesomeConfig=Yr;var Zr=Br||{};Zr[Wr]||(Zr[Wr]={}),Zr[Wr].styles||(Zr[Wr].styles={}),Zr[Wr].hooks||(Zr[Wr].hooks={}),Zr[Wr].shims||(Zr[Wr].shims=[]);var en=Zr[Wr],tn=[];Ur&&(($r.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($r.readyState)||$r.addEventListener("DOMContentLoaded",(function e(){$r.removeEventListener("DOMContentLoaded",e),tn.map((function(e){return e()}))})));var rn,nn="pending",on="settled",sn="fulfilled",an="rejected",ln=function(){},un="undefined"!==typeof r.g&&"undefined"!==typeof r.g.process&&"function"===typeof r.g.process.emit,cn="undefined"===typeof setImmediate?setTimeout:setImmediate,dn=[];function pn(){for(var e=0;e<dn.length;e++)dn[e][0](dn[e][1]);dn=[],rn=!1}function hn(e,t){dn.push([e,t]),rn||(rn=!0,cn(pn,0))}function fn(e){var t=e.owner,r=t._state,n=t._data,o=e[r],i=e.then;if("function"===typeof o){r=sn;try{n=o(n)}catch(Wz){bn(i,Wz)}}mn(i,n)||(r===sn&&gn(i,n),r===an&&bn(i,n))}function mn(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"===typeof t||"object"===jr(t))){var n=t.then;if("function"===typeof n)return n.call(t,(function(n){r||(r=!0,t===n?vn(e,n):gn(e,n))}),(function(t){r||(r=!0,bn(e,t))})),!0}}catch(Wz){return r||bn(e,Wz),!0}return!1}function gn(e,t){e!==t&&mn(e,t)||vn(e,t)}function vn(e,t){e._state===nn&&(e._state=on,e._data=t,hn(xn,e))}function bn(e,t){e._state===nn&&(e._state=on,e._data=t,hn(wn,e))}function yn(e){e._then=e._then.forEach(fn)}function xn(e){e._state=sn,yn(e)}function wn(e){e._state=an,yn(e),!e._handled&&un&&r.g.process.emit("unhandledRejection",e._data,e)}function _n(e){r.g.process.emit("rejectionHandled",e)}function Sn(e){if("function"!==typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof Sn===!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function r(e){bn(t,e)}try{e((function(e){gn(t,e)}),r)}catch(Wz){r(Wz)}}(e,this)}Sn.prototype={constructor:Sn,_state:nn,_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(ln),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===an&&un&&hn(_n,this)),this._state===sn||this._state===an?hn(fn,r):this._then.push(r),r.then},catch:function(e){return this.then(null,e)}},Sn.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new Sn((function(t,r){var n=[],o=0;function i(e){return o++,function(r){n[e]=r,--o||t(n)}}for(var s,a=0;a<e.length;a++)(s=e[a])&&"function"===typeof s.then?s.then(i(a),r):n[a]=s;o||t(n)}))},Sn.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new Sn((function(t,r){for(var n,o=0;o<e.length;o++)(n=e[o])&&"function"===typeof n.then?n.then(t,r):t(n)}))},Sn.resolve=function(e){return e&&"object"===jr(e)&&e.constructor===Sn?e:new Sn((function(t){t(e)}))},Sn.reject=function(e){return new Sn((function(t,r){r(e)}))};var An={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Cn(e){if(e&&Ur){var t=$r.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=$r.head.childNodes,n=null,o=r.length-1;o>-1;o--){var i=r[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(n=i)}return $r.head.insertBefore(t,n),e}}function kn(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function En(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Rn(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,": ").concat(e[r],";")}),"")}function jn(e){return e.size!==An.size||e.x!==An.x||e.y!==An.y||e.rotate!==An.rotate||e.flipX||e.flipY}function On(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,o={transform:"translate(".concat(r/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(s," ").concat(a)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var Tn={x:0,y:0,width:"100%",height:"100%"};function In(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Pn(e){var t=e.icons,r=t.main,n=t.mask,o=e.prefix,i=e.iconName,s=e.transform,a=e.symbol,l=e.title,u=e.maskId,c=e.titleId,d=e.extra,p=e.watchable,h=void 0!==p&&p,f=n.found?n:r,m=f.width,g=f.height,v="fak"===o,b=v?"":"fa-w-".concat(Math.ceil(m/g*16)),y=[Yr.replacementClass,i?"".concat(Yr.familyPrefix,"-").concat(i):"",b].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),x={children:[],attributes:Ir({},d.attributes,{"data-prefix":o,"data-icon":i,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},w=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};h&&(x.attributes[qr]=""),l&&x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(c||kn())},children:[l]});var _=Ir({},x,{prefix:o,iconName:i,main:r,mask:n,maskId:u,transform:s,symbol:a,styles:Ir({},w,d.styles)}),S=n.found&&r.found?function(e){var t,r=e.children,n=e.attributes,o=e.main,i=e.mask,s=e.maskId,a=e.transform,l=o.width,u=o.icon,c=i.width,d=i.icon,p=On({transform:a,containerWidth:c,iconWidth:l}),h={tag:"rect",attributes:Ir({},Tn,{fill:"white"})},f=u.children?{children:u.children.map(In)}:{},m={tag:"g",attributes:Ir({},p.inner),children:[In(Ir({tag:u.tag,attributes:Ir({},u.attributes,p.path)},f))]},g={tag:"g",attributes:Ir({},p.outer),children:[m]},v="mask-".concat(s||kn()),b="clip-".concat(s||kn()),y={tag:"mask",attributes:Ir({},Tn,{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=d,"g"===t.tag?t.children:[t])},y]};return r.push(x,{tag:"rect",attributes:Ir({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(v,")")},Tn)}),{children:r,attributes:n}}(_):function(e){var t=e.children,r=e.attributes,n=e.main,o=e.transform,i=Rn(e.styles);if(i.length>0&&(r.style=i),jn(o)){var s=On({transform:o,containerWidth:n.width,iconWidth:n.width});t.push({tag:"g",attributes:Ir({},s.outer),children:[{tag:"g",attributes:Ir({},s.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Ir({},n.icon.attributes,s.path)}]}]})}else t.push(n.icon);return{children:t,attributes:r}}(_),A=S.children,C=S.attributes;return _.children=A,_.attributes=C,a?function(e){var t=e.prefix,r=e.iconName,n=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ir({},o,{id:!0===i?"".concat(t,"-").concat(Yr.familyPrefix,"-").concat(r):i}),children:n}]}]}(_):function(e){var t=e.children,r=e.main,n=e.mask,o=e.attributes,i=e.styles,s=e.transform;if(jn(s)&&r.found&&!n.found){var a={x:r.width/r.height/2,y:.5};o.style=Rn(Ir({},i,{"transform-origin":"".concat(a.x+s.x/16,"em ").concat(a.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(_)}var Nn=function(){},Mn=(Yr.measurePerformance&&Hr&&Hr.mark&&Hr.measure,function(e,t,r,n){var o,i,s,a=Object.keys(e),l=a.length,u=void 0!==n?function(e,t){return function(r,n,o,i){return e.call(t,r,n,o,i)}}(t,n):t;for(void 0===r?(o=1,s=e[a[0]]):(o=0,s=r);o<l;o++)s=u(s,e[i=a[o]],i,e);return s});function Dn(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,n=void 0!==r&&r,o=Object.keys(t).reduce((function(e,r){var n=t[r];return!!n.icon?e[n.iconName]=n.icon:e[r]=n,e}),{});"function"!==typeof en.hooks.addPack||n?en.styles[e]=Ir({},en.styles[e]||{},o):en.hooks.addPack(e,o),"fas"===e&&Dn("fa",t)}var Ln=en.styles,Fn=en.shims,zn=function(){var e=function(e){return Mn(Ln,(function(t,r,n){return t[n]=Mn(r,e,{}),t}),{})};e((function(e,t,r){return t[3]&&(e[t[3]]=r),e})),e((function(e,t,r){var n=t[2];return e[r]=r,n.forEach((function(t){e[t]=r})),e}));var t="far"in Ln;Mn(Fn,(function(e,r){var n=r[0],o=r[1],i=r[2];return"far"!==o||t||(o="fas"),e[n]={prefix:o,iconName:i},e}),{})};zn();en.styles;function Bn(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}function $n(e){var t=e.tag,r=e.attributes,n=void 0===r?{}:r,o=e.children,i=void 0===o?[]:o;return"string"===typeof e?En(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,r){return t+"".concat(r,'="').concat(En(e[r]),'" ')}),"").trim()}(n),">").concat(i.map($n).join(""),"</").concat(t,">")}var Hn=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var r=t.toLowerCase().split("-"),n=r[0],o=r.slice(1).join("-");if(n&&"h"===o)return e.flipX=!0,e;if(n&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(n){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),t):t};function Un(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}Un.prototype=Object.create(Error.prototype),Un.prototype.constructor=Un;var Wn={fill:"currentColor"},Vn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},qn={tag:"path",attributes:Ir({},Wn,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},Gn=Ir({},Vn,{attributeName:"opacity"});Ir({},Wn,{cx:"256",cy:"364",r:"28"}),Ir({},Vn,{attributeName:"r",values:"28;14;28;28;14;28;"}),Ir({},Gn,{values:"1;0;1;1;0;1;"}),Ir({},Wn,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),Ir({},Gn,{values:"1;0;0;0;0;1;"}),Ir({},Wn,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),Ir({},Gn,{values:"0;0;1;1;0;0;"}),en.styles;function Qn(e){var t=e[0],r=e[1],n=Pr(e.slice(4),1)[0];return{found:!0,width:t,height:r,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(Yr.familyPrefix,"-").concat(Kr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Yr.familyPrefix,"-").concat(Kr.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(Yr.familyPrefix,"-").concat(Kr.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}en.styles;function Kn(){var e="fa",t=Vr,r=Yr.familyPrefix,n=Yr.replacementClass,o='svg:not(:root).svg-inline--fa {\n  overflow: visible;\n}\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n  width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n  width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n  width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n  width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n  width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n  width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n  width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n  width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n  width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n  width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n  width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n  width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n  width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n  width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n  width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n  width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n  width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n  width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n  width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n  width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-border {\n  height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n  width: 2em;\n}\n.svg-inline--fa.fa-fw {\n  width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: 0.25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-lg {\n  font-size: 1.3333333333em;\n  line-height: 0.75em;\n  vertical-align: -0.0667em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit;\n}\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: 0.1em;\n  padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n  float: left;\n}\n\n.fa-pull-right {\n  float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: 0.3em;\n}\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n  -webkit-filter: none;\n          filter: none;\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: #fff;\n}\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse {\n  color: #fff;\n}';if(r!==e||n!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(r,"-")).replace(s,"--".concat(r,"-")).replace(a,".".concat(n))}return o}function Jn(){Yr.autoAddCss&&!to&&(Cn(Kn()),to=!0)}function Xn(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return $n(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(Ur){var t=$r.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Yn(e){var t=e.prefix,r=void 0===t?"fa":t,n=e.iconName;if(n)return Bn(eo.definitions,r,n)||Bn(en.styles,r,n)}var Zn,eo=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,r,n;return t=e,r=[{key:"add",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.reduce(this._pullDefinitions,{});Object.keys(o).forEach((function(t){e.definitions[t]=Ir({},e.definitions[t]||{},o[t]),Dn(t,o[t]),zn()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var r=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(r).map((function(t){var n=r[t],o=n.prefix,i=n.iconName,s=n.icon;e[o]||(e[o]={}),e[o][i]=s})),e}}],r&&Or(t.prototype,r),n&&Or(t,n),e}()),to=!1,ro={transform:function(e){return Hn(e)}},no=(Zn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?An:r,o=t.symbol,i=void 0!==o&&o,s=t.mask,a=void 0===s?null:s,l=t.maskId,u=void 0===l?null:l,c=t.title,d=void 0===c?null:c,p=t.titleId,h=void 0===p?null:p,f=t.classes,m=void 0===f?[]:f,g=t.attributes,v=void 0===g?{}:g,b=t.styles,y=void 0===b?{}:b;if(e){var x=e.prefix,w=e.iconName,_=e.icon;return Xn(Ir({type:"icon"},e),(function(){return Jn(),Yr.autoA11y&&(d?v["aria-labelledby"]="".concat(Yr.replacementClass,"-title-").concat(h||kn()):(v["aria-hidden"]="true",v.focusable="false")),Pn({icons:{main:Qn(_),mask:a?Qn(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:w,transform:Ir({},An,n),symbol:i,title:d,maskId:u,titleId:h,extra:{attributes:v,styles:y,classes:m}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(e||{}).icon?e:Yn(e||{}),n=t.mask;return n&&(n=(n||{}).icon?n:Yn(n||{})),Zn(r,Ir({},t,{mask:n}))});function oo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function io(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(r),!0).forEach((function(t){ao(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function so(e){return so="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},so(e)}function ao(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lo(e,t){if(null==e)return{};var r,n,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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function uo(e){return function(e){if(Array.isArray(e))return co(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)return;if("string"===typeof e)return co(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return co(e,t)}(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 co(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 po(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var ho=["style"];var fo=!1;try{fo=!0}catch(Wz){}function mo(e){return e&&"object"===so(e)&&e.prefix&&e.iconName&&e.icon?e:ro.icon?ro.icon(e):null===e?null:e&&"object"===so(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}function go(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ao({},e,t):{}}var vo={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},bo=i.forwardRef((function(e,t){var r=io(io({},vo),e),n=r.icon,o=r.mask,i=r.symbol,s=r.className,a=r.title,l=r.titleId,u=r.maskId,c=mo(n),d=go("classes",[].concat(uo(function(e){var t,r=e.beat,n=e.fade,o=e.beatFade,i=e.bounce,s=e.shake,a=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,d=e.pulse,p=e.fixedWidth,h=e.inverse,f=e.border,m=e.listItem,g=e.flip,v=e.size,b=e.rotation,y=e.pull,x=(ao(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":d,"fa-fw":p,"fa-inverse":h,"fa-border":f,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(v),"undefined"!==typeof v&&null!==v),ao(t,"fa-rotate-".concat(b),"undefined"!==typeof b&&null!==b&&0!==b),ao(t,"fa-pull-".concat(y),"undefined"!==typeof y&&null!==y),ao(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(x).map((function(e){return x[e]?e:null})).filter((function(e){return e}))}(r)),uo((s||"").split(" ")))),p=go("transform","string"===typeof r.transform?ro.transform(r.transform):r.transform),h=go("mask",mo(o)),f=no(c,io(io(io(io({},d),p),h),{},{symbol:i,title:a,titleId:l,maskId:u}));if(!f)return function(){var e;!fo&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var m=f.abstract,g={ref:t};return Object.keys(r).forEach((function(e){vo.hasOwnProperty(e)||(g[e]=r[e])})),yo(m[0],g)}));bo.displayName="FontAwesomeIcon",bo.propTypes={beat:Xe().bool,border:Xe().bool,beatFade:Xe().bool,bounce:Xe().bool,className:Xe().string,fade:Xe().bool,flash:Xe().bool,mask:Xe().oneOfType([Xe().object,Xe().array,Xe().string]),maskId:Xe().string,fixedWidth:Xe().bool,inverse:Xe().bool,flip:Xe().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Xe().oneOfType([Xe().object,Xe().array,Xe().string]),listItem:Xe().bool,pull:Xe().oneOf(["right","left"]),pulse:Xe().bool,rotation:Xe().oneOf([0,90,180,270]),shake:Xe().bool,size:Xe().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Xe().bool,spinPulse:Xe().bool,spinReverse:Xe().bool,symbol:Xe().oneOfType([Xe().bool,Xe().string]),title:Xe().string,titleId:Xe().string,transform:Xe().oneOfType([Xe().string,Xe().object]),swapOpacity:Xe().bool};var yo=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof r)return r;var o=(r.children||[]).map((function(r){return e(t,r)})),i=Object.keys(r.attributes||{}).reduce((function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=n.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var r,n=t.indexOf(":"),o=po(t.slice(0,n)),i=t.slice(n+1).trim();return o.startsWith("webkit")?e[(r=o,r.charAt(0).toUpperCase()+r.slice(1))]=i:e[o]=i,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[po(t)]=n}return e}),{attrs:{}}),s=n.style,a=void 0===s?{}:s,l=lo(n,ho);return i.attrs.style=io(io({},i.attrs.style),a),t.apply(void 0,[r.tag,io(io({},i.attrs),l)].concat(uo(o)))}.bind(null,i.createElement);const xo={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},wo={prefix:"fas",iconName:"folder",icon:[512,512,[128193,128447,61716,"folder-blank"],"f07b","M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8L243.2 57.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"]},_o={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l96 0 32 0 208 0c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},So={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Ao=So,Co={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},ko={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},Eo=ko,Ro={prefix:"fas",iconName:"paperclip",icon:[448,512,[128206],"f0c6","M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"]},jo={prefix:"fas",iconName:"images",icon:[576,512,[],"f302","M160 32c-35.3 0-64 28.7-64 64l0 224c0 35.3 28.7 64 64 64l352 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L160 32zM396 138.7l96 144c4.9 7.4 5.4 16.8 1.2 24.6S480.9 320 472 320l-144 0-48 0-80 0c-9.2 0-17.6-5.3-21.6-13.6s-2.9-18.2 2.9-25.4l64-80c4.6-5.7 11.4-9 18.7-9s14.2 3.3 18.7 9l17.3 21.6 56-84C360.5 132 368 128 376 128s15.5 4 20 10.7zM192 128a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM48 120c0-13.3-10.7-24-24-24S0 106.7 0 120L0 344c0 75.1 60.9 136 136 136l320 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-320 0c-48.6 0-88-39.4-88-88l0-224z"]},Oo={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},To=Oo,Io={prefix:"fas",iconName:"angle-down",icon:[448,512,[8964],"f107","M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},Po={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},No={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Mo=No,Do={prefix:"fas",iconName:"user-shield",icon:[640,512,[],"f505","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c1.8 0 3.5-.2 5.3-.5c-76.3-55.1-99.8-141-103.1-200.2c-16.1-4.8-33.1-7.3-50.7-7.3l-91.4 0zm308.8-78.3l-120 48C358 277.4 352 286.2 352 296c0 63.3 25.9 168.8 134.8 214.2c5.9 2.5 12.6 2.5 18.5 0C614.1 464.8 640 359.3 640 296c0-9.8-6-18.6-15.1-22.3l-120-48c-5.7-2.3-12.1-2.3-17.8 0zM591.4 312c-3.9 50.7-27.2 116.7-95.4 149.7l0-187.8L591.4 312z"]},Lo={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},Fo={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},zo=Fo,Bo={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},$o={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Ho={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Uo=Ho;var Wo=r(7387);const Vo=!1,qo=i.createContext(null);var Go="unmounted",Qo="exited",Ko="entering",Jo="entered",Xo="exiting",Yo=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Qo,n.appearStatus=Ko):o=Jo:o=t.unmountOnExit||t.mountOnEnter?Go:Qo,n.state={status:o},n.nextCallback=null,n}(0,Wo.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Go?{status:Qo}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Ko&&r!==Jo&&(t=Ko):r!==Ko&&r!==Jo||(t=Xo)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!==typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ko){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:n.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qo&&this.setState({status:Go})},r.performEnter=function(e){var t=this,r=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[n.findDOMNode(this),o],s=i[0],a=i[1],l=this.getTimeouts(),u=o?l.appear:l.enter;!e&&!r||Vo?this.safeSetState({status:Jo},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,a),this.safeSetState({status:Ko},(function(){t.props.onEntering(s,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:Jo},(function(){t.props.onEntered(s,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:n.findDOMNode(this);t&&!Vo?(this.props.onExit(o),this.safeSetState({status:Xo},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Qo},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Qo},(function(){e.props.onExited(o)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:n.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],s=i[0],a=i[1];this.props.addEndListener(s,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Go)return null;var t=this.props,r=t.children,n=(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,(0,Lt.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(qo.Provider,{value:null},"function"===typeof r?r(e,n):i.cloneElement(i.Children.only(r),n))},t}(i.Component);function Zo(){}Yo.contextType=qo,Yo.propTypes={},Yo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zo,onEntering:Zo,onEntered:Zo,onExit:Zo,onExiting:Zo,onExited:Zo},Yo.UNMOUNTED=Go,Yo.EXITED=Qo,Yo.ENTERING=Ko,Yo.ENTERED=Jo,Yo.EXITING=Xo;const ei=Yo;var ti=r(9303),ri=r(4318);const ni=e=>e.scrollTop;function oi(e,t){var r,n;const{timeout:o,easing:i,style:s={}}=e;return{duration:null!=(r=s.transitionDuration)?r:"number"===typeof o?o:o[t.mode]||0,easing:null!=(n=s.transitionTimingFunction)?n:"object"===typeof i?i[t.mode]:i,delay:s.transitionDelay}}var ii=r(5849);function si(e){return(0,qt.Ay)("MuiCollapse",e)}(0,Vt.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const ai=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],li=(0,Ht.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],"entered"===r.state&&t.entered,"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&t.hidden]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===r.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===r.state&&(0,Ft.A)({height:"auto",overflow:"visible"},"horizontal"===r.orientation&&{width:"auto"}),"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&{visibility:"hidden"})})),ui=(0,Ht.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((e=>{let{ownerState:t}=e;return(0,Ft.A)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),ci=(0,Ht.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((e=>{let{ownerState:t}=e;return(0,Ft.A)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),di=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiCollapse"}),{addEndListener:n,children:o,className:s,collapsedSize:a="0px",component:l,easing:u,in:c,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:m,onExiting:g,orientation:v="vertical",style:b,timeout:y=ri.p0.standard,TransitionComponent:x=ei}=r,w=(0,Lt.A)(r,ai),_=(0,Ft.A)({},r,{orientation:v,collapsedSize:a}),S=(e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,$t.A)(n,si,r)})(_),A=br(),C=(0,ti.A)(),k=i.useRef(null),E=i.useRef(),R="number"===typeof a?`${a}px`:a,j="horizontal"===v,O=j?"width":"height",T=i.useRef(null),I=(0,ii.A)(t,T),P=e=>t=>{if(e){const r=T.current;void 0===t?e(r):e(r,t)}},N=()=>k.current?k.current[j?"clientWidth":"clientHeight"]:0,M=P(((e,t)=>{k.current&&j&&(k.current.style.position="absolute"),e.style[O]=R,d&&d(e,t)})),D=P(((e,t)=>{const r=N();k.current&&j&&(k.current.style.position="");const{duration:n,easing:o}=oi({style:b,timeout:y,easing:u},{mode:"enter"});if("auto"===y){const t=A.transitions.getAutoHeightDuration(r);e.style.transitionDuration=`${t}ms`,E.current=t}else e.style.transitionDuration="string"===typeof n?n:`${n}ms`;e.style[O]=`${r}px`,e.style.transitionTimingFunction=o,h&&h(e,t)})),L=P(((e,t)=>{e.style[O]="auto",p&&p(e,t)})),F=P((e=>{e.style[O]=`${N()}px`,f&&f(e)})),z=P(m),B=P((e=>{const t=N(),{duration:r,easing:n}=oi({style:b,timeout:y,easing:u},{mode:"exit"});if("auto"===y){const r=A.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${r}ms`,E.current=r}else e.style.transitionDuration="string"===typeof r?r:`${r}ms`;e.style[O]=R,e.style.transitionTimingFunction=n,g&&g(e)}));return(0,Ne.jsx)(x,(0,Ft.A)({in:c,onEnter:M,onEntered:L,onEntering:D,onExit:F,onExited:z,onExiting:B,addEndListener:e=>{"auto"===y&&C.start(E.current||0,e),n&&n(T.current,e)},nodeRef:T,timeout:"auto"===y?null:y},w,{children:(e,t)=>(0,Ne.jsx)(li,(0,Ft.A)({as:l,className:(0,zt.A)(S.root,s,{entered:S.entered,exited:!c&&"0px"===R&&S.hidden}[e]),style:(0,Ft.A)({[j?"minWidth":"minHeight"]:R},b),ref:I},t,{ownerState:(0,Ft.A)({},_,{state:e}),children:(0,Ne.jsx)(ui,{ownerState:(0,Ft.A)({},_,{state:e}),className:S.wrapper,ref:k,children:(0,Ne.jsx)(ci,{ownerState:(0,Ft.A)({},_,{state:e}),className:S.wrapperInner,children:o})})}))}))}));di.muiSupportAuto=!0;const pi=di;var hi=r(1707),fi=r(7266),mi=r(3319),gi=r(3574);function vi(e,t){var r=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),r}function bi(e,t,r){return null!=r[t]?r[t]:e.props[t]}function yi(e,t,r){var n=vi(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var s in e)s in t?i.length&&(o[s]=i,i=[]):i.push(s);var a={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];a[o[l][n]]=r(u)}a[l]=r(l)}for(n=0;n<i.length;n++)a[i[n]]=r(i[n]);return a}(t,n);return Object.keys(o).forEach((function(s){var a=o[s];if((0,i.isValidElement)(a)){var l=s in t,u=s in n,c=t[s],d=(0,i.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,i.isValidElement)(c)&&(o[s]=(0,i.cloneElement)(a,{onExited:r.bind(null,a),in:c.props.in,exit:bi(a,"exit",e),enter:bi(a,"enter",e)})):o[s]=(0,i.cloneElement)(a,{in:!1}):o[s]=(0,i.cloneElement)(a,{onExited:r.bind(null,a),in:!0,exit:bi(a,"exit",e),enter:bi(a,"enter",e)})}})),o}var xi=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},wi=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind((0,qe.A)(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}(0,Wo.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,s=t.handleExited;return{children:t.firstRender?(r=e,n=s,vi(r.children,(function(e){return(0,i.cloneElement)(e,{onExited:n.bind(null,e),in:!0,appear:bi(e,"appear",r),enter:bi(e,"enter",r),exit:bi(e,"exit",r)})}))):yi(e,o,s),firstRender:!1}},r.handleExited=function(e,t){var r=vi(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,Ft.A)({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=(0,Lt.A)(e,["component","childFactory"]),o=this.state.contextValue,s=xi(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?i.createElement(qo.Provider,{value:o},s):i.createElement(qo.Provider,{value:o},i.createElement(t,n,s))},t}(i.Component);wi.propTypes={},wi.defaultProps={component:"div",childFactory:function(e){return e}};const _i=wi;var Si=r(3290);const Ai=function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:s,rippleSize:a,in:l,onExited:u,timeout:c}=e,[d,p]=i.useState(!1),h=(0,zt.A)(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+s,left:-a/2+o},m=(0,zt.A)(r.child,d&&r.childLeaving,n&&r.childPulsate);return l||d||p(!0),i.useEffect((()=>{if(!l&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,l,c]),(0,Ne.jsx)("span",{className:h,style:f,children:(0,Ne.jsx)("span",{className:m})})};const Ci=(0,Vt.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ki=["center","classes","className"];let Ei,Ri,ji,Oi,Ti=e=>e;const Ii=(0,Si.i7)(Ei||(Ei=Ti`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),Pi=(0,Si.i7)(Ri||(Ri=Ti`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),Ni=(0,Si.i7)(ji||(ji=Ti`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),Mi=(0,Ht.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Di=(0,Ht.Ay)(Ai,{name:"MuiTouchRipple",slot:"Ripple"})(Oi||(Oi=Ti`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),Ci.rippleVisible,Ii,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Ci.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),Ci.child,Ci.childLeaving,Pi,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Ci.childPulsate,Ni,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),Li=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:s}=r,a=(0,Lt.A)(r,ki),[l,u]=i.useState([]),c=i.useRef(0),d=i.useRef(null);i.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=i.useRef(!1),h=(0,ti.A)(),f=i.useRef(null),m=i.useRef(null),g=i.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:s}=e;u((e=>[...e,(0,Ne.jsx)(Di,{classes:{ripple:(0,zt.A)(o.ripple,Ci.ripple),rippleVisible:(0,zt.A)(o.rippleVisible,Ci.rippleVisible),ripplePulsate:(0,zt.A)(o.ripplePulsate,Ci.ripplePulsate),child:(0,zt.A)(o.child,Ci.child),childLeaving:(0,zt.A)(o.childLeaving,Ci.childLeaving),childPulsate:(0,zt.A)(o.childPulsate,Ci.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)])),c.current+=1,d.current=s}),[o]),v=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const a=s?null:m.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(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)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},h.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[n,g,h]),b=i.useCallback((()=>{v({},{pulsate:!0})}),[v]),y=i.useCallback(((e,t)=>{if(h.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void h.start(0,(()=>{y(e,t)}));f.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[h]);return i.useImperativeHandle(t,(()=>({pulsate:b,start:v,stop:y})),[b,v,y]),(0,Ne.jsx)(Mi,(0,Ft.A)({className:(0,zt.A)(Ci.root,o.root,s),ref:m},a,{children:(0,Ne.jsx)(_i,{component:null,exit:!0,children:l})}))}));function Fi(e){return(0,qt.Ay)("MuiButtonBase",e)}const zi=(0,Vt.A)("MuiButtonBase",["root","disabled","focusVisible"]),Bi=["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"],$i=(0,Ht.Ay)("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"},[`&.${zi.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Hi=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:f,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:b,onFocusVisible:y,onKeyDown:x,onKeyUp:w,onMouseDown:_,onMouseLeave:S,onMouseUp:A,onTouchEnd:C,onTouchMove:k,onTouchStart:E,tabIndex:R=0,TouchRippleProps:j,touchRippleRef:O,type:T}=r,I=(0,Lt.A)(r,Bi),P=i.useRef(null),N=i.useRef(null),M=(0,ii.A)(N,O),{isFocusVisibleRef:D,onFocus:L,onBlur:F,ref:z}=(0,gi.A)(),[B,$]=i.useState(!1);u&&B&&$(!1),i.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),P.current.focus()}})),[]);const[H,U]=i.useState(!1);i.useEffect((()=>{U(!0)}),[]);const W=H&&!c&&!u;function V(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return(0,mi.A)((n=>{t&&t(n);return!r&&N.current&&N.current[e](n),!0}))}i.useEffect((()=>{B&&p&&!c&&H&&N.current.pulsate()}),[c,p,B,H]);const q=V("start",_),G=V("stop",g),Q=V("stop",v),K=V("stop",A),J=V("stop",(e=>{B&&e.preventDefault(),S&&S(e)})),X=V("start",E),Y=V("stop",C),Z=V("stop",k),ee=V("stop",(e=>{F(e),!1===D.current&&$(!1),f&&f(e)}),!1),te=(0,mi.A)((e=>{P.current||(P.current=e.currentTarget),L(e),!0===D.current&&($(!0),y&&y(e)),b&&b(e)})),re=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=i.useRef(!1),oe=(0,mi.A)((e=>{p&&!ne.current&&B&&N.current&&" "===e.key&&(ne.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=(0,mi.A)((e=>{p&&" "===e.key&&N.current&&B&&!e.defaultPrevented&&(ne.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),w&&w(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let se=l;"button"===se&&(I.href||I.to)&&(se=h);const ae={};"button"===se?(ae.type=void 0===T?"button":T,ae.disabled=u):(I.href||I.to||(ae.role="button"),u&&(ae["aria-disabled"]=u));const le=(0,ii.A)(t,z,P);const ue=(0,Ft.A)({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:R,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i={root:["root",t&&"disabled",r&&"focusVisible"]},s=(0,$t.A)(i,Fi,o);return r&&n&&(s.root+=` ${n}`),s})(ue);return(0,Ne.jsxs)($i,(0,Ft.A)({as:se,className:(0,zt.A)(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:q,onMouseLeave:J,onMouseUp:K,onDragLeave:Q,onTouchEnd:Y,onTouchMove:Z,onTouchStart:X,ref:le,tabIndex:u?-1:R,type:T},ae,I,{children:[s,W?(0,Ne.jsx)(Li,(0,Ft.A)({ref:M,center:o},j)):null]}))}));function Ui(e){return(0,qt.Ay)("MuiIconButton",e)}const Wi=(0,Vt.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Vi=["edge","children","className","color","disabled","disableFocusRipple","size"],qi=(0,Ht.Ay)(Hi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${(0,Wt.A)(r.color)}`],r.edge&&t[`edge${(0,Wt.A)(r.edge)}`],t[`size${(0,Wt.A)(r.size)}`]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,fi.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(e=>{let{theme:t,ownerState:r}=e;var n;const o=null==(n=(t.vars||t).palette)?void 0:n[r.color];return(0,Ft.A)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,Ft.A)({color:null==o?void 0:o.main},!r.disableRipple&&{"&:hover":(0,Ft.A)({},o&&{backgroundColor:t.vars?`rgba(${o.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,fi.X4)(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${Wi.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),Gi=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:s="default",disabled:a=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=(0,Lt.A)(r,Vi),d=(0,Ft.A)({},r,{edge:n,color:s,disabled:a,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,s={root:["root",r&&"disabled","default"!==n&&`color${(0,Wt.A)(n)}`,o&&`edge${(0,Wt.A)(o)}`,`size${(0,Wt.A)(i)}`]};return(0,$t.A)(s,Ui,t)})(d);return(0,Ne.jsx)(qi,(0,Ft.A)({className:(0,zt.A)(p.root,i),centerRipple:!0,focusRipple:!l,disabled:a,ref:t},c,{ownerState:d,children:o}))}));function Qi(e){var[t,r]=(0,i.useState)(!1);console.debug("%c\u2299ErrorPage Props: ","color:#00ff7b",e);var n={message:e.errorValue.message?e.errorValue.message:"Error: No Message Included",stack:e.errorValue.stack?e.errorValue.stack:"No Stack Trace Available",fileName:e.errorValue.fileName?e.errorValue.fileName:"No File Name Available",lineNumber:e.errorValue.lineNumber?e.errorValue.lineNumber:"No Line Number Available",columnNumber:e.errorValue.columnNumber?e.errorValue.columnNumber:"No Column Number Available"};return(0,Ne.jsx)("div",{className:"error-page p-1",children:(0,Ne.jsx)(mr,{sx:{backgroundColor:"white",width:"100%","& span, h2":{display:"inline-block",padding:"5px"}},children:(0,Ne.jsxs)(Rr,{container:!0,className:"p-2",children:[(0,Ne.jsxs)(Rr,{item:!0,xs:12,className:"mb-4",sx:{backgroundColor:"#dc3545",color:"#fff",width:"100%",padding:1},children:[(0,Ne.jsxs)(Yt,{variant:"h2",align:"left",children:[(0,Ne.jsx)(bo,{icon:Uo,sx:{padding:1}}),"  Sorry!  "]}),(0,Ne.jsx)(Yt,{align:"left",variant:"body",children:"Something's gone wrong..."})]}),(0,Ne.jsx)(Rr,{item:!0,xs:7,className:"mb-4",children:(0,Ne.jsxs)(Yt,{variant:"body",children:["There's been an error handling the current task. Please try again later. ",(0,Ne.jsx)("br",{}),"If the problem persists, please contact the HuBMAP Help Desk at ",(0,Ne.jsx)("a",{href:"mailto:help@hubmapconsortium.org",children:"help@hubmapconsortium.org"})]})}),(0,Ne.jsxs)(Rr,{item:!0,xs:12,sx:{backgroundColor:"#fcfad9",padding:"4px 8px",color:"#dc3545"},children:[(0,Ne.jsx)(Yt,{variant:"h5",gutterBottom:!0,children:"Error: "}),n.message&&n.message.length>0&&(0,Ne.jsxs)(mr,{sx:{width:"100%",fontSize:"1.8em",padding:1,marginBottom:2,backgroundColor:"white",color:"#dc3545"},children:[n.message," ",(0,Ne.jsx)("br",{}),(0,Ne.jsxs)(Yt,{children:[(0,Ne.jsx)("strong",{children:"File:"})," ",n.fileName,"  "]}),(0,Ne.jsxs)(Yt,{children:[(0,Ne.jsx)("strong",{children:"Line Number:"})," ",n.lineNumber," | ",(0,Ne.jsx)("strong",{children:"Column Number:"})," ",n.columnNumber," |"]})]}),(0,Ne.jsxs)(Yt,{variant:"h5",gutterBottom:!0,children:["View Stack Trace:",(0,Ne.jsxs)(Gi,{color:"error",size:"small",onClick:()=>r(!t),children:[" ",(0,Ne.jsx)(hi.A,{})]})," "]}),(0,Ne.jsx)(pi,{in:t,sx:{backgroundColor:"white",color:"#dc3545",padding:"3em"},children:(0,Ne.jsx)(Yt,{variant:"subtitle1",children:n.stack})})]})]})})})}class Ki extends i.Component{constructor(e){super(e),this.state={hasError:!1,error:void 0}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.debug("%c\u274c ERROR WRAP | ","color:#ff005d",e,t)}render(){return this.state.hasError?(console.debug("%c\u2b57 Has Error Confirmed","color:#ff005d",typeof this.state.error),(0,Ne.jsx)(Qi,{errorValue:this.state.error})):this.props.children}}const Ji=i.createContext();const Xi=()=>{const e=i.useContext(Ji);return null!=e&&e};function Yi(e){return(0,qt.Ay)("MuiLinearProgress",e)}(0,Vt.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Zi=["className","color","value","valueBuffer","variant"];let es,ts,rs,ns,os,is,ss=e=>e;const as=(0,Si.i7)(es||(es=ss`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`)),ls=(0,Si.i7)(ts||(ts=ss`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`)),us=(0,Si.i7)(rs||(rs=ss`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`)),cs=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,fi.a)(e.palette[t].main,.62):(0,fi.e$)(e.palette[t].main,.5),ds=(0,Ht.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${(0,Wt.A)(r.color)}`],t[r.variant]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Ft.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:cs(r,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),ps=(0,Ht.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${(0,Wt.A)(r.color)}`]]}})((e=>{let{ownerState:t,theme:r}=e;const n=cs(r,t.color);return(0,Ft.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,Si.AH)(ns||(ns=ss`
    animation: ${0} 3s infinite linear;
  `),us)),hs=(0,Ht.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${(0,Wt.A)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Ft.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .4s linear"},"buffer"===t.variant&&{zIndex:1,transition:"transform .4s linear"})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,Si.AH)(os||(os=ss`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    `),as)})),fs=(0,Ht.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${(0,Wt.A)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Ft.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:cs(r,t.color),transition:"transform .4s linear"})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,Si.AH)(is||(is=ss`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
    `),ls)})),ms=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiLinearProgress"}),{className:n,color:o="primary",value:i,valueBuffer:s,variant:a="indeterminate"}=r,l=(0,Lt.A)(r,Zi),u=(0,Ft.A)({},r,{color:o,variant:a}),c=(e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${(0,Wt.A)(n)}`,r],dashed:["dashed",`dashedColor${(0,Wt.A)(n)}`],bar1:["bar",`barColor${(0,Wt.A)(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&`barColor${(0,Wt.A)(n)}`,"buffer"===r&&`color${(0,Wt.A)(n)}`,("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,$t.A)(o,Yi,t)})(u),d=Xi(),p={},h={bar1:{},bar2:{}};if("determinate"===a||"buffer"===a)if(void 0!==i){p["aria-valuenow"]=Math.round(i),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=i-100;d&&(e=-e),h.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===a)if(void 0!==s){let e=(s||0)-100;d&&(e=-e),h.bar2.transform=`translateX(${e}%)`}else 0;return(0,Ne.jsxs)(ds,(0,Ft.A)({className:(0,zt.A)(c.root,n),ownerState:u,role:"progressbar"},p,{ref:t},l,{children:["buffer"===a?(0,Ne.jsx)(ps,{className:c.dashed,ownerState:u}):null,(0,Ne.jsx)(hs,{className:c.bar1,ownerState:u,style:h.bar1}),"determinate"===a?null:(0,Ne.jsx)(fs,{className:c.bar2,ownerState:u,style:h.bar2})]}))}));var gs=r(45),vs=r(643),bs=r(2454),ys=r(8553),xs=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.component,s=void 0===o?"div":o,a=e.square,l=void 0!==a&&a,u=e.elevation,c=void 0===u?1:u,d=e.variant,p=void 0===d?"elevation":d,h=(0,gs.A)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(s,(0,Ft.A)({className:(0,vs.A)(r.root,n,"outlined"===p?r.outlined:r["elevation".concat(c)],!l&&r.rounded),ref:t},h))}));const ws=(0,ys.A)((function(e){var t={};return e.shadows.forEach((function(e,r){t["elevation".concat(r)]={boxShadow:e}})),(0,Ft.A)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(xs);var _s=r(1917);const Ss=(0,_s.A)(i.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),As=(0,_s.A)(i.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Cs=(0,_s.A)(i.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ks=(0,_s.A)(i.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Es=(0,_s.A)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Rs=r(768),js=r(2158),Os=r(6836),Ts=r(436),Is="undefined"===typeof window?i.useEffect:i.useLayoutEffect;const Ps=function(e){var t=e.classes,r=e.pulsate,n=void 0!==r&&r,o=e.rippleX,s=e.rippleY,a=e.rippleSize,l=e.in,u=e.onExited,c=void 0===u?function(){}:u,d=e.timeout,p=i.useState(!1),h=p[0],f=p[1],m=(0,vs.A)(t.ripple,t.rippleVisible,n&&t.ripplePulsate),g={width:a,height:a,top:-a/2+s,left:-a/2+o},v=(0,vs.A)(t.child,h&&t.childLeaving,n&&t.childPulsate),b=(0,js.A)(c);return Is((function(){if(!l){f(!0);var e=setTimeout(b,d);return function(){clearTimeout(e)}}}),[b,l,d]),i.createElement("span",{className:m,style:g},i.createElement("span",{className:v}))};var Ns=i.forwardRef((function(e,t){var r=e.center,n=void 0!==r&&r,o=e.classes,s=e.className,a=(0,gs.A)(e,["center","classes","className"]),l=i.useState([]),u=l[0],c=l[1],d=i.useRef(0),p=i.useRef(null);i.useEffect((function(){p.current&&(p.current(),p.current=null)}),[u]);var h=i.useRef(!1),f=i.useRef(null),m=i.useRef(null),g=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var v=i.useCallback((function(e){var t=e.pulsate,r=e.rippleX,n=e.rippleY,s=e.rippleSize,a=e.cb;c((function(e){return[].concat((0,Ts.A)(e),[i.createElement(Ps,{key:d.current,classes:o,timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:s})])})),d.current+=1,p.current=a}),[o]),b=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,s=t.center,a=void 0===s?n||t.pulsate:s,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var c,d,p,b=u?null:g.current,y=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(a||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(y.width/2),d=Math.round(y.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,_=x.clientY;c=Math.round(w-y.left),d=Math.round(_-y.top)}if(a)(p=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2===0&&(p+=1);else{var S=2*Math.max(Math.abs((b?b.clientWidth:0)-c),c)+2,A=2*Math.max(Math.abs((b?b.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(S,2)+Math.pow(A,2))}e.touches?null===m.current&&(m.current=function(){v({pulsate:i,rippleX:c,rippleY:d,rippleSize:p,cb:r})},f.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):v({pulsate:i,rippleX:c,rippleY:d,rippleSize:p,cb:r})}}),[n,v]),y=i.useCallback((function(){b({},{pulsate:!0})}),[b]),x=i.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(f.current=setTimeout((function(){x(e,t)})));m.current=null,c((function(e){return e.length>0?e.slice(1):e})),p.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:y,start:b,stop:x}}),[y,b,x]),i.createElement("span",(0,Ft.A)({className:(0,vs.A)(o.root,s),ref:g},a),i.createElement(_i,{component:null,exit:!0},u))}));const Ms=(0,ys.A)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(Ns));var Ds=i.forwardRef((function(e,t){var r=e.action,o=e.buttonRef,s=e.centerRipple,a=void 0!==s&&s,l=e.children,u=e.classes,c=e.className,d=e.component,p=void 0===d?"button":d,h=e.disabled,f=void 0!==h&&h,m=e.disableRipple,g=void 0!==m&&m,v=e.disableTouchRipple,b=void 0!==v&&v,y=e.focusRipple,x=void 0!==y&&y,w=e.focusVisibleClassName,_=e.onBlur,S=e.onClick,A=e.onFocus,C=e.onFocusVisible,k=e.onKeyDown,E=e.onKeyUp,R=e.onMouseDown,j=e.onMouseLeave,O=e.onMouseUp,T=e.onTouchEnd,I=e.onTouchMove,P=e.onTouchStart,N=e.onDragLeave,M=e.tabIndex,D=void 0===M?0:M,L=e.TouchRippleProps,F=e.type,z=void 0===F?"button":F,B=(0,gs.A)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),$=i.useRef(null);var H=i.useRef(null),U=i.useState(!1),W=U[0],V=U[1];f&&W&&V(!1);var q=(0,Os.A)(),G=q.isFocusVisible,Q=q.onBlurVisible,K=q.ref;function J(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;return(0,js.A)((function(n){return t&&t(n),!r&&H.current&&H.current[e](n),!0}))}i.useImperativeHandle(r,(function(){return{focusVisible:function(){V(!0),$.current.focus()}}}),[]),i.useEffect((function(){W&&x&&!g&&H.current.pulsate()}),[g,x,W]);var X=J("start",R),Y=J("stop",N),Z=J("stop",O),ee=J("stop",(function(e){W&&e.preventDefault(),j&&j(e)})),te=J("start",P),re=J("stop",T),ne=J("stop",I),oe=J("stop",(function(e){W&&(Q(e),V(!1)),_&&_(e)}),!1),ie=(0,js.A)((function(e){$.current||($.current=e.currentTarget),G(e)&&(V(!0),C&&C(e)),A&&A(e)})),se=function(){var e=n.findDOMNode($.current);return p&&"button"!==p&&!("A"===e.tagName&&e.href)},ae=i.useRef(!1),le=(0,js.A)((function(e){x&&!ae.current&&W&&H.current&&" "===e.key&&(ae.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!f&&(e.preventDefault(),S&&S(e))})),ue=(0,js.A)((function(e){x&&" "===e.key&&H.current&&W&&!e.defaultPrevented&&(ae.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),E&&E(e),S&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&S(e)})),ce=p;"button"===ce&&B.href&&(ce="a");var de={};"button"===ce?(de.type=z,de.disabled=f):("a"===ce&&B.href||(de.role="button"),de["aria-disabled"]=f);var pe=(0,Rs.A)(o,t),he=(0,Rs.A)(K,$),fe=(0,Rs.A)(pe,he),me=i.useState(!1),ge=me[0],ve=me[1];i.useEffect((function(){ve(!0)}),[]);var be=ge&&!g&&!f;return i.createElement(ce,(0,Ft.A)({className:(0,vs.A)(u.root,c,W&&[u.focusVisible,w],f&&u.disabled),onBlur:oe,onClick:S,onFocus:ie,onKeyDown:le,onKeyUp:ue,onMouseDown:X,onMouseLeave:ee,onMouseUp:Z,onDragLeave:Y,onTouchEnd:re,onTouchMove:ne,onTouchStart:te,ref:fe,tabIndex:f?-1:D},de,B),l,be?i.createElement(Ms,(0,Ft.A)({ref:H,center:a},L)):null)}));const Ls=(0,ys.A)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Ds);var Fs=r(4822),zs=i.forwardRef((function(e,t){var r=e.edge,n=void 0!==r&&r,o=e.children,s=e.classes,a=e.className,l=e.color,u=void 0===l?"default":l,c=e.disabled,d=void 0!==c&&c,p=e.disableFocusRipple,h=void 0!==p&&p,f=e.size,m=void 0===f?"medium":f,g=(0,gs.A)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(Ls,(0,Ft.A)({className:(0,vs.A)(s.root,a,"default"!==u&&s["color".concat((0,Fs.A)(u))],d&&s.disabled,"small"===m&&s["size".concat((0,Fs.A)(m))],{start:s.edgeStart,end:s.edgeEnd}[n]),centerRipple:!0,focusRipple:!h,disabled:d,ref:t},g),i.createElement("span",{className:s.label},o))}));const Bs=(0,ys.A)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,bs.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,bs.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,bs.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(zs);var $s={success:i.createElement(Ss,{fontSize:"inherit"}),warning:i.createElement(As,{fontSize:"inherit"}),error:i.createElement(Cs,{fontSize:"inherit"}),info:i.createElement(ks,{fontSize:"inherit"})},Hs=i.createElement(Es,{fontSize:"small"}),Us=i.forwardRef((function(e,t){var r=e.action,n=e.children,o=e.classes,s=e.className,a=e.closeText,l=void 0===a?"Close":a,u=e.color,c=e.icon,d=e.iconMapping,p=void 0===d?$s:d,h=e.onClose,f=e.role,m=void 0===f?"alert":f,g=e.severity,v=void 0===g?"success":g,b=e.variant,y=void 0===b?"standard":b,x=(0,gs.A)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return i.createElement(ws,(0,Ft.A)({role:m,square:!0,elevation:0,className:(0,vs.A)(o.root,o["".concat(y).concat((0,Fs.A)(u||v))],s),ref:t},x),!1!==c?i.createElement("div",{className:o.icon},c||p[v]||$s[v]):null,i.createElement("div",{className:o.message},n),null!=r?i.createElement("div",{className:o.action},r):null,null==r&&h?i.createElement("div",{className:o.action},i.createElement(Bs,{size:"small","aria-label":l,title:l,color:"inherit",onClick:h},Hs)):null)}));const Ws=(0,ys.A)((function(e){var t="light"===e.palette.type?bs.e$:bs.a,r="light"===e.palette.type?bs.a:bs.e$;return{root:(0,Ft.A)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:r(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:r(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:r(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:r(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(Us);var Vs=r(5844),qs=r(3462);const Gs=function(e){return"string"===typeof e};const Qs=function(e,t,r){return void 0===e||Gs(e)?t:(0,Ft.A)({},t,{ownerState:(0,Ft.A)({},t.ownerState,r)})};function Ks(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ks(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const Js=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ks(e))&&(n&&(n+=" "),n+=t);return n};const Xs=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];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};const Ys=function(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 Zs=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Js(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=(0,Ft.A)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),s=(0,Ft.A)({},r,o,n);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=Xs((0,Ft.A)({},o,n)),a=Ys(n),l=Ys(o),u=t(s),c=Js(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=(0,Ft.A)({},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=(0,Ft.A)({},u,r,l,a);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}};const ea=function(e,t,r){return"function"===typeof e?e(t,r):e},ta=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];const ra=function(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=(0,Lt.A)(e,ta),a=i?{}:ea(n,o),{props:l,internalRef:u}=Zs((0,Ft.A)({},s,{externalSlotProps:a})),c=(0,qs.A)(u,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref);return Qs(r,(0,Ft.A)({},l,{ref:c}),o)};function na(e){var t;return parseInt(i.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}var oa=r(1668);const ia=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sa(e){const t=[],r=[];return Array.from(e.querySelectorAll(ia)).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 aa(){return!0}const la=function(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:s=sa,isEnabled:a=aa,open:l}=e,u=i.useRef(!1),c=i.useRef(null),d=i.useRef(null),p=i.useRef(null),h=i.useRef(null),f=i.useRef(!1),m=i.useRef(null),g=(0,qs.A)(na(t),m),v=i.useRef(null);i.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,oa.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[l]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,oa.A)(m.current),t=t=>{v.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=s(m.current)),r.length>0){var o,i;const e=Boolean((null==(o=v.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=v.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!==typeof t&&"string"!==typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,s]);const b=e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0};return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0,h.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,Ne.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelEnd"})]})};var ua=r(4440),ca=r(6564);const da=i.forwardRef((function(e,t){const{children:r,container:o,disablePortal:s=!1}=e,[a,l]=i.useState(null),u=(0,qs.A)(i.isValidElement(r)?na(r):null,t);if((0,ua.A)((()=>{s||l(function(e){return"function"===typeof e?e():e}(o)||document.body)}),[o,s]),(0,ua.A)((()=>{if(a&&!s)return(0,ca.A)(t,a),()=>{(0,ca.A)(t,null)}}),[t,a,s]),s){if(i.isValidElement(r)){const e={ref:u};return i.cloneElement(r,e)}return(0,Ne.jsx)(i.Fragment,{children:r})}return(0,Ne.jsx)(i.Fragment,{children:a?n.createPortal(r,a):a})})),pa=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ha={entering:{opacity:1},entered:{opacity:1}},fa=i.forwardRef((function(e,t){const r=br(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:f,onExiting:m,style:g,timeout:v=n,TransitionComponent:b=ei}=e,y=(0,Lt.A)(e,pa),x=i.useRef(null),w=(0,ii.A)(x,na(a),t),_=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},S=_(p),A=_(((e,t)=>{ni(e);const n=oi({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),C=_(d),k=_(m),E=_((e=>{const t=oi({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),h&&h(e)})),R=_(f);return(0,Ne.jsx)(b,(0,Ft.A)({appear:s,in:u,nodeRef:x,onEnter:A,onEntered:C,onEntering:S,onExit:E,onExited:R,onExiting:k,addEndListener:e=>{o&&o(x.current,e)},timeout:v},y,{children:(e,t)=>i.cloneElement(a,(0,Ft.A)({style:(0,Ft.A)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},ha[e],g,a.props.style),ref:w},t))}))})),ma=fa;function ga(e){return(0,qt.Ay)("MuiBackdrop",e)}(0,Vt.A)("MuiBackdrop",["root","invisible"]);const va=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ba=(0,Ht.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({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"},t.invisible&&{backgroundColor:"transparent"})})),ya=i.forwardRef((function(e,t){var r,n,o;const i=(0,Ut.b)({props:e,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=ma,transitionDuration:g}=i,v=(0,Lt.A)(i,va),b=(0,Ft.A)({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,$t.A)(n,ga,t)})(b),x=null!=(r=h.root)?r:c.root;return(0,Ne.jsx)(m,(0,Ft.A)({in:p,timeout:g},v,{children:(0,Ne.jsx)(ba,(0,Ft.A)({"aria-hidden":!0},x,{as:null!=(n=null!=(o=f.root)?o:u.Root)?n:l,className:(0,zt.A)(y.root,a,null==x?void 0:x.className),ownerState:(0,Ft.A)({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:s}))}))}));var xa=r(1782),wa=r(2456),_a=r(3940);function Sa(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Aa(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ca(e){return parseInt((0,_a.A)(e).getComputedStyle(e).paddingRight,10)||0}function ka(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&&Aa(e,o)}))}function Ea(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Ra(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,oa.A)(e);return t.body===e?(0,_a.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Sa((0,oa.A)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ca(n)+e}px`;const t=(0,oa.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ca(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,oa.A)(n).body;else{const t=n.parentElement,r=(0,_a.A)(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((e=>{let{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}const ja=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&&Aa(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);ka(t,e.mount,e.modalRef,n,!0);const o=Ea(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=Ea(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Ra(n,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=this.modals.indexOf(e);if(-1===r)return r;const n=Ea(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&&Aa(e.modalRef,t),ka(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&&Aa(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const Oa=function(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=ja,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=e,h=i.useRef({}),f=i.useRef(null),m=i.useRef(null),g=(0,qs.A)(m,p),[v,b]=i.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const w=()=>(h.current.modalRef=m.current,h.current.mount=f.current,h.current),_=()=>{o.mount(w(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},S=(0,xa.A)((()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,oa.A)(f.current).body;o.add(w(),e),m.current&&_()})),A=i.useCallback((()=>o.isTopModal(w())),[o]),C=(0,xa.A)((e=>{f.current=e,e&&(d&&A()?_():m.current&&Aa(m.current,x))})),k=i.useCallback((()=>{o.remove(w(),x)}),[x,o]);i.useEffect((()=>()=>{k()}),[k]),i.useEffect((()=>{d?S():y&&s||k()}),[d,k,y,s,S]);const E=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&A()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},R=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=Xs(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=(0,Ft.A)({},r,t);return(0,Ft.A)({role:"presentation"},n,{onKeyDown:E(n),ref:g})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Ft.A)({"aria-hidden":!0},e,{onClick:R(e),open:d})},getTransitionProps:()=>({onEnter:(0,wa.A)((()=>{b(!1),a&&a()}),null==u?void 0:u.props.onEnter),onExited:(0,wa.A)((()=>{b(!0),l&&l(),s&&k()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:C,isTopModal:A,exited:v,hasTransition:y}};function Ta(e){return(0,qt.Ay)("MuiModal",e)}(0,Vt.A)("MuiModal",["root","hidden","backdrop"]);const Ia=["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"],Pa=(0,Ht.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),Na=(0,Ht.Ay)(ya,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ma=i.forwardRef((function(e,t){var r,n,o,s,a,l;const u=(0,Ut.b)({name:"MuiModal",props:e}),{BackdropComponent:c=Na,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:f,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:_=!1,disableRestoreFocus:S=!1,disableScrollLock:A=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:E,open:R,slotProps:j,slots:O}=u,T=(0,Lt.A)(u,Ia),I=(0,Ft.A)({},u,{closeAfterTransition:h,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:_,disableRestoreFocus:S,disableScrollLock:A,hideBackdrop:C,keepMounted:k}),{getRootProps:P,getBackdropProps:N,getTransitionProps:M,portalRef:D,isTopModal:L,exited:F,hasTransition:z}=Oa((0,Ft.A)({},I,{rootRef:t})),B=(0,Ft.A)({},I,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,$t.A)(o,Ta,n)})(B),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=M();H.onEnter=e,H.onExited=t}const U=null!=(r=null!=(n=null==O?void 0:O.root)?n:v.Root)?r:Pa,W=null!=(o=null!=(s=null==O?void 0:O.backdrop)?s:v.Backdrop)?o:c,V=null!=(a=null==j?void 0:j.root)?a:b.root,q=null!=(l=null==j?void 0:j.backdrop)?l:b.backdrop,G=ra({elementType:U,externalSlotProps:V,externalForwardedProps:T,getSlotProps:P,additionalProps:{ref:t,as:g},ownerState:B,className:(0,zt.A)(p,null==V?void 0:V.className,null==$?void 0:$.root,!B.open&&B.exited&&(null==$?void 0:$.hidden))}),Q=ra({elementType:W,externalSlotProps:q,additionalProps:d,getSlotProps:e=>N((0,Ft.A)({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,zt.A)(null==q?void 0:q.className,null==d?void 0:d.className,null==$?void 0:$.backdrop),ownerState:B});return k||R||z&&!F?(0,Ne.jsx)(da,{ref:D,container:m,disablePortal:_,children:(0,Ne.jsxs)(U,(0,Ft.A)({},G,{children:[!C&&c?(0,Ne.jsx)(W,(0,Ft.A)({},Q)):null,(0,Ne.jsx)(la,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:L,open:R,children:i.cloneElement(f,H)})]}))}):null})),Da=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function La(e){return(0,qt.Ay)("MuiPaper",e)}(0,Vt.A)("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 Fa=["className","component","elevation","square","variant"],za=(0,Ht.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((e=>{let{theme:t,ownerState:r}=e;var n;return(0,Ft.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!r.square&&{borderRadius:t.shape.borderRadius},"outlined"===r.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===r.variant&&(0,Ft.A)({boxShadow:(t.vars||t).shadows[r.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,fi.X4)("#fff",Da(r.elevation))}, ${(0,fi.X4)("#fff",Da(r.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[r.elevation]}))})),Ba=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:s=!1,variant:a="elevation"}=r,l=(0,Lt.A)(r,Fa),u=(0,Ft.A)({},r,{component:o,elevation:i,square:s,variant:a}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]};return(0,$t.A)(i,La,o)})(u);return(0,Ne.jsx)(za,(0,Ft.A)({as:o,ownerState:u,className:(0,zt.A)(c.root,n),ref:t},l))}));function $a(e){return(0,qt.Ay)("MuiDialog",e)}const Ha=(0,Vt.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const Ua=i.createContext({}),Wa=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Va=(0,Ht.Ay)(ya,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),qa=(0,Ht.Ay)(Ma,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Ga=(0,Ht.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${(0,Wt.A)(r.scroll)}`]]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),Qa=(0,Ht.Ay)(Ba,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${(0,Wt.A)(r.scroll)}`],t[`paperWidth${(0,Wt.A)(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${Ha.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:`${t.breakpoints.values[r.maxWidth]}${t.breakpoints.unit}`,[`&.${Ha.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ha.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})})),Ka=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiDialog"}),n=br(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:g,onClick:v,onClose:b,open:y,PaperComponent:x=Ba,PaperProps:w={},scroll:_="paper",TransitionComponent:S=ma,transitionDuration:A=o,TransitionProps:C}=r,k=(0,Lt.A)(r,Wa),E=(0,Ft.A)({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:f,maxWidth:m,scroll:_}),R=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${(0,Wt.A)(r)}`],paper:["paper",`paperScroll${(0,Wt.A)(r)}`,`paperWidth${(0,Wt.A)(String(n))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,$t.A)(s,$a,t)})(E),j=i.useRef(),O=(0,Vs.A)(a),T=i.useMemo((()=>({titleId:O})),[O]);return(0,Ne.jsx)(qa,(0,Ft.A)({className:(0,zt.A)(R.root,d),closeAfterTransition:!0,components:{Backdrop:Va},componentsProps:{backdrop:(0,Ft.A)({transitionDuration:A,as:l},u)},disableEscapeKeyDown:p,onClose:b,open:y,ref:t,onClick:e=>{v&&v(e),j.current&&(j.current=null,g&&g(e),b&&b(e,"backdropClick"))},ownerState:E},k,{children:(0,Ne.jsx)(S,(0,Ft.A)({appear:!0,in:y,timeout:A,role:"presentation"},C,{children:(0,Ne.jsx)(Ga,{className:(0,zt.A)(R.container),onMouseDown:e=>{j.current=e.target===e.currentTarget},ownerState:E,children:(0,Ne.jsx)(Qa,(0,Ft.A)({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":O},w,{className:(0,zt.A)(R.paper,w.className),ownerState:E,children:(0,Ne.jsx)(Ua.Provider,{value:T,children:c})}))})}))}))}));function Ja(e){return(0,qt.Ay)("MuiDialogContent",e)}(0,Vt.A)("MuiDialogContent",["root","dividers"]);function Xa(e){return(0,qt.Ay)("MuiDialogTitle",e)}const Ya=(0,Vt.A)("MuiDialogTitle",["root"]),Za=["className","dividers"],el=(0,Ht.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${Ya.root} + &`]:{paddingTop:0}})})),tl=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=r,i=(0,Lt.A)(r,Za),s=(0,Ft.A)({},r,{dividers:o}),a=(e=>{const{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,$t.A)(n,Ja,t)})(s);return(0,Ne.jsx)(el,(0,Ft.A)({className:(0,zt.A)(a.root,n),ownerState:s,ref:t},i))})),rl=["className","id"],nl=(0,Ht.Ay)(Yt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),ol=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiDialogTitle"}),{className:n,id:o}=r,s=(0,Lt.A)(r,rl),a=r,l=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"]},Xa,t)})(a),{titleId:u=o}=i.useContext(Ua);return(0,Ne.jsx)(nl,(0,Ft.A)({component:"h2",className:(0,zt.A)(l.root,n),ownerState:a,ref:t,variant:"h6",id:null!=o?o:u},s))}));var il=r(950),sl=r(6078);const al=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ll(e,t,r){var n;const o=function(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),i=(0,sl.A)(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const e=i.getComputedStyle(t);s=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let a=0,l=0;if(s&&"none"!==s&&"string"===typeof s){const e=s.split("(")[1].split(")")[0].split(",");a=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+a-n.left}px)`:`translateX(${i.innerWidth+a-n.left}px)`:"right"===e?o?`translateX(-${n.right-o.left-a}px)`:`translateX(-${n.left+n.width-a}px)`:"up"===e?o?`translateY(${o.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}(e,t,"function"===typeof(n=r)?n():n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const ul=i.forwardRef((function(e,t){const r=br(),n={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:u,direction:c="down",easing:d=n,in:p,onEnter:h,onEntered:f,onEntering:m,onExit:g,onExited:v,onExiting:b,style:y,timeout:x=o,TransitionComponent:w=ei}=e,_=(0,Lt.A)(e,al),S=i.useRef(null),A=(0,ii.A)(na(l),S,t),C=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},k=C(((e,t)=>{ll(c,e,u),ni(e),h&&h(e,t)})),E=C(((e,t)=>{const n=oi({timeout:x,style:y,easing:d},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,Ft.A)({},n)),e.style.transition=r.transitions.create("transform",(0,Ft.A)({},n)),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)})),R=C(f),j=C(b),O=C((e=>{const t=oi({timeout:x,style:y,easing:d},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),ll(c,e,u),g&&g(e)})),T=C((e=>{e.style.webkitTransition="",e.style.transition="",v&&v(e)})),I=i.useCallback((()=>{S.current&&ll(c,S.current,u)}),[c,u]);return i.useEffect((()=>{if(p||"down"===c||"right"===c)return;const e=(0,il.A)((()=>{S.current&&ll(c,S.current,u)})),t=(0,sl.A)(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[c,p,u]),i.useEffect((()=>{p||I()}),[p,I]),(0,Ne.jsx)(w,(0,Ft.A)({nodeRef:S,onEnter:k,onEntered:R,onEntering:E,onExit:O,onExited:T,onExiting:j,addEndListener:e=>{s&&s(S.current,e)},appear:a,in:p,timeout:x},_,{children:(e,t)=>i.cloneElement(l,(0,Ft.A)({ref:A,style:(0,Ft.A)({visibility:"exited"!==e||p?void 0:"hidden"},y,l.props.style)},t))}))})),cl=ul;var dl=r(1475);function pl(e){return(0,qt.Ay)("MuiDrawer",e)}(0,Vt.A)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const hl=["BackdropProps"],fl=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],ml=(e,t)=>{const{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},gl=(0,Ht.Ay)(Ma,{name:"MuiDrawer",slot:"Root",overridesResolver:ml})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}})),vl=(0,Ht.Ay)("div",{shouldForwardProp:dl.A,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:ml})({flex:"0 0 auto"}),bl=(0,Ht.Ay)(Ba,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${(0,Wt.A)(r.anchor)}`],"temporary"!==r.variant&&t[`paperAnchorDocked${(0,Wt.A)(r.anchor)}`]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:`1px solid ${(t.vars||t).palette.divider}`},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:`1px solid ${(t.vars||t).palette.divider}`},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:`1px solid ${(t.vars||t).palette.divider}`})})),yl={left:"right",right:"left",top:"down",bottom:"up"};const xl=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiDrawer"}),n=br(),o=Xi(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:u,className:c,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:h}={},onClose:f,open:m=!1,PaperProps:g={},SlideProps:v,TransitionComponent:b=cl,transitionDuration:y=s,variant:x="temporary"}=r,w=(0,Lt.A)(r.ModalProps,hl),_=(0,Lt.A)(r,fl),S=i.useRef(!1);i.useEffect((()=>{S.current=!0}),[]);const A=function(e,t){let{direction:r}=e;return"rtl"===r&&function(e){return-1!==["left","right"].indexOf(e)}(t)?yl[t]:t}({direction:o?"rtl":"ltr"},a),C=a,k=(0,Ft.A)({},r,{anchor:C,elevation:d,open:m,variant:x},_),E=(e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,Wt.A)(r)}`,"temporary"!==n&&`paperAnchorDocked${(0,Wt.A)(r)}`]};return(0,$t.A)(o,pl,t)})(k),R=(0,Ne.jsx)(bl,(0,Ft.A)({elevation:"temporary"===x?d:0,square:!0},g,{className:(0,zt.A)(E.paper,g.className),ownerState:k,children:u}));if("permanent"===x)return(0,Ne.jsx)(vl,(0,Ft.A)({className:(0,zt.A)(E.root,E.docked,c),ownerState:k,ref:t},_,{children:R}));const j=(0,Ne.jsx)(b,(0,Ft.A)({in:m,direction:yl[A],timeout:y,appear:S.current},v,{children:R}));return"persistent"===x?(0,Ne.jsx)(vl,(0,Ft.A)({className:(0,zt.A)(E.root,E.docked,c),ownerState:k,ref:t},_,{children:j})):(0,Ne.jsx)(gl,(0,Ft.A)({BackdropProps:(0,Ft.A)({},l,h,{transitionDuration:y}),className:(0,zt.A)(E.root,E.modal,c),open:m,ownerState:k,onClose:f,hideBackdrop:p,ref:t},_,w,{children:j}))}));const wl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:s}=e,a=(0,ti.A)();i.useEffect((()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}}),[o,n]);const l=(0,xa.A)(((e,t)=>{null==n||n(e,t)})),u=(0,xa.A)((e=>{n&&null!=e&&a.start(e,(()=>{l(null,"timeout")}))}));i.useEffect((()=>(o&&u(t),a.clear)),[o,t,u,a]);const c=a.clear,d=i.useCallback((()=>{null!=t&&u(null!=s?s:.5*t)}),[t,s,u]),p=e=>t=>{const r=e.onFocus;null==r||r(t),c()},h=e=>t=>{const r=e.onMouseEnter;null==r||r(t),c()},f=e=>t=>{const r=e.onMouseLeave;null==r||r(t),d()};return i.useEffect((()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",c)}}),[r,o,d,c]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,Ft.A)({},Xs(e),Xs(t));return(0,Ft.A)({role:"presentation"},t,r,{onBlur:(n=r,e=>{const t=n.onBlur;null==t||t(e),d()}),onFocus:p(r),onMouseEnter:h(r),onMouseLeave:f(r)});var n},onClickAway:e=>{null==n||n(e,"clickaway")}}};function _l(e){return e.substring(2).toLowerCase()}function Sl(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,a=i.useRef(!1),l=i.useRef(null),u=i.useRef(!1),c=i.useRef(!1);i.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const d=(0,qs.A)(na(t),l),p=(0,xa.A)((e=>{const t=c.current;c.current=!1;const n=(0,oa.A)(l.current);if(!u.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(a.current)return void(a.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(l.current)>-1:!n.documentElement.contains(e.target)||l.current.contains(e.target),i||!r&&t||o(e)})),h=e=>r=>{c.current=!0;const n=t.props[e];n&&n(r)},f={ref:d};return!1!==s&&(f[s]=h(s)),i.useEffect((()=>{if(!1!==s){const e=_l(s),t=(0,oa.A)(l.current),r=()=>{a.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",r)}}}),[p,s]),!1!==n&&(f[n]=h(n)),i.useEffect((()=>{if(!1!==n){const e=_l(n),t=(0,oa.A)(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,n]),(0,Ne.jsx)(i.Fragment,{children:i.cloneElement(t,f)})}const Al=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cl(e){return`scale(${e}, ${e**2})`}const kl={entering:{opacity:1,transform:Cl(1)},entered:{opacity:1,transform:"none"}},El="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Rl=i.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:s,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:h,style:f,timeout:m="auto",TransitionComponent:g=ei}=e,v=(0,Lt.A)(e,Al),b=(0,ti.A)(),y=i.useRef(),x=br(),w=i.useRef(null),_=(0,ii.A)(w,na(o),t),S=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},A=S(c),C=S(((e,t)=>{ni(e);const{duration:r,delay:n,easing:o}=oi({style:f,timeout:m,easing:s},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:El?i:.666*i,delay:n,easing:o})].join(","),l&&l(e,t)})),k=S(u),E=S(h),R=S((e=>{const{duration:t,delay:r,easing:n}=oi({style:f,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:El?o:.666*o,delay:El?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Cl(.75),d&&d(e)})),j=S(p);return(0,Ne.jsx)(g,(0,Ft.A)({appear:n,in:a,nodeRef:w,onEnter:C,onEntered:k,onEntering:A,onExit:R,onExited:j,onExiting:E,addEndListener:e=>{"auto"===m&&b.start(y.current||0,e),r&&r(w.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(o,(0,Ft.A)({style:(0,Ft.A)({opacity:0,transform:Cl(.75),visibility:"exited"!==e||a?void 0:"hidden"},kl[e],f,o.props.style),ref:_},t))}))}));Rl.muiSupportAuto=!0;const jl=Rl;function Ol(e){return(0,qt.Ay)("MuiSnackbarContent",e)}(0,Vt.A)("MuiSnackbarContent",["root","message","action"]);const Tl=["action","className","message","role"],Il=(0,Ht.Ay)(Ba,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?.8:.98,n=(0,fi.tL)(t.palette.background.default,r);return(0,Ft.A)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),Pl=(0,Ht.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Nl=(0,Ht.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ml=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiSnackbarContent"}),{action:n,className:o,message:i,role:s="alert"}=r,a=(0,Lt.A)(r,Tl),l=r,u=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"],action:["action"],message:["message"]},Ol,t)})(l);return(0,Ne.jsxs)(Il,(0,Ft.A)({role:s,square:!0,elevation:6,className:(0,zt.A)(u.root,o),ownerState:l,ref:t},a,{children:[(0,Ne.jsx)(Pl,{className:u.message,ownerState:l,children:i}),n?(0,Ne.jsx)(Nl,{className:u.action,ownerState:l,children:n}):null]}))}));function Dl(e){return(0,qt.Ay)("MuiSnackbar",e)}(0,Vt.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Ll=["onEnter","onExited"],Fl=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],zl=(0,Ht.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${(0,Wt.A)(r.anchorOrigin.vertical)}${(0,Wt.A)(r.anchorOrigin.horizontal)}`]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,Ft.A)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),Bl=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiSnackbar"}),n=br(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:c,className:d,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:f=!1,message:m,open:g,TransitionComponent:v=jl,transitionDuration:b=o,TransitionProps:{onEnter:y,onExited:x}={}}=r,w=(0,Lt.A)(r.TransitionProps,Ll),_=(0,Lt.A)(r,Fl),S=(0,Ft.A)({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:u,disableWindowBlurListener:f,TransitionComponent:v,transitionDuration:b}),A=(e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${(0,Wt.A)(r.vertical)}${(0,Wt.A)(r.horizontal)}`]};return(0,$t.A)(n,Dl,t)})(S),{getRootProps:C,onClickAway:k}=wl((0,Ft.A)({},S)),[E,R]=i.useState(!0),j=ra({elementType:zl,getSlotProps:C,externalForwardedProps:_,ownerState:S,additionalProps:{ref:t},className:[A.root,d]});return!g&&E?null:(0,Ne.jsx)(Sl,(0,Ft.A)({onClickAway:k},p,{children:(0,Ne.jsx)(zl,(0,Ft.A)({},j,{children:(0,Ne.jsx)(v,(0,Ft.A)({appear:!0,in:g,timeout:b,direction:"top"===a?"down":"up",onEnter:(e,t)=>{R(!1),y&&y(e,t)},onExited:e=>{R(!0),x&&x(e)}},w,{children:c||(0,Ne.jsx)(Ml,(0,Ft.A)({message:m,action:s},h))}))}))}))}));var $l=r(4802),Hl=r(1337),Ul=r(9484),Wl=r(8659);function Vl(){return(0,Ul.A)()||Wl.A}var ql=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.color,s=void 0===o?"primary":o,a=e.value,l=e.valueBuffer,u=e.variant,c=void 0===u?"indeterminate":u,d=(0,gs.A)(e,["classes","className","color","value","valueBuffer","variant"]),p=Vl(),h={},f={bar1:{},bar2:{}};if("determinate"===c||"buffer"===c)if(void 0!==a){h["aria-valuenow"]=Math.round(a),h["aria-valuemin"]=0,h["aria-valuemax"]=100;var m=a-100;"rtl"===p.direction&&(m=-m),f.bar1.transform="translateX(".concat(m,"%)")}else 0;if("buffer"===c)if(void 0!==l){var g=(l||0)-100;"rtl"===p.direction&&(g=-g),f.bar2.transform="translateX(".concat(g,"%)")}else 0;return i.createElement("div",(0,Ft.A)({className:(0,vs.A)(r.root,r["color".concat((0,Fs.A)(s))],n,{determinate:r.determinate,indeterminate:r.indeterminate,buffer:r.buffer,query:r.query}[c]),role:"progressbar"},h,{ref:t},d),"buffer"===c?i.createElement("div",{className:(0,vs.A)(r.dashed,r["dashedColor".concat((0,Fs.A)(s))])}):null,i.createElement("div",{className:(0,vs.A)(r.bar,r["barColor".concat((0,Fs.A)(s))],("indeterminate"===c||"query"===c)&&r.bar1Indeterminate,{determinate:r.bar1Determinate,buffer:r.bar1Buffer}[c]),style:f.bar1}),"determinate"===c?null:i.createElement("div",{className:(0,vs.A)(r.bar,("indeterminate"===c||"query"===c)&&r.bar2Indeterminate,"buffer"===c?[r["color".concat((0,Fs.A)(s))],r.bar2Buffer]:r["barColor".concat((0,Fs.A)(s))]),style:f.bar2}))}));const Gl=(0,ys.A)((function(e){var t=function(t){return"light"===e.palette.type?(0,bs.a)(t,.62):(0,bs.e$)(t,.5)},r=t(e.palette.primary.main),n=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:r},colorSecondary:{backgroundColor:n},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(ql),Ql=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Kl=["component","slots","slotProps"],Jl=["component"];function Xl(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,l=(0,Lt.A)(t,Ql),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=i,p=(0,Lt.A)(i,Kl),h=c[e]||n,f=ea(d[e],o),m=Zs((0,Ft.A)({className:r},l,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:f})),{props:{component:g},internalRef:v}=m,b=(0,Lt.A)(m.props,Jl),y=(0,qs.A)(v,null==f?void 0:f.ref,t.ref),x=s?s(b):{},w=(0,Ft.A)({},o,x),_="root"===e?g||u:g,S=Qs(h,(0,Ft.A)({},"root"===e&&!u&&!c[e]&&a,"root"!==e&&!c[e]&&a,b,_&&{as:_},{ref:y}),w);return Object.keys(x).forEach((e=>{delete S[e]})),[h,S]}function Yl(e){return(0,qt.Ay)("MuiAlert",e)}const Zl=(0,Vt.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var eu=r(6734);const tu=(0,eu.A)((0,Ne.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ru=(0,eu.A)((0,Ne.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),nu=(0,eu.A)((0,Ne.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ou=(0,eu.A)((0,Ne.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),iu=(0,eu.A)((0,Ne.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),su=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],au=(0,Ht.Ay)(Ba,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,Wt.A)(r.color||r.severity)}`]]}})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?fi.e$:fi.a,n="light"===t.palette.mode?fi.a:fi.e$;return(0,Ft.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[o]=e;return{props:{colorSeverity:o,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${o}Color`]:r(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${o}StandardBg`]:n(t.palette[o].light,.9),[`& .${Zl.icon}`]:t.vars?{color:t.vars.palette.Alert[`${o}IconColor`]}:{color:t.palette[o].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[n]=e;return{props:{colorSeverity:n,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${n}Color`]:r(t.palette[n].light,.6),border:`1px solid ${(t.vars||t).palette[n].light}`,[`& .${Zl.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.dark})).map((e=>{let[r]=e;return{props:{colorSeverity:r,variant:"filled"},style:(0,Ft.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:"dark"===t.palette.mode?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)})}}))]})})),lu=(0,Ht.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),uu=(0,Ht.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),cu=(0,Ht.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),du={success:(0,Ne.jsx)(tu,{fontSize:"inherit"}),warning:(0,Ne.jsx)(ru,{fontSize:"inherit"}),error:(0,Ne.jsx)(nu,{fontSize:"inherit"}),info:(0,Ne.jsx)(ou,{fontSize:"inherit"})},pu=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiAlert"}),{action:n,children:o,className:i,closeText:s="Close",color:a,components:l={},componentsProps:u={},icon:c,iconMapping:d=du,onClose:p,role:h="alert",severity:f="success",slotProps:m={},slots:g={},variant:v="standard"}=r,b=(0,Lt.A)(r,su),y=(0,Ft.A)({},r,{color:a,severity:f,variant:v,colorSeverity:a||f}),x=(e=>{const{variant:t,color:r,severity:n,classes:o}=e,i={root:["root",`color${(0,Wt.A)(r||n)}`,`${t}${(0,Wt.A)(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,$t.A)(i,Yl,o)})(y),w={slots:(0,Ft.A)({closeButton:l.CloseButton,closeIcon:l.CloseIcon},g),slotProps:(0,Ft.A)({},u,m)},[_,S]=Xl("closeButton",{elementType:Gi,externalForwardedProps:w,ownerState:y}),[A,C]=Xl("closeIcon",{elementType:iu,externalForwardedProps:w,ownerState:y});return(0,Ne.jsxs)(au,(0,Ft.A)({role:h,elevation:0,ownerState:y,className:(0,zt.A)(x.root,i),ref:t},b,{children:[!1!==c?(0,Ne.jsx)(lu,{ownerState:y,className:x.icon,children:c||d[f]||du[f]}):null,(0,Ne.jsx)(uu,{ownerState:y,className:x.message,children:o}),null!=n?(0,Ne.jsx)(cu,{ownerState:y,className:x.action,children:n}):null,null==n&&p?(0,Ne.jsx)(cu,{ownerState:y,className:x.action,children:(0,Ne.jsx)(_,(0,Ft.A)({size:"small","aria-label":s,title:s,color:"inherit",onClick:p},S,{children:(0,Ne.jsx)(A,(0,Ft.A)({fontSize:"small"},C))}))}):null]}))}));var hu={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function fu(e){if("number"===typeof e)return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var n=(e.match(/[^0-9]*$/)||"").toString();return hu[n]?{value:t,unit:n}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function mu(e){var t=fu(e);return"".concat(t.value).concat(t.unit)}var gu=function(){return gu=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},gu.apply(this,arguments)},vu=function(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},bu=function(e,t,r){var n="react-spinners-".concat(e,"-").concat(r);if("undefined"==typeof window||!window.document)return n;var o=document.createElement("style");document.head.appendChild(o);var i=o.sheet,s="\n    @keyframes ".concat(n," {\n      ").concat(t,"\n    }\n  ");return i&&i.insertRule(s,0),n}("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),yu=function(e){return Math.random()*e};const xu=function(e){var t=e.loading,r=void 0===t||t,n=e.color,o=void 0===n?"#000000":n,s=e.speedMultiplier,a=void 0===s?1:s,l=e.cssOverride,u=void 0===l?{}:l,c=e.size,d=void 0===c?15:c,p=e.margin,h=void 0===p?2:p,f=vu(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),m=fu(d),g=fu(h),v=3*parseFloat(m.value.toString())+6*parseFloat(g.value.toString()),b=gu({width:"".concat(v).concat(m.unit),fontSize:0,display:"inline-block"},u),y=function(e){return{display:"inline-block",backgroundColor:o,width:"".concat(mu(d)),height:"".concat(mu(d)),margin:mu(h),borderRadius:"100%",animationFillMode:"both",animation:"".concat(bu," ").concat((e/100+.6)/a,"s ").concat(e/100-.2,"s infinite ease")}};return r?i.createElement("span",gu({style:b},f,{ref:function(e){e&&e.style.setProperty("width","".concat(v).concat(m.unit),"important")}}),i.createElement("span",{style:y(yu(100))}),i.createElement("span",{style:y(yu(100))}),i.createElement("span",{style:y(yu(100))}),i.createElement("span",{style:y(yu(100))}),i.createElement("span",{style:y(yu(100))}),i.createElement("span",{style:y(yu(100))}),i.createElement("span",{style:y(yu(100))}),i.createElement("span",{style:y(yu(100))}),i.createElement("span",{style:y(yu(100))})):null};var wu=r(854),_u=r.n(wu);const{entries:Su,setPrototypeOf:Au,isFrozen:Cu,getPrototypeOf:ku,getOwnPropertyDescriptor:Eu}=Object;let{freeze:Ru,seal:ju,create:Ou}=Object,{apply:Tu,construct:Iu}="undefined"!==typeof Reflect&&Reflect;Ru||(Ru=function(e){return e}),ju||(ju=function(e){return e}),Tu||(Tu=function(e,t,r){return e.apply(t,r)}),Iu||(Iu=function(e,t){return new e(...t)});const Pu=Qu(Array.prototype.forEach),Nu=Qu(Array.prototype.lastIndexOf),Mu=Qu(Array.prototype.pop),Du=Qu(Array.prototype.push),Lu=Qu(Array.prototype.splice),Fu=Qu(String.prototype.toLowerCase),zu=Qu(String.prototype.toString),Bu=Qu(String.prototype.match),$u=Qu(String.prototype.replace),Hu=Qu(String.prototype.indexOf),Uu=Qu(String.prototype.trim),Wu=Qu(Object.prototype.hasOwnProperty),Vu=Qu(RegExp.prototype.test),qu=(Gu=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Iu(Gu,t)});var Gu;function Qu(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return Tu(e,t,n)}}function Ku(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Fu;Au&&Au(e,null);let n=t.length;for(;n--;){let o=t[n];if("string"===typeof o){const e=r(o);e!==o&&(Cu(t)||(t[n]=e),o=e)}e[o]=!0}return e}function Ju(e){for(let t=0;t<e.length;t++){Wu(e,t)||(e[t]=null)}return e}function Xu(e){const t=Ou(null);for(const[r,n]of Su(e)){Wu(e,r)&&(Array.isArray(n)?t[r]=Ju(n):n&&"object"===typeof n&&n.constructor===Object?t[r]=Xu(n):t[r]=n)}return t}function Yu(e,t){for(;null!==e;){const r=Eu(e,t);if(r){if(r.get)return Qu(r.get);if("function"===typeof r.value)return Qu(r.value)}e=ku(e)}return function(){return null}}const Zu=Ru(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ec=Ru(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tc=Ru(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rc=Ru(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),nc=Ru(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),oc=Ru(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ic=Ru(["#text"]),sc=Ru(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ac=Ru(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lc=Ru(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),uc=Ru(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),cc=ju(/\{\{[\w\W]*|[\w\W]*\}\}/gm),dc=ju(/<%[\w\W]*|[\w\W]*%>/gm),pc=ju(/\$\{[\w\W]*/gm),hc=ju(/^data-[\-\w.\u00B7-\uFFFF]+$/),fc=ju(/^aria-[\-\w]+$/),mc=ju(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gc=ju(/^(?:\w+script|data):/i),vc=ju(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bc=ju(/^html$/i),yc=ju(/^[a-z][.\w]*(-[.\w]+)+$/i);var xc=Object.freeze({__proto__:null,ARIA_ATTR:fc,ATTR_WHITESPACE:vc,CUSTOM_ELEMENT:yc,DATA_ATTR:hc,DOCTYPE_NAME:bc,ERB_EXPR:dc,IS_ALLOWED_URI:mc,IS_SCRIPT_OR_DATA:gc,MUSTACHE_EXPR:cc,TMPLIT_EXPR:pc});const wc=1,_c=3,Sc=7,Ac=8,Cc=9,kc=function(){return"undefined"===typeof window?null:window};var Ec=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kc();const r=t=>e(t);if(r.version="3.2.4",r.removed=[],!t||!t.document||t.document.nodeType!==Cc||!t.Element)return r.isSupported=!1,r;let{document:n}=t;const o=n,i=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:u,NodeFilter:c,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:f}=t,m=u.prototype,g=Yu(m,"cloneNode"),v=Yu(m,"remove"),b=Yu(m,"nextSibling"),y=Yu(m,"childNodes"),x=Yu(m,"parentNode");if("function"===typeof a){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let w,_="";const{implementation:S,createNodeIterator:A,createDocumentFragment:C,getElementsByTagName:k}=n,{importNode:E}=o;let R={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"===typeof Su&&"function"===typeof x&&S&&void 0!==S.createHTMLDocument;const{MUSTACHE_EXPR:j,ERB_EXPR:O,TMPLIT_EXPR:T,DATA_ATTR:I,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:D}=xc;let{IS_ALLOWED_URI:L}=xc,F=null;const z=Ku({},[...Zu,...ec,...tc,...nc,...ic]);let B=null;const $=Ku({},[...sc,...ac,...lc,...uc]);let H=Object.seal(Ou(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,W=null,V=!0,q=!0,G=!1,Q=!0,K=!1,J=!0,X=!1,Y=!1,Z=!1,ee=!1,te=!1,re=!1,ne=!0,oe=!1,ie=!0,se=!1,ae={},le=null;const ue=Ku({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ce=null;const de=Ku({},["audio","video","img","source","image","track"]);let pe=null;const he=Ku({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ve=ge,be=!1,ye=null;const xe=Ku({},[fe,me,ge],zu);let we=Ku({},["mi","mo","mn","ms","mtext"]),_e=Ku({},["annotation-xml"]);const Se=Ku({},["title","style","font","a","script"]);let Ae=null;const Ce=["application/xhtml+xml","text/html"];let ke=null,Ee=null;const Re=n.createElement("form"),je=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"===typeof e||(e={}),e=Xu(e),Ae=-1===Ce.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===Ae?zu:Fu,F=Wu(e,"ALLOWED_TAGS")?Ku({},e.ALLOWED_TAGS,ke):z,B=Wu(e,"ALLOWED_ATTR")?Ku({},e.ALLOWED_ATTR,ke):$,ye=Wu(e,"ALLOWED_NAMESPACES")?Ku({},e.ALLOWED_NAMESPACES,zu):xe,pe=Wu(e,"ADD_URI_SAFE_ATTR")?Ku(Xu(he),e.ADD_URI_SAFE_ATTR,ke):he,ce=Wu(e,"ADD_DATA_URI_TAGS")?Ku(Xu(de),e.ADD_DATA_URI_TAGS,ke):de,le=Wu(e,"FORBID_CONTENTS")?Ku({},e.FORBID_CONTENTS,ke):ue,U=Wu(e,"FORBID_TAGS")?Ku({},e.FORBID_TAGS,ke):{},W=Wu(e,"FORBID_ATTR")?Ku({},e.FORBID_ATTR,ke):{},ae=!!Wu(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,L=e.ALLOWED_URI_REGEXP||mc,ve=e.NAMESPACE||ge,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,_e=e.HTML_INTEGRATION_POINTS||_e,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(q=!1),te&&(ee=!0),ae&&(F=Ku({},ic),B=[],!0===ae.html&&(Ku(F,Zu),Ku(B,sc)),!0===ae.svg&&(Ku(F,ec),Ku(B,ac),Ku(B,uc)),!0===ae.svgFilters&&(Ku(F,tc),Ku(B,ac),Ku(B,uc)),!0===ae.mathMl&&(Ku(F,nc),Ku(B,lc),Ku(B,uc))),e.ADD_TAGS&&(F===z&&(F=Xu(F)),Ku(F,e.ADD_TAGS,ke)),e.ADD_ATTR&&(B===$&&(B=Xu(B)),Ku(B,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&Ku(pe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ue&&(le=Xu(le)),Ku(le,e.FORBID_CONTENTS,ke)),ie&&(F["#text"]=!0),X&&Ku(F,["html","head","body"]),F.table&&(Ku(F,["tbody"]),delete U.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw qu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw qu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,_=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(f,i)),null!==w&&"string"===typeof _&&(_=w.createHTML(""));Ru&&Ru(e),Ee=e}},Te=Ku({},[...ec,...tc,...rc]),Ie=Ku({},[...nc,...oc]),Pe=function(e){Du(r.removed,{element:e});try{x(e).removeChild(e)}catch(t){v(e)}},Ne=function(e,t){try{Du(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(n){Du(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Pe(t)}catch(n){}else try{t.setAttribute(e,"")}catch(n){}},Me=function(e){let t=null,r=null;if(Z)e="<remove></remove>"+e;else{const t=Bu(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===Ae&&ve===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=w?w.createHTML(e):e;if(ve===ge)try{t=(new h).parseFromString(o,Ae)}catch(s){}if(!t||!t.documentElement){t=S.createDocument(ve,"template",null);try{t.documentElement.innerHTML=be?_:o}catch(s){}}const i=t.body||t.documentElement;return e&&r&&i.insertBefore(n.createTextNode(r),i.childNodes[0]||null),ve===ge?k.call(t,X?"html":"body")[0]:X?t.documentElement:i},De=function(e){return A.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof p&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof d)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Fe=function(e){return"function"===typeof l&&e instanceof l};function ze(e,t,n){Pu(e,(e=>{e.call(r,t,n,Ee)}))}const Be=function(e){let t=null;if(ze(R.beforeSanitizeElements,e,null),Le(e))return Pe(e),!0;const n=ke(e.nodeName);if(ze(R.uponSanitizeElement,e,{tagName:n,allowedTags:F}),e.hasChildNodes()&&!Fe(e.firstElementChild)&&Vu(/<[/\w]/g,e.innerHTML)&&Vu(/<[/\w]/g,e.textContent))return Pe(e),!0;if(e.nodeType===Sc)return Pe(e),!0;if(J&&e.nodeType===Ac&&Vu(/<[/\w]/g,e.data))return Pe(e),!0;if(!F[n]||U[n]){if(!U[n]&&He(n)){if(H.tagNameCheck instanceof RegExp&&Vu(H.tagNameCheck,n))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(n))return!1}if(ie&&!le[n]){const t=x(e)||e.parentNode,r=y(e)||e.childNodes;if(r&&t){for(let n=r.length-1;n>=0;--n){const o=g(r[n],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,b(e))}}}return Pe(e),!0}return e instanceof u&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const r=Fu(e.tagName),n=Fu(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ge?"svg"===r:t.namespaceURI===fe?"svg"===r&&("annotation-xml"===n||we[n]):Boolean(Te[r]):e.namespaceURI===fe?t.namespaceURI===ge?"math"===r:t.namespaceURI===me?"math"===r&&_e[n]:Boolean(Ie[r]):e.namespaceURI===ge?!(t.namespaceURI===me&&!_e[n])&&!(t.namespaceURI===fe&&!we[n])&&!Ie[r]&&(Se[r]||!Te[r]):!("application/xhtml+xml"!==Ae||!ye[e.namespaceURI]))}(e)?(Pe(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Vu(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&e.nodeType===_c&&(t=e.textContent,Pu([j,O,T],(e=>{t=$u(t,e," ")})),e.textContent!==t&&(Du(r.removed,{element:e.cloneNode()}),e.textContent=t)),ze(R.afterSanitizeElements,e,null),!1):(Pe(e),!0)},$e=function(e,t,r){if(ne&&("id"===t||"name"===t)&&(r in n||r in Re))return!1;if(q&&!W[t]&&Vu(I,t));else if(V&&Vu(P,t));else if(!B[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&Vu(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&Vu(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Vu(H.tagNameCheck,r)||H.tagNameCheck instanceof Function&&H.tagNameCheck(r))))return!1}else if(pe[t]);else if(Vu(L,$u(r,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Hu(r,"data:")||!ce[e]){if(G&&!Vu(N,$u(r,M,"")));else if(r)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Bu(e,D)},Ue=function(e){ze(R.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let o=t.length;for(;o--;){const s=t[o],{name:a,namespaceURI:l,value:u}=s,c=ke(a);let d="value"===a?u:Uu(u);if(n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,ze(R.uponSanitizeAttribute,e,n),d=n.attrValue,!oe||"id"!==c&&"name"!==c||(Ne(a,e),d="user-content-"+d),J&&Vu(/((--!?|])>)|<\/(style|title)/i,d)){Ne(a,e);continue}if(n.forceKeepAttr)continue;if(Ne(a,e),!n.keepAttr)continue;if(!Q&&Vu(/\/>/i,d)){Ne(a,e);continue}K&&Pu([j,O,T],(e=>{d=$u(d,e," ")}));const p=ke(e.nodeName);if($e(p,c,d)){if(w&&"object"===typeof f&&"function"===typeof f.getAttributeType)if(l);else switch(f.getAttributeType(p,c)){case"TrustedHTML":d=w.createHTML(d);break;case"TrustedScriptURL":d=w.createScriptURL(d)}try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),Le(e)?Pe(e):Mu(r.removed)}catch(i){}}}ze(R.afterSanitizeAttributes,e,null)},We=function e(t){let r=null;const n=De(t);for(ze(R.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)ze(R.uponSanitizeShadowNode,r,null),Be(r),Ue(r),r.content instanceof s&&e(r.content);ze(R.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,a=null,u=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!==typeof e&&!Fe(e)){if("function"!==typeof e.toString)throw qu("toString is not a function");if("string"!==typeof(e=e.toString()))throw qu("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Y||Oe(t),r.removed=[],"string"===typeof e&&(se=!1),se){if(e.nodeName){const t=ke(e.nodeName);if(!F[t]||U[t])throw qu("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=Me("\x3c!----\x3e"),i=n.ownerDocument.importNode(e,!0),i.nodeType===wc&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!ee&&!K&&!X&&-1===e.indexOf("<"))return w&&re?w.createHTML(e):e;if(n=Me(e),!n)return ee?null:re?_:""}n&&Z&&Pe(n.firstChild);const c=De(se?e:n);for(;a=c.nextNode();)Be(a),Ue(a),a.content instanceof s&&We(a.content);if(se)return e;if(ee){if(te)for(u=C.call(n.ownerDocument);n.firstChild;)u.appendChild(n.firstChild);else u=n;return(B.shadowroot||B.shadowrootmode)&&(u=E.call(o,u,!0)),u}let d=X?n.outerHTML:n.innerHTML;return X&&F["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Vu(bc,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),K&&Pu([j,O,T],(e=>{d=$u(d,e," ")})),w&&re?w.createHTML(d):d},r.setConfig=function(){Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Y=!0},r.clearConfig=function(){Ee=null,Y=!1},r.isValidAttribute=function(e,t,r){Ee||Oe({});const n=ke(e),o=ke(t);return $e(n,o,r)},r.addHook=function(e,t){"function"===typeof t&&Du(R[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=Nu(R[e],t);return-1===r?void 0:Lu(R[e],r,1)[0]}return Mu(R[e])},r.removeHooks=function(e){R[e]=[]},r.removeAllHooks=function(){R={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();function Rc(e){var t,r=e.split("_");for(t=0;t<r.length;t++)r[t]=r[t].charAt(0).toUpperCase()+r[t].slice(1);return r.join(" ")}function jc(e){return new Date(e).toLocaleString()}function Oc(e){console.debug("%c\u2299parseErrorMessage","color:#00ff7b",e);var t=e;try{return e.error?(console.debug("%c\u2299","color:#00ff7b","err has err"),t=e.error.split(":")):e.data&&console.debug("%c\u2299ErrData","color:#00ff7b",e.data),console.debug("%c\u2b57parseErrorMessageerror","color:#A200FF",1,1[1],e),t}catch{console.debug("%c\u2299parseErrorMessage CATCH","color:#ff005d",e)}return e}function Tc(e){if(!e)return"";try{return e.toLowerCase().split(" ").map((function(e){return e[0]?e[0].toUpperCase()+e.substring(1):e.toUpperCase()})).join(" ")}catch(t){return console.debug("toTitleCase ERR ",t),t}}function Ic(e){return _u().get("https://ontology.api.hubmapconsortium.org/organs/by-code?application_context=HUBMAP").then((t=>{let r=t.data;if(e&&"array"===e){return Object.entries(r).map((e=>{let[t,r]=e;return{key:t,value:r}}))}return r})).catch((e=>{console.debug("ubkg_api_get_organ_type_set",e,e.response),Mc(e)}))}function Pc(){return _u().get("https://ontology.api.hubmapconsortium.org/dataset-types?application_context=HUBMAP").then((e=>e.data)).catch((e=>{console.debug("ubkg_api_get_dataset_type_set",e,e.response),Mc(e)}))}function Nc(){return _u().get("https://ontology.api.hubmapconsortium.org/valueset?parent_sab=HUBMAP&parent_code=C003041&child_sabs=HUBMAP").then((e=>e.data)).catch((e=>{console.debug("ubkg_api_get_dataset_type_set",e,e.response),Mc(e)}))}function Mc(e){if(console.debug("Error Format CHeck",e),e.response){if(e.response.data){if(e.response.data.includes("<!DOCTYPE html>")){var t=function(t){try{return Ec(t)}catch(e){return e}}(e.response.data);return{status:e.response.status,results:t}}return{status:e.response.status,results:e.response.data}}return{status:e.response.status,results:e.response.data}}return{error:e}}var Dc=r(8257),Lc=r.n(Dc),Fc=localStorage.getItem("info")?JSON.parse(localStorage.getItem("info")).groups_token:null;function zc(e){console.debug("%c\u25c9 Global: ","color:#00ff7b",Fc);const t={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};return _u().get("https://ingest.api.hubmapconsortium.org/metadata/usergroups",t).then((e=>{const t=e.data.groups.filter((e=>e.data_provider)).map((e=>e));return{status:e.status,results:t}})).catch((e=>(console.debug("ERR ingest_api_users_groups",e,e.response),e&&e.response&&e.response.response&&"User is not a member of group HuBMAP-read"===e.response.response?(console.debug("User exists just not in the read group"),{status:200,results:e.response.response}):e.response?{status:e.response.status,results:e.response.data}:(console.error("%c\u2299 Off Format err","color:#ff007b",e),{error:e}))))}function Bc(e){const t={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};return _u().get("https://ingest.api.hubmapconsortium.org/metadata/usergroups",t).then((e=>{console.debug("%c\u25c9 res ","color:#00ff7b",e);let t=e.data.groups;console.debug("%c\u25c9 ADMIN Check:","color:#FF227b",t);for(let r in t){let e=t[r].name;if(console.debug("%c\u25c9 groupName ","color:#ffe921",e),e.includes("hubmap-data-admin"))return!0}return!1})).catch((e=>(console.debug("ERR ingest_api_users_groups",e,e.response),{error:e})))}function $c(e){const t={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};return _u().get("https://ingest.api.hubmapconsortium.org/metadata/usergroups",t).then((e=>{const t=e.data.groups;return{status:e.status,results:t}})).catch((e=>({error:e})))}function Hc(e){const t={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};return _u().get("https://ingest.api.hubmapconsortium.org/metadata/data-provider-groups",t).then((e=>{const t=e.data.groups;return{status:e.status,results:t}})).catch((e=>({error:e})))}function Uc(e,t){const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};let n=`https://ingest.api.hubmapconsortium.org/entities/${e}/allowable-edit-states`;return _u().get(n,r).then((e=>({status:e.status,results:e.data}))).catch((e=>(console.debug("ingest_api_allowable_edit_states",e,e.response),e.response?{status:e.response.status,results:e.response.data}:{error:e})))}function Wc(e,t){const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};let n=`https://ingest.api.hubmapconsortium.org/entities/${e}/allowable-edit-states?ignore-publication-status=true`;return _u().get(n,r).then((e=>({status:e.status,results:e.data}))).catch((e=>({error:e})))}function Vc(e,t){const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};return _u().post("https://ingest.api.hubmapconsortium.org/datasets",e,r).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>({error:e})))}function qc(e,t,r){const n={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};let o=`https://ingest.api.hubmapconsortium.org/datasets/${e}/submit`;return _u().put(o,t,n).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>({error:e})))}function Gc(e,t){const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"multipart/form-data"}};return _u().get(`https://entity.api.hubmapconsortium.org/entities/${e}/globus-url/`,r).then((e=>({status:200,results:e.data}))).catch((e=>({error:e})))}function Qc(e,t,r){const n={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};let o=`https://ingest.api.hubmapconsortium.org/uploads/${e}/submit`;return _u().put(o,t,n).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>({error:e})))}function Kc(e,t){const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};t.send_to_email=!0;return _u().post("https://ingest.api.hubmapconsortium.org/notify",t,r).then((e=>{console.debug("ingest_api_notify_slack",e);let t=e.data;return{status:e.status,results:t}})).catch((e=>(console.debug("ingest_api_notify_slack",e),{error:e})))}function Jc(e,t){const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};let n=`https://ingest.api.hubmapconsortium.org/collections/${t}/register-doi`;return console.debug("%c\u25c9 publish ","color:#00ff7b",n,r),_u().put(n,t,r).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>e.response?{status:e.response.status,results:e.response.data}:{error:e}))}function Xc(e,t){const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};var n=new(Lc());return n.append("metadata",new Blob([t],{type:"text/tab-separated-values"}),t.name),n.append("entity_type","contributors"),_u().post("https://ingest.api.hubmapconsortium.org/metadata/validate?ensure-latest-cedar-version=true",n,r).then((e=>{console.debug("ingest_api_validate_contributors",e);let t=e.data;return{status:e.status,results:t}})).catch((e=>(console.debug("%c\u2b57  ingest_api_validate_contributors","color:#ff005d",e),{error:e})))}function Yc(e,t){var r="";if(void 0!==e&&e){switch(e.toUpperCase()){case"NEW":case"REOPENED":r="badge-purple";break;case"REORGANIZED":case"QA":case"SUBMITTED":r="badge-info";break;case"VALID":case"PUBLISHED":r="badge-success";break;case"INVALID":case"ERROR":r="badge-danger";break;case"LOCKED":case"PROCESSING":r="badge-secondary";break;case"UNPUBLISHED":r="badge-light";break;case"DEPRECATED":default:break;case"HOLD":r="badge-dark";break;case"INCOMPLETE":r="badge-incomplete"}return r}r="badge-danger",console.log("No Status Value for ID "+t)}function Zc(e){return(0,qt.Ay)("MuiLink",e)}const ed=(0,Vt.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var td=r(7162);const rd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nd=e=>{let{theme:t,ownerState:r}=e;const n=(e=>rd[e]||e)(r.color),o=(0,td.Yn)(t,`palette.${n}`,!1)||r.color,i=(0,td.Yn)(t,`palette.${n}Channel`);return"vars"in t&&i?`rgba(${i} / 0.4)`:(0,fi.X4)(o,.4)},od=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],id=(0,Ht.Ay)(Yt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${(0,Wt.A)(r.underline)}`],"button"===r.component&&t.button]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,Ft.A)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:nd({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ed.focusVisible}`]:{outline:"auto"}})})),sd=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:s="a",onBlur:a,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,h=(0,Lt.A)(r,od),{isFocusVisibleRef:f,onBlur:m,onFocus:g,ref:v}=(0,gi.A)(),[b,y]=i.useState(!1),x=(0,ii.A)(t,v),w=(0,Ft.A)({},r,{color:o,component:s,focusVisible:b,underline:c,variant:d}),_=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,i={root:["root",`underline${(0,Wt.A)(o)}`,"button"===r&&"button",n&&"focusVisible"]};return(0,$t.A)(i,Zc,t)})(w);return(0,Ne.jsx)(id,(0,Ft.A)({color:o,className:(0,zt.A)(_.root,n),classes:u,component:s,onBlur:e=>{m(e),!1===f.current&&y(!1),a&&a(e)},onFocus:e=>{g(e),!0===f.current&&y(!0),l&&l(e)},ref:x,ownerState:w,variant:d,sx:[...Object.keys(rd).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},h))})),ad=[{field:"hubmap_id",headerName:"HubMAP ID",width:180},{field:"submission_id",headerName:"Submission ID",width:145},{field:"lab_donor_id",headerName:"Deidentified Name",width:190,hidden:!0},{field:"group_name",headerName:"Group Name",width:250},{field:"created_by_user_email",headerName:"Created By",width:250}],ld=[{field:"created_by_user_displayname",headerName:"Created By",width:210,hidden:!0},{field:"hubmap_id",headerName:"HubMAP ID",width:180},{field:"submission_id",headerName:"Submission ID",width:150},{field:"computed_lab_id_type",headerName:"Lab ID",sortable:!1,width:173,valueGetter:fd},{field:"display_subtype",headerName:"Type",width:200},{field:"group_name",headerName:"Group Name",width:250},{field:"created_by_user_email",headerName:"Created By",width:250},{field:"entity_type",headerName:"Type",hide:!0,filterable:!1,sortable:!1},{field:"lab_donor_id",headerName:"LABID",hide:!0,filterable:!1,sortable:!1},{field:"lab_tissue_sample_id",headerName:"LABID",hide:!0,filterable:!1,sortable:!1},{field:"organ",headerName:"OrganCode",hide:!0,filterable:!1,sortable:!1},{field:"specimen_type",headerName:"Specimen Type",hide:!0,filterable:!1,sortable:!1}],ud=[{field:"hubmap_id",headerName:"HubMAP ID",width:180},{field:"lab_dataset_id",headerName:"Lab Name/ID",width:200},{field:"group_name",headerName:"Group Name",width:200},{field:"created_by_user_email",headerName:"Created By",width:210},{field:"data_access_level",headerName:"Access Level",width:150},{field:"status",headerName:"Submission Status",width:200,renderCell:e=>(0,Ne.jsx)("span",{className:"badge "+Yc(e.value,"NA"),style:{width:"100px"},children:e.value})},{field:"uuid",headerName:"Data",width:100,renderCell:e=>(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("button",{className:"btn btn-link",onClick:()=>vd(e.value),children:(0,Ne.jsx)(bo,{icon:wo,"data-tip":!0,"data-for":"folder_tooltip"})})})}],cd=[{field:"hubmap_id",headerName:"HubMAP ID",width:180},{field:"group_name",headerName:"Group Name",width:200},{field:"created_by_user_email",headerName:"Created By",width:210},{field:"data_access_level",headerName:"Access Level",width:150},{field:"status",headerName:"Submission Status",width:200,renderCell:e=>(0,Ne.jsx)("span",{style:{width:"100px"},className:"badge "+Yc(e.value,"NA"),children:e.value})},{field:"uuid",headerName:"Data",width:100,renderCell:e=>(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("button",{className:"btn btn-link",onClick:()=>vd(e.value),children:(0,Ne.jsx)(bo,{icon:wo,"data-tip":!0,"data-for":"folder_tooltip"})})})}],dd=[{field:"hubmap_id",headerName:"HubMAP ID",width:180},{field:"title",headerName:"Upload Name",width:250,renderCell:e=>(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("span",{children:e.value})})},{field:"group_name",headerName:"Group Name",width:200},{field:"created_by_user_email",headerName:"Created By",width:210},{field:"status",headerName:"Submission Status",width:160,renderCell:e=>(0,Ne.jsx)("span",{style:{width:"100px"},className:"badge "+Yc(e.value,"NA"),children:e.value})}],pd=[{field:"created_by_user_email",headerName:"Created By",width:210},{field:"hubmap_id",headerName:"HubMAP ID",width:180},{field:"title",headerName:"Title",width:250,renderCell:e=>(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("span",{children:e.value})})},{field:"group_name",headerName:"Group",width:210},{field:"doi_url",headerName:"DOI",width:400,renderCell:e=>(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("span",{children:e.value})}),valueGetter:e=>{let{row:t}=e;if(t.doi_url&&t.registered_doi)return function(e,t){try{return(0,Ne.jsx)(sd,{target:"_blank",href:e,rel:"noreferrer",children:t})}catch(r){console.debug("%c\u2b57","color:#ff005d","doiLink Error: ",r)}return""}(t.doi_url,t.registered_doi)}},{field:"registered_doi",headerName:"registered_doi",hide:!0}],hd=[{field:"hubmap_id",headerName:"HuBMAP ID",width:180},{field:"computed_lab_id_type",headerName:"Lab ID",width:160,sortable:!1,valueGetter:fd},{field:"submission_id",headerName:"Submission ID",width:160},{field:"type",headerName:"Type",width:180,sortable:!1,valueGetter:function(e){try{return e.row.display_subtype||e.row.organ||e.row.specimen_type||e.row.entity_type}catch{return""}}},{field:"group_name",headerName:"Group Name",width:200},{field:"statusAccess",width:180,headerName:"Status / Access Level",sortable:!1,valueGetter:md,renderCell:gd},{field:"uuid",headerName:"Action",sortable:!1,renderCell:e=>(0,Ne.jsx)("div",{sx:{width:"100%"},className:"actionButton","data-target":e.row.uuid,children:(0,Ne.jsx)(bo,{className:"inline-icon interaction-icon",icon:Co,color:"red"})})}];function fd(e){try{return e.row.lab_donor_id||e.row.lab_tissue_sample_id||e.row.lab_dataset_id}catch{}return""}function md(e){return e.row.status?["status",e.row.status]:e.row.data_access_level?["access",e.row.data_access_level]:["",""]}function gd(e){return"status"===e.value[0]?(0,Ne.jsx)("span",{className:"badge "+Yc(e.value[1],"NA"),style:{width:"100px"},children:e.value[1]}):e.value[1]}function vd(e){Gc(e,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{200===e.status&&window.open(e.results,"_blank")}))}var bd=localStorage.getItem("info")?JSON.parse(localStorage.getItem("info")).groups_token:null;function yd(e,t){const r={headers:{Authorization:"Bearer "+bd,"Content-Type":"application/json"}};let n=`https://entity.api.hubmapconsortium.org/entities/${e}`;return _u().get(n,r).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>(console.debug("entity_api_get_entity",e,e.response),e.response?e.response:{error:e})))}function xd(e,t,r){const n={headers:{"X-Hubmap-Application":"ingest-api",Authorization:"Bearer "+bd,"Content-Type":"application/json"}};let o=`https://entity.api.hubmapconsortium.org/entities/${e}`;return _u().put(o,t,n).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>e.response?(console.debug("entity_api_update_entity Error",e.response.status,e.response.data),{status:e.response.status,results:e.response.data}):{error:e.response}))}function wd(e,t,r){const n={headers:{"X-Hubmap-Application":"ingest-api",Authorization:"Bearer "+bd,"Content-Type":"application/json"}};let o=`https://entity.api.hubmapconsortium.org/entities/${e}`;return _u().post(o,t,n).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>(console.debug("entity_api_create_entity error",e,e.response),e.response&&e.response.data?{error:e.response.data}:{error:e})))}function _d(e,t){const r={headers:{Authorization:"Bearer "+bd,"Content-Type":"application/json"}};let n=`https://entity.api.hubmapconsortium.org/entities/${e}/ancestor-organs`;return _u().get(n,r).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>({error:e})))}function Sd(e,t){let r=`https://entity.api.hubmapconsortium.org/entities/${e}/globus-url`;const n={headers:{Authorization:"Bearer "+bd,"Content-Type":"application/json"}};return _u().get(r,n).then((e=>({status:e.status,results:e.data}))).catch((e=>({error:e})))}function Ad(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ad(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const Cd=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ad(e))&&(n&&(n+=" "),n+=t);return n};var kd=r(7598),Ed=r(7868),Rd=r(1188);function jd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,Rd.A)(e,t,r)}function Od(e){if(e.type)return e;if("#"===e.charAt(0))return Od(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((0,Ed.A)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Ed.A)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Td(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 Id(e,t){return e=Od(e),t=jd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Td(e)}function Pd(e,t){if(e=Od(e),t=jd(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 Td(e)}function Nd(e,t){if(e=Od(e),t=jd(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 Td(e)}function Md(e){return(0,qt.Ay)("MuiDataGrid",e)}const Dd=(0,Vt.A)("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);const Ld={[`.${Dd.columnSeparator}, .${Dd["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},Fd={[`& .${Dd.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Dd.menuIcon}`]:{width:"auto",visibility:"visible"}},zd=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Dd.autoHeight}`]:t.autoHeight},{[`&.${Dd.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${Dd["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${Dd["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${Dd["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${Dd.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${Dd["root--disableUserSelection"]} .${Dd.cell}`]:t["root--disableUserSelection"]},{[`&.${Dd.autosizing}`]:t.autosizing},{[`& .${Dd.editBooleanCell}`]:t.editBooleanCell},{[`& .${Dd["cell--editing"]}`]:t["cell--editing"]},{[`& .${Dd["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${Dd["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${Dd["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${Dd["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${Dd.cell}`]:t.cell},{[`& .${Dd["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${Dd["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${Dd["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${Dd["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${Dd["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${Dd.cellContent}`]:t.cellContent},{[`& .${Dd.cellCheckbox}`]:t.cellCheckbox},{[`& .${Dd.cellSkeleton}`]:t.cellSkeleton},{[`& .${Dd.checkboxInput}`]:t.checkboxInput},{[`& .${Dd["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${Dd["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${Dd["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${Dd["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${Dd["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${Dd["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${Dd["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${Dd["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${Dd["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${Dd.columnHeader}`]:t.columnHeader},{[`& .${Dd.headerFilterRow}`]:t.headerFilterRow},{[`& .${Dd.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${Dd.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${Dd.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${Dd["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${Dd["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${Dd.columnSeparator}`]:t.columnSeparator},{[`& .${Dd.filterIcon}`]:t.filterIcon},{[`& .${Dd.iconSeparator}`]:t.iconSeparator},{[`& .${Dd.menuIcon}`]:t.menuIcon},{[`& .${Dd.menuIconButton}`]:t.menuIconButton},{[`& .${Dd.menuOpen}`]:t.menuOpen},{[`& .${Dd.menuList}`]:t.menuList},{[`& .${Dd["row--editable"]}`]:t["row--editable"]},{[`& .${Dd["row--editing"]}`]:t["row--editing"]},{[`& .${Dd["row--dragging"]}`]:t["row--dragging"]},{[`& .${Dd.row}`]:t.row},{[`& .${Dd.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${Dd.rowReorderCell}`]:t.rowReorderCell},{[`& .${Dd["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${Dd.sortIcon}`]:t.sortIcon},{[`& .${Dd.withBorderColor}`]:t.withBorderColor},{[`& .${Dd.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${Dd.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${Dd.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${Dd["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})((e=>{let{theme:t}=e;const r=function(e){return e.vars?e.vars.palette.TableCell.border:"light"===e.palette.mode?Nd(Id(e.palette.divider,1),.88):Pd(Id(e.palette.divider,1),.68)}(t),n=t.shape.borderRadius;return(0,Ft.A)({"--unstable_DataGrid-radius":"number"===typeof n?`${n}px`:n,"--unstable_DataGrid-headWeight":t.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":t.vars?`rgba(${t.vars.palette.background.defaultChannel} / ${t.vars.palette.action.disabledOpacity})`:Id(t.palette.background.default,t.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:r,borderRadius:"var(--unstable_DataGrid-radius)",color:(t.vars||t).palette.text.primary},t.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${Dd.autoHeight}`]:{height:"auto",[`& .${Dd["row--lastVisible"]} .${Dd.cell}`]:{borderBottomColor:"transparent"}},[`&.${Dd.autosizing}`]:{[`& .${Dd.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${Dd.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"},[`& .${Dd.groupingCriteriaCell}`]:{width:"unset"},[`& .${Dd.treeDataGroupingCell}`]:{width:"unset"}},[`& .${Dd["virtualScrollerContent--overflowed"]} .${Dd["row--lastVisible"]} .${Dd.cell}`]:{borderBottomColor:"transparent"},[`& .${Dd.columnHeader}, & .${Dd.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${Dd.columnHeader}:focus-within, & .${Dd.cell}:focus-within`]:{outline:`solid ${t.vars?`rgba(${t.vars.palette.primary.mainChannel} / 0.5)`:Id(t.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${Dd.columnHeader}:focus, & .${Dd.cell}:focus`]:{outline:`solid ${t.palette.primary.main} 1px`},[`& .${Dd.columnHeaderCheckbox}, & .${Dd.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Dd.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${Dd["columnHeader--sorted"]} .${Dd.iconButtonContainer}, & .${Dd["columnHeader--filtered"]} .${Dd.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Dd.columnHeader}:not(.${Dd["columnHeader--sorted"]}) .${Dd.sortIcon}`]:{opacity:0,transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.shorter})},[`& .${Dd.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${Dd.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Dd["columnHeader--filledGroup"]} .${Dd.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${Dd["columnHeader--filledGroup"]}.${Dd["columnHeader--showColumnBorder"]} .${Dd.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${Dd["columnHeader--filledGroup"]}.${Dd["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${Dd.headerFilterRow}`]:{borderTop:`1px solid ${r}`},[`& .${Dd.sortIcon}, & .${Dd.filterIcon}`]:{fontSize:"inherit"},[`& .${Dd["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Dd["columnHeader--alignCenter"]} .${Dd.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Dd["columnHeader--alignRight"]} .${Dd.columnHeaderDraggableContainer}, & .${Dd["columnHeader--alignRight"]} .${Dd.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Dd["columnHeader--alignCenter"]} .${Dd.menuIcon}, & .${Dd["columnHeader--alignRight"]} .${Dd.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${Dd["columnHeader--alignRight"]} .${Dd.menuIcon}, & .${Dd["columnHeader--alignRight"]} .${Dd.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${Dd["columnHeader--moving"]}`]:{backgroundColor:(t.vars||t).palette.action.hover},[`& .${Dd.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:r},"@media (hover: hover)":{[`& .${Dd.columnHeaders}:hover`]:Ld,[`& .${Dd.columnHeader}:hover`]:Fd,[`& .${Dd.columnHeader}:not(.${Dd["columnHeader--sorted"]}):hover .${Dd.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${Dd.columnHeaders}`]:Ld,[`& .${Dd.columnHeader}`]:Fd},[`& .${Dd["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${Dd["columnSeparator--sideRight"]}`]:{right:-12},[`& .${Dd["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(t.vars||t).palette.text.primary,"@media (hover: none)":{color:r}},[`&.${Dd["columnSeparator--resizing"]}`]:{color:(t.vars||t).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${Dd.iconSeparator}`]:{color:"inherit"},[`& .${Dd.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${Dd.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Dd.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Id(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(\n                ${t.vars.palette.action.selectedOpacity} + \n                ${t.vars.palette.action.hoverOpacity}\n              ))`:Id(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Id(t.palette.primary.main,t.palette.action.selectedOpacity)}}}},[`& .${Dd.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Id(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity+t.palette.action.hoverOpacity})`:Id(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Id(t.palette.primary.main,t.palette.action.selectedOpacity)}}}},[`&.${Dd["root--disableUserSelection"]} .${Dd.cell}`]:{userSelect:"none"},[`& .${Dd.row}:not(.${Dd["row--dynamicHeight"]}) > .${Dd.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${Dd.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${Dd.cell}.${Dd["cell--selectionMode"]}`]:{cursor:"default"},[`& .${Dd.cell}.${Dd["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:t.shadows[2],backgroundColor:(t.vars||t).palette.background.paper,"&:focus-within":{outline:`solid ${(t.vars||t).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${Dd["row--editing"]}`]:{boxShadow:t.shadows[2]},[`& .${Dd["row--editing"]} .${Dd.cell}`]:{boxShadow:t.shadows[0],backgroundColor:(t.vars||t).palette.background.paper},[`& .${Dd.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Dd.booleanCell}[data-value="true"]`]:{color:(t.vars||t).palette.text.secondary},[`& .${Dd.booleanCell}[data-value="false"]`]:{color:(t.vars||t).palette.text.disabled},[`& .${Dd.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:t.spacing(1)},[`& .${Dd.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(t.vars||t).palette.action.disabledOpacity},[`& .${Dd["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${Dd.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${Dd.withBorderColor}`]:{borderColor:r},[`& .${Dd["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${Dd["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${Dd["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${Dd["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${Dd["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${Dd.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Dd.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Dd["columnHeader--dragging"]}, & .${Dd["row--dragging"]}`]:{background:(t.vars||t).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(t.vars||t).palette.action.disabledOpacity},[`& .${Dd["row--dragging"]}`]:{background:(t.vars||t).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(t.vars||t).palette.action.disabledOpacity,[`& .${Dd.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${Dd.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Dd.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:t.spacing(2)},[`& .${Dd.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Dd.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:t.spacing(2)}})})),Bd={};function $d(e,t){const r=i.useRef(Bd);return r.current===Bd&&(r.current=e(t)),r}const Hd=[];function Ud(e){i.useEffect(e,Hd)}const Wd=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warning",r=!1;const n=Array.isArray(e)?e.join("\n"):e;return()=>{r||(r=!0,"error"===t?console.error(n):console.warn(n))}},Vd=Object.is;function qd(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let r=0,n=0;for(const o in e){if(r+=1,!Vd(e[o],t[o]))return!1;if(!(o in t))return!1}for(const o in t)n+=1;return r===n}Wd(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function Gd(e,t){return function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state)}const Qd=Object.is,Kd=qd,Jd=()=>({state:null,equals:null,selector:null}),Xd=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qd;const n=$d(Jd),o=null!==n.current.selector,[s,a]=i.useState(o?null:Gd(e,t));return n.current.state=s,n.current.equals=r,n.current.selector=t,Ud((()=>e.current.store.subscribe((()=>{const t=Gd(e,n.current.selector);n.current.equals(n.current.state,t)||(n.current.state=t,a(t))})))),s},Yd=i.createContext(void 0);function Zd(){const e=i.useContext(Yd);if(void 0===e)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return e}const ep=i.createContext(void 0);const tp=()=>{const e=i.useContext(ep);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};var rp="NOT_FOUND";var np=function(e,t){return e===t};function op(e,t){var r="object"===typeof t?t:{equalityCheck:t},n=r.equalityCheck,o=void 0===n?np:n,i=r.maxSize,s=void 0===i?1:i,a=r.resultEqualityCheck,l=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,o=0;o<n;o++)if(!e(t[o],r[o]))return!1;return!0}}(o),u=1===s?function(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:rp},put:function(e,r){t={key:e,value:r}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(l):function(e,t){var r=[];function n(e){var n=r.findIndex((function(r){return t(e,r.key)}));if(n>-1){var o=r[n];return n>0&&(r.splice(n,1),r.unshift(o)),o.value}return rp}return{get:n,put:function(t,o){n(t)===rp&&(r.unshift({key:t,value:o}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(s,l);function c(){var t=u.get(arguments);if(t===rp){if(t=e.apply(null,arguments),a){var r=u.getEntries().find((function(e){return a(e.value,t)}));r&&(t=r.value)}u.put(arguments,t)}return t}return c.clearCache=function(){return u.clear()},c}function ip(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 function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var i,s=0,a={memoizeOptions:void 0},l=n.pop();if("object"===typeof l&&(a=l,l=n.pop()),"function"!==typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var u=a.memoizeOptions,c=void 0===u?r:u,d=Array.isArray(c)?c:[c],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var r=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}(n),h=e.apply(void 0,[function(){return s++,l.apply(null,arguments)}].concat(d)),f=e((function(){for(var e=[],t=p.length,r=0;r<t;r++)e.push(p[r].apply(null,arguments));return i=h.apply(null,e)}));return Object.assign(f,{resultFunc:l,memoizedResultFunc:h,dependencies:p,lastResult:function(){return i},recomputations:function(){return s},resetRecomputations:function(){return s=0}}),f}}var sp=ip(op);const ap={cache:new WeakMap};Wd(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g. `mySelector(state, apiRef.current.instanceId)`."]);function lp(e){return"current"in e&&"instanceId"in e.current}const up={id:"default"},cp=function(e,t,r,n,o,i){if((arguments.length<=6?0:arguments.length-6)>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&r&&n&&o&&i)s=(s,a)=>{const l=lp(s),u=null!=a?a:l?s.current.instanceId:up,c=l?s.current.state:s,d=e(c,u),p=t(c,u),h=r(c,u),f=n(c,u),m=o(c,u);return i(d,p,h,f,m)};else if(e&&t&&r&&n&&o)s=(i,s)=>{const a=lp(i),l=null!=s?s:a?i.current.instanceId:up,u=a?i.current.state:i,c=e(u,l),d=t(u,l),p=r(u,l),h=n(u,l);return o(c,d,p,h)};else if(e&&t&&r&&n)s=(o,i)=>{const s=lp(o),a=null!=i?i:s?o.current.instanceId:up,l=s?o.current.state:o,u=e(l,a),c=t(l,a),d=r(l,a);return n(u,c,d)};else if(e&&t&&r)s=(n,o)=>{const i=lp(n),s=null!=o?o:i?n.current.instanceId:up,a=i?n.current.state:n,l=e(a,s),u=t(a,s);return r(l,u)};else{if(!e||!t)throw new Error("Missing arguments");s=(r,n)=>{const o=lp(r),i=null!=n?n:o?r.current.instanceId:up,s=o?r.current.state:r,a=e(s,i);return t(a)}}return s.acceptsApiRef=!0,s},dp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=function(){for(var e,r,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];const[s,a]=o,l=lp(s),u=l?s.current.instanceId:null!=a?a:up,c=l?s.current.state:s;const{cache:d}=ap;var p;if(d.get(u)&&null!=(e=d.get(u))&&e.get(t))return null==(p=d.get(u))?void 0:p.get(t)(c,u);const h=sp(...t);return d.get(u)||d.set(u,new Map),null==(r=d.get(u))||r.set(t,h),h(c,u)};return n.acceptsApiRef=!0,n},pp=e=>e.density,hp=cp(pp,(e=>e.value)),fp=cp(pp,(e=>e.factor)),mp=e=>e.columns,gp=cp(mp,(e=>e.orderedFields)),vp=cp(mp,(e=>e.lookup)),bp=dp(gp,vp,((e,t)=>e.map((e=>t[e])))),yp=cp(mp,(e=>e.columnVisibilityModel)),xp=dp(bp,yp,((e,t)=>e.filter((e=>!1!==t[e.field])))),wp=dp(xp,(e=>e.map((e=>e.field)))),_p=dp(xp,(e=>{const t=[];let r=0;for(let n=0;n<e.length;n+=1)t.push(r),r+=e[n].computedWidth;return t})),Sp=cp(xp,_p,((e,t)=>{const r=e.length;return 0===r?0:t[r-1]+e[r-1].computedWidth})),Ap=dp(bp,(e=>e.filter((e=>e.filterable)))),Cp=dp(bp,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),kp=e=>e.columnGrouping,Ep=dp(kp,(e=>{var t;return null!=(t=null==e?void 0:e.unwrappedGroupingModel)?t:{}})),Rp=dp(kp,(e=>{var t;return null!=(t=null==e?void 0:e.lookup)?t:{}})),jp=dp(kp,(e=>{var t;return null!=(t=null==e?void 0:e.headerStructure)?t:[]})),Op=cp(kp,(e=>{var t;return null!=(t=null==e?void 0:e.maxDepth)?t:0})),Tp=e=>e.rows,Ip=cp(Tp,(e=>e.totalRowCount)),Pp=cp(Tp,(e=>e.loading)),Np=cp(Tp,(e=>e.totalTopLevelRowCount)),Mp=cp(Tp,(e=>e.dataRowIdToModelLookup)),Dp=cp(Tp,(e=>e.dataRowIdToIdLookup)),Lp=cp(Tp,(e=>e.tree)),Fp=cp(Tp,(e=>e.groupingName)),zp=cp(Tp,(e=>e.treeDepths)),Bp=dp(Tp,(e=>{const t=Object.entries(e.treeDepths);return 0===t.length?1:t.filter((e=>{let[,t]=e;return t>0})).map((e=>{let[t]=e;return Number(t)})).sort(((e,t)=>t-e))[0]+1})),$p=cp(Tp,(e=>e.dataRowIds)),Hp=dp(cp(Tp,(e=>null==e?void 0:e.additionalRowGroups)),(e=>{var t,r;const n=null==e?void 0:e.pinnedRows;return{bottom:null==n||null==(t=n.bottom)?void 0:t.map((e=>{var t;return{id:e.id,model:null!=(t=e.model)?t:{}}})),top:null==n||null==(r=n.top)?void 0:r.map((e=>{var t;return{id:e.id,model:null!=(t=e.model)?t:{}}}))}})),Up=cp(Hp,(e=>{var t,r;return((null==e||null==(t=e.top)?void 0:t.length)||0)+((null==e||null==(r=e.bottom)?void 0:r.length)||0)})),Wp=()=>{var e;const t=Zd(),r=tp(),n=Xd(t,xp),o=Xd(t,Ip),i=Xd(t,Op),s=Xd(t,Up);let a="grid";return null!=(e=r.experimentalFeatures)&&e.ariaV7&&r.treeData&&(a="treegrid"),{role:a,"aria-colcount":n.length,"aria-rowcount":i+1+s+o,"aria-multiselectable":!r.disableMultipleRowSelection}},Vp=["children","className"],qp=i.forwardRef((function(e,t){var r;const n=tp(),{children:o,className:s}=e,a=(0,Lt.A)(e,Vp),l=Zd(),u=Xd(l,hp),c=i.useRef(null),d=(0,qs.A)(c,t),p=null!=(r=n.experimentalFeatures)&&r.ariaV7?null:Wp,h="function"===typeof p?p():null,f=(0,Ft.A)({},n,{density:u}),m=(e=>{const{autoHeight:t,density:r,classes:n}=e,o={root:["root",t&&"autoHeight",`root--density${(0,kd.A)(r)}`,"withBorderColor"]};return(0,$t.A)(o,Md,n)})(f);l.current.register("public",{rootElementRef:c});const[g,v]=i.useState(!1);return(0,ua.A)((()=>{v(!0)}),[]),g?(0,Ne.jsx)(zd,(0,Ft.A)({ref:d,className:Cd(s,m.root),ownerState:f},h,a,{children:o})):null}));function Gp(){var e,t;const r=tp();return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)(r.slots.preferencesPanel,(0,Ft.A)({},null==(e=r.slotProps)?void 0:e.preferencesPanel)),r.slots.toolbar&&(0,Ne.jsx)(r.slots.toolbar,(0,Ft.A)({},null==(t=r.slotProps)?void 0:t.toolbar))]})}var Qp=r(9172);const Kp=["ownerState"],Jp=["variants"],Xp=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Yp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Zp=(0,nr.A)(),eh=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function th(e){let{defaultTheme:t,theme:r,themeId:n}=e;return o=r,0===Object.keys(o).length?t:r[n]||r;var o}function rh(e){return e?(t,r)=>r[e]:null}function nh(e,t){let{ownerState:r}=t,n=(0,Lt.A)(t,Kp);const o="function"===typeof e?e((0,Ft.A)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>nh(e,(0,Ft.A)({ownerState:r},n))));if(o&&"object"===typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Lt.A)(o,Jp);return e.forEach((e=>{let o=!0;"function"===typeof e.props?o=e.props((0,Ft.A)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,Ft.A)({ownerState:r},n,r)):e.style))})),t}return o}const oh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r=Zp,rootShouldForwardProp:n=Yp,slotShouldForwardProp:o=Yp}=e,i=e=>(0,rr.A)((0,Ft.A)({},e,{theme:th((0,Ft.A)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,tr.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=rh(eh(l))}=s,p=(0,Lt.A)(s,Xp),h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,f=c||!1;let m=Yp;"Root"===l||"root"===l?m=n:l?m=o:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,tr.default)(e,(0,Ft.A)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"===typeof e&&e.__emotion_real!==e||(0,Qp.Q)(e)?n=>nh(e,(0,Ft.A)({},n,{theme:th({theme:n.theme,defaultTheme:r,themeId:t})})):e,b=function(n){let o=v(n);for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];const c=l?l.map(v):[];a&&d&&c.push((e=>{const n=th((0,Ft.A)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[a]||!n.components[a].styleOverrides)return null;const o=n.components[a].styleOverrides,i={};return Object.entries(o).forEach((t=>{let[r,o]=t;i[r]=nh(o,(0,Ft.A)({},e,{theme:n}))})),d(e,i)})),a&&!h&&c.push((e=>{var n;const o=th((0,Ft.A)({},e,{defaultTheme:r,themeId:t}));return nh({variants:null==o||null==(n=o.components)||null==(n=n[a])?void 0:n.variants},(0,Ft.A)({},e,{theme:o}))})),f||c.push(i);const p=c.length-l.length;if(Array.isArray(n)&&p>0){const e=new Array(p).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const m=g(o,...c);return e.muiName&&(m.muiName=e.muiName),m};return g.withConfig&&(b.withConfig=g.withConfig),b}}(),ih=oh("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})((()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}))),sh=i.forwardRef(((e,t)=>{var r;const n=tp(),o=(e=>{const{classes:t}=e;return(0,$t.A)({root:["main"]},Md,t)})(n),i=null!=(r=n.experimentalFeatures)&&r.ariaV7?Wp:null,s="function"===typeof i?i():null;return(0,Ne.jsx)(ih,(0,Ft.A)({ref:t,className:o.root,ownerState:n},s,{children:e.children}))})),ah=e=>e.sorting,lh=cp(ah,(e=>e.sortedRows)),uh=dp(lh,Mp,((e,t)=>e.map((e=>{var r;return{id:e,model:null!=(r=t[e])?r:{}}})))),ch=cp(ah,(e=>e.sortModel)),dh=dp(ch,(e=>e.reduce(((t,r,n)=>(t[r.field]={sortDirection:r.sort,sortIndex:e.length>1?n+1:void 0},t)),{}))),ph=e=>e.filter,hh=cp(ph,(e=>e.filterModel)),fh=cp(hh,(e=>e.quickFilterValues)),mh=cp(ph,(e=>e.filteredRowsLookup)),gh=(cp(ph,(e=>e.filteredDescendantCountLookup)),dp((e=>e.visibleRowsLookup),uh,((e,t)=>t.filter((t=>!1!==e[t.id]))))),vh=dp(gh,(e=>e.map((e=>e.id)))),bh=dp(mh,uh,((e,t)=>t.filter((t=>!1!==e[t.id])))),yh=dp(bh,(e=>e.map((e=>e.id)))),xh=dp(gh,Lp,Bp,((e,t,r)=>r<2?e:e.filter((e=>{var r;return 0===(null==(r=t[e.id])?void 0:r.depth)})))),wh=cp(gh,(e=>e.length)),_h=cp(xh,(e=>e.length)),Sh=dp(hh,vp,((e,t)=>{var r;return null==(r=e.items)?void 0:r.filter((e=>{var r,n;if(!e.field)return!1;const o=t[e.field];if(null==o||!o.filterOperators||0===(null==o||null==(r=o.filterOperators)?void 0:r.length))return!1;const i=o.filterOperators.find((t=>t.value===e.operator));return!!i&&(!i.InputComponent||null!=e.value&&""!==(null==(n=e.value)?void 0:n.toString()))}))})),Ah=dp(Sh,(e=>e.reduce(((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e)),{}))),Ch=e=>e.focus,kh=cp(Ch,(e=>e.cell)),Eh=cp(Ch,(e=>e.columnHeader)),Rh=(cp(Ch,(e=>e.columnHeaderFilter)),cp(Ch,(e=>e.columnGroupHeader))),jh=e=>e.tabIndex,Oh=cp(jh,(e=>e.cell)),Th=cp(jh,(e=>e.columnHeader)),Ih=(cp(jh,(e=>e.columnHeaderFilter)),cp(jh,(e=>e.columnGroupHeader))),Ph=e=>e.columnMenu;function Nh(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:r,children:n}=e,o=Zd(),s=tp(),a=i.useRef(null),l=Xd(o,xp),u=Xd(o,Ah),c=Xd(o,dh),d=Xd(o,_p),p=Xd(o,Th),h=Xd(o,Oh),f=Xd(o,Ih),m=Xd(o,Eh),g=Xd(o,Rh),v=Xd(o,fp),b=Xd(o,Op),y=Xd(o,Ph),x=Xd(o,yp),w=Xd(o,jp),_=!(null===f&&null===p&&null===h);(0,ua.A)((()=>{o.current.computeSizeAndPublishResizeEvent();const e=a.current;if("undefined"===typeof ResizeObserver)return()=>{};let t;const r=new ResizeObserver((()=>{t=requestAnimationFrame((()=>{o.current.computeSizeAndPublishResizeEvent()}))}));return e&&r.observe(e),()=>{t&&window.cancelAnimationFrame(t),e&&r.unobserve(e)}}),[o]);const S=i.useRef(null),A=i.useRef(null),C=i.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:A,columnHeadersElementRef:S,virtualScrollerRef:C,mainElementRef:a});const k=!!o.current.getRootDimensions();return(0,Ne.jsxs)(sh,{ref:a,children:[(0,Ne.jsx)(s.slots.columnHeaders,(0,Ft.A)({ref:A,innerRef:S,visibleColumns:l,filterColumnLookup:u,sortColumnLookup:c,columnPositions:d,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:f,columnHeaderFocus:m,columnGroupHeaderFocus:g,densityFactor:v,headerGroupingMaxDepth:b,columnMenuState:y,columnVisibility:x,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:_},r)),k&&(0,Ne.jsx)(t,{ref:C}),n]})}function Mh(){var e;const t=tp();return t.hideFooter?null:(0,Ne.jsx)(t.slots.footer,(0,Ft.A)({},null==(e=t.slotProps)?void 0:e.footer))}const Dh=i.createContext(void 0);function Lh(e){let{privateApiRef:t,props:r,children:n}=e;const o=i.useRef(t.current.getPublicApi());return(0,Ne.jsx)(ep.Provider,{value:r,children:(0,Ne.jsx)(Yd.Provider,{value:t,children:(0,Ne.jsx)(Dh.Provider,{value:o,children:n})})})}function Fh(e){return"function"===typeof e}function zh(e){return"object"===typeof e&&null!==e}function Bh(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const $h=(e,t,r)=>Math.max(t,Math.min(r,e));function Hh(e,t){if(e===t)return!0;if(e&&t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n+=1)if(!Hh(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const r=Array.from(e.entries());for(let e=0;e<r.length;e+=1)if(!t.has(r[e][0]))return!1;for(let e=0;e<r.length;e+=1){const n=r[e];if(!Hh(n[1],t.get(n[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const r=Array.from(e.entries());for(let e=0;e<r.length;e+=1)if(!t.has(r[e][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n+=1)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e),n=r.length;if(n!==Object.keys(t).length)return!1;for(let e=0;e<n;e+=1)if(!Object.prototype.hasOwnProperty.call(t,r[e]))return!1;for(let o=0;o<n;o+=1){const n=r[o];if(!Hh(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Uh(e,t,r){const n=(o=e,()=>{let e=o+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296});var o;return()=>t+(r-t)*n()}function Wh(e){return"function"===typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}function Vh(e,t,r){const n=i.useRef(!0);i.useEffect((()=>{n.current=!1,e.current.register(r,t)}),[e,r,t]),n.current&&e.current.register(r,t)}const qh=function(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}()&&null!=window.localStorage.getItem("DEBUG"),Gh=()=>{},Qh={debug:Gh,info:Gh,warn:Gh,error:Gh},Kh=["debug","info","warn","error"];function Jh(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console;const n=Kh.indexOf(t);if(-1===n)throw new Error(`MUI: Log level ${t} not recognized.`);const o=Kh.reduce(((t,o,i)=>(t[o]=i>=n?function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const[s,...a]=n;r[o](`MUI: ${e} - ${s}`,...a)}:Gh,t)),{});return o}class Xh{static create(e){return new Xh(e)}constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{this.value=e,this.listeners.forEach((t=>t(e)))},this.value=e,this.listeners=new Set}}class Yh{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,r){this.timeouts||(this.timeouts=new Map);const n=setTimeout((()=>{"function"===typeof t&&t(),this.timeouts.delete(r.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(r.cleanupToken,n)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class Zh{constructor(){this.registry=new FinalizationRegistry((e=>{"function"===typeof e&&e()}))}register(e,t,r){this.registry.register(e,t,r)}unregister(e){this.registry.unregister(e)}reset(){}}var ef=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(ef||{});class tf{}const rf={registry:null},nf=function(e){let t=0;return function(r,n,o,s){null===e.registry&&(e.registry="undefined"!==typeof FinalizationRegistry?new Zh:new Yh);const[a]=i.useState(new tf),l=i.useRef(null),u=i.useRef();u.current=o;const c=i.useRef(null);if(!l.current&&u.current){const o=(e,t,r)=>{var n;t.defaultMuiPrevented||(null==(n=u.current)||n.call(u,e,t,r))};l.current=r.current.subscribeEvent(n,o,s),t+=1,c.current={cleanupToken:t},e.registry.register(a,(()=>{var e;null==(e=l.current)||e.call(l),l.current=null,c.current=null}),c.current)}else!u.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));i.useEffect((()=>{if(!l.current&&u.current){const e=(e,t,r)=>{var n;t.defaultMuiPrevented||(null==(n=u.current)||n.call(u,e,t,r))};l.current=r.current.subscribeEvent(n,e,s)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var e;null==(e=l.current)||e.call(l),l.current=null}}),[r,n,s])}}(rf),of={isFirst:!0};function sf(e,t,r){nf(e,t,r,of)}class af{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.events[e];n||(n={highPriority:new Map,regular:new Map},this.events[e]=n),r.isFirst?n.highPriority.set(t,!0):n.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e){const t=this.events[e];if(!t)return;const r=Array.from(t.highPriority.keys()),n=Array.from(t.regular.keys());for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];for(let a=r.length-1;a>=0;a-=1){const e=r[a];t.highPriority.has(e)&&e.apply(this,i)}for(let a=0;a<n.length;a+=1){const e=n[a];t.regular.has(e)&&e.apply(this,i)}}once(e,t){const r=this;this.on(e,(function n(){r.removeListener(e,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];t.apply(r,i)}))}}const lf=Symbol("mui.api_private");let uf=0;function cf(e,t){const r=i.useRef(),n=i.useRef();n.current||(n.current=function(e){var t;const r=null==(t=e.current)?void 0:t[lf];if(r)return r;const n={},o={state:n,store:Xh.create(n),instanceId:{id:uf}};return uf+=1,o.getPublicApi=()=>e.current,o.register=(t,r)=>{Object.keys(r).forEach((n=>{const i=r[n],s=o[n];if(!0===(null==s?void 0:s.spying)?s.target=i:o[n]=i,"public"===t){const t=e.current,r=t[n];!0===(null==r?void 0:r.spying)?r.target=i:t[n]=i}}))},o.register("private",{caches:{},eventManager:new af}),o}(r)),r.current||(r.current=function(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[lf]:e.current}}(n));const o=i.useCallback((function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];const[i,s,a={}]=r;if(a.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(a)&&a.isPropagationStopped())return;const l=t.signature===ef.DataGridPro?{api:n.current.getPublicApi()}:{};n.current.eventManager.emit(i,s,a,l)}),[n,t.signature]),s=i.useCallback(((e,t,r)=>{n.current.eventManager.on(e,t,r);const o=n.current;return()=>{o.eventManager.removeListener(e,t)}}),[n]);return Vh(n,{subscribeEvent:s,publishEvent:o},"public"),i.useImperativeHandle(e,(()=>r.current),[r]),i.useEffect((()=>{const e=n.current;return()=>{e.publishEvent("unmount")}}),[n]),n}var df=r(816);const pf="none",hf={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},ff=(e,t)=>{const r=cf(e,t);return((e,t)=>{Vh(e,{getLogger:i.useCallback((e=>qh?Jh(e,"debug",t.logger):t.logLevel?Jh(e,t.logLevel.toString(),t.logger):Qh),[t.logLevel,t.logger])},"private")})(r,t),((e,t)=>{const r=i.useRef({}),[,n]=i.useState(),o=i.useCallback((e=>{r.current[e.stateId]=e}),[]),s=i.useCallback(((n,o)=>{let i;if(i=Fh(n)?n(e.current.state):n,e.current.state===i)return!1;let s=!1;const a=[];if(Object.keys(r.current).forEach((t=>{const n=r.current[t],o=n.stateSelector(e.current.state,e.current.instanceId),l=n.stateSelector(i,e.current.instanceId);l!==o&&(a.push({stateId:n.stateId,hasPropChanged:l!==n.propModel}),void 0!==n.propModel&&l!==n.propModel&&(s=!0))})),a.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${a[0].stateId}, therefore, you're not allowed to update ${a.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(s||(e.current.state=i,e.current.publishEvent&&e.current.publishEvent("stateChange",i),e.current.store.update(i)),1===a.length){const{stateId:n,hasPropChanged:l}=a[0],u=r.current[n],c=u.stateSelector(i,e.current.instanceId);if(u.propOnChange&&l){const r=t.signature===ef.DataGridPro?{api:e.current,reason:o}:{reason:o};u.propOnChange(c,r)}s||e.current.publishEvent(u.changeEvent,c,{reason:o})}return!s}),[e,t.signature]),a=i.useCallback(((t,r,n)=>e.current.setState((e=>(0,Ft.A)({},e,{[t]:r(e[t])})),n)),[e]),l=i.useCallback((()=>n((()=>e.current.state))),[e]),u={updateControlState:a,registerControlState:o};Vh(e,{setState:s,forceUpdate:l},"public"),Vh(e,u,"private")})(r,t),(e=>{const t=i.useRef({}),r=i.useRef(!1),n=i.useCallback((e=>{!r.current&&e&&(r.current=!0,Object.values(e.appliers).forEach((e=>{e()})),r.current=!1)}),[]),o=i.useCallback(((e,r,o)=>{t.current[e]||(t.current[e]={processors:new Map,appliers:{}});const i=t.current[e];return i.processors.get(r)!==o&&(i.processors.set(r,o),n(i)),()=>{t.current[e].processors.set(r,null)}}),[n]),s=i.useCallback(((e,r,n)=>(t.current[e]||(t.current[e]={processors:new Map,appliers:{}}),t.current[e].appliers[r]=n,()=>{const n=t.current[e].appliers,o=(0,Lt.A)(n,[r].map(df.A));t.current[e].appliers=o})),[]),a=i.useCallback((e=>{const r=t.current[e];n(r)}),[n]),l={unstable_applyPipeProcessors:i.useCallback((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];const[o,i,s]=r;return t.current[o]?Array.from(t.current[o].processors.values()).reduce(((e,t)=>t?t(e,s):e),i):i}),[])};Vh(e,{registerPipeProcessor:o,registerPipeApplier:s,requestPipeProcessorsApplication:a},"private"),Vh(e,l,"public")})(r),(e=>{const t=i.useRef(new Map),r=i.useRef({}),n=i.useCallback(((t,n,o)=>{const i=()=>{const e=r.current[n],o=(0,Lt.A)(e,[t].map(df.A));r.current[n]=o};r.current[n]||(r.current[n]={});const s=r.current[n],a=s[t];return s[t]=o,a&&a!==o?(t===e.current.getActiveStrategy(hf[n])&&e.current.publishEvent("activeStrategyProcessorChange",n),i):i}),[e]),o=i.useCallback(((t,n)=>{const o=e.current.getActiveStrategy(hf[t]);if(null==o)throw new Error("Can't apply a strategy processor before defining an active strategy");const i=r.current[t];if(!i||!i[o])throw new Error(`No processor found for processor "${t}" on strategy "${o}"`);return(0,i[o])(n)}),[e]),s=i.useCallback((e=>{var r;const n=Array.from(t.current.entries()).find((t=>{let[,r]=t;return r.group===e&&r.isAvailable()}));return null!=(r=null==n?void 0:n[0])?r:pf}),[]),a=i.useCallback(((r,n,o)=>{t.current.set(n,{group:r,isAvailable:o}),e.current.publishEvent("strategyAvailabilityChange")}),[e]);Vh(e,{registerStrategyProcessor:n,applyStrategyProcessor:o,getActiveStrategy:s,setStrategyAvailability:a},"private")})(r),((e,t)=>{const r=i.useCallback((e=>{if(null==t.localeText[e])throw new Error(`Missing translation for key ${e}.`);return t.localeText[e]}),[t.localeText]);e.current.register("public",{getLocaleText:r})})(r,t),r.current.register("private",{rootProps:t}),r},mf=(e,t,r)=>{const n=i.useRef(!1);n.current||(t.current.state=e(t.current.state,r,t),n.current=!0)};function gf(e,t){const r=i.useRef(null);if(r.current)return r.current;const n=e.current.getLogger(t);return r.current=n,n}const vf=e=>"Escape"===e,bf=e=>"Enter"===e,yf=e=>"Tab"===e,xf=e=>" "===e;function wf(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}const _f=e=>(e=>"Home"===e||"End"===e)(e)||(e=>0===e.indexOf("Arrow"))(e)||(e=>0===e.indexOf("Page"))(e)||xf(e),Sf=e=>yf(e)||vf(e);function Af(){const e=i.useContext(Dh);if(void 0===e)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return e}const Cf=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],kf=i.forwardRef((function(e,t){var r;const{field:n,id:o,value:s,rowNode:a,hasFocus:l,tabIndex:u}=e,c=(0,Lt.A)(e,Cf),d=Af(),p=tp(),h=(e=>{const{classes:t}=e;return(0,$t.A)({root:["checkboxInput"]},Md,t)})({classes:p.classes}),f=i.useRef(null),m=i.useRef(null),g=(0,qs.A)(f,t),v=d.current.getCellElement(o,n);i.useLayoutEffect((()=>{0===u&&v&&(v.tabIndex=-1)}),[v,u]),i.useEffect((()=>{if(l){var e;const t=null==(e=f.current)?void 0:e.querySelector("input");null==t||t.focus({preventScroll:!0})}else m.current&&m.current.stop({})}),[l]);const b=i.useCallback((e=>{xf(e.key)&&e.stopPropagation()}),[]);if("footer"===a.type||"pinnedRow"===a.type)return null;const y=d.current.isRowSelectable(o),x=d.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return(0,Ne.jsx)(p.slots.baseCheckbox,(0,Ft.A)({ref:g,tabIndex:u,checked:s,onChange:e=>{const t={value:e.target.checked,id:o};d.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:h.root,inputProps:{"aria-label":x},onKeyDown:b,disabled:!y,touchRippleRef:m},null==(r=p.slotProps)?void 0:r.baseCheckbox,c))})),Ef=e=>e.rowSelection,Rf=cp(Ef,(e=>e.length)),jf=dp(Ef,Mp,((e,t)=>new Map(e.map((e=>[e,t[e]]))))),Of=dp(Ef,(e=>e.reduce(((e,t)=>(e[t]=t,e)),{}))),Tf=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,If=(Wd(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error"),e=>({page:0,pageSize:e?0:100})),Pf=(e,t)=>{if(t===ef.DataGrid&&e>100)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"))},Nf=e=>e.pagination,Mf=cp(Nf,(e=>e.paginationModel)),Df=cp(Nf,(e=>e.rowCount)),Lf=cp(Mf,(e=>e.page)),Ff=cp(Mf,(e=>e.pageSize)),zf=cp(Ff,Df,((e,t)=>Tf(t,e))),Bf=dp(Mf,Lp,Bp,gh,xh,((e,t,r,n,o)=>{const i=o.length,s=Math.min(e.pageSize*e.page,i-1),a=Math.min(s+e.pageSize-1,i-1);if(-1===s||-1===a)return null;if(r<2)return{firstRowIndex:s,lastRowIndex:a};const l=o[s],u=a-s+1,c=n.findIndex((e=>e.id===l.id));let d=c,p=0;for(;d<n.length&&p<=u;){var h;const e=null==(h=t[n[d].id])?void 0:h.depth;void 0===e?d+=1:((p<u||e>0)&&(d+=1),0===e&&(p+=1))}return{firstRowIndex:c,lastRowIndex:d-1}})),$f=dp(gh,Bf,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),Hf=dp(vh,Bf,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),Uf=["field","colDef"],Wf=i.forwardRef((function(e,t){var r;const n=(0,Lt.A)(e,Uf),[,o]=i.useState(!1),s=Af(),a=tp(),l=(e=>{const{classes:t}=e;return(0,$t.A)({root:["checkboxInput"]},Md,t)})({classes:a.classes}),u=Xd(s,Th),c=Xd(s,Ef),d=Xd(s,vh),p=Xd(s,Hf),h=i.useMemo((()=>"function"!==typeof a.isRowSelectable?c:c.filter((e=>!!s.current.getRow(e)&&a.isRowSelectable(s.current.getRowParams(e))))),[s,a.isRowSelectable,c]),f=i.useMemo((()=>(a.pagination&&a.checkboxSelectionVisibleOnly?p:d).reduce(((e,t)=>(e[t]=!0,e)),{})),[a.pagination,a.checkboxSelectionVisibleOnly,p,d]),m=i.useMemo((()=>h.filter((e=>f[e])).length),[h,f]),g=m>0&&m<Object.keys(f).length,v=m>0,b=null!==u&&u.field===e.field?0:-1;i.useLayoutEffect((()=>{const t=s.current.getColumnHeaderElement(e.field);0===b&&t&&(t.tabIndex=-1)}),[b,s,e.field]);const y=i.useCallback((e=>{" "===e.key&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!v})}),[s,v]),x=i.useCallback((()=>{o((e=>!e))}),[]);i.useEffect((()=>s.current.subscribeEvent("rowSelectionChange",x)),[s,x]);const w=s.current.getLocaleText(v?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,Ne.jsx)(a.slots.baseCheckbox,(0,Ft.A)({ref:t,indeterminate:g,checked:v,onChange:e=>{const t={value:e.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",t)},className:l.root,inputProps:{"aria-label":w},tabIndex:b,onKeyDown:y},null==(r=a.slotProps)?void 0:r.baseCheckbox,n))}));var Vf=r(3468);const qf=["onChange","maxRows","minRows","style","value"];function Gf(e){return parseInt(e,10)||0}const Qf={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Kf(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Jf=i.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:s,value:a}=e,l=(0,Lt.A)(e,qf),{current:u}=i.useRef(null!=a),c=i.useRef(null),d=(0,qs.A)(t,c),p=i.useRef(null),h=i.useRef(null),f=i.useCallback((()=>{const t=c.current,r=h.current;if(!t||!r)return;const i=(0,_a.A)(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const s=i.boxSizing,a=Gf(i.paddingBottom)+Gf(i.paddingTop),l=Gf(i.borderBottomWidth)+Gf(i.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===s?a+l:0),overflowing:Math.abs(p-u)<=1}}),[n,o,e.placeholder]),m=(0,xa.A)((()=>{const e=c.current,t=f();if(!e||!t||Kf(t))return!1;const r=t.outerHeightStyle;return null!=p.current&&p.current!==r})),g=i.useCallback((()=>{const e=c.current,t=f();if(!e||!t||Kf(t))return;const r=t.outerHeightStyle;p.current!==r&&(p.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),v=i.useRef(-1);(0,ua.A)((()=>{const e=(0,Vf.A)(g),t=null==c?void 0:c.current;if(!t)return;const r=(0,_a.A)(t);let n;return r.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(n=new ResizeObserver((()=>{m()&&(n.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,g,m]),(0,ua.A)((()=>{g()}));return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)("textarea",(0,Ft.A)({value:a,onChange:e=>{u||g(),r&&r(e)},ref:d,rows:o,style:s},l)),(0,Ne.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,Ft.A)({},Qf,s,{paddingTop:0,paddingBottom:0})})]})}));function Xf(e){let{props:t,states:r,muiFormControl:n}=e;return r.reduce(((e,r)=>(e[r]=t[r],n&&"undefined"===typeof t[r]&&(e[r]=n[r]),e)),{})}const Yf=i.createContext(void 0);function Zf(){return i.useContext(Yf)}var em=r(5013),tm=r(869);const rm=function(e){let{styles:t,themeId:r,defaultTheme:n={}}=e;const o=ar(n),i="function"===typeof t?t(r&&o[r]||o):t;return(0,Ne.jsx)(tm.A,{styles:i})};const nm=function(e){return(0,Ne.jsx)(rm,(0,Ft.A)({},e,{defaultTheme:vr.A,themeId:pr.A}))};function om(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function im(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(om(e.value)&&""!==e.value||t&&om(e.defaultValue)&&""!==e.defaultValue)}function sm(e){return(0,qt.Ay)("MuiInputBase",e)}const am=(0,Vt.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),lm=["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"],um=(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${(0,Wt.A)(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},cm=(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]},dm=(0,Ht.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:um})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${am.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},r.multiline&&(0,Ft.A)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),pm=(0,Ht.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:cm})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode,o=(0,Ft.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),i={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,Ft.A)({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":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${am.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${am.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),hm=(0,Ne.jsx)(nm,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),fm=i.forwardRef((function(e,t){var r;const n=(0,Ut.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:f,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:b={},inputRef:y,maxRows:x,minRows:w,multiline:_=!1,name:S,onBlur:A,onChange:C,onClick:k,onFocus:E,onKeyDown:R,onKeyUp:j,placeholder:O,readOnly:T,renderSuffix:I,rows:P,slotProps:N={},slots:M={},startAdornment:D,type:L="text",value:F}=n,z=(0,Lt.A)(n,lm),B=null!=b.value?b.value:F,{current:$}=i.useRef(null!=B),H=i.useRef(),U=i.useCallback((e=>{0}),[]),W=(0,ii.A)(H,y,b.ref,U),[V,q]=i.useState(!1),G=Zf();const Q=Xf({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=G?G.focused:V,i.useEffect((()=>{!G&&p&&V&&(q(!1),A&&A())}),[G,p,V,A]);const K=G&&G.onFilled,J=G&&G.onEmpty,X=i.useCallback((e=>{im(e)?K&&K():J&&J()}),[K,J]);(0,em.A)((()=>{$&&X({value:B})}),[B,X,$]);i.useEffect((()=>{X(H.current)}),[]);let Y=v,Z=b;_&&"input"===Y&&(Z=P?(0,Ft.A)({type:void 0,minRows:P,maxRows:P},Z):(0,Ft.A)({type:void 0,maxRows:x,minRows:w},Z),Y=Jf);i.useEffect((()=>{G&&G.setAdornedStart(Boolean(D))}),[G,D]);const ee=(0,Ft.A)({},n,{color:Q.color||"primary",disabled:Q.disabled,endAdornment:f,error:Q.error,focused:Q.focused,formControl:G,fullWidth:m,hiddenLabel:Q.hiddenLabel,multiline:_,size:Q.size,startAdornment:D,type:L}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:f}=e,m={root:["root",`color${(0,Wt.A)(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&"medium"!==p&&`size${(0,Wt.A)(p)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===f&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return(0,$t.A)(m,sm,t)})(ee),re=M.root||u.Root||dm,ne=N.root||c.root||{},oe=M.input||u.Input||pm;return Z=(0,Ft.A)({},Z,null!=(r=N.input)?r:c.input),(0,Ne.jsxs)(i.Fragment,{children:[!h&&hm,(0,Ne.jsxs)(re,(0,Ft.A)({},ne,!Gs(re)&&{ownerState:(0,Ft.A)({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),k&&k(e)}},z,{className:(0,zt.A)(te.root,ne.className,l,T&&"MuiInputBase-readOnly"),children:[D,(0,Ne.jsx)(Yf.Provider,{value:null,children:(0,Ne.jsx)(oe,(0,Ft.A)({ownerState:ee,"aria-invalid":Q.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:d,disabled:Q.disabled,id:g,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:S,placeholder:O,readOnly:T,required:Q.required,rows:P,value:B,onKeyDown:R,onKeyUp:j,type:L},Z,!Gs(oe)&&{as:Y,ownerState:(0,Ft.A)({},ee,Z.ownerState)},{ref:W,className:(0,zt.A)(te.input,Z.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{A&&A(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):q(!1)},onChange:function(e){if(!$){const t=e.target||H.current;if(null==t)throw new Error((0,Ed.A)(1));X({value:t.value})}for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];b.onChange&&b.onChange(e,...r),C&&C(e,...r)},onFocus:e=>{Q.disabled?e.stopPropagation():(E&&E(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):q(!0))}}))}),f,I?I((0,Ft.A)({},Q,{startAdornment:D})):null]}))]})})),mm=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],gm=(0,Ht.Ay)(fm,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})((e=>{let{theme:t}=e;return(0,Ft.A)({},t.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})})),vm=i.forwardRef(((e,t)=>{const r=tp(),{id:n,value:o,field:s,colDef:a,hasFocus:l,debounceMs:u=200,isProcessingProps:c,onValueChange:d}=e,p=(0,Lt.A)(e,mm),h=Af(),f=i.useRef(),[m,g]=i.useState(o),v=(e=>{const{classes:t}=e;return(0,$t.A)({root:["editInputCell"]},Md,t)})(r),b=i.useCallback((async e=>{const t=e.target.value;d&&await d(e,t);const r=h.current.getColumn(s);let o=t;r.valueParser&&(o=r.valueParser(t,h.current.getCellParams(n,s))),g(o),h.current.setEditCellValue({id:n,field:s,value:o,debounceMs:u,unstable_skipValueParser:!0},e)}),[h,u,s,n,d]),y=h.current.unstable_getEditCellMeta(n,s);return i.useEffect((()=>{"debouncedSetEditCellValue"!==(null==y?void 0:y.changeReason)&&g(o)}),[y,o]),(0,ua.A)((()=>{l&&f.current.focus()}),[l]),(0,Ne.jsx)(gm,(0,Ft.A)({ref:t,inputRef:f,className:v.root,ownerState:r,fullWidth:!0,type:"number"===a.type?a.type:"text",value:null!=m?m:"",onChange:b,endAdornment:c?(0,Ne.jsx)(r.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))})),bm=Wd(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),ym=(e,t)=>t&&e.length>1?(bm(),[e[0]]):e,xm=(e,t)=>r=>(0,Ft.A)({},r,{sorting:(0,Ft.A)({},r.sorting,{sortModel:ym(e,t)})}),wm=(e,t)=>{const r=e.indexOf(t);return t&&-1!==r&&r+1!==e.length?e[r+1]:e[0]},_m=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,Sm=new Intl.Collator,Am=(e,t)=>{const r=_m(e,t);return null!==r?r:Number(e)-Number(t)},Cm=(e,t)=>{const r=_m(e,t);return null!==r?r:e>t?1:e<t?-1:0};class km{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new km}start(e,t){this.clear(),this.currentId=setTimeout(t,e)}}function Em(){const e=$d(km.create).current;return Ud(e.disposeEffect),e}const Rm=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function jm(e){var t,r;const{item:n,applyValue:o,type:s,apiRef:a,focusElementRef:l,tabIndex:u,disabled:c,clearButton:d,InputProps:p,variant:h="standard"}=e,f=(0,Lt.A)(e,Rm),m=Em(),[g,v]=i.useState(null!=(t=n.value)?t:""),[b,y]=i.useState(!1),x=(0,Vs.A)(),w=tp(),_=i.useCallback((e=>{const{value:t}=e.target;v(String(t)),y(!0),m.start(w.filterDebounceMs,(()=>{const e=(0,Ft.A)({},n,{value:t,fromInput:x});o(e),y(!1)}))}),[x,o,n,w.filterDebounceMs,m]);return i.useEffect((()=>{var e;n.fromInput===x&&void 0!==n.value||v(String(null!=(e=n.value)?e:""))}),[x,n]),(0,Ne.jsx)(w.slots.baseTextField,(0,Ft.A)({id:x,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:_,variant:h,type:s||"text",InputProps:(0,Ft.A)({},b||d?{endAdornment:b?(0,Ne.jsx)(w.slots.loadIcon,{fontSize:"small",color:"action"}):d}:{},{disabled:c},p,{inputProps:(0,Ft.A)({tabIndex:u},null==p?void 0:p.inputProps)}),InputLabelProps:{shrink:!0},inputRef:l},f,null==(r=w.slotProps)?void 0:r.baseTextField))}var Om=r(1052);const Tm=e=>{const t=i.useRef({});return i.useEffect((()=>{t.current=e})),t.current};function Im(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Pm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(e,a)=>{let{inputValue:l,getOptionLabel:u}=a,c=s?l.trim():l;r&&(c=c.toLowerCase()),t&&(c=Im(c));const d=c?e.filter((e=>{let n=(i||u)(e);return r&&(n=n.toLowerCase()),t&&(n=Im(n)),"start"===o?0===n.indexOf(c):n.indexOf(c)>-1})):e;return"number"===typeof n?d.slice(0,n):d}}function Nm(e,t){for(let r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}const Mm=Pm(),Dm=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))},Lm=[];const Fm=function(e){const{unstable_isActiveElementInListbox:t=Dm,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:u=!1,componentName:c="useAutocomplete",defaultValue:d=(e.multiple?Lm:null),disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:f,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:v=Mm,filterSelectedOptions:b=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:_=e=>{var t;return null!=(t=e.label)?t:e},groupBy:S,handleHomeEndKeys:A=!e.freeSolo,id:C,includeInputInList:k=!1,inputValue:E,isOptionEqualToValue:R=(e,t)=>e===t,multiple:j=!1,onChange:O,onClose:T,onHighlightChange:I,onInputChange:P,onOpen:N,open:M,openOnFocus:D=!1,options:L,readOnly:F=!1,selectOnFocus:z=!e.freeSolo,value:B}=e,$=(0,Vs.A)(C);let H=_;H=e=>{const t=_(e);return"string"!==typeof t?String(t):t};const U=i.useRef(!1),W=i.useRef(!0),V=i.useRef(null),q=i.useRef(null),[G,Q]=i.useState(null),[K,J]=i.useState(-1),X=o?0:-1,Y=i.useRef(X),[Z,ee]=(0,Om.A)({controlled:B,default:d,name:c}),[te,re]=(0,Om.A)({controlled:E,default:"",name:c,state:"inputValue"}),[ne,oe]=i.useState(!1),ie=i.useCallback(((e,t)=>{if(!(j?Z.length<t.length:null!==t)&&!l)return;let r;if(j)r="";else if(null==t)r="";else{const e=H(t);r="string"===typeof e?e:""}te!==r&&(re(r),P&&P(e,r,"reset"))}),[H,te,j,P,re,l,Z]),[se,ae]=(0,Om.A)({controlled:M,default:!1,name:c,state:"open"}),[le,ue]=i.useState(!0),ce=!j&&null!=Z&&te===H(Z),de=se&&!F,pe=de?v(L.filter((e=>!b||!(j?Z:[Z]).some((t=>null!==t&&R(e,t))))),{inputValue:ce&&le?"":te,getOptionLabel:H}):[],he=Tm({filteredOptions:pe,value:Z,inputValue:te});i.useEffect((()=>{const e=Z!==he.value;ne&&!e||y&&!e||ie(null,Z)}),[Z,ie,ne,he.value,y]);const fe=se&&pe.length>0&&!F,me=(0,xa.A)((e=>{-1===e?V.current.focus():G.querySelector(`[data-tag-index="${e}"]`).focus()}));i.useEffect((()=>{j&&K>Z.length-1&&(J(-1),me(-1))}),[Z,j,K,me]);const ge=(0,xa.A)((e=>{let{event:t,index:n,reason:o="auto"}=e;if(Y.current=n,-1===n?V.current.removeAttribute("aria-activedescendant"):V.current.setAttribute("aria-activedescendant",`${$}-option-${n}`),I&&I(t,-1===n?null:pe[n],o),!q.current)return;const i=q.current.querySelector(`[role="option"].${r}-focused`);i&&(i.classList.remove(`${r}-focused`),i.classList.remove(`${r}-focusVisible`));let s=q.current;if("listbox"!==q.current.getAttribute("role")&&(s=q.current.parentElement.querySelector('[role="listbox"]')),!s)return;if(-1===n)return void(s.scrollTop=0);const a=q.current.querySelector(`[data-option-index="${n}"]`);if(a&&(a.classList.add(`${r}-focused`),"keyboard"===o&&a.classList.add(`${r}-focusVisible`),s.scrollHeight>s.clientHeight&&"mouse"!==o&&"touch"!==o)){const e=a,t=s.clientHeight+s.scrollTop,r=e.offsetTop+e.offsetHeight;r>t?s.scrollTop=r-s.clientHeight:e.offsetTop-e.offsetHeight*(S?1.3:0)<s.scrollTop&&(s.scrollTop=e.offsetTop-e.offsetHeight*(S?1.3:0))}})),ve=(0,xa.A)((e=>{let{event:t,diff:r,direction:o="next",reason:i="auto"}=e;if(!de)return;const s=function(e,t){if(!q.current||e<0||e>=pe.length)return-1;let r=e;for(;;){const n=q.current.querySelector(`[data-option-index="${r}"]`),o=!m&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!o)return r;if(r="next"===t?(r+1)%pe.length:(r-1+pe.length)%pe.length,r===e)return-1}}((()=>{const e=pe.length-1;if("reset"===r)return X;if("start"===r)return 0;if("end"===r)return e;const t=Y.current+r;return t<0?-1===t&&k?-1:g&&-1!==Y.current||Math.abs(r)>1?0:e:t>e?t===e+1&&k?-1:g||Math.abs(r)>1?e:0:t})(),o);if(ge({index:s,reason:i,event:t}),n&&"reset"!==r)if(-1===s)V.current.value=te;else{const e=H(pe[s]);V.current.value=e;0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&V.current.setSelectionRange(te.length,e.length)}})),be=i.useCallback((()=>{if(!de)return;const e=(()=>{if(-1!==Y.current&&he.filteredOptions&&he.filteredOptions.length!==pe.length&&he.inputValue===te&&(j?Z.length===he.value.length&&he.value.every(((e,t)=>H(Z[t])===H(e))):(e=he.value,t=Z,(e?H(e):"")===(t?H(t):"")))){const e=he.filteredOptions[Y.current];if(e)return Nm(pe,(t=>H(t)===H(e)))}var e,t;return-1})();if(-1!==e)return void(Y.current=e);const t=j?Z[0]:Z;if(0!==pe.length&&null!=t){if(q.current)if(null==t)Y.current>=pe.length-1?ge({index:pe.length-1}):ge({index:Y.current});else{const e=pe[Y.current];if(j&&e&&-1!==Nm(Z,(t=>R(e,t))))return;const r=Nm(pe,(e=>R(e,t)));-1===r?ve({diff:"reset"}):ge({index:r})}}else ve({diff:"reset"})}),[pe.length,!j&&Z,b,ve,ge,de,te,j]),ye=(0,xa.A)((e=>{(0,ca.A)(q,e),e&&be()}));i.useEffect((()=>{be()}),[be]);const xe=e=>{se||(ae(!0),ue(!0),N&&N(e))},we=(e,t)=>{se&&(ae(!1),T&&T(e,t))},_e=(e,t,r,n)=>{if(j){if(Z.length===t.length&&Z.every(((e,r)=>e===t[r])))return}else if(Z===t)return;O&&O(e,t,r,n),ee(t)},Se=i.useRef(!1),Ae=function(e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",o=t;if(j){o=Array.isArray(Z)?Z.slice():[];const e=Nm(o,(e=>R(t,e)));-1===e?o.push(t):"freeSolo"!==r&&(o.splice(e,1),n="removeOption")}ie(e,o),_e(e,o,n,{option:t}),h||e&&(e.ctrlKey||e.metaKey)||we(e,n),(!0===a||"touch"===a&&Se.current||"mouse"===a&&!Se.current)&&V.current.blur()},Ce=(e,t)=>{if(!j)return;""===te&&we(e,"toggleInput");let r=K;-1===K?""===te&&"previous"===t&&(r=Z.length-1):(r+="next"===t?1:-1,r<0&&(r=0),r===Z.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;let r=e;for(;;){if("next"===t&&r===Z.length||"previous"===t&&-1===r)return-1;const e=G.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),J(r),me(r)},ke=e=>{U.current=!0,re(""),P&&P(e,"","clear"),_e(e,j?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(J(-1),me(-1)),229!==t.which))switch(t.key){case"Home":de&&A&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":de&&A&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":Ce(t,"previous");break;case"ArrowRight":Ce(t,"next");break;case"Enter":if(-1!==Y.current&&de){const e=pe[Y.current],r=!!x&&x(e);if(t.preventDefault(),r)return;Ae(t,e,"selectOption"),n&&V.current.setSelectionRange(V.current.value.length,V.current.value.length)}else y&&""!==te&&!1===ce&&(j&&t.preventDefault(),Ae(t,te,"createOption","freeSolo"));break;case"Escape":de?(t.preventDefault(),t.stopPropagation(),we(t,"escape")):u&&(""!==te||j&&Z.length>0)&&(t.preventDefault(),t.stopPropagation(),ke(t));break;case"Backspace":if(j&&!F&&""===te&&Z.length>0){const e=-1===K?Z.length-1:K,r=Z.slice();r.splice(e,1),_e(t,r,"removeOption",{option:Z[e]})}break;case"Delete":if(j&&!F&&""===te&&Z.length>0&&-1!==K){const e=K,r=Z.slice();r.splice(e,1),_e(t,r,"removeOption",{option:Z[e]})}}},Re=e=>{oe(!0),D&&!U.current&&xe(e)},je=e=>{t(q)?V.current.focus():(oe(!1),W.current=!0,U.current=!1,s&&-1!==Y.current&&de?Ae(e,pe[Y.current],"blur"):s&&y&&""!==te?Ae(e,te,"blur","freeSolo"):l&&ie(e,Z),we(e,"blur"))},Oe=e=>{const t=e.target.value;te!==t&&(re(t),ue(!1),P&&P(e,t,"input")),""===t?p||j||_e(e,null,"clear"):xe(e)},Te=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Y.current!==t&&ge({event:e,index:t,reason:"mouse"})},Ie=e=>{ge({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Se.current=!0},Pe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ae(e,pe[t],"selectOption"),Se.current=!1},Ne=e=>t=>{const r=Z.slice();r.splice(e,1),_e(t,r,"removeOption",{option:Z[e]})},Me=e=>{se?we(e,"toggleInput"):xe(e)},De=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==$&&e.preventDefault()},Le=e=>{e.currentTarget.contains(e.target)&&(V.current.focus(),z&&W.current&&V.current.selectionEnd-V.current.selectionStart===0&&V.current.select(),W.current=!1)},Fe=e=>{f||""!==te&&se||Me(e)};let ze=y&&te.length>0;ze=ze||(j?Z.length>0:null!==Z);let Be=pe;if(S){new Map;Be=pe.reduce(((e,t,r)=>{const n=S(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e}),[])}return f&&ne&&je(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Ft.A)({"aria-owns":fe?`${$}-listbox`:null},e,{onKeyDown:Ee(e),onMouseDown:De,onClick:Le})},getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:te,onBlur:je,onFocus:Re,onChange:Oe,onMouseDown:Fe,"aria-activedescendant":de?"":null,"aria-autocomplete":n?"both":"list","aria-controls":fe?`${$}-listbox`:void 0,"aria-expanded":fe,autoComplete:"off",ref:V,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ke}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Me}),getTagProps:e=>{let{index:t}=e;return(0,Ft.A)({key:t,"data-tag-index":t,tabIndex:-1},!F&&{onDelete:Ne(t)})},getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:ye,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:r}=e;var n;const o=(j?Z:[Z]).some((e=>null!=e&&R(r,e))),i=!!x&&x(r);return{key:null!=(n=null==w?void 0:w(r))?n:H(r),tabIndex:-1,role:"option",id:`${$}-option-${t}`,onMouseMove:Te,onClick:Pe,onTouchStart:Ie,"data-option-index":t,"aria-disabled":i,"aria-selected":o}},id:$,inputValue:te,value:Z,dirty:ze,expanded:de&&G,popupOpen:de,focused:ne||-1!==K,anchorEl:G,setAnchorEl:Q,focusedTag:K,groupedOptions:Be}};var zm=r(2374);function Bm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $m(e){return e instanceof Bm(e).Element||e instanceof Element}function Hm(e){return e instanceof Bm(e).HTMLElement||e instanceof HTMLElement}function Um(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Bm(e).ShadowRoot||e instanceof ShadowRoot)}var Wm=Math.max,Vm=Math.min,qm=Math.round;function Gm(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Qm(){return!/^((?!chrome|android).)*safari/i.test(Gm())}function Km(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Hm(e)&&(o=e.offsetWidth>0&&qm(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&qm(n.height)/e.offsetHeight||1);var s=($m(e)?Bm(e):window).visualViewport,a=!Qm()&&r,l=(n.left+(a&&s?s.offsetLeft:0))/o,u=(n.top+(a&&s?s.offsetTop:0))/i,c=n.width/o,d=n.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Jm(e){var t=Bm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xm(e){return e?(e.nodeName||"").toLowerCase():null}function Ym(e){return(($m(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zm(e){return Km(Ym(e)).left+Jm(e).scrollLeft}function eg(e){return Bm(e).getComputedStyle(e)}function tg(e){var t=eg(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function rg(e,t,r){void 0===r&&(r=!1);var n=Hm(t),o=Hm(t)&&function(e){var t=e.getBoundingClientRect(),r=qm(t.width)/e.offsetWidth||1,n=qm(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),i=Ym(t),s=Km(e,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==Xm(t)||tg(i))&&(a=function(e){return e!==Bm(e)&&Hm(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Jm(e);var t}(t)),Hm(t)?((l=Km(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Zm(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ng(e){var t=Km(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function og(e){return"html"===Xm(e)?e:e.assignedSlot||e.parentNode||(Um(e)?e.host:null)||Ym(e)}function ig(e){return["html","body","#document"].indexOf(Xm(e))>=0?e.ownerDocument.body:Hm(e)&&tg(e)?e:ig(og(e))}function sg(e,t){var r;void 0===t&&(t=[]);var n=ig(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Bm(n),s=o?[i].concat(i.visualViewport||[],tg(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(sg(og(s)))}function ag(e){return["table","td","th"].indexOf(Xm(e))>=0}function lg(e){return Hm(e)&&"fixed"!==eg(e).position?e.offsetParent:null}function ug(e){for(var t=Bm(e),r=lg(e);r&&ag(r)&&"static"===eg(r).position;)r=lg(r);return r&&("html"===Xm(r)||"body"===Xm(r)&&"static"===eg(r).position)?t:r||function(e){var t=/firefox/i.test(Gm());if(/Trident/i.test(Gm())&&Hm(e)&&"fixed"===eg(e).position)return null;var r=og(e);for(Um(r)&&(r=r.host);Hm(r)&&["html","body"].indexOf(Xm(r))<0;){var n=eg(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var cg="top",dg="bottom",pg="right",hg="left",fg="auto",mg=[cg,dg,pg,hg],gg="start",vg="end",bg="viewport",yg="popper",xg=mg.reduce((function(e,t){return e.concat([t+"-"+gg,t+"-"+vg])}),[]),wg=[].concat(mg,[fg]).reduce((function(e,t){return e.concat([t,t+"-"+gg,t+"-"+vg])}),[]),_g=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sg(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function Ag(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var Cg={placement:"bottom",modifiers:[],strategy:"absolute"};function kg(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function Eg(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?Cg:o;return function(e,t,r){void 0===r&&(r=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cg,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(r){var a="function"===typeof r?r(o.options):r;u(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:$m(e)?sg(e):e.contextElement?sg(e.contextElement):[],popper:sg(t)};var c=function(e){var t=Sg(e);return _g.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=c.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"===typeof i){var a=i({state:o,name:t,instance:l,options:n}),u=function(){};s.push(a||u)}})),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,r=e.popper;if(kg(t,r)){o.rects={reference:rg(t,ug(r),"fixed"===o.options.strategy),popper:ng(r)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var i=o.orderedModifiers[n],s=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"===typeof s&&(o=s({state:o,options:c,name:d,instance:l})||o)}else o.reset=!1,n=-1}}},update:Ag((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){u(),a=!0}};if(!kg(e,t))return l;function u(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(r).then((function(e){!a&&r.onFirstUpdate&&r.onFirstUpdate(e)})),l}}var Rg={passive:!0};function jg(e){return e.split("-")[0]}function Og(e){return e.split("-")[1]}function Tg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ig(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?jg(o):null,s=o?Og(o):null,a=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case cg:t={x:a,y:r.y-n.height};break;case dg:t={x:a,y:r.y+r.height};break;case pg:t={x:r.x+r.width,y:l};break;case hg:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=i?Tg(i):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case gg:t[u]=t[u]-(r[c]/2-n[c]/2);break;case vg:t[u]=t[u]+(r[c]/2-n[c]/2)}}return t}var Pg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ng(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,h=void 0===p?0:p,f=s.y,m=void 0===f?0:f,g="function"===typeof c?c({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=hg,x=cg,w=window;if(u){var _=ug(r),S="clientHeight",A="clientWidth";if(_===Bm(r)&&"static"!==eg(_=Ym(r)).position&&"absolute"===a&&(S="scrollHeight",A="scrollWidth"),o===cg||(o===hg||o===pg)&&i===vg)x=dg,m-=(d&&_===w&&w.visualViewport?w.visualViewport.height:_[S])-n.height,m*=l?1:-1;if(o===hg||(o===cg||o===dg)&&i===vg)y=pg,h-=(d&&_===w&&w.visualViewport?w.visualViewport.width:_[A])-n.width,h*=l?1:-1}var C,k=Object.assign({position:a},u&&Pg),E=!0===c?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:qm(r*o)/o||0,y:qm(n*o)/o||0}}({x:h,y:m},Bm(r)):{x:h,y:m};return h=E.x,m=E.y,l?Object.assign({},k,((C={})[x]=b?"0":"",C[y]=v?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",C)):Object.assign({},k,((t={})[x]=b?m+"px":"",t[y]=v?h+"px":"",t.transform="",t))}var Mg={left:"right",right:"left",bottom:"top",top:"bottom"};function Dg(e){return e.replace(/left|right|bottom|top/g,(function(e){return Mg[e]}))}var Lg={start:"end",end:"start"};function Fg(e){return e.replace(/start|end/g,(function(e){return Lg[e]}))}function zg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Um(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Bg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $g(e,t,r){return t===bg?Bg(function(e,t){var r=Bm(e),n=Ym(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=Qm();(u||!u&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Zm(e),y:l}}(e,r)):$m(t)?function(e,t){var r=Km(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Bg(function(e){var t,r=Ym(e),n=Jm(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Wm(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Wm(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Zm(e),l=-n.scrollTop;return"rtl"===eg(o||r).direction&&(a+=Wm(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(Ym(e)))}function Hg(e,t,r,n){var o="clippingParents"===t?function(e){var t=sg(og(e)),r=["absolute","fixed"].indexOf(eg(e).position)>=0&&Hm(e)?ug(e):e;return $m(r)?t.filter((function(e){return $m(e)&&zg(e,r)&&"body"!==Xm(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),s=i[0],a=i.reduce((function(t,r){var o=$g(e,r,n);return t.top=Wm(o.top,t.top),t.right=Vm(o.right,t.right),t.bottom=Vm(o.bottom,t.bottom),t.left=Wm(o.left,t.left),t}),$g(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ug(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Wg(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Vg(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,s=void 0===i?e.strategy:i,a=r.boundary,l=void 0===a?"clippingParents":a,u=r.rootBoundary,c=void 0===u?bg:u,d=r.elementContext,p=void 0===d?yg:d,h=r.altBoundary,f=void 0!==h&&h,m=r.padding,g=void 0===m?0:m,v=Ug("number"!==typeof g?g:Wg(g,mg)),b=p===yg?"reference":yg,y=e.rects.popper,x=e.elements[f?b:p],w=Hg($m(x)?x:x.contextElement||Ym(e.elements.popper),l,c,s),_=Km(e.elements.reference),S=Ig({reference:_,element:y,strategy:"absolute",placement:o}),A=Bg(Object.assign({},y,S)),C=p===yg?A:_,k={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},E=e.modifiersData.offset;if(p===yg&&E){var R=E[o];Object.keys(k).forEach((function(e){var t=[pg,dg].indexOf(e)>=0?1:-1,r=[cg,dg].indexOf(e)>=0?"y":"x";k[e]+=R[r]*t}))}return k}function qg(e,t,r){return Wm(e,Vm(t,r))}function Gg(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Qg(e){return[cg,pg,dg,hg].some((function(t){return e[t]>=0}))}var Kg=Eg({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,s=n.resize,a=void 0===s||s,l=Bm(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",r.update,Rg)})),a&&l.addEventListener("resize",r.update,Rg),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",r.update,Rg)})),a&&l.removeEventListener("resize",r.update,Rg)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Ig({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,s=void 0===i||i,a=r.roundOffsets,l=void 0===a||a,u={placement:jg(t.placement),variation:Og(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ng(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ng(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Hm(o)&&Xm(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Hm(n)&&Xm(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,s=wg.reduce((function(e,r){return e[r]=function(e,t,r){var n=jg(e),o=[hg,cg].indexOf(n)>=0?-1:1,i="function"===typeof r?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[hg,pg].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(r,t.rects,i),e}),{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,f=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,v=jg(g),b=l||(v===g||!f?[Dg(g)]:function(e){if(jg(e)===fg)return[];var t=Dg(e);return[Fg(e),t,Fg(t)]}(g)),y=[g].concat(b).reduce((function(e,r){return e.concat(jg(r)===fg?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,u=void 0===l?wg:l,c=Og(n),d=c?a?xg:xg.filter((function(e){return Og(e)===c})):mg,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,r){return t[r]=Vg(e,{placement:r,boundary:o,rootBoundary:i,padding:s})[jg(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:m}):r)}),[]),x=t.rects.reference,w=t.rects.popper,_=new Map,S=!0,A=y[0],C=0;C<y.length;C++){var k=y[C],E=jg(k),R=Og(k)===gg,j=[cg,dg].indexOf(E)>=0,O=j?"width":"height",T=Vg(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),I=j?R?pg:hg:R?dg:cg;x[O]>w[O]&&(I=Dg(I));var P=Dg(I),N=[];if(i&&N.push(T[E]<=0),a&&N.push(T[I]<=0,T[P]<=0),N.every((function(e){return e}))){A=k,S=!1;break}_.set(k,N)}if(S)for(var M=function(e){var t=y.find((function(t){var r=_.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},D=f?3:1;D>0;D--){if("break"===M(D))break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,p=r.tether,h=void 0===p||p,f=r.tetherOffset,m=void 0===f?0:f,g=Vg(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=jg(t.placement),b=Og(t.placement),y=!b,x=Tg(v),w="x"===x?"y":"x",_=t.modifiersData.popperOffsets,S=t.rects.reference,A=t.rects.popper,C="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"===typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(_){if(i){var j,O="y"===x?cg:hg,T="y"===x?dg:pg,I="y"===x?"height":"width",P=_[x],N=P+g[O],M=P-g[T],D=h?-A[I]/2:0,L=b===gg?S[I]:A[I],F=b===gg?-A[I]:-S[I],z=t.elements.arrow,B=h&&z?ng(z):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[O],U=$[T],W=qg(0,S[I],B[I]),V=y?S[I]/2-D-W-H-k.mainAxis:L-W-H-k.mainAxis,q=y?-S[I]/2+D+W+U+k.mainAxis:F+W+U+k.mainAxis,G=t.elements.arrow&&ug(t.elements.arrow),Q=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,K=null!=(j=null==E?void 0:E[x])?j:0,J=P+q-K,X=qg(h?Vm(N,P+V-K-Q):N,P,h?Wm(M,J):M);_[x]=X,R[x]=X-P}if(a){var Y,Z="x"===x?cg:hg,ee="x"===x?dg:pg,te=_[w],re="y"===w?"height":"width",ne=te+g[Z],oe=te-g[ee],ie=-1!==[cg,hg].indexOf(v),se=null!=(Y=null==E?void 0:E[w])?Y:0,ae=ie?ne:te-S[re]-A[re]-se+k.altAxis,le=ie?te+S[re]+A[re]-se-k.altAxis:oe,ue=h&&ie?function(e,t,r){var n=qg(e,t,r);return n>r?r:n}(ae,te,le):qg(h?ae:ne,te,h?le:oe);_[w]=ue,R[w]=ue-te}t.modifiersData[n]=R}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=jg(r.placement),l=Tg(a),u=[hg,pg].indexOf(a)>=0?"height":"width";if(i&&s){var c=function(e,t){return Ug("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Wg(e,mg))}(o.padding,r),d=ng(i),p="y"===l?cg:hg,h="y"===l?dg:pg,f=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],m=s[l]-r.rects.reference[l],g=ug(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=f/2-m/2,y=c[p],x=v-d[u]-c[h],w=v/2-d[u]/2+b,_=qg(y,w,x),S=l;r.modifiersData[n]=((t={})[S]=_,t.centerOffset=_-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&zg(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Vg(t,{elementContext:"reference"}),a=Vg(t,{altBoundary:!0}),l=Gg(s,n),u=Gg(a,o,i),c=Qg(l),d=Qg(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});function Jg(e){return(0,qt.Ay)("MuiPopper",e)}(0,Vt.A)("MuiPopper",["root"]);const Xg=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Yg=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Zg(e){return"function"===typeof e?e():e}function ev(e){return void 0!==e.nodeType}const tv={},rv=i.forwardRef((function(e,t){var r;const{anchorEl:n,children:o,direction:s,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:f={},TransitionProps:m}=e,g=(0,Lt.A)(e,Xg),v=i.useRef(null),b=(0,qs.A)(v,t),y=i.useRef(null),x=(0,qs.A)(y,p),w=i.useRef(x);(0,ua.A)((()=>{w.current=x}),[x]),i.useImperativeHandle(p,(()=>y.current),[]);const _=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,s),[S,A]=i.useState(_),[C,k]=i.useState(Zg(n));i.useEffect((()=>{y.current&&y.current.forceUpdate()})),i.useEffect((()=>{n&&k(Zg(n))}),[n]),(0,ua.A)((()=>{if(!C||!u)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;A(t.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=Kg(C,v.current,(0,Ft.A)({placement:_},d,{modifiers:e}));return w.current(t),()=>{t.destroy(),w.current(null)}}),[C,a,l,u,d,_]);const E={placement:S};null!==m&&(E.TransitionProps=m);const R=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"]},Jg,t)})(e),j=null!=(r=f.root)?r:"div",O=ra({elementType:j,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:R.root});return(0,Ne.jsx)(j,(0,Ft.A)({},O,{children:"function"===typeof o?o(E):o}))})),nv=i.forwardRef((function(e,t){const{anchorEl:r,children:n,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=tv,popperRef:h,style:f,transition:m=!1,slotProps:g={},slots:v={}}=e,b=(0,Lt.A)(e,Yg),[y,x]=i.useState(!0);if(!l&&!c&&(!m||y))return null;let w;if(o)w=o;else if(r){const e=Zg(r);w=e&&ev(e)?(0,oa.A)(e).body:(0,oa.A)(null).body}const _=c||!l||m&&!y?void 0:"none",S=m?{in:c,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,Ne.jsx)(da,{disablePortal:a,container:w,children:(0,Ne.jsx)(rv,(0,Ft.A)({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:t,open:m?!y:c,placement:d,popperOptions:p,popperRef:h,slotProps:g,slots:v},b,{style:(0,Ft.A)({position:"fixed",top:0,left:0,display:_},f),TransitionProps:S,children:n}))})})),ov=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],iv=(0,Ht.Ay)(nv,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sv=i.forwardRef((function(e,t){var r;const n=(0,zm.A)(),o=(0,Ut.b)({props:e,name:"MuiPopper"}),{anchorEl:i,component:s,components:a,componentsProps:l,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=(0,Lt.A)(o,ov),w=null!=(r=null==b?void 0:b.root)?r:null==a?void 0:a.Root,_=(0,Ft.A)({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:v},x);return(0,Ne.jsx)(iv,(0,Ft.A)({as:s,direction:null==n?void 0:n.direction,slots:{root:w},slotProps:null!=y?y:l},_,{ref:t}))}));function av(e){return(0,qt.Ay)("MuiListSubheader",e)}(0,Vt.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const lv=["className","color","component","disableGutters","disableSticky","inset"],uv=(0,Ht.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${(0,Wt.A)(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===r.color&&{color:(t.vars||t).palette.primary.main},"inherit"===r.color&&{color:"inherit"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.inset&&{paddingLeft:72},!r.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),cv=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:i="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=r,u=(0,Lt.A)(r,lv),c=(0,Ft.A)({},r,{color:o,component:i,disableGutters:s,disableSticky:a,inset:l}),d=(e=>{const{classes:t,color:r,disableGutters:n,inset:o,disableSticky:i}=e,s={root:["root","default"!==r&&`color${(0,Wt.A)(r)}`,!n&&"gutters",o&&"inset",!i&&"sticky"]};return(0,$t.A)(s,av,t)})(c);return(0,Ne.jsx)(uv,(0,Ft.A)({as:i,className:(0,zt.A)(d.root,n),ref:t,ownerState:c},u))}));cv.muiSkipListHighlight=!0;const dv=cv,pv=(0,eu.A)((0,Ne.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function hv(e){return(0,qt.Ay)("MuiChip",e)}const fv=(0,Vt.A)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),mv=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],gv=(0,Ht.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=r;return[{[`& .${fv.avatar}`]:t.avatar},{[`& .${fv.avatar}`]:t[`avatar${(0,Wt.A)(a)}`]},{[`& .${fv.avatar}`]:t[`avatarColor${(0,Wt.A)(n)}`]},{[`& .${fv.icon}`]:t.icon},{[`& .${fv.icon}`]:t[`icon${(0,Wt.A)(a)}`]},{[`& .${fv.icon}`]:t[`iconColor${(0,Wt.A)(o)}`]},{[`& .${fv.deleteIcon}`]:t.deleteIcon},{[`& .${fv.deleteIcon}`]:t[`deleteIcon${(0,Wt.A)(a)}`]},{[`& .${fv.deleteIcon}`]:t[`deleteIconColor${(0,Wt.A)(n)}`]},{[`& .${fv.deleteIcon}`]:t[`deleteIcon${(0,Wt.A)(l)}Color${(0,Wt.A)(n)}`]},t.root,t[`size${(0,Wt.A)(a)}`],t[`color${(0,Wt.A)(n)}`],i&&t.clickable,i&&"default"!==n&&t[`clickableColor${(0,Wt.A)(n)})`],s&&t.deletable,s&&"default"!==n&&t[`deletableColor${(0,Wt.A)(n)}`],t[l],t[`${l}${(0,Wt.A)(n)}`]]}})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,Ft.A)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fv.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fv.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:n,fontSize:t.typography.pxToRem(12)},[`& .${fv.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${fv.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${fv.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${fv.icon}`]:(0,Ft.A)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,Ft.A)({color:t.vars?t.vars.palette.Chip.defaultIconColor:n},"default"!==r.color&&{color:"inherit"})),[`& .${fv.deleteIcon}`]:(0,Ft.A)({WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:(0,fi.X4)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:(0,fi.X4)(t.palette.text.primary,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:t.vars?`rgba(${t.vars.palette[r.color].contrastTextChannel} / 0.7)`:(0,fi.X4)(t.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].contrastText}})},"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].main,color:(t.vars||t).palette[r.color].contrastText},r.onDelete&&{[`&.${fv.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,fi.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},r.onDelete&&"default"!==r.color&&{[`&.${fv.focusVisible}`]:{backgroundColor:(t.vars||t).palette[r.color].dark}})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({},r.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,fi.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${fv.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,fi.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},r.clickable&&"default"!==r.color&&{[`&:hover, &.${fv.focusVisible}`]:{backgroundColor:(t.vars||t).palette[r.color].dark}})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({},"outlined"===r.variant&&{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${fv.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${fv.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${fv.avatar}`]:{marginLeft:4},[`& .${fv.avatarSmall}`]:{marginLeft:2},[`& .${fv.icon}`]:{marginLeft:4},[`& .${fv.iconSmall}`]:{marginLeft:2},[`& .${fv.deleteIcon}`]:{marginRight:5},[`& .${fv.deleteIconSmall}`]:{marginRight:3}},"outlined"===r.variant&&"default"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / 0.7)`:(0,fi.X4)(t.palette[r.color].main,.7)}`,[`&.${fv.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,fi.X4)(t.palette[r.color].main,t.palette.action.hoverOpacity)},[`&.${fv.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.focusOpacity})`:(0,fi.X4)(t.palette[r.color].main,t.palette.action.focusOpacity)},[`& .${fv.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / 0.7)`:(0,fi.X4)(t.palette[r.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].main}}})})),vv=(0,Ht.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${(0,Wt.A)(n)}`]]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})}));function bv(e){return"Backspace"===e.key||"Delete"===e.key}const yv=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiChip"}),{avatar:n,className:o,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:f,onKeyDown:m,onKeyUp:g,size:v="medium",variant:b="filled",tabIndex:y,skipFocusWhenDisabled:x=!1}=r,w=(0,Lt.A)(r,mv),_=i.useRef(null),S=(0,ii.A)(_,t),A=e=>{e.stopPropagation(),f&&f(e)},C=!(!1===s||!h)||s,k=C||f?Hi:l||"div",E=(0,Ft.A)({},r,{component:k,disabled:c,size:v,color:a,iconColor:i.isValidElement(d)&&d.props.color||a,onDelete:!!f,clickable:C,variant:b}),R=(e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,u={root:["root",l,r&&"disabled",`size${(0,Wt.A)(n)}`,`color${(0,Wt.A)(o)}`,a&&"clickable",a&&`clickableColor${(0,Wt.A)(o)}`,s&&"deletable",s&&`deletableColor${(0,Wt.A)(o)}`,`${l}${(0,Wt.A)(o)}`],label:["label",`label${(0,Wt.A)(n)}`],avatar:["avatar",`avatar${(0,Wt.A)(n)}`,`avatarColor${(0,Wt.A)(o)}`],icon:["icon",`icon${(0,Wt.A)(n)}`,`iconColor${(0,Wt.A)(i)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,Wt.A)(n)}`,`deleteIconColor${(0,Wt.A)(o)}`,`deleteIcon${(0,Wt.A)(l)}Color${(0,Wt.A)(o)}`]};return(0,$t.A)(u,hv,t)})(E),j=k===Hi?(0,Ft.A)({component:l||"div",focusVisibleClassName:R.focusVisible},f&&{disableRipple:!0}):{};let O=null;f&&(O=u&&i.isValidElement(u)?i.cloneElement(u,{className:(0,zt.A)(u.props.className,R.deleteIcon),onClick:A}):(0,Ne.jsx)(pv,{className:(0,zt.A)(R.deleteIcon),onClick:A}));let T=null;n&&i.isValidElement(n)&&(T=i.cloneElement(n,{className:(0,zt.A)(R.avatar,n.props.className)}));let I=null;return d&&i.isValidElement(d)&&(I=i.cloneElement(d,{className:(0,zt.A)(R.icon,d.props.className)})),(0,Ne.jsxs)(gv,(0,Ft.A)({as:k,className:(0,zt.A)(R.root,o),disabled:!(!C||!c)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&bv(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&bv(e)?f(e):"Escape"===e.key&&_.current&&_.current.blur()),g&&g(e)},ref:S,tabIndex:x&&c?-1:y,ownerState:E},j,w,{children:[T||I,(0,Ne.jsx)(vv,{className:(0,zt.A)(R.label),ownerState:E,children:p}),O]}))}));function xv(e){return(0,qt.Ay)("MuiInput",e)}const wv=(0,Ft.A)({},am,(0,Vt.A)("MuiInput",["root","underline","input"]));function _v(e){return(0,qt.Ay)("MuiOutlinedInput",e)}const Sv=(0,Ft.A)({},am,(0,Vt.A)("MuiOutlinedInput",["root","notchedOutline","input"]));function Av(e){return(0,qt.Ay)("MuiFilledInput",e)}const Cv=(0,Ft.A)({},am,(0,Vt.A)("MuiFilledInput",["root","underline","input"])),kv=(0,eu.A)((0,Ne.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Ev(e){return(0,qt.Ay)("MuiAutocomplete",e)}const Rv=(0,Vt.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var jv,Ov;const Tv=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Iv=["ref"],Pv=["key"],Nv=["key"],Mv=(0,Ht.Ay)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=r;return[{[`& .${Rv.tag}`]:t.tag},{[`& .${Rv.tag}`]:t[`tagSize${(0,Wt.A)(a)}`]},{[`& .${Rv.inputRoot}`]:t.inputRoot},{[`& .${Rv.input}`]:t.input},{[`& .${Rv.input}`]:s&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Rv.focused} .${Rv.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Rv.clearIndicator}`]:{visibility:"visible"}},[`& .${Rv.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Rv.inputRoot}`]:{[`.${Rv.hasPopupIcon}&, .${Rv.hasClearIcon}&`]:{paddingRight:30},[`.${Rv.hasPopupIcon}.${Rv.hasClearIcon}&`]:{paddingRight:56},[`& .${Rv.input}`]:{width:0,minWidth:30}},[`& .${wv.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${wv.root}.${am.sizeSmall}`]:{[`& .${wv.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Sv.root}`]:{padding:9,[`.${Rv.hasPopupIcon}&, .${Rv.hasClearIcon}&`]:{paddingRight:39},[`.${Rv.hasPopupIcon}.${Rv.hasClearIcon}&`]:{paddingRight:65},[`& .${Rv.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Rv.endAdornment}`]:{right:9}},[`& .${Sv.root}.${am.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Rv.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Cv.root}`]:{paddingTop:19,paddingLeft:8,[`.${Rv.hasPopupIcon}&, .${Rv.hasClearIcon}&`]:{paddingRight:39},[`.${Rv.hasPopupIcon}.${Rv.hasClearIcon}&`]:{paddingRight:65},[`& .${Cv.input}`]:{padding:"7px 4px"},[`& .${Rv.endAdornment}`]:{right:9}},[`& .${Cv.root}.${am.sizeSmall}`]:{paddingBottom:1,[`& .${Cv.input}`]:{padding:"2.5px 4px"}},[`& .${am.hiddenLabel}`]:{paddingTop:8},[`& .${Cv.root}.${am.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Rv.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Cv.root}.${am.hiddenLabel}.${am.sizeSmall}`]:{[`& .${Rv.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Rv.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Rv.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Rv.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Rv.inputRoot}`]:{flexWrap:"wrap"}}}]}),Dv=(0,Ht.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Lv=(0,Ht.Ay)(Gi,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Fv=(0,Ht.Ay)(Gi,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,Ft.A)({},t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen)}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),zv=(0,Ht.Ay)(sv,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Rv.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}})),Bv=(0,Ht.Ay)(Ba,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,Ft.A)({},t.typography.body1,{overflow:"auto"})})),$v=(0,Ht.Ay)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),Hv=(0,Ht.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),Uv=(0,Ht.Ay)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Rv.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Rv.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Rv.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Rv.focused}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${Rv.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),Wv=(0,Ht.Ay)(dv,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),Vv=(0,Ht.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Rv.option}`]:{paddingLeft:24}}),qv=i.forwardRef((function(e,t){var r,n,o,s;const a=(0,Ut.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:f=jv||(jv=(0,Ne.jsx)(iu,{fontSize:"small"})),clearOnBlur:m=!a.freeSolo,clearOnEscape:g=!1,clearText:v="Clear",closeText:b="Close",componentsProps:y={},defaultValue:x=(a.multiple?[]:null),disableClearable:w=!1,disableCloseOnSelect:_=!1,disabled:S=!1,disabledItemsFocusable:A=!1,disableListWrap:C=!1,disablePortal:k=!1,filterSelectedOptions:E=!1,forcePopupIcon:R="auto",freeSolo:j=!1,fullWidth:O=!1,getLimitTagsText:T=e=>`+${e}`,getOptionLabel:I,groupBy:P,handleHomeEndKeys:N=!a.freeSolo,includeInputInList:M=!1,limitTags:D=-1,ListboxComponent:L="ul",ListboxProps:F,loading:z=!1,loadingText:B="Loading\u2026",multiple:$=!1,noOptionsText:H="No options",openOnFocus:U=!1,openText:W="Open",PaperComponent:V=Ba,PopperComponent:q=sv,popupIcon:G=Ov||(Ov=(0,Ne.jsx)(kv,{})),readOnly:Q=!1,renderGroup:K,renderInput:J,renderOption:X,renderTags:Y,selectOnFocus:Z=!a.freeSolo,size:ee="medium",slotProps:te={}}=a,re=(0,Lt.A)(a,Tv),{getRootProps:ne,getInputProps:oe,getInputLabelProps:ie,getPopupIndicatorProps:se,getClearProps:ae,getTagProps:le,getListboxProps:ue,getOptionProps:ce,value:de,dirty:pe,expanded:he,id:fe,popupOpen:me,focused:ge,focusedTag:ve,anchorEl:be,setAnchorEl:ye,inputValue:xe,groupedOptions:we}=Fm((0,Ft.A)({},a,{componentName:"Autocomplete"})),_e=!w&&!S&&pe&&!Q,Se=(!j||!0===R)&&!1!==R,{onMouseDown:Ae}=oe(),{ref:Ce}=null!=F?F:{},ke=ue(),{ref:Ee}=ke,Re=(0,Lt.A)(ke,Iv),je=(0,ii.A)(Ee,Ce),Oe=I||(e=>{var t;return null!=(t=e.label)?t:e}),Te=(0,Ft.A)({},a,{disablePortal:k,expanded:he,focused:ge,fullWidth:O,getOptionLabel:Oe,hasClearIcon:_e,hasPopupIcon:Se,inputFocused:-1===ve,popupOpen:me,size:ee}),Ie=(e=>{const{classes:t,disablePortal:r,expanded:n,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",n&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${(0,Wt.A)(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,$t.A)(d,Ev,t)})(Te);let Pe;if($&&de.length>0){const e=e=>(0,Ft.A)({className:Ie.tag,disabled:S},le(e));Pe=Y?Y(de,e,Te):de.map(((t,r)=>{const n=e({index:r}),{key:o}=n,i=(0,Lt.A)(n,Pv);return(0,Ne.jsx)(yv,(0,Ft.A)({label:Oe(t),size:ee},i,p),o)}))}if(D>-1&&Array.isArray(Pe)){const e=Pe.length-D;!ge&&e>0&&(Pe=Pe.splice(0,D),Pe.push((0,Ne.jsx)("span",{className:Ie.tag,children:T(e)},Pe.length)))}const Me=K||(e=>(0,Ne.jsxs)("li",{children:[(0,Ne.jsx)(Wv,{className:Ie.groupLabel,ownerState:Te,component:"div",children:e.group}),(0,Ne.jsx)(Vv,{className:Ie.groupUl,ownerState:Te,children:e.children})]},e.key)),De=X||((e,t)=>{const{key:r}=e,n=(0,Lt.A)(e,Nv);return(0,Ne.jsx)("li",(0,Ft.A)({},n,{children:Oe(t)}),r)}),Le=(e,t)=>{const r=ce({option:e,index:t});return De((0,Ft.A)({},r,{className:Ie.option}),e,{selected:r["aria-selected"],index:t,inputValue:xe},Te)},Fe=null!=(r=te.clearIndicator)?r:y.clearIndicator,ze=null!=(n=te.paper)?n:y.paper,Be=null!=(o=te.popper)?o:y.popper,$e=null!=(s=te.popupIndicator)?s:y.popupIndicator;return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)(Mv,(0,Ft.A)({ref:t,className:(0,zt.A)(Ie.root,h),ownerState:Te},ne(re),{children:J({id:fe,disabled:S,fullWidth:!0,size:"small"===ee?"small":void 0,InputLabelProps:ie(),InputProps:(0,Ft.A)({ref:ye,className:Ie.inputRoot,startAdornment:Pe,onClick:e=>{e.target===e.currentTarget&&Ae(e)}},(_e||Se)&&{endAdornment:(0,Ne.jsxs)(Dv,{className:Ie.endAdornment,ownerState:Te,children:[_e?(0,Ne.jsx)(Lv,(0,Ft.A)({},ae(),{"aria-label":v,title:v,ownerState:Te},Fe,{className:(0,zt.A)(Ie.clearIndicator,null==Fe?void 0:Fe.className),children:f})):null,Se?(0,Ne.jsx)(Fv,(0,Ft.A)({},se(),{disabled:S,"aria-label":me?b:W,title:me?b:W,ownerState:Te},$e,{className:(0,zt.A)(Ie.popupIndicator,null==$e?void 0:$e.className),children:G})):null]})}),inputProps:(0,Ft.A)({className:Ie.input,disabled:S,readOnly:Q},oe())})})),be?(0,Ne.jsx)(zv,(0,Ft.A)({as:q,disablePortal:k,style:{width:be?be.clientWidth:null},ownerState:Te,role:"presentation",anchorEl:be,open:me},Be,{className:(0,zt.A)(Ie.popper,null==Be?void 0:Be.className),children:(0,Ne.jsxs)(Bv,(0,Ft.A)({ownerState:Te,as:V},ze,{className:(0,zt.A)(Ie.paper,null==ze?void 0:ze.className),children:[z&&0===we.length?(0,Ne.jsx)($v,{className:Ie.loading,ownerState:Te,children:B}):null,0!==we.length||j||z?null:(0,Ne.jsx)(Hv,{className:Ie.noOptions,ownerState:Te,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:H}),we.length>0?(0,Ne.jsx)(Uv,(0,Ft.A)({as:L,className:Ie.listbox,ownerState:Te},Re,F,{ref:je,children:we.map(((e,t)=>P?Me({key:e.key,group:e.group,children:e.options.map(((t,r)=>Le(t,e.index+r)))}):Le(e,t)))})):null]}))})):null]})})),Gv=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function Qv(e){const{item:t,applyValue:r,type:n,apiRef:o,focusElementRef:s,color:a,error:l,helperText:u,size:c,variant:d}=e,p=(0,Lt.A)(e,Gv),h={color:a,error:l,helperText:u,size:c,variant:d},[f,m]=i.useState(t.value||[]),g=(0,Vs.A)(),v=tp();i.useEffect((()=>{var e;const r=null!=(e=t.value)?e:[];m(r.map(String))}),[t.value]);const b=i.useCallback(((e,n)=>{m(n.map(String)),r((0,Ft.A)({},t,{value:[...n]}))}),[r,t]);return(0,Ne.jsx)(qv,(0,Ft.A)({multiple:!0,freeSolo:!0,options:[],filterOptions:(e,t)=>{const{inputValue:r}=t;return null==r||""===r?[]:[r]},id:g,value:f,onChange:b,renderTags:(e,t)=>e.map(((e,r)=>(0,Ne.jsx)(v.slots.baseChip,(0,Ft.A)({variant:"outlined",size:"small",label:e},t({index:r}))))),renderInput:e=>{var t;return(0,Ne.jsx)(v.slots.baseTextField,(0,Ft.A)({},e,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,Ft.A)({},e.InputLabelProps,{shrink:!0}),inputRef:s,type:n||"text"},h,null==(t=v.slotProps)?void 0:t.baseTextField))}},p))}const Kv={current:null};function Jv(e){return e.isInternal=!0,e}function Xv(e){return void 0!==e&&!0===e.isInternal}function Yv(e){return e.map((e=>{return(0,Ft.A)({},e,{getApplyFilterFn:(t=e.getApplyFilterFnV7,Jv(((e,r)=>{const n=t(e,r);return n?e=>n(e.value,e.row,r,Kv.current):n}))),getApplyFilterFnV7:Jv(e.getApplyFilterFnV7)});var t}))}function Zv(e){return Jv(((t,r,n)=>{const o=e(t,r,n);return o?e=>o(e.value,e.row,r,n):o}))}var eb=function(e){return e.And="and",e.Or="or",e}(eb||{});const tb=()=>({items:[],logicOperator:eb.And,quickFilterValues:[],quickFilterLogicOperator:eb.And});function rb(e){return{current:e.current.getPublicApi()}}let nb;const ob=(e,t)=>{const r=(0,Ft.A)({},e);if(null==r.id&&(r.id=Math.round(1e5*Math.random())),null==r.operator){const e=vp(t)[r.field];r.operator=e&&e.filterOperators[0].value}return r},ib=Wd(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),sb=Wd("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),ab=Wd("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),lb=(e,t,r)=>{const n=e.items.length>1;let o;n&&t?(ib(),o=[e.items[0]]):o=e.items;const i=n&&o.some((e=>null==e.id)),s=o.some((e=>null==e.operator));return i&&sb(),s&&ab(),s||i?(0,Ft.A)({},e,{items:o.map((e=>ob(e,r)))}):e.items!==o?(0,Ft.A)({},e,{items:o}):e},ub=(e,t,r)=>n=>(0,Ft.A)({},n,{filterModel:lb(e,t,r)}),cb=e=>"string"===typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,db=(e,t)=>{if(!e.field||!e.operator)return null;const r=t.current.getColumn(e.field);if(!r)return null;let n;if(r.valueParser){var o;const t=r.valueParser;n=Array.isArray(e.value)?null==(o=e.value)?void 0:o.map((e=>t(e))):t(e.value)}else n=e.value;const{ignoreDiacritics:i}=t.current.rootProps;i&&(n=cb(n));const s=(0,Ft.A)({},e,{value:n}),a=r.filterOperators;if(null==a||!a.length)throw new Error(`MUI: No filter operators found for column '${r.field}'.`);const l=a.find((e=>e.value===s.operator));if(!l)throw new Error(`MUI: No filter operator found for column '${r.field}' and operator value '${s.operator}'.`);const u=!Xv(l.getApplyFilterFn),c=!Xv(l.getApplyFilterFnV7),d=rb(t);if(l.getApplyFilterFnV7&&(!u||c)){const e=l.getApplyFilterFnV7(s,r);return"function"!==typeof e?null:{v7:!0,item:s,fn:n=>{let o=t.current.getRowValue(n,r);return i&&(o=cb(o)),e(o,n,r,d)}}}const p=l.getApplyFilterFn(s,r);return"function"!==typeof p?null:{v7:!1,item:s,fn:e=>{const r=t.current.getCellParams(e,s.field);Kv.current=d,i&&(r.value=cb(r.value));const n=p(r);return Kv.current=null,n}}};let pb=1;const hb=(e,t,r)=>{const{items:n}=e,o=n.map((e=>db(e,t))).filter((e=>!!e));if(0===o.length)return null;if(r||!function(){if(void 0!==nb)return nb;try{nb=new Function("return true")()}catch(e){nb=!1}return nb}())return(e,r)=>{const n={};for(let i=0;i<o.length;i+=1){const s=o[i];r&&!r(s.item.field)||(n[s.item.id]=s.v7?s.fn(e):s.fn(t.current.getRowId(e)))}return n};const i=new Function("getRowId","appliers","row","shouldApplyFilter",`"use strict";\n${o.map(((e,t)=>`const shouldApply${t} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(e.item.field)});`)).join("\n")}\n\nconst result$$ = {\n${o.map(((e,t)=>`  ${JSON.stringify(String(e.item.id))}: !shouldApply${t}\n    ? false\n    : ${e.v7?`appliers[${t}].fn(row)`:`appliers[${t}].fn(getRowId(row))`},`)).join("\n")}\n};\n\nreturn result$$;`.replaceAll("$$",String(pb)));pb+=1;return(e,r)=>i(t.current.getRowId,o,e,r)},fb=(e,t,r)=>{const n=hb(e,t,r),o=((e,t)=>{var r,n,o;const i=null!=(r=null==(n=e.quickFilterValues)?void 0:n.filter(Boolean))?r:[];if(0===i.length)return null;const s=null!=(o=e.quickFilterExcludeHiddenColumns)&&o?wp(t):gp(t),a=[],{ignoreDiacritics:l}=t.current.rootProps,u=rb(t);return s.forEach((e=>{const r=t.current.getColumn(e),n=null==r?void 0:r.getApplyQuickFilterFn,o=null==r?void 0:r.getApplyQuickFilterFnV7,s=!Xv(n),c=!Xv(o);!o||s&&!c?n&&a.push({column:r,appliers:i.map((e=>{const t=l?cb(e):e;return{v7:!1,fn:n(t,r,u)}}))}):a.push({column:r,appliers:i.map((e=>{const t=l?cb(e):e;return{v7:!0,fn:o(t,r,u)}}))})})),function(e,r){const n={},o={};e:for(let c=0;c<i.length;c+=1){const d=i[c];for(let i=0;i<a.length;i+=1){const{column:p,appliers:h}=a[i],{field:f}=p;if(r&&!r(f))continue;const m=h[c];let g=t.current.getRowValue(e,p);if(null!==m.fn)if(m.v7){if(l&&(g=cb(g)),m.fn(g,e,p,u)){n[d]=!0;continue e}}else{var s;const r=null!=(s=o[f])?s:t.current.getCellParams(t.current.getRowId(e),f);if(l&&(r.value=cb(r.value)),o[f]=r,m.fn(r)){n[d]=!0;continue e}}}n[d]=!1}return n}})(e,t);return function(e,t,r){var i,s;r.passingFilterItems=null!=(i=null==n?void 0:n(e,t))?i:null,r.passingQuickFilterValues=null!=(s=null==o?void 0:o(e,t))?s:null}},mb=e=>null!=e,gb=(e,t,r,n,o)=>{const i=((e,t,r)=>(e.cleanedFilterItems||(e.cleanedFilterItems=r.filter((e=>null!==db(e,t)))),e.cleanedFilterItems))(o,n,r.items),s=e.filter(mb),a=t.filter(mb);if(s.length>0){var l;const e=e=>s.some((t=>t[e.id]));if((null!=(l=r.logicOperator)?l:tb().logicOperator)===eb.And){if(!i.every(e))return!1}else{if(!i.some(e))return!1}}if(a.length>0&&null!=r.quickFilterValues){var u;const e=e=>a.some((t=>t[e]));if((null!=(u=r.quickFilterLogicOperator)?u:tb().quickFilterLogicOperator)===eb.And){if(!r.quickFilterValues.every(e))return!1}else{if(!r.quickFilterValues.some(e))return!1}}return!0},vb=Jv((e=>{if(!e)return null;const t=new RegExp(Bh(e),"i");return(e,r,n,o)=>{let i=o.current.getRowFormattedValue(r,n);return o.current.ignoreDiacritics&&(i=cb(i)),null!=i&&t.test(i.toString())}})),bb={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:(e,t)=>{const r=_m(e,t);return null!==r?r:"string"===typeof e?Sm.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Yv([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const r=e?t.value:t.value.trim(),n=new RegExp(Bh(r),"i");return e=>null!=e&&n.test(String(e))},InputComponent:jm},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const r=e?t.value:t.value.trim(),n=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&0===n.compare(r,e.toString())},InputComponent:jm},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const r=e?t.value:t.value.trim(),n=new RegExp(`^${Bh(r)}.*$`,"i");return e=>null!=e&&n.test(e.toString())},InputComponent:jm},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const r=e?t.value:t.value.trim(),n=new RegExp(`.*${Bh(r)}$`,"i");return e=>null!=e&&n.test(e.toString())},InputComponent:jm},{value:"isEmpty",getApplyFilterFnV7:()=>e=>""===e||null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>""!==e&&null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const r=e?t.value:t.value.map((e=>e.trim())),n=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&r.some((t=>0===n.compare(t,e.toString()||"")))},InputComponent:Qv}])}(),renderEditCell:e=>(0,Ne.jsx)(vm,(0,Ft.A)({},e)),getApplyQuickFilterFn:Zv(vb),getApplyQuickFilterFnV7:vb},yb="auto-generated-group-node-root",xb=Symbol("mui.id_autogenerated");const wb=(e,t,r)=>{const n=t?t(e):e.id;return function(e,t){if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",arguments.length>2&&void 0!==arguments[2]?arguments[2]:"A row was provided without id in the rows prop:",JSON.stringify(t)].join("\n"))}(n,e,r),n},_b=e=>{let{rows:t,getRowId:r,loading:n,rowCount:o}=e;const i={type:"full",rows:[]},s={},a={};for(let l=0;l<t.length;l+=1){const e=t[l],n=wb(e,r);s[n]=e,a[n]=n,i.rows.push(n)}return{rowsBeforePartialUpdates:t,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:o,updates:i,dataRowIdToIdLookup:a,dataRowIdToModelLookup:s}},Sb=e=>{let{tree:t,rowCountProp:r=0}=e;const n=t[yb];return Math.max(r,n.children.length+(null==n.footerId?0:1))},Ab=e=>{let{apiRef:t,rowCountProp:r=0,loadingProp:n,previousTree:o,previousTreeDepths:i}=e;const s=t.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:u,groupingName:c}=t.current.applyStrategyProcessor("rowTreeCreation",{previousTree:o,previousTreeDepths:i,updates:s.updates,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIdToModelLookup:s.dataRowIdToModelLookup}),d=t.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIds:u,dataRowIdToModelLookup:s.dataRowIdToModelLookup});return t.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},(0,Ft.A)({},d,{totalRowCount:Math.max(r,d.dataRowIds.length),totalTopLevelRowCount:Sb({tree:d.tree,rowCountProp:r}),groupingName:c,loading:n})},Cb=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,kb=(e,t,r)=>{const n=e[t];if("group"!==n.type)return[];const o=[];for(let i=0;i<n.children.length;i+=1){const t=n.children[i];r&&Cb(e[t])||o.push(t);const s=kb(e,t,r);for(let e=0;e<s.length;e+=1)o.push(s[e])}return r||null==n.footerId||o.push(n.footerId),o};function Eb(e){var t,r;const n=Hp(e);return{top:(null==n||null==(t=n.top)?void 0:t.reduce(((t,r)=>t+=e.current.unstable_getRowHeight(r.id)),0))||0,bottom:(null==n||null==(r=n.bottom)?void 0:r.reduce(((t,r)=>t+=e.current.unstable_getRowHeight(r.id)),0))||0}}function Rb(e,t){const r=fp(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*r)}px)`}const jb=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"];function Ob(e){const{value:t}=e,r=(0,Lt.A)(e,jb),n=Af(),o=tp(),s=(e=>{const{classes:t}=e;return(0,$t.A)({root:["booleanCell"]},Md,t)})({classes:o.classes}),a=i.useMemo((()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon),[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return(0,Ne.jsx)(a,(0,Ft.A)({fontSize:"small",className:s.root,titleAccess:n.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},r))}const Tb=i.memo(Ob),Ib=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function Pb(e){var t;const{id:r,value:n,field:o,className:s,hasFocus:a,onValueChange:l}=e,u=(0,Lt.A)(e,Ib),c=Af(),d=i.useRef(null),p=(0,Vs.A)(),[h,f]=i.useState(n),m=tp(),g=(e=>{const{classes:t}=e;return(0,$t.A)({root:["editBooleanCell"]},Md,t)})({classes:m.classes}),v=i.useCallback((async e=>{const t=e.target.checked;l&&await l(e,t),f(t),await c.current.setEditCellValue({id:r,field:o,value:t},e)}),[c,o,r,l]);return i.useEffect((()=>{f(n)}),[n]),(0,ua.A)((()=>{a&&d.current.focus()}),[a]),(0,Ne.jsx)("label",(0,Ft.A)({htmlFor:p,className:Cd(g.root,s)},u,{children:(0,Ne.jsx)(m.slots.baseCheckbox,(0,Ft.A)({id:p,inputRef:d,checked:Boolean(h),onChange:v,size:"small"},null==(t=m.slotProps)?void 0:t.baseCheckbox))}))}const Nb=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],Mb=(0,Ht.Ay)("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Db(e){var t,r,n,o;const{item:s,applyValue:a,apiRef:l,focusElementRef:u,clearButton:c,tabIndex:d,label:p,variant:h="standard"}=e,f=(0,Lt.A)(e,Nb),[m,g]=i.useState(s.value||""),v=tp(),b=(0,Vs.A)(),y=(0,Vs.A)(),x=(null==(t=v.slotProps)?void 0:t.baseSelect)||{},w=null==(r=x.native)||r,_=(null==(n=v.slotProps)?void 0:n.baseSelectOption)||{},S=i.useCallback((e=>{const t=e.target.value;g(t),a((0,Ft.A)({},s,{value:t}))}),[a,s]);i.useEffect((()=>{g(s.value||"")}),[s.value]);const A=null!=p?p:l.current.getLocaleText("filterPanelInputLabel");return(0,Ne.jsxs)(Mb,{children:[(0,Ne.jsxs)(v.slots.baseFormControl,{fullWidth:!0,children:[(0,Ne.jsx)(v.slots.baseInputLabel,(0,Ft.A)({},null==(o=v.slotProps)?void 0:o.baseInputLabel,{id:b,shrink:!0,variant:h,children:A})),(0,Ne.jsxs)(v.slots.baseSelect,(0,Ft.A)({labelId:b,id:y,label:A,value:m,onChange:S,variant:h,notched:"outlined"===h||void 0,native:w,displayEmpty:!0,inputProps:{ref:u,tabIndex:d}},f,x,{children:[(0,Ne.jsx)(v.slots.baseSelectOption,(0,Ft.A)({},_,{native:w,value:"",children:l.current.getLocaleText("filterValueAny")})),(0,Ne.jsx)(v.slots.baseSelectOption,(0,Ft.A)({},_,{native:w,value:"true",children:l.current.getLocaleText("filterValueTrue")})),(0,Ne.jsx)(v.slots.baseSelectOption,(0,Ft.A)({},_,{native:w,value:"false",children:l.current.getLocaleText("filterValueFalse")}))]}))]}),c]})}const Lb=(0,Ft.A)({},bb,{type:"boolean",align:"center",headerAlign:"center",renderCell:e=>Cb(e.rowNode)?"":(0,Ne.jsx)(Tb,(0,Ft.A)({},e)),renderEditCell:e=>(0,Ne.jsx)(Pb,(0,Ft.A)({},e)),sortComparator:Am,valueFormatter:function(e){let{value:t,api:r}=e;return t?r.getLocaleText("booleanCellTrueLabel"):r.getLocaleText("booleanCellFalseLabel")},filterOperators:Yv([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t="true"===e.value;return e=>Boolean(e)===t},InputComponent:Db}]),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>(e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}})(e)}),Fb="__check__",zb=(0,Ft.A)({},Lb,{field:Fb,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>void 0!==Of(e.api.state,e.api.instanceId)[e.id],renderHeader:e=>(0,Ne.jsx)(Wf,(0,Ft.A)({},e)),renderCell:e=>(0,Ne.jsx)(kf,(0,Ft.A)({},e))});function Bb(e,t){if("string"===typeof e){if(t.shouldAppendQuotes||t.escapeFormulas){const r=e.replace(/"/g,'""');return[t.delimiter,"\n","\r",'"'].some((t=>e.includes(t)))?`"${r}"`:t.escapeFormulas&&["=","+","-","@","\t","\r"].includes(r[0])?`'${r}`:r}return e}return e}const $b=(e,t)=>{const{csvOptions:r,ignoreValueFormatter:n}=t;let o;if(n){var i;const t=e.colDef.type;if("number"===t)o=String(e.value);else if("date"===t||"dateTime"===t){var s;o=null==(s=e.value)?void 0:s.toISOString()}else o="function"===typeof(null==(i=e.value)?void 0:i.toString)?e.value.toString():e.value}else o=e.formattedValue;return Bb(o,r)};Wd(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Hb{constructor(e){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=e}addValue(e){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),null===e||void 0===e?this.rowString+="":"function"===typeof this.options.sanitizeCellValue?this.rowString+=this.options.sanitizeCellValue(e,this.options.csvOptions):this.rowString+=e,this.isEmpty=!1}getRowString(){return this.rowString}}function Ub(e){const{columns:t,rowIds:r,csvOptions:n,ignoreValueFormatter:o,apiRef:i}=e,s=r.reduce(((e,r)=>`${e}${(e=>{let{id:t,columns:r,getCellParams:n,csvOptions:o,ignoreValueFormatter:i}=e;const s=new Hb({csvOptions:o});return r.forEach((e=>{const r=n(t,e.field);s.addValue($b(r,{ignoreValueFormatter:i,csvOptions:o}))})),s.getRowString()})({id:r,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:n})}\r\n`),"").trim();if(!n.includeHeaders)return s;const a=t.filter((e=>e.field!==zb.field)),l=[];if(n.includeColumnGroupsHeaders){const e=i.current.unstable_getAllGroupDetails();let t=0;const r=a.reduce(((e,r)=>{const n=i.current.unstable_getColumnGroupPath(r.field);return e[r.field]=n,t=Math.max(t,n.length),e}),{});for(let o=0;o<t;o+=1){const t=new Hb({csvOptions:n,sanitizeCellValue:Bb});l.push(t),a.forEach((n=>{const i=(r[n.field]||[])[o],s=e[i];t.addValue(s?s.headerName||s.groupId:"")}))}}const u=new Hb({csvOptions:n,sanitizeCellValue:Bb});a.forEach((e=>{u.addValue(e.headerName||e.field)})),l.push(u);return`${`${l.map((e=>e.getRowString())).join("\r\n")}\r\n`}${s}`.trim()}function Wb(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const r=document.createRange();r.selectNode(t);const n=window.getSelection();n.removeAllRanges(),n.addRange(r);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const Vb=(e,t)=>{const r=t.unstable_ignoreValueFormatterDuringExport,n=("object"===typeof r?null==r?void 0:r.clipboardExport:r)||!1,o=t.clipboardCopyCellDelimiter,s=i.useCallback((t=>{if(!t.ctrlKey&&!t.metaKey||"c"!==t.key)return;if(function(e){var t;return!(null==(t=window.getSelection())||!t.toString())||!!(e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}(t.target))return;let r="";if(e.current.getSelectedRows().size>0)r=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const t=kh(e);if(t){const i=e.current.getCellParams(t.id,t.field);r=$b(i,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:n})}}var i;r=e.current.unstable_applyPipeProcessors("clipboardCopy",r),r&&(i=r,navigator.clipboard?navigator.clipboard.writeText(i).catch((()=>{Wb(i)})):Wb(i),e.current.publishEvent("clipboardCopy",r))}),[e,n,o]);((e,t,r,n,o)=>{const s=gf(e,"useNativeEventListener"),[a,l]=i.useState(!1),u=i.useRef(n),c=i.useCallback((e=>u.current&&u.current(e)),[]);i.useEffect((()=>{u.current=n}),[n]),i.useEffect((()=>{let n;if(n=Fh(t)?t():t&&t.current?t.current:null,n&&r&&!a){s.debug(`Binding native ${r} event`),n.addEventListener(r,c,o);const t=n;l(!0);const i=()=>{s.debug(`Clearing native ${r} event`),t.removeEventListener(r,c,o)};e.current.subscribeEvent("unmount",i)}}),[t,c,r,a,s,o,e])})(e,e.current.rootElementRef,"keydown",s),sf(e,"clipboardCopy",t.onClipboardCopy)},qb=e=>(0,Ft.A)({},e,{columnMenu:{open:!1}}),Gb=e=>{const t=i.useRef(!0);t.current&&(t.current=!1,e())},Qb=(e,t,r)=>{const n=i.useRef(),o=i.useRef(`mui-${Math.round(1e9*Math.random())}`),s=i.useCallback((()=>{n.current=e.current.registerPipeProcessor(t,o.current,r)}),[e,r,t]);Gb((()=>{s()}));const a=i.useRef(!0);i.useEffect((()=>(a.current?a.current=!1:s(),()=>{n.current&&(n.current(),n.current=null)})),[s])},Kb=(e,t,r)=>{const n=i.useRef(),o=i.useRef(`mui-${Math.round(1e9*Math.random())}`),s=i.useCallback((()=>{n.current=e.current.registerPipeApplier(t,o.current,r)}),[e,r,t]);Gb((()=>{s()}));const a=i.useRef(!0);i.useEffect((()=>(a.current?a.current=!1:s(),()=>{n.current&&(n.current(),n.current=null)})),[s])},Jb=e=>null==e?null:Number(e),Xb=Jv((e=>null==e||Number.isNaN(e)||""===e?null:t=>Jb(t)===Jb(e))),Yb=(0,Ft.A)({},bb,{type:"number",align:"right",headerAlign:"right",sortComparator:Am,valueParser:e=>""===e?null:Number(e),valueFormatter:e=>{let{value:t}=e;return function(e){return"number"===typeof e&&!Number.isNaN(e)}(t)?t.toLocaleString():t||""},filterOperators:Yv([{value:"=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>Jb(t)===e.value,InputComponent:jm,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>Jb(t)!==e.value,InputComponent:jm,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&Jb(t)>e.value,InputComponent:jm,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&Jb(t)>=e.value,InputComponent:jm,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&Jb(t)<e.value,InputComponent:jm,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&Jb(t)<=e.value,InputComponent:jm,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>Array.isArray(e.value)&&0!==e.value.length?t=>null!=t&&e.value.includes(Number(t)):null,InputComponent:Qv,InputComponentProps:{type:"number"}}]),getApplyQuickFilterFn:Zv(Xb),getApplyQuickFilterFnV7:Xb}),Zb=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function ey(e){var t,r;const{item:n,applyValue:o,type:s,apiRef:a,focusElementRef:l,InputProps:u,clearButton:c,tabIndex:d,disabled:p}=e,h=(0,Lt.A)(e,Zb),f=Em(),[m,g]=i.useState(null!=(t=n.value)?t:""),[v,b]=i.useState(!1),y=(0,Vs.A)(),x=tp(),w=i.useCallback((e=>{const t=e.target.value;g(String(t)),b(!0),f.start(x.filterDebounceMs,(()=>{o((0,Ft.A)({},n,{value:t})),b(!1)}))}),[o,n,x.filterDebounceMs,f]);return i.useEffect((()=>{var e;const t=null!=(e=n.value)?e:"";g(String(t))}),[n.value]),(0,Ne.jsx)(x.slots.baseTextField,(0,Ft.A)({fullWidth:!0,id:y,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:w,variant:"standard",type:s||"text",InputLabelProps:{shrink:!0},inputRef:l,InputProps:(0,Ft.A)({},v||c?{endAdornment:v?(0,Ne.jsx)(x.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:p},u,{inputProps:(0,Ft.A)({max:"datetime-local"===s?"9999-12-31T23:59":"9999-12-31",tabIndex:d},null==u?void 0:u.inputProps)})},h,null==(r=x.slotProps)?void 0:r.baseTextField))}const ty=/(\d+)-(\d+)-(\d+)/,ry=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function ny(e,t,r,n){if(!e.value)return null;const[o,i,s,a,l]=e.value.match(r?ry:ty).slice(1).map(Number),u=new Date(o,i-1,s,a||0,l||0).getTime();return e=>{if(!e)return!1;if(n)return t(e.getTime(),u);const o=new Date(e).setHours(r?e.getHours():0,r?e.getMinutes():0,0,0);return t(o,u)}}const oy=e=>Yv([{value:"is",getApplyFilterFnV7:t=>ny(t,((e,t)=>e===t),e),InputComponent:ey,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>ny(t,((e,t)=>e!==t),e),InputComponent:ey,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>ny(t,((e,t)=>e>t),e),InputComponent:ey,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>ny(t,((e,t)=>e>=t),e),InputComponent:ey,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>ny(t,((e,t)=>e<t),e,!e),InputComponent:ey,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>ny(t,((e,t)=>e<=t),e),InputComponent:ey,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>null!=e,requiresFilterValue:!1}]),iy=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],sy=(0,Ht.Ay)(fm)({fontSize:"inherit"});function ay(e){const{id:t,value:r,field:n,colDef:o,hasFocus:s,inputProps:a,onValueChange:l}=e,u=(0,Lt.A)(e,iy),c="dateTime"===o.type,d=Af(),p=i.useRef(),h=i.useMemo((()=>{let e,t;if(e=null==r?null:r instanceof Date?r:new Date((null!=r?r:"").toString()),null==e||Number.isNaN(e.getTime()))t="";else{t=new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,c?16:10)}return{parsed:e,formatted:t}}),[r,c]),[f,m]=i.useState(h),g=(e=>{const{classes:t}=e;return(0,$t.A)({root:["editInputCell"]},Md,t)})({classes:tp().classes}),v=i.useCallback((e=>{if(""===e)return null;const[t,r]=e.split("T"),[n,o,i]=t.split("-"),s=new Date;if(s.setFullYear(Number(n),Number(o)-1,Number(i)),s.setHours(0,0,0,0),r){const[e,t]=r.split(":");s.setHours(Number(e),Number(t),0,0)}return s}),[]),b=i.useCallback((async e=>{const r=e.target.value,o=v(r);l&&await l(e,o),m({parsed:o,formatted:r}),d.current.setEditCellValue({id:t,field:n,value:o},e)}),[d,n,t,l,v]);return i.useEffect((()=>{m((e=>{var t,r;return h.parsed!==e.parsed&&(null==(t=h.parsed)?void 0:t.getTime())!==(null==(r=e.parsed)?void 0:r.getTime())?h:e}))}),[h]),(0,ua.A)((()=>{s&&p.current.focus()}),[s]),(0,Ne.jsx)(sy,(0,Ft.A)({inputRef:p,fullWidth:!0,className:g.root,type:c?"datetime-local":"date",inputProps:(0,Ft.A)({max:c?"9999-12-31T23:59":"9999-12-31"},a),value:f.formatted,onChange:b},u))}const ly=e=>(0,Ne.jsx)(ay,(0,Ft.A)({},e));function uy(e){let{value:t,columnType:r,rowId:n,field:o}=e;if(!(t instanceof Date))throw new Error([`MUI: \`${r}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${o}".`].join("\n"))}const cy=(0,Ft.A)({},bb,{type:"date",sortComparator:Cm,valueFormatter:function(e){let{value:t,field:r,id:n}=e;return t?(uy({value:t,columnType:"date",rowId:n,field:r}),t.toLocaleDateString()):""},filterOperators:oy(),renderEditCell:ly,pastedValueParser:e=>new Date(e)}),dy=(0,Ft.A)({},bb,{type:"dateTime",sortComparator:Cm,valueFormatter:function(e){let{value:t,field:r,id:n}=e;return t?(uy({value:t,columnType:"dateTime",rowId:n,field:r}),t.toLocaleString()):""},filterOperators:oy(!0),renderEditCell:ly,pastedValueParser:e=>new Date(e)});var py=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(py||{}),hy=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(hy||{}),fy=function(e){return e.Cell="cell",e.Row="row",e}(fy||{}),my=function(e){return e.Edit="edit",e.View="view",e}(my||{}),gy=function(e){return e.Edit="edit",e.View="view",e}(gy||{});function vy(e){return"singleSelect"===(null==e?void 0:e.type)}function by(e,t,r){if(void 0===t)return;const n=t.find((t=>{const n=r(t);return String(n)===String(e)}));return r(n)}const yy=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],xy=["MenuProps"];function wy(e){var t,r,n;const o=tp(),{id:s,value:a,field:l,row:u,colDef:c,hasFocus:d,error:p,onValueChange:h,initialOpen:f=o.editMode===fy.Cell,getOptionLabel:m,getOptionValue:g}=e,v=(0,Lt.A)(e,yy),b=Af(),y=i.useRef(),x=i.useRef(),[w,_]=i.useState(f),S=null!=(r=((null==(t=o.slotProps)?void 0:t.baseSelect)||{}).native)&&r,A=(null==(n=o.slotProps)?void 0:n.baseSelect)||{},{MenuProps:C}=A,k=(0,Lt.A)(A,xy);if((0,ua.A)((()=>{var e;d&&(null==(e=x.current)||e.focus())}),[d]),!vy(c))return null;let E;if(E="function"===typeof(null==c?void 0:c.valueOptions)?null==c?void 0:c.valueOptions({id:s,row:u,field:l}):null==c?void 0:c.valueOptions,!E)return null;const R=g||c.getOptionValue,j=m||c.getOptionLabel;return E&&c?(0,Ne.jsx)(o.slots.baseSelect,(0,Ft.A)({ref:y,inputRef:x,value:a,onChange:async e=>{if(!vy(c)||!E)return;_(!1);const t=by(e.target.value,E,R);h&&await h(e,t),await b.current.setEditCellValue({id:s,field:l,value:t},e)},open:w,onOpen:e=>{(function(e){return!!e.key})(e)&&"Enter"===e.key||_(!0)},MenuProps:(0,Ft.A)({onClose:(e,t)=>{if(o.editMode!==fy.Row){if("backdropClick"===t||vf(e.key)){const t=b.current.getCellParams(s,l);b.current.publishEvent("cellEditStop",(0,Ft.A)({},t,{reason:vf(e.key)?hy.escapeKeyDown:hy.cellFocusOut}))}}else _(!1)}},C),error:p,native:S,fullWidth:!0},v,k,{children:E.map((e=>{var t;const r=R(e);return(0,i.createElement)(o.slots.baseSelectOption,(0,Ft.A)({},(null==(t=o.slotProps)?void 0:t.baseSelectOption)||{},{native:S,key:r,value:r}),j(e))}))})):null}const _y=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],Sy=e=>{let{column:{valueOptions:t,field:r},OptionComponent:n,getOptionLabel:o,getOptionValue:s,isSelectNative:a,baseSelectOptionProps:l}=e;return("function"===typeof t?["",...t({field:r})]:["",...t||[]]).map((e=>{const t=s(e),r=o(e);return(0,i.createElement)(n,(0,Ft.A)({},l,{native:a,key:t,value:t}),r)}))},Ay=(0,Ht.Ay)("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Cy(e){var t,r,n,o,s,a,l,u;const{item:c,applyValue:d,type:p,apiRef:h,focusElementRef:f,getOptionLabel:m,getOptionValue:g,placeholder:v,tabIndex:b,label:y,variant:x="standard",clearButton:w}=e,_=(0,Lt.A)(e,_y),[S,A]=i.useState(null!=(t=c.value)?t:""),C=(0,Vs.A)(),k=(0,Vs.A)(),E=tp(),R=null==(r=null==(n=E.slotProps)||null==(n=n.baseSelect)?void 0:n.native)||r;let j=null;if(c.field){const e=h.current.getColumn(c.field);vy(e)&&(j=e)}const O=g||(null==(o=j)?void 0:o.getOptionValue),T=m||(null==(s=j)?void 0:s.getOptionLabel),I=i.useMemo((()=>{if(j)return"function"===typeof j.valueOptions?j.valueOptions({field:j.field}):j.valueOptions}),[j]),P=i.useCallback((e=>{let t=e.target.value;t=by(t,I,O),A(String(t)),d((0,Ft.A)({},c,{value:t}))}),[I,O,d,c]);if(i.useEffect((()=>{var e;let t;if(void 0!==I){if(t=by(c.value,I,O),t!==c.value)return void d((0,Ft.A)({},c,{value:t}))}else t=c.value;t=null!=(e=t)?e:"",A(String(t))}),[c,I,d,O]),!vy(j))return null;if(!vy(j))return null;const N=null!=y?y:h.current.getLocaleText("filterPanelInputLabel");return(0,Ne.jsxs)(Ay,{children:[(0,Ne.jsxs)(E.slots.baseFormControl,{children:[(0,Ne.jsx)(E.slots.baseInputLabel,(0,Ft.A)({},null==(a=E.slotProps)?void 0:a.baseInputLabel,{id:k,htmlFor:C,shrink:!0,variant:x,children:N})),(0,Ne.jsx)(E.slots.baseSelect,(0,Ft.A)({id:C,label:N,labelId:k,value:S,onChange:P,variant:x,type:p||"text",inputProps:{tabIndex:b,ref:f,placeholder:null!=v?v:h.current.getLocaleText("filterPanelInputPlaceholder")},native:R,notched:"outlined"===x||void 0},_,null==(l=E.slotProps)?void 0:l.baseSelect,{children:Sy({column:j,OptionComponent:E.slots.baseSelectOption,getOptionLabel:T,getOptionValue:O,isSelectNative:R,baseSelectOptionProps:null==(u=E.slotProps)?void 0:u.baseSelectOption})}))]}),w]})}const ky=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],Ey=Pm();function Ry(e){var t,r;const{item:n,applyValue:o,apiRef:s,focusElementRef:a,color:l,error:u,helperText:c,size:d,variant:p="standard",getOptionLabel:h,getOptionValue:f}=e,m=(0,Lt.A)(e,ky),g={color:l,error:u,helperText:c,size:d,variant:p},v=(0,Vs.A)(),b=tp();let y=null;if(n.field){const e=s.current.getColumn(n.field);vy(e)&&(y=e)}const x=f||(null==(t=y)?void 0:t.getOptionValue),w=h||(null==(r=y)?void 0:r.getOptionLabel),_=i.useCallback(((e,t)=>x(e)===x(t)),[x]),S=i.useMemo((()=>{var e;return null!=(e=y)&&e.valueOptions?"function"===typeof y.valueOptions?y.valueOptions({field:y.field}):y.valueOptions:[]}),[y]),A=i.useMemo((()=>null==S?void 0:S.map(x)),[S,x]),C=i.useMemo((()=>{if(!Array.isArray(n.value))return[];if(void 0!==S){return n.value.map((e=>null==A?void 0:A.findIndex((t=>t===e)))).filter((e=>e>=0)).map((e=>S[e]))}return n.value}),[n.value,S,A]);i.useEffect((()=>{Array.isArray(n.value)&&C.length===n.value.length||o((0,Ft.A)({},n,{value:C.map(x)}))}),[n,C,o,x]);const k=i.useCallback(((e,t)=>{o((0,Ft.A)({},n,{value:t.map(x)}))}),[o,n,x]);return(0,Ne.jsx)(qv,(0,Ft.A)({multiple:!0,options:S,isOptionEqualToValue:_,filterOptions:Ey,id:v,value:C,onChange:k,getOptionLabel:w,renderTags:(e,t)=>e.map(((e,r)=>(0,Ne.jsx)(b.slots.baseChip,(0,Ft.A)({variant:"outlined",size:"small",label:w(e)},t({index:r}))))),renderInput:e=>{var t;return(0,Ne.jsx)(b.slots.baseTextField,(0,Ft.A)({},e,{label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,Ft.A)({},e.InputLabelProps,{shrink:!0}),inputRef:a,type:"singleSelect"},g,null==(t=b.slotProps)?void 0:t.baseTextField))}},m))}const jy=e=>null!=e&&zh(e)?e.value:e,Oy=(0,Ft.A)({},bb,{type:"singleSelect",getOptionLabel:e=>zh(e)?e.label:String(e),getOptionValue:e=>zh(e)?e.value:e,valueFormatter(e){const{id:t,field:r,value:n,api:o}=e,i=e.api.getColumn(r);if(!vy(i))return"";let s;if(s="function"===typeof i.valueOptions?i.valueOptions({id:t,row:t?o.getRow(t):null,field:r}):i.valueOptions,null==n)return"";if(!s)return n;if("object"!==typeof s[0])return i.getOptionLabel(n);const a=s.find((e=>i.getOptionValue(e)===n));return a?i.getOptionLabel(a):""},renderEditCell:e=>(0,Ne.jsx)(wy,(0,Ft.A)({},e)),filterOperators:Yv([{value:"is",getApplyFilterFnV7:e=>null==e.value||""===e.value?null:t=>jy(t)===jy(e.value),InputComponent:Cy},{value:"not",getApplyFilterFnV7:e=>null==e.value||""===e.value?null:t=>jy(t)!==jy(e.value),InputComponent:Cy},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(jy);return e=>t.includes(jy(e))},InputComponent:Ry}]),pastedValueParser:(e,t)=>{const r=t.colDef,n=r.valueOptions,o="function"===typeof n?n({field:r.field}):n||[],i=r.getOptionValue;if(o.find((t=>i(t)===e)))return e}});var Ty=r(2427);const Iy=i.createContext({});function Py(e){return(0,qt.Ay)("MuiList",e)}(0,Vt.A)("MuiList",["root","padding","dense","subheader"]);const Ny=["children","className","component","dense","disablePadding","subheader"],My=(0,Ht.Ay)("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]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),Dy=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiList"}),{children:n,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u}=r,c=(0,Lt.A)(r,Ny),d=i.useMemo((()=>({dense:a})),[a]),p=(0,Ft.A)({},r,{component:s,dense:a,disablePadding:l}),h=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e,i={root:["root",!r&&"padding",n&&"dense",o&&"subheader"]};return(0,$t.A)(i,Py,t)})(p);return(0,Ne.jsx)(Iy.Provider,{value:d,children:(0,Ne.jsxs)(My,(0,Ft.A)({as:s,className:(0,zt.A)(h.root,o),ref:t,ownerState:p},c,{children:[u,n]}))})})),Ly=Sa,Fy=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function zy(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function By(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function $y(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 Hy(e,t,r,n,o,i){let s=!1,a=o(e,t,!!t&&r);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&$y(a,i)&&!t)return a.focus(),!0;a=o(e,a,r)}return!1}const Uy=i.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=(0,Lt.A)(e,Fy),h=i.useRef(null),f=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,em.A)((()=>{n&&h.current.focus()}),[n]),i.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:r}=t;const n=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&n){const t=`${Ly((0,Ty.A)(e))}px`;h.current.style["rtl"===r?"paddingLeft":"paddingRight"]=t,h.current.style.width=`calc(100% + ${t})`}return h.current}})),[]);const m=(0,ii.A)(h,t);let g=-1;i.Children.forEach(s,((e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))):g===t&&(g+=1,g>=s.length&&(g=-1))}));const v=i.Children.map(s,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return(0,Ne.jsx)(Dy,(0,Ft.A)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=h.current,r=e.key,n=(0,Ty.A)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Hy(t,n,u,l,zy);else if("ArrowUp"===r)e.preventDefault(),Hy(t,n,u,l,By);else if("Home"===r)e.preventDefault(),Hy(t,null,u,l,zy);else if("End"===r)e.preventDefault(),Hy(t,null,u,l,By);else if(1===r.length){const o=f.current,i=r.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);const a=n&&!o.repeating&&$y(n,o);o.previousKeyMatched&&(a||Hy(t,n,!1,l,zy,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:v}))})),Wy=["open","target","onClose","children","position","className","onExited"],Vy=(0,Ht.Ay)(sv,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})((e=>{let{theme:t}=e;return{zIndex:t.zIndex.modal,[`& .${Dd.menuList}`]:{outline:0}}})),qy={"bottom-start":"top left","bottom-end":"top right"};function Gy(e){var t;const{open:r,target:n,onClose:o,children:s,position:a,className:l,onExited:u}=e,c=(0,Lt.A)(e,Wy),d=Af(),p=tp(),h=(e=>{const{classes:t}=e;return(0,$t.A)({root:["menu"]},Md,t)})(p),f=i.useRef(null);(0,ua.A)((()=>{var e,t;r?f.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(null==(e=f.current)||null==(t=e.focus)||t.call(e),f.current=null)}),[r]),i.useEffect((()=>{const e=r?"menuOpen":"menuClose";d.current.publishEvent(e,{target:n})}),[d,r,n]);const m=e=>{e.target&&(n===e.target||null!=n&&n.contains(e.target))||o(e)};return(0,Ne.jsx)(Vy,(0,Ft.A)({as:p.slots.basePopper,className:Cd(l,h.root),ownerState:p,open:r,anchorEl:n,transition:!0,placement:a},c,null==(t=p.slotProps)?void 0:t.basePopper,{children:e=>{let{TransitionProps:t,placement:r}=e;return(0,Ne.jsx)(Sl,{onClickAway:m,mouseEvent:"onMouseDown",children:(0,Ne.jsx)(jl,(0,Ft.A)({},t,{style:{transformOrigin:qy[r]},onExited:(n=null==t?void 0:t.onExited,e=>{n&&n(),u&&u(e)}),children:(0,Ne.jsx)(Ba,{children:s})}))});var n}}))}const Qy=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"];function Ky(e){var t;const{colDef:r,id:n,hasFocus:o,tabIndex:s,position:a="bottom-end",focusElementRef:l}=e,u=(0,Lt.A)(e,Qy),[c,d]=i.useState(-1),[p,h]=i.useState(!1),f=Af(),m=i.useRef(null),g=i.useRef(null),v=i.useRef(!1),b=i.useRef({}),y=br(),x=(0,Vs.A)(),w=(0,Vs.A)(),_=tp();if(!(e=>"function"===typeof e.getActions)(r))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const S=r.getActions(f.current.getRowParams(n)),A=S.filter((e=>!e.props.showInMenu)),C=S.filter((e=>e.props.showInMenu)),k=A.length+(C.length?1:0);i.useLayoutEffect((()=>{o||Object.entries(b.current).forEach((e=>{let[t,r]=e;null==r||r.stop({},(()=>{delete b.current[t]}))}))}),[o]),i.useEffect((()=>{if(c<0||!m.current)return;if(c>=m.current.children.length)return;m.current.children[c].focus({preventScroll:!0})}),[c]),i.useEffect((()=>{o||(d(-1),v.current=!1)}),[o]),i.useImperativeHandle(l,(()=>({focus(){if(!v.current){const e=S.findIndex((e=>!e.props.disabled));d(e)}}})),[S]),i.useEffect((()=>{c>=k&&d(k-1)}),[c,k]);const E=()=>{h(!1)},R=e=>t=>{b.current[e]=t},j=(e,t)=>r=>{d(e),v.current=!0,t&&t(r)};return(0,Ne.jsxs)("div",(0,Ft.A)({role:"menu",ref:m,tabIndex:-1,className:Dd.actionsCell,onKeyDown:e=>{if(k<=1)return;const t=(e,r)=>{var n;if(e<0||e>S.length)return e;const o=("left"===r?-1:1)*("rtl"===y.direction?-1:1);return null!=(n=S[e+o])&&n.props.disabled?t(e+o,r):e+o};let r=c;"ArrowRight"===e.key?r=t(c,"right"):"ArrowLeft"===e.key&&(r=t(c,"left")),r<0||r>=k||r!==c&&(e.preventDefault(),e.stopPropagation(),d(r))}},u,{children:[A.map(((e,t)=>i.cloneElement(e,{key:t,touchRippleRef:R(t),onClick:j(t,e.props.onClick),tabIndex:c===t?s:-1}))),C.length>0&&w&&(0,Ne.jsx)(_.slots.baseIconButton,(0,Ft.A)({ref:g,id:w,"aria-label":f.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?x:void 0,role:"menuitem",size:"small",onClick:()=>{h(!0),d(k-1),v.current=!0},touchRippleRef:R(w),tabIndex:c===A.length?s:-1},null==(t=_.slotProps)?void 0:t.baseIconButton,{children:(0,Ne.jsx)(_.slots.moreActionsIcon,{fontSize:"small"})})),C.length>0&&(0,Ne.jsx)(Gy,{open:p,target:g.current,position:a,onClose:E,children:(0,Ne.jsx)(Uy,{id:x,className:Dd.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Escape"].includes(e.key)&&E()},"aria-labelledby":w,variant:"menu",autoFocusItem:!0,children:C.map(((e,t)=>i.cloneElement(e,{key:t,closeMenu:E})))})})]}))}const Jy="actions",Xy=(0,Ft.A)({},bb,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>(0,Ne.jsx)(Ky,(0,Ft.A)({},e)),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),Yy="__default__",Zy=["maxWidth","minWidth","width","flex"];const ex=(e,t)=>{const r={};let n=0,o=0;const i=[];e.orderedFields.forEach((t=>{const s=(0,Ft.A)({},e.lookup[t]);if(!1===e.columnVisibilityModel[t])s.computedWidth=0;else{let e;s.flex&&s.flex>0?(n+=s.flex,e=0,i.push(s)):e=$h(s.width||bb.width,s.minWidth||bb.minWidth,s.maxWidth||bb.maxWidth),o+=e,s.computedWidth=e}r[t]=s}));const s=Math.max(t-o,0);if(n>0&&t>0){const e=function(e){let{initialFreeSpace:t,totalFlexUnits:r,flexColumns:n}=e;const o=new Set(n.map((e=>e.field))),i={all:{},frozenFields:[],freeze:e=>{const t=i.all[e];t&&!0!==t.frozen&&(i.all[e].frozen=!0,i.frozenFields.push(e))}};return function e(){if(i.frozenFields.length===o.size)return;const s={min:{},max:{}};let a=t,l=r,u=0;i.frozenFields.forEach((e=>{a-=i.all[e].computedWidth,l-=i.all[e].flex}));for(let t=0;t<n.length;t+=1){const e=n[t];if(i.all[e.field]&&!0===i.all[e.field].frozen)continue;let r=a/l*e.flex;r<e.minWidth?(u+=e.minWidth-r,r=e.minWidth,s.min[e.field]=!0):r>e.maxWidth&&(u+=e.maxWidth-r,r=e.maxWidth,s.max[e.field]=!0),i.all[e.field]={frozen:!1,computedWidth:r,flex:e.flex}}u<0?Object.keys(s.max).forEach((e=>{i.freeze(e)})):u>0?Object.keys(s.min).forEach((e=>{i.freeze(e)})):n.forEach((e=>{let{field:t}=e;i.freeze(t)})),e()}(),i.all}({initialFreeSpace:s,totalFlexUnits:n,flexColumns:i});Object.keys(e).forEach((t=>{r[t].computedWidth=e[t].computedWidth}))}return(0,Ft.A)({},e,{lookup:r})};function tx(e,t){let r=e[Yy];return t&&e[t]&&(r=e[t]),r}const rx=e=>{let{apiRef:t,columnsToUpsert:r,initialState:n,columnTypes:o,columnVisibilityModel:i=yp(t),keepOnlyColumnsToUpsert:s=!1}=e;var a,l,u;const c=!t.current.state.columns;let d;if(c)d={orderedFields:[],lookup:{},columnVisibilityModel:i};else{const e=mp(t.current.state);d={orderedFields:s?[]:[...e.orderedFields],lookup:(0,Ft.A)({},e.lookup),columnVisibilityModel:i}}let p={};s&&!c&&(p=Object.keys(d.lookup).reduce(((e,t)=>(0,Ft.A)({},e,{[t]:!1})),{}));const h={};r.forEach((e=>{const{field:t}=e;h[t]=!0,p[t]=!0;let r=d.lookup[t];null==r?(r=(0,Ft.A)({},tx(o,e.type),{field:t,hasBeenResized:!1}),d.orderedFields.push(t)):s&&d.orderedFields.push(t),r&&r.type!==e.type&&(r=(0,Ft.A)({},tx(o,e.type),{field:t}));let n=r.hasBeenResized;Zy.forEach((t=>{void 0!==e[t]&&(n=!0,-1===e[t]&&(e[t]=1/0))})),d.lookup[t]=(0,Ft.A)({},r,e,{hasBeenResized:n})})),s&&!c&&Object.keys(d.lookup).forEach((e=>{p[e]||delete d.lookup[e]}));const f=((e,t)=>{if(!t)return e;const{orderedFields:r=[],dimensions:n={}}=t,o=Object.keys(n);if(0===o.length&&0===r.length)return e;const i={},s=[];for(let u=0;u<r.length;u+=1){const t=r[u];e.lookup[t]&&(i[t]=!0,s.push(t))}const a=0===s.length?e.orderedFields:[...s,...e.orderedFields.filter((e=>!i[e]))],l=(0,Ft.A)({},e.lookup);for(let u=0;u<o.length;u+=1){const e=o[u],t=(0,Ft.A)({},l[e],{hasBeenResized:!0});Object.entries(n[e]).forEach((e=>{let[r,n]=e;t[r]=-1===n?1/0:n})),l[e]=t}return(0,Ft.A)({},e,{orderedFields:a,lookup:l})})(t.current.unstable_applyPipeProcessors("hydrateColumns",d),n);return ex(f,null!=(a=null==(l=(u=t.current).getRootDimensions)||null==(l=l.call(u))?void 0:l.viewportInnerSize.width)?a:0)},nx=e=>t=>(0,Ft.A)({},t,{columns:e});function ox(e){let{firstColumnToRender:t,apiRef:r,firstRowToRender:n,lastRowToRender:o,visibleRows:i}=e,s=t;for(let a=n;a<o;a+=1){if(i[a]){const e=i[a].id,n=r.current.unstable_getCellColSpanInfo(e,t);n&&n.spannedByColSpan&&(s=n.leftVisibleCellIndex)}}return s}function ix(e){let{firstColumnIndex:t,minColumnIndex:r,columnBuffer:n,firstRowToRender:o,lastRowToRender:i,apiRef:s,visibleRows:a}=e;return ox({firstColumnToRender:Math.max(t-n,r),apiRef:s,firstRowToRender:o,lastRowToRender:i,visibleRows:a})}function sx(e,t){const r=fp(e),n=Op(e);return Math.floor(t*r)*((null!=n?n:0)+1)}var ax=function(e){return e.filters="filters",e.columns="columns",e}(ax||{});const lx={string:bb,number:Yb,date:cy,dateTime:dy,boolean:Lb,singleSelect:Oy,[Jy]:Xy,[Yy]:bb},ux=(e,t,r)=>{var n,o,i,s;const a=rx({apiRef:r,columnTypes:lx,columnsToUpsert:t.columns,initialState:null==(n=t.initialState)?void 0:n.columns,columnVisibilityModel:null!=(o=null!=(i=t.columnVisibilityModel)?i:null==(s=t.initialState)||null==(s=s.columns)?void 0:s.columnVisibilityModel)?o:{},keepOnlyColumnsToUpsert:!0});return(0,Ft.A)({},e,{columns:a})};const cx={compact:.7,comfortable:1.3,standard:1},dx=(e,t)=>(0,Ft.A)({},e,{density:{value:t.density,factor:cx[t.density]}});const px=e=>{let{apiRef:t,options:r}=e;const n=bp(t);if(r.fields)return r.fields.reduce(((e,t)=>{const r=n.find((e=>e.field===t));return r&&e.push(r),e}),[]);return(r.allColumns?n:xp(t)).filter((e=>!e.disableExport))},hx=e=>{let{apiRef:t}=e;var r,n;const o=yh(t),i=Lp(t),s=t.current.getSelectedRows(),a=o.filter((e=>"footer"!==i[e].type)),l=Hp(t),u=(null==l||null==(r=l.top)?void 0:r.map((e=>e.id)))||[],c=(null==l||null==(n=l.bottom)?void 0:n.map((e=>e.id)))||[];return a.unshift(...u),a.push(...c),s.size>0?a.filter((e=>s.has(e))):a};function fx(e){return(0,qt.Ay)("MuiDivider",e)}const mx=(0,Vt.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function gx(e){return(0,qt.Ay)("MuiListItemIcon",e)}const vx=(0,Vt.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);function bx(e){return(0,qt.Ay)("MuiListItemText",e)}const yx=(0,Vt.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function xx(e){return(0,qt.Ay)("MuiMenuItem",e)}const wx=(0,Vt.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_x=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Sx=(0,Ht.Ay)(Hi,{shouldForwardProp:e=>(0,dl.A)(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]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wx.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${wx.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${wx.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${wx.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${wx.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${mx.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${mx.inset}`]:{marginLeft:52},[`& .${yx.root}`]:{marginTop:0,marginBottom:0},[`& .${yx.inset}`]:{paddingLeft:36},[`& .${vx.root}`]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,Ft.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${vx.root} svg`]:{fontSize:"1.25rem"}}))})),Ax=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,h=(0,Lt.A)(r,_x),f=i.useContext(Iy),m=i.useMemo((()=>({dense:s||f.dense||!1,disableGutters:l})),[f.dense,s,l]),g=i.useRef(null);(0,em.A)((()=>{n&&g.current&&g.current.focus()}),[n]);const v=(0,Ft.A)({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:s}=e,a={root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},l=(0,$t.A)(a,xx,s);return(0,Ft.A)({},s,l)})(r),y=(0,ii.A)(g,t);let x;return r.disabled||(x=void 0!==d?d:-1),(0,Ne.jsx)(Iy.Provider,{value:m,children:(0,Ne.jsx)(Sx,(0,Ft.A)({ref:y,role:c,tabIndex:x,component:o,focusVisibleClassName:(0,zt.A)(b.focusVisible,u),className:(0,zt.A)(b.root,p)},h,{ownerState:v,classes:b}))})})),Cx=["children","onClick"],kx=i.forwardRef((function(e,t){var r;const{children:n,onClick:o}=e,s=(0,Lt.A)(e,Cx),a=Af(),l=tp(),u=(0,Vs.A)(),c=(0,Vs.A)(),[d,p]=i.useState(!1),h=i.useRef(null),f=(0,qs.A)(t,h),m=()=>p(!1);return null==n?null:(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)(l.slots.baseButton,(0,Ft.A)({ref:f,size:"small",startIcon:(0,Ne.jsx)(l.slots.exportIcon,{}),"aria-expanded":d,"aria-label":a.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":d?c:void 0,id:u},s,{onClick:e=>{p((e=>!e)),null==o||o(e)}},null==(r=l.slotProps)?void 0:r.baseButton,{children:a.current.getLocaleText("toolbarExport")})),(0,Ne.jsx)(Gy,{open:d,target:h.current,onClose:m,position:"bottom-start",children:(0,Ne.jsx)(Uy,{id:c,className:Dd.menuList,"aria-labelledby":u,onKeyDown:e=>{yf(e.key)&&e.preventDefault(),Sf(e.key)&&m()},autoFocusItem:d,children:i.Children.map(n,(e=>i.isValidElement(e)?i.cloneElement(e,{hideMenu:m}):e))})})]})})),Ex=["hideMenu","options"],Rx=["hideMenu","options"],jx=["csvOptions","printOptions","excelOptions"];function Ox(e){const t=Af(),{hideMenu:r,options:n}=e,o=(0,Lt.A)(e,Ex);return(0,Ne.jsx)(Ax,(0,Ft.A)({onClick:()=>{t.current.exportDataAsCsv(n),null==r||r()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function Tx(e){const t=Af(),{hideMenu:r,options:n}=e,o=(0,Lt.A)(e,Rx);return(0,Ne.jsx)(Ax,(0,Ft.A)({onClick:()=>{t.current.exportDataAsPrint(n),null==r||r()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const Ix=i.forwardRef((function(e,t){const{csvOptions:r={},printOptions:n={},excelOptions:o}=e,s=(0,Lt.A)(e,jx),a=Af().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:o,csvOptions:r,printOptions:n}).sort(((e,t)=>e.componentName>t.componentName?1:-1));return 0===a.length?null:(0,Ne.jsx)(kx,(0,Ft.A)({},s,{ref:t,children:a.map(((e,t)=>i.cloneElement(e.component,{key:t})))}))})),Px=(e,t)=>{const r=gf(e,"useGridCsvExport"),n=t.unstable_ignoreValueFormatterDuringExport,o=("object"===typeof n?null==n?void 0:n.csvExport:n)||!1,s=i.useCallback((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n,i,s,a,l;r.debug("Get data as CSV");return Ub({columns:px({apiRef:e,options:t}),rowIds:(null!=(n=t.getRowsToExport)?n:hx)({apiRef:e}),csvOptions:{delimiter:t.delimiter||",",shouldAppendQuotes:null==(i=t.shouldAppendQuotes)||i,includeHeaders:null==(s=t.includeHeaders)||s,includeColumnGroupsHeaders:null==(a=t.includeColumnGroupsHeaders)||a,escapeFormulas:null==(l=t.escapeFormulas)||l},ignoreValueFormatter:o,apiRef:e})}),[r,e,o]),a=i.useCallback((e=>{r.debug("Export data as CSV");const t=s(e);!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv";const r=`${arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title||"untitled"}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),n=document.createElement("a");return n.href=t,n.download=r,n.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[r,s]);Vh(e,{getDataAsCsv:s,exportDataAsCsv:a},"public");const l=i.useCallback(((e,t)=>{var r;return null!=(r=t.csvOptions)&&r.disableToolbarButton?e:[...e,{component:(0,Ne.jsx)(Ox,{options:t.csvOptions}),componentName:"csvExport"}]}),[]);Qb(e,"exportMenu",l)},Nx=e=>e.rowsMeta,Mx=(e,t,r)=>{var n;let o=e.paginationModel;const i=e.rowCount,s=null!=(n=null==r?void 0:r.pageSize)?n:o.pageSize,a=Tf(i,s);!r||(null==r?void 0:r.page)===o.page&&(null==r?void 0:r.pageSize)===o.pageSize||(o=r);const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 0===t?e:Math.max(Math.min(e,t-1),0)}(o.page,a);return l!==o.page&&(o=(0,Ft.A)({},o,{page:l})),Pf(o.pageSize,t),o};const Dx=(e,t)=>{const r=gf(e,"useGridPrintExport"),n=i.useRef(null),o=i.useRef(null),s=i.useRef({}),a=i.useRef([]);i.useEffect((()=>{n.current=(0,oa.A)(e.current.rootElementRef.current)}),[e]);const l=i.useCallback(((t,r,n)=>new Promise((o=>{const i=px({apiRef:e,options:{fields:t,allColumns:r}}).map((e=>e.field)),s=bp(e),a={};s.forEach((e=>{a[e.field]=i.includes(e.field)})),n&&(a[zb.field]=!0),e.current.setColumnVisibilityModel(a),o()}))),[e]),u=i.useCallback((t=>{const r=t({apiRef:e}).map((t=>e.current.getRow(t)));e.current.setRows(r)}),[e]),c=i.useCallback(((r,o)=>{var i,s;const a=(0,Ft.A)({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},o),l=r.contentDocument;if(!l)return;const u=Nx(e.current.state),c=e.current.rootElementRef.current,d=c.cloneNode(!0);d.querySelector(`.${Dd.main}`).style.overflow="visible",d.style.contain="size";d.querySelector(`.${Dd.columnHeaders}`).querySelector(`.${Dd.columnHeadersInner}`).style.width="100%";let p=(null==(i=c.querySelector(`.${Dd.toolbarContainer}`))?void 0:i.offsetHeight)||0,h=(null==(s=c.querySelector(`.${Dd.footerContainer}`))?void 0:s.offsetHeight)||0;var f,m;a.hideToolbar&&(null==(f=d.querySelector(`.${Dd.toolbarContainer}`))||f.remove(),p=0);a.hideFooter&&(null==(m=d.querySelector(`.${Dd.footerContainer}`))||m.remove(),h=0);const g=u.currentPageTotalHeight+sx(e,t.columnHeaderHeight)+p+h;if(d.style.height=`${g}px`,d.style.boxSizing="content-box",null!=o&&o.getRowsToExport){const e=d.querySelector(`.${Dd.footerContainer}`);e.style.position="absolute",e.style.width="100%",e.style.top=g-h+"px"}const v=document.createElement("div");v.appendChild(d),l.body.innerHTML=v.innerHTML;const b="function"===typeof a.pageStyle?a.pageStyle():a.pageStyle;if("string"===typeof b){const e=l.createElement("style");e.appendChild(l.createTextNode(b)),l.head.appendChild(e)}a.bodyClassName&&l.body.classList.add(...a.bodyClassName.split(" "));const y=[];if(a.copyStyles){const e=c.getRootNode(),t=("ShadowRoot"===e.constructor.name?e:n.current).querySelectorAll("style, link[rel='stylesheet']");for(let r=0;r<t.length;r+=1){const e=t[r];if("STYLE"===e.tagName){const t=l.createElement(e.tagName),r=e.sheet;if(r){let e="";for(let t=0;t<r.cssRules.length;t+=1)"string"===typeof r.cssRules[t].cssText&&(e+=`${r.cssRules[t].cssText}\r\n`);t.appendChild(l.createTextNode(e)),l.head.appendChild(t)}}else if(e.getAttribute("href")){const t=l.createElement(e.tagName);for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes[r];n&&t.setAttribute(n.nodeName,n.nodeValue||"")}y.push(new Promise((e=>{t.addEventListener("load",(()=>e()))}))),l.head.appendChild(t)}}}Promise.all(y).then((()=>{r.contentWindow.print()}))}),[e,n,t.columnHeaderHeight]),d=i.useCallback((t=>{var r;n.current.body.removeChild(t),e.current.restoreState(o.current||{}),null!=(r=o.current)&&null!=(r=r.columns)&&r.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,s.current={},a.current=[]}),[e]),p=i.useCallback((async i=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),s.current=yp(e);const p=Mp(e);if(a.current=$p(e).map((e=>p[e])),t.pagination){const t={page:0,pageSize:wh(e)};e.current.setState((e=>(0,Ft.A)({},e,{pagination:(0,Ft.A)({},e.pagination,{paginationModel:Mx(e.pagination,"DataGridPro",t)})}))),e.current.forceUpdate()}await l(null==i?void 0:i.fields,null==i?void 0:i.allColumns,null==i?void 0:i.includeCheckboxes),null!=i&&i.getRowsToExport&&u(i.getRowsToExport),e.current.unstable_setVirtualization(!1),await new Promise((e=>{requestAnimationFrame((()=>{e()}))}));const h=function(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}(null==i?void 0:i.fileName);h.onload=()=>{c(h,i);h.contentWindow.matchMedia("print").addEventListener("change",(e=>{!1===e.matches&&d(h)}))},n.current.body.appendChild(h)}),[t,r,e,c,d,l,u]);Vh(e,{exportDataAsPrint:p},"public");const h=i.useCallback(((e,t)=>{var r;return null!=(r=t.printOptions)&&r.disableToolbarButton?e:[...e,{component:(0,Ne.jsx)(Tx,{options:t.printOptions}),componentName:"printExport"}]}),[]);Qb(e,"exportMenu",h)},Lx=(e,t,r,n)=>{const o=i.useCallback((()=>{e.current.registerStrategyProcessor(t,r,n)}),[e,n,r,t]);Gb((()=>{o()}));const s=i.useRef(!0);i.useEffect((()=>{s.current?s.current=!1:o()}),[o])},Fx=(e,t,r)=>{var n,o,i;const s=null!=(n=null!=(o=t.filterModel)?o:null==(i=t.initialState)||null==(i=i.filter)?void 0:i.filterModel)?n:tb();return(0,Ft.A)({},e,{filter:{filterModel:lb(s,t.disableMultipleColumnsFiltering,r),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},zx=e=>e.filteredRowsLookup;function Bx(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function $x(){return op(Object.values)}const Hx=(e,t)=>{let r,n;return t.pagination&&"client"===t.paginationMode?(n=Bf(e),r=$f(e)):(r=gh(e),n=0===r.length?null:{firstRowIndex:0,lastRowIndex:r.length-1}),{rows:r,range:n}},Ux=(e,t)=>{const r=Hx(e,t);return i.useMemo((()=>({rows:r.rows,range:r.range})),[r.rows,r.range])},Wx=e=>(0,Ft.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),Vx="__detail_panel_toggle__",qx=e=>e.headerFiltering,Gx=cp(qx,(e=>e.editing)),Qx=cp(qx,(e=>e.menuOpen));function Kx(e,t){return e.closest(`.${t}`)}function Jx(e){return e.replace(/["\\]/g,"\\$&")}function Xx(e){return`.${Dd.row}[data-id="${Jx(String(e))}"]`}function Yx(e){return 1===e.target.nodeType&&!e.currentTarget.contains(e.target)}const Zx=e=>{let{currentColIndex:t,firstColIndex:r,lastColIndex:n,direction:o}=e;if("rtl"===o){if(t<n)return t+1}else if("ltr"===o&&t>r)return t-1;return null},ew=e=>{let{currentColIndex:t,firstColIndex:r,lastColIndex:n,direction:o}=e;if("rtl"===o){if(t>r)return t-1}else if("ltr"===o&&t<n)return t+1;return null},tw=(e,t)=>{const r=gf(e,"useGridKeyboardNavigation"),n=Ux(e,t).rows,o=br(),s=i.useMemo((()=>function(e,t){const r=Hp(e)||{};return[...r.top||[],...t,...r.bottom||[]]}(e,n)),[e,n]),a="DataGrid"!==t.signature&&t.unstable_headerFilters,l=i.useCallback((function(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left";const i=gh(e),s=e.current.unstable_getCellColSpanInfo(n,t);s&&s.spannedByColSpan&&("left"===o?t=s.leftVisibleCellIndex:"right"===o&&(t=s.rightVisibleCellIndex));const a=i.findIndex((e=>e.id===n));r.debug(`Navigating to cell row ${a}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:a});const l=e.current.getVisibleColumns()[t].field;e.current.setCellFocus(n,l)}),[e,r]),u=i.useCallback(((t,n)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(o,n)}),[e,r]),c=i.useCallback(((t,n)=>{r.debug(`Navigating to header filter col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFilterFocus(o,n)}),[e,r]),d=i.useCallback(((t,n,o)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const{field:i}=e.current.getVisibleColumns()[t];e.current.setColumnGroupHeaderFocus(i,n,o)}),[e,r]),p=i.useCallback((e=>{var t;return null==(t=s[e])?void 0:t.id}),[s]),h=i.useCallback(((t,r)=>{const n=r.currentTarget.querySelector(`.${Dd.columnHeaderTitleContainerContent}`);if(!!n&&n.contains(r.target)&&t.field!==zb.field)return;if(!e.current.getRootDimensions())return;const i=e.current.getViewportPageSize(),h=t.field?e.current.getColumnIndex(t.field):0,f=s.length>0?0:null,m=s.length-1,g=xp(e).length-1,v=Op(e);let b=!0;switch(r.key){case"ArrowDown":null!==f&&(a?c(h,r):l(h,p(f)));break;case"ArrowRight":{const e=ew({currentColIndex:h,firstColIndex:0,lastColIndex:g,direction:o.direction});null!==e&&u(e,r);break}case"ArrowLeft":{const e=Zx({currentColIndex:h,firstColIndex:0,lastColIndex:g,direction:o.direction});null!==e&&u(e,r);break}case"ArrowUp":v>0&&d(h,v-1,r);break;case"PageDown":null!==f&&null!==m&&l(h,p(Math.min(f+i,m)));break;case"Home":u(0,r);break;case"End":u(g,r);break;case"Enter":(r.ctrlKey||r.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:b=!1}b&&r.preventDefault()}),[e,s.length,a,c,l,p,o.direction,u,d]),f=i.useCallback(((t,r)=>{if(!e.current.getRootDimensions())return;const n=Gx(e)===t.field,i=Qx(e)===t.field;if(n||i||!_f(r.key))return;const a=e.current.getViewportPageSize(),d=t.field?e.current.getColumnIndex(t.field):0,h=s.length-1,f=xp(e).length-1;let m=!0;switch(r.key){case"ArrowDown":{const e=p(0);null!=e&&l(d,e);break}case"ArrowRight":{const e=ew({currentColIndex:d,firstColIndex:0,lastColIndex:f,direction:o.direction});null!==e&&c(e,r);break}case"ArrowLeft":{const n=Zx({currentColIndex:d,firstColIndex:0,lastColIndex:f,direction:o.direction});null!==n?c(n,r):e.current.setColumnHeaderFilterFocus(t.field,r);break}case"ArrowUp":u(d,r);break;case"PageDown":null!==h&&l(d,p(Math.min(0+a,h)));break;case"Home":c(0,r);break;case"End":c(f,r);break;case" ":break;default:m=!1}m&&r.preventDefault()}),[e,s.length,c,o.direction,u,l,p]),m=i.useCallback(((t,r)=>{if(!e.current.getRootDimensions())return;const n=Rh(e);if(null===n)return;const{field:o,depth:i}=n,{fields:a,depth:c,maxDepth:h}=t,f=e.current.getViewportPageSize(),m=e.current.getColumnIndex(o),g=o?e.current.getColumnIndex(o):0,v=s.length-1,b=xp(e).length-1;let y=!0;switch(r.key){case"ArrowDown":c===h-1?u(m,r):d(m,i+1,r);break;case"ArrowUp":c>0&&d(m,i-1,r);break;case"ArrowRight":{const e=a.length-a.indexOf(o)-1;m+e+1<=b&&d(m+e+1,i,r);break}case"ArrowLeft":{const e=a.indexOf(o);m-e-1>=0&&d(m-e-1,i,r);break}case"PageDown":null!==v&&l(g,p(Math.min(0+f,v)));break;case"Home":d(0,i,r);break;case"End":d(b,i,r);break;case" ":break;default:y=!1}y&&r.preventDefault()}),[e,s.length,u,d,l,p]),g=i.useCallback(((t,r)=>{if(Yx(r))return;const n=e.current.getCellParams(t.id,t.field);if(n.cellMode===my.Edit||!_f(r.key))return;if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:r,cell:n}))return;const i=e.current.getRootDimensions();if(0===s.length||!i)return;const d=o.direction,h=e.current.getViewportPageSize(),f=t.field?e.current.getColumnIndex(t.field):0,m=s.findIndex((e=>e.id===t.id)),g=s.length-1,v=xp(e).length-1;let b=!0;switch(r.key){case"ArrowDown":m<g&&l(f,p(m+1));break;case"ArrowUp":m>0?l(f,p(m-1)):a?c(f,r):u(f,r);break;case"ArrowRight":{const e=ew({currentColIndex:f,firstColIndex:0,lastColIndex:v,direction:d});null!==e&&l(e,p(m),"rtl"===d?"left":"right");break}case"ArrowLeft":{const e=Zx({currentColIndex:f,firstColIndex:0,lastColIndex:v,direction:d});null!==e&&l(e,p(m),"rtl"===d?"right":"left");break}case"Tab":r.shiftKey&&f>0?l(f-1,p(m),"left"):!r.shiftKey&&f<v&&l(f+1,p(m),"right");break;case" ":{if(t.field===Vx)break;const e=t.colDef;if(e&&"treeDataGroup"===e.type)break;!r.shiftKey&&m<g&&l(f,p(Math.min(m+h,g)));break}case"PageDown":m<g&&l(f,p(Math.min(m+h,g)));break;case"PageUp":{const e=Math.max(m-h,0);e!==m&&e>=0?l(f,p(e)):u(f,r);break}case"Home":r.ctrlKey||r.metaKey||r.shiftKey?l(0,p(0)):l(0,p(m));break;case"End":r.ctrlKey||r.metaKey||r.shiftKey?l(v,p(g)):l(v,p(m));break;default:b=!1}b&&r.preventDefault()}),[e,s,o.direction,l,p,a,c,u]),v=i.useCallback(((e,t)=>{let{event:r}=t;return" "!==r.key&&e}),[]);Qb(e,"canStartEditing",v),nf(e,"columnHeaderKeyDown",h),nf(e,"headerFilterKeyDown",f),nf(e,"columnGroupHeaderKeyDown",m),nf(e,"cellKeyDown",g)},rw=(e,t)=>{var r,n,o,i,s;const a=(0,Ft.A)({},If(t.autoPageSize),null!=(r=t.paginationModel)?r:null==(n=t.initialState)||null==(n=n.pagination)?void 0:n.paginationModel);Pf(a.pageSize,t.signature);const l=null!=(o=null!=(i=t.rowCount)?i:null==(s=t.initialState)||null==(s=s.pagination)?void 0:s.rowCount)?o:0;return(0,Ft.A)({},e,{pagination:{paginationModel:a,rowCount:l}})},nw=(e,t)=>{((e,t)=>{var r;const n=gf(e,"useGridPaginationModel"),o=Xd(e,fp),s=Math.floor(t.rowHeight*o);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Mf,changeEvent:"paginationModelChange"});const a=i.useCallback((t=>{const r=Mf(e);t!==r.page&&(n.debug(`Setting page to ${t}`),e.current.setPaginationModel({page:t,pageSize:r.pageSize}))}),[e,n]),l=i.useCallback((t=>{const r=Mf(e);t!==r.pageSize&&(n.debug(`Setting page size to ${t}`),e.current.setPaginationModel({pageSize:t,page:r.page}))}),[e,n]),u=i.useCallback((r=>{const o=Mf(e);r!==o&&(n.debug("Setting 'paginationModel' to",r),e.current.setState((e=>(0,Ft.A)({},e,{pagination:(0,Ft.A)({},e.pagination,{paginationModel:Mx(e.pagination,t.signature,r)})}))))}),[e,n,t.signature]);Vh(e,{setPage:a,setPageSize:l,setPaginationModel:u},"public");const c=i.useCallback(((r,n)=>{var o;const i=Mf(e);return!n.exportOnlyDirtyModels||null!=t.paginationModel||null!=(null==(o=t.initialState)||null==(o=o.pagination)?void 0:o.paginationModel)||0!==i.page&&i.pageSize!==(t.autoPageSize?0:100)?(0,Ft.A)({},r,{pagination:(0,Ft.A)({},r.pagination,{paginationModel:i})}):r}),[e,t.paginationModel,null==(r=t.initialState)||null==(r=r.pagination)?void 0:r.paginationModel,t.autoPageSize]),d=i.useCallback(((r,n)=>{var o,i;const s=null!=(o=n.stateToRestore.pagination)&&o.paginationModel?(0,Ft.A)({},If(t.autoPageSize),null==(i=n.stateToRestore.pagination)?void 0:i.paginationModel):Mf(e);return e.current.setState((e=>(0,Ft.A)({},e,{pagination:(0,Ft.A)({},e.pagination,{paginationModel:Mx(e.pagination,t.signature,s)})}))),r}),[e,t.autoPageSize,t.signature]);Qb(e,"exportState",c),Qb(e,"restoreState",d);const p=i.useCallback((()=>{if(!t.autoPageSize)return;const r=e.current.getRootDimensions()||{viewportInnerSize:{height:0}},n=Eb(e),o=Math.floor((r.viewportInnerSize.height-n.top-n.bottom)/s);e.current.setPageSize(o)}),[e,t.autoPageSize,s]),h=i.useCallback((t=>{if(null==t)return;const r=Mf(e),n=zf(e);r.page>n-1&&e.current.setPage(Math.max(0,n-1))}),[e]);nf(e,"viewportInnerSizeChange",p),nf(e,"paginationModelChange",(()=>{var t;const r=Mf(e);null!=(t=e.current.virtualScrollerRef)&&t.current&&e.current.scrollToIndexes({rowIndex:r.page*r.pageSize})})),nf(e,"rowCountChange",h),i.useEffect((()=>{e.current.setState((e=>(0,Ft.A)({},e,{pagination:(0,Ft.A)({},e.pagination,{paginationModel:Mx(e.pagination,t.signature,t.paginationModel)})})))}),[e,t.paginationModel,t.paginationMode,t.signature]),i.useEffect(p,[p])})(e,t),((e,t)=>{var r;const n=gf(e,"useGridRowCount"),o=Xd(e,_h),s=Xd(e,Df);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Df,changeEvent:"rowCountChange"});const a=i.useCallback((t=>{s!==t&&(n.debug("Setting 'rowCount' to",t),e.current.setState((e=>(0,Ft.A)({},e,{pagination:(0,Ft.A)({},e.pagination,{rowCount:t})}))))}),[e,n,s]);Vh(e,{setRowCount:a},"public");const l=i.useCallback(((r,n)=>{var o;const i=Df(e);return n.exportOnlyDirtyModels&&null==t.rowCount&&null==(null==(o=t.initialState)||null==(o=o.pagination)?void 0:o.rowCount)?r:(0,Ft.A)({},r,{pagination:(0,Ft.A)({},r.pagination,{rowCount:i})})}),[e,t.rowCount,null==(r=t.initialState)||null==(r=r.pagination)?void 0:r.rowCount]),u=i.useCallback(((t,r)=>{var n;const o=null!=(n=r.stateToRestore.pagination)&&n.rowCount?r.stateToRestore.pagination.rowCount:Df(e);return e.current.setState((e=>(0,Ft.A)({},e,{pagination:(0,Ft.A)({},e.pagination,{rowCount:o})}))),t}),[e]);Qb(e,"exportState",l),Qb(e,"restoreState",u),i.useEffect((()=>{}),[t.rowCount,t.paginationMode]),i.useEffect((()=>{"client"===t.paginationMode?e.current.setRowCount(o):null!=t.rowCount&&e.current.setRowCount(t.rowCount)}),[e,o,t.paginationMode,t.rowCount])})(e,t)},ow=e=>e.preferencePanel,iw=(e,t)=>{var r,n;return(0,Ft.A)({},e,{preferencePanel:null!=(r=null==(n=t.initialState)?void 0:n.preferencePanel)?r:{open:!1}})},sw=e=>e.editRows,aw=["id","field"],lw=["id","field"],uw=Wd(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error");var cw=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(cw||{}),dw=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(dw||{});const pw=["id"],hw=["id"],fw=Wd(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),mw=e=>(0,Ft.A)({},e,{editRows:{}}),gw=(e,t)=>{((e,t)=>{const[r,n]=i.useState({}),o=i.useRef(r),s=i.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:l,cellModesModel:u,onCellModesModelChange:c}=t,d=e=>function(){t.editMode===fy.Cell&&e(...arguments)},p=i.useCallback(((t,r)=>{const n=e.current.getCellParams(t,r);if(!e.current.isCellEditable(n))throw new Error(`MUI: The cell with id=${t} and field=${r} is not editable.`)}),[e]),h=i.useCallback(((t,r,n)=>{if(e.current.getCellMode(t,r)!==n)throw new Error(`MUI: The cell with id=${t} and field=${r} is not in ${n} mode.`)}),[e]),f=i.useCallback(((t,r)=>{if(!t.isEditable)return;if(t.cellMode===my.Edit)return;const n=(0,Ft.A)({},t,{reason:py.cellDoubleClick});e.current.publishEvent("cellEditStart",n,r)}),[e]),m=i.useCallback(((t,r)=>{if(t.cellMode===my.View)return;if(e.current.getCellMode(t.id,t.field)===my.View)return;const n=(0,Ft.A)({},t,{reason:hy.cellFocusOut});e.current.publishEvent("cellEditStop",n,r)}),[e]),g=i.useCallback(((t,r)=>{if(t.cellMode===my.Edit){if(229===r.which)return;let n;if("Escape"===r.key?n=hy.escapeKeyDown:"Enter"===r.key?n=hy.enterKeyDown:"Tab"===r.key&&(n=r.shiftKey?hy.shiftTabKeyDown:hy.tabKeyDown,r.preventDefault()),n){const o=(0,Ft.A)({},t,{reason:n});e.current.publishEvent("cellEditStop",o,r)}}else if(t.isEditable){let n;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:r,cellParams:t,editMode:"cell"}))return;if(wf(r)?n=py.printableKeyDown:(r.ctrlKey||r.metaKey)&&"v"===r.key?n=py.pasteKeyDown:"Enter"===r.key?n=py.enterKeyDown:"Delete"!==r.key&&"Backspace"!==r.key||(n=py.deleteKeyDown),n){const o=(0,Ft.A)({},t,{reason:n,key:r.key});e.current.publishEvent("cellEditStart",o,r)}}}),[e]),v=i.useCallback((t=>{const{id:r,field:n,reason:o}=t,i={id:r,field:n};o!==py.printableKeyDown&&o!==py.deleteKeyDown&&o!==py.pasteKeyDown||(i.deleteValue=!0),e.current.startCellEditMode(i)}),[e]),b=i.useCallback((t=>{const{id:r,field:n,reason:o}=t;let i;e.current.runPendingEditCellValueMutation(r,n),o===hy.enterKeyDown?i="below":o===hy.tabKeyDown?i="right":o===hy.shiftTabKeyDown&&(i="left");const s="escapeKeyDown"===o;e.current.stopCellEditMode({id:r,field:n,ignoreModifications:s,cellToFocusAfter:i})}),[e]);nf(e,"cellDoubleClick",d(f)),nf(e,"cellFocusOut",d(m)),nf(e,"cellKeyDown",d(g)),nf(e,"cellEditStart",d(v)),nf(e,"cellEditStop",d(b)),sf(e,"cellEditStart",t.onCellEditStart),sf(e,"cellEditStop",t.onCellEditStop);const y=i.useCallback(((t,r)=>{const n=sw(e.current.state);return n[t]&&n[t][r]?my.Edit:my.View}),[e]),x=(0,xa.A)((r=>{const i=r!==t.cellModesModel;c&&i&&c(r,{}),t.cellModesModel&&i||(n(r),o.current=r,e.current.publishEvent("cellModesModelChange",r))})),w=i.useCallback(((e,t,r)=>{const n=(0,Ft.A)({},o.current);if(null!==r)n[e]=(0,Ft.A)({},n[e],{[t]:(0,Ft.A)({},r)});else{const r=n[e],o=(0,Lt.A)(r,[t].map(df.A));n[e]=o,0===Object.keys(n[e]).length&&delete n[e]}x(n)}),[x]),_=i.useCallback(((t,r,n)=>{e.current.setState((e=>{const o=(0,Ft.A)({},e.editRows);return null!==n?o[t]=(0,Ft.A)({},o[t],{[r]:(0,Ft.A)({},n)}):(delete o[t][r],0===Object.keys(o[t]).length&&delete o[t]),(0,Ft.A)({},e,{editRows:o})})),e.current.forceUpdate()}),[e]),S=i.useCallback((e=>{const{id:t,field:r}=e,n=(0,Lt.A)(e,aw);p(t,r),h(t,r,my.View),w(t,r,(0,Ft.A)({mode:my.Edit},n))}),[p,h,w]),A=(0,xa.A)((t=>{const{id:r,field:n,deleteValue:o,initialValue:i}=t;let s=e.current.getCellValue(r,n);(o||i)&&(s=o?"":i),_(r,n,{value:s,error:!1,isProcessingProps:!1}),e.current.setCellFocus(r,n)})),C=i.useCallback((e=>{const{id:t,field:r}=e,n=(0,Lt.A)(e,lw);h(t,r,my.Edit),w(t,r,(0,Ft.A)({mode:my.View},n))}),[h,w]),k=(0,xa.A)((async t=>{const{id:r,field:n,ignoreModifications:o,cellToFocusAfter:i="none"}=t;h(r,n,my.Edit),e.current.runPendingEditCellValueMutation(r,n);const u=()=>{_(r,n,null),w(r,n,null),"none"!==i&&e.current.moveFocusToRelativeCell(r,n,i)};if(o)return void u();const c=sw(e.current.state),{error:d,isProcessingProps:p}=c[r][n];if(d||p)return s.current[r][n].mode=my.Edit,void w(r,n,{mode:my.Edit});const f=e.current.getRowWithUpdatedValuesFromCellEditing(r,n);if(a){const t=e=>{s.current[r][n].mode=my.Edit,w(r,n,{mode:my.Edit}),l?l(e):uw()};try{const n=e.current.getRow(r);Promise.resolve(a(f,n)).then((t=>{e.current.updateRows([t]),u()})).catch(t)}catch(m){t(m)}}else e.current.updateRows([f]),u()})),E={setCellEditingEditCellValue:i.useCallback((async t=>{var r;const{id:n,field:o,value:i,debounceMs:s,unstable_skipValueParser:a}=t;p(n,o),h(n,o,my.Edit);const l=e.current.getColumn(o),u=e.current.getRow(n);let c=i;l.valueParser&&!a&&(c=l.valueParser(i,e.current.getCellParams(n,o)));let d=sw(e.current.state),f=(0,Ft.A)({},d[n][o],{value:c,changeReason:s?"debouncedSetEditCellValue":"setEditCellValue"});if(l.preProcessEditCellProps){const e=i!==d[n][o].value;f=(0,Ft.A)({},f,{isProcessingProps:!0}),_(n,o,f),f=await Promise.resolve(l.preProcessEditCellProps({id:n,row:u,props:f,hasChanged:e}))}return e.current.getCellMode(n,o)!==my.View&&(d=sw(e.current.state),f=(0,Ft.A)({},f,{isProcessingProps:!1}),f.value=l.preProcessEditCellProps?d[n][o].value:c,_(n,o,f),d=sw(e.current.state),!(null!=(r=d[n])&&null!=(r=r[o])&&r.error))}),[e,p,h,_]),getRowWithUpdatedValuesFromCellEditing:i.useCallback(((t,r)=>{const n=e.current.getColumn(r),o=sw(e.current.state),i=e.current.getRow(t);if(!o[t]||!o[t][r])return e.current.getRow(t);const{value:s}=o[t][r];return n.valueSetter?n.valueSetter({value:s,row:i}):(0,Ft.A)({},i,{[r]:s})}),[e])};Vh(e,{getCellMode:y,startCellEditMode:S,stopCellEditMode:C},"public"),Vh(e,E,"private"),i.useEffect((()=>{u&&x(u)}),[u,x]),(0,ua.A)((()=>{const t=Dp(e),n=s.current;s.current=Wh(r),Object.entries(r).forEach((e=>{let[r,o]=e;Object.entries(o).forEach((e=>{let[o,i]=e;var s,a;const l=(null==(s=n[r])||null==(s=s[o])?void 0:s.mode)||my.View,u=null!=(a=t[r])?a:r;i.mode===my.Edit&&l===my.View?A((0,Ft.A)({id:u,field:o},i)):i.mode===my.View&&l===my.Edit&&k((0,Ft.A)({id:u,field:o},i))}))}))}),[e,r,A,k])})(e,t),((e,t)=>{const[r,n]=i.useState({}),o=i.useRef(r),s=i.useRef({}),a=i.useRef(null),l=i.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:c,rowModesModel:d,onRowModesModelChange:p}=t,h=e=>function(){t.editMode===fy.Row&&e(...arguments)},f=i.useCallback(((t,r)=>{const n=e.current.getCellParams(t,r);if(!e.current.isCellEditable(n))throw new Error(`MUI: The cell with id=${t} and field=${r} is not editable.`)}),[e]),m=i.useCallback(((t,r)=>{if(e.current.getRowMode(t)!==r)throw new Error(`MUI: The row with id=${t} is not in ${r} mode.`)}),[e]),g=i.useCallback(((t,r)=>{if(!t.isEditable)return;if(e.current.getRowMode(t.id)===gy.Edit)return;const n=e.current.getRowParams(t.id),o=(0,Ft.A)({},n,{field:t.field,reason:cw.cellDoubleClick});e.current.publishEvent("rowEditStart",o,r)}),[e]),v=i.useCallback((e=>{l.current=e}),[]),b=i.useCallback(((t,r)=>{t.isEditable&&e.current.getRowMode(t.id)!==gy.View&&(l.current=null,a.current=setTimeout((()=>{var n;if(a.current=null,(null==(n=l.current)?void 0:n.id)!==t.id){if(!e.current.getRow(t.id))return;if(e.current.getRowMode(t.id)===gy.View)return;const n=e.current.getRowParams(t.id),o=(0,Ft.A)({},n,{field:t.field,reason:dw.rowFocusOut});e.current.publishEvent("rowEditStop",o,r)}})))}),[e]);i.useEffect((()=>()=>{clearTimeout(a.current)}),[]);const y=i.useCallback(((t,r)=>{if(t.cellMode===gy.Edit){if(229===r.which)return;let n;if("Escape"===r.key)n=dw.escapeKeyDown;else if("Enter"===r.key)n=dw.enterKeyDown;else if("Tab"===r.key){const o=wp(e).filter((r=>e.current.getColumn(r).type===Jy||e.current.isCellEditable(e.current.getCellParams(t.id,r))));if(r.shiftKey?t.field===o[0]&&(n=dw.shiftTabKeyDown):t.field===o[o.length-1]&&(n=dw.tabKeyDown),r.preventDefault(),!n){const n=o.findIndex((e=>e===t.field)),i=o[r.shiftKey?n-1:n+1];e.current.setCellFocus(t.id,i)}}if(n){const o=(0,Ft.A)({},e.current.getRowParams(t.id),{reason:n,field:t.field});e.current.publishEvent("rowEditStop",o,r)}}else if(t.isEditable){let n;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:r,cellParams:t,editMode:"row"}))return;if(wf(r)||(r.ctrlKey||r.metaKey)&&"v"===r.key?n=cw.printableKeyDown:"Enter"===r.key?n=cw.enterKeyDown:"Delete"!==r.key&&"Backspace"!==r.key||(n=cw.deleteKeyDown),n){const o=e.current.getRowParams(t.id),i=(0,Ft.A)({},o,{field:t.field,reason:n});e.current.publishEvent("rowEditStart",i,r)}}}),[e]),x=i.useCallback((t=>{const{id:r,field:n,reason:o}=t,i={id:r,fieldToFocus:n};o!==cw.printableKeyDown&&o!==cw.deleteKeyDown||(i.deleteValue=!!n),e.current.startRowEditMode(i)}),[e]),w=i.useCallback((t=>{const{id:r,reason:n,field:o}=t;let i;e.current.runPendingEditCellValueMutation(r),n===dw.enterKeyDown?i="below":n===dw.tabKeyDown?i="right":n===dw.shiftTabKeyDown&&(i="left");const s="escapeKeyDown"===n;e.current.stopRowEditMode({id:r,ignoreModifications:s,field:o,cellToFocusAfter:i})}),[e]);nf(e,"cellDoubleClick",h(g)),nf(e,"cellFocusIn",h(v)),nf(e,"cellFocusOut",h(b)),nf(e,"cellKeyDown",h(y)),nf(e,"rowEditStart",h(x)),nf(e,"rowEditStop",h(w)),sf(e,"rowEditStart",t.onRowEditStart),sf(e,"rowEditStop",t.onRowEditStop);const _=i.useCallback((r=>{if(t.editMode===fy.Cell)return gy.View;const n=sw(e.current.state);return n[r]&&Object.keys(n[r]).length>0?gy.Edit:gy.View}),[e,t.editMode]),S=(0,xa.A)((r=>{const i=r!==t.rowModesModel;p&&i&&p(r,{}),t.rowModesModel&&i||(n(r),o.current=r,e.current.publishEvent("rowModesModelChange",r))})),A=i.useCallback(((e,t)=>{const r=(0,Ft.A)({},o.current);null!==t?r[e]=(0,Ft.A)({},t):delete r[e],S(r)}),[S]),C=i.useCallback(((t,r)=>{e.current.setState((e=>{const n=(0,Ft.A)({},e.editRows);return null!==r?n[t]=r:delete n[t],(0,Ft.A)({},e,{editRows:n})})),e.current.forceUpdate()}),[e]),k=i.useCallback(((t,r,n)=>{e.current.setState((e=>{const o=(0,Ft.A)({},e.editRows);return null!==n?o[t]=(0,Ft.A)({},o[t],{[r]:(0,Ft.A)({},n)}):(delete o[t][r],0===Object.keys(o[t]).length&&delete o[t]),(0,Ft.A)({},e,{editRows:o})})),e.current.forceUpdate()}),[e]),E=i.useCallback((e=>{const{id:t}=e,r=(0,Lt.A)(e,pw);m(t,gy.View),A(t,(0,Ft.A)({mode:gy.Edit},r))}),[m,A]),R=(0,xa.A)((t=>{const{id:r,fieldToFocus:n,deleteValue:o,initialValue:i}=t,s=gp(e).reduce(((t,s)=>{if(!e.current.getCellParams(r,s).isEditable)return t;let a=e.current.getCellValue(r,s);return n===s&&(o||i)&&(a=o?"":i),t[s]={value:a,error:!1,isProcessingProps:!1},t}),{});C(r,s),n&&e.current.setCellFocus(r,n)})),j=i.useCallback((e=>{const{id:t}=e,r=(0,Lt.A)(e,hw);m(t,gy.Edit),A(t,(0,Ft.A)({mode:gy.View},r))}),[m,A]),O=(0,xa.A)((t=>{const{id:r,ignoreModifications:n,field:o,cellToFocusAfter:i="none"}=t;e.current.runPendingEditCellValueMutation(r);const a=()=>{"none"!==i&&o&&e.current.moveFocusToRelativeCell(r,o,i),C(r,null),A(r,null)};if(n)return void a();const l=sw(e.current.state),d=e.current.getRow(r);if(Object.values(l[r]).some((e=>e.isProcessingProps)))return void(s.current[r].mode=gy.Edit);if(Object.values(l[r]).some((e=>e.error)))return s.current[r].mode=gy.Edit,void A(r,{mode:gy.Edit});const p=e.current.getRowWithUpdatedValuesFromRowEditing(r);if(u){const t=e=>{s.current[r].mode=gy.Edit,A(r,{mode:gy.Edit}),c?c(e):fw()};try{Promise.resolve(u(p,d)).then((t=>{e.current.updateRows([t]),a()})).catch(t)}catch(h){t(h)}}else e.current.updateRows([p]),a()})),T={setRowEditingEditCellValue:i.useCallback((t=>{const{id:r,field:n,value:o,debounceMs:i,unstable_skipValueParser:s}=t;f(r,n);const a=e.current.getColumn(n),l=e.current.getRow(r);let u=o;a.valueParser&&!s&&(u=a.valueParser(o,e.current.getCellParams(r,n)));let c=sw(e.current.state),d=(0,Ft.A)({},c[r][n],{value:u,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});return a.preProcessEditCellProps||k(r,n,d),new Promise((t=>{const o=[];if(a.preProcessEditCellProps){const i=d.value!==c[r][n].value;d=(0,Ft.A)({},d,{isProcessingProps:!0}),k(r,n,d);const s=c[r],p=(0,Lt.A)(s,[n].map(df.A)),h=Promise.resolve(a.preProcessEditCellProps({id:r,row:l,props:d,hasChanged:i,otherFieldsProps:p})).then((o=>{e.current.getRowMode(r)!==gy.View?(c=sw(e.current.state),(o=(0,Ft.A)({},o,{isProcessingProps:!1})).value=a.preProcessEditCellProps?c[r][n].value:u,k(r,n,o)):t(!1)}));o.push(h)}Object.entries(c[r]).forEach((i=>{let[s,a]=i;if(s===n)return;const u=e.current.getColumn(s);if(!u.preProcessEditCellProps)return;a=(0,Ft.A)({},a,{isProcessingProps:!0}),k(r,s,a),c=sw(e.current.state);const d=c[r],p=(0,Lt.A)(d,[s].map(df.A)),h=Promise.resolve(u.preProcessEditCellProps({id:r,row:l,props:a,hasChanged:!1,otherFieldsProps:p})).then((n=>{e.current.getRowMode(r)!==gy.View?(n=(0,Ft.A)({},n,{isProcessingProps:!1}),k(r,s,n)):t(!1)}));o.push(h)})),Promise.all(o).then((()=>{e.current.getRowMode(r)===gy.Edit?(c=sw(e.current.state),t(!c[r][n].error)):t(!1)}))}))}),[e,f,k]),getRowWithUpdatedValuesFromRowEditing:i.useCallback((t=>{const r=sw(e.current.state),n=e.current.getRow(t);if(!r[t])return e.current.getRow(t);let o=(0,Ft.A)({},n);return Object.entries(r[t]).forEach((t=>{let[r,n]=t;const i=e.current.getColumn(r);i.valueSetter?o=i.valueSetter({value:n.value,row:o}):o[r]=n.value})),o}),[e])};Vh(e,{getRowMode:_,startRowEditMode:E,stopRowEditMode:j},"public"),Vh(e,T,"private"),i.useEffect((()=>{d&&S(d)}),[d,S]),(0,ua.A)((()=>{const t=Dp(e),n=s.current;s.current=Wh(r),Object.entries(r).forEach((e=>{let[r,o]=e;var i,s;const a=(null==(i=n[r])?void 0:i.mode)||gy.View,l=null!=(s=t[r])?s:r;o.mode===gy.Edit&&a===gy.View?R((0,Ft.A)({id:l},o)):o.mode===gy.View&&a===gy.Edit&&O((0,Ft.A)({id:l},o))}))}),[e,r,R,O])})(e,t);const r=i.useRef({}),{isCellEditable:n}=t,o=i.useCallback((e=>!Cb(e.rowNode)&&(!!e.colDef.editable&&(!!e.colDef.renderEditCell&&(!n||n(e))))),[n]);i.useEffect((()=>{const e=r.current;return()=>{Object.entries(e).forEach((t=>{let[r,n]=t;Object.keys(n).forEach((t=>{const[n]=e[r][t];clearTimeout(n),delete e[r][t]}))}))}}),[]);const s=i.useCallback(((e,t)=>{if(r.current[e])if(t){if(r.current[e][t]){const[,n]=r.current[e][t];n()}}else Object.keys(r.current[e]).forEach((t=>{const[,n]=r.current[e][t];n()}))}),[]),a=i.useCallback((n=>{const{id:o,field:i,debounceMs:s}=n;return new Promise((a=>{((e,t,n,o)=>{if(!n)return void o();if(r.current[e]||(r.current[e]={}),r.current[e][t]){const[n]=r.current[e][t];clearTimeout(n)}const i=setTimeout((()=>{o(),delete r.current[e][t]}),n);r.current[e][t]=[i,()=>{const[n]=r.current[e][t];clearTimeout(n),o(),delete r.current[e][t]}]})(o,i,s,(async()=>{const r=t.editMode===fy.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(o,i)===my.Edit){const e=await r(n);a(e)}}))}))}),[e,t.editMode]),l=i.useCallback(((r,n)=>t.editMode===fy.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(r,n):e.current.getRowWithUpdatedValuesFromRowEditing(r)),[e,t.editMode]),u=i.useCallback(((t,r)=>{var n,o;return null!=(n=null==(o=sw(e.current.state)[t])?void 0:o[r])?n:null}),[e]),c={runPendingEditCellValueMutation:s};Vh(e,{isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:l,unstable_getEditCellMeta:u},"public"),Vh(e,c,"private")},vw=(e,t,r)=>(r.current.caches.rows=_b({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),(0,Ft.A)({},e,{rows:Ab({apiRef:r,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),bw=(e,t)=>{const r=gf(e,"useGridRows"),n=Ux(e,t),o=i.useRef(Date.now()),s=Em(),a=i.useCallback((t=>{const r=Mp(e)[t];if(r)return r;const n=e.current.getRowNode(t);return n&&Cb(n)?{[xb]:t}:null}),[e]),l=t.getRowId,u=i.useCallback((e=>xb in e?e[xb]:l?l(e):e.id),[l]),c=i.useMemo((()=>n.rows.reduce(((e,t,r)=>{let{id:n}=t;return e[n]=r,e}),{})),[n.rows]),d=i.useCallback((r=>{let{cache:n,throttle:i}=r;const a=()=>{o.current=Date.now(),e.current.setState((r=>(0,Ft.A)({},r,{rows:Ab({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Lp(e),previousTreeDepths:zp(e)})}))),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=n,!i)return void a();const l=t.throttleRowsMs-(Date.now()-o.current);l>0?s.start(l,a):a()}),[t.throttleRowsMs,t.rowCount,t.loading,e,s]),p=i.useCallback((n=>{r.debug(`Updating all rows, new length ${n.length}`);const o=_b({rows:n,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),i=e.current.caches.rows;o.rowsBeforePartialUpdates=i.rowsBeforePartialUpdates,d({cache:o,throttle:!0})}),[r,t.getRowId,t.loading,t.rowCount,d,e]),h=i.useCallback((r=>{if(t.signature===ef.DataGrid&&r.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));const n=[];r.forEach((r=>{const o=wb(r,t.getRowId,"A row was provided without id when calling updateRows():"),i=e.current.getRowNode(o);if("pinnedRow"===(null==i?void 0:i.type)){const t=e.current.caches.pinnedRows,n=t.idLookup[o];n&&(t.idLookup[o]=(0,Ft.A)({},n,r))}else n.push(r)}));const o=(e=>{let{previousCache:t,getRowId:r,updates:n}=e;var o,i,s;if("full"===t.updates.type)throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach((e=>{const t=wb(e,r,"A row was provided without id when calling updateRows():");a.has(t)?a.set(t,(0,Ft.A)({},a.get(t),e)):a.set(t,e)}));const l={type:"partial",actions:{insert:[...null!=(o=t.updates.actions.insert)?o:[]],modify:[...null!=(i=t.updates.actions.modify)?i:[]],remove:[...null!=(s=t.updates.actions.remove)?s:[]]},idToActionLookup:(0,Ft.A)({},t.updates.idToActionLookup)},u=(0,Ft.A)({},t.dataRowIdToModelLookup),c=(0,Ft.A)({},t.dataRowIdToIdLookup),d={insert:{},modify:{},remove:{}};a.forEach(((e,t)=>{const r=l.idToActionLookup[t];if("delete"===e._action){if("remove"===r||!u[t])return;return null!=r&&(d[r][t]=!0),l.actions.remove.push(t),delete u[t],void delete c[t]}const n=u[t];if(n)return"remove"===r?(d.remove[t]=!0,l.actions.modify.push(t)):null==r&&l.actions.modify.push(t),void(u[t]=(0,Ft.A)({},n,e));"remove"===r?(d.remove[t]=!0,l.actions.insert.push(t)):null==r&&l.actions.insert.push(t),u[t]=e,c[t]=t}));const p=Object.keys(d);for(let h=0;h<p.length;h+=1){const e=p[h],t=d[e];Object.keys(t).length>0&&(l.actions[e]=l.actions[e].filter((e=>!t[e])))}return{dataRowIdToModelLookup:u,dataRowIdToIdLookup:c,updates:l,rowsBeforePartialUpdates:t.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:t.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:t.rowCountPropBeforePartialUpdates}})({updates:n,getRowId:t.getRowId,previousCache:e.current.caches.rows});d({cache:o,throttle:!0})}),[t.signature,t.getRowId,d,e]),f=i.useCallback((()=>{const t=$p(e),r=Mp(e);return new Map(t.map((e=>{var t;return[e,null!=(t=r[e])?t:{}]})))}),[e]),m=i.useCallback((()=>Ip(e)),[e]),g=i.useCallback((()=>$p(e)),[e]),v=i.useCallback((e=>c[e]),[c]),b=i.useCallback(((t,r)=>{const n=e.current.getRowNode(t);if(!n)throw new Error(`MUI: No row with id #${t} found`);if("group"!==n.type)throw new Error("MUI: Only group nodes can be expanded or collapsed");const o=(0,Ft.A)({},n,{childrenExpanded:r});e.current.setState((e=>(0,Ft.A)({},e,{rows:(0,Ft.A)({},e.rows,{tree:(0,Ft.A)({},e.rows.tree,{[t]:o})})}))),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",o)}),[e]),y=i.useCallback((t=>{var r;return null!=(r=Lp(e)[t])?r:null}),[e]),x=i.useCallback((t=>{let{skipAutoGeneratedRows:r=!0,groupId:n,applySorting:o,applyFiltering:i}=t;const s=Lp(e);let a;if(o){const t=s[n];if(!t)return[];const o=lh(e);a=[];for(let e=o.findIndex((e=>e===n))+1;e<o.length&&s[o[e]].depth>t.depth;e+=1){const t=o[e];r&&Cb(s[t])||a.push(t)}}else a=kb(s,n,r);if(i){const t=mh(e);a=a.filter((e=>!1!==t[e]))}return a}),[e]),w=i.useCallback(((t,n)=>{const o=e.current.getRowNode(t);if(!o)throw new Error(`MUI: No row with id #${t} found`);if(o.parent!==yb)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if("leaf"!==o.type)throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState((o=>{const i=Lp(o,e.current.instanceId)[yb],s=i.children,a=s.findIndex((e=>e===t));if(-1===a||a===n)return o;r.debug(`Moving row ${t} to index ${n}`);const l=[...s];return l.splice(n,0,l.splice(a,1)[0]),(0,Ft.A)({},o,{rows:(0,Ft.A)({},o.rows,{tree:(0,Ft.A)({},o.rows.tree,{[yb]:(0,Ft.A)({},i,{children:l})})})})})),e.current.publishEvent("rowsSet")}),[e,r]),_={getRow:a,getRowId:u,getRowModels:f,getRowsCount:m,getAllRowIds:g,setRows:p,updateRows:h,getRowNode:y,getRowIndexRelativeToVisibleRows:v,unstable_replaceRows:i.useCallback(((r,n)=>{if(t.signature===ef.DataGrid&&n.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0===n.length)return;if(Bp(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const o=(0,Ft.A)({},Lp(e)),i=(0,Ft.A)({},Mp(e)),s=(0,Ft.A)({},Dp(e)),a=o[yb],l=[...a.children],u=new Set;for(let e=0;e<n.length;e+=1){const a=n[e],c=wb(a,t.getRowId,"A row was provided without id when calling replaceRows()."),[d]=l.splice(r+e,1,c);u.has(d)||(delete i[d],delete s[d],delete o[d]);const p={id:c,depth:0,parent:yb,type:"leaf",groupingKey:null};i[c]=a,s[c]=c,o[c]=p,u.add(c)}o[yb]=(0,Ft.A)({},a,{children:l});const c=l.filter((e=>"leaf"===o[e].type));e.current.caches.rows.dataRowIdToModelLookup=i,e.current.caches.rows.dataRowIdToIdLookup=s,e.current.setState((e=>(0,Ft.A)({},e,{rows:(0,Ft.A)({},e.rows,{dataRowIdToModelLookup:i,dataRowIdToIdLookup:s,dataRowIds:c,tree:o})}))),e.current.publishEvent("rowsSet")}),[e,t.signature,t.getRowId])},S={setRowIndex:w,setRowChildrenExpansion:b,getRowGroupChildren:x},A=i.useCallback((()=>{let n;r.info("Row grouping pre-processing have changed, regenerating the row tree"),n=e.current.caches.rows.rowsBeforePartialUpdates===t.rows?(0,Ft.A)({},e.current.caches.rows,{updates:{type:"full",rows:$p(e)}}):_b({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),d({cache:n,throttle:!1})}),[r,e,t.rows,t.getRowId,t.loading,t.rowCount,d]),C=i.useCallback((e=>{"rowTreeCreation"===e&&A()}),[A]),k=i.useCallback((()=>{e.current.getActiveStrategy("rowTree")!==Fp(e)&&A()}),[e,A]);nf(e,"activeStrategyProcessorChange",C),nf(e,"strategyAvailabilityChange",k);const E=i.useCallback((()=>{e.current.setState((r=>{const n=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Lp(r,e.current.instanceId),treeDepths:zp(r,e.current.instanceId),dataRowIds:$p(r,e.current.instanceId),dataRowIdToModelLookup:Mp(r,e.current.instanceId),dataRowIdToIdLookup:Dp(r,e.current.instanceId)});return(0,Ft.A)({},r,{rows:(0,Ft.A)({},r.rows,n,{totalTopLevelRowCount:Sb({tree:n.tree,rowCountProp:t.rowCount})})})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()}),[e,t.rowCount]);Kb(e,"hydrateRows",E),Vh(e,_,"public"),Vh(e,S,t.signature===ef.DataGrid?"private":"public");const R=i.useRef(!0);i.useEffect((()=>{if(R.current)return void(R.current=!1);const n=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,o=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,i=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(n)return o||(e.current.setState((e=>(0,Ft.A)({},e,{rows:(0,Ft.A)({},e.rows,{loading:t.loading})}))),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),void(i||(e.current.setState((e=>(0,Ft.A)({},e,{rows:(0,Ft.A)({},e.rows,{totalRowCount:Math.max(t.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,e.rows.totalTopLevelRowCount)})}))),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()));r.debug(`Updating all rows, new length ${t.rows.length}`),d({cache:_b({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})}),[t.rows,t.rowCount,t.getRowId,t.loading,r,d,e])},yw=e=>"full"===e.updates.type?(e=>{const t={[yb]:(0,Ft.A)({},{type:"group",id:yb,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null},{children:e})};for(let r=0;r<e.length;r+=1){const n=e[r];t[n]={id:n,depth:0,parent:yb,type:"leaf",groupingKey:null}}return{groupingName:pf,tree:t,treeDepths:{0:e.length},dataRowIds:e}})(e.updates.rows):(e=>{let{previousTree:t,actions:r}=e;const n=(0,Ft.A)({},t),o={};for(let a=0;a<r.remove.length;a+=1){const e=r.remove[a];o[e]=!0,delete n[e]}for(let a=0;a<r.insert.length;a+=1){const e=r.insert[a];n[e]={id:e,depth:0,parent:yb,type:"leaf",groupingKey:null}}const i=n[yb];let s=[...i.children,...r.insert];return Object.values(o).length&&(s=s.filter((e=>!o[e]))),n[yb]=(0,Ft.A)({},i,{children:s}),{groupingName:pf,tree:n,treeDepths:{0:s.length},dataRowIds:s}})({previousTree:e.previousTree,actions:e.updates.actions});class xw extends Error{}function ww(e,t){const{getRowId:r}=t,n=i.useCallback((t=>({field:t,colDef:e.current.getColumn(t)})),[e]),o=i.useCallback((t=>{const r=e.current.getRow(t);if(!r)throw new xw(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:r}}),[e]),s=i.useCallback(((t,r)=>{const n=e.current.getRow(t),o=e.current.getRowNode(t);if(!n||!o)throw new xw(`No row with id #${t} found`);const i=kh(e),s=Oh(e);return{id:t,field:r,row:n,rowNode:o,value:n[r],colDef:e.current.getColumn(r),cellMode:e.current.getCellMode(t,r),api:e.current,hasFocus:null!==i&&i.field===r&&i.id===t,tabIndex:s&&s.field===r&&s.id===t?0:-1}}),[e]),a=i.useCallback(((t,r)=>{const n=e.current.getColumn(r),o=e.current.getCellValue(t,r),i=e.current.getRow(t),s=e.current.getRowNode(t);if(!i||!s)throw new xw(`No row with id #${t} found`);const a=kh(e),l=Oh(e),u={id:t,field:r,row:i,rowNode:s,colDef:n,cellMode:e.current.getCellMode(t,r),hasFocus:null!==a&&a.field===r&&a.id===t,tabIndex:l&&l.field===r&&l.id===t?0:-1,value:o,formattedValue:o,isEditable:!1};return n&&n.valueFormatter&&(u.formattedValue=n.valueFormatter({id:t,field:u.field,value:u.value,api:e.current})),u.isEditable=n&&e.current.isCellEditable(u),u}),[e]),l=i.useCallback(((t,r)=>{const n=e.current.getColumn(r);if(!n||!n.valueGetter){const n=e.current.getRow(t);if(!n)throw new xw(`No row with id #${t} found`);return n[r]}return n.valueGetter(s(t,r))}),[e,s]),u=i.useCallback(((e,t)=>{var n;const o=xb in e?e[xb]:null!=(n=null==r?void 0:r(e))?n:e.id,i=t.field;return t&&t.valueGetter?t.valueGetter(s(o,i)):e[i]}),[s,r]),c=i.useCallback(((t,n)=>{var o;const i=u(t,n);if(!n||!n.valueFormatter)return i;const s=null!=(o=r?r(t):t.id)?o:t[xb],a=n.field;return n.valueFormatter({id:s,field:a,value:i,api:e.current})}),[e,r,u]),d=i.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${Jx(t)}"]`)}(e.current.rootElementRef.current,t):null),[e]),p=i.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(Xx(t))}(e.current.rootElementRef.current,t):null),[e]),h=i.useCallback(((t,r)=>e.current.rootElementRef.current?function(e,t){let{id:r,field:n}=t;const o=`${Xx(r)} .${Dd.cell}[data-field="${Jx(n)}"]`;return e.querySelector(o)}(e.current.rootElementRef.current,{id:t,field:r}):null),[e]);Vh(e,{getCellValue:l,getCellParams:a,getCellElement:h,getRowValue:u,getRowFormattedValue:c,getRowParams:o,getRowElement:p,getColumnHeaderParams:n,getColumnHeaderElement:d},"public")}const _w=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],Sw=(e,t)=>{var r;return(0,Ft.A)({},e,{rowSelection:t.rowSelection&&null!=(r=_w(t.rowSelectionModel))?r:[]})},Aw=(e,t)=>{const r=(e=>{const{classes:t}=e;return i.useMemo((()=>(0,$t.A)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Md,t)),[t])})({classes:t.classes}),n=i.useCallback((n=>{const o=(0,Ft.A)({},zb,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=t.checkboxSelection,s=null!=n.lookup[Fb];return i&&!s?(n.lookup[Fb]=o,n.orderedFields=[Fb,...n.orderedFields]):!i&&s?(delete n.lookup[Fb],n.orderedFields=n.orderedFields.filter((e=>e!==Fb))):i&&s&&(n.lookup[Fb]=(0,Ft.A)({},o,n.lookup[Fb])),n}),[e,r,t.checkboxSelection]);Qb(e,"hydrateColumns",n)},Cw=(e,t)=>{var r,n,o;const i=null!=(r=null!=(n=t.sortModel)?n:null==(o=t.initialState)||null==(o=o.sorting)?void 0:o.sortModel)?r:[];return(0,Ft.A)({},e,{sorting:{sortModel:ym(i,t.disableMultipleColumnsSorting),sortedRows:[]}})};function kw(e){const{clientHeight:t,scrollTop:r,offsetHeight:n,offsetTop:o}=e,i=o+n;return n>t?o:i-t>r?i-t:o<r?o:void 0}var Ew=r(3030);function Rw(e){let{props:t,name:r,defaultTheme:n,themeId:o}=e,i=ar(n);o&&(i=i[o]||i);const s=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,Ew.A)(t.components[r].defaultProps,n):n}({theme:i,name:r,props:t});return s}const jw={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search\u2026",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function Ow(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Tw(e){return parseFloat(e)}function Iw(e){return(0,qt.Ay)("MuiSkeleton",e)}(0,Vt.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Pw=["animation","className","component","height","style","variant","width"];let Nw,Mw,Dw,Lw,Fw=e=>e;const zw=(0,Si.i7)(Nw||(Nw=Fw`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`)),Bw=(0,Si.i7)(Mw||(Mw=Fw`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`)),$w=(0,Ht.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:r}=e;const n=Ow(t.shape.borderRadius)||"px",o=Tw(t.shape.borderRadius);return(0,Ft.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:Id(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===r.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${o}${n}/${Math.round(o/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===r.variant&&{borderRadius:"50%"},"rounded"===r.variant&&{borderRadius:(t.vars||t).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,Si.AH)(Dw||(Dw=Fw`
      animation: ${0} 2s ease-in-out 0.5s infinite;
    `),zw)}),(e=>{let{ownerState:t,theme:r}=e;return"wave"===t.animation&&(0,Si.AH)(Lw||(Lw=Fw`
      position: relative;
      overflow: hidden;

      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
      -webkit-mask-image: -webkit-radial-gradient(white, black);

      &::after {
        animation: ${0} 2s linear 0.5s infinite;
        background: linear-gradient(
          90deg,
          transparent,
          ${0},
          transparent
        );
        content: '';
        position: absolute;
        transform: translateX(-100%); /* Avoid flash during server-side hydration */
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
      }
    `),Bw,(r.vars||r).palette.action.hover)})),Hw=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:o,component:i="span",height:s,style:a,variant:l="text",width:u}=r,c=(0,Lt.A)(r,Pw),d=(0,Ft.A)({},r,{animation:n,component:i,variant:l,hasChildren:Boolean(c.children)}),p=(e=>{const{classes:t,variant:r,animation:n,hasChildren:o,width:i,height:s}=e,a={root:["root",r,n,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]};return(0,$t.A)(a,Iw,t)})(d);return(0,Ne.jsx)($w,(0,Ft.A)({as:i,ref:t,className:(0,zt.A)(p.root,o),ownerState:d},c,{style:(0,Ft.A)({width:u,height:s},a)}))})),Uw=["field","align","width","contentWidth"];const Ww=function(e){const{badgeContent:t,invisible:r=!1,max:n=99,showZero:o=!1}=e,i=Tm({badgeContent:t,max:n});let s=r;!1!==r||0!==t||o||(s=!0);const{badgeContent:a,max:l=n}=s?i:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}};function Vw(e){return(0,qt.Ay)("MuiBadge",e)}const qw=(0,Vt.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Gw=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Qw=(0,Ht.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Kw=(0,Ht.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.badge,t[r.variant],t[`anchorOrigin${(0,Wt.A)(r.anchorOrigin.vertical)}${(0,Wt.A)(r.anchorOrigin.horizontal)}${(0,Wt.A)(r.overlap)}`],"default"!==r.color&&t[`color${(0,Wt.A)(r.color)}`],r.invisible&&t.invisible]}})((e=>{let{theme:t}=e;var r;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(r=t.vars)?r:t).palette).filter((e=>{var r,n;return(null!=(r=t.vars)?r:t).palette[e].main&&(null!=(n=t.vars)?n:t).palette[e].contrastText})).map((e=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${qw.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${qw.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${qw.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${qw.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${qw.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${qw.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${qw.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${qw.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}})),Jw=i.forwardRef((function(e,t){var r,n,o,i,s,a;const l=(0,Ut.b)({props:e,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:c,component:d,components:p={},componentsProps:h={},children:f,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:x,slotProps:w,showZero:_=!1,variant:S="standard"}=l,A=(0,Lt.A)(l,Gw),{badgeContent:C,invisible:k,max:E,displayValue:R}=Ww({max:b,invisible:v,badgeContent:y,showZero:_}),j=Tm({anchorOrigin:u,color:g,overlap:m,variant:S,badgeContent:y}),O=k||null==C&&"dot"!==S,{color:T=g,overlap:I=m,anchorOrigin:P=u,variant:N=S}=O?j:l,M="dot"!==N?R:void 0,D=(0,Ft.A)({},l,{badgeContent:C,invisible:O,max:E,displayValue:M,showZero:_,anchorOrigin:P,color:T,overlap:I,variant:N}),L=(e=>{const{color:t,anchorOrigin:r,invisible:n,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,n&&"invisible",`anchorOrigin${(0,Wt.A)(r.vertical)}${(0,Wt.A)(r.horizontal)}`,`anchorOrigin${(0,Wt.A)(r.vertical)}${(0,Wt.A)(r.horizontal)}${(0,Wt.A)(o)}`,`overlap${(0,Wt.A)(o)}`,"default"!==t&&`color${(0,Wt.A)(t)}`]};return(0,$t.A)(a,Vw,s)})(D),F=null!=(r=null!=(n=null==x?void 0:x.root)?n:p.Root)?r:Qw,z=null!=(o=null!=(i=null==x?void 0:x.badge)?i:p.Badge)?o:Kw,B=null!=(s=null==w?void 0:w.root)?s:h.root,$=null!=(a=null==w?void 0:w.badge)?a:h.badge,H=ra({elementType:F,externalSlotProps:B,externalForwardedProps:A,additionalProps:{ref:t,as:d},ownerState:D,className:(0,zt.A)(null==B?void 0:B.className,L.root,c)}),U=ra({elementType:z,externalSlotProps:$,ownerState:D,className:(0,zt.A)(L.badge,null==$?void 0:$.className)});return(0,Ne.jsxs)(F,(0,Ft.A)({},H,{children:[f,(0,Ne.jsx)(z,(0,Ft.A)({},U,{children:M}))]}))})),Xw=["className"],Yw=oh("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})((()=>({display:"flex",visibility:"hidden",width:0}))),Zw=i.forwardRef((function(e,t){const{className:r}=e,n=(0,Lt.A)(e,Xw),o=tp(),i=(e=>{const{classes:t}=e;return(0,$t.A)({root:["iconButtonContainer"]},Md,t)})(o);return(0,Ne.jsx)(Yw,(0,Ft.A)({ref:t,className:Cd(i.root,r),ownerState:o},n))}));const e_=["className","selectedRowCount"],t_=oh("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})((e=>{let{theme:t}=e;return{alignItems:"center",display:"flex",margin:t.spacing(0,2),visibility:"hidden",width:0,height:0,[t.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}})),r_=i.forwardRef((function(e,t){const{className:r,selectedRowCount:n}=e,o=(0,Lt.A)(e,e_),i=Af(),s=tp(),a=(e=>{const{classes:t}=e;return(0,$t.A)({root:["selectedRowCount"]},Md,t)})(s),l=i.current.getLocaleText("footerRowSelected")(n);return(0,Ne.jsx)(t_,(0,Ft.A)({ref:t,className:Cd(a.root,r),ownerState:s},o,{children:l}))})),n_=["className"],o_=oh("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),i_=i.forwardRef((function(e,t){const{className:r}=e,n=(0,Lt.A)(e,n_),o=tp(),i=(e=>{const{classes:t}=e;return(0,$t.A)({root:["footerContainer","withBorderColor"]},Md,t)})(o);return(0,Ne.jsx)(o_,(0,Ft.A)({ref:t,className:Cd(i.root,r),ownerState:o},n))})),s_=i.forwardRef((function(e,t){var r,n;const o=Af(),i=tp(),s=Xd(o,Np),a=Xd(o,Rf),l=Xd(o,_h),u=!i.hideFooterSelectedRowCount&&a>0?(0,Ne.jsx)(r_,{selectedRowCount:a}):(0,Ne.jsx)("div",{}),c=i.hideFooterRowCount||i.pagination?null:(0,Ne.jsx)(i.slots.footerRowCount,(0,Ft.A)({},null==(r=i.slotProps)?void 0:r.footerRowCount,{rowCount:s,visibleRowCount:l})),d=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&(0,Ne.jsx)(i.slots.pagination,(0,Ft.A)({},null==(n=i.slotProps)?void 0:n.pagination));return(0,Ne.jsxs)(i_,(0,Ft.A)({ref:t},e,{children:[u,c,d]}))})),a_=["className","rowCount","visibleRowCount"],l_=oh("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})((e=>{let{theme:t}=e;return{alignItems:"center",display:"flex",margin:t.spacing(0,2)}})),u_=i.forwardRef((function(e,t){const{className:r,rowCount:n,visibleRowCount:o}=e,i=(0,Lt.A)(e,a_),s=Af(),a=tp(),l=(e=>{const{classes:t}=e;return(0,$t.A)({root:["rowCount"]},Md,t)})(a);if(0===n)return null;const u=o<n?s.current.getLocaleText("footerTotalVisibleRows")(o,n):n.toLocaleString();return(0,Ne.jsxs)(l_,(0,Ft.A)({ref:t,className:Cd(l.root,r),ownerState:a},i,{children:[s.current.getLocaleText("footerTotalRows")," ",u]}))})),c_=i.forwardRef((function(e,t){var r,n,o;const i=Af(),s=Xd(i,bp),a=tp(),l=Xd(i,ow),u=i.current.unstable_applyPipeProcessors("preferencePanel",null,null!=(r=l.openedPanelValue)?r:ax.filters);return(0,Ne.jsx)(a.slots.panel,(0,Ft.A)({ref:t,as:a.slots.basePopper,open:s.length>0&&l.open,id:l.panelId,"aria-labelledby":l.labelId},null==(n=a.slotProps)?void 0:n.panel,e,null==(o=a.slotProps)?void 0:o.basePopper,{children:u}))}));function d_(e){return(0,qt.Ay)("MuiCircularProgress",e)}(0,Vt.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const p_=["className","color","disableShrink","size","style","thickness","value","variant"];let h_,f_,m_,g_,v_=e=>e;const b_=44,y_=(0,Si.i7)(h_||(h_=v_`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`)),x_=(0,Si.i7)(f_||(f_=v_`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -125px;
  }
`)),w_=(0,Ht.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${(0,Wt.A)(r.color)}`]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Ft.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,Si.AH)(m_||(m_=v_`
      animation: ${0} 1.4s linear infinite;
    `),y_)})),__=(0,Ht.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),S_=(0,Ht.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${(0,Wt.A)(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Ft.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,Si.AH)(g_||(g_=v_`
      animation: ${0} 1.4s ease-in-out infinite;
    `),x_)})),A_=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:i=!1,size:s=40,style:a,thickness:l=3.6,value:u=0,variant:c="indeterminate"}=r,d=(0,Lt.A)(r,p_),p=(0,Ft.A)({},r,{color:o,disableShrink:i,size:s,thickness:l,value:u,variant:c}),h=(e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${(0,Wt.A)(n)}`],svg:["svg"],circle:["circle",`circle${(0,Wt.A)(r)}`,o&&"circleDisableShrink"]};return(0,$t.A)(i,d_,t)})(p),f={},m={},g={};if("determinate"===c){const e=2*Math.PI*((b_-l)/2);f.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(u),f.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,Ne.jsx)(w_,(0,Ft.A)({className:(0,zt.A)(h.root,n),style:(0,Ft.A)({width:s,height:s},m,a),ownerState:p,ref:t,role:"progressbar"},g,d,{children:(0,Ne.jsx)(__,{className:h.svg,ownerState:p,viewBox:"22 22 44 44",children:(0,Ne.jsx)(S_,{className:h.circle,style:f,ownerState:p,cx:b_,cy:b_,r:(b_-l)/2,fill:"none",strokeWidth:l})})}))})),C_=["className"],k_=oh("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),E_=i.forwardRef((function(e,t){const{className:r}=e,n=(0,Lt.A)(e,C_),o=tp(),i=(e=>{const{classes:t}=e;return(0,$t.A)({root:["overlay"]},Md,t)})(o);return(0,Ne.jsx)(k_,(0,Ft.A)({ref:t,className:Cd(i.root,r),ownerState:o},n))})),R_=i.forwardRef((function(e,t){return(0,Ne.jsx)(E_,(0,Ft.A)({ref:t},e,{children:(0,Ne.jsx)(A_,{})}))})),j_=i.forwardRef((function(e,t){const r=Af().current.getLocaleText("noRowsLabel");return(0,Ne.jsx)(E_,(0,Ft.A)({ref:t},e,{children:r}))}));function O_(e){return(0,qt.Ay)("MuiPopover",e)}(0,Vt.A)("MuiPopover",["root","paper"]);const T_=["onEntering"],I_=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],P_=["slotProps"];function N_(e,t){let r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function M_(e,t){let r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function D_(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?`${e}px`:e)).join(" ")}function L_(e){return"function"===typeof e?e():e}const F_=(0,Ht.Ay)(Ma,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),z_=(0,Ht.Ay)(Ba,{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}),B_=i.forwardRef((function(e,t){var r,n,o;const s=(0,Ut.b)({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:f,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:b={},slots:y,slotProps:x,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:_=jl,transitionDuration:S="auto",TransitionProps:{onEntering:A}={},disableScrollLock:C=!1}=s,k=(0,Lt.A)(s.TransitionProps,T_),E=(0,Lt.A)(s,I_),R=null!=(r=null==x?void 0:x.paper)?r:b,j=i.useRef(),O=(0,ii.A)(j,R.ref),T=(0,Ft.A)({},s,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:R,transformOrigin:w,TransitionComponent:_,transitionDuration:S,TransitionProps:k}),I=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"],paper:["paper"]},O_,t)})(T),P=i.useCallback((()=>{if("anchorPosition"===d)return c;const e=L_(l),t=(e&&1===e.nodeType?e:(0,Ty.A)(j.current).body).getBoundingClientRect();return{top:t.top+N_(t,u.vertical),left:t.left+M_(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),N=i.useCallback((e=>({vertical:N_(e,w.vertical),horizontal:M_(e,w.horizontal)})),[w.horizontal,w.vertical]),M=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=N(t);if("none"===d)return{top:null,left:null,transformOrigin:D_(r)};const n=P();let o=n.top-r.vertical,i=n.left-r.horizontal;const s=o+t.height,a=i+t.width,u=(0,sl.A)(L_(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&s>c){const e=s-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(a>p){const e=a-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:D_(r)}}),[l,d,P,N,g]),[D,L]=i.useState(v),F=i.useCallback((()=>{const e=j.current;if(!e)return;const t=M(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,L(!0)}),[M]);i.useEffect((()=>(C&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,C,F]);i.useEffect((()=>{v&&F()})),i.useImperativeHandle(a,(()=>v?{updatePosition:()=>{F()}}:null),[v,F]),i.useEffect((()=>{if(!v)return;const e=(0,il.A)((()=>{F()})),t=(0,sl.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,v,F]);let z=S;"auto"!==S||_.muiSupportAuto||(z=void 0);const B=f||(l?(0,Ty.A)(L_(l)).body:void 0),$=null!=(n=null==y?void 0:y.root)?n:F_,H=null!=(o=null==y?void 0:y.paper)?o:z_,U=ra({elementType:H,externalSlotProps:(0,Ft.A)({},R,{style:D?R.style:(0,Ft.A)({},R.style,{opacity:0})}),additionalProps:{elevation:m,ref:O},ownerState:T,className:(0,zt.A)(I.paper,null==R?void 0:R.className)}),W=ra({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:v},ownerState:T,className:(0,zt.A)(I.root,h)}),{slotProps:V}=W,q=(0,Lt.A)(W,P_);return(0,Ne.jsx)($,(0,Ft.A)({},q,!Gs($)&&{slotProps:V,disableScrollLock:C},{children:(0,Ne.jsx)(_,(0,Ft.A)({appear:!0,in:v,onEntering:(e,t)=>{A&&A(e,t),F()},onExited:()=>{L(!1)},timeout:z},k,{children:(0,Ne.jsx)(H,(0,Ft.A)({},U,{children:p}))}))}))}));function $_(e){return(0,qt.Ay)("MuiMenu",e)}(0,Vt.A)("MuiMenu",["root","paper","list"]);const H_=["onEntering"],U_=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],W_={vertical:"top",horizontal:"right"},V_={vertical:"top",horizontal:"left"},q_=(0,Ht.Ay)(B_,{shouldForwardProp:e=>(0,dl.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),G_=(0,Ht.Ay)(z_,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Q_=(0,Ht.Ay)(Uy,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),K_=i.forwardRef((function(e,t){var r,n;const o=(0,Ut.b)({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:b={},slotProps:y={}}=o,x=(0,Lt.A)(o.TransitionProps,H_),w=(0,Lt.A)(o,U_),_=Xi(),S=(0,Ft.A)({},o,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:m,TransitionProps:x,variant:v}),A=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"],paper:["paper"],list:["list"]},$_,t)})(S),C=s&&!u&&p,k=i.useRef(null);let E=-1;i.Children.map(a,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===E)&&(E=t))}));const R=null!=(r=b.paper)?r:G_,j=null!=(n=y.paper)?n:h,O=ra({elementType:b.root,externalSlotProps:y.root,ownerState:S,className:[A.root,l]}),T=ra({elementType:R,externalSlotProps:j,ownerState:S,className:A.paper});return(0,Ne.jsx)(q_,(0,Ft.A)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?W_:V_,slots:{paper:R,root:b.root},slotProps:{root:O,paper:T},open:p,ref:t,transitionDuration:m,TransitionProps:(0,Ft.A)({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:_?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:S},w,{classes:f,children:(0,Ne.jsx)(Q_,(0,Ft.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:s&&(-1===E||u),autoFocusItem:C,variant:v},c,{className:(0,zt.A)(A.list,c.className),children:a}))}))}));function J_(e){return(0,qt.Ay)("MuiNativeSelect",e)}const X_=(0,Vt.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Y_=["className","disabled","error","IconComponent","inputRef","variant"],Z_=e=>{let{ownerState:t,theme:r}=e;return(0,Ft.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Ft.A)({},r.vars?{backgroundColor:`rgba(${r.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${X_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},eS=(0,Ht.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:dl.A,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${X_.multiple}`]:t.multiple}]}})(Z_),tS=e=>{let{ownerState:t,theme:r}=e;return(0,Ft.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,[`&.${X_.disabled}`]:{color:(r.vars||r).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},rS=(0,Ht.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${(0,Wt.A)(r.variant)}`],r.open&&t.iconOpen]}})(tS),nS=i.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:s,inputRef:a,variant:l="standard"}=e,u=(0,Lt.A)(e,Y_),c=(0,Ft.A)({},e,{disabled:n,variant:l,error:o}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:s}=e,a={select:["select",r,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Wt.A)(r)}`,i&&"iconOpen",n&&"disabled"]};return(0,$t.A)(a,J_,t)})(c);return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)(eS,(0,Ft.A)({ownerState:c,className:(0,zt.A)(d.select,r),disabled:n,ref:a||t},u)),e.multiple?null:(0,Ne.jsx)(rS,{as:s,ownerState:c,className:d.icon})]})}));var oS=r(7123),iS=r(4516);function sS(e){return(0,qt.Ay)("MuiSelect",e)}const aS=(0,Vt.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var lS;const uS=["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"],cS=(0,Ht.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${aS.select}`]:t.select},{[`&.${aS.select}`]:t[r.variant]},{[`&.${aS.error}`]:t.error},{[`&.${aS.multiple}`]:t.multiple}]}})(Z_,{[`&.${aS.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),dS=(0,Ht.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${(0,Wt.A)(r.variant)}`],r.open&&t.iconOpen]}})(tS),pS=(0,Ht.Ay)("input",{shouldForwardProp:e=>(0,oS.A)(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 hS(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function fS(e){return null==e||"string"===typeof e&&!e.trim()}const mS=i.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:s,autoWidth:a,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:f=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:b={},multiple:y,name:x,onBlur:w,onChange:_,onClose:S,onFocus:A,onOpen:C,open:k,readOnly:E,renderValue:R,SelectDisplayProps:j={},tabIndex:O,value:T,variant:I="standard"}=e,P=(0,Lt.A)(e,uS),[N,M]=(0,iS.A)({controlled:T,default:d,name:"Select"}),[D,L]=(0,iS.A)({controlled:k,default:c,name:"Select"}),F=i.useRef(null),z=i.useRef(null),[B,$]=i.useState(null),{current:H}=i.useRef(null!=k),[U,W]=i.useState(),V=(0,ii.A)(t,g),q=i.useCallback((e=>{z.current=e,e&&$(e)}),[]),G=null==B?void 0:B.parentNode;i.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:F.current,value:N})),[N]),i.useEffect((()=>{c&&D&&B&&!H&&(W(a?null:G.clientWidth),z.current.focus())}),[B,a]),i.useEffect((()=>{s&&z.current.focus()}),[s]),i.useEffect((()=>{if(!v)return;const e=(0,Ty.A)(z.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const Q=(e,t)=>{e?C&&C(t):S&&S(t),H||(W(a?null:G.clientWidth),L(e))},K=i.Children.toArray(l),J=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(N)?N.slice():[];const t=N.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),N!==r&&(M(r),_)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),_(o,e)}y||Q(!1,t)}},X=null!==B&&D;let Y,Z;delete P["aria-invalid"];const ee=[];let te=!1,re=!1;(im({value:N})||h)&&(R?Y=R(N):te=!0);const ne=K.map((e=>{if(!i.isValidElement(e))return null;let t;if(y){if(!Array.isArray(N))throw new Error((0,Ed.A)(2));t=N.some((t=>hS(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=hS(N,e.props.value),t&&te&&(Z=e.props.children);return t&&(re=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:J(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&&(Y=y?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Z);let oe,ie=U;!a&&H&&B&&(ie=G.clientWidth),oe="undefined"!==typeof O?O:p?null:0;const se=j.id||(x?`mui-component-select-${x}`:void 0),ae=(0,Ft.A)({},e,{variant:I,value:N,open:X,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:s}=e,a={select:["select",r,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Wt.A)(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,$t.A)(a,sS,t)})(ae),ue=(0,Ft.A)({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ce=(0,Vs.A)();return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)(cS,(0,Ft.A)({ref:q,tabIndex:oe,role:"combobox","aria-controls":ce,"aria-disabled":p?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,se].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!E){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Q(!0,e))}},onMouseDown:p||E?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Q(!0,e))},onBlur:e=>{!X&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:N,name:x}}),w(e))},onFocus:A},j,{ownerState:ae,className:(0,zt.A)(j.className,le.select,u),id:se,children:fS(Y)?lS||(lS=(0,Ne.jsx)("span",{className:"notranslate",children:"\u200b"})):Y})),(0,Ne.jsx)(pS,(0,Ft.A)({"aria-invalid":f,value:Array.isArray(N)?N.join(","):N,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(M(t.props.value),_&&_(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:s,ownerState:ae},P)),(0,Ne.jsx)(dS,{as:m,className:le.icon,ownerState:ae}),(0,Ne.jsx)(K_,(0,Ft.A)({id:`menu-${x||""}`,anchorEl:G,open:X,onClose:e=>{Q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:(0,Ft.A)({"aria-labelledby":v,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ce},b.MenuListProps),slotProps:(0,Ft.A)({},b.slotProps,{paper:(0,Ft.A)({},ue,{style:(0,Ft.A)({minWidth:ie},null!=ue?ue.style:null)})}),children:ne}))]})})),gS=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],vS=(0,Ht.Ay)(dm,{shouldForwardProp:e=>(0,dl.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...um(e,t),!r.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:r}=e;let n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),(0,Ft.A)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wv.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wv.disabled}, .${wv.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${wv.disabled}:before`]:{borderBottomStyle:"dotted"}})})),bS=(0,Ht.Ay)(pm,{name:"MuiInput",slot:"Input",overridesResolver:cm})({}),yS=i.forwardRef((function(e,t){var r,n,o,i;const s=(0,Ut.b)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:f={},type:m="text"}=s,g=(0,Lt.A)(s,gS),v=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,$t.A)(n,xv,t);return(0,Ft.A)({},t,o)})(s),b={root:{ownerState:{disableUnderline:a}}},y=(null!=h?h:u)?(0,Qp.A)(null!=h?h:u,b):b,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:vS,w=null!=(o=null!=(i=f.input)?i:l.Input)?o:bS;return(0,Ne.jsx)(fm,(0,Ft.A)({slots:{root:x,input:w},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));yS.muiName="Input";const xS=yS,wS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_S=(0,Ht.Ay)(dm,{shouldForwardProp:e=>(0,dl.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...um(e,t),!r.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:r}=e;var n;const o="light"===t.palette.mode,i=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Ft.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},[`&.${Cv.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},[`&.${Cv.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(t.vars||t).palette[r.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Cv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Cv.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Cv.disabled}, .${Cv.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Cv.disabled}:before`]:{borderBottomStyle:"dotted"}},r.startAdornment&&{paddingLeft:12},r.endAdornment&&{paddingRight:12},r.multiline&&(0,Ft.A)({padding:"25px 12px 8px"},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9}))})),SS=(0,Ht.Ay)(pm,{name:"MuiFilledInput",slot:"Input",overridesResolver:cm})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),AS=i.forwardRef((function(e,t){var r,n,o,i;const s=(0,Ut.b)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:h={},type:f="text"}=s,m=(0,Lt.A)(s,wS),g=(0,Ft.A)({},s,{fullWidth:u,inputComponent:c,multiline:d,type:f}),v=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,$t.A)(n,Av,t);return(0,Ft.A)({},t,o)})(s),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?(0,Qp.A)(b,null!=p?p:l):b,x=null!=(r=null!=(n=h.root)?n:a.Root)?r:_S,w=null!=(o=null!=(i=h.input)?i:a.Input)?o:SS;return(0,Ne.jsx)(fm,(0,Ft.A)({slots:{root:x,input:w},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:f},m,{classes:v}))}));AS.muiName="Input";const CS=AS;var kS;const ES=["children","classes","className","label","notched"],RS=(0,Ht.Ay)("fieldset",{shouldForwardProp:dl.A})({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%"}),jS=(0,Ht.Ay)("legend",{shouldForwardProp:dl.A})((e=>{let{ownerState:t,theme:r}=e;return(0,Ft.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,Ft.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));const OS=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],TS=(0,Ht.Ay)(dm,{shouldForwardProp:e=>(0,dl.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:um})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,Ft.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Sv.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Sv.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Sv.focused} .${Sv.notchedOutline}`]:{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2},[`&.${Sv.error} .${Sv.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Sv.disabled} .${Sv.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,Ft.A)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),IS=(0,Ht.Ay)((function(e){const{className:t,label:r,notched:n}=e,o=(0,Lt.A)(e,ES),i=null!=r&&""!==r,s=(0,Ft.A)({},e,{notched:n,withLabel:i});return(0,Ne.jsx)(RS,(0,Ft.A)({"aria-hidden":!0,className:t,ownerState:s},o,{children:(0,Ne.jsx)(jS,{ownerState:s,children:i?(0,Ne.jsx)("span",{children:r}):kS||(kS=(0,Ne.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}})),PS=(0,Ht.Ay)(pm,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:cm})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),NS=i.forwardRef((function(e,t){var r,n,o,s,a;const l=(0,Ut.b)({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:f,slots:m={},type:g="text"}=l,v=(0,Lt.A)(l,OS),b=(e=>{const{classes:t}=e,r=(0,$t.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_v,t);return(0,Ft.A)({},t,r)})(l),y=Zf(),x=Xf({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=(0,Ft.A)({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:h,size:x.size,type:g}),_=null!=(r=null!=(n=m.root)?n:u.Root)?r:TS,S=null!=(o=null!=(s=m.input)?s:u.Input)?o:PS;return(0,Ne.jsx)(fm,(0,Ft.A)({slots:{root:_,input:S},renderSuffix:e=>(0,Ne.jsx)(IS,{ownerState:w,className:b.notchedOutline,label:null!=p&&""!==p&&x.required?a||(a=(0,Ne.jsxs)(i.Fragment,{children:[p,"\u2009","*"]})):p,notched:"undefined"!==typeof f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:t,type:g},v,{classes:(0,Ft.A)({},b,{notchedOutline:null})}))}));NS.muiName="Input";const MS=NS,DS=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],LS=["root"],FS={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,dl.A)(e)&&"variant"!==e,slot:"Root"},zS=(0,Ht.Ay)(xS,FS)(""),BS=(0,Ht.Ay)(MS,FS)(""),$S=(0,Ht.Ay)(CS,FS)(""),HS=i.forwardRef((function(e,t){const r=(0,Ut.b)({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=kv,id:d,input:p,inputProps:h,label:f,labelId:m,MenuProps:g,multiple:v=!1,native:b=!1,onClose:y,onOpen:x,open:w,renderValue:_,SelectDisplayProps:S,variant:A="outlined"}=r,C=(0,Lt.A)(r,DS),k=b?nS:mS,E=Xf({props:r,muiFormControl:Zf(),states:["variant","error"]}),R=E.variant||A,j=(0,Ft.A)({},r,{variant:R,classes:s}),O=(e=>{const{classes:t}=e;return t})(j),T=(0,Lt.A)(O,LS),I=p||{standard:(0,Ne.jsx)(zS,{ownerState:j}),outlined:(0,Ne.jsx)(BS,{label:f,ownerState:j}),filled:(0,Ne.jsx)($S,{ownerState:j})}[R],P=(0,ii.A)(t,na(I));return(0,Ne.jsx)(i.Fragment,{children:i.cloneElement(I,(0,Ft.A)({inputComponent:k,inputProps:(0,Ft.A)({children:o,error:E.error,IconComponent:c,variant:R,type:void 0,multiple:v},b?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:y,onOpen:x,open:w,renderValue:_,SelectDisplayProps:(0,Ft.A)({id:d},S)},h,{classes:h?(0,Qp.A)(T,h.classes):T},p?p.props.inputProps:{})},(v&&b||u)&&"outlined"===R?{notched:!0}:{},{ref:P,className:(0,zt.A)(I.props.className,a,O.root)},!p&&{variant:R},C))})}));HS.muiName="Select";const US=HS;const WS=i.createContext();const VS=i.createContext();function qS(e){return(0,qt.Ay)("MuiTableCell",e)}const GS=(0,Vt.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),QS=["align","className","component","padding","scope","size","sortDirection","variant"],KS=(0,Ht.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${(0,Wt.A)(r.size)}`],"normal"!==r.padding&&t[`padding${(0,Wt.A)(r.padding)}`],"inherit"!==r.align&&t[`align${(0,Wt.A)(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n    ${"light"===t.palette.mode?(0,fi.a)((0,fi.X4)(t.palette.divider,1),.88):(0,fi.e$)((0,fi.X4)(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",[`&.${GS.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),JS=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:s,padding:a,scope:l,size:u,sortDirection:c,variant:d}=r,p=(0,Lt.A)(r,QS),h=i.useContext(WS),f=i.useContext(VS),m=f&&"head"===f.variant;let g;g=s||(m?"th":"td");let v=l;"td"===g?v=void 0:!v&&m&&(v="col");const b=d||f&&f.variant,y=(0,Ft.A)({},r,{align:n,component:g,padding:a||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:"head"===b&&h&&h.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:s}=e,a={root:["root",r,s&&"stickyHeader","inherit"!==n&&`align${(0,Wt.A)(n)}`,"normal"!==o&&`padding${(0,Wt.A)(o)}`,`size${(0,Wt.A)(i)}`]};return(0,$t.A)(a,qS,t)})(y);let w=null;return c&&(w="asc"===c?"ascending":"descending"),(0,Ne.jsx)(KS,(0,Ft.A)({as:g,ref:t,className:(0,zt.A)(x.root,o),"aria-sort":w,scope:v,ownerState:y},p))}));function XS(e){return(0,qt.Ay)("MuiToolbar",e)}(0,Vt.A)("MuiToolbar",["root","gutters","regular","dense"]);const YS=["className","component","disableGutters","variant"],ZS=(0,Ht.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===r.variant&&{minHeight:48})}),(e=>{let{theme:t,ownerState:r}=e;return"regular"===r.variant&&t.mixins.toolbar})),eA=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:i=!1,variant:s="regular"}=r,a=(0,Lt.A)(r,YS),l=(0,Ft.A)({},r,{component:o,disableGutters:i,variant:s}),u=(e=>{const{classes:t,disableGutters:r,variant:n}=e,o={root:["root",!r&&"gutters",n]};return(0,$t.A)(o,XS,t)})(l);return(0,Ne.jsx)(ZS,(0,Ft.A)({as:o,className:(0,zt.A)(u.root,n),ref:t,ownerState:l},a))})),tA=(0,eu.A)((0,Ne.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),rA=(0,eu.A)((0,Ne.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),nA=(0,eu.A)((0,Ne.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),oA=(0,eu.A)((0,Ne.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),iA=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],sA=i.forwardRef((function(e,t){var r,n,o,i,s,a,l,u;const{backIconButtonProps:c,count:d,disabled:p=!1,getItemAriaLabel:h,nextIconButtonProps:f,onPageChange:m,page:g,rowsPerPage:v,showFirstButton:b,showLastButton:y,slots:x={},slotProps:w={}}=e,_=(0,Lt.A)(e,iA),S=Xi(),A=null!=(r=x.firstButton)?r:Gi,C=null!=(n=x.lastButton)?n:Gi,k=null!=(o=x.nextButton)?o:Gi,E=null!=(i=x.previousButton)?i:Gi,R=null!=(s=x.firstButtonIcon)?s:oA,j=null!=(a=x.lastButtonIcon)?a:nA,O=null!=(l=x.nextButtonIcon)?l:rA,T=null!=(u=x.previousButtonIcon)?u:tA,I=S?C:A,P=S?k:E,N=S?E:k,M=S?A:C,D=S?w.lastButton:w.firstButton,L=S?w.nextButton:w.previousButton,F=S?w.previousButton:w.nextButton,z=S?w.firstButton:w.lastButton;return(0,Ne.jsxs)("div",(0,Ft.A)({ref:t},_,{children:[b&&(0,Ne.jsx)(I,(0,Ft.A)({onClick:e=>{m(e,0)},disabled:p||0===g,"aria-label":h("first",g),title:h("first",g)},D,{children:S?(0,Ne.jsx)(j,(0,Ft.A)({},w.lastButtonIcon)):(0,Ne.jsx)(R,(0,Ft.A)({},w.firstButtonIcon))})),(0,Ne.jsx)(P,(0,Ft.A)({onClick:e=>{m(e,g-1)},disabled:p||0===g,color:"inherit","aria-label":h("previous",g),title:h("previous",g)},null!=L?L:c,{children:S?(0,Ne.jsx)(O,(0,Ft.A)({},w.nextButtonIcon)):(0,Ne.jsx)(T,(0,Ft.A)({},w.previousButtonIcon))})),(0,Ne.jsx)(N,(0,Ft.A)({onClick:e=>{m(e,g+1)},disabled:p||-1!==d&&g>=Math.ceil(d/v)-1,color:"inherit","aria-label":h("next",g),title:h("next",g)},null!=F?F:f,{children:S?(0,Ne.jsx)(T,(0,Ft.A)({},w.previousButtonIcon)):(0,Ne.jsx)(O,(0,Ft.A)({},w.nextButtonIcon))})),y&&(0,Ne.jsx)(M,(0,Ft.A)({onClick:e=>{m(e,Math.max(0,Math.ceil(d/v)-1))},disabled:p||g>=Math.ceil(d/v)-1,"aria-label":h("last",g),title:h("last",g)},z,{children:S?(0,Ne.jsx)(R,(0,Ft.A)({},w.firstButtonIcon)):(0,Ne.jsx)(j,(0,Ft.A)({},w.lastButtonIcon))}))]}))}));var aA=r(5879);function lA(e){return(0,qt.Ay)("MuiTablePagination",e)}const uA=(0,Vt.A)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var cA;const dA=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],pA=(0,Ht.Ay)(JS,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),hA=(0,Ht.Ay)(eA,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,Ft.A)({[`& .${uA.actions}`]:t.actions},t.toolbar)})((e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${uA.actions}`]:{flexShrink:0,marginLeft:20}}})),fA=(0,Ht.Ay)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),mA=(0,Ht.Ay)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((e=>{let{theme:t}=e;return(0,Ft.A)({},t.typography.body2,{flexShrink:0})})),gA=(0,Ht.Ay)(US,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,Ft.A)({[`& .${uA.selectIcon}`]:t.selectIcon,[`& .${uA.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${uA.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),vA=(0,Ht.Ay)(Ax,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),bA=(0,Ht.Ay)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((e=>{let{theme:t}=e;return(0,Ft.A)({},t.typography.body2,{flexShrink:0})}));function yA(e){let{from:t,to:r,count:n}=e;return`${t}\u2013${r} of ${-1!==n?n:`more than ${r}`}`}function xA(e){return`Go to ${e} page`}const wA=i.forwardRef((function(e,t){var r;const n=(0,Ut.b)({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=sA,backIconButtonProps:s,className:a,colSpan:l,component:u=JS,count:c,disabled:d=!1,getItemAriaLabel:p=xA,labelDisplayedRows:h=yA,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:m,onPageChange:g,onRowsPerPageChange:v,page:b,rowsPerPage:y,rowsPerPageOptions:x=[10,25,50,100],SelectProps:w={},showFirstButton:_=!1,showLastButton:S=!1,slotProps:A={},slots:C={}}=n,k=(0,Lt.A)(n,dA),E=n,R=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},lA,t)})(E),j=null!=(r=null==A?void 0:A.select)?r:w,O=j.native?"option":vA;let T;u!==JS&&"td"!==u||(T=l||1e3);const I=(0,aA.A)(j.id),P=(0,aA.A)(j.labelId);return(0,Ne.jsx)(pA,(0,Ft.A)({colSpan:T,ref:t,as:u,ownerState:E,className:(0,zt.A)(R.root,a)},k,{children:(0,Ne.jsxs)(hA,{className:R.toolbar,children:[(0,Ne.jsx)(fA,{className:R.spacer}),x.length>1&&(0,Ne.jsx)(mA,{className:R.selectLabel,id:P,children:f}),x.length>1&&(0,Ne.jsx)(gA,(0,Ft.A)({variant:"standard"},!j.variant&&{input:cA||(cA=(0,Ne.jsx)(fm,{}))},{value:y,onChange:v,id:I,labelId:P},j,{classes:(0,Ft.A)({},j.classes,{root:(0,zt.A)(R.input,R.selectRoot,(j.classes||{}).root),select:(0,zt.A)(R.select,(j.classes||{}).select),icon:(0,zt.A)(R.selectIcon,(j.classes||{}).icon)}),disabled:d,children:x.map((e=>(0,i.createElement)(O,(0,Ft.A)({},!Gs(O)&&{ownerState:E},{className:R.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),(0,Ne.jsx)(bA,{className:R.displayedRows,children:h({from:0===c?0:b*y+1,to:-1===c?(b+1)*y:-1===y?c:Math.min(c,(b+1)*y),count:-1===c?-1:c,page:b})}),(0,Ne.jsx)(o,{className:R.actions,backIconButtonProps:s,count:c,nextIconButtonProps:m,onPageChange:g,page:b,rowsPerPage:y,showFirstButton:_,showLastButton:S,slotProps:A.actions,slots:C.actions,getItemAriaLabel:p,disabled:d})]})}))})),_A=(0,Ht.Ay)(wA)((e=>{let{theme:t}=e;return{[`& .${uA.selectLabel}`]:{display:"none",[t.breakpoints.up("sm")]:{display:"block"}},[`& .${uA.input}`]:{display:"none",[t.breakpoints.up("sm")]:{display:"inline-flex"}}}})),SA=i.forwardRef((function(e,t){const r=Af(),n=tp(),o=Xd(r,Mf),s=Xd(r,Df),a=i.useMemo((()=>Math.floor(s/(o.pageSize||1))),[s,o.pageSize]),l=i.useCallback((e=>{const t=Number(e.target.value);r.current.setPageSize(t)}),[r]),u=i.useCallback(((e,t)=>{r.current.setPage(t)}),[r]);const c=(e=>{for(let t=0;t<n.pageSizeOptions.length;t+=1){const r=n.pageSizeOptions[t];if("number"===typeof r){if(r===e)return!0}else if(r.value===e)return!0}return!1})(o.pageSize)?n.pageSizeOptions:[];return(0,Ne.jsx)(_A,(0,Ft.A)({ref:t,component:"div",count:s,page:o.page<=a?o.page:a,rowsPerPageOptions:c,rowsPerPage:o.pageSize,onPageChange:u,onRowsPerPageChange:l},r.current.getLocaleText("MuiTablePagination"),e))})),AA=["className"],CA=oh("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function kA(e){const{className:t}=e,r=(0,Lt.A)(e,AA),n=tp(),o=(e=>{const{classes:t}=e;return(0,$t.A)({root:["panelContent"]},Md,t)})(n);return(0,Ne.jsx)(CA,(0,Ft.A)({className:Cd(t,o.root),ownerState:n},r))}const EA=["className"],RA=oh("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})((e=>{let{theme:t}=e;return{padding:t.spacing(.5),display:"flex",justifyContent:"space-between"}}));function jA(e){const{className:t}=e,r=(0,Lt.A)(e,EA),n=tp(),o=(e=>{const{classes:t}=e;return(0,$t.A)({root:["panelFooter"]},Md,t)})(n);return(0,Ne.jsx)(RA,(0,Ft.A)({className:Cd(t,o.root),ownerState:n},r))}const OA=["className","slotProps"],TA=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),IA=()=>!0,PA=i.forwardRef((function(e,t){const{className:r,slotProps:n={}}=e,o=(0,Lt.A)(e,OA),i=tp(),s=(e=>{const{classes:t}=e;return(0,$t.A)({root:["panelWrapper"]},Md,t)})(i);return(0,Ne.jsx)(la,(0,Ft.A)({open:!0,disableEnforceFocus:!0,isEnabled:IA},n.TrapFocus,{children:(0,Ne.jsx)(TA,(0,Ft.A)({ref:t,tabIndex:-1,className:Cd(r,s.root),ownerState:i},o))}))})),NA=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],MA=["InputComponentProps"],DA=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((e=>{let{theme:t}=e;return{display:"flex",padding:t.spacing(1)}})),LA=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})((e=>{let{theme:t}=e;return{flexShrink:0,justifyContent:"flex-end",marginRight:t.spacing(.5),marginBottom:t.spacing(.2)}})),FA=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),zA=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),BA=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),$A=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),HA=e=>e.headerName||e.field,UA=new Intl.Collator,WA=i.forwardRef((function(e,t){var r,n,o,s,a,l,u,c,d,p;const{item:h,hasMultipleFilters:f,deleteFilter:m,applyFilterChanges:g,multiFilterOperator:v,showMultiFilterOperators:b,disableMultiFilterOperator:y,applyMultiFilterOperatorChanges:x,focusElementRef:w,logicOperators:_=[eb.And,eb.Or],columnsSort:S,filterColumns:A,deleteIconProps:C={},logicOperatorInputProps:k={},operatorInputProps:E={},columnInputProps:R={},valueInputProps:j={}}=e,O=(0,Lt.A)(e,NA),T=Af(),I=Xd(T,Ap),P=Xd(T,hh),N=(0,Vs.A)(),M=(0,Vs.A)(),D=(0,Vs.A)(),L=(0,Vs.A)(),F=tp(),z=(e=>{const{classes:t}=e;return(0,$t.A)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Md,t)})(F),B=i.useRef(null),$=i.useRef(null),H=f&&_.length>0,U=(null==(r=F.slotProps)?void 0:r.baseFormControl)||{},W=null==(o=((null==(n=F.slotProps)?void 0:n.baseSelect)||{}).native)||o,V=(null==(s=F.slotProps)?void 0:s.baseInputLabel)||{},q=(null==(a=F.slotProps)?void 0:a.baseSelectOption)||{},{InputComponentProps:G}=j,Q=(0,Lt.A)(j,MA),K=i.useMemo((()=>{if(void 0===A||"function"!==typeof A)return I;const e=A({field:h.field,columns:I,currentFilters:(null==P?void 0:P.items)||[]});return I.filter((t=>e.includes(t.field)))}),[A,null==P?void 0:P.items,I,h.field]),J=i.useMemo((()=>{switch(S){case"asc":return K.sort(((e,t)=>UA.compare(HA(e),HA(t))));case"desc":return K.sort(((e,t)=>-UA.compare(HA(e),HA(t))));default:return K}}),[K,S]),X=h.field?T.current.getColumn(h.field):null,Y=i.useMemo((()=>{var e;return h.operator&&X?null==(e=X.filterOperators)?void 0:e.find((e=>e.value===h.operator)):null}),[h,X]),Z=i.useCallback((e=>{const t=e.target.value,r=T.current.getColumn(t);if(r.field===X.field)return;const n=r.filterOperators.find((e=>e.value===h.operator))||r.filterOperators[0],o=!n.InputComponent||n.InputComponent!==(null==Y?void 0:Y.InputComponent)||r.type!==X.type;g((0,Ft.A)({},h,{field:t,operator:n.value,value:o?void 0:h.value}))}),[T,g,h,X,Y]),ee=i.useCallback((e=>{const t=e.target.value,r=null==X?void 0:X.filterOperators.find((e=>e.value===t)),n=!(null!=r&&r.InputComponent)||(null==r?void 0:r.InputComponent)!==(null==Y?void 0:Y.InputComponent);g((0,Ft.A)({},h,{operator:t,value:n?void 0:h.value}))}),[g,h,X,Y]),te=i.useCallback((e=>{const t=e.target.value===eb.And.toString()?eb.And:eb.Or;x(t)}),[x]);return i.useImperativeHandle(w,(()=>({focus:()=>{var e;null!=Y&&Y.InputComponent?null==B||null==(e=B.current)||e.focus():$.current.focus()}})),[Y]),(0,Ne.jsxs)(DA,(0,Ft.A)({ref:t,className:z.root,"data-id":h.id,ownerState:F},O,{children:[(0,Ne.jsx)(LA,(0,Ft.A)({variant:"standard",as:F.slots.baseFormControl},U,C,{className:Cd(z.deleteIcon,U.className,C.className),ownerState:F,children:(0,Ne.jsx)(F.slots.baseIconButton,(0,Ft.A)({"aria-label":T.current.getLocaleText("filterPanelDeleteIconLabel"),title:T.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{F.disableMultipleColumnsFiltering?void 0===h.value?m(h):g((0,Ft.A)({},h,{value:void 0})):m(h)},size:"small"},null==(l=F.slotProps)?void 0:l.baseIconButton,{children:(0,Ne.jsx)(F.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),(0,Ne.jsx)(FA,(0,Ft.A)({variant:"standard",as:F.slots.baseFormControl},U,k,{sx:(0,Ft.A)({display:H?"flex":"none",visibility:b?"visible":"hidden"},U.sx||{},k.sx||{}),className:Cd(z.logicOperatorInput,U.className,k.className),ownerState:F,children:(0,Ne.jsx)(F.slots.baseSelect,(0,Ft.A)({inputProps:{"aria-label":T.current.getLocaleText("filterPanelLogicOperator")},value:v,onChange:te,disabled:!!y||1===_.length,native:W},null==(u=F.slotProps)?void 0:u.baseSelect,{children:_.map((e=>(0,i.createElement)(F.slots.baseSelectOption,(0,Ft.A)({},q,{native:W,key:e.toString(),value:e.toString()}),T.current.getLocaleText((e=>{switch(e){case eb.And:return"filterPanelOperatorAnd";case eb.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(e)))))}))})),(0,Ne.jsxs)(zA,(0,Ft.A)({variant:"standard",as:F.slots.baseFormControl},U,R,{className:Cd(z.columnInput,U.className,R.className),ownerState:F,children:[(0,Ne.jsx)(F.slots.baseInputLabel,(0,Ft.A)({},V,{htmlFor:N,id:M,children:T.current.getLocaleText("filterPanelColumns")})),(0,Ne.jsx)(F.slots.baseSelect,(0,Ft.A)({labelId:M,id:N,label:T.current.getLocaleText("filterPanelColumns"),value:h.field||"",onChange:Z,native:W},null==(c=F.slotProps)?void 0:c.baseSelect,{children:J.map((e=>(0,i.createElement)(F.slots.baseSelectOption,(0,Ft.A)({},q,{native:W,key:e.field,value:e.field}),HA(e))))}))]})),(0,Ne.jsxs)(BA,(0,Ft.A)({variant:"standard",as:F.slots.baseFormControl},U,E,{className:Cd(z.operatorInput,U.className,E.className),ownerState:F,children:[(0,Ne.jsx)(F.slots.baseInputLabel,(0,Ft.A)({},V,{htmlFor:D,id:L,children:T.current.getLocaleText("filterPanelOperator")})),(0,Ne.jsx)(F.slots.baseSelect,(0,Ft.A)({labelId:L,label:T.current.getLocaleText("filterPanelOperator"),id:D,value:h.operator,onChange:ee,native:W,inputRef:$},null==(d=F.slotProps)?void 0:d.baseSelect,{children:null==X||null==(p=X.filterOperators)?void 0:p.map((e=>(0,i.createElement)(F.slots.baseSelectOption,(0,Ft.A)({},q,{native:W,key:e.value,value:e.value}),e.label||T.current.getLocaleText(`filterOperator${(0,kd.A)(e.value)}`))))}))]})),(0,Ne.jsx)($A,(0,Ft.A)({variant:"standard",as:F.slots.baseFormControl},U,Q,{className:Cd(z.valueInput,U.className,Q.className),ownerState:F,children:null!=Y&&Y.InputComponent?(0,Ne.jsx)(Y.InputComponent,(0,Ft.A)({apiRef:T,item:h,applyValue:g,focusElementRef:B},Y.InputComponentProps,G)):null}))]}))})),VA=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],qA=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),GA=i.forwardRef((function(e,t){var r,n;const o=Af(),s=tp(),a=Xd(o,hh),l=Xd(o,Ap),u=i.useRef(null),c=i.useRef(null),{logicOperators:d=[eb.And,eb.Or],columnsSort:p,filterFormProps:h,getColumnForNewFilter:f,disableAddFilterButton:m=!1,disableRemoveAllButton:g=!1}=e,v=(0,Lt.A)(e,VA),b=o.current.upsertFilterItem,y=i.useCallback((e=>{o.current.setFilterLogicOperator(e)}),[o]),x=i.useCallback((()=>{let e;if(f&&"function"===typeof f){const t=f({currentFilters:(null==a?void 0:a.items)||[],columns:l});if(null===t)return null;e=l.find((e=>{let{field:r}=e;return r===t}))}else e=l.find((e=>{var t;return null==(t=e.filterOperators)?void 0:t.length}));return e?qA(e):null}),[null==a?void 0:a.items,l,f]),w=i.useCallback((()=>{if(void 0===f||"function"!==typeof f)return x();const e=a.items.length?a.items:[x()].filter(Boolean),t=f({currentFilters:e,columns:l});if(null===t)return null;const r=l.find((e=>{let{field:r}=e;return r===t}));return r?qA(r):null}),[a.items,l,f,x]),_=i.useMemo((()=>a.items.length?a.items:(c.current||(c.current=x()),c.current?[c.current]:[])),[a.items,x]),S=_.length>1,A=i.useCallback((e=>{const t=1===_.length;o.current.deleteFilterItem(e),t&&o.current.hideFilterPanel()}),[o,_.length]);return i.useEffect((()=>{d.length>0&&a.logicOperator&&!d.includes(a.logicOperator)&&y(d[0])}),[d,y,a.logicOperator]),i.useEffect((()=>{_.length>0&&u.current.focus()}),[_.length]),(0,Ne.jsxs)(PA,(0,Ft.A)({ref:t},v,{children:[(0,Ne.jsx)(kA,{children:_.map(((e,t)=>(0,Ne.jsx)(WA,(0,Ft.A)({item:e,applyFilterChanges:b,deleteFilter:A,hasMultipleFilters:S,showMultiFilterOperators:t>0,multiFilterOperator:a.logicOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:y,focusElementRef:t===_.length-1?u:null,logicOperators:d,columnsSort:p},h),null==e.id?t:e.id)))}),s.disableMultipleColumnsFiltering||m&&g?null:(0,Ne.jsxs)(jA,{children:[m?(0,Ne.jsx)("span",{}):(0,Ne.jsx)(s.slots.baseButton,(0,Ft.A)({onClick:()=>{const e=w();e&&o.current.upsertFilterItems([..._,e])},startIcon:(0,Ne.jsx)(s.slots.filterPanelAddIcon,{})},null==(r=s.slotProps)?void 0:r.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")})),g?null:(0,Ne.jsx)(s.slots.baseButton,(0,Ft.A)({onClick:()=>{1===_.length&&void 0===_[0].value&&(o.current.deleteFilterItem(_[0]),o.current.hideFilterPanel()),o.current.setFilterModel((0,Ft.A)({},a,{items:[]}))},startIcon:(0,Ne.jsx)(s.slots.filterPanelRemoveAllIcon,{})},null==(n=s.slotProps)?void 0:n.baseButton,{children:o.current.getLocaleText("filterPanelRemoveAll")}))]})]}))}));function QA(e){return(0,qt.Ay)("MuiSwitch",e)}const KA=(0,Vt.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var JA=r(8604);const XA=["component","direction","spacing","divider","children","className","useFlexGap"],YA=(0,nr.A)(),ZA=oh("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function eC(e){return Rw({props:e,name:"MuiStack",defaultTheme:YA})}function tC(e,t){const r=i.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o<r.length-1&&e.push(i.cloneElement(t,{key:`separator-${o}`})),e)),[])}const rC=e=>{let{ownerState:t,theme:r}=e,n=(0,Ft.A)({display:"flex",flexDirection:"column"},(0,gr.NI)({theme:r},(0,gr.kW)({values:t.direction,breakpoints:r.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,JA.LX)(r),o=Object.keys(r.breakpoints.values).reduce(((e,r)=>(("object"===typeof t.spacing&&null!=t.spacing[r]||"object"===typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e)),{}),i=(0,gr.kW)({values:t.direction,base:o}),s=(0,gr.kW)({values:t.spacing,base:o});"object"===typeof i&&Object.keys(i).forEach(((e,t,r)=>{if(!i[e]){const n=t>0?i[r[t-1]]:"column";i[e]=n}}));const a=(r,n)=>{return t.useFlexGap?{gap:(0,JA._W)(e,r)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,JA._W)(e,r)}};var o};n=(0,Qp.A)(n,(0,gr.NI)({theme:r},s,a))}return n=(0,gr.iZ)(r.breakpoints,n),n};const nC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=ZA,useThemeProps:r=eC,componentName:n="MuiStack"}=e,o=t(rC);return i.forwardRef((function(e,t){const i=r(e),s=(0,Bt.A)(i),{component:a="div",direction:l="column",spacing:u=0,divider:c,children:d,className:p,useFlexGap:h=!1}=s,f=(0,Lt.A)(s,XA),m={direction:l,spacing:u,useFlexGap:h},g=(0,$t.A)({root:["root"]},(e=>(0,qt.Ay)(n,e)),{});return(0,Ne.jsx)(o,(0,Ft.A)({as:a,ownerState:m,ref:t,className:er(g.root,p)},f,{children:c?tC(d,c):d}))}))}({createStyledComponent:(0,Ht.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Ut.b)({props:e,name:"MuiStack"})});function oC(e){return(0,qt.Ay)("MuiFormControlLabel",e)}const iC=(0,Vt.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),sC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],aC=(0,Ht.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${iC.label}`]:t.label},t.root,t[`labelPlacement${(0,Wt.A)(r.labelPlacement)}`]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${iC.disabled}`]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${iC.label}`]:{[`&.${iC.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})})),lC=(0,Ht.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${iC.error}`]:{color:(t.vars||t).palette.error.main}}})),uC=i.forwardRef((function(e,t){var r,n;const o=(0,Ut.b)({props:e,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:p="end",required:h,slotProps:f={}}=o,m=(0,Lt.A)(o,sC),g=Zf(),v=null!=(r=null!=u?u:l.props.disabled)?r:null==g?void 0:g.disabled,b=null!=h?h:l.props.required,y={disabled:v,required:b};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof l.props[e]&&"undefined"!==typeof o[e]&&(y[e]=o[e])}));const x=Xf({props:o,muiFormControl:g,states:["error"]}),w=(0,Ft.A)({},o,{disabled:v,labelPlacement:p,required:b,error:x.error}),_=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,s={root:["root",r&&"disabled",`labelPlacement${(0,Wt.A)(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,$t.A)(s,oC,t)})(w),S=null!=(n=f.typography)?n:a.typography;let A=d;return null==A||A.type===Yt||c||(A=(0,Ne.jsx)(Yt,(0,Ft.A)({component:"span"},S,{className:(0,zt.A)(_.label,null==S?void 0:S.className),children:A}))),(0,Ne.jsxs)(aC,(0,Ft.A)({className:(0,zt.A)(_.root,s),ownerState:w,ref:t},m,{children:[i.cloneElement(l,y),b?(0,Ne.jsxs)(nC,{display:"block",children:[A,(0,Ne.jsxs)(lC,{ownerState:w,"aria-hidden":!0,className:_.asterisk,children:["\u2009","*"]})]}):A]}))})),cC=["className"],dC=oh("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})((e=>{let{theme:t}=e;return{padding:t.spacing(1)}}));function pC(e){const{className:t}=e,r=(0,Lt.A)(e,cC),n=tp(),o=(e=>{const{classes:t}=e;return(0,$t.A)({root:["panelHeader"]},Md,t)})(n);return(0,Ne.jsx)(dC,(0,Ft.A)({className:Cd(t,o.root),ownerState:n},r))}const hC=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],fC=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),mC=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})((e=>{let{theme:t}=e;return{display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${KA.root}`]:{marginRight:t.spacing(.5)}}})),gC=((0,Ht.Ay)(Gi)({justifyContent:"flex-end"}),new Intl.Collator),vC=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;const bC=["children","className","classes"],yC=(0,Vt.A)("MuiDataGrid",["panel","paper"]),xC=(0,Ht.Ay)(sv,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((e=>{let{theme:t}=e;return{zIndex:t.zIndex.modal}})),wC=(0,Ht.Ay)(Ba,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}})),_C=i.forwardRef(((e,t)=>{const{children:r,className:n}=e,o=(0,Lt.A)(e,bC),s=Af(),a=tp(),l=yC,[u,c]=i.useState(!1),d=i.useCallback((()=>{s.current.hidePreferences()}),[s]),p=i.useCallback((e=>{vf(e.key)&&s.current.hidePreferences()}),[s]),h=i.useMemo((()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}]),[]),[f,m]=i.useState(null);return i.useEffect((()=>{var e;const t=null==(e=s.current.rootElementRef)||null==(e=e.current)?void 0:e.querySelector(`.${Dd.columnHeaders}`);t&&m(t)}),[s]),f?(0,Ne.jsx)(xC,(0,Ft.A)({ref:t,placement:"bottom-start",className:Cd(n,l.panel),ownerState:a,anchorEl:f,modifiers:h},o,{children:(0,Ne.jsx)(Sl,{mouseEvent:"onMouseUp",onClickAway:d,children:(0,Ne.jsx)(wC,{className:l.paper,ownerState:a,elevation:8,onKeyDown:p,children:u&&r})})})):null}));function SC(e){return i.memo(e,qd)}let AC;const CC=["changeReason","unstable_updateValueOnRender"],kC=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver","style"],EC=["changeReason","unstable_updateValueOnRender"],RC={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:my.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},jC=e=>{const{align:t,showRightBorder:r,isEditable:n,isSelected:o,isSelectionMode:i,classes:s}=e,a={root:["cell",`cell--text${(0,kd.A)(t)}`,n&&"cell--editable",o&&"selected",r&&"cell--withRightBorder",i&&!n&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return(0,$t.A)(a,Md,s)};const OC=SC(i.forwardRef(((e,t)=>{const{column:r,rowId:n,editCellState:o}=e,s=Af(),a=tp(),l=r.field,u=Xd(s,(()=>{try{const e=s.current.getCellParams(n,l);return e.api=s.current,e}catch(Wz){if(Wz instanceof xw)return RC;throw Wz}}),Kd),c=Xd(s,(()=>s.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:n,field:l})));if(u===RC)return null;const{cellMode:d,hasFocus:p,isEditable:h,value:f,formattedValue:m}=u,g="actions"===r.type,v="view"!==d&&h||g?-1:u.tabIndex,{classes:b,getCellClassName:y}=a,x=s.current.unstable_applyPipeProcessors("cellClassName",[],{id:n,field:l});let w;if(r.cellClassName&&x.push("function"===typeof r.cellClassName?r.cellClassName(u):r.cellClassName),y&&x.push(y(u)),null==o&&r.renderCell&&(w=r.renderCell(u),x.push(Dd["cell--withRenderer"]),x.push(null==b?void 0:b["cell--withRenderer"])),null!=o&&r.renderEditCell){const e=s.current.getRowWithUpdatedValues(n,r.field),t=(0,Lt.A)(o,CC),i=(0,Ft.A)({},u,{row:e},t);w=r.renderEditCell(i),x.push(Dd["cell--editing"]),x.push(null==b?void 0:b["cell--editing"])}const{slots:_}=a,S=_.cell,A=(0,Ft.A)({},e,{ref:t,field:l,formattedValue:m,hasFocus:p,isEditable:h,isSelected:c,value:f,cellMode:d,children:w,tabIndex:v,className:Cd(x)});return i.createElement(S,A)}))),TC=SC(i.forwardRef(((e,t)=>{var r,n,o,s;const{column:a,rowId:l,editCellState:u,align:c,colIndex:d,height:p,width:h,className:f,showRightBorder:m,colSpan:g,disableDragEvents:v,isNotVisible:b,onClick:y,onDoubleClick:x,onMouseDown:w,onMouseUp:_,onMouseOver:S,onKeyDown:A,onKeyUp:C,onDragEnter:k,onDragOver:E,style:R}=e,j=(0,Lt.A)(e,kC),O=Af(),T=tp(),I=a.field,P=Xd(O,(()=>{try{const e=O.current.getCellParams(l,I);return e.api=O.current,e}catch(Wz){if(Wz instanceof xw)return RC;throw Wz}}),Kd),N=Xd(O,(()=>O.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:I}))),{cellMode:M,hasFocus:D,isEditable:L,value:F,formattedValue:z}=P,B="actions"===a.type&&(null==(r=(n=a).getActions)?void 0:r.call(n,O.current.getRowParams(l)).some((e=>!e.props.disabled))),$="view"!==M&&L||B?-1:P.tabIndex,{classes:H,getCellClassName:U}=T,W=O.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:I});a.cellClassName&&W.push("function"===typeof a.cellClassName?a.cellClassName(P):a.cellClassName),U&&W.push(U(P));const V=null==z?F:z,q=i.useRef(null),G=(0,qs.A)(t,q),Q=i.useRef(null),K=null!=(o=T.unstable_cellSelection)&&o,J={align:c,showRightBorder:m,isEditable:L,classes:T.classes,isSelected:N,isSelectionMode:K},X=jC(J),Y=i.useCallback((e=>t=>{const r=O.current.getCellParams(l,I||"");O.current.publishEvent(e,r,t),_&&_(t)}),[O,I,_,l]),Z=i.useCallback((e=>t=>{const r=O.current.getCellParams(l,I||"");O.current.publishEvent(e,r,t),w&&w(t)}),[O,I,w,l]),ee=i.useCallback(((e,t)=>r=>{if(!O.current.getRow(l))return;const n=O.current.getCellParams(l,I||"");O.current.publishEvent(e,n,r),t&&t(r)}),[O,I,l]),te=i.useMemo((()=>{if(b)return(0,Ft.A)({padding:0,opacity:0,width:0,border:0},R);return(0,Ft.A)({minWidth:h,maxWidth:h,minHeight:p,maxHeight:"auto"===p?"none":p},R)}),[h,p,b,R]);if(i.useEffect((()=>{if(!D||M===my.Edit)return;const e=(0,oa.A)(O.current.rootElementRef.current);if(q.current&&!q.current.contains(e.activeElement)){const e=q.current.querySelector('[tabindex="0"]'),t=Q.current||e||q.current;if(void 0===AC&&document.createElement("div").focus({get preventScroll(){return AC=!0,!1}}),AC)t.focus({preventScroll:!0});else{const e=O.current.getScrollPosition();t.focus(),O.current.scroll(e)}}}),[D,M,O]),P===RC)return null;let re,ne=j.onFocus;if(null==u&&a.renderCell&&(re=a.renderCell(P),W.push(Dd["cell--withRenderer"]),W.push(null==H?void 0:H["cell--withRenderer"])),null!=u&&a.renderEditCell){const e=O.current.getRowWithUpdatedValues(l,a.field),t=(0,Lt.A)(u,EC),r=(0,Ft.A)({},P,{row:e},t);re=a.renderEditCell(r),W.push(Dd["cell--editing"]),W.push(null==H?void 0:H["cell--editing"])}if(void 0===re){const e=null==V?void 0:V.toString();re=(0,Ne.jsx)("div",{className:X.content,title:e,role:"presentation",children:e})}i.isValidElement(re)&&B&&(re=i.cloneElement(re,{focusElementRef:Q}));const oe=v?null:{onDragEnter:ee("cellDragEnter",k),onDragOver:ee("cellDragOver",E)},ie=null==(s=T.experimentalFeatures)?void 0:s.ariaV7;return(0,Ne.jsx)("div",(0,Ft.A)({ref:G,className:Cd(f,W,X.root),role:ie?"gridcell":"cell","data-field":I,"data-colindex":d,"aria-colindex":d+1,"aria-colspan":g,style:te,tabIndex:$,onClick:ee("cellClick",y),onDoubleClick:ee("cellDoubleClick",x),onMouseOver:ee("cellMouseOver",S),onMouseDown:Z("cellMouseDown"),onMouseUp:Y("cellMouseUp"),onKeyDown:ee("cellKeyDown",A),onKeyUp:ee("cellKeyUp",C)},oe,j,{onFocus:ne,children:re}))}))),IC=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"];function PC(e){let{width:t}=e;if(!t)return null;const r={width:t};return(0,Ne.jsx)("div",{className:`${Dd.cell} ${Dd.withBorderColor}`,style:r})}const NC=SC(i.forwardRef((function(e,t){const{selected:r,hovered:n,rowId:o,row:s,index:a,style:l,position:u,rowHeight:c,className:d,visibleColumns:p,renderedColumns:h,containerWidth:f,firstColumnToRender:m,isLastVisible:g=!1,focusedCellColumnIndexNotInRange:v,isNotVisible:b,focusedCell:y,onClick:x,onDoubleClick:w,onMouseEnter:_,onMouseLeave:S,onMouseOut:A,onMouseOver:C}=e,k=(0,Lt.A)(e,IC),E=Af(),R=i.useRef(null),j=tp(),O=Ux(E,j),T=Xd(E,Sp),I=Xd(E,ch),P=Xd(E,Bp),N=Xd(E,Op),M=Xd(E,sw),D=(0,qs.A)(R,t),L=a+N+2,F=(e=>{const{editable:t,editing:r,selected:n,isLastVisible:o,rowHeight:i,classes:s}=e,a={root:["row",n&&"selected",t&&"row--editable",r&&"row--editing",o&&"row--lastVisible","auto"===i&&"row--dynamicHeight"]};return(0,$t.A)(a,Md,s)})({selected:r,hovered:n,isLastVisible:g,classes:j.classes,editing:E.current.getRowMode(o)===gy.Edit,editable:j.editMode===fy.Row,rowHeight:c});i.useLayoutEffect((()=>{"auto"===c&&R.current&&"undefined"===typeof ResizeObserver&&E.current.unstable_storeRowHeightMeasurement(o,R.current.clientHeight,u)}),[E,c,o,u]),i.useLayoutEffect((()=>{if(O.range){const e=E.current.getRowIndexRelativeToVisibleRows(o);null!=e&&E.current.unstable_setLastMeasuredRowIndex(e)}const e=R.current;if(!e||"auto"!==c||"undefined"===typeof ResizeObserver)return;const t=new ResizeObserver((e=>{const[t]=e,r=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;E.current.unstable_storeRowHeightMeasurement(o,r,u)}));return t.observe(e),()=>t.disconnect()}),[E,O.range,a,c,o,u]);const z=i.useCallback(((e,t)=>r=>{Yx(r)||E.current.getRow(o)&&(E.current.publishEvent(e,E.current.getRowParams(o),r),t&&t(r))}),[E,o]),B=i.useCallback((e=>{const t=Kx(e.target,Dd.cell),r=null==t?void 0:t.getAttribute("data-field");if(r){if(r===zb.field)return;if(r===Vx)return;if("__reorder__"===r)return;if(E.current.getCellMode(o,r)===my.Edit)return;const e=E.current.getColumn(r);if((null==e?void 0:e.type)===Jy)return}z("rowClick",x)(e)}),[E,x,z,o]),{slots:$,slotProps:H,disableColumnReorder:U}=j,W=$.cell===TC?TC:OC,V=j.rowReordering,q=(e,t)=>{var r,n;const i=U&&e.disableReorder||!V&&!!I.length&&P>1&&Object.keys(M).length>0,s=null!=(r=null==(n=M[o])?void 0:n[e.field])?r:null;let a=!1;return void 0!==v&&p[v].field===e.field&&(a=!0),(0,Ne.jsx)(W,(0,Ft.A)({column:e,width:t.width,rowId:o,height:c,showRightBorder:t.showRightBorder,align:e.align||"left",colIndex:t.indexRelativeToAllColumns,colSpan:t.colSpan,disableDragEvents:i,editCellState:s,isNotVisible:a},null==H?void 0:H.cell),e.field)},G=Xd(E,(()=>(0,Ft.A)({},E.current.unstable_getRowInternalSizes(o))),Kd);let Q=c;if("auto"===Q&&G){let e=0;const t=Object.entries(G).reduce(((t,r)=>{let[n,o]=r;return/^base[A-Z]/.test(n)?(e+=1,o>t?o:t):t}),0);t>0&&e>1&&(Q=t)}const K=i.useMemo((()=>{if(b)return{opacity:0,width:0,height:0};const e=(0,Ft.A)({},l,{maxHeight:"auto"===c?"none":c,minHeight:Q});if(null!=G&&G.spacingTop){e["border"===j.rowSpacingType?"borderTopWidth":"marginTop"]=G.spacingTop}if(null!=G&&G.spacingBottom){const t="border"===j.rowSpacingType?"borderBottomWidth":"marginBottom";let r=e[t];"number"!==typeof r&&(r=parseInt(r||"0",10)),r+=G.spacingBottom,e[t]=r}return e}),[b,c,l,Q,G,j.rowSpacingType]),J=E.current.unstable_applyPipeProcessors("rowClassName",[],o);if("function"===typeof j.getRowClassName){var X;const e=a-((null==(X=O.range)?void 0:X.firstRowIndex)||0),t=(0,Ft.A)({},E.current.getRowParams(o),{isFirstVisible:0===e,isLastVisible:e===O.rows.length-1,indexRelativeToCurrentPage:e});J.push(j.getRowClassName(t))}const Y=Uh(1e4,20,80),Z=E.current.getRowNode(o);if(!Z)return null;const ee=Z.type,te=[];for(let i=0;i<h.length;i+=1){const e=h[i];let t=m+i;void 0!==v&&y&&(p[v].field===e.field?t=v:t-=1);const r=E.current.unstable_getCellColSpanInfo(o,t);if(r&&!r.spannedByColSpan)if("skeletonRow"!==ee){const{colSpan:n,width:o}=r.cellProps,i={width:o,colSpan:n,showRightBorder:j.showCellVerticalBorder,indexRelativeToAllColumns:t};te.push(q(e,i))}else{const{width:t}=r.cellProps,n=Math.round(Y());te.push((0,Ne.jsx)($.skeletonCell,{width:t,contentWidth:n,field:e.field,align:e.align},e.field))}}const re=f-T,ne=s?{onClick:B,onDoubleClick:z("rowDoubleClick",w),onMouseEnter:z("rowMouseEnter",_),onMouseLeave:z("rowMouseLeave",S),onMouseOut:z("rowMouseOut",A),onMouseOver:z("rowMouseOver",C)}:null;return(0,Ne.jsxs)("div",(0,Ft.A)({ref:D,"data-id":o,"data-rowindex":a,role:"row",className:Cd(...J,F.root,d,n&&"Mui-hovered"),"aria-rowindex":L,"aria-selected":r,style:K},ne,k,{children:[te,re>0&&(0,Ne.jsx)(PC,{width:re})]}))})));function MC(e){var t;const{direction:r,index:n,sortingOrder:o}=e,i=Af(),s=tp(),a=(e=>{const{classes:t}=e;return(0,$t.A)({icon:["sortIcon"]},Md,t)})((0,Ft.A)({},e,{classes:s.classes})),l=function(e,t,r,n){let o;const i={};return"asc"===t?o=e.columnSortedAscendingIcon:"desc"===t?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=n),o?(0,Ne.jsx)(o,(0,Ft.A)({fontSize:"small",className:r},i)):null}(s.slots,r,a.icon,o);if(!l)return null;const u=(0,Ne.jsx)(s.slots.baseIconButton,(0,Ft.A)({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},null==(t=s.slotProps)?void 0:t.baseIconButton,{children:l}));return(0,Ne.jsxs)(Zw,{children:[null!=n&&(0,Ne.jsx)(Jw,{badgeContent:n,color:"default",children:u}),null==n&&u]})}const DC=i.memo(MC),LC=i.memo((e=>{var t,r;const{colDef:n,open:o,columnMenuId:s,columnMenuButtonId:a,iconButtonRef:l}=e,u=Af(),c=tp(),d=(e=>{const{classes:t,open:r}=e,n={root:["menuIcon",r&&"menuOpen"],button:["menuIconButton"]};return(0,$t.A)(n,Md,t)})((0,Ft.A)({},e,{classes:c.classes})),p=i.useCallback((e=>{e.preventDefault(),e.stopPropagation(),u.current.toggleColumnMenu(n.field)}),[u,n.field]);return(0,Ne.jsx)("div",{className:d.root,children:(0,Ne.jsx)(c.slots.baseTooltip,(0,Ft.A)({title:u.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},null==(t=c.slotProps)?void 0:t.baseTooltip,{children:(0,Ne.jsx)(c.slots.baseIconButton,(0,Ft.A)({ref:l,tabIndex:-1,className:d.button,"aria-label":u.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?s:void 0,id:a},null==(r=c.slotProps)?void 0:r.baseIconButton,{children:(0,Ne.jsx)(c.slots.columnMenuIcon,{fontSize:"small"})}))}))})}));function FC(e){let{columnMenuId:t,columnMenuButtonId:r,ContentComponent:n,contentComponentProps:o,field:i,open:s,target:a,onExited:l}=e;const u=Af(),c=u.current.getColumn(i),d=(0,xa.A)((e=>{e&&(e.stopPropagation(),null!=a&&a.contains(e.target))||u.current.hideColumnMenu()}));return a&&c?(0,Ne.jsx)(Gy,{placement:"bottom-"+("right"===c.align?"start":"end"),open:s,target:a,onClose:d,onExited:l,children:(0,Ne.jsx)(n,(0,Ft.A)({colDef:c,hideMenu:d,open:s,id:t,labelledby:r},o))}):null}const zC=["className"],BC=oh("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),$C=i.forwardRef((function(e,t){const{className:r}=e,n=(0,Lt.A)(e,zC),o=tp(),i=(e=>{const{classes:t}=e;return(0,$t.A)({root:["columnHeaderTitle"]},Md,t)})(o);return(0,Ne.jsx)(BC,(0,Ft.A)({ref:t,className:Cd(i.root,r),ownerState:o},n))}));function HC(e){var t;const{label:r,description:n}=e,o=tp(),s=i.useRef(null),[a,l]=i.useState(""),u=i.useCallback((()=>{if(!n&&null!=s&&s.current){const t=(e=s.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;l(t?r:"")}var e}),[n,r]);return(0,Ne.jsx)(o.slots.baseTooltip,(0,Ft.A)({title:n||a},null==(t=o.slotProps)?void 0:t.baseTooltip,{children:(0,Ne.jsx)($C,{onMouseOver:u,ref:s,children:r})}))}const UC=["resizable","resizing","height","side"];var WC=function(e){return e.Left="left",e.Right="right",e}(WC||{});function VC(e){const{height:t,side:r=WC.Right}=e,n=(0,Lt.A)(e,UC),o=tp(),s=(e=>{const{resizable:t,resizing:r,classes:n,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",r&&"columnSeparator--resizing",o&&`columnSeparator--side${(0,kd.A)(o)}`],icon:["iconSeparator"]};return(0,$t.A)(i,Md,n)})((0,Ft.A)({},e,{side:r,classes:o.classes})),a=i.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,Ne.jsx)("div",(0,Ft.A)({className:s.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},n,{onClick:a,children:(0,Ne.jsx)(o.slots.columnResizeIcon,{className:s.icon})}))}const qC=i.memo(VC),GC=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],QC=i.forwardRef((function(e,t){const{classes:r,columnMenuOpen:n,colIndex:o,height:s,isResizing:a,sortDirection:l,hasFocus:u,tabIndex:c,separatorSide:d,isDraggable:p,headerComponent:h,description:f,width:m,columnMenuIconButton:g=null,columnMenu:v=null,columnTitleIconButtons:b=null,headerClassName:y,label:x,resizable:w,draggableContainerProps:_,columnHeaderSeparatorProps:S}=e,A=(0,Lt.A)(e,GC),C=Zd(),k=tp(),E=i.useRef(null),[R,j]=i.useState(n),O=(0,qs.A)(E,t);let T="none";return null!=l&&(T="asc"===l?"ascending":"descending"),i.useEffect((()=>{R||j(n)}),[R,n]),i.useLayoutEffect((()=>{const e=C.current.state.columnMenu;if(u&&!e.open){const e=E.current.querySelector('[tabindex="0"]')||E.current;null==e||e.focus(),C.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[C,u]),(0,Ne.jsxs)("div",(0,Ft.A)({ref:O,className:Cd(r.root,y),style:{height:s,width:m,minWidth:m,maxWidth:m},role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":T,"aria-label":null==h?x:void 0},A,{children:[(0,Ne.jsxs)("div",(0,Ft.A)({className:r.draggableContainer,draggable:p,role:"presentation"},_,{children:[(0,Ne.jsxs)("div",{className:r.titleContainer,role:"presentation",children:[(0,Ne.jsx)("div",{className:r.titleContainerContent,children:void 0!==h?h:(0,Ne.jsx)(HC,{label:x,description:f,columnWidth:m})}),b]}),g]})),(0,Ne.jsx)(qC,(0,Ft.A)({resizable:!k.disableColumnResize&&!!w,resizing:a,height:s,side:d},S)),v]}))}));function KC(e){var t,r,n,o;const{colDef:s,columnMenuOpen:a,colIndex:l,headerHeight:u,isResizing:c,sortDirection:d,sortIndex:p,filterItemsCounter:h,hasFocus:f,tabIndex:m,disableReorder:g,separatorSide:v}=e,b=Zd(),y=tp(),x=i.useRef(null),w=(0,Vs.A)(),_=(0,Vs.A)(),S=i.useRef(null),[A,C]=i.useState(a),k=i.useMemo((()=>!y.disableColumnReorder&&!g&&!s.disableReorder),[y.disableColumnReorder,g,s.disableReorder]);let E;s.renderHeader&&(E=s.renderHeader(b.current.getColumnHeaderParams(s.field)));const R=(e=>{const{colDef:t,classes:r,isDragging:n,sortDirection:o,showRightBorder:i,filterItemsCounter:s}=e,a=null!=o,l=null!=s&&s>0,u="number"===t.type,c={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",n&&"columnHeader--moving",a&&"columnHeader--sorted",l&&"columnHeader--filtered",u&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,$t.A)(c,Md,r)})((0,Ft.A)({},e,{classes:y.classes,showRightBorder:y.showColumnVerticalBorder})),j=i.useCallback((e=>t=>{Yx(t)||b.current.publishEvent(e,b.current.getColumnHeaderParams(s.field),t)}),[b,s.field]),O=i.useMemo((()=>({onClick:j("columnHeaderClick"),onDoubleClick:j("columnHeaderDoubleClick"),onMouseOver:j("columnHeaderOver"),onMouseOut:j("columnHeaderOut"),onMouseEnter:j("columnHeaderEnter"),onMouseLeave:j("columnHeaderLeave"),onKeyDown:j("columnHeaderKeyDown"),onFocus:j("columnHeaderFocus"),onBlur:j("columnHeaderBlur")})),[j]),T=i.useMemo((()=>k?{onDragStart:j("columnHeaderDragStart"),onDragEnter:j("columnHeaderDragEnter"),onDragOver:j("columnHeaderDragOver"),onDragEnd:j("columnHeaderDragEnd")}:{}),[k,j]),I=i.useMemo((()=>({onMouseDown:j("columnSeparatorMouseDown"),onDoubleClick:j("columnSeparatorDoubleClick")})),[j]);i.useEffect((()=>{A||C(a)}),[A,a]);const P=i.useCallback((()=>{C(!1)}),[]),N=!y.disableColumnMenu&&!s.disableColumnMenu&&(0,Ne.jsx)(LC,{colDef:s,columnMenuId:w,columnMenuButtonId:_,open:A,iconButtonRef:S}),M=(0,Ne.jsx)(FC,{columnMenuId:w,columnMenuButtonId:_,field:s.field,open:a,target:S.current,ContentComponent:y.slots.columnMenu,contentComponentProps:null==(t=y.slotProps)?void 0:t.columnMenu,onExited:P}),D=null!=(r=s.sortingOrder)?r:y.sortingOrder,L=(0,Ne.jsxs)(i.Fragment,{children:[!y.disableColumnFilter&&(0,Ne.jsx)(y.slots.columnHeaderFilterIconButton,(0,Ft.A)({field:s.field,counter:h},null==(n=y.slotProps)?void 0:n.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&(0,Ne.jsx)(DC,{direction:d,index:p,sortingOrder:D})]});i.useLayoutEffect((()=>{const e=b.current.state.columnMenu;if(f&&!e.open){var t;const e=x.current.querySelector('[tabindex="0"]')||x.current;null==e||e.focus(),null!=(t=b.current.columnHeadersContainerElementRef)&&t.current&&(b.current.columnHeadersContainerElementRef.current.scrollLeft=0)}}),[b,f]);const F="function"===typeof s.headerClassName?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,z=null!=(o=s.headerName)?o:s.field;return(0,Ne.jsx)(QC,(0,Ft.A)({ref:x,classes:R,columnMenuOpen:a,colIndex:l,height:u,isResizing:c,sortDirection:d,hasFocus:f,tabIndex:m,separatorSide:v,isDraggable:k,headerComponent:E,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:N,columnTitleIconButtons:L,headerClassName:F,label:z,resizable:!y.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:M,draggableContainerProps:T,columnHeaderSeparatorProps:I},O))}const JC=e=>e.virtualization,XC=cp(JC,(e=>e.enabled)),YC=cp(JC,(e=>e.enabledForColumns)),ZC=["style"],ek=["style"];function tk(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(t.length<=0)return-1;if(r>=n)return r;const o=r+Math.floor((n-r)/2);return e<=t[o]?tk(e,t,r,o):tk(e,t,o+1,n)}const rk=e=>{let{firstIndex:t,lastIndex:r,buffer:n,minFirstIndex:o,maxLastIndex:i}=e;return[$h(t-n,o,i),$h(r+n,o,i)]},nk=(e,t)=>e===t||e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,ok={maxSize:3};function ik(e,t,r,n){var o,i;const s=e.current.getLastMeasuredRowIndex();let a=s===1/0;null!=(o=t.range)&&o.lastRowIndex&&!a&&(a=s>=t.range.lastRowIndex);const l=$h(s-((null==(i=t.range)?void 0:i.firstRowIndex)||0),0,r.positions.length);return a||r.positions[l]>=n?tk(n,r.positions):function(e,t,r){let n=1;for(;r<t.length&&Math.abs(t[r])<e;)r+=n,n*=2;return tk(e,t,Math.floor(r/2),Math.min(r,t.length))}(n,r.positions,l)}function sk(e){var t;const{groupId:r,width:n,depth:o,maxDepth:s,fields:a,height:l,colIndex:u,hasFocus:c,tabIndex:d,isLastColumn:p}=e,h=tp(),f=i.useRef(null),m=Af(),g=Xd(m,Rp),v=r?g[r]:{},{headerName:b=(null!=r?r:""),description:y="",headerAlign:x}=v;let w;const _=r&&(null==(t=g[r])?void 0:t.renderHeaderGroup),S=i.useMemo((()=>({groupId:r,headerName:b,description:y,depth:o,maxDepth:s,fields:a,colIndex:u,isLastColumn:p})),[r,b,y,o,s,a,u,p]);r&&_&&(w=_(S));const A=h.showColumnVerticalBorder,C=(0,Ft.A)({},e,{classes:h.classes,showColumnBorder:A,headerAlign:x,depth:o,isDragging:!1}),k=null!=b?b:r,E=(0,Vs.A)(),R=null===r?`empty-group-cell-${E}`:r,j=(e=>{const{classes:t,headerAlign:r,isDragging:n,showColumnBorder:o,groupId:i}=e,s={root:["columnHeader","left"===r&&"columnHeader--alignLeft","center"===r&&"columnHeader--alignCenter","right"===r&&"columnHeader--alignRight",n&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",null===i?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,$t.A)(s,Md,t)})(C);i.useLayoutEffect((()=>{if(c){const e=f.current.querySelector('[tabindex="0"]')||f.current;null==e||e.focus()}}),[m,c]);const O=i.useCallback((e=>t=>{Yx(t)||m.current.publishEvent(e,S,t)}),[m,S]),T=i.useMemo((()=>({onKeyDown:O("columnGroupHeaderKeyDown"),onFocus:O("columnGroupHeaderFocus"),onBlur:O("columnGroupHeaderBlur")})),[O]),I="function"===typeof v.headerClassName?v.headerClassName(S):v.headerClassName;return(0,Ne.jsx)(QC,(0,Ft.A)({ref:f,classes:j,columnMenuOpen:!1,colIndex:u,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:d,isDraggable:!1,headerComponent:w,headerClassName:I,description:y,elementId:R,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:k,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`},T))}const ak=(0,Ht.Ay)("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})((()=>({display:"flex"})));const lk=["className"],uk=oh("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),ck=i.forwardRef((function(e,t){const{className:r}=e,n=(0,Lt.A)(e,lk),o=tp(),i=(e=>{const{classes:t}=e;return(0,$t.A)({root:["columnHeaders","withBorderColor"]},Md,t)})(o);return(0,Ne.jsx)(uk,(0,Ft.A)({ref:t,className:Cd(r,i.root),ownerState:o},n,{role:"presentation"}))})),dk=["isDragging","className"],pk=oh("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${Dd.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})((()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${Dd.columnHeaderDropZone} .${Dd.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${Dd["columnHeadersInner--scrollable"]} .${Dd.columnHeader}:last-child`]:{borderRight:"none"}}))),hk=i.forwardRef((function(e,t){var r,n;const{isDragging:o,className:i}=e,s=(0,Lt.A)(e,dk),a=Af(),l=tp(),u=(0,Ft.A)({},l,{isDragging:o,hasScrollX:null!=(r=null==(n=a.current.getRootDimensions())?void 0:n.hasScrollX)&&r}),c=(e=>{const{isDragging:t,hasScrollX:r,classes:n}=e,o={root:["columnHeadersInner",t&&"columnHeaderDropZone",r&&"columnHeadersInner--scrollable"]};return(0,$t.A)(o,Md,n)})(u);return(0,Ne.jsx)(pk,(0,Ft.A)({ref:t,className:Cd(i,c.root),ownerState:u},s))})),fk=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],mk=SC(i.forwardRef((function(e,t){const{innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:a,columnPositions:l,columnHeaderTabIndexState:u,columnGroupHeaderTabIndexState:c,columnHeaderFocus:d,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:b}=e,y=(0,Lt.A)(e,fk),{isDragging:x,getRootProps:w,getInnerProps:_,getColumnHeaders:S,getColumnGroupHeaders:A}=(e=>{const{innerRef:t,minColumnIndex:r=0,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:a,columnPositions:l,columnHeaderTabIndexState:u,columnGroupHeaderTabIndexState:c,columnHeaderFocus:d,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:b}=e,y=br(),[x,w]=i.useState(""),[_,S]=i.useState(""),A=Zd(),C=Xd(A,YC),k=tp(),E=i.useRef(null),R=(0,qs.A)(t,E),[j,O]=i.useState(null),T=i.useRef(j),I=i.useRef(0),P=Ux(A,k),N=sx(A,k.columnHeaderHeight),M=Math.floor(k.columnHeaderHeight*h),D=i.useCallback((e=>{j&&e&&nk(j,e)||O(e)}),[j]);i.useEffect((()=>{var e;null!=(e=A.current.columnHeadersContainerElementRef)&&e.current&&(A.current.columnHeadersContainerElementRef.current.scrollLeft=0)}),[A]);const L=i.useRef(op(ix,{equalityCheck:(e,t)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every((r=>e[r]===t[r]))})),F=i.useCallback((e=>{const[t,n]=rk({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:k.rowBuffer}),o=L.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:r,columnBuffer:k.columnBuffer,firstRowToRender:t,lastRowToRender:n,apiRef:A,visibleRows:P.rows}),i="ltr"===y.direction?1:-1,s=o>0?I.current-i*l[o]:I.current;E.current.style.transform=`translate3d(${-s}px, 0px, 0px)`}),[l,r,k.columnBuffer,A,P.rows,k.rowBuffer,y.direction]);i.useLayoutEffect((()=>{j&&F(j)}),[j,F]);const z=i.useCallback(((e,t)=>{let{left:r,renderContext:o=null}=e;var i,s;if(!E.current)return;if(I.current===r&&(null==(i=T.current)?void 0:i.firstColumnIndex)===(null==o?void 0:o.firstColumnIndex)&&(null==(s=T.current)?void 0:s.lastColumnIndex)===(null==o?void 0:o.lastColumnIndex))return;I.current=r;let a=!1;o===T.current&&T.current?a=!0:(function(e){return!!e.target}(t)?(n.flushSync((()=>{D(o)})),a=!0):D(o),T.current=o),o&&a&&F(o)}),[F,D]),B=i.useCallback((e=>S(e.field)),[]),$=i.useCallback((()=>S("")),[]),H=i.useCallback((e=>w(e.field)),[]),U=i.useCallback((()=>w("")),[]);nf(A,"columnResizeStart",B),nf(A,"columnResizeStop",$),nf(A,"columnHeaderDragStart",H),nf(A,"columnHeaderDragEnd",U),nf(A,"scrollPositionChange",z);const W=e=>{const{renderContext:t=j,minFirstColumn:n=r,maxLastColumn:i=o.length}=e||{};if(!t)return null;const[s,a]=rk({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:k.rowBuffer}),l=C?L.current({firstColumnIndex:t.firstColumnIndex,minColumnIndex:n,columnBuffer:k.columnBuffer,apiRef:A,firstRowToRender:s,lastRowToRender:a,visibleRows:P.rows}):0,u=C?Math.min(t.lastColumnIndex+k.columnBuffer,i):i;return{renderedColumns:o.slice(l,u),firstColumnToRender:l,lastColumnToRender:u,minFirstColumn:n,maxLastColumn:i}},V={minHeight:N,maxHeight:N,lineHeight:`${M}px`};return{renderContext:j,getColumnHeaders:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=W(e);if(null==r)return null;const{renderedColumns:n,firstColumnToRender:o}=r,i=[];for(let l=0;l<n.length;l+=1){const e=n[l],r=o+l,c=0===r,p=null!==u&&u.field===e.field||c&&!b?0:-1,h=null!==d&&d.field===e.field,f=m.open&&m.field===e.field;i.push((0,Ne.jsx)(KC,(0,Ft.A)({},s[e.field],{columnMenuOpen:f,filterItemsCounter:a[e.field]&&a[e.field].length,headerHeight:M,isDragging:e.field===x,colDef:e,colIndex:r,isResizing:_===e.field,hasFocus:h,tabIndex:p},t),e.field))}return(0,Ne.jsx)(ak,{role:"row","aria-rowindex":f+1,ownerState:k,children:i})},getColumnsToRender:W,getColumnGroupHeaders:e=>{if(0===f)return null;const t=W(e);if(null==t||0===t.renderedColumns.length)return null;const{firstColumnToRender:r,lastColumnToRender:n}=t,i=[],s=[];for(let u=0;u<f;u+=1){var a,l;const e=v[u],t=o[r].field,i=null!=(a=A.current.unstable_getColumnGroupPath(t)[u])?a:null,d=e.findIndex((e=>{let{groupId:r,columnFields:n}=e;return r===i&&n.includes(t)})),h=o[n-1].field,f=null!=(l=A.current.unstable_getColumnGroupPath(h)[u])?l:null,m=e.findIndex((e=>{let{groupId:t,columnFields:r}=e;return t===f&&r.includes(h)})),b=e.slice(d,m+1).map((e=>(0,Ft.A)({},e,{columnFields:e.columnFields.filter((e=>!1!==g[e]))}))).filter((e=>e.columnFields.length>0)),y=b[0].columnFields.indexOf(t),x=b[0].columnFields.slice(0,y).reduce(((e,t)=>{var r;return e+(null!=(r=A.current.getColumn(t).computedWidth)?r:0)}),0);let w=r;const _=b.map((e=>{let{groupId:t,columnFields:r}=e;const n=null!==p&&p.depth===u&&r.includes(p.field),o=null!==c&&c.depth===u&&r.includes(c.field)?0:-1,i={groupId:t,width:r.reduce(((e,t)=>e+A.current.getColumn(t).computedWidth),0),fields:r,colIndex:w,hasFocus:n,tabIndex:o};return w+=r.length,i}));s.push({leftOverflow:x,elements:_})}return s.forEach(((e,t)=>{i.push((0,Ne.jsx)(ak,{style:{height:`${M}px`,transform:`translateX(-${e.leftOverflow}px)`},role:"row","aria-rowindex":t+1,ownerState:k,children:e.elements.map(((e,r)=>{let{groupId:n,width:i,fields:a,colIndex:l,hasFocus:u,tabIndex:c}=e;return(0,Ne.jsx)(sk,{groupId:n,width:i,fields:a,colIndex:l,depth:t,isLastColumn:l===o.length-a.length,maxDepth:s.length,height:M,hasFocus:u,tabIndex:c},r)}))},t))})),i},isDragging:!!x,getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Ft.A)({style:V},e)},getInnerProps:()=>({ref:R,role:"rowgroup"}),headerHeight:M}})({innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:a,columnPositions:l,columnHeaderTabIndexState:u,columnGroupHeaderTabIndexState:c,columnHeaderFocus:d,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:b});return(0,Ne.jsx)(ck,(0,Ft.A)({ref:t},w(y),{children:(0,Ne.jsxs)(hk,(0,Ft.A)({isDragging:x},_(),{children:[A(),S()]}))}))}))),gk=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],vk=(0,Ht.Ay)("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]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:(0,fi.X4)(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,Ft.A)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}})}),(e=>{let{ownerState:t}=e;return(0,Ft.A)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),bk=(0,Ht.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===r.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})})),yk=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==s?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,h=(0,Lt.A)(r,gk),f=(0,Ft.A)({},r,{absolute:n,component:s,flexItem:a,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e,u={root:["root",t&&"absolute",l,i&&"light","vertical"===s&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,$t.A)(u,fx,n)})(f);return(0,Ne.jsx)(vk,(0,Ft.A)({as:s,className:(0,zt.A)(m.root,i),role:c,ref:t,ownerState:f},h,{children:o?(0,Ne.jsx)(bk,{className:m.wrapper,ownerState:f,children:o}):null}))}));yk.muiSkipListHighlight=!0;const xk=yk,wk=["displayOrder"],_k=["hideMenu","colDef","id","labelledby","className","children","open"],Sk=(0,Ht.Ay)(Uy)((()=>({minWidth:248}))),Ak=i.forwardRef((function(e,t){const{hideMenu:r,id:n,labelledby:o,className:s,children:a,open:l}=e,u=(0,Lt.A)(e,_k),c=i.useCallback((e=>{yf(e.key)&&e.preventDefault(),Sf(e.key)&&r(e)}),[r]);return(0,Ne.jsx)(Sk,(0,Ft.A)({id:n,ref:t,className:Cd(Dd.menuList,s),"aria-labelledby":o,onKeyDown:c,autoFocus:l},u,{children:a}))})),Ck=["className"],kk=(0,Ht.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),Ek=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=(0,Lt.A)(r,Ck),s=i.useContext(Iy),a=(0,Ft.A)({},r,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:r}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,$t.A)(n,gx,r)})(a);return(0,Ne.jsx)(kk,(0,Ft.A)({className:(0,zt.A)(l.root,n),ownerState:a,ref:t},o))})),Rk=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],jk=(0,Ht.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${yx.primary}`]:t.primary},{[`& .${yx.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),Ok=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,p=(0,Lt.A)(r,Rk),{dense:h}=i.useContext(Iy);let f=null!=l?l:n,m=c;const g=(0,Ft.A)({},r,{disableTypography:s,inset:a,primary:!!f,secondary:!!m,dense:h}),v=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e,s={root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,$t.A)(s,bx,t)})(g);return null==f||f.type===Yt||s||(f=(0,Ne.jsx)(Yt,(0,Ft.A)({variant:h?"body2":"body1",className:v.primary,component:null!=u&&u.variant?void 0:"span",display:"block"},u,{children:f}))),null==m||m.type===Yt||s||(m=(0,Ne.jsx)(Yt,(0,Ft.A)({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:m}))),(0,Ne.jsxs)(jk,(0,Ft.A)({className:(0,zt.A)(v.root,o),ownerState:g,ref:t},p,{children:[f,m]}))}));function Tk(e){const{colDef:t,onClick:r}=e,n=Af(),o=tp(),s=1===xp(n).filter((e=>!0!==e.disableColumnMenu)).length,a=i.useCallback((e=>{s||(n.current.setColumnVisibility(t.field,!1),r(e))}),[n,t.field,r,s]);return o.disableColumnSelector||!1===t.hideable?null:(0,Ne.jsxs)(Ax,{onClick:a,disabled:s,children:[(0,Ne.jsx)(Ek,{children:(0,Ne.jsx)(o.slots.columnMenuHideIcon,{fontSize:"small"})}),(0,Ne.jsx)(Ok,{children:n.current.getLocaleText("columnMenuHideColumn")})]})}function Ik(e){const{onClick:t}=e,r=Af(),n=tp(),o=i.useCallback((e=>{t(e),r.current.showPreferences(ax.columns)}),[r,t]);return n.disableColumnSelector?null:(0,Ne.jsxs)(Ax,{onClick:o,children:[(0,Ne.jsx)(Ek,{children:(0,Ne.jsx)(n.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),(0,Ne.jsx)(Ok,{children:r.current.getLocaleText("columnMenuManageColumns")})]})}const Pk=["defaultSlots","defaultSlotProps","slots","slotProps"],Nk={columnMenuSortItem:function(e){var t;const{colDef:r,onClick:n}=e,o=Af(),s=Xd(o,ch),a=tp(),l=i.useMemo((()=>{if(!r)return null;const e=s.find((e=>e.field===r.field));return null==e?void 0:e.sort}),[r,s]),u=null!=(t=r.sortingOrder)?t:a.sortingOrder,c=i.useCallback((e=>{n(e);const t=e.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(r,t===l?null:t)}),[o,r,n,l]);if(!r||!r.sortable||!u.some((e=>!!e)))return null;const d=e=>{const t=o.current.getLocaleText(e);return"function"===typeof t?t(r):t};return(0,Ne.jsxs)(i.Fragment,{children:[u.includes("asc")&&"asc"!==l?(0,Ne.jsxs)(Ax,{onClick:c,"data-value":"asc",children:[(0,Ne.jsx)(Ek,{children:(0,Ne.jsx)(a.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),(0,Ne.jsx)(Ok,{children:d("columnMenuSortAsc")})]}):null,u.includes("desc")&&"desc"!==l?(0,Ne.jsxs)(Ax,{onClick:c,"data-value":"desc",children:[(0,Ne.jsx)(Ek,{children:(0,Ne.jsx)(a.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),(0,Ne.jsx)(Ok,{children:d("columnMenuSortDesc")})]}):null,u.includes(null)&&null!=l?(0,Ne.jsxs)(Ax,{onClick:c,children:[(0,Ne.jsx)(Ek,{}),(0,Ne.jsx)(Ok,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})},columnMenuFilterItem:function(e){const{colDef:t,onClick:r}=e,n=Af(),o=tp(),s=i.useCallback((e=>{r(e),n.current.showFilterPanel(t.field)}),[n,t.field,r]);return o.disableColumnFilter||!t.filterable?null:(0,Ne.jsxs)(Ax,{onClick:s,children:[(0,Ne.jsx)(Ek,{children:(0,Ne.jsx)(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),(0,Ne.jsx)(Ok,{children:n.current.getLocaleText("columnMenuFilter")})]})},columnMenuColumnsItem:function(e){return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)(Tk,(0,Ft.A)({},e)),(0,Ne.jsx)(Ik,(0,Ft.A)({},e))]})}},Mk={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Dk=i.forwardRef((function(e,t){const{defaultSlots:r,defaultSlotProps:n,slots:o,slotProps:s}=e,a=(0,Lt.A)(e,Pk),l=(e=>{const t=Zd(),{defaultSlots:r,defaultSlotProps:n,slots:o={},slotProps:s={},hideMenu:a,colDef:l,addDividers:u=!0}=e,c=i.useMemo((()=>(0,Ft.A)({},r,o)),[r,o]),d=i.useMemo((()=>{if(!s||0===Object.keys(s).length)return n;const e=(0,Ft.A)({},s);return Object.entries(n).forEach((t=>{let[r,n]=t;e[r]=(0,Ft.A)({},n,s[r]||{})})),e}),[n,s]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=i.useMemo((()=>{const e=Object.keys(r);return Object.keys(o).filter((t=>!e.includes(t)))}),[o,r]);return i.useMemo((()=>{const e=Array.from(new Set([...p,...h])).filter((e=>null!=c[e])).sort(((e,t)=>{const r=d[e],n=d[t];return(Number.isFinite(null==r?void 0:r.displayOrder)?r.displayOrder:100)-(Number.isFinite(null==n?void 0:n.displayOrder)?n.displayOrder:100)}));return e.reduce(((t,r,n)=>{let o={colDef:l,onClick:a};const i=d[r];if(i){const e=(0,Lt.A)(i,wk);o=(0,Ft.A)({},o,e)}return u&&n!==e.length-1?[...t,[c[r],o],[xk,{}]]:[...t,[c[r],o]]}),[])}),[u,l,p,a,c,d,h])})((0,Ft.A)({},a,{defaultSlots:r,defaultSlotProps:n,slots:o,slotProps:s}));return(0,Ne.jsx)(Ak,(0,Ft.A)({ref:t},a,{children:l.map(((e,t)=>{let[r,n]=e;return(0,Ne.jsx)(r,(0,Ft.A)({},n),t)}))}))})),Lk=i.forwardRef((function(e,t){return(0,Ne.jsx)(Dk,(0,Ft.A)({},e,{ref:t,defaultSlots:Nk,defaultSlotProps:Mk}))})),Fk=i.forwardRef((function(e,t){const r=Af().current.getLocaleText("noResultsOverlayLabel");return(0,Ne.jsx)(E_,(0,Ft.A)({ref:t},e,{children:r}))}));function zk(e){return(0,qt.Ay)("PrivateSwitchBase",e)}(0,Vt.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Bk=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],$k=(0,Ht.Ay)(Hi)((e=>{let{ownerState:t}=e;return(0,Ft.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),Hk=(0,Ht.Ay)("input",{shouldForwardProp:dl.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Uk=i.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:h,name:f,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:w,value:_}=e,S=(0,Lt.A)(e,Bk),[A,C]=(0,iS.A)({controlled:n,default:Boolean(s),name:"SwitchBase",state:"checked"}),k=Zf();let E=a;k&&"undefined"===typeof E&&(E=k.disabled);const R="checkbox"===w||"radio"===w,j=(0,Ft.A)({},e,{checked:A,disabled:E,disableFocusRipple:l,edge:u}),O=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${(0,Wt.A)(o)}`],input:["input"]};return(0,$t.A)(i,zk,t)})(j);return(0,Ne.jsxs)($k,(0,Ft.A)({component:"span",className:(0,zt.A)(O.root,i),centerRipple:!0,focusRipple:!l,disabled:E,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),k&&k.onFocus&&k.onFocus(e)},onBlur:e=>{m&&m(e),k&&k.onBlur&&k.onBlur(e)},ownerState:j,ref:t},S,{children:[(0,Ne.jsx)(Hk,(0,Ft.A)({autoFocus:r,checked:n,defaultChecked:s,className:O.input,disabled:E,id:R?d:void 0,name:f,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;C(t),g&&g(e,t)},readOnly:b,ref:h,required:y,ownerState:j,tabIndex:x,type:w},"checkbox"===w&&void 0===_?{}:{value:_},p)),A?o:c]}))})),Wk=(0,eu.A)((0,Ne.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Vk=(0,eu.A)((0,Ne.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),qk=(0,eu.A)((0,Ne.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Gk(e){return(0,qt.Ay)("MuiCheckbox",e)}const Qk=(0,Vt.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Kk=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Jk=(0,Ht.Ay)(Uk,{shouldForwardProp:e=>(0,dl.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,Wt.A)(r.size)}`],"default"!==r.color&&t[`color${(0,Wt.A)(r.color)}`]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,fi.X4)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{[`&.${Qk.checked}, &.${Qk.indeterminate}`]:{color:(t.vars||t).palette[r.color].main},[`&.${Qk.disabled}`]:{color:(t.vars||t).palette.action.disabled}})})),Xk=(0,Ne.jsx)(Vk,{}),Yk=(0,Ne.jsx)(Wk,{}),Zk=(0,Ne.jsx)(qk,{}),eE=i.forwardRef((function(e,t){var r,n;const o=(0,Ut.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=Xk,color:a="primary",icon:l=Yk,indeterminate:u=!1,indeterminateIcon:c=Zk,inputProps:d,size:p="medium",className:h}=o,f=(0,Lt.A)(o,Kk),m=u?c:l,g=u?c:s,v=(0,Ft.A)({},o,{color:a,indeterminate:u,size:p}),b=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,i={root:["root",r&&"indeterminate",`color${(0,Wt.A)(n)}`,`size${(0,Wt.A)(o)}`]},s=(0,$t.A)(i,Gk,t);return(0,Ft.A)({},t,s)})(v);return(0,Ne.jsx)(Jk,(0,Ft.A)({type:"checkbox",inputProps:(0,Ft.A)({"data-indeterminate":u},d),icon:i.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:p}),checkedIcon:i.cloneElement(g,{fontSize:null!=(n=g.props.fontSize)?n:p}),ownerState:v,ref:t,className:(0,zt.A)(b.root,h)},f,{classes:b}))}));function tE(e){return(0,qt.Ay)("MuiFormLabel",e)}const rE=(0,Vt.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),nE=["children","className","color","component","disabled","error","filled","focused","required"],oE=(0,Ht.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,Ft.A)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${rE.focused}`]:{color:(t.vars||t).palette[r.color].main},[`&.${rE.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${rE.error}`]:{color:(t.vars||t).palette.error.main}})})),iE=(0,Ht.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${rE.error}`]:{color:(t.vars||t).palette.error.main}}})),sE=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:i="label"}=r,s=(0,Lt.A)(r,nE),a=Xf({props:r,muiFormControl:Zf(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Ft.A)({},r,{color:a.color||"primary",component:i,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),u=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${(0,Wt.A)(r)}`,o&&"disabled",i&&"error",s&&"filled",n&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return(0,$t.A)(l,tE,t)})(l);return(0,Ne.jsxs)(oE,(0,Ft.A)({as:i,ownerState:l,className:(0,zt.A)(u.root,o),ref:t},s,{children:[n,a.required&&(0,Ne.jsxs)(iE,{ownerState:l,"aria-hidden":!0,className:u.asterisk,children:["\u2009","*"]})]}))}));function aE(e){return(0,qt.Ay)("MuiInputLabel",e)}(0,Vt.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const lE=["disableAnimation","margin","shrink","variant","className"],uE=(0,Ht.Ay)(sE,{shouldForwardProp:e=>(0,dl.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${rE.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,Ft.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,Ft.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,Ft.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),cE=i.forwardRef((function(e,t){const r=(0,Ut.b)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:i}=r,s=(0,Lt.A)(r,lE),a=Zf();let l=o;"undefined"===typeof l&&a&&(l=a.filled||a.focused||a.adornedStart);const u=Xf({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),c=(0,Ft.A)({},r,{disableAnimation:n,formControl:a,shrink:l,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),d=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",r&&"formControl",!i&&"animated",o&&"shrink",n&&"normal"!==n&&`size${(0,Wt.A)(n)}`,s],asterisk:[a&&"asterisk"]},u=(0,$t.A)(l,aE,t);return(0,Ft.A)({},t,u)})(c);return(0,Ne.jsx)(uE,(0,Ft.A)({"data-shrink":l,ownerState:c,ref:t,className:(0,zt.A)(d.root,i)},s,{classes:d}))}));var dE=r(7034);function pE(e){return(0,qt.Ay)("MuiFormControl",e)}(0,Vt.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const hE=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],fE=(0,Ht.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,Ft.A)({},t.root,t[`margin${(0,Wt.A)(r.margin)}`],r.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),mE=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiFormControl"}),{children:n,className:o,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:f=!1,size:m="medium",variant:g="outlined"}=r,v=(0,Lt.A)(r,hE),b=(0,Ft.A)({},r,{color:s,component:a,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:f,size:m,variant:g}),y=(e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root","none"!==r&&`margin${(0,Wt.A)(r)}`,n&&"fullWidth"]};return(0,$t.A)(o,pE,t)})(b),[x,w]=i.useState((()=>{let e=!1;return n&&i.Children.forEach(n,(t=>{if(!(0,dE.A)(t,["Input","Select"]))return;const r=(0,dE.A)(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[_,S]=i.useState((()=>{let e=!1;return n&&i.Children.forEach(n,(t=>{(0,dE.A)(t,["Input","Select"])&&(im(t.props,!0)||im(t.props.inputProps,!0))&&(e=!0)})),e})),[A,C]=i.useState(!1);l&&A&&C(!1);const k=void 0===c||l?A:c;let E;const R=i.useMemo((()=>({adornedStart:x,setAdornedStart:w,color:s,disabled:l,error:u,filled:_,focused:k,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{C(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{C(!0)},registerEffect:E,required:f,variant:g})),[x,s,l,u,_,k,d,p,E,f,m,g]);return(0,Ne.jsx)(Yf.Provider,{value:R,children:(0,Ne.jsx)(fE,(0,Ft.A)({as:a,ownerState:b,className:(0,zt.A)(y.root,o),ref:t},v,{children:n}))})}));function gE(e){return(0,qt.Ay)("MuiFormHelperText",e)}const vE=(0,Vt.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var bE;const yE=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xE=(0,Ht.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${(0,Wt.A)(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vE.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${vE.error}`]:{color:(t.vars||t).palette.error.main}},"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),wE=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:i="p"}=r,s=(0,Lt.A)(r,yE),a=Xf({props:r,muiFormControl:Zf(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Ft.A)({},r,{component:i,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),u=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:i,filled:s,focused:a,required:l}=e,u={root:["root",o&&"disabled",i&&"error",n&&`size${(0,Wt.A)(n)}`,r&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,$t.A)(u,gE,t)})(l);return(0,Ne.jsx)(xE,(0,Ft.A)({as:i,ownerState:l,className:(0,zt.A)(u.root,o),ref:t},s,{children:" "===n?bE||(bE=(0,Ne.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))}));function _E(e){return(0,qt.Ay)("MuiTextField",e)}(0,Vt.A)("MuiTextField",["root"]);const SE=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],AE={standard:xS,filled:CS,outlined:MS},CE=(0,Ht.Ay)(mE,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kE=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:i,className:s,color:a="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:h,id:f,InputLabelProps:m,inputProps:g,InputProps:v,inputRef:b,label:y,maxRows:x,minRows:w,multiline:_=!1,name:S,onBlur:A,onChange:C,onFocus:k,placeholder:E,required:R=!1,rows:j,select:O=!1,SelectProps:T,type:I,value:P,variant:N="outlined"}=r,M=(0,Lt.A)(r,SE),D=(0,Ft.A)({},r,{autoFocus:o,color:a,disabled:u,error:c,fullWidth:p,multiline:_,required:R,select:O,variant:N}),L=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"]},_E,t)})(D);const F={};"outlined"===N&&(m&&"undefined"!==typeof m.shrink&&(F.notched=m.shrink),F.label=y),O&&(T&&T.native||(F.id=void 0),F["aria-describedby"]=void 0);const z=(0,Vs.A)(f),B=h&&z?`${z}-helper-text`:void 0,$=y&&z?`${z}-label`:void 0,H=AE[N],U=(0,Ne.jsx)(H,(0,Ft.A)({"aria-describedby":B,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:p,multiline:_,name:S,rows:j,maxRows:x,minRows:w,type:I,value:P,id:z,inputRef:b,onBlur:A,onChange:C,onFocus:k,placeholder:E,inputProps:g},F,v));return(0,Ne.jsxs)(CE,(0,Ft.A)({className:(0,zt.A)(L.root,s),disabled:u,error:c,fullWidth:p,ref:t,required:R,color:a,variant:N,ownerState:D},M,{children:[null!=y&&""!==y&&(0,Ne.jsx)(cE,(0,Ft.A)({htmlFor:z,id:$},m,{children:y})),O?(0,Ne.jsx)(US,(0,Ft.A)({"aria-describedby":B,id:z,labelId:$,value:P,input:U},T,{children:i})):U,h&&(0,Ne.jsx)(wE,(0,Ft.A)({id:B},d,{children:h}))]}))})),EE=["className","color","edge","size","sx"],RE=(0,Ht.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${(0,Wt.A)(r.edge)}`],t[`size${(0,Wt.A)(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${KA.thumb}`]:{width:16,height:16},[`& .${KA.switchBase}`]:{padding:4,[`&.${KA.checked}`]:{transform:"translateX(16px)"}}}}]}),jE=(0,Ht.Ay)(Uk,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${KA.input}`]:t.input},"default"!==r.color&&t[`color${(0,Wt.A)(r.color)}`]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${KA.checked}`]:{transform:"translateX(20px)"},[`&.${KA.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${KA.checked} + .${KA.track}`]:{opacity:.5},[`&.${KA.disabled} + .${KA.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:""+("light"===t.palette.mode?.12:.2)},[`& .${KA.input}`]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,fi.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{color:r},style:{[`&.${KA.checked}`]:{color:(t.vars||t).palette[r].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,fi.X4)(t.palette[r].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${KA.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${r}DisabledColor`]:`${"light"===t.palette.mode?(0,fi.a)(t.palette[r].main,.62):(0,fi.e$)(t.palette[r].main,.55)}`}},[`&.${KA.checked} + .${KA.track}`]:{backgroundColor:(t.vars||t).palette[r].main}}}}))]}})),OE=(0,Ht.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${"light"===t.palette.mode?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:""+("light"===t.palette.mode?.38:.3)}})),TE=(0,Ht.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),IE=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiSwitch"}),{className:n,color:o="primary",edge:i=!1,size:s="medium",sx:a}=r,l=(0,Lt.A)(r,EE),u=(0,Ft.A)({},r,{color:o,edge:i,size:s}),c=(e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:s}=e,a={root:["root",r&&`edge${(0,Wt.A)(r)}`,`size${(0,Wt.A)(n)}`],switchBase:["switchBase",`color${(0,Wt.A)(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,$t.A)(a,QA,t);return(0,Ft.A)({},t,l)})(u),d=(0,Ne.jsx)(TE,{className:c.thumb,ownerState:u});return(0,Ne.jsxs)(RE,{className:(0,zt.A)(c.root,n),sx:a,ownerState:u,children:[(0,Ne.jsx)(jE,(0,Ft.A)({type:"checkbox",icon:d,checkedIcon:d,ref:t,ownerState:u},l,{classes:(0,Ft.A)({},c,{root:c.switchBase})})),(0,Ne.jsx)(OE,{className:c.track,ownerState:u})]})}));function PE(e){return(0,qt.Ay)("MuiButton",e)}const NE=(0,Vt.A)("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const ME=i.createContext({});const DE=i.createContext(void 0),LE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],FE=e=>(0,Ft.A)({},"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}}),zE=(0,Ht.Ay)(Hi,{shouldForwardProp:e=>(0,dl.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,Wt.A)(r.color)}`],t[`size${(0,Wt.A)(r.size)}`],t[`${r.variant}Size${(0,Wt.A)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:r}=e;var n,o;const i="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],s="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,Ft.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,Ft.A)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,fi.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===r.variant&&"inherit"!==r.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,fi.X4)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===r.variant&&"inherit"!==r.color&&{border:`1px solid ${(t.vars||t).palette[r.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,fi.X4)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===r.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===r.variant&&"inherit"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}),"&:active":(0,Ft.A)({},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${NE.focusVisible}`]:(0,Ft.A)({},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${NE.disabled}`]:(0,Ft.A)({color:(t.vars||t).palette.action.disabled},"outlined"===r.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===r.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===r.variant&&{padding:"6px 8px"},"text"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main},"outlined"===r.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[r.color].mainChannel} / 0.5)`:`1px solid ${(0,fi.X4)(t.palette[r.color].main,.5)}`},"contained"===r.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(o=t.palette).getContrastText)?void 0:n.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},"contained"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main},"inherit"===r.color&&{color:"inherit",borderColor:"currentColor"},"small"===r.size&&"text"===r.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"text"===r.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===r.size&&"outlined"===r.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"outlined"===r.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===r.size&&"contained"===r.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"contained"===r.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${NE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${NE.disabled}`]:{boxShadow:"none"}}})),BE=(0,Ht.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${(0,Wt.A)(r.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},FE(t))})),$E=(0,Ht.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${(0,Wt.A)(r.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},FE(t))})),HE=i.forwardRef((function(e,t){const r=i.useContext(ME),n=i.useContext(DE),o=(0,Ew.A)(r,e),s=(0,Ut.b)({props:o,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:f,focusVisibleClassName:m,fullWidth:g=!1,size:v="medium",startIcon:b,type:y,variant:x="text"}=s,w=(0,Lt.A)(s,LE),_=(0,Ft.A)({},s,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:g,size:v,type:y,variant:x}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${(0,Wt.A)(t)}`,`size${(0,Wt.A)(o)}`,`${i}Size${(0,Wt.A)(o)}`,`color${(0,Wt.A)(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,Wt.A)(o)}`],endIcon:["icon","endIcon",`iconSize${(0,Wt.A)(o)}`]},l=(0,$t.A)(a,PE,s);return(0,Ft.A)({},s,l)})(_),A=b&&(0,Ne.jsx)(BE,{className:S.startIcon,ownerState:_,children:b}),C=f&&(0,Ne.jsx)($E,{className:S.endIcon,ownerState:_,children:f}),k=n||"";return(0,Ne.jsxs)(zE,(0,Ft.A)({ownerState:_,className:(0,zt.A)(r.className,S.root,c,k),component:u,disabled:d,focusRipple:!h,focusVisibleClassName:(0,zt.A)(S.focusVisible,m),ref:t,type:y},w,{classes:S,children:[A,a,C]}))}));function UE(e){return(0,qt.Ay)("MuiInputAdornment",e)}const WE=(0,Vt.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var VE;const qE=["children","className","component","disablePointerEvents","disableTypography","position","variant"],GE=(0,Ht.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${(0,Wt.A)(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&{[`&.${WE.positionStart}&:not(.${WE.hiddenLabel})`]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})})),QE=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:u,variant:c}=r,d=(0,Lt.A)(r,qE),p=Zf()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const f=(0,Ft.A)({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:u,variant:h}),m=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:s}=e,a={root:["root",r&&"disablePointerEvents",o&&`position${(0,Wt.A)(o)}`,s,n&&"hiddenLabel",i&&`size${(0,Wt.A)(i)}`]};return(0,$t.A)(a,UE,t)})(f);return(0,Ne.jsx)(Yf.Provider,{value:null,children:(0,Ne.jsx)(GE,(0,Ft.A)({as:s,ownerState:f,className:(0,zt.A)(m.root,o),ref:t},d,{children:"string"!==typeof n||l?(0,Ne.jsxs)(i.Fragment,{children:["start"===u?VE||(VE=(0,Ne.jsx)("span",{className:"notranslate",children:"\u200b"})):null,n]}):(0,Ne.jsx)(Yt,{color:"text.secondary",children:n})}))})}));function KE(e){return(0,qt.Ay)("MuiTooltip",e)}const JE=(0,Vt.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),XE=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const YE=(0,Ht.Ay)(sv,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:r,open:n}=e;return(0,Ft.A)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&{[`&[data-popper-placement*="bottom"] .${JE.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${JE.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${JE.arrow}`]:(0,Ft.A)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${JE.arrow}`]:(0,Ft.A)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),ZE=(0,Ht.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Wt.A)(r.placement.split("-")[0])}`]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,fi.X4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:t.typography.fontWeightRegular},{[`.${JE.popper}[data-popper-placement*="left"] &`]:(0,Ft.A)({transformOrigin:"right center"},r.isRtl?(0,Ft.A)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):(0,Ft.A)({marginRight:"14px"},r.touch&&{marginRight:"24px"})),[`.${JE.popper}[data-popper-placement*="right"] &`]:(0,Ft.A)({transformOrigin:"left center"},r.isRtl?(0,Ft.A)({marginRight:"14px"},r.touch&&{marginRight:"24px"}):(0,Ft.A)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"})),[`.${JE.popper}[data-popper-placement*="top"] &`]:(0,Ft.A)({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"}),[`.${JE.popper}[data-popper-placement*="bottom"] &`]:(0,Ft.A)({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})});var n})),eR=(0,Ht.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,fi.X4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let tR=!1;const rR=new ti.E;let nR={x:0,y:0};function oR(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];t&&t(r,...o),e(r,...o)}}const iR=i.forwardRef((function(e,t){var r,n,o,s,a,l,u,c,d,p,h,f,m,g,v,b,y,x,w;const _=(0,Ut.b)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:A,components:C={},componentsProps:k={},describeChild:E=!1,disableFocusListener:R=!1,disableHoverListener:j=!1,disableInteractive:O=!1,disableTouchListener:T=!1,enterDelay:I=100,enterNextDelay:P=0,enterTouchDelay:N=700,followCursor:M=!1,id:D,leaveDelay:L=0,leaveTouchDelay:F=1500,onClose:z,onOpen:B,open:$,placement:H="bottom",PopperComponent:U,PopperProps:W={},slotProps:V={},slots:q={},title:G,TransitionComponent:Q=jl,TransitionProps:K}=_,J=(0,Lt.A)(_,XE),X=i.isValidElement(A)?A:(0,Ne.jsx)("span",{children:A}),Y=br(),Z=Xi(),[ee,te]=i.useState(),[re,ne]=i.useState(null),oe=i.useRef(!1),ie=O||M,se=(0,ti.A)(),ae=(0,ti.A)(),le=(0,ti.A)(),ue=(0,ti.A)(),[ce,de]=(0,iS.A)({controlled:$,default:!1,name:"Tooltip",state:"open"});let pe=ce;const he=(0,aA.A)(D),fe=i.useRef(),me=(0,mi.A)((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),ue.clear()}));i.useEffect((()=>me),[me]);const ge=e=>{rR.clear(),tR=!0,de(!0),B&&!pe&&B(e)},ve=(0,mi.A)((e=>{rR.start(800+L,(()=>{tR=!1})),de(!1),z&&pe&&z(e),se.start(Y.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),ae.clear(),le.clear(),I||tR&&P?ae.start(tR?P:I,(()=>{ge(e)})):ge(e))},ye=e=>{ae.clear(),le.start(L,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:we,onFocus:_e,ref:Se}=(0,gi.A)(),[,Ae]=i.useState(!1),Ce=e=>{we(e),!1===xe.current&&(Ae(!1),ye(e))},ke=e=>{ee||te(e.currentTarget),_e(e),!0===xe.current&&(Ae(!0),be(e))},Ee=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Re=e=>{Ee(e),le.clear(),se.clear(),me(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(N,(()=>{document.body.style.WebkitUserSelect=fe.current,be(e)}))},je=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),le.start(F,(()=>{ve(e)}))};i.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Oe=(0,ii.A)(na(X),Se,te,t);G||0===G||(pe=!1);const Te=i.useRef(),Ie={},Pe="string"===typeof G;E?(Ie.title=pe||!Pe||j?null:G,Ie["aria-describedby"]=pe?he:null):(Ie["aria-label"]=Pe?G:null,Ie["aria-labelledby"]=pe&&!Pe?he:null);const Me=(0,Ft.A)({},Ie,J,X.props,{className:(0,zt.A)(J.className,X.props.className),onTouchStart:Ee,ref:Oe},M?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),nR={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{});const De={};T||(Me.onTouchStart=Re,Me.onTouchEnd=je),j||(Me.onMouseOver=oR(be,Me.onMouseOver),Me.onMouseLeave=oR(ye,Me.onMouseLeave),ie||(De.onMouseOver=be,De.onMouseLeave=ye)),R||(Me.onFocus=oR(ke,Me.onFocus),Me.onBlur=oR(Ce,Me.onBlur),ie||(De.onFocus=ke,De.onBlur=Ce));const Le=i.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(re),options:{element:re,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),(0,Ft.A)({},W.popperOptions,{modifiers:t})}),[re,W]),Fe=(0,Ft.A)({},_,{isRtl:Z,arrow:S,disableInteractive:ie,placement:H,PopperComponentProp:U,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,Wt.A)(i.split("-")[0])}`],arrow:["arrow"]};return(0,$t.A)(s,KE,t)})(Fe),Be=null!=(r=null!=(n=q.popper)?n:C.Popper)?r:YE,$e=null!=(o=null!=(s=null!=(a=q.transition)?a:C.Transition)?s:Q)?o:jl,He=null!=(l=null!=(u=q.tooltip)?u:C.Tooltip)?l:ZE,Ue=null!=(c=null!=(d=q.arrow)?d:C.Arrow)?c:eR,We=Qs(Be,(0,Ft.A)({},W,null!=(p=V.popper)?p:k.popper,{className:(0,zt.A)(ze.popper,null==W?void 0:W.className,null==(h=null!=(f=V.popper)?f:k.popper)?void 0:h.className)}),Fe),Ve=Qs($e,(0,Ft.A)({},K,null!=(m=V.transition)?m:k.transition),Fe),qe=Qs(He,(0,Ft.A)({},null!=(g=V.tooltip)?g:k.tooltip,{className:(0,zt.A)(ze.tooltip,null==(v=null!=(b=V.tooltip)?b:k.tooltip)?void 0:v.className)}),Fe),Ge=Qs(Ue,(0,Ft.A)({},null!=(y=V.arrow)?y:k.arrow,{className:(0,zt.A)(ze.arrow,null==(x=null!=(w=V.arrow)?w:k.arrow)?void 0:x.className)}),Fe);return(0,Ne.jsxs)(i.Fragment,{children:[i.cloneElement(X,Me),(0,Ne.jsx)(Be,(0,Ft.A)({as:null!=U?U:sv,placement:H,anchorEl:M?{getBoundingClientRect:()=>({top:nR.y,left:nR.x,right:nR.x,bottom:nR.y,width:0,height:0})}:ee,popperRef:Te,open:!!ee&&pe,id:he,transition:!0},De,We,{popperOptions:Le,children:e=>{let{TransitionProps:t}=e;return(0,Ne.jsx)($e,(0,Ft.A)({timeout:Y.transitions.duration.shorter},t,Ve,{children:(0,Ne.jsxs)(He,(0,Ft.A)({},qe,{children:[G,S?(0,Ne.jsx)(Ue,(0,Ft.A)({},Ge,{ref:ne})):null]}))}))}}))]})})),sR=["sortingOrder"],aR=i.memo((function(e){const{sortingOrder:t}=e,r=(0,Lt.A)(e,sR),n=tp(),[o]=t,i="asc"===o?n.slots.columnSortedAscendingIcon:n.slots.columnSortedDescendingIcon;return i?(0,Ne.jsx)(i,(0,Ft.A)({},r)):null})),lR=(0,eu.A)((0,Ne.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),uR=(0,eu.A)((0,Ne.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),cR=(0,eu.A)((0,Ne.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),dR=(0,eu.A)((0,Ne.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),pR=(0,eu.A)((0,Ne.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),hR=(0,eu.A)((0,Ne.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),fR=(0,eu.A)((0,Ne.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),mR=((0,eu.A)((0,Ne.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),(0,eu.A)((0,Ne.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),(0,eu.A)((0,Ne.jsx)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),gR=(0,eu.A)((0,Ne.jsx)("path",{d:"M11 19V5h2v14z"}),"Separator"),vR=(0,eu.A)((0,Ne.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),bR=(0,eu.A)((0,Ne.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),yR=(0,eu.A)((0,Ne.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),xR=(0,eu.A)((0,Ne.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),wR=(0,eu.A)((0,Ne.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),_R=(0,eu.A)((0,Ne.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),SR=(0,eu.A)((0,Ne.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),AR=(0,eu.A)((0,Ne.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),CR=(0,eu.A)((0,Ne.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),kR=(0,eu.A)((0,Ne.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),ER=(0,eu.A)((0,Ne.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),RR=(0,eu.A)((0,Ne.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),jR=(0,eu.A)((0,Ne.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),OR=(0,eu.A)((0,Ne.jsx)("g",{children:(0,Ne.jsx)("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),TR=(0,eu.A)((0,Ne.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),IR=((0,eu.A)((0,Ne.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),(0,eu.A)((0,Ne.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")),PR=["native"];const NR={BooleanCellTrueIcon:ER,BooleanCellFalseIcon:wR,ColumnMenuIcon:xR,OpenFilterButtonIcon:pR,FilterPanelDeleteIcon:wR,ColumnFilteredIcon:hR,ColumnSelectorIcon:mR,ColumnUnsortedIcon:aR,ColumnSortedAscendingIcon:lR,ColumnSortedDescendingIcon:uR,ColumnResizeIcon:gR,DensityCompactIcon:vR,DensityStandardIcon:bR,DensityComfortableIcon:yR,ExportIcon:kR,MoreActionsIcon:RR,TreeDataCollapseIcon:dR,TreeDataExpandIcon:cR,GroupingCriteriaCollapseIcon:dR,GroupingCriteriaExpandIcon:cR,DetailPanelExpandIcon:_R,DetailPanelCollapseIcon:SR,RowReorderIcon:CR,QuickFilterIcon:fR,QuickFilterClearIcon:wR,ColumnMenuHideIcon:jR,ColumnMenuSortAscendingIcon:lR,ColumnMenuSortDescendingIcon:uR,ColumnMenuFilterIcon:hR,ColumnMenuManageColumnsIcon:OR,ColumnMenuClearIcon:TR,LoadIcon:AR,FilterPanelAddIcon:_R,FilterPanelRemoveAllIcon:IR,ColumnReorderIcon:CR},MR=(0,Ft.A)({},NR,{BaseCheckbox:eE,BaseTextField:kE,BaseFormControl:mE,BaseSelect:US,BaseSwitch:IE,BaseButton:HE,BaseIconButton:Gi,BaseInputAdornment:QE,BaseTooltip:iR,BasePopper:sv,BaseInputLabel:cE,BaseSelectOption:function(e){let{native:t}=e,r=(0,Lt.A)(e,PR);return t?(0,Ne.jsx)("option",(0,Ft.A)({},r)):(0,Ne.jsx)(Ax,(0,Ft.A)({},r))},BaseChip:yv}),DR=(0,Ft.A)({},MR,{Cell:TC,SkeletonCell:function(e){const{align:t,width:r,contentWidth:n}=e,o=(0,Lt.A)(e,Uw),i=(e=>{const{align:t,classes:r}=e,n={root:["cell","cellSkeleton",`cell--text${(0,kd.A)(t)}`,"withBorderColor"]};return(0,$t.A)(n,Md,r)})({classes:tp().classes,align:t});return(0,Ne.jsx)("div",(0,Ft.A)({className:i.root,style:{width:r}},o,{children:(0,Ne.jsx)(Hw,{width:`${n}%`})}))},ColumnHeaderFilterIconButton:function(e){var t,r;const{counter:n,field:o,onClick:s}=e,a=Af(),l=tp(),u=(e=>{const{classes:t}=e;return(0,$t.A)({icon:["filterIcon"]},Md,t)})((0,Ft.A)({},e,{classes:l.classes})),c=Xd(a,ow),d=(0,Vs.A)(),p=(0,Vs.A)(),h=i.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:r}=ow(a.current.state);t&&r===ax.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,p,d),s&&s(a.current.getColumnHeaderParams(o),e)}),[a,o,s,p,d]);if(!n)return null;const f=c.open&&c.labelId===d,m=(0,Ne.jsx)(l.slots.baseIconButton,(0,Ft.A)({id:d,onClick:h,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?p:void 0},null==(t=l.slotProps)?void 0:t.baseIconButton,{children:(0,Ne.jsx)(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return(0,Ne.jsx)(l.slots.baseTooltip,(0,Ft.A)({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},null==(r=l.slotProps)?void 0:r.baseTooltip,{children:(0,Ne.jsxs)(Zw,{children:[n>1&&(0,Ne.jsx)(Jw,{badgeContent:n,color:"default",children:m}),1===n&&m]})}))},ColumnMenu:Lk,ColumnHeaders:mk,Footer:s_,FooterRowCount:u_,Toolbar:null,PreferencesPanel:c_,LoadingOverlay:R_,NoResultsOverlay:Fk,NoRowsOverlay:j_,Pagination:SA,FilterPanel:GA,ColumnsPanel:function(e){var t,r,n;const o=Af(),s=i.useRef(null),a=Xd(o,bp),l=Xd(o,yp),u=tp(),[c,d]=i.useState(""),p=(e=>{const{classes:t}=e;return(0,$t.A)({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Md,t)})(u),{sort:h,searchPredicate:f=vC,autoFocusSearchField:m=!0,disableHideAllButton:g=!1,disableShowAllButton:v=!1,getTogglableColumns:b}=e,y=(0,Lt.A)(e,hC),x=i.useMemo((()=>{switch(h){case"asc":return[...a].sort(((e,t)=>gC.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...a].sort(((e,t)=>-gC.compare(e.headerName||e.field,t.headerName||t.field)));default:return a}}),[a,h]),w=e=>{const{name:t}=e.target;o.current.setColumnVisibility(t,!1===l[t])},_=i.useCallback((e=>{const t=yp(o),r=(0,Ft.A)({},t),n=b?b(a):null;return a.forEach((t=>{t.hideable&&(null==n||n.includes(t.field))&&(e?delete r[t.field]:r[t.field]=!1)})),o.current.setColumnVisibilityModel(r)}),[o,a,b]),S=i.useCallback((e=>{d(e.target.value)}),[]),A=i.useMemo((()=>{const e=b?b(x):null,t=e?x.filter((t=>{let{field:r}=t;return e.includes(r)})):x;return c?t.filter((e=>f(e,c.toLowerCase()))):t}),[x,c,f,b]),C=i.useRef(null);i.useEffect((()=>{m?s.current.focus():C.current&&"function"===typeof C.current.focus&&C.current.focus()}),[m]);let k=!1;const E=e=>!1===k&&!1!==e.hideable&&(k=!0,!0);return(0,Ne.jsxs)(PA,(0,Ft.A)({},y,{children:[(0,Ne.jsx)(pC,{children:(0,Ne.jsx)(u.slots.baseTextField,(0,Ft.A)({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:s,value:c,onChange:S,variant:"standard",fullWidth:!0},null==(t=u.slotProps)?void 0:t.baseTextField))}),(0,Ne.jsx)(kA,{children:(0,Ne.jsx)(fC,{className:p.root,ownerState:u,children:A.map((e=>{var t;return(0,Ne.jsxs)(mC,{className:p.columnsPanelRow,ownerState:u,children:[(0,Ne.jsx)(uC,{control:(0,Ne.jsx)(u.slots.baseSwitch,(0,Ft.A)({disabled:!1===e.hideable,checked:!1!==l[e.field],onClick:w,name:e.field,size:"small",inputRef:E(e)?C:void 0},null==(t=u.slotProps)?void 0:t.baseSwitch)),label:e.headerName||e.field}),!u.disableColumnReorder&&false]},e.field)}))})}),v&&g?null:(0,Ne.jsxs)(jA,{children:[g?(0,Ne.jsx)("span",{}):(0,Ne.jsx)(u.slots.baseButton,(0,Ft.A)({onClick:()=>_(!1)},null==(r=u.slotProps)?void 0:r.baseButton,{disabled:g,children:o.current.getLocaleText("columnsPanelHideAllButton")})),v?null:(0,Ne.jsx)(u.slots.baseButton,(0,Ft.A)({onClick:()=>_(!0)},null==(n=u.slotProps)?void 0:n.baseButton,{disabled:v,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))},Panel:_C,Row:NC}),LR=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,r)=>(0,Ft.A)({},t,{[`${r.charAt(0).toLowerCase()}${r.slice(1)}`]:e[r]})),{})},FR=["components","componentsProps"];function zR(e){var t;const r=Object.keys(e);if(!r.some((e=>e.startsWith("aria-")||e.startsWith("data-"))))return e;const n={},o=null!=(t=e.forwardedProps)?t:{};for(let i=0;i<r.length;i+=1){const t=r[i];t.startsWith("aria-")||t.startsWith("data-")?o[t]=e[t]:n[t]=e[t]}return n.forwardedProps=o,n}const BR={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},$R={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:fy.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:"\t",rowPositionsDebounceMs:166},HR=LR(DR),UR=e=>{const[t,r,n]=(o=function(e){let{props:t,name:r}=e;return Rw({props:t,name:r,defaultTheme:vr.A,themeId:pr.A})}({props:e,name:"MuiDataGrid"}),i.useMemo((()=>{const{components:e,componentsProps:t}=o;return[e,t,zR((0,Lt.A)(o,FR))]}),[o]));var o;const s=i.useMemo((()=>(0,Ft.A)({},jw,n.localeText)),[n.localeText]),a=i.useMemo((()=>function(e){let{defaultSlots:t,slots:r,components:n}=e;const o=null!=r?r:n?LR(n):null;if(!o||0===Object.keys(o).length)return t;const i=(0,Ft.A)({},t);return Object.keys(o).forEach((e=>{const t=e;void 0!==o[t]&&(i[t]=o[t])})),i}({defaultSlots:HR,slots:n.slots,components:t})),[t,n.slots]);return i.useMemo((()=>{var e;return(0,Ft.A)({},$R,n,{localeText:s,slots:a,slotProps:null!=(e=n.slotProps)?e:r},BR)}),[n,s,a,r])},WR=e=>(0,Ft.A)({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}});const VR=(e,t,r)=>"number"===typeof e&&e>0?e:t;["MUI: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join("\n"),["MUI: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join("\n");function qR(e){return void 0!==e.field}const GR=(e,t,r)=>{if(qR(e)){if(void 0!==r[e.field])throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${r[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(r[e.field]=t)}const{groupId:n,children:o}=e;o.forEach((e=>{GR(e,[...t,n],r)}))},QR=e=>{if(!e)return{};const t={};return e.forEach((e=>{GR(e,[],t)})),t},KR=(e,t,r)=>{const n=e=>{var r;return null!=(r=t[e])?r:[]},o=[],i=Math.max(...e.map((e=>n(e).length))),s=(e,t,r)=>Hh(n(e).slice(0,r+1),n(t).slice(0,r+1));for(let a=0;a<i;a+=1){const t=e.reduce(((e,t)=>{var o;const i=null!=(o=n(t)[a])?o:null;if(0===e.length)return[{columnFields:[t],groupId:i}];const l=e[e.length-1],u=l.columnFields[l.columnFields.length-1];return l.groupId!==i||!s(u,t,a)||(c=u,d=t,null!=r&&r.left&&r.left.includes(c)&&!r.left.includes(d)||null!=r&&r.right&&!r.right.includes(c)&&r.right.includes(d))?[...e,{columnFields:[t],groupId:i}]:[...e.slice(0,e.length-1),{columnFields:[...l.columnFields,t],groupId:i}];var c,d}),[]);o.push(t)}return o},JR=["groupId","children"],XR=e=>{let t={};return e.forEach((e=>{if(qR(e))return;const{groupId:r,children:n}=e,o=(0,Lt.A)(e,JR);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");n||console.warn(`MUI: group groupId=${r} has no children.`);const i=(0,Ft.A)({},o,{groupId:r}),s=XR(n);if(void 0!==s[r]||void 0!==t[r])throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=(0,Ft.A)({},t,s,{[r]:i})})),(0,Ft.A)({},t)},YR=(e,t,r)=>{var n,o,i,s;if(null==(n=t.experimentalFeatures)||!n.columnGrouping)return e;const a=gp(r),l=wp(r),u=XR(null!=(o=t.columnGroupingModel)?o:[]),c=QR(null!=(i=t.columnGroupingModel)?i:[]),d=KR(a,c,null!=(s=r.current.state.pinnedColumns)?s:{}),p=0===l.length?0:Math.max(...l.map((e=>{var t,r;return null!=(t=null==(r=c[e])?void 0:r.length)?t:0})));return(0,Ft.A)({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:d,maxDepth:p}})},ZR=(e,t)=>{const r={enabled:!t.disableVirtualization,enabledForColumns:!0};return(0,Ft.A)({},e,{virtualization:r})};const ej=(e,t)=>{const r=ff(e,t);return Aw(r,t),(e=>{Lx(e,pf,"rowTreeCreation",yw)})(r),mf(Sw,r,t),mf(ux,r,t),mf(vw,r,t),mf(mw,r,t),mf(Wx,r,t),mf(Cw,r,t),mf(iw,r,t),mf(Fx,r,t),mf(dx,r,t),mf(rw,r,t),mf(WR,r,t),mf(qb,r,t),mf(YR,r,t),mf(ZR,r,t),tw(r,t),((e,t)=>{const r=gf(e,"useGridSelection"),n=e=>function(){t.rowSelection&&e(...arguments)},o=i.useMemo((()=>_w(t.rowSelectionModel,Ef(e.current.state))),[e,t.rowSelectionModel]),s=i.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Ef,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:l,disableRowSelectionOnClick:u,isRowSelectable:c}=t,d=!l||a,p=Ux(e,t),h=i.useCallback((t=>{var r;let n=t;const o=null!=(r=s.current)?r:t,i=e.current.isRowSelected(t);if(i){const t=vh(e),r=t.findIndex((e=>e===o)),i=t.findIndex((e=>e===n));if(r===i)return;n=r>i?t[i+1]:t[i-1]}s.current=t,e.current.selectRowRange({startId:o,endId:n},!i)}),[e]),f=i.useCallback((n=>{if(t.signature===ef.DataGrid&&!t.checkboxSelection&&Array.isArray(n)&&n.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join("\n"));Ef(e.current.state)!==n&&(r.debug("Setting selection model"),e.current.setState((e=>(0,Ft.A)({},e,{rowSelection:t.rowSelection?n:[]}))),e.current.forceUpdate())}),[e,r,t.rowSelection,t.signature,t.checkboxSelection]),m=i.useCallback((t=>Ef(e.current.state).includes(t)),[e]),g=i.useCallback((t=>{if(c&&!c(e.current.getRowParams(t)))return!1;const r=e.current.getRowNode(t);return"footer"!==(null==r?void 0:r.type)&&"pinnedRow"!==(null==r?void 0:r.type)}),[e,c]),v=i.useCallback((()=>jf(e)),[e]),b=i.useCallback((function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.current.isRowSelectable(t))if(s.current=t,o)r.debug(`Setting selection for row ${t}`),e.current.setRowSelectionModel(n?[t]:[]);else{r.debug(`Toggling selection for row ${t}`);const o=Ef(e.current.state).filter((e=>e!==t));n&&o.push(t),(o.length<2||d)&&e.current.setRowSelectionModel(o)}}),[e,r,d]),y=i.useCallback((function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.debug("Setting selection for several rows");const i=t.filter((t=>e.current.isRowSelectable(t)));let s;if(o)s=n?i:[];else{const t=(0,Ft.A)({},Of(e));i.forEach((e=>{n?t[e]=e:delete t[e]})),s=Object.values(t)}(s.length<2||d)&&e.current.setRowSelectionModel(s)}),[e,r,d]),x=i.useCallback((function(t){let{startId:n,endId:o}=t,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e.current.getRow(n)||!e.current.getRow(o))return;r.debug(`Expanding selection from row ${n} to row ${o}`);const a=vh(e),l=a.indexOf(n),u=a.indexOf(o),[c,d]=l>u?[u,l]:[l,u],p=a.slice(c,d+1);e.current.selectRows(p,i,s)}),[e,r]),w={selectRows:y,selectRowRange:x};Vh(e,{selectRow:b,setRowSelectionModel:f,getSelectedRows:v,isRowSelected:m,isRowSelectable:g},"public"),Vh(e,w,t.signature===ef.DataGrid?"private":"public");const _=i.useCallback((()=>{if(t.keepNonExistentRowsSelected)return;const r=Ef(e.current.state),n=Mp(e),o=(0,Ft.A)({},Of(e));let i=!1;r.forEach((e=>{n[e]||(delete o[e],i=!0)})),i&&e.current.setRowSelectionModel(Object.values(o))}),[e,t.keepNonExistentRowsSelected]),S=i.useCallback(((t,r)=>{const n=r.metaKey||r.ctrlKey,o=!a&&!n&&!(e=>!!e.key)(r),i=!d||o,s=e.current.isRowSelected(t);i?e.current.selectRow(t,!!o||!s,!0):e.current.selectRow(t,!s,!1)}),[e,d,a]),A=i.useCallback(((t,r)=>{var n;if(u)return;const o=null==(n=r.target.closest(`.${Dd.cell}`))?void 0:n.getAttribute("data-field");if(o!==zb.field&&o!==Vx){if(o){const t=e.current.getColumn(o);if((null==t?void 0:t.type)===Jy)return}"pinnedRow"!==e.current.getRowNode(t.id).type&&(r.shiftKey&&(d||a)?h(t.id):S(t.id,r))}}),[u,d,a,e,h,S]),C=i.useCallback(((e,t)=>{var r;d&&t.shiftKey&&(null==(r=window.getSelection())||r.removeAllRanges())}),[d]),k=i.useCallback(((t,r)=>{r.nativeEvent.shiftKey?h(t.id):e.current.selectRow(t.id,t.value)}),[e,h]),E=i.useCallback((r=>{const n=t.checkboxSelectionVisibleOnly&&t.pagination?Hf(e):vh(e),o=hh(e);e.current.selectRows(n,r.value,(null==o?void 0:o.items.length)>0)}),[e,t.checkboxSelectionVisibleOnly,t.pagination]),R=i.useCallback(((t,r)=>{if(e.current.getCellMode(t.id,t.field)!==my.Edit&&!Yx(r)){if(_f(r.key)&&r.shiftKey){const n=kh(e);if(n&&n.id!==t.id){r.preventDefault();const o=e.current.isRowSelected(n.id);if(!d)return void e.current.selectRow(n.id,!o,!0);const i=e.current.getRowIndexRelativeToVisibleRows(n.id),s=e.current.getRowIndexRelativeToVisibleRows(t.id);let a,l;i>s?o?(a=s,l=i-1):(a=s,l=i):o?(a=i+1,l=s):(a=i,l=s);const u=p.rows.slice(a,l+1).map((e=>e.id));return void e.current.selectRows(u,!o)}}if(" "===r.key&&r.shiftKey)return r.preventDefault(),void S(t.id,r);"a"===r.key&&(r.ctrlKey||r.metaKey)&&(r.preventDefault(),y(e.current.getAllRowIds(),!0))}}),[e,S,y,p.rows,d]);nf(e,"sortedRowsSet",n(_)),nf(e,"rowClick",n(A)),nf(e,"rowSelectionCheckboxChange",n(k)),nf(e,"headerSelectionCheckboxChange",E),nf(e,"cellMouseDown",n(C)),nf(e,"cellKeyDown",n(R)),i.useEffect((()=>{void 0!==o&&e.current.setRowSelectionModel(o)}),[e,o,t.rowSelection]),i.useEffect((()=>{t.rowSelection||e.current.setRowSelectionModel([])}),[e,t.rowSelection]);const j=null!=o;i.useEffect((()=>{if(j||!t.rowSelection)return;const r=Ef(e.current.state);if(g){const t=r.filter((e=>g(e)));t.length<r.length&&e.current.setRowSelectionModel(t)}}),[e,g,j,t.rowSelection]),i.useEffect((()=>{if(!t.rowSelection||j)return;const r=Ef(e.current.state);!d&&r.length>1&&e.current.setRowSelectionModel([])}),[e,d,a,j,t.rowSelection])})(r,t),function(e,t){var r,n;const o=gf(e,"useGridColumns"),s=lx,a=i.useRef(t.columns),l=i.useRef(s);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:yp,changeEvent:"columnVisibilityModelChange"});const u=i.useCallback((t=>{o.debug("Updating columns state."),e.current.setState(nx(t)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",t.orderedFields)}),[o,e]),c=i.useCallback((t=>vp(e)[t]),[e]),d=i.useCallback((()=>bp(e)),[e]),p=i.useCallback((()=>xp(e)),[e]),h=i.useCallback((function(t){return(arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?bp(e):xp(e)).findIndex((e=>e.field===t))}),[e]),f=i.useCallback((t=>{const r=h(t);return _p(e)[r]}),[e,h]),m=i.useCallback((t=>{yp(e)!==t&&(e.current.setState((r=>(0,Ft.A)({},r,{columns:rx({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})}))),e.current.forceUpdate())}),[e,s]),g=i.useCallback((t=>{const r=rx({apiRef:e,columnTypes:s,columnsToUpsert:t,initialState:void 0,keepOnlyColumnsToUpsert:!1});u(r)}),[e,u,s]),v=i.useCallback(((t,r)=>{var n;const o=yp(e);if(r!==(null==(n=o[t])||n)){const n=(0,Ft.A)({},o,{[t]:r});e.current.setColumnVisibilityModel(n)}}),[e]),b=i.useCallback((t=>gp(e).findIndex((e=>e===t))),[e]),y=i.useCallback(((t,r)=>{const n=gp(e),i=b(t);if(i===r)return;o.debug(`Moving column ${t} to index ${r}`);const s=[...n],a=s.splice(i,1)[0];s.splice(r,0,a),u((0,Ft.A)({},mp(e.current.state),{orderedFields:s}));const l={column:e.current.getColumn(t),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(t),oldIndex:i};e.current.publishEvent("columnIndexChange",l)}),[e,o,u,b]),x=i.useCallback(((t,r)=>{var n,i;o.debug(`Updating column ${t} width to ${r}`);const s=mp(e.current.state),a=s.lookup[t],l=(0,Ft.A)({},a,{width:r,hasBeenResized:!0});u(ex((0,Ft.A)({},s,{lookup:(0,Ft.A)({},s.lookup,{[t]:l})}),null!=(n=null==(i=e.current.getRootDimensions())?void 0:i.viewportInnerSize.width)?n:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:l,width:r})}),[e,o,u]),w={setColumnIndex:y};Vh(e,{getColumn:c,getAllColumns:d,getColumnIndex:h,getColumnPosition:f,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:b,updateColumns:g,setColumnVisibilityModel:m,setColumnVisibility:v,setColumnWidth:x},"public"),Vh(e,w,t.signature===ef.DataGrid?"private":"public");const _=i.useCallback(((r,n)=>{var o,i;const s={},a=yp(e);(!n.exportOnlyDirtyModels||null!=t.columnVisibilityModel||Object.keys(null!=(o=null==(i=t.initialState)||null==(i=i.columns)?void 0:i.columnVisibilityModel)?o:{}).length>0||Object.keys(a).length>0)&&(s.columnVisibilityModel=a),s.orderedFields=gp(e);const l=bp(e),u={};return l.forEach((e=>{if(e.hasBeenResized){const t={};Zy.forEach((r=>{let n=e[r];n===1/0&&(n=-1),t[r]=n})),u[e.field]=t}})),Object.keys(u).length>0&&(s.dimensions=u),(0,Ft.A)({},r,{columns:s})}),[e,t.columnVisibilityModel,null==(r=t.initialState)?void 0:r.columns]),S=i.useCallback(((t,r)=>{var n;const o=null==(n=r.stateToRestore.columns)?void 0:n.columnVisibilityModel,i=r.stateToRestore.columns;if(null==o&&null==i)return t;const a=rx({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:i,columnVisibilityModel:o,keepOnlyColumnsToUpsert:!1});return e.current.setState(nx(a)),null!=i&&e.current.publishEvent("columnsChange",a.orderedFields),t}),[e,s]),A=i.useCallback(((e,r)=>{if(r===ax.columns){var n;const e=t.slots.columnsPanel;return(0,Ne.jsx)(e,(0,Ft.A)({},null==(n=t.slotProps)?void 0:n.columnsPanel))}return e}),[t.slots.columnsPanel,null==(n=t.slotProps)?void 0:n.columnsPanel]),C=i.useCallback((e=>t.disableColumnSelector?e:[...e,"columnMenuColumnsItem"]),[t.disableColumnSelector]);Qb(e,"columnMenu",C),Qb(e,"exportState",_),Qb(e,"restoreState",S),Qb(e,"preferencePanel",A);const k=i.useRef(null);nf(e,"viewportInnerSizeChange",(t=>{k.current!==t.width&&(k.current=t.width,u(ex(mp(e.current.state),t.width)))}));const E=i.useCallback((()=>{o.info("Columns pipe processing have changed, regenerating the columns");const t=rx({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});u(t)}),[e,o,u,s]);Kb(e,"hydrateColumns",E);const R=i.useRef(!0);i.useEffect((()=>{if(R.current)return void(R.current=!1);if(o.info(`GridColumns have changed, new length ${t.columns.length}`),a.current===t.columns&&l.current===s)return;const r=rx({apiRef:e,columnTypes:s,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});a.current=t.columns,l.current=s,u(r)}),[o,e,u,t.columns,s]),i.useEffect((()=>{void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)}),[e,o,t.columnVisibilityModel])}(r,t),bw(r,t),ww(r,t),(e=>{const t=i.useRef({}),r=i.useCallback(((e,r,n)=>{const o=t.current;o[e]||(o[e]={}),o[e][r]=n}),[]),n=i.useCallback(((e,r)=>{var n;return null==(n=t.current[e])?void 0:n[r]}),[]),o=i.useCallback((t=>{const{columnIndex:n,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:s,columns:a}=t,l=a.length,u=a[n],c="function"===typeof u.colSpan?u.colSpan(e.current.getCellParams(o,u.field)):u.colSpan;if(!c||1===c)return r(o,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let d=u.computedWidth;for(let e=1;e<c;e+=1){const t=n+e;t>=i&&t<s&&(d+=a[t].computedWidth,r(o,n+e,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(n+c,l-1),leftVisibleCellIndex:n})),r(o,n,{spannedByColSpan:!1,cellProps:{colSpan:c,width:d}})}return{colSpan:c}}),[e,r]),s={calculateColSpan:i.useCallback((e=>{let{rowId:t,minFirstColumn:r,maxLastColumn:n,columns:i}=e;for(let s=r;s<n;s+=1){const e=o({columnIndex:s,rowId:t,minFirstColumnIndex:r,maxLastColumnIndex:n,columns:i});e.colSpan>1&&(s+=e.colSpan-1)}}),[o])};Vh(e,{unstable_getCellColSpanInfo:n},"public"),Vh(e,s,"private");const a=i.useCallback((()=>{t.current={}}),[]);nf(e,"columnOrderChange",a)})(r),((e,t)=>{var r;const n=i.useCallback((t=>{var r;return null!=(r=Ep(e)[t])?r:[]}),[e]),o=i.useCallback((()=>Rp(e)),[e]);Vh(e,{unstable_getColumnGroupPath:n,unstable_getAllGroupDetails:o},"public");const s=i.useCallback((()=>{var r;const n=QR(null!=(r=t.columnGroupingModel)?r:[]);e.current.setState((e=>{var t,r,o;const i=null!=(t=null==(r=e.columns)?void 0:r.orderedFields)?t:[],s=null!=(o=e.pinnedColumns)?o:{},a=KR(i,n,s);return(0,Ft.A)({},e,{columnGrouping:(0,Ft.A)({},e.columnGrouping,{headerStructure:a})})}))}),[e,t.columnGroupingModel]),a=i.useCallback((r=>{var n,o,i,s;if(null==(n=t.experimentalFeatures)||!n.columnGrouping)return;const a=null!=(o=null==(i=(s=e.current).getPinnedColumns)?void 0:i.call(s))?o:{},l=gp(e),u=wp(e),c=XR(null!=r?r:[]),d=QR(null!=r?r:[]),p=KR(l,d,a),h=0===u.length?0:Math.max(...u.map((e=>{var t,r;return null!=(t=null==(r=d[e])?void 0:r.length)?t:0})));e.current.setState((e=>(0,Ft.A)({},e,{columnGrouping:{lookup:c,unwrappedGroupingModel:d,headerStructure:p,maxDepth:h}})))}),[e,null==(r=t.experimentalFeatures)?void 0:r.columnGrouping]);nf(e,"columnIndexChange",s),nf(e,"columnsChange",(()=>{a(t.columnGroupingModel)})),nf(e,"columnVisibilityModelChange",(()=>{a(t.columnGroupingModel)})),i.useEffect((()=>{a(t.columnGroupingModel)}),[a,t.columnGroupingModel])})(r,t),gw(r,t),((e,t)=>{const r=gf(e,"useGridFocus"),n=i.useRef(null),o=i.useCallback(((t,r)=>{t&&e.current.getRow(t.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(t.id,t.field),r)}),[e]),s=i.useCallback(((t,n)=>{const i=kh(e);(null==i?void 0:i.id)===t&&(null==i?void 0:i.field)===n||(e.current.setState((e=>(r.debug(`Focusing on cell with id=${t} and field=${n}`),(0,Ft.A)({},e,{tabIndex:{cell:{id:t,field:n},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:t,field:n},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))),e.current.forceUpdate(),e.current.getRow(t)&&(i&&o(i,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,n))))}),[e,r,o]),a=i.useCallback((function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=kh(e);o(i,n),e.current.setState((e=>(r.debug(`Focusing on column header with colIndex=${t}`),(0,Ft.A)({},e,{tabIndex:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))),e.current.forceUpdate()}),[e,r,o]),l=i.useCallback((function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=kh(e);o(i,n),e.current.setState((e=>(r.debug(`Focusing on column header filter with colIndex=${t}`),(0,Ft.A)({},e,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null}})))),e.current.forceUpdate()}),[e,r,o]),u=i.useCallback((function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=kh(e);o&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(o.id,o.field),n),e.current.setState((e=>(0,Ft.A)({},e,{tabIndex:{columnGroupHeader:{field:t,depth:r},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:t,depth:r},columnHeader:null,columnHeaderFilter:null,cell:null}}))),e.current.forceUpdate()}),[e]),c=i.useCallback((()=>Rh(e)),[e]),d=i.useCallback(((r,n,o)=>{let i=e.current.getColumnIndex(n);const s=xp(e),a=Hx(e,{pagination:t.pagination,paginationMode:t.paginationMode}),l=Hp(e),u=[].concat(l.top||[],a.rows,l.bottom||[]);let c=u.findIndex((e=>e.id===r));"right"===o?i+=1:"left"===o?i-=1:c+=1,i>=s.length?(c+=1,c<u.length&&(i=0)):i<0&&(c-=1,c>=0&&(i=s.length-1)),c=$h(c,0,u.length-1);const d=u[c];if(!d)return;const p=e.current.unstable_getCellColSpanInfo(d.id,i);p&&p.spannedByColSpan&&("left"===o||"below"===o?i=p.leftVisibleCellIndex:"right"===o&&(i=p.rightVisibleCellIndex)),i=$h(i,0,s.length-1);const h=s[i];e.current.setCellFocus(d.id,h.field)}),[e,t.pagination,t.paginationMode]),p=i.useCallback((t=>{let{id:r,field:n}=t;e.current.setCellFocus(r,n)}),[e]),h=i.useCallback(((t,r)=>{"Enter"===r.key||"Tab"===r.key||"Shift"===r.key||_f(r.key)||e.current.setCellFocus(t.id,t.field)}),[e]),f=i.useCallback(((t,r)=>{let{field:n}=t;r.target===r.currentTarget&&e.current.setColumnHeaderFocus(n,r)}),[e]),m=i.useCallback(((t,r)=>{let{fields:n,depth:o}=t;if(r.target!==r.currentTarget)return;const i=Rh(e);null!==i&&i.depth===o&&n.includes(i.field)||e.current.setColumnGroupHeaderFocus(n[0],o,r)}),[e]),g=i.useCallback(((t,n)=>{var o;null!=(o=n.relatedTarget)&&o.className.includes(Dd.columnHeader)||(r.debug("Clearing focus"),e.current.setState((e=>(0,Ft.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))))}),[r,e]),v=i.useCallback((e=>{n.current=e}),[]),b=i.useCallback((t=>{const r=n.current;n.current=null;const i=kh(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:t,cell:r}))return;if(!i)return void(r&&e.current.setCellFocus(r.id,r.field));if((null==r?void 0:r.id)===i.id&&(null==r?void 0:r.field)===i.field)return;const s=e.current.getCellElement(i.id,i.field);null!=s&&s.contains(t.target)||(r?e.current.setCellFocus(r.id,r.field):(e.current.setState((e=>(0,Ft.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),o(i,t)))}),[e,o]),y=i.useCallback((t=>{if("view"===t.cellMode)return;const r=kh(e);(null==r?void 0:r.id)===t.id&&(null==r?void 0:r.field)===t.field||e.current.setCellFocus(t.id,t.field)}),[e]),x=i.useCallback((()=>{const t=kh(e);t&&!e.current.getRow(t.id)&&e.current.setState((e=>(0,Ft.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))}),[e]),w=(0,xa.A)((()=>{const r=kh(e);if(!r)return;const n=Hx(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(n.rows.find((e=>e.id===r.id)))return;const o=xp(e);e.current.setState((e=>(0,Ft.A)({},e,{tabIndex:{cell:{id:n.rows[0].id,field:o[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}})))})),_={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:c};Vh(e,{setCellFocus:s,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:l},"public"),Vh(e,_,"private"),i.useEffect((()=>{const t=(0,oa.A)(e.current.rootElementRef.current);return t.addEventListener("mouseup",b),()=>{t.removeEventListener("mouseup",b)}}),[e,b]),nf(e,"columnHeaderBlur",g),nf(e,"cellDoubleClick",p),nf(e,"cellMouseDown",v),nf(e,"cellKeyDown",h),nf(e,"cellModeChange",y),nf(e,"columnHeaderFocus",f),nf(e,"columnGroupHeaderFocus",m),nf(e,"rowsSet",x),nf(e,"paginationModelChange",w)})(r,t),((e,t)=>{var r;const n=gf(e,"useGridPreferencesPanel"),o=i.useRef(),s=i.useRef(),a=i.useCallback((()=>{n.debug("Hiding Preferences Panel");const t=ow(e.current.state);t.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:t.openedPanelValue}),e.current.setState((e=>(0,Ft.A)({},e,{preferencePanel:{open:!1}}))),e.current.forceUpdate()}),[e,n]),l=i.useCallback((()=>{s.current=setTimeout((()=>clearTimeout(o.current)),0)}),[]),u=i.useCallback((()=>{o.current=setTimeout(a,100)}),[a]),c=i.useCallback(((t,r,o)=>{n.debug("Opening Preferences Panel"),l(),e.current.setState((e=>(0,Ft.A)({},e,{preferencePanel:(0,Ft.A)({},e.preferencePanel,{open:!0,openedPanelValue:t,panelId:r,labelId:o})}))),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t}),e.current.forceUpdate()}),[n,l,e]);Vh(e,{showPreferences:c,hidePreferences:u},"public");const d=i.useCallback(((r,n)=>{var o;const i=ow(e.current.state);return!n.exportOnlyDirtyModels||null!=(null==(o=t.initialState)?void 0:o.preferencePanel)||i.open?(0,Ft.A)({},r,{preferencePanel:i}):r}),[e,null==(r=t.initialState)?void 0:r.preferencePanel]),p=i.useCallback(((t,r)=>{const n=r.stateToRestore.preferencePanel;return null!=n&&e.current.setState((e=>(0,Ft.A)({},e,{preferencePanel:n}))),t}),[e]);Qb(e,"exportState",d),Qb(e,"restoreState",p),i.useEffect((()=>()=>{clearTimeout(o.current),clearTimeout(s.current)}),[])})(r,t),((e,t)=>{var r,n;const o=gf(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:hh,changeEvent:"filterModelChange"});const s=i.useCallback((()=>{e.current.setState((r=>{const n=hh(r,e.current.instanceId),o="client"===t.filterMode?fb(n,e,t.disableEval):null,i=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:o,filterModel:null!=n?n:tb()}),s=(0,Ft.A)({},r,{filter:(0,Ft.A)({},r.filter,i)}),a=Bx(e,s);return(0,Ft.A)({},s,{visibleRowsLookup:a})})),e.current.publishEvent("filteredRowsSet")}),[e,t.filterMode,t.disableEval]),a=i.useCallback(((e,r)=>null==r||!1===r.filterable||t.disableColumnFilter?e:[...e,"columnMenuFilterItem"]),[t.disableColumnFilter]),l=i.useCallback((()=>{s(),e.current.forceUpdate()}),[e,s]),u=i.useCallback((t=>{const r=hh(e),n=[...r.items],o=n.findIndex((e=>e.id===t.id));-1===o?n.push(t):n[o]=t,e.current.setFilterModel((0,Ft.A)({},r,{items:n}),"upsertFilterItem")}),[e]),c=i.useCallback((t=>{const r=hh(e),n=[...r.items];t.forEach((e=>{const r=t.findIndex((t=>t.id===e.id));-1===r?n.push(e):n[r]=e})),e.current.setFilterModel((0,Ft.A)({},r,{items:t}),"upsertFilterItems")}),[e]),d=i.useCallback((t=>{const r=hh(e),n=r.items.filter((e=>e.id!==t.id));n.length!==r.items.length&&e.current.setFilterModel((0,Ft.A)({},r,{items:n}),"deleteFilterItem")}),[e]),p=i.useCallback(((r,n,i)=>{if(o.debug("Displaying filter panel"),r){const n=hh(e),o=n.items.filter((t=>{var r;if(void 0!==t.value)return!Array.isArray(t.value)||0!==t.value.length;const n=null==(r=e.current.getColumn(t.field).filterOperators)?void 0:r.find((e=>e.value===t.operator));return!("undefined"===typeof(null==n?void 0:n.requiresFilterValue)||(null==n?void 0:n.requiresFilterValue))}));let i;const s=o.find((e=>e.field===r)),a=e.current.getColumn(r);i=s?o:t.disableMultipleColumnsFiltering?[ob({field:r,operator:a.filterOperators[0].value},e)]:[...o,ob({field:r,operator:a.filterOperators[0].value},e)],e.current.setFilterModel((0,Ft.A)({},n,{items:i}))}e.current.showPreferences(ax.filters,n,i)}),[e,o,t.disableMultipleColumnsFiltering]),h=i.useCallback((()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,o]),f=i.useCallback((t=>{const r=hh(e);r.logicOperator!==t&&e.current.setFilterModel((0,Ft.A)({},r,{logicOperator:t}),"changeLogicOperator")}),[e]),m=i.useCallback((t=>{const r=hh(e);Hh(r.quickFilterValues,t)||e.current.setFilterModel((0,Ft.A)({},r,{quickFilterValues:[...t]}))}),[e]),g={setFilterLogicOperator:f,unstable_applyFilters:l,deleteFilterItem:d,upsertFilterItem:u,upsertFilterItems:c,setFilterModel:i.useCallback(((r,n)=>{hh(e)!==r&&(o.debug("Setting filter model"),e.current.updateControlState("filter",ub(r,t.disableMultipleColumnsFiltering,e),n),e.current.unstable_applyFilters())}),[e,o,t.disableMultipleColumnsFiltering]),showFilterPanel:p,hideFilterPanel:h,setQuickFilterValues:m,ignoreDiacritics:t.ignoreDiacritics};Vh(e,g,"public");const v=i.useCallback(((r,n)=>{var o;const i=hh(e);return n.exportOnlyDirtyModels&&null==t.filterModel&&null==(null==(o=t.initialState)||null==(o=o.filter)?void 0:o.filterModel)&&Hh(i,tb())?r:(0,Ft.A)({},r,{filter:{filterModel:i}})}),[e,t.filterModel,null==(r=t.initialState)||null==(r=r.filter)?void 0:r.filterModel]),b=i.useCallback(((r,n)=>{var o;const i=null==(o=n.stateToRestore.filter)?void 0:o.filterModel;return null==i?r:(e.current.updateControlState("filter",ub(i,t.disableMultipleColumnsFiltering,e),"restoreState"),(0,Ft.A)({},r,{callbacks:[...r.callbacks,e.current.unstable_applyFilters]}))}),[e,t.disableMultipleColumnsFiltering]),y=i.useCallback(((e,r)=>{if(r===ax.filters){var n;const e=t.slots.filterPanel;return(0,Ne.jsx)(e,(0,Ft.A)({},null==(n=t.slotProps)?void 0:n.filterPanel))}return e}),[t.slots.filterPanel,null==(n=t.slotProps)?void 0:n.filterPanel]),{getRowId:x}=t,w=$d($x),_=i.useCallback((r=>{if("client"!==t.filterMode||!r.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const n=Mp(e),o={},{isRowMatchingFilters:i}=r,s={},a={passingFilterItems:null,passingQuickFilterValues:null},l=w.current(e.current.state.rows.dataRowIdToModelLookup);for(let t=0;t<l.length;t+=1){const n=l[t],u=x?x(n):n.id;i(n,void 0,a);const c=gb([a.passingFilterItems],[a.passingQuickFilterValues],r.filterModel,e,s);o[u]=c}const u="auto-generated-group-footer-root";return n[u]&&(o[u]=!0),{filteredRowsLookup:o,filteredDescendantCountLookup:{}}}),[e,t.filterMode,x,w]);Qb(e,"columnMenu",a),Qb(e,"exportState",v),Qb(e,"restoreState",b),Qb(e,"preferencePanel",y),Lx(e,pf,"filtering",_),Lx(e,pf,"visibleRowsLookupCreation",zx);const S=i.useCallback((()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const t=hh(e),r=Cp(e),n=t.items.filter((e=>e.field&&r[e.field]));n.length<t.items.length&&e.current.setFilterModel((0,Ft.A)({},t,{items:n}))}),[e,o]),A=i.useCallback((t=>{"filtering"===t&&e.current.unstable_applyFilters()}),[e]),C=i.useCallback((()=>{e.current.setState((t=>(0,Ft.A)({},t,{visibleRowsLookup:Bx(e,t)}))),e.current.forceUpdate()}),[e]);nf(e,"rowsSet",s),nf(e,"columnsChange",S),nf(e,"activeStrategyProcessorChange",A),nf(e,"rowExpansionChange",C),nf(e,"columnVisibilityModelChange",(()=>{const t=hh(e);t.quickFilterValues&&t.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()})),Gb((()=>{e.current.unstable_applyFilters()})),(0,ua.A)((()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)}),[e,o,t.filterModel])})(r,t),((e,t)=>{var r;const n=gf(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ch,changeEvent:"sortModelChange"});const o=i.useCallback(((t,r)=>{const n=ch(e),o=n.findIndex((e=>e.field===t));let i=[...n];return o>-1?r?i.splice(o,1,r):i.splice(o,1):i=[...n,r],i}),[e]),s=i.useCallback(((r,n)=>{var o;const i=ch(e).find((e=>e.field===r.field));if(i){var s;const e=void 0===n?wm(null!=(s=r.sortingOrder)?s:t.sortingOrder,i.sort):n;return null==e?void 0:(0,Ft.A)({},i,{sort:e})}return{field:r.field,sort:void 0===n?wm(null!=(o=r.sortingOrder)?o:t.sortingOrder):n}}),[e,t.sortingOrder]),a=i.useCallback(((e,r)=>null==r||!1===r.sortable?e:(r.sortingOrder||t.sortingOrder).some((e=>!!e))?[...e,"columnMenuSortItem"]:e),[t.sortingOrder]),l=i.useCallback((()=>{e.current.setState((r=>{if("server"===t.sortingMode)return n.debug("Skipping sorting rows as sortingMode = server"),(0,Ft.A)({},r,{sorting:(0,Ft.A)({},r.sorting,{sortedRows:kb(Lp(e),yb,!1)})});const o=((e,t)=>{const r=e.map((e=>((e,t)=>{const r=t.current.getColumn(e.field);return r?{getSortCellParams:e=>({id:e,field:r.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,r.field),api:t.current}),comparator:"desc"===e.sort?function(){return-1*r.sortComparator(...arguments)}:r.sortComparator}:null})(e,t))).filter((e=>!!e));return 0===r.length?null:e=>e.map((e=>({node:e,params:r.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>{return n=e,o=t,r.reduce(((e,t,r)=>{if(0!==e)return e;const i=n.params[r],s=o.params[r];return t.comparator(i.value,s.value,i,s)}),0);var n,o})).map((e=>e.node.id))})(ch(r,e.current.instanceId),e),i=e.current.applyStrategyProcessor("sorting",{sortRowList:o});return(0,Ft.A)({},r,{sorting:(0,Ft.A)({},r.sorting,{sortedRows:i})})})),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()}),[e,n,t.sortingMode]),u=i.useCallback((r=>{ch(e)!==r&&(n.debug("Setting sort model"),e.current.setState(xm(r,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())}),[e,n,t.disableMultipleColumnsSorting]),c=i.useCallback(((r,n,i)=>{if(!r.sortable)return;const a=s(r,n);let l;l=!i||t.disableMultipleColumnsSorting?a?[a]:[]:o(r.field,a),e.current.setSortModel(l)}),[e,o,s,t.disableMultipleColumnsSorting]),d=i.useCallback((()=>ch(e)),[e]),p=i.useCallback((()=>uh(e).map((e=>e.model))),[e]),h=i.useCallback((()=>lh(e)),[e]),f=i.useCallback((t=>e.current.getSortedRowIds()[t]),[e]);Vh(e,{getSortModel:d,getSortedRows:p,getSortedRowIds:h,getRowIdFromRowIndex:f,setSortModel:u,sortColumn:c,applySorting:l},"public");const m=i.useCallback(((r,n)=>{var o;const i=ch(e);return!n.exportOnlyDirtyModels||null!=t.sortModel||null!=(null==(o=t.initialState)||null==(o=o.sorting)?void 0:o.sortModel)||i.length>0?(0,Ft.A)({},r,{sorting:{sortModel:i}}):r}),[e,t.sortModel,null==(r=t.initialState)||null==(r=r.sorting)?void 0:r.sortModel]),g=i.useCallback(((r,n)=>{var o;const i=null==(o=n.stateToRestore.sorting)?void 0:o.sortModel;return null==i?r:(e.current.setState(xm(i,t.disableMultipleColumnsSorting)),(0,Ft.A)({},r,{callbacks:[...r.callbacks,e.current.applySorting]}))}),[e,t.disableMultipleColumnsSorting]),v=i.useCallback((t=>{const r=Lp(e),n=r[yb],o=t.sortRowList?t.sortRowList(n.children.map((e=>r[e]))):[...n.children];return null!=n.footerId&&o.push(n.footerId),o}),[e]);Qb(e,"exportState",m),Qb(e,"restoreState",g),Lx(e,pf,"sorting",v);const b=i.useCallback(((e,t)=>{let{colDef:r}=e;const n=t.shiftKey||t.metaKey||t.ctrlKey;c(r,void 0,n)}),[c]),y=i.useCallback(((e,t)=>{let{colDef:r}=e;!bf(t.key)||t.ctrlKey||t.metaKey||c(r,void 0,t.shiftKey)}),[c]),x=i.useCallback((()=>{const t=ch(e),r=vp(e);if(t.length>0){const n=t.filter((e=>r[e.field]));n.length<t.length&&e.current.setSortModel(n)}}),[e]),w=i.useCallback((t=>{"sorting"===t&&e.current.applySorting()}),[e]);Qb(e,"columnMenu",a),nf(e,"columnHeaderClick",b),nf(e,"columnHeaderKeyDown",y),nf(e,"rowsSet",e.current.applySorting),nf(e,"columnsChange",x),nf(e,"activeStrategyProcessorChange",w),Gb((()=>{e.current.applySorting()})),(0,ua.A)((()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)}),[e,t.sortModel])})(r,t),((e,t)=>{const r=gf(e,"useDensity"),n=i.useCallback((t=>{r.debug(`Set grid density to ${t}`),e.current.setState((e=>{const r=pp(e),n={value:t,factor:cx[t]};return Hh(r,n)?e:(0,Ft.A)({},e,{density:n})})),e.current.forceUpdate()}),[r,e]);i.useEffect((()=>{e.current.setDensity(t.density)}),[e,t.density]),Vh(e,{setDensity:n},"public")})(r,t),nw(r,t),((e,t)=>{const{getRowHeight:r,getRowSpacing:n,getEstimatedRowHeight:o}=t,s=i.useRef(Object.create(null)),a=i.useRef(-1),l=i.useRef(!1),u=Xd(e,fp),c=Xd(e,hh),d=Xd(e,Nf),p=Xd(e,ch),h=Ux(e,t),f=Xd(e,Hp),m=VR(t.rowHeight,$R.rowHeight),g=Math.floor(m*u),v=i.useCallback((()=>{var t,i;l.current=!1;const c=t=>{s.current[t.id]||(s.current[t.id]={sizes:{baseCenter:g},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:i,needsFirstMeasurement:a,sizes:c}=s.current[t.id];let d="number"===typeof g&&g>0?g:52;const p=c.baseCenter;if(i)d=p;else if(r){const e=r((0,Ft.A)({},t,{densityFactor:u}));if("auto"===e){if(a){const e=o?o((0,Ft.A)({},t,{densityFactor:u})):g;d=null!=e?e:g}else d=p;l.current=!0,s.current[t.id].autoHeight=!0}else d=VR(e,g),s.current[t.id].needsFirstMeasurement=!1,s.current[t.id].autoHeight=!1}else s.current[t.id].needsFirstMeasurement=!1;const f={};for(const e in c)/^base[A-Z]/.test(e)&&(f[e]=c[e]);if(f.baseCenter=d,n){var m,v;const r=e.current.getRowIndexRelativeToVisibleRows(t.id),o=n((0,Ft.A)({},t,{isFirstVisible:0===r,isLastVisible:r===h.rows.length-1,indexRelativeToCurrentPage:r}));f.spacingTop=null!=(m=o.top)?m:0,f.spacingBottom=null!=(v=o.bottom)?v:0}const b=e.current.unstable_applyPipeProcessors("rowHeight",f,t);return s.current[t.id].sizes=b,b},d=[],p=h.rows.reduce(((e,t)=>{d.push(e);let r=0,n=0;const o=c(t);for(const i in o){const e=o[i];/^base[A-Z]/.test(i)?r=e>r?e:r:n+=e}return e+r+n}),0);null==f||null==(t=f.top)||t.forEach((e=>{c(e)})),null==f||null==(i=f.bottom)||i.forEach((e=>{c(e)})),e.current.setState((e=>(0,Ft.A)({},e,{rowsMeta:{currentPageTotalHeight:p,positions:d}}))),l.current||(a.current=1/0),e.current.forceUpdate()}),[e,h.rows,g,r,n,o,f,u]),b=i.useCallback((e=>{const t=s.current[e];return t?t.sizes.baseCenter:g}),[g]),y=i.useCallback(((e,t)=>{s.current[e].sizes.baseCenter=t,s.current[e].isResized=!0,s.current[e].needsFirstMeasurement=!1,v()}),[v]),x=i.useMemo((()=>(0,Vf.A)(v,t.rowPositionsDebounceMs)),[v,t.rowPositionsDebounceMs]),w=i.useCallback(((e,t,r)=>{if(!s.current[e]||!s.current[e].autoHeight)return;const n=s.current[e].sizes[`base${(0,kd.A)(r)}`]!==t;s.current[e].needsFirstMeasurement=!1,s.current[e].sizes[`base${(0,kd.A)(r)}`]=t,n&&x()}),[x]),_=i.useCallback((e=>{var t;return(null==(t=s.current[e])?void 0:t.autoHeight)||!1}),[]),S=i.useCallback((()=>a.current),[]),A=i.useCallback((e=>{l.current&&e>a.current&&(a.current=e)}),[]),C=i.useCallback((()=>{s.current={},v()}),[v]);i.useEffect((()=>{v()}),[g,c,d,p,v]),Kb(e,"rowHeight",v);const k={getLastMeasuredRowIndex:S,rowHasAutoHeight:_};Vh(e,{unstable_setLastMeasuredRowIndex:A,unstable_getRowHeight:b,unstable_getRowInternalSizes:e=>{var t;return null==(t=s.current[e])?void 0:t.sizes},unstable_setRowHeight:y,unstable_storeRowHeightMeasurement:w,resetRowHeights:C},"public"),Vh(e,k,"private")})(r,t),((e,t)=>{const r=br(),n=gf(e,"useGridScroll"),o=e.current.columnHeadersElementRef,s=e.current.virtualScrollerRef,a=Xd(e,gh),l=i.useCallback((r=>{const o=Ip(e),i=xp(e);if(null!=r.rowIndex&&0===o||0===i.length)return!1;n.debug(`Scrolling to cell at row ${r.rowIndex}, col: ${r.colIndex} `);let l={};if(null!=r.colIndex){const t=_p(e);let n;if("undefined"!==typeof r.rowIndex){var u;const t=null==(u=a[r.rowIndex])?void 0:u.id,o=e.current.unstable_getCellColSpanInfo(t,r.colIndex);o&&!o.spannedByColSpan&&(n=o.cellProps.width)}"undefined"===typeof n&&(n=i[r.colIndex].computedWidth),l.left=kw({clientHeight:s.current.clientWidth,scrollTop:Math.abs(s.current.scrollLeft),offsetHeight:n,offsetTop:t[r.colIndex]})}if(null!=r.rowIndex){var c,d;const n=Nx(e.current.state),o=Lf(e),i=Ff(e),a=t.pagination?r.rowIndex-o*i:r.rowIndex,u=n.positions[a+1]?n.positions[a+1]-n.positions[a]:n.currentPageTotalHeight-n.positions[a],p=(null==(c=s.current.querySelector(`.${Dd["pinnedRows--top"]}`))?void 0:c.clientHeight)||0,h=(null==(d=s.current.querySelector(`.${Dd["pinnedRows--bottom"]}`))?void 0:d.clientHeight)||0;l.top=kw({clientHeight:s.current.clientHeight-p-h,scrollTop:s.current.scrollTop,offsetHeight:u,offsetTop:n.positions[a]})}return l=e.current.unstable_applyPipeProcessors("scrollToIndexes",l,r),(void 0!==typeof l.left||void 0!==typeof l.top)&&(e.current.scroll(l),!0)}),[n,e,s,t.pagination,a]),u=i.useCallback((e=>{if(s.current&&null!=e.left&&o.current){const t="rtl"===r.direction?-1:1;o.current.scrollLeft=e.left,s.current.scrollLeft=t*e.left,n.debug(`Scrolling left: ${e.left}`)}s.current&&null!=e.top&&(s.current.scrollTop=e.top,n.debug(`Scrolling top: ${e.top}`)),n.debug("Scrolling, updating container, and viewport")}),[s,r.direction,o,n]),c=i.useCallback((()=>null!=s&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0}),[s]);Vh(e,{scroll:u,scrollToIndexes:l,getScrollPosition:c},"public")})(r,t),(e=>{const t=gf(e,"useGridColumnMenu"),r=i.useCallback((r=>{e.current.setState((e=>e.columnMenu.open&&e.columnMenu.field===r?e:(t.debug("Opening Column Menu"),(0,Ft.A)({},e,{columnMenu:{open:!0,field:r}}))))&&(e.current.hidePreferences(),e.current.forceUpdate())}),[e,t]),n=i.useCallback((()=>{const r=Ph(e.current.state);if(r.field){const t=vp(e),n=yp(e),o=gp(e);let i=r.field;if(t[i]||(i=o[0]),!1===n[i]){const e=o.filter((e=>e===i||!1!==n[e])),t=e.indexOf(i);i=e[t+1]||e[t-1]}e.current.setColumnHeaderFocus(i)}e.current.setState((e=>e.columnMenu.open||void 0!==e.columnMenu.field?(t.debug("Hiding Column Menu"),(0,Ft.A)({},e,{columnMenu:(0,Ft.A)({},e.columnMenu,{open:!1,field:void 0})})):e))&&e.current.forceUpdate()}),[e,t]),o=i.useCallback((o=>{t.debug("Toggle Column Menu");const i=Ph(e.current.state);i.open&&i.field===o?n():r(o)}),[e,t,r,n]);Vh(e,{showColumnMenu:r,hideColumnMenu:n,toggleColumnMenu:o},"public"),nf(e,"columnResizeStart",n),nf(e,"virtualScrollerWheel",e.current.hideColumnMenu),nf(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)})(r),Px(r,t),Dx(r,t),Vb(r,t),function(e,t){const r=gf(e,"useResizeContainer"),n=i.useRef(!1),o=i.useRef(null),s=i.useRef(null),a=Xd(e,Nx),l=Xd(e,fp),u=Math.floor(t.rowHeight*l),c=sx(e,t.columnHeaderHeight),d=i.useCallback((()=>{var r;const n=null==(r=e.current.rootElementRef)?void 0:r.current,i=Sp(e),l=Eb(e);if(!o.current)return;let u,d,p,h;if(null!=t.scrollbarSize)u=t.scrollbarSize;else if(i&&n){const e=(0,oa.A)(n).createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.overflow="scroll",e.className="scrollDiv",n.appendChild(e),u=e.offsetWidth-e.clientWidth,n.removeChild(e)}else u=0;if(t.autoHeight)h=!1,p=Math.round(i)>Math.round(o.current.width),d={width:o.current.width,height:a.currentPageTotalHeight+(p?u:0)};else{d={width:o.current.width,height:Math.max(o.current.height-c,0)};const e=(e=>{let{content:t,container:r,scrollBarSize:n}=e;const o=t.width>r.width,i=t.height>r.height;let s=!1,a=!1;return(o||i)&&(s=o,a=t.height+(s?n:0)>r.height,a&&(s=t.width+n>r.width)),{hasScrollX:s,hasScrollY:a}})({content:{width:Math.round(i),height:a.currentPageTotalHeight},container:{width:Math.round(d.width),height:d.height-l.top-l.bottom},scrollBarSize:u});h=e.hasScrollY,p=e.hasScrollX}const f={viewportOuterSize:d,viewportInnerSize:{width:d.width-(h?u:0),height:d.height-(p?u:0)},hasScrollX:p,hasScrollY:h,scrollBarSize:u},m=s.current;s.current=f,f.viewportInnerSize.width===(null==m?void 0:m.viewportInnerSize.width)&&f.viewportInnerSize.height===(null==m?void 0:m.viewportInnerSize.height)||e.current.publishEvent("viewportInnerSizeChange",f.viewportInnerSize)}),[e,t.scrollbarSize,t.autoHeight,a.currentPageTotalHeight,c]),[p,h]=i.useState(),f=i.useMemo((()=>(0,Vf.A)(h,60)),[]),m=i.useRef();(0,ua.A)((()=>{p&&(d(),e.current.publishEvent("debouncedResize",o.current))}),[e,p,d]);const g=i.useCallback((()=>{e.current.computeSizeAndPublishResizeEvent()}),[e]),v=i.useCallback((()=>s.current),[]),b=i.useCallback((()=>{const r=e.current.getRootDimensions();if(!r)return 0;const n=Hx(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const t=e.current.getRenderContext(),r=t.lastRowIndex-t.firstRowIndex;return Math.min(r-1,n.rows.length)}const o=Math.floor(r.viewportInnerSize.height/u);return Math.min(o,n.rows.length)}),[e,t.pagination,t.paginationMode,t.getRowHeight,u]),y=i.useCallback((()=>{var t,r,n;const o=null==(t=e.current.mainElementRef)?void 0:t.current;if(!o)return;const i=(0,_a.A)(o).getComputedStyle(o),s=parseFloat(i.height)||0,a=parseFloat(i.width)||0,l=s!==(null==(r=m.current)?void 0:r.height),u=a!==(null==(n=m.current)?void 0:n.width);if(!m.current||l||u){const t={width:a,height:s};e.current.publishEvent("resize",t),m.current=t}}),[e]),x={getViewportPageSize:b,updateGridDimensionsRef:d,computeSizeAndPublishResizeEvent:y};Vh(e,{resize:g,getRootDimensions:v},"public"),Vh(e,x,"private");const w=i.useRef(!0),_=i.useCallback((e=>{o.current=e;const i=/jsdom/.test(window.navigator.userAgent);if(0!==e.height||n.current||t.autoHeight||i||(r.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),n.current=!0),0!==e.width||n.current||i||(r.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),n.current=!0),w.current)return h(e),void(w.current=!1);f(e)}),[t.autoHeight,f,r]);(0,ua.A)((()=>d()),[d]),sf(e,"sortedRowsSet",d),sf(e,"paginationModelChange",d),sf(e,"columnsChange",d),nf(e,"resize",_),sf(e,"debouncedResize",t.onResize)}(r,t),function(e,t){sf(e,"columnHeaderClick",t.onColumnHeaderClick),sf(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),sf(e,"columnHeaderOver",t.onColumnHeaderOver),sf(e,"columnHeaderOut",t.onColumnHeaderOut),sf(e,"columnHeaderEnter",t.onColumnHeaderEnter),sf(e,"columnHeaderLeave",t.onColumnHeaderLeave),sf(e,"cellClick",t.onCellClick),sf(e,"cellDoubleClick",t.onCellDoubleClick),sf(e,"cellKeyDown",t.onCellKeyDown),sf(e,"preferencePanelClose",t.onPreferencePanelClose),sf(e,"preferencePanelOpen",t.onPreferencePanelOpen),sf(e,"menuOpen",t.onMenuOpen),sf(e,"menuClose",t.onMenuClose),sf(e,"rowDoubleClick",t.onRowDoubleClick),sf(e,"rowClick",t.onRowClick),sf(e,"stateChange",t.onStateChange)}(r,t),(e=>{const t=i.useCallback((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.current.unstable_applyPipeProcessors("exportState",{},t)}),[e]),r=i.useCallback((t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((e=>{e()})),e.current.forceUpdate()}),[e]);Vh(e,{exportState:t,restoreState:r},"public")})(r),function(e,t){const r=t=>{e.current.setState((e=>(0,Ft.A)({},e,{virtualization:(0,Ft.A)({},e.virtualization,{enabled:t})})))},n={unstable_setVirtualization:r,unstable_setColumnVirtualization:t=>{e.current.setState((e=>(0,Ft.A)({},e,{virtualization:(0,Ft.A)({},e.virtualization,{enabledForColumns:t})})))}};Vh(e,n,"public"),i.useEffect((()=>{r(!t.disableVirtualization)}),[t.disableVirtualization])}(r,t),r},tj=oh("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),rj=i.forwardRef((function(e,t){const r=tp(),n=(e=>{const{classes:t}=e;return(0,$t.A)({root:["virtualScroller"]},Md,t)})(r);return(0,Ne.jsx)(tj,(0,Ft.A)({ref:t},e,{className:Cd(n.root,e.className),ownerState:r}))})),nj=oh("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),oj=i.forwardRef((function(e,t){var r;const n=tp(),o=((e,t)=>{const{classes:r}=e,n={root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]};return(0,$t.A)(n,Md,r)})(n,!n.autoHeight&&"auto"===(null==(r=e.style)?void 0:r.minHeight));return(0,Ne.jsx)(nj,(0,Ft.A)({ref:t},e,{ownerState:n,className:Cd(o.root,e.className)}))})),ij=["className"],sj=oh("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),aj=i.forwardRef((function(e,t){const{className:r}=e,n=(0,Lt.A)(e,ij),o=tp(),i=(e=>{const{classes:t}=e;return(0,$t.A)({root:["virtualScrollerRenderZone"]},Md,t)})(o);return(0,Ne.jsx)(sj,(0,Ft.A)({ref:t,className:Cd(i.root,r),ownerState:o},n))})),lj=oh("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>"overlayType"!==e,overridesResolver:(e,t)=>t.overlayWrapper})((e=>{let{overlayType:t}=e;return{position:"sticky",top:0,left:0,width:0,height:0,zIndex:"loadingOverlay"===t?5:4}})),uj=oh("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>"overlayType"!==e,overridesResolver:(e,t)=>t.overlayWrapperInner})({});function cj(e){var t,r;const n=Af(),o=tp(),[s,a]=i.useState((()=>{var e,t;return null!=(e=null==(t=n.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),l=i.useCallback((()=>{var e,t;a(null!=(e=null==(t=n.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[n]);(0,ua.A)((()=>n.current.subscribeEvent("viewportInnerSizeChange",l)),[n,l]);let u=null!=(t=null==s?void 0:s.height)?t:0;o.autoHeight&&0===u&&(u=Rb(n,o.rowHeight));const c=(e=>{const{classes:t}=e;return(0,$t.A)({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Md,t)})((0,Ft.A)({},e,{classes:o.classes}));return s?(0,Ne.jsx)(lj,{className:Cd(c.root),overlayType:e.overlayType,children:(0,Ne.jsx)(uj,(0,Ft.A)({className:Cd(c.inner),style:{height:u,width:null!=(r=null==s?void 0:s.width)?r:0}},e))}):null}function dj(){const e=Af(),t=tp(),r=Xd(e,Ip),n=Xd(e,wh),o=Xd(e,Pp),i=!o&&r>0&&0===n;let s=null,a="";var l,u,c;o||0!==r||(s=(0,Ne.jsx)(t.slots.noRowsOverlay,(0,Ft.A)({},null==(l=t.slotProps)?void 0:l.noRowsOverlay)),a="noRowsOverlay");i&&(s=(0,Ne.jsx)(t.slots.noResultsOverlay,(0,Ft.A)({},null==(u=t.slotProps)?void 0:u.noResultsOverlay)),a="noResultsOverlay");o&&(s=(0,Ne.jsx)(t.slots.loadingOverlay,(0,Ft.A)({},null==(c=t.slotProps)?void 0:c.loadingOverlay)),a="loadingOverlay");return null===s?null:(0,Ne.jsx)(cj,{overlayType:a,children:s})}const pj=["className"],hj=i.forwardRef((function(e,t){const{className:r}=e,o=(0,Lt.A)(e,pj),{getRootProps:s,getContentProps:a,getRenderZoneProps:l,getRows:u}=(e=>{const t=Zd(),r=tp(),o=Xd(t,xp),s=Xd(t,XC),a=Xd(t,YC),{ref:l,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=o.length,getRowProps:p}=e,h=br(),f=Xd(t,_p),m=Xd(t,Sp),g=Xd(t,kh),v=Xd(t,Oh),b=Xd(t,Nx),y=Xd(t,Of),x=Ux(t,r),w=i.useRef(null),_=i.useRef(null),S=(0,qs.A)(l,_),[A,C]=i.useState(null),k=i.useRef(A),E=i.useRef({top:0,left:0}),[R,j]=i.useState({width:null,height:null}),O=i.useRef(m),[T,I]=i.useState(null),P=i.useRef(Object.create(null)),N=i.useRef(),M=i.useRef(),D=i.useRef(op(((e,t,r,n,o,i)=>{let s;return i>-1&&(t>i&&i>=n||r<i&&i<o)&&(s=i),{focusedCellColumnIndexNotInRange:s,renderedColumns:e.slice(t,r)}}),ok)),L=i.useMemo((()=>null!==g?o.findIndex((e=>e.field===g.field)):-1),[g,o]),F=i.useCallback((()=>{if(!s)return{firstRowIndex:0,lastRowIndex:x.rows.length,firstColumnIndex:0,lastColumnIndex:o.length};const{top:e,left:n}=E.current,i=Math.min(ik(t,x,b,e),b.positions.length-1),l=r.autoHeight?i+x.rows.length:ik(t,x,b,e+R.height);let u=0,c=f.length;if(a){let e=!1;const[o,s]=rk({firstIndex:i,lastIndex:l,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:r.rowBuffer});for(let r=o;r<s&&!e;r+=1){const n=x.rows[r];e=t.current.rowHasAutoHeight(n.id)}e||(u=tk(Math.abs(n),f),c=tk(Math.abs(n)+R.width,f))}return{firstRowIndex:i,lastRowIndex:l,firstColumnIndex:u,lastColumnIndex:c}}),[s,a,b,r.autoHeight,r.rowBuffer,x,f,o.length,t,R]);(0,ua.A)((()=>{s?(_.current.scrollLeft=0,_.current.scrollTop=0):w.current.style.transform="translate3d(0px, 0px, 0px)"}),[s]),(0,ua.A)((()=>{j({width:_.current.clientWidth,height:_.current.clientHeight})}),[b.currentPageTotalHeight]);const z=i.useCallback((()=>{_.current&&j({width:_.current.clientWidth,height:_.current.clientHeight})}),[]);nf(t,"debouncedResize",z);const B=i.useCallback((e=>{const[n,o]=rk({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:r.rowBuffer}),[i]=rk({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:r.columnBuffer}),s=ox({firstColumnToRender:i,apiRef:t,firstRowToRender:n,lastRowToRender:o,visibleRows:x.rows}),a="ltr"===h.direction?1:-1,l=Nx(t.current.state).positions[n],p=a*_p(t)[s];w.current.style.transform=`translate3d(${p}px, ${l}px, 0px)`,"function"===typeof u&&u({top:l,left:p})}),[t,x.rows,u,c,d,r.columnBuffer,r.rowBuffer,h.direction]),$=i.useCallback((()=>k.current),[]),H=i.useCallback((e=>{if(k.current&&nk(e,k.current))return void B(e);C(e),B(e);const[n,o]=rk({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:r.rowBuffer});t.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:n,lastRowToRender:o}),k.current=e}),[t,C,k,x.rows.length,r.rowBuffer,B]);(0,ua.A)((()=>{if(null==R.width)return;const e=F();H(e);const{top:r,left:n}=E.current,o={top:r,left:n,renderContext:e};t.current.publishEvent("scrollPositionChange",o)}),[t,F,R.width,H]);const U=(0,xa.A)((e=>{const{scrollTop:o,scrollLeft:i}=e.currentTarget;if(E.current.top=o,E.current.left=i,!k.current||o<0)return;if("ltr"===h.direction&&i<0)return;if("rtl"===h.direction&&i>0)return;const a=s?F():k.current,l=Math.abs(a.firstRowIndex-k.current.firstRowIndex),u=Math.abs(a.lastRowIndex-k.current.lastRowIndex),c=Math.abs(a.firstColumnIndex-k.current.firstColumnIndex),d=Math.abs(a.lastColumnIndex-k.current.lastColumnIndex),p=l>=r.rowThreshold||u>=r.rowThreshold||c>=r.columnThreshold||d>=r.columnThreshold||O.current!==m;t.current.publishEvent("scrollPositionChange",{top:o,left:i,renderContext:p?a:k.current},e),p&&(n.flushSync((()=>{H(a)})),O.current=m)})),W=(0,xa.A)((e=>{t.current.publishEvent("virtualScrollerWheel",{},e)})),V=(0,xa.A)((e=>{t.current.publishEvent("virtualScrollerTouchMove",{},e)})),q=i.useMemo((()=>null!==g?x.rows.findIndex((e=>e.id===g.id)):-1),[g,x.rows]);nf(t,"rowMouseOver",((e,t)=>{var r;t.currentTarget.contains(t.relatedTarget)||I(null!=(r=e.id)?r:null)})),nf(t,"rowMouseOut",((e,t)=>{t.currentTarget.contains(t.relatedTarget)||I(null)}));const G=R.width&&m>=R.width,Q=i.useMemo((()=>{const e=Math.max(b.currentPageTotalHeight,1);let n=!1;null!=_&&_.current&&e<=(null==_?void 0:_.current.clientHeight)&&(n=!0);const o={width:G?m:"auto",height:e,minHeight:n?"100%":"auto"};return r.autoHeight&&0===x.rows.length&&(o.height=Rb(t,r.rowHeight)),o}),[t,_,m,b.currentPageTotalHeight,G,r.autoHeight,r.rowHeight,x.rows.length]);i.useEffect((()=>{t.current.publishEvent("virtualScrollerContentSizeChange")}),[t,Q]);const K=i.useMemo((()=>{const e={};return G||(e.overflowX="hidden"),r.autoHeight&&(e.overflowY="hidden"),e}),[G,r.autoHeight]);return t.current.register("private",{getRenderContext:$}),{renderContext:A,updateRenderZonePosition:B,getRows:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{renderContext:A};var n;const{onRowRender:i,renderContext:a,minFirstColumn:l=c,maxLastColumn:u=d,availableSpace:h=R.width,rowIndexOffset:f=0,position:m="center"}=e;if(!a||null==h)return null;const b=s?r.rowBuffer:0,w=s?r.columnBuffer:0,[_,S]=rk({firstIndex:a.firstRowIndex,lastIndex:a.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:b}),C=[];if(e.rows)e.rows.forEach((e=>{C.push(e),t.current.calculateColSpan({rowId:e.id,minFirstColumn:l,maxLastColumn:u,columns:o})}));else{if(!x.range)return null;for(let e=_;e<S;e+=1){const r=x.rows[e];C.push(r),t.current.calculateColSpan({rowId:r.id,minFirstColumn:l,maxLastColumn:u,columns:o})}}let k=!1;if(q>-1){const e=x.rows[q];(_>q||S<q)&&(k=!0,q>_?C.push(e):C.unshift(e),t.current.calculateColSpan({rowId:e.id,minFirstColumn:l,maxLastColumn:u,columns:o}))}const[E,j]=rk({firstIndex:a.firstColumnIndex,lastIndex:a.lastColumnIndex,minFirstIndex:l,maxLastIndex:u,buffer:w}),O=ox({firstColumnToRender:E,apiRef:t,firstRowToRender:_,lastRowToRender:S,visibleRows:x.rows});let I=!1;(O>L||j<L)&&(I=!0);const{focusedCellColumnIndexNotInRange:F,renderedColumns:z}=D.current(o,O,j,l,u,I?L:-1),B=(null==(n=r.slotProps)?void 0:n.row)||{},{style:$}=B,H=(0,Lt.A)(B,ZC);(N.current!==p||M.current!==$)&&(P.current=Object.create(null));const U=[];let W=!1;for(let s=0;s<C.length;s+=1){var V;const{id:e,model:n}=C[s],a=k&&g.id===e,l=k?_+s===x.rows.length:_+s===x.rows.length-1,u=t.current.rowHasAutoHeight(e)?"auto":t.current.unstable_getRowHeight(e);let c;c=null!=y[e]&&t.current.isRowSelectable(e),i&&i(e);const d=null!==g&&g.id===e?g.field:null,b=void 0!==F&&o[F],w=b&&d?[b,...z]:z;let S=null;null!==v&&v.id===e&&(S="view"===t.current.getCellParams(e,v.field).cellMode?v.field:null);const A="function"===typeof p&&p(e,n)||{},{style:E}=A,R=(0,Lt.A)(A,ek);if(!P.current[e]){const t=(0,Ft.A)({},E,$);P.current[e]=t}let I=f+((null==x||null==(V=x.range)?void 0:V.firstRowIndex)||0)+_+s;k&&(null==g?void 0:g.id)===e?(I=q,W=!0):W&&(I-=1),U.push((0,Ne.jsx)(r.slots.row,(0,Ft.A)({row:n,rowId:e,focusedCellColumnIndexNotInRange:F,isNotVisible:a,rowHeight:u,focusedCell:d,tabbableCell:S,renderedColumns:w,visibleColumns:o,firstColumnToRender:O,lastColumnToRender:j,selected:c,index:I,containerWidth:h,isLastVisible:l,position:m},R,H,{hovered:T===e,style:P.current[e]}),e))}return N.current=p,M.current=$,U},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Ft.A)({ref:S,onScroll:U,onWheel:W,onTouchMove:V},e,{style:e.style?(0,Ft.A)({},e.style,K):K,role:"presentation"})},getContentProps:function(){let{style:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{style:e?(0,Ft.A)({},e,Q):Q,role:"presentation"}},getRenderZoneProps:()=>({ref:w,role:"rowgroup"})}})({ref:t});return(0,Ne.jsxs)(rj,(0,Ft.A)({className:r},s(o),{children:[(0,Ne.jsx)(dj,{}),(0,Ne.jsx)(oj,(0,Ft.A)({},a(),{children:(0,Ne.jsx)(aj,(0,Ft.A)({},l(),{children:u()}))}))]}))})),fj=i.forwardRef((function(e,t){const r=UR(e),n=ej(r.apiRef,r);return(0,Ne.jsx)(Lh,{privateApiRef:n,props:r,children:(0,Ne.jsxs)(qp,(0,Ft.A)({className:r.className,style:r.style,sx:r.sx,ref:t},r.forwardedProps,{children:[(0,Ne.jsx)(Gp,{}),(0,Ne.jsx)(Nh,{VirtualScrollerComponent:hj}),(0,Ne.jsx)(Mh,{})]}))})})),mj=i.memo(fj);fj.propTypes={apiRef:Xe().shape({current:Xe().object.isRequired}),"aria-label":Xe().string,"aria-labelledby":Xe().string,autoHeight:Xe().bool,autoPageSize:Xe().bool,cellModesModel:Xe().object,checkboxSelection:Xe().bool,classes:Xe().object,clipboardCopyCellDelimiter:Xe().string,columnBuffer:Xe().number,columnGroupingModel:Xe().arrayOf(Xe().object),columnHeaderHeight:Xe().number,columns:(Xe().array.isRequired,()=>null),columnThreshold:Xe().number,columnVisibilityModel:Xe().object,components:Xe().object,componentsProps:Xe().object,density:Xe().oneOf(["comfortable","compact","standard"]),disableColumnFilter:Xe().bool,disableColumnMenu:Xe().bool,disableColumnSelector:Xe().bool,disableDensitySelector:Xe().bool,disableEval:Xe().bool,disableRowSelectionOnClick:Xe().bool,disableVirtualization:Xe().bool,editMode:Xe().oneOf(["cell","row"]),experimentalFeatures:Xe().shape({ariaV7:Xe().bool,columnGrouping:Xe().bool,warnIfFocusStateIsNotSynced:Xe().bool}),filterDebounceMs:Xe().number,filterMode:Xe().oneOf(["client","server"]),filterModel:Xe().shape({items:Xe().arrayOf(Xe().shape({field:Xe().string.isRequired,id:Xe().oneOfType([Xe().number,Xe().string]),operator:Xe().string.isRequired,value:Xe().any})).isRequired,logicOperator:Xe().oneOf(["and","or"]),quickFilterExcludeHiddenColumns:Xe().bool,quickFilterLogicOperator:Xe().oneOf(["and","or"]),quickFilterValues:Xe().array}),forwardedProps:Xe().object,getCellClassName:Xe().func,getDetailPanelContent:Xe().func,getEstimatedRowHeight:Xe().func,getRowClassName:Xe().func,getRowHeight:Xe().func,getRowId:Xe().func,getRowSpacing:Xe().func,hideFooter:Xe().bool,hideFooterPagination:Xe().bool,hideFooterSelectedRowCount:Xe().bool,ignoreDiacritics:Xe().bool,initialState:Xe().object,isCellEditable:Xe().func,isRowSelectable:Xe().func,keepNonExistentRowsSelected:Xe().bool,loading:Xe().bool,localeText:Xe().object,logger:Xe().shape({debug:Xe().func.isRequired,error:Xe().func.isRequired,info:Xe().func.isRequired,warn:Xe().func.isRequired}),logLevel:Xe().oneOf(["debug","error","info","warn",!1]),nonce:Xe().string,onCellClick:Xe().func,onCellDoubleClick:Xe().func,onCellEditStart:Xe().func,onCellEditStop:Xe().func,onCellKeyDown:Xe().func,onCellModesModelChange:Xe().func,onClipboardCopy:Xe().func,onColumnHeaderClick:Xe().func,onColumnHeaderDoubleClick:Xe().func,onColumnHeaderEnter:Xe().func,onColumnHeaderLeave:Xe().func,onColumnHeaderOut:Xe().func,onColumnHeaderOver:Xe().func,onColumnOrderChange:Xe().func,onColumnVisibilityModelChange:Xe().func,onFilterModelChange:Xe().func,onMenuClose:Xe().func,onMenuOpen:Xe().func,onPaginationModelChange:Xe().func,onPreferencePanelClose:Xe().func,onPreferencePanelOpen:Xe().func,onProcessRowUpdateError:Xe().func,onResize:Xe().func,onRowClick:Xe().func,onRowCountChange:Xe().func,onRowDoubleClick:Xe().func,onRowEditStart:Xe().func,onRowEditStop:Xe().func,onRowModesModelChange:Xe().func,onRowSelectionModelChange:Xe().func,onSortModelChange:Xe().func,onStateChange:Xe().func,pageSizeOptions:Xe().arrayOf(Xe().oneOfType([Xe().number,Xe().shape({label:Xe().string.isRequired,value:Xe().number.isRequired})]).isRequired),pagination:e=>!1===e.pagination?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join("\n")):null,paginationMode:Xe().oneOf(["client","server"]),paginationModel:Xe().shape({page:Xe().number.isRequired,pageSize:Xe().number.isRequired}),processRowUpdate:Xe().func,rowBuffer:Xe().number,rowCount:Xe().number,rowHeight:Xe().number,rowModesModel:Xe().object,rowPositionsDebounceMs:Xe().number,rows:Xe().arrayOf(Xe().object).isRequired,rowSelection:Xe().bool,rowSelectionModel:Xe().oneOfType([Xe().arrayOf(Xe().oneOfType([Xe().number,Xe().string]).isRequired),Xe().number,Xe().string]),rowSpacingType:Xe().oneOf(["border","margin"]),rowThreshold:Xe().number,scrollbarSize:Xe().number,showCellVerticalBorder:Xe().bool,showColumnVerticalBorder:Xe().bool,slotProps:Xe().object,slots:Xe().object,sortingMode:Xe().oneOf(["client","server"]),sortingOrder:Xe().arrayOf(Xe().oneOf(["asc","desc"])),sortModel:Xe().arrayOf(Xe().shape({field:Xe().string.isRequired,sort:Xe().oneOf(["asc","desc"])})),sx:Xe().oneOfType([Xe().arrayOf(Xe().oneOfType([Xe().func,Xe().object,Xe().bool])),Xe().func,Xe().object]),unstable_ignoreValueFormatterDuringExport:Xe().oneOfType([Xe().shape({clipboardExport:Xe().bool,csvExport:Xe().bool}),Xe().bool])};const gj=["className","children"],vj=oh("div",{name:"MuiDataGrid",slot:"ToolbarContainer",overridesResolver:(e,t)=>t.toolbarContainer})((e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",flexWrap:"wrap",gap:t.spacing(1),padding:t.spacing(.5,.5,0)}})),bj=i.forwardRef((function(e,t){const{className:r,children:n}=e,o=(0,Lt.A)(e,gj),i=tp(),s=(e=>{const{classes:t}=e;return(0,$t.A)({root:["toolbarContainer"]},Md,t)})(i);return n?(0,Ne.jsx)(vj,(0,Ft.A)({ref:t,className:Cd(r,s.root),ownerState:i},o,{children:n})):null})),yj=["onClick"],xj=i.forwardRef((function(e,t){var r;const{onClick:n}=e,o=(0,Lt.A)(e,yj),i=(0,aA.A)(),s=(0,aA.A)(),a=Af(),l=tp(),u=Xd(a,ow);if(l.disableColumnSelector)return null;const c=u.open&&u.panelId===s;return(0,Ne.jsx)(l.slots.baseButton,(0,Ft.A)({ref:t,id:i,size:"small","aria-label":a.current.getLocaleText("toolbarColumnsLabel"),"aria-haspopup":"menu","aria-expanded":c,"aria-controls":c?s:void 0,startIcon:(0,Ne.jsx)(l.slots.columnSelectorIcon,{})},o,{onClick:e=>{u.open&&u.openedPanelValue===ax.columns?a.current.hidePreferences():a.current.showPreferences(ax.columns,s,i),null==n||n(e)}},null==(r=l.slotProps)?void 0:r.baseButton,{children:a.current.getLocaleText("toolbarColumns")}))})),wj=["onClick"],_j=i.forwardRef((function(e,t){var r;const{onClick:n}=e,o=(0,Lt.A)(e,wj),s=Af(),a=tp(),l=Xd(s,hp),u=(0,Vs.A)(),c=(0,Vs.A)(),[d,p]=i.useState(!1),h=i.useRef(null),f=(0,qs.A)(t,h),m=[{icon:(0,Ne.jsx)(a.slots.densityCompactIcon,{}),label:s.current.getLocaleText("toolbarDensityCompact"),value:"compact"},{icon:(0,Ne.jsx)(a.slots.densityStandardIcon,{}),label:s.current.getLocaleText("toolbarDensityStandard"),value:"standard"},{icon:(0,Ne.jsx)(a.slots.densityComfortableIcon,{}),label:s.current.getLocaleText("toolbarDensityComfortable"),value:"comfortable"}],g=i.useMemo((()=>{switch(l){case"compact":return(0,Ne.jsx)(a.slots.densityCompactIcon,{});case"comfortable":return(0,Ne.jsx)(a.slots.densityComfortableIcon,{});default:return(0,Ne.jsx)(a.slots.densityStandardIcon,{})}}),[l,a]);if(a.disableDensitySelector)return null;const v=m.map(((e,t)=>(0,Ne.jsxs)(Ax,{onClick:()=>{return t=e.value,s.current.setDensity(t),void p(!1);var t},selected:e.value===l,children:[(0,Ne.jsx)(Ek,{children:e.icon}),e.label]},t)));return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)(a.slots.baseButton,(0,Ft.A)({ref:f,size:"small",startIcon:g,"aria-label":s.current.getLocaleText("toolbarDensityLabel"),"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?c:void 0,id:u},o,{onClick:e=>{p((e=>!e)),null==n||n(e)}},null==(r=a.slotProps)?void 0:r.baseButton,{children:s.current.getLocaleText("toolbarDensity")})),(0,Ne.jsx)(Gy,{open:d,target:h.current,onClose:()=>{p(!1)},position:"bottom-start",children:(0,Ne.jsx)(Uy,{id:c,className:Dd.menuList,"aria-labelledby":u,onKeyDown:e=>{yf(e.key)&&e.preventDefault(),Sf(e.key)&&p(!1)},autoFocusItem:d,children:v})})]})})),Sj=["componentsProps"],Aj=(0,Ht.Ay)("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList",overridesResolver:(e,t)=>t.toolbarFilterList})((e=>{let{theme:t}=e;return{margin:t.spacing(1,1,.5),padding:t.spacing(0,1)}})),Cj=i.forwardRef((function(e,t){var r,n;const{componentsProps:o={}}=e,s=(0,Lt.A)(e,Sj),a=o.button||{},l=Af(),u=tp(),c=Xd(l,Sh),d=Xd(l,vp),p=Xd(l,ow),h=(e=>{const{classes:t}=e;return(0,$t.A)({root:["toolbarFilterList"]},Md,t)})(u),f=(0,Vs.A)(),m=(0,Vs.A)(),g=i.useMemo((()=>{if(p.open)return l.current.getLocaleText("toolbarFiltersTooltipHide");if(0===c.length)return l.current.getLocaleText("toolbarFiltersTooltipShow");const e=e=>d[e.field].filterOperators.find((t=>t.value===e.operator)).label||l.current.getLocaleText(`filterOperator${(0,kd.A)(e.operator)}`).toString(),t=e=>{const{getValueAsString:t}=d[e.field].filterOperators.find((t=>t.value===e.operator));return t?t(e.value):e.value};return(0,Ne.jsxs)("div",{children:[l.current.getLocaleText("toolbarFiltersTooltipActive")(c.length),(0,Ne.jsx)(Aj,{className:h.root,ownerState:u,children:c.map(((r,n)=>(0,Ft.A)({},d[r.field]&&(0,Ne.jsx)("li",{children:`${d[r.field].headerName||r.field}\n                  ${e(r)}\n                  ${null!=r.value?t(r):""}`},n))))})]})}),[l,u,p.open,c,d,h]);if(u.disableColumnFilter)return null;const v=p.open&&p.panelId===m;return(0,Ne.jsx)(u.slots.baseTooltip,(0,Ft.A)({title:g,enterDelay:1e3},s,null==(r=u.slotProps)?void 0:r.baseTooltip,{children:(0,Ne.jsx)(u.slots.baseButton,(0,Ft.A)({ref:t,id:f,size:"small","aria-label":l.current.getLocaleText("toolbarFiltersLabel"),"aria-controls":v?m:void 0,"aria-expanded":v,"aria-haspopup":!0,startIcon:(0,Ne.jsx)(Jw,{badgeContent:c.length,color:"primary",children:(0,Ne.jsx)(u.slots.openFilterButtonIcon,{})})},a,{onClick:e=>{var t;const{open:r,openedPanelValue:n}=p;r&&n===ax.filters?l.current.hidePreferences():l.current.showPreferences(ax.filters,m,f),null==(t=a.onClick)||t.call(a,e)}},null==(n=u.slotProps)?void 0:n.baseButton,{children:l.current.getLocaleText("toolbarFilters")}))}))})),kj=["quickFilterParser","quickFilterFormatter","debounceMs"],Ej=(0,Ht.Ay)(kE,{name:"MuiDataGrid",slot:"ToolbarQuickFilter",overridesResolver:(e,t)=>t.toolbarQuickFilter})((e=>{let{theme:t}=e;return{width:"auto",paddingBottom:t.spacing(.5),"& input":{marginLeft:t.spacing(.5)},"& .MuiInput-underline:before":{borderBottom:`1px solid ${(t.vars||t).palette.divider}`},"& input[type=search]::-ms-clear,\n& input[type=search]::-ms-reveal":{display:"none",width:0,height:0},'& input[type="search"]::-webkit-search-decoration,\n  & input[type="search"]::-webkit-search-cancel-button,\n  & input[type="search"]::-webkit-search-results-button,\n  & input[type="search"]::-webkit-search-results-decoration':{display:"none"}}})),Rj=e=>e.split(" ").filter((e=>""!==e)),jj=e=>e.join(" ");function Oj(e){var t,r;const n=Af(),o=tp(),s=Xd(n,fh),{quickFilterParser:a=Rj,quickFilterFormatter:l=jj,debounceMs:u=o.filterDebounceMs}=e,c=(0,Lt.A)(e,kj),[d,p]=i.useState((()=>l(null!=s?s:[]))),h=i.useRef(s);i.useEffect((()=>{Hh(h.current,s)||(h.current=s,p((e=>Hh(a(e),s)?e:l(null!=s?s:[]))))}),[s,l,a]);const f=i.useCallback((e=>{const t=a(e);h.current=t,n.current.setQuickFilterValues(t)}),[n,a]),m=i.useMemo((()=>(0,Vf.A)(f,u)),[f,u]),g=i.useCallback((e=>{const t=e.target.value;p(t),m(t)}),[m]),v=i.useCallback((()=>{p(""),f("")}),[f]);return(0,Ne.jsx)(Ej,(0,Ft.A)({as:o.slots.baseTextField,ownerState:o,variant:"standard",value:d,onChange:g,placeholder:n.current.getLocaleText("toolbarQuickFilterPlaceholder"),"aria-label":n.current.getLocaleText("toolbarQuickFilterLabel"),type:"search"},c,{InputProps:(0,Ft.A)({startAdornment:(0,Ne.jsx)(o.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:(0,Ne.jsx)(o.slots.baseIconButton,(0,Ft.A)({"aria-label":n.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),size:"small",sx:{visibility:d?"visible":"hidden"},onClick:v},null==(t=o.slotProps)?void 0:t.baseIconButton,{children:(0,Ne.jsx)(o.slots.quickFilterClearIcon,{fontSize:"small"})}))},c.InputProps)},null==(r=o.slotProps)?void 0:r.baseTextField))}const Tj=["className","csvOptions","printOptions","excelOptions","showQuickFilter","quickFilterProps"],Ij=i.forwardRef((function(e,t){const{csvOptions:r,printOptions:n,excelOptions:o,showQuickFilter:i=!1,quickFilterProps:s={}}=e,a=(0,Lt.A)(e,Tj),l=tp();return l.disableColumnFilter&&l.disableColumnSelector&&l.disableDensitySelector&&!i?null:(0,Ne.jsxs)(bj,(0,Ft.A)({ref:t},a,{children:[(0,Ne.jsx)(xj,{}),(0,Ne.jsx)(Cj,{}),(0,Ne.jsx)(_j,{}),(0,Ne.jsx)(Ix,{csvOptions:r,printOptions:n,excelOptions:o}),(0,Ne.jsx)(mr,{sx:{flex:1}}),i&&(0,Ne.jsx)(Oj,(0,Ft.A)({},s))]}))})),Pj=e=>{var[t,r]=(0,i.useState)(!0);if((0,i.useEffect)((()=>{console.debug("USEEFFECT",e.errorMSG),r(e.error)}),[e.error,e.errorMSG]),console.debug("RenderError",t),t){var n="";return n="string"===typeof t.type?"Error on Search":t,(0,Ne.jsx)("div",{children:(0,Ne.jsx)(pu,{severity:"error",variant:"filled",children:n})})}return(0,Ne.jsx)("div",{})},Nj=r(2572);function Mj(e,t,r,n){let o=Nj.requestBodySearch(),i="";return e.keywords&&e.keywords.indexOf("*")>-1?i=Nj.queryStringQuery(e.keywords).fields(Ue):(i=Nj.boolQuery(),0===Object.keys(e).length&&e.constructor===Object?i.must(Nj.matchQuery("entity_type","Donor OR Sample OR Dataset OR Upload OR Publication OR Collection")):(e.group_name?i.must(Nj.matchQuery("group_name.keyword",e.group_name)):e.group_uuid&&("Collection"===e.entity_type?i.must(Nj.matchQuery("datasets.group_uuid.keyword",e.group_uuid)):i.must(Nj.matchQuery("group_uuid.keyword",e.group_uuid))),e.sample_category?"donor"!==e.sample_category?i.must(Nj.matchQuery("sample_category.keyword",e.sample_category)):i.must(Nj.matchQuery("entity_type.keyword","Donor")):e.organ?i.must(Nj.matchQuery("organ.keyword",e.organ)):e.entity_type?"DonorSample"===e.entity_type?i.must(Nj.matchQuery("entity_type","Donor OR Sample")):i.must(Nj.matchQuery("entity_type.keyword",e.entity_type)):i.must(Nj.matchQuery("entity_type","Donor OR Sample OR Dataset OR Upload OR Publication OR Collection")),e.keywords&&(e.keywords&&0===e.keywords.indexOf("HBM")?i.must(Nj.matchQuery("hubmap_id.keyword",e.keywords)):i.filter(Nj.multiMatchQuery(He,e.keywords))))),e.keywords&&e.keywords.indexOf("HBM")>-1?o.query(i).from(t).size(1).sort(Nj.sort("last_modified_timestamp","asc")).source(n).trackTotalHits(!0):o.query(i).from(t).size(r).sort(Nj.sort("last_modified_timestamp","asc")).source(n).trackTotalHits(!0),o.toJSON()}const Dj=e=>{var[t]=(0,i.useState)(e.searchTitle?e.searchTitle:"Search"),[r]=(0,i.useState)(e.allGroups?e.allGroups:[]),[n]=(0,i.useState)(e.allTypes?e.allTypes:[]),[o,s]=(0,i.useState)(e.searchFilters?e.searchFilters:{}),[a,l]=(0,i.useState)(e.searchFilters?e.searchFilters:{}),[u,c]=(0,i.useState)(e.modecheck?e.modecheck:null),[d,p]=(0,i.useState)(0),[h,f]=(0,i.useState)(100),[m,g]=i.useState({dataRows:null,rowCount:0,colDef:ld}),[v,b]=(0,i.useState)(!0),[y,x]=(0,i.useState)(!0),[w,_]=(0,i.useState)(!0),[S,A]=(0,i.useState)(),[C,k]=(0,i.useState)();const E=e.restrictions?e.restrictions:null,R=e.urlChange;var j=e.packagedQuery?e.packagedQuery:null;function O(e){return"Donor"===e?ad:"Dataset"===e?ud:"Publication"===e?cd:"Upload"===e?dd:"Collection"===e?pd:ld}function T(e){const{name:t,value:r}=e.target;switch(console.debug("%c\u2299","color:#FF7300","HandleINputChange",t,r,e),t){case"group_uuid":s("All Components"!==r&&"allcom"!==r?e=>({...e,group_uuid:r}):e=>({...e,group_uuid:""}));break;case"entity_type":s("---"!==r?e=>({...e,entity_type:r}):e=>({...e,entity_type:""}));break;case"keywords":s((e=>({...e,keywords:r})))}}function I(t){t&&t.preventDefault(),x(!0),p(0),console.debug("%c\u2299handleSearchClick","color:#5789ff;background: #000;padding:200",o);var r,n=o.group_uuid;o.entity_type?r=o.entity_type:o.organ?r=o.organ:o.sample_category&&(r=o.sample_category);var i=o.keywords;let s=ld;if(r){let e=r.toLowerCase();s&&("donor"===e?s=ad:"sample"===e?s=ld:"dataset"===e?s=ud:"publication"===e?s=cd:"upload"===e?s=dd:"collection"===e&&(s=pd))}let u={};var c=new URL(window.location);i?(u.keywords=i.trim(),c.searchParams.set("keywords",i)):c.searchParams.delete("keywords"),n&&"All Components"!==n?(u.group_uuid=n,c.searchParams.set("group_uuid",n)):c.searchParams.delete("group_uuid"),r&&"----"!==r?(console.debug("%c\u2299","color:#00ff7b","entityType fiound",r),u.entity_type=r,c.searchParams.set("entity_type",r)):(console.debug("%c\u2299","color:#00ff7b","entityType NOT fiound"),c.searchParams.delete("entity_type")),e.modecheck||(console.debug("%c\u2299SETTING URL: ","color:#FFf07b",c,u),window.history.pushState({},"",c),document.title="HuBMAP Ingest Portal Search"),console.debug("%c\u2299 searchFilters","color:#00ff7b",a),l(u)}function P(){var t=["lab_donor_id","created_by_user_displayname","lab_tissue_sample_id","entity_type","specimen_type","organ","registered_doi"];var r=function(e){let t={};return e.forEach((e=>{t[e]=!1})),t}(t);return(0,Ne.jsx)("div",{style:{height:590,width:"100%"},children:(0,Ne.jsx)(mj,{sx:{".MuiTablePagination-select":{background:"#eee"},".MuiTablePagination-displayedRows":{marginTop:"1em",marginBottom:"1em"},".MuiTablePagination-displayedRows, .MuiTablePagination-selectLabel":{marginTop:"1em",marginBottom:"1em"}},columnVisibilityModel:r,rows:m.dataRows,columns:m.colDef,disableColumnMenu:!0,columnBuffer:2,columnThreshold:2,pagination:!0,slots:{toolbar:Ij},rows:m.dataRows,slotProps:{toolbar:{csvOptions:{fileName:"hubmap_ingest_export"}},columnsPanel:{getTogglableColumns:e=>e.filter((e=>!t.includes(e.field))).map((e=>e.field))}},hideFooterSelectedRowCount:!0,rowCount:m.rowCount,paginationMode:"server",pageSizeOptions:[10,50,100],onPaginationModelChange:e=>{return p((t=e).page),void f(t.pageSize);var t},loading:y,onCellClick:e.handleTableCellClick?t=>e.handleTableCellClick(t):e=>function(e){if("uuid"!==e.field&&e.hasOwnProperty("row")){var t=e.row.entity_type.toLowerCase();R(t+"/"+e.row.uuid)}}(e)})})}return(0,i.useEffect)((()=>{console.debug("%c\u2299 CURRENT QUERY PARAMS:","color:#00ff7b",j);var e={};if("Source"===u);else if(document.title="HuBMAP Ingest Portal ",j){var t="HubMAP Ingest Portal Search: ";j.entity_type&&null!==j.entity_type&&(e.entity_type=j.entity_type,t+="Type: "+j.entity_type),j.keywords&&null!==j.keywords&&(e.keywords=j.keywords,t+="Keywords: "+j.keywords),j.group_uuid&&null!==j.group_uuid&&(e.group_uuid=j.group_uuid,t+="Group: "+j.group_uuid),e.length>0&&(document.title="HuBMAP Ingest Portal | Search: "+t),console.debug("%c\u2299 useEffect formQueries","color:#FF004C",j.entity_type,e);var r=Object.keys(e).length;console.debug("%c\u2299","color:#00ff7b","FORM QUERY USEFFECT",e,r),s(e),r>0&&(console.debug("Setting search Filters from URL",e),l(e))}}),[j,u]),(0,i.useEffect)((()=>{var e=a;if(x(!0),console.debug("useEffect loadTable"),console.debug("%c\u2299 searchFilters: ","color:#00ff7b",e),e.entity_type&&"----"!==e.entity_type||E&&E.entityType){var t=E&&E.entityType?E.entityType:e.entity_type;console.debug("%c\u25c9 entityType ","color:#00ff7b",t),delete e.entity_type,Le.hasOwnProperty(t.toLowerCase())?e.entity_type=Tc(t):ze.hasOwnProperty(t.toLowerCase())?e.sample_category=t.toLowerCase():e.organ=t.toUpperCase()}E&&E.entityType&&(e.entityType=E.entityType,s((e=>({...e,entity_type:E.entityType}))));var r=function(){var e=[].concat(ld,pd,ud,dd,ad);return[...new Set(e.map((e=>e.field)))]}();(function(e,t,r,n,o){const i={headers:{Authorization:"Bearer "+t,"Content-Type":"application/json"}};let s=Mj(e,r,n,o);return _u().post("https://search.api.hubmapconsortium.org/v3/search",s,i).then((e=>{let t=e.data.hits.hits,r=[];return t.forEach((e=>{let t=e._source;t.id=e._source.uuid,r.push(t)})),{status:e.status,results:r,total:e.data.hits.total.value}})).catch((e=>({error:e})))})(e,JSON.parse(localStorage.getItem("info")).groups_token,d*h,h,r).then((t=>{if(t.error&&(console.debug("%c\u25c9 Error on Search ","color:#ff005d",t.error),function(e){console.debug("%c\u2b57errorReporting","color:#ff005d",e)}(t.error)),console.debug("%c\u25c9 searchFilterParams ","color:#00d184",e),x(!1),console.debug("%c\u2299useEffect Search","color:rgb(0 140 255)",t.total,t.results),t.total>0&&200===t.status)g({dataRows:t.results,rowCount:t.total,colDef:O(t.results[0].entity_type)});else if(0===t.total)g({dataRows:t.results,rowCount:t.total,colDef:ld});else{var r="",n=t.results.data.error.root_cause[0].type+" | "+t.results.data.error.root_cause[0].reason;r="string"===typeof n.type?"Error on Search":n,k(!0),A(r)}})).catch((e=>{x(!1),console.debug("%c\u2b57 ERROR","color:#ff005d",e)}))}),[d,h,a]),(0,i.useEffect)((()=>{console.debug("useEffect groups & types"),r&&r.length>0&&n&&n.length>0&&_(!1)}),[r,n]),(0,Ne.jsxs)("div",{style:{width:"100%",textAlign:"center"},children:[!w&&(0,Ne.jsxs)("div",{className:"m-2",children:[(0,Ne.jsxs)(mr,{sx:{flexDirection:"column",justifyContent:"center"},children:[(0,Ne.jsxs)("span",{className:"portal-label text-center",children:[t," "]}),(0,Ne.jsxs)(Yt,{align:"center",variant:"subtitle1",gutterBottom:!0,children:["Use the filter controls to search for Donors, Samples, Datasets, Data Uploads, Publications, or Collections. ",(0,Ne.jsx)("br",{}),"If you know a specific ID you can enter it into the keyword field to locate individual entities."]})]}),C&&(0,Ne.jsx)(Pj,{error:S}),(0,Ne.jsx)("form",{onSubmit:e=>{I(e)},children:(0,Ne.jsxs)(Rr,{container:!0,spacing:3,sx:{display:"flex",justifyContent:"flex-start",textAlign:"left"},children:[(0,Ne.jsxs)(Rr,{item:!0,xs:6,children:[(0,Ne.jsx)(cE,{htmlFor:"group_uuid",id:"group_label",children:"Group"}),(0,Ne.jsxs)(US,{native:!0,fullWidth:!0,labelid:"group_label",id:"group_uuid",name:"group_uuid",label:"Group",value:o.group_uuid?o.group_uuid:"",onChange:e=>T(e),children:[(0,Ne.jsx)("option",{value:"allcom",children:"All Components"}),r.map(((e,t)=>(0,Ne.jsx)("option",{value:Object.values(e)[1],children:Object.values(e)[0]},t+1)))]})]}),(0,Ne.jsxs)(Rr,{item:!0,xs:6,children:[(0,Ne.jsx)(cE,{htmlFor:"entity_type",id:"entity_type_label",children:"Type"}),(0,Ne.jsxs)(US,{native:!0,fullWidth:!0,labelid:"entity_type_label",name:"entity_type",id:"entity_type",label:"Type",value:o.entity_type,onChange:e=>T(e),disabled:!(!e.restrictions||!e.restrictions.entityType),children:[(0,Ne.jsx)("option",{value:"---",children:"---"}),n.map(((e,t)=>(0,Ne.jsx)("optgroup",{label:"____________________________________________________________",children:Object.entries(e).map(((e,t)=>(0,Ne.jsx)("option",{value:e[0],children:e[1]},e[0])))},t)))]})]}),(0,Ne.jsxs)(Rr,{item:!0,xs:12,children:[(0,Ne.jsx)(cE,{htmlFor:"keywords",id:"keywords_label",children:"Keywords"}),(0,Ne.jsx)(kE,{labelid:"keywords_label",name:"keywords",id:"keywords",helperText:"Enter a keyword or HuBMAP/Submission/Lab ID;  For wildcard searches use *  e.g., VAN004*",fullWidth:!0,value:o.keywords?o.keywords:"",onChange:e=>T(e)})]}),(0,Ne.jsx)(Rr,{item:!0,xs:2}),(0,Ne.jsx)(Rr,{item:!0,xs:4,children:(0,Ne.jsx)(HE,{fullWidth:!0,color:"primary",variant:"contained",size:"large",onClick:e=>I(e),children:"Search"})}),(0,Ne.jsx)(Rr,{item:!0,xs:4,children:(0,Ne.jsx)(HE,{fullWidth:!0,variant:"outlined",color:"primary",size:"large",onClick:e=>(s({group_uuid:"",entity_type:"",keywords:""}),void l({group_uuid:"allcom",entity_type:"---",keywords:""})),children:"Clear"})}),(0,Ne.jsx)(Rr,{item:!0,xs:2})]})})]}),w&&(0,Ne.jsx)(xu,{}),m.dataRows&&m.dataRows.length>0&&P(),m.dataRows&&0===m.dataRows.length&&!y&&(0,Ne.jsx)("div",{className:"text-center",children:"No record found."})]})};function Lj(){var e=[].concat(ld,pd,ud,dd,ad);return[...new Set(e.map((e=>e.field)))]}class Fj extends i.Component{constructor(e){super(e),this.sortGroupsByDisplay=e=>{var t={TMC:[],RTI:[],TTD:[],DP:[],TC:[],MC:[],EXT:[],IEC:[]},r=[];for(var n in e){var o=e[n].shortname.split(" ");["TMC","RTI","TTD","DP","TC","MC","EXT","IEC"].includes(o[0])&&t[o[0]].push({shortName:e[n].shortname,uuid:e[n].uuid})}return r.push(t.TMC,t.RTI,t.TTD,t.DP,t.TC,t.MC,t.EXT,t.IEC),r.flat()},this.handleSortOrgans=e=>{let t={},r=[];var n=new Map;for(let o in e){let n=e[o];t[n]=o,r.push(n)}r=r.sort();for(const[o,i]of r.entries())n.set(i,t[i]);return n},this.handleShowSearch=e=>{!0===e?this.setState({loading:!1,show_search:!0}):this.setState({loading:!1,show_search:!1})},this.handleInputChange=e=>{const{name:t,value:r}=e.target;switch(t){case"group":"All Components"!=r?this.setState((e=>({search_filters:{...e.search_filters,group:r}}))):this.setState((e=>({search_filters:{...e.search_filters,group:""}})));break;case"entityType":this.setState((e=>({search_filters:{...e.search_filters,entityType:r}})));break;case"keywords":this.setState((e=>({search_filters:{...e.search_filters,keywords:r}})))}},this.setFilterType=()=>{this.setState({allTypes:this.combinedTypeOptions()},(()=>{this.setState({data_loading:!1,entityListLoading:!1},(()=>{}))}))},this.combinedTypeOptions=()=>{var e=[],t=Le;if(this.props.blacklist||this.props.whitelist){for(const[e,r]of Object.entries(t))(this.props.blacklist&&this.props.blacklist.includes(e.toLowerCase())||this.props.whitelist&&!this.props.whitelist.includes(e.toLowerCase()))&&delete t[e];e.push(t)}else e.push(t);e.push(ze);var r=[],n=this.state.organ_types;try{return n.forEach(((e,t)=>{r[e]="\xa0\xa0\xa0\xa0\xa0"+t})),e.push(r.sort()),e}catch(i){console.debug("%c\u2b57","color:#ff005d","combinedList error",i);var o="";o="string"===typeof i.type?"Error on Organ Assembly":i,this.setState({errorState:!0,error:o})}},this.handleSearchClick=()=>{},this.handleUrlChange=e=>{e&&void 0!==e&&""!==e||"Source"===this.state.modecheck||(e=""),this.setState({loading:!1}),"----"!==e&&"undefined"!==e&&e.length>0&&this.props.urlChange(e)},this.handleSearchButtonClick=e=>{this.setState({datarows:[],loading:!0,page:0},(()=>{this.handleSearchClick()}))},this.handleClose=()=>{this.setState({creatingNewUpload:!1,anchorEl:null,show_menu_popup:!1,open_edit_dialog:!1,creatingNewEntity:!1,showSearch:!0,show_search:!0,loading:!1})},this.handleTableCellClick=e=>{if("uuid"!==e.field&&e.hasOwnProperty("row")){var t=e.row.entity_type.toLowerCase();this.props.urlChange(t+"/"+e.row.uuid),yd(e.row.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{if(200===t.status){let r=t.results;r.read_only_state?Uc(e.row.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{let t=!1;200===e.status&&(t=!e.results.has_write_priv),this.setState({updateSuccess:null,editingEntity:r,readOnly:t,editForm:!0,show_modal:!0,show_search:!1,loading:!1})})):this.setState({updateSuccess:null,editingEntity:r,readOnly:"read_only_state",editForm:!0,show_modal:!0,show_search:!1,loading:!1}),this.handleUrlChange(r.entity_type+"/"+r.uuid)}}))}},this.renderLoadingBar=()=>{if(this.state.loading&&!this.state.page>0)return(0,Ne.jsx)("div",{children:(0,Ne.jsx)(Gl,{})})},this.state={group:"All Components",allGroups:[""],groupsLoading:!0,entityType:"----",allTypes:Fe,entityListLoading:!0,column_def:ad,editForm:!1,error:"",errorState:!1,fieldSet:[],filtered_keywords:"",filtered:!1,globus_url:"",hide_modal:!0,isAuthenticated:!1,keywords:"",last_keyword:"",modecheck:"",page:0,pageSize:100,results_total:0,search_title:"Search",selectionModel:"",show_info_panel:!0,show_modal:!1,show_search:!0,loading:!1,table_loading:!1,data_loading:!1,updateSuccess:!1,restrictions:this.props.restrictions?this.props.restrictions:{},search_filters:{entityType:"",keywords:"",group:""}}}componentDidMount(){try{Hc(JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{var t=this.sortGroupsByDisplay(e.results);this.setState({allGroups:t,isAuthenticated:!0},(()=>{this.setState({groupsLoading:!1})}))})).catch((e=>{console.debug("%c\u2b57","color:#ff005d","GROUPS ERR",e)}))}catch(r){console.debug("%c\u2b57","color:#ff005d",r)}var e={};if(this.props.organList?(e=this.props.organList,this.setState({organ_types:this.handleSortOrgans(e)},(()=>{this.setFilterType()}))):Ic().then((t=>{e=t,this.setState({organ_types:this.handleSortOrgans(t)},(()=>{this.setFilterType()}))})).catch((e=>{console.debug("%c\u2b57","color:#ff005d","ubkg_api_get_organ_type_set ERR",e)})),this.props.restrictions){var t=this.state.restrictions;t.search_filters=this.state.restrictions,this.setState(t,(function(){this.handleSearchClick()}))}this.props.packagedQuery&&this.setState({entityType:this.props.packagedQuery.entityType,keywords:this.props.packagedQuery.keywords,search_filters:{entityType:this.props.packagedQuery.entityType,keywords:this.props.packagedQuery.keywords,group:this.props.packagedQuery.group}},(function(){this.handleSearchClick()})),Lj(),this.props.custom_title&&this.setState({search_title:this.props.custom_title}),this.setState({fieldSet:Lj()},(function(){}))}componentDidUpdate(e,t){e.editNewEntity!==this.props.editNewEntity&&this.setState({editingEntity:this.props.editNewEntity,editForm:!0,show_modal:!0,show_search:!1,loading:!1}),e.showSearch!==this.props.showSearch&&this.setState({show_search:this.props.showSearch}),t.editEntity===this.state.editEntity||this.state.editEntity&&null!==this.state.editEntity||this.setState({editForm:!1,show_modal:!1,show_search:!0,showSearch:!0},(()=>{}))}render(){return this.state.data_loading?(0,Ne.jsxs)("div",{style:{width:"100%"},children:[(0,Ne.jsx)(Yt,{align:"center",style:{marginBottom:"20px"},children:"Loading System Data"}),(0,Ne.jsx)(Yt,{align:"center",children:(0,Ne.jsx)(xu,{color:"#444a65",size:20,loading:!0,cssOverride:{margin:"0, auto"}})})]}):this.state.isAuthenticated?(0,Ne.jsxs)("div",{style:{width:"100%"},children:[this.props.routingMessage&&(0,Ne.jsxs)(pu,{variant:"filled",severity:"error",children:[(0,Ne.jsx)("strong",{children:"Sorry"})," ",this.props.routingMessage[0]+" ","Please use ",(0,Ne.jsx)(Re,{to:this.props.routingMessage[1],className:"text-white",children:"Uploads"})," instead."]}),this.state.loading&&this.renderLoadingBar(),this.state.show_search&&!this.state.groupsLoading&&!this.state.entityListLoading&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)(Dj,{packagedQuery:this.props.packagedQuery?this.props.packagedQuery:null,restrictions:this.props.restrictions,allGroups:this.state.allGroups,allTypes:this.state.allTypes,columns:this.state.column_def,searchTitle:this.state.search_title,handleTableCellClick:this.props.select?e=>this.props.select(e):e=>this.handleTableCellClick(e),reportError:e=>this.props.reportError(e),urlChange:e=>this.props.urlChange(e)})}),this.state.datarows&&0===this.state.datarows.length&&this.state.filtered&&!this.state.loading&&(0,Ne.jsx)("div",{className:"text-center",children:"No record found."})]}):null}}const zj=Fj;var Bj=r(4467),$j=r(4534),Hj=r(9892),Uj=r(9189);var Wj="undefined"!==typeof window?i.useLayoutEffect:i.useEffect;const Vj=i.forwardRef((function(e,t){var r=e.children,o=e.container,s=e.disablePortal,a=void 0!==s&&s,l=e.onRendered,u=i.useState(null),c=u[0],d=u[1],p=(0,Rs.A)(i.isValidElement(r)?r.ref:null,t);return Wj((function(){a||d(function(e){return e="function"===typeof e?e():e,n.findDOMNode(e)}(o)||document.body)}),[o,a]),Wj((function(){if(c&&!a)return(0,Uj.A)(t,c),function(){(0,Uj.A)(t,null)}}),[t,c,a]),Wj((function(){l&&(c||a)&&l()}),[l,c,a]),a?i.isValidElement(r)?i.cloneElement(r,{ref:p}):r:c?n.createPortal(r,c):c}));var qj=r(146),Gj=r(5321);function Qj(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}var Kj=r(7249);function Jj(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Xj(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Yj(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,r].concat((0,Ts.A)(n)),s=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===s.indexOf(e.tagName)&&Jj(e,o)}))}function Zj(e,t){var r=-1;return e.some((function(e,n){return!!t(e)&&(r=n,!0)})),r}function eO(e,t){var r,n=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,Hj.A)(e);return t.body===e?(0,Kj.A)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var s=Qj();n.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(Xj(i)+s,"px"),r=(0,Hj.A)(i).querySelectorAll(".mui-fixed"),[].forEach.call(r,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(Xj(e)+s,"px")}))}var a=i.parentElement,l="HTML"===a.nodeName&&"scroll"===window.getComputedStyle(a)["overflow-y"]?a:i;n.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){r&&[].forEach.call(r,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),n.forEach((function(e){var t=e.value,r=e.el,n=e.key;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}var tO=function(){function e(){We(this,e),this.modals=[],this.containers=[]}return(0,Ve.A)(e,[{key:"add",value:function(e,t){var r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Jj(e.modalRef,!1);var n=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Yj(t,e.mountNode,e.modalRef,n,!0);var o=Zj(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:n}),r)}},{key:"mount",value:function(e,t){var r=Zj(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),n=this.containers[r];n.restore||(n.restore=eO(n,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var r=Zj(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),n=this.containers[r];if(n.modals.splice(n.modals.indexOf(e),1),this.modals.splice(t,1),0===n.modals.length)n.restore&&n.restore(),e.modalRef&&Jj(e.modalRef,!0),Yj(n.container,e.mountNode,e.modalRef,n.hiddenSiblingNodes,!1),this.containers.splice(r,1);else{var o=n.modals[n.modals.length-1];o.modalRef&&Jj(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const rO=function(e){var t=e.children,r=e.disableAutoFocus,o=void 0!==r&&r,s=e.disableEnforceFocus,a=void 0!==s&&s,l=e.disableRestoreFocus,u=void 0!==l&&l,c=e.getDoc,d=e.isEnabled,p=e.open,h=i.useRef(),f=i.useRef(null),m=i.useRef(null),g=i.useRef(),v=i.useRef(null),b=i.useCallback((function(e){v.current=n.findDOMNode(e)}),[]),y=(0,Rs.A)(t.ref,b),x=i.useRef();return i.useEffect((function(){x.current=p}),[p]),!x.current&&p&&"undefined"!==typeof window&&(g.current=c().activeElement),i.useEffect((function(){if(p){var e=(0,Hj.A)(v.current);o||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){null!==v.current&&(e.hasFocus()&&!a&&d()&&!h.current?v.current&&!v.current.contains(e.activeElement)&&v.current.focus():h.current=!1)},r=function(t){!a&&d()&&9===t.keyCode&&e.activeElement===v.current&&(h.current=!0,t.shiftKey?m.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",r,!0);var n=setInterval((function(){t()}),50);return function(){clearInterval(n),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",r,!0),u||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[o,a,u,d,p]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:y}),i.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))};var nO={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const oO=i.forwardRef((function(e,t){var r=e.invisible,n=void 0!==r&&r,o=e.open,s=(0,gs.A)(e,["invisible","open"]);return o?i.createElement("div",(0,Ft.A)({"aria-hidden":!0,ref:t},s,{style:(0,Ft.A)({},nO.root,n?nO.invisible:{},s.style)})):null}));var iO=new tO;const sO=i.forwardRef((function(e,t){var r=(0,Ul.A)(),o=(0,$j.A)({name:"MuiModal",props:(0,Ft.A)({},e),theme:r}),s=o.BackdropComponent,a=void 0===s?oO:s,l=o.BackdropProps,u=o.children,c=o.closeAfterTransition,d=void 0!==c&&c,p=o.container,h=o.disableAutoFocus,f=void 0!==h&&h,m=o.disableBackdropClick,g=void 0!==m&&m,v=o.disableEnforceFocus,b=void 0!==v&&v,y=o.disableEscapeKeyDown,x=void 0!==y&&y,w=o.disablePortal,_=void 0!==w&&w,S=o.disableRestoreFocus,A=void 0!==S&&S,C=o.disableScrollLock,k=void 0!==C&&C,E=o.hideBackdrop,R=void 0!==E&&E,j=o.keepMounted,O=void 0!==j&&j,T=o.manager,I=void 0===T?iO:T,P=o.onBackdropClick,N=o.onClose,M=o.onEscapeKeyDown,D=o.onRendered,L=o.open,F=(0,gs.A)(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),z=i.useState(!0),B=z[0],$=z[1],H=i.useRef({}),U=i.useRef(null),W=i.useRef(null),V=(0,Rs.A)(W,t),q=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(o),G=function(){return(0,Hj.A)(U.current)},Q=function(){return H.current.modalRef=W.current,H.current.mountNode=U.current,H.current},K=function(){I.mount(Q(),{disableScrollLock:k}),W.current.scrollTop=0},J=(0,js.A)((function(){var e=function(e){return e="function"===typeof e?e():e,n.findDOMNode(e)}(p)||G().body;I.add(Q(),e),W.current&&K()})),X=i.useCallback((function(){return I.isTopModal(Q())}),[I]),Y=(0,js.A)((function(e){U.current=e,e&&(D&&D(),L&&X()?K():Jj(W.current,!0))})),Z=i.useCallback((function(){I.remove(Q())}),[I]);if(i.useEffect((function(){return function(){Z()}}),[Z]),i.useEffect((function(){L?J():q&&d||Z()}),[L,Z,q,d,J]),!O&&!L&&(!q||B))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(r||{zIndex:Gj.A}),te={};return void 0===u.props.tabIndex&&(te.tabIndex=u.props.tabIndex||"-1"),q&&(te.onEnter=(0,qj.A)((function(){$(!1)}),u.props.onEnter),te.onExited=(0,qj.A)((function(){$(!0),d&&Z()}),u.props.onExited)),i.createElement(Vj,{ref:Y,container:p,disablePortal:_},i.createElement("div",(0,Ft.A)({ref:V,onKeyDown:function(e){"Escape"===e.key&&X()&&(M&&M(e),x||(e.stopPropagation(),N&&N(e,"escapeKeyDown")))},role:"presentation"},F,{style:(0,Ft.A)({},ee.root,!L&&B?ee.hidden:{},F.style)}),R?null:i.createElement(a,(0,Ft.A)({open:L,onClick:function(e){e.target===e.currentTarget&&(P&&P(e),!g&&N&&N(e,"backdropClick"))}},l)),i.createElement(rO,{disableEnforceFocus:b,disableAutoFocus:f,disableRestoreFocus:A,getDoc:G,isEnabled:X,open:L},i.cloneElement(u,te))))}));var aO=r(2899),lO=function(e){return e.scrollTop};function uO(e,t){var r=e.timeout,n=e.style,o=void 0===n?{}:n;return{duration:o.transitionDuration||"number"===typeof r?r:r[t.mode]||0,delay:o.transitionDelay}}var cO={entering:{opacity:1},entered:{opacity:1}},dO={enter:aO.p0.enteringScreen,exit:aO.p0.leavingScreen};const pO=i.forwardRef((function(e,t){var r=e.children,n=e.disableStrictModeCompat,o=void 0!==n&&n,s=e.in,a=e.onEnter,l=e.onEntered,u=e.onEntering,c=e.onExit,d=e.onExited,p=e.onExiting,h=e.style,f=e.TransitionComponent,m=void 0===f?ei:f,g=e.timeout,v=void 0===g?dO:g,b=(0,gs.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),y=Vl(),x=y.unstable_strictMode&&!o,w=i.useRef(null),_=(0,Rs.A)(r.ref,t),S=(0,Rs.A)(x?w:void 0,_),A=function(e){return function(t,r){if(e){var n=x?[w.current,t]:[t,r],o=(0,et.A)(n,2),i=o[0],s=o[1];void 0===s?e(i):e(i,s)}}},C=A(u),k=A((function(e,t){lO(e);var r=uO({style:h,timeout:v},{mode:"enter"});e.style.webkitTransition=y.transitions.create("opacity",r),e.style.transition=y.transitions.create("opacity",r),a&&a(e,t)})),E=A(l),R=A(p),j=A((function(e){var t=uO({style:h,timeout:v},{mode:"exit"});e.style.webkitTransition=y.transitions.create("opacity",t),e.style.transition=y.transitions.create("opacity",t),c&&c(e)})),O=A(d);return i.createElement(m,(0,Ft.A)({appear:!0,in:s,nodeRef:x?w:void 0,onEnter:k,onEntered:E,onEntering:C,onExit:j,onExited:O,onExiting:R,timeout:v},b),(function(e,t){return i.cloneElement(r,(0,Ft.A)({style:(0,Ft.A)({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},cO[e],h,r.props.style),ref:S},t))}))}));var hO=i.forwardRef((function(e,t){var r=e.children,n=e.classes,o=e.className,s=e.invisible,a=void 0!==s&&s,l=e.open,u=e.transitionDuration,c=e.TransitionComponent,d=void 0===c?pO:c,p=(0,gs.A)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return i.createElement(d,(0,Ft.A)({in:l,timeout:u},p),i.createElement("div",{className:(0,vs.A)(n.root,o,a&&n.invisible),"aria-hidden":!0,ref:t},r))}));const fO=(0,ys.A)({root:{zIndex:-1,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"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(hO);var mO={enter:aO.p0.enteringScreen,exit:aO.p0.leavingScreen},gO=i.forwardRef((function(e,t){var r=e.BackdropProps,n=e.children,o=e.classes,s=e.className,a=e.disableBackdropClick,l=void 0!==a&&a,u=e.disableEscapeKeyDown,c=void 0!==u&&u,d=e.fullScreen,p=void 0!==d&&d,h=e.fullWidth,f=void 0!==h&&h,m=e.maxWidth,g=void 0===m?"sm":m,v=e.onBackdropClick,b=e.onClose,y=e.onEnter,x=e.onEntered,w=e.onEntering,_=e.onEscapeKeyDown,S=e.onExit,A=e.onExited,C=e.onExiting,k=e.open,E=e.PaperComponent,R=void 0===E?ws:E,j=e.PaperProps,O=void 0===j?{}:j,T=e.scroll,I=void 0===T?"paper":T,P=e.TransitionComponent,N=void 0===P?pO:P,M=e.transitionDuration,D=void 0===M?mO:M,L=e.TransitionProps,F=e["aria-describedby"],z=e["aria-labelledby"],B=(0,gs.A)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),$=i.useRef();return i.createElement(sO,(0,Ft.A)({className:(0,vs.A)(o.root,s),BackdropComponent:fO,BackdropProps:(0,Ft.A)({transitionDuration:D},r),closeAfterTransition:!0},l?{disableBackdropClick:l}:{},{disableEscapeKeyDown:c,onEscapeKeyDown:_,onClose:b,open:k,ref:t},B),i.createElement(N,(0,Ft.A)({appear:!0,in:k,timeout:D,onEnter:y,onEntering:w,onEntered:x,onExit:S,onExiting:C,onExited:A,role:"none presentation"},L),i.createElement("div",{className:(0,vs.A)(o.container,o["scroll".concat((0,Fs.A)(I))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===$.current&&($.current=null,v&&v(e),!l&&b&&b(e,"backdropClick"))},onMouseDown:function(e){$.current=e.target}},i.createElement(R,(0,Ft.A)({elevation:24,role:"dialog","aria-describedby":F,"aria-labelledby":z},O,{className:(0,vs.A)(o.paper,o["paperScroll".concat((0,Fs.A)(I))],o["paperWidth".concat((0,Fs.A)(String(g)))],O.className,p&&o.paperFullScreen,f&&o.paperFullWidth)}),n))))}));const vO=(0,ys.A)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,Bj.A)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,Bj.A)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,Bj.A)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,Bj.A)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,Bj.A)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(gO);var bO=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.dividers,s=void 0!==o&&o,a=(0,gs.A)(e,["classes","className","dividers"]);return i.createElement("div",(0,Ft.A)({className:(0,vs.A)(r.root,n,s&&r.dividers),ref:t},a))}));const yO=(0,ys.A)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(bO);function xO(e){return(0,qt.Ay)("MuiButtonGroup",e)}const wO=(0,Vt.A)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),_O=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],SO=(0,Ht.Ay)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${wO.grouped}`]:t.grouped},{[`& .${wO.grouped}`]:t[`grouped${(0,Wt.A)(r.orientation)}`]},{[`& .${wO.grouped}`]:t[`grouped${(0,Wt.A)(r.variant)}`]},{[`& .${wO.grouped}`]:t[`grouped${(0,Wt.A)(r.variant)}${(0,Wt.A)(r.orientation)}`]},{[`& .${wO.grouped}`]:t[`grouped${(0,Wt.A)(r.variant)}${(0,Wt.A)(r.color)}`]},{[`& .${wO.firstButton}`]:t.firstButton},{[`& .${wO.lastButton}`]:t.lastButton},{[`& .${wO.middleButton}`]:t.middleButton},t.root,t[r.variant],!0===r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,"vertical"===r.orientation&&t.vertical]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[2]},r.disableElevation&&{boxShadow:"none"},r.fullWidth&&{width:"100%"},"vertical"===r.orientation&&{flexDirection:"column"},{[`& .${wO.grouped}`]:(0,Ft.A)({minWidth:40,"&:hover":(0,Ft.A)({},"contained"===r.variant&&{boxShadow:"none"})},"contained"===r.variant&&{boxShadow:"none"}),[`& .${wO.firstButton},& .${wO.middleButton}`]:(0,Ft.A)({},"horizontal"===r.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===r.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===r.variant&&"horizontal"===r.orientation&&{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${wO.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},"text"===r.variant&&"vertical"===r.orientation&&{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${wO.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},"text"===r.variant&&"inherit"!==r.color&&{borderColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / 0.5)`:(0,fi.X4)(t.palette[r.color].main,.5)},"outlined"===r.variant&&"horizontal"===r.orientation&&{borderRightColor:"transparent"},"outlined"===r.variant&&"vertical"===r.orientation&&{borderBottomColor:"transparent"},"contained"===r.variant&&"horizontal"===r.orientation&&{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${wO.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},"contained"===r.variant&&"vertical"===r.orientation&&{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${wO.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},"contained"===r.variant&&"inherit"!==r.color&&{borderColor:(t.vars||t).palette[r.color].dark},{"&:hover":(0,Ft.A)({},"outlined"===r.variant&&"horizontal"===r.orientation&&{borderRightColor:"currentColor"},"outlined"===r.variant&&"vertical"===r.orientation&&{borderBottomColor:"currentColor"})}),[`& .${wO.lastButton},& .${wO.middleButton}`]:(0,Ft.A)({},"horizontal"===r.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===r.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===r.variant&&"horizontal"===r.orientation&&{marginLeft:-1},"outlined"===r.variant&&"vertical"===r.orientation&&{marginTop:-1})})})),AO=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiButtonGroup"}),{children:n,className:o,color:s="primary",component:a="div",disabled:l=!1,disableElevation:u=!1,disableFocusRipple:c=!1,disableRipple:d=!1,fullWidth:p=!1,orientation:h="horizontal",size:f="medium",variant:m="outlined"}=r,g=(0,Lt.A)(r,_O),v=(0,Ft.A)({},r,{color:s,component:a,disabled:l,disableElevation:u,disableFocusRipple:c,disableRipple:d,fullWidth:p,orientation:h,size:f,variant:m}),b=(e=>{const{classes:t,color:r,disabled:n,disableElevation:o,fullWidth:i,orientation:s,variant:a}=e,l={root:["root",a,"vertical"===s&&"vertical",i&&"fullWidth",o&&"disableElevation"],grouped:["grouped",`grouped${(0,Wt.A)(s)}`,`grouped${(0,Wt.A)(a)}`,`grouped${(0,Wt.A)(a)}${(0,Wt.A)(s)}`,`grouped${(0,Wt.A)(a)}${(0,Wt.A)(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,$t.A)(l,xO,t)})(v),y=i.useMemo((()=>({className:b.grouped,color:s,disabled:l,disableElevation:u,disableFocusRipple:c,disableRipple:d,fullWidth:p,size:f,variant:m})),[s,l,u,c,d,p,f,m,b.grouped]),x=function(e){return i.Children.toArray(e).filter((e=>i.isValidElement(e)))}(n),w=x.length,_=e=>{const t=0===e,r=e===w-1;return t&&r?"":t?b.firstButton:r?b.lastButton:b.middleButton};return(0,Ne.jsx)(SO,(0,Ft.A)({as:a,role:"group",className:(0,zt.A)(b.root,o),ref:t,ownerState:v},g,{children:(0,Ne.jsx)(ME.Provider,{value:y,children:x.map(((e,t)=>(0,Ne.jsx)(DE.Provider,{value:_(t),children:e},t)))})}))}));var CO=i.forwardRef((function(e,t){var r=e.absolute,n=void 0!==r&&r,o=e.classes,s=e.className,a=e.component,l=void 0===a?"hr":a,u=e.flexItem,c=void 0!==u&&u,d=e.light,p=void 0!==d&&d,h=e.orientation,f=void 0===h?"horizontal":h,m=e.role,g=void 0===m?"hr"!==l?"separator":void 0:m,v=e.variant,b=void 0===v?"fullWidth":v,y=(0,gs.A)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return i.createElement(l,(0,Ft.A)({className:(0,vs.A)(o.root,s,"fullWidth"!==b&&o[b],n&&o.absolute,c&&o.flexItem,p&&o.light,"vertical"===f&&o.vertical),role:g,ref:t},y))}));const kO=(0,ys.A)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,bs.X4)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(CO);var EO="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),RO=new Uint8Array(16);function jO(){if(!EO)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return EO(RO)}for(var OO=[],TO=0;TO<256;++TO)OO[TO]=(TO+256).toString(16).substr(1);const IO=function(e,t){var r=t||0,n=OO;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};const PO=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||jO)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||IO(o)};function NO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function MO(e,t,r){return t&&NO(e.prototype,t),r&&NO(e,r),e}function DO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LO(){return LO=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},LO.apply(this,arguments)}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?FO(Object(r),!0).forEach((function(t){DO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function BO(e){return BO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BO(e)}function $O(e,t){return $O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$O(e,t)}function HO(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var UO={HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"},WO=function(e,t){var r;"function"===typeof window.CustomEvent?r=new window.CustomEvent(e,{detail:t}):(r=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(r)};var VO=function(e,t){var r=this.state.show,n=this.props.id,o=this.isCapture(t.currentTarget),i=t.currentTarget.getAttribute("currentItem");o||t.stopPropagation(),r&&"true"===i?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),qO(t.currentTarget,this.getTargetArray(n)),this.showTooltip(t))},qO=function(e,t){for(var r=0;r<t.length;r++)e!==t[r]?t[r].setAttribute("currentItem","false"):t[r].setAttribute("currentItem","true")},GO={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,r){this.id in e?e[this.id][t]=r:Object.defineProperty(e,this.id,{configurable:!0,value:DO({},t,r)})},get:function(e,t){var r=e[this.id];if(void 0!==r)return r[t]}};var QO=function(e,t,r){var n=t.respectEffect,o=void 0!==n&&n,i=t.customEvent,s=void 0!==i&&i,a=this.props.id,l=r.target.getAttribute("data-tip")||null,u=r.target.getAttribute("data-for")||null,c=r.target;if(!this.isCustomEvent(c)||s){var d=null==a&&null==u||u===a;if(null!=l&&(!o||"float"===this.getEffect(c))&&d){var p=function(e){var t={};for(var r in e)"function"===typeof e[r]?t[r]=e[r].bind(e):t[r]=e[r];return t}(r);p.currentTarget=c,e(p)}}},KO=function(e,t){var r={};return e.forEach((function(e){var n=e.getAttribute(t);n&&n.split(" ").forEach((function(e){return r[e]=!0}))})),r},JO=function(){return document.getElementsByTagName("body")[0]};function XO(e,t,r,n,o,i,s){for(var a=YO(r),l=a.width,u=a.height,c=YO(t),d=c.width,p=c.height,h=ZO(e,t,i),f=h.mouseX,m=h.mouseY,g=eT(i,d,p,l,u),v=tT(s),b=v.extraOffsetX,y=v.extraOffsetY,x=window.innerWidth,w=window.innerHeight,_=rT(r),S=_.parentTop,A=_.parentLeft,C=function(e){var t=g[e].l;return f+t+b},k=function(e){var t=g[e].t;return m+t+y},E=function(e){return function(e){var t=g[e].r;return f+t+b}(e)>x},R=function(e){return function(e){var t=g[e].b;return m+t+y}(e)>w},j=function(e){return function(e){return C(e)<0}(e)||E(e)||function(e){return k(e)<0}(e)||R(e)},O=function(e){return!j(e)},T=["top","bottom","left","right"],I=[],P=0;P<4;P++){var N=T[P];O(N)&&I.push(N)}var M,D=!1,L=o!==n;return O(o)&&L?(D=!0,M=o):I.length>0&&j(o)&&j(n)&&(D=!0,M=I[0]),D?{isNewState:!0,newState:{place:M}}:{isNewState:!1,position:{left:parseInt(C(n)-A,10),top:parseInt(k(n)-S,10)}}}var YO=function(e){var t=e.getBoundingClientRect(),r=t.height,n=t.width;return{height:parseInt(r,10),width:parseInt(n,10)}},ZO=function(e,t,r){var n=t.getBoundingClientRect(),o=n.top,i=n.left,s=YO(t),a=s.width,l=s.height;return"float"===r?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+a/2,mouseY:o+l/2}},eT=function(e,t,r,n,o){var i,s,a,l;return"float"===e?(i={l:-n/2,r:n/2,t:-(o+3+2),b:-3},a={l:-n/2,r:n/2,t:15,b:o+3+2+12},l={l:-(n+3+2),r:-3,t:-o/2,b:o/2},s={l:3,r:n+3+2,t:-o/2,b:o/2}):"solid"===e&&(i={l:-n/2,r:n/2,t:-(r/2+o+2),b:-r/2},a={l:-n/2,r:n/2,t:r/2,b:r/2+o+2},l={l:-(n+t/2+2),r:-t/2,t:-o/2,b:o/2},s={l:t/2,r:n+t/2+2,t:-o/2,b:o/2}),{top:i,bottom:a,left:l,right:s}},tT=function(e){var t=0,r=0;for(var n in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===n?r-=parseInt(e[n],10):"bottom"===n?r+=parseInt(e[n],10):"left"===n?t-=parseInt(e[n],10):"right"===n&&(t+=parseInt(e[n],10));return{extraOffsetX:t,extraOffsetY:r}},rT=function(e){for(var t=e;t;){var r=window.getComputedStyle(t);if("none"!==r.getPropertyValue("transform")||"transform"===r.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function nT(e,t,r,n){if(t)return t;if(void 0!==r&&null!==r)return r;if(null===r)return null;var o=/<br\s*\/?>/;return n&&"false"!==n&&o.test(e)?e.split(o).map((function(e,t){return i.createElement("span",{key:t,className:"multi-line"},e)})):e}function oT(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(r){t[r]=e[r]})),t}function iT(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var sT,aT,lT,uT={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function cT(e,t,r,n){return function(e,t){var r=t.text,n=t.background,o=t.border,i=t.arrow;return"\n  \t.".concat(e," {\n\t    color: ").concat(r,";\n\t    background: ").concat(n,";\n\t    border: 1px solid ").concat(o,";\n  \t}\n\n  \t.").concat(e,".place-top {\n        margin-top: -10px;\n    }\n    .").concat(e,".place-top::before {\n        border-top: 8px solid ").concat(o,";\n    }\n    .").concat(e,".place-top::after {\n        border-left: 8px solid transparent;\n        border-right: 8px solid transparent;\n        bottom: -6px;\n        left: 50%;\n        margin-left: -8px;\n        border-top-color: ").concat(i,";\n        border-top-style: solid;\n        border-top-width: 6px;\n    }\n\n    .").concat(e,".place-bottom {\n        margin-top: 10px;\n    }\n    .").concat(e,".place-bottom::before {\n        border-bottom: 8px solid ").concat(o,";\n    }\n    .").concat(e,".place-bottom::after {\n        border-left: 8px solid transparent;\n        border-right: 8px solid transparent;\n        top: -6px;\n        left: 50%;\n        margin-left: -8px;\n        border-bottom-color: ").concat(i,";\n        border-bottom-style: solid;\n        border-bottom-width: 6px;\n    }\n\n    .").concat(e,".place-left {\n        margin-left: -10px;\n    }\n    .").concat(e,".place-left::before {\n        border-left: 8px solid ").concat(o,";\n    }\n    .").concat(e,".place-left::after {\n        border-top: 5px solid transparent;\n        border-bottom: 5px solid transparent;\n        right: -6px;\n        top: 50%;\n        margin-top: -4px;\n        border-left-color: ").concat(i,";\n        border-left-style: solid;\n        border-left-width: 6px;\n    }\n\n    .").concat(e,".place-right {\n        margin-left: 10px;\n    }\n    .").concat(e,".place-right::before {\n        border-right: 8px solid ").concat(o,";\n    }\n    .").concat(e,".place-right::after {\n        border-top: 5px solid transparent;\n        border-bottom: 5px solid transparent;\n        left: -6px;\n        top: 50%;\n        margin-top: -4px;\n        border-right-color: ").concat(i,";\n        border-right-style: solid;\n        border-right-width: 6px;\n    }\n  ")}(e,function(e,t,r){var n=e.text,o=e.background,i=e.border,s=e.arrow?e.arrow:e.background,a=function(e){return uT[e]?zO({},uT[e]):void 0}(t);n&&(a.text=n);o&&(a.background=o);r&&(a.border=i||("light"===t?"black":"white"));s&&(a.arrow=s);return a}(t,r,n))}var dT,pT=function(e){e.hide=function(e){WO(UO.HIDE,{target:e})},e.rebuild=function(){WO(UO.REBUILD)},e.show=function(e){WO(UO.SHOW,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(sT=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(UO.HIDE,this.globalHide),window.addEventListener(UO.HIDE,this.globalHide,!1),window.removeEventListener(UO.REBUILD,this.globalRebuild),window.addEventListener(UO.REBUILD,this.globalRebuild,!1),window.removeEventListener(UO.SHOW,this.globalShow),window.addEventListener(UO.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(UO.HIDE,this.globalHide),window.removeEventListener(UO.REBUILD,this.globalRebuild),window.removeEventListener(UO.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(sT=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,r=this.state,n=r.event,o=r.eventOff,i=e.getAttribute("data-event")||n,s=e.getAttribute("data-event-off")||o;i.split(" ").forEach((function(r){e.removeEventListener(r,GO.get(e,r));var n=VO.bind(t,s);GO.set(e,r,n),e.addEventListener(r,n,!1)})),s&&s.split(" ").forEach((function(r){e.removeEventListener(r,t.hideTooltip),e.addEventListener(r,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,r=t.event,n=t.eventOff,o=r||e.getAttribute("data-event"),i=n||e.getAttribute("data-event-off");e.removeEventListener(o,GO.get(e,r)),i&&e.removeEventListener(i,this.hideTooltip)}}(sT=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(sT=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(sT=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,r=this.state,n=r.event,o=r.eventOff,i=r.possibleCustomEvents,s=r.possibleCustomEventsOff,a=JO(),l=KO(e,"data-event"),u=KO(e,"data-event-off");null!=n&&(l[n]=!0),null!=o&&(u[o]=!0),i.split(" ").forEach((function(e){return l[e]=!0})),s.split(" ").forEach((function(e){return u[e]=!0})),this.unbindBodyListener(a);var c=this.bodyModeListeners={};for(var d in null==n&&(c.mouseover=QO.bind(this,this.showTooltip,{}),c.mousemove=QO.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=QO.bind(this,this.hideTooltip,{})),l)c[d]=QO.bind(this,(function(e){var r=e.currentTarget.getAttribute("data-event-off")||o;VO.call(t,r,e)}),{customEvent:!0});for(var p in u)c[p]=QO.bind(this,this.hideTooltip,{customEvent:!0});for(var h in c)a.addEventListener(h,c[h])},e.prototype.unbindBodyListener=function(e){e=e||JO();var t=this.bodyModeListeners;for(var r in t)e.removeEventListener(r,t[r])}}((lT=aT=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=HO(this,BO(t).call(this,e))).state={uuid:e.uuid||"t"+PO(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:oT(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},r.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),r.mount=!0,r.delayShowLoop=null,r.delayHideLoop=null,r.delayReshow=null,r.intervalUpdateContent=null,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$O(e,t)}(t,e),MO(t,null,[{key:"propTypes",get:function(){return{uuid:Xe().string,children:Xe().any,place:Xe().string,type:Xe().string,effect:Xe().string,offset:Xe().object,multiline:Xe().bool,border:Xe().bool,textColor:Xe().string,backgroundColor:Xe().string,borderColor:Xe().string,arrowColor:Xe().string,insecure:Xe().bool,class:Xe().string,className:Xe().string,id:Xe().string,html:Xe().bool,delayHide:Xe().number,delayUpdate:Xe().number,delayShow:Xe().number,event:Xe().string,eventOff:Xe().string,isCapture:Xe().bool,globalEventOff:Xe().string,getContent:Xe().any,afterShow:Xe().func,afterHide:Xe().func,overridePosition:Xe().func,disable:Xe().bool,scrollHide:Xe().bool,resizeHide:Xe().bool,wrapper:Xe().string,bodyMode:Xe().bool,possibleCustomEvents:Xe().string,possibleCustomEventsOff:Xe().string,clickable:Xe().bool}}}]),MO(t,[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props,t=(e.insecure,e.resizeHide);this.bindListener(),this.bindWindowEvents(t),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.props.id,t=this.getTargetArray(e),r=[];if(t.forEach((function(e){for(var t=e.parentNode;t.parentNode&&!t.host;)t=t.parentNode;var n=t.querySelector("head");r.push(n||t)})),r.length){var n=document.createElement("style");n.textContent='.__react_component_tooltip {\n  border-radius: 3px;\n  display: inline-block;\n  font-size: 13px;\n  left: -999em;\n  opacity: 0;\n  padding: 8px 21px;\n  position: fixed;\n  pointer-events: none;\n  transition: opacity 0.3s ease-out;\n  top: -999em;\n  visibility: hidden;\n  z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n  pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n  content: "";\n  width: 0;\n  height: 0;\n  position: absolute;\n}\n.__react_component_tooltip.show {\n  opacity: 0.9;\n  margin-top: 0;\n  margin-left: 0;\n  visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n  border-left: 10px solid transparent;\n  border-right: 10px solid transparent;\n  bottom: -8px;\n  left: 50%;\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n  border-left: 10px solid transparent;\n  border-right: 10px solid transparent;\n  top: -8px;\n  left: 50%;\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n  border-top: 6px solid transparent;\n  border-bottom: 6px solid transparent;\n  right: -8px;\n  top: 50%;\n  margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n  border-top: 6px solid transparent;\n  border-bottom: 6px solid transparent;\n  left: -8px;\n  top: 50%;\n  margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n  display: block;\n  padding: 2px 0;\n  text-align: center;\n}',n.setAttribute("data-react-tooltip","true"),r.filter((function(e,t,r){return r.indexOf(e)===t})).forEach((function(e){e.querySelector("style[data-react-tooltip]")||e.appendChild(n)}))}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,r=[];if(e){var n=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(n,'"]')}else t="[data-tip]:not([data-for])";return iT(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){r=r.concat(iT(e.shadowRoot.querySelectorAll(t)))})),r.concat(iT(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,r=t.id,n=t.globalEventOff,o=t.isCapture,i=this.getTargetArray(r);i.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(i):i.forEach((function(t){var r=e.isCapture(t),n=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,r),"float"===n&&t.addEventListener("mousemove",e.updateTooltip,r),t.addEventListener("mouseleave",e.hideTooltip,r))})),n&&(window.removeEventListener(n,this.hideTooltip),window.addEventListener(n,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,r=t.id,n=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(r).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),n&&window.removeEventListener(n,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,r=t.getContent,n=t.children;return r&&(e=Array.isArray(r)?r[0]&&r[0](this.state.originTooltip):r(this.state.originTooltip)),nT(this.state.originTooltip,n,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"===typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var r=this.props,n=r.multiline,o=r.getContent,i=e.currentTarget.getAttribute("data-tip"),s=e.currentTarget.getAttribute("data-multiline")||n||!1,a=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=a?"solid":this.getEffect(e.currentTarget),d=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},p=XO(e,e.currentTarget,this.tooltipRef,u,u,c,d);p.position&&this.props.overridePosition&&(p.position=this.props.overridePosition(p.position,e,e.currentTarget,this.tooltipRef,u,u,c,d));var h=p.isNewState?p.newState.place:u;this.clearTimer();var f=e.currentTarget,m=this.state.show?f.getAttribute("data-delay-update")||this.props.delayUpdate:0,g=this,v=function(){g.setState({originTooltip:i,isMultiline:s,desiredPlace:u,place:h,type:f.getAttribute("data-type")||g.props.type||"dark",customColors:{text:f.getAttribute("data-text-color")||g.props.textColor||null,background:f.getAttribute("data-background-color")||g.props.backgroundColor||null,border:f.getAttribute("data-border-color")||g.props.borderColor||null,arrow:f.getAttribute("data-arrow-color")||g.props.arrowColor||null},effect:c,offset:d,html:(f.getAttribute("data-html")?"true"===f.getAttribute("data-html"):g.props.html)||!1,delayShow:f.getAttribute("data-delay-show")||g.props.delayShow||0,delayHide:f.getAttribute("data-delay-hide")||g.props.delayHide||0,delayUpdate:f.getAttribute("data-delay-update")||g.props.delayUpdate||0,border:(f.getAttribute("data-border")?"true"===f.getAttribute("data-border"):g.props.border)||!1,extraClass:f.getAttribute("data-class")||g.props.class||g.props.className||"",disable:(f.getAttribute("data-tip-disable")?"true"===f.getAttribute("data-tip-disable"):g.props.disable)||!1,currentTarget:f},(function(){l&&g.addScrollListener(g.state.currentTarget),g.updateTooltip(e),o&&Array.isArray(o)&&(g.intervalUpdateContent=setInterval((function(){if(g.mount){var e=g.props.getContent,t=nT(i,"",e[0](),s),r=g.isEmptyTip(t);g.setState({isEmptyTip:r}),g.updatePosition()}}),o[1]))}))};m?this.delayReshow=setTimeout(v,m):v()}}},{key:"updateTooltip",value:function(e){var t=this,r=this.state,n=r.delayShow,o=r.disable,i=this.props.afterShow,s=this.getTooltipContent(),a=parseInt(n,10),l=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(s)&&!o){var u=function(){if(Array.isArray(s)&&s.length>0||s){var r=!t.state.show;t.setState({currentEvent:e,currentTarget:l,show:!0},(function(){t.updatePosition(),r&&i&&i(e)}))}};clearTimeout(this.delayShowLoop),n?this.delayShowLoop=setTimeout(u,a):u()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,i=n.isScroll?0:this.state.delayHide,s=this.props.afterHide,a=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(a)&&!o){if(t&&(!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget}))||!this.state.show))return;var l=function(){var t=r.state.show;r.mouseOnToolTip()?r.listenForTooltipExit():(r.removeListenerForTooltipExit(),r.setState({show:!1},(function(){r.removeScrollListener(r.state.currentTarget),t&&s&&s(e)})))};this.clearTimer(),i?this.delayHideLoop=setTimeout(l,parseInt(i,10)):l()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(){var e=this,t=this.state,r=t.currentEvent,n=t.currentTarget,o=t.place,i=t.desiredPlace,s=t.effect,a=t.offset,l=this.tooltipRef,u=XO(r,n,l,o,i,s,a);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,r,n,l,o,i,s,a)),u.isNewState)return this.setState(u.newState,(function(){e.updatePosition()}));l.style.left=u.position.left+"px",l.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,r=this.state,n=r.extraClass,o=r.html,s=r.ariaProps,a=r.disable,l=this.getTooltipContent(),u=this.isEmptyTip(l),c=cT(this.state.uuid,this.state.customColors,this.state.type,this.state.border),d="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||a||u?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),p=this.props.wrapper;t.supportedWrappers.indexOf(p)<0&&(p=t.defaultProps.wrapper);var h=[d,n].filter(Boolean).join(" ");if(o){var f="".concat(l,"\n<style>").concat(c,"</style>");return i.createElement(p,LO({className:"".concat(h),id:this.props.id,ref:function(t){return e.tooltipRef=t}},s,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:f}}))}return i.createElement(p,LO({className:"".concat(h),id:this.props.id},s,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),i.createElement("style",{dangerouslySetInnerHTML:{__html:c}}),l)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.ariaProps,n=oT(e);return Object.keys(n).some((function(e){return n[e]!==r[e]}))?zO({},t,{ariaProps:n}):null}}]),t}(i.Component),DO(aT,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),DO(aT,"supportedWrappers",["div","span"]),DO(aT,"displayName","ReactTooltip"),(dT=sT=lT).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var r=new t((function(t){for(var r=0;r<t.length;r++)for(var n=t[r],o=0;o<n.removedNodes.length;o++)if(n.removedNodes[o]===e.state.currentTarget)return void e.hideTooltip()}));r.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=r}},sT=void(dT.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||sT))||sT)||sT)||sT)||sT)||sT)||sT;const hT=pT;class fT extends i.Component{constructor(e){super(e),this.state={image_file:"",image_file_description:"",image_file_name:"Choose a file",imageFileValid:!0,imageFileDescriptionValid:!0,uploadPercentage:0},this.handleImageFileChange=e=>{let{target:{files:t}}=e;if(t[0]){let e=t[0].name;this.props.onFileChange(this.props.imageType,this.props.id).then((()=>{""!==e&&this.setState({image_file:t[0],image_file_name:e,imageFileValid:!0},(()=>{let e=new FormData;e.append("file",t[0]);const r={headers:{Authorization:"Bearer "+JSON.parse(localStorage.getItem("info")).groups_token,"Content-Type":"multipart/form-data"},onUploadProgress:e=>{const{loaded:t,total:r}=e;let n=Math.floor(100*t/r);n<100&&this.setState({uploadPercentage:n})}};_u().post("https://ingest.api.hubmapconsortium.org/file-upload",e,r).then((e=>{console.log("handleImageFileChange",e.data),this.setState({uploadPercentage:100},(()=>{setTimeout((()=>{this.setState({uploadPercentage:0})}),1e3)})),this.setState({temp_file_id:e.data.temp_file_id})}))}))})).catch((()=>{this.setState({image_file:t[0],image_file_name:e,imageFileValid:!1,temp_file_id:""})}))}},this.handleImageFileDescriptionChange=e=>{let t=e.target.value;""!==t.trim()?this.setState({image_file_description:t,imageFileDescriptionValid:!0}):this.setState({image_file_description:t,imageFileDescriptionValid:!1})},this.validate=()=>{""===this.state.image_file&&this.setState({imageFileValid:!1}),""===this.state.image_file_description&&this.setState({imageFileDescriptionValid:!1})},this.image_file=i.createRef(),this.image_file_description=i.createRef()}componentDidMount(){this.setState({image_file_name:this.props.file_name||"Choose a file",image_file_description:this.props.description||"",image_file:"",temp_file_id:""})}render(){const{uploadPercentage:e}=this.state;return(0,Ne.jsx)("div",{className:"card mt-4",children:(0,Ne.jsxs)("div",{className:"card-body",children:[(0,Ne.jsxs)("div",{className:"row",children:[!this.props.readOnly&&(0,Ne.jsx)("div",{className:"col-sm-3",children:(0,Ne.jsxs)("h5",{children:[(0,Ne.jsx)(bo,{icon:_o})," Image ",this.props.id]})}),!this.props.readOnly&&(0,Ne.jsxs)("div",{className:"col   text-right",children:[(0,Ne.jsx)("button",{type:"button",className:"btn btn-danger btn-sm",onClick:()=>this.props.onDelete(this.props.id),"data-tip":!0,"data-for":"remove_image_tooltip",style:{float:"right"},children:(0,Ne.jsx)(bo,{icon:zo,size:"1x"})}),(0,Ne.jsx)(hT,{id:"remove_image_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Click here to remove this image"})})]})]}),(0,Ne.jsxs)("div",{className:"form-group row",children:[!this.props.readOnly&&(0,Ne.jsx)("div",{className:"col-sm-9",children:(0,Ne.jsx)("div",{className:"input-group mb-3",children:(0,Ne.jsxs)("div",{className:"custom-file",children:[(0,Ne.jsx)("input",{type:"file",className:"custom-file-input "+(this.state.imageFileValid?"":"is-invalid"),name:"image_file_"+this.props.id,id:"image_file_"+ +this.props.id,onChange:this.handleImageFileChange,ref:this.image_file,disabled:""!==this.state.image_file_name&&"Choose a file"!==this.state.image_file_name}),(0,Ne.jsx)("label",{className:"custom-file-label",htmlFor:"metadata",children:this.state.image_file_name})]})})}),this.props.readOnly&&(0,Ne.jsx)("div",{className:"col-sm-9 col-form-label",children:(0,Ne.jsx)("p",{children:this.state.image_file_name})})]}),e>0&&(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-sm-12 pb-5",children:(0,Ne.jsx)("div",{className:"progress w-100",children:(0,Ne.jsxs)("div",{className:"progress-bar progress-bar-striped progress-bar-animated",role:"progressbar","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100",style:{width:`${e}%`},children:[e,"%"]})})})}),(0,Ne.jsxs)("div",{className:"row",children:[!this.props.readOnly&&this.props.show_description&&(0,Ne.jsx)("div",{className:"col-sm-12",children:(0,Ne.jsx)("textarea",{type:"text",cols:"30",rows:"5",name:"image_file_description_"+this.props.id,id:"image_file_description_"+this.props.id,className:"form-control "+(this.state.imageFileDescriptionValid?"":"is-invalid"),placeholder:"Image description",onChange:this.handleImageFileDescriptionChange,ref:this.image_file_description,value:this.state.image_file_description})}),this.props.readOnly&&(0,Ne.jsxs)("div",{className:"col-sm-9 col-form-label",children:[(0,Ne.jsx)(bo,{icon:_o,size:"2x"})," ",this.state.image_file_name,(0,Ne.jsx)("p",{children:(0,Ne.jsx)("small",{children:this.state.image_file_description})})]})]}),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-sm-6 offset-sm-3",children:(0,Ne.jsx)("span",{className:"text-danger",children:this.props.error})})})]})})}}const mT=fT;function gT(e){if("string"===typeof e)return""!==e.trim();if("object"===typeof e){if(void 0===e.name)return!(e.length<=0);if(e.name)return""!==e.name.trim()}}function vT(e){if(void 0===e||""===e)return!0;return/^(http(s)?:\/\/)?dx\.doi\.org\/10\.17504\/protocols\.io\..+/.test(e)||/^(http(s)?:\/\/)?doi\.org\/10\.17504\/protocols\.io\..+/.test(e)}function bT(e){if(void 0===e||""===e)return!0;if(e.includes(","))return!1;let t=e.split("doi.org").length-1;return console.log("validateSingleProtocolIODOI",t),!(t>1)}class yT extends i.Component{constructor(){super(...arguments),this.state={}}render(){return(0,Ne.jsx)(De,{show:this.props.show,handleClose:this.props.handleClose,children:(0,Ne.jsxs)("ol",{className:"text-left",children:[(0,Ne.jsx)("li",{children:"Names."}),(0,Ne.jsxs)("li",{children:["All geographic subdivisions smaller than a state, including street address, city, county, precinct, ZIP Code, and their equivalent geographical codes, except for the initial three digits of a ZIP Code if, according to the current publicly available data from the Bureau of the Census:",(0,Ne.jsxs)("ol",{type:"a",children:[(0,Ne.jsx)("li",{children:"The geographic unit formed by combining all ZIP Codes with the same three initial digits contains more than 20,000 people."}),(0,Ne.jsx)("li",{children:"The initial three digits of a ZIP Code for all such geographic units containing 20,000 or fewer people are changed to 000."})]})]}),(0,Ne.jsx)("li",{children:"All elements of dates (except year) for dates directly related to an individual, including birth date, admission date, discharge date, date of death; and all ages over 89 and all elements of dates (including year) indicative of such age, except that such ages and elements may be aggregated into a single category of age 90 or older."}),(0,Ne.jsx)("li",{children:"Telephone numbers."}),(0,Ne.jsx)("li",{children:"Facsimile numbers."}),(0,Ne.jsx)("li",{children:"Electronic mail addresses."}),(0,Ne.jsx)("li",{children:"Social security numbers."}),(0,Ne.jsx)("li",{children:"Medical record numbers."}),(0,Ne.jsx)("li",{children:"Health plan beneficiary numbers."}),(0,Ne.jsx)("li",{children:"Account numbers."}),(0,Ne.jsx)("li",{children:"Certificate/license numbers."}),(0,Ne.jsx)("li",{children:"Vehicle identifiers and serial numbers, including license plate numbers."}),(0,Ne.jsx)("li",{children:"Device identifiers and serial numbers."}),(0,Ne.jsx)("li",{children:"Web universal resource locators (URLs)."}),(0,Ne.jsx)("li",{children:"Internet protocol (IP) address numbers."}),(0,Ne.jsx)("li",{children:"Biometric identifiers, including fingerprints and voiceprints."}),(0,Ne.jsx)("li",{children:"Full-face photographic images and any comparable images."}),(0,Ne.jsx)("li",{children:"Any other unique identifying number, characteristic, or code, unless otherwise permitted by the Privacy Rule for re-identification."})]})})}}const xT=yT;var wT=i.forwardRef((function(e,t){var r=e.disableSpacing,n=void 0!==r&&r,o=e.classes,s=e.className,a=(0,gs.A)(e,["disableSpacing","classes","className"]);return i.createElement("div",(0,Ft.A)({className:(0,vs.A)(o.root,s,!n&&o.spacing),ref:t},a))}));const _T=(0,ys.A)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(wT);class ST extends i.Component{constructor(){super(...arguments),this.state={groups:[]}}UNSAFE_componentWillReceiveProps(e){this.setState({groups:e.groups})}render(){return(0,Ne.jsxs)(vO,{"aria-labelledby":"group-dialog",open:this.props.show,children:[(0,Ne.jsx)(yO,{children:(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-sm-12",children:(0,Ne.jsx)("div",{className:"card text-center",children:(0,Ne.jsxs)("div",{className:"card-body",children:[(0,Ne.jsx)("h5",{className:"card-title",children:"You currently have multiple group assignments, Please select a primary group for submission"}),(0,Ne.jsx)("div",{className:"form-group row",children:(0,Ne.jsx)("div",{className:"col-sm-6 offset-sm-3",children:(0,Ne.jsx)("select",{name:"groups",id:"groups",className:"form-control",onChange:this.props.handleInputChange,children:this.state.groups.filter((e=>e.data_provider)).map((e=>(0,Ne.jsx)("option",{id:e.uuid,value:e.uuid,children:e.displayname},e.name)))})})})]})})})})}),(0,Ne.jsxs)(_T,{children:[(0,Ne.jsx)(HE,{className:"btn btn-primary mr-1",onClick:this.props.submit,children:"Submit"}),(0,Ne.jsx)(HE,{variant:"outlined",onClick:this.props.hide,children:"Cancel"})]})]})}}const AT=ST;class CT extends i.Component{constructor(e){super(e),this.state={form_id:Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),lab:"",lab_donor_id:"",identifying_name:"",protocol_url:"",protocol_file:"",description:"",metadata_file:"",show:!1,readOnly:!1,GroupSelectShow:!1,images:[],new_images:[],deleted_images:[],groups:[],groups_dataprovider:[],selected_group:null,formErrors:{lab:"",lab_donor_id:"",identifying_name:"",protocol_url:"",description:"",images:""}},this.handleInputChange=e=>{const{name:t,value:r}=e.target;switch(t){case"lab":this.setState({lab:r}),gT(r)?this.setState((e=>({formErrors:{...e.formErrors,lab:""}}))):this.setState((e=>({formErrors:{...e.formErrors,lab:"required"}})));break;case"lab_donor_id":this.setState({lab_donor_id:r});break;case"identifying_name":this.setState({identifying_name:r}),gT(r)?this.setState((e=>({formErrors:{...e.formErrors,identifying_name:""}}))):this.setState((e=>({formErrors:{...e.formErrors,identifying_name:"required"}})));break;case"protocol_url":this.setState({protocol_url:r}),vT(r)?bT(r)?this.setState((e=>({formErrors:{...e.formErrors,protocol_url:""}}))):this.setState((e=>({formErrors:{...e.formErrors,protocol_url:"Please enter only one valid protocols.io DOI"}}))):this.setState((e=>({formErrors:{...e.formErrors,protocol_url:"Please enter a valid protocols.io DOI"}})));break;case"description":this.setState({description:r});break;case"groups":this.setState({selected_group:r})}},this.handleAddImage=()=>{let e=1;this.state.images.length>0&&(e=this.state.images[this.state.images.length-1].id+1),this.setState({images:[...this.state.images,{id:e,ref:i.createRef()}]})},this.handleDeleteImage=e=>{const t=this.state.images.find((t=>t.id===e)),r=this.state.new_images.filter((e=>e!==t.file_name));let n=[...this.state.deleted_images];r.length===this.state.new_images.length&&n.push(t.file_uuid);const o=this.state.images.filter((t=>t.id!==e));this.setState({images:o,new_images:r,deleted_images:n})},this.onFileChange=(e,t)=>{if("image"===e){const e=this.state.images.findIndex((e=>e.id===t));let r=[...this.state.images];r[e].file_name=r[e].ref.current.image_file.current.files[0].name;let n=[...this.state.new_images];return n.push(r[e].file_name),new Promise(((o,i)=>{this.setState({images:r,new_images:n},(()=>{this.validateImagesFiles(t)?(this.setState({new_images:n}),o()):(r[e].file_name="",this.setState({images:r}),i())}))}))}},this.validateImagesFiles=e=>{const t=this.state.images.map((e=>e.file_name));if(t.length>new Set(t).size){const t=this.state.images.findIndex((t=>t.id===e));let r=[...this.state.images];return r[t].error="Duplicate file name is not allowed.",this.setState({images:r}),!1}return!0},this.handleSubmit=e=>{if(e.preventDefault(),this.isFormValid())if(!this.props.editingEntity&&this.state.groups.length>1&&!this.state.GroupSelectShow)this.setState({GroupSelectShow:!0});else{this.setState({GroupSelectShow:!1,submitting:!0});let e={lab_donor_id:this.state.lab_donor_id,label:this.state.identifying_name,protocol_url:this.state.protocol_url,description:this.state.description};if(this.state.images.length>0){let t=[],r=[];this.state.images.forEach((e=>{""!==e.ref.current.state.temp_file_id?t.push({temp_file_id:e.ref.current.state.temp_file_id,description:e.ref.current.image_file_description.current.value.replace(/["\\]/g,"\\$&")}):r.push({file_uuid:e.file_uuid,description:e.ref.current.image_file_description.current.value.replace(/["\\]/g,"\\$&")})})),t.length>0&&(e.image_files_to_add=t),r.length>0&&(e.image_files=r)}this.state.deleted_images.length>0&&(e.image_files_to_remove=this.state.deleted_images),this.props.editingEntity?xd(this.props.editingEntity.uuid,JSON.stringify(e),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{200===e.status?this.props.onUpdated(e.results):this.setState({submit_error:!0,submitting:!1})})):(this.state.selected_group&&this.state.selected_group.length>0?e.group_uuid=this.state.selected_group:e.group_uuid=this.state.groups_dataprovider[0].uuid,wd("donor",JSON.stringify(e),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{200===e.status?this.props.onCreated({new_samples:[],entity:e.results}):this.setState({submit_error:!0,submitting:!1})})))}},this.showModal=()=>{this.setState({show:!0})},this.hideModal=()=>{this.setState({show:!1})},this.hideGroupSelectModal=()=>{this.setState({GroupSelectShow:!1})},this.protocol_url=i.createRef()}UNSAFE_componentWillMount(){if(zc(JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(200===e.status){const t=(e.results&&e.results.length>0?e.results:e.data&&e.data.length>0?e.data.groups:e.groups).filter((e=>!0===e.data_provider));this.setState({groups:t,groups_dataprovider:t},(()=>{}))}else 401===e.status&&(localStorage.setItem("isAuthenticated",!1),window.location.reload())})),this.props.editingEntity){let e=this.props.editingEntity.image_files;this.setState({author:this.props.editingEntity.created_by_user_email,lab_donor_id:this.props.editingEntity.lab_donor_id,identifying_name:this.props.editingEntity.label,protocol_url:this.props.editingEntity.protocol_url,description:this.props.editingEntity.description});const t=[];try{e.forEach(((e,r)=>{t.push({id:r+1,ref:i.createRef(),file_name:e.filename,description:e.description,file_uuid:e.file_uuid})}))}catch{}this.setState({images:t})}try{Uc(this.props.editingEntity.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(200===e.status){const t=!e.results.has_write_priv;this.setState({readOnly:t})}}))}catch{}}errorClass(e){return 0===e.length?"":"is-invalid"}renderButtons(){return this.props.editingEntity?this.state.readOnly?(0,Ne.jsx)("div",{className:"col-sm-12 text-right pads",children:(0,Ne.jsx)(HE,{type:"button",variant:"outlined",onClick:()=>this.props.handleCancel(),children:"Cancel"})}):(0,Ne.jsxs)("div",{className:"col-md-12 text-right pads",children:[(0,Ne.jsxs)(HE,{type:"submit",className:"btn btn-primary mr-1",disabled:this.state.submitting,children:[this.state.submitting&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.submitting&&"Update"]}),(0,Ne.jsx)(HE,{type:"button",variant:"outlined",onClick:()=>this.props.handleCancel(),children:"Cancel"})]}):(0,Ne.jsxs)("div",{className:"col-md-12 text-right pads",children:[(0,Ne.jsxs)(HE,{type:"submit",className:"btn btn-primary mr-1",variant:"contained",disabled:this.state.submitting,children:[this.state.submitting&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.submitting&&"Generate ID"]}),(0,Ne.jsx)(HE,{type:"button",variant:"outlined",onClick:()=>this.props.handleCancel(),children:"Cancel"})]})}isFormValid(){let e=!0;gT(this.state.identifying_name)?this.setState((e=>({formErrors:{...e.formErrors,identifying_name:""}}))):(this.setState((e=>({formErrors:{...e.formErrors,identifying_name:"required"}}))),e=!1),gT(this.state.protocol_url)?vT(this.state.protocol_url)?bT(this.state.protocol_url)?this.setState((e=>({formErrors:{...e.formErrors,protocol_url:""}}))):(e=!1,this.setState((e=>({formErrors:{...e.formErrors,protocol_url:"Please enter only one valid protocols.io URL"}})))):(e=!1,this.setState((e=>({formErrors:{...e.formErrors,protocol_url:"Please enter a valid protocols.io URL"}})))):(e=!1,this.setState((e=>({formErrors:{...e.formErrors,protocol_url:"required"}})))),this.state.images.forEach(((t,r)=>{t.file_name||gT(t.ref.current.image_file.current.value)||(e=!1,t.ref.current.validate()),gT(t.ref.current.image_file_description.current.value)||(e=!1,t.ref.current.validate())}));return new Set(this.state.images).size!==this.state.images.length&&(e=!1),e}renderButtonBar(){return(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)("div",{className:"col-sm-12 align-right",children:(0,Ne.jsx)(kO,{})}),(0,Ne.jsx)(mr,{sx:{width:"100%",justifyContent:"flex-end",display:"flex","& > *":{m:1},button:{m:1,align:"right",float:"right"}},children:(0,Ne.jsx)(AO,{component:mr,display:"block !important",orientation:"horizontal",children:this.renderButtons()})})]})}render(){return(0,Ne.jsxs)(i.Fragment,{children:[this.props.editingEntity&&"public"===this.props.editingEntity.data_access_level&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{className:"alert alert-warning text-center",role:"alert",children:"This entity is no longer editable. It was locked when it became publicly accessible when data associated with it was published."})}),!this.props.editingEntity&&(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-sm-12 text-center",children:(0,Ne.jsx)("h4",{children:"Registering a Donor"})})}),this.props.editingEntity&&(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-sm-12 text-center",children:(0,Ne.jsx)("h4",{children:"Donor Information"})})}),(0,Ne.jsxs)("div",{className:"alert alert-danger col-sm-10 offset-sm-1",role:"alert",children:[(0,Ne.jsx)(bo,{icon:Do})," - Do not provide any Protected Health Information. This includes the"," ",(0,Ne.jsx)("span",{style:{cursor:"pointer"},className:"text-primary",onClick:this.showModal,children:"18 identifiers specified by HIPAA"})]}),this.props.editingEntity&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsxs)("div",{className:"col-sm-5 offset-sm-1 portal-label",children:["HuBMAP ID: ",this.props.editingEntity.hubmap_id]}),(0,Ne.jsxs)("div",{className:"col-sm-5 text-right portal-label",children:["Submission ID: ",this.props.editingEntity.submission_id]}),(0,Ne.jsxs)("div",{className:"col-sm-5 offset-sm-1 portal-label",children:["Entered by: ",this.state.author]}),(0,Ne.jsxs)("div",{className:"col-sm-5 text-right portal-label",children:["Entry Date: ",jc(this.props.editingEntity.created_timestamp)]})]})}),(0,Ne.jsxs)("form",{onSubmit:this.handleSubmit,className:"expanded-form",children:[(0,Ne.jsx)("div",{className:"text-danger",children:(0,Ne.jsx)("p",{children:"* required"})}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsx)("label",{htmlFor:"lab_donor_id",children:"Lab's Donor Non-PHI ID"}),(0,Ne.jsx)("span",{className:"px-2",children:(0,Ne.jsx)(bo,{className:"text-danger",icon:Do})}),(0,Ne.jsxs)("span",{children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"lab_donor_id_tooltip"}),(0,Ne.jsx)(hT,{id:"lab_donor_id_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsxs)("p",{children:["An identifier used by the lab to identify the donor."," ",(0,Ne.jsx)("br",{})," This field will be entered by the user."]})})]}),!this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",name:"lab_donor_id",id:"lab_donor_id",className:"form-control "+this.errorClass(this.state.formErrors.lab_donor_id),onChange:this.handleInputChange,value:this.state.lab_donor_id,placeholder:"An non-PHI id used by the lab when referring to the donor."})}),this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",readOnly:!0,className:"form-control",id:"static_lab_donor_id",value:this.state.lab_donor_id})})]}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"identifying_name",children:["Deidentified Name ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),(0,Ne.jsx)("span",{className:"text-danger px-2",children:(0,Ne.jsx)(bo,{icon:Do})}),(0,Ne.jsxs)("span",{children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"identifying_name_tooltip"}),(0,Ne.jsx)(hT,{id:"identifying_name_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"A name used by the lab to identify the donor (e.g. HuBMAP donor 1)."})})]}),!this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",name:"identifying_name",id:"identifying_name",className:"form-control "+this.errorClass(this.state.formErrors.identifying_name),onChange:this.handleInputChange,value:this.state.identifying_name,placeholder:"A deidentified name used by the lab to identify the donor (e.g. HuBMAP Donor 1)"})}),this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",readOnly:!0,className:"form-control",id:"static_identifying_name",value:this.state.identifying_name})})]}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"protocol_url",children:["Case Selection Protocol ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),(0,Ne.jsx)("span",{className:"text-danger px-2",children:(0,Ne.jsx)(bo,{icon:Do})}),(0,Ne.jsxs)("span",{children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"protocol_tooltip"}),(0,Ne.jsx)(hT,{id:"protocol_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsxs)("p",{children:["The protocol used when choosing and acquiring the donor.",(0,Ne.jsx)("br",{}),"This can be supplied a DOI from http://protocols.io"]})})]}),!this.state.readOnly&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)("input",{ref:this.protocol_url,type:"text",name:"protocol_url",id:"protocol_url",className:"form-control "+this.errorClass(this.state.formErrors.protocol_url),onChange:this.handleInputChange,value:this.state.protocol_url,placeholder:"protocols.io DOI"}),this.state.formErrors.protocol_url&&"required"!==this.state.formErrors.protocol_url&&(0,Ne.jsx)("div",{className:"invalid-feedback",children:this.state.formErrors.protocol_url})]}),this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",readOnly:!0,className:"form-control",id:"static_protocol",value:this.state.protocol_url})})]}),(!this.state.readOnly||void 0!==this.state.description)&&(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"description",children:["Description",(0,Ne.jsx)("span",{className:"invisible text-danger inline-icon",children:(0,Ne.jsx)(bo,{icon:Ao})}),(0,Ne.jsxs)("span",{children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"description_tooltip"}),(0,Ne.jsx)(hT,{id:"description_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Free text field to enter a description of the donor"})})]})]}),!this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("textarea",{type:"text",name:"description",id:"description",className:"form-control",onChange:this.handleInputChange,value:this.state.description})}),this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",readOnly:!0,className:"form-control",id:"static_description",value:this.state.description})})]}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsx)("label",{htmlFor:"donor_metadata_status",className:"col-form-label text-right",children:"Donor Metadata Status"}),(0,Ne.jsxs)("div",{className:"col-sm-8 my-auto",children:[this.state.donor_metadata_status||(0,Ne.jsx)("span",{className:"badge badge-neutral",children:"No value set"}),0===this.state.donor_metadata_status&&(0,Ne.jsx)("span",{className:"badge badge-secondary",children:"No metadata"}),1===this.state.donor_metadata_status&&(0,Ne.jsx)("span",{className:"badge badge-primary",children:"Metadata provided"}),2===this.state.donor_metadata_status&&(0,Ne.jsx)("span",{className:"badge badge-primary",children:"Metadata curated"})]})]}),(!this.state.readOnly||this.state.images.length>0)&&(0,Ne.jsxs)("div",{className:"form-group",children:[this.state.images.length>0&&this.props.editingEntity&&(0,Ne.jsxs)("div",{className:"m-1",children:[(0,Ne.jsx)(bo,{icon:jo})," Attached Image(s)"]}),(0,Ne.jsxs)("div",{children:[!this.state.readOnly&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsxs)(HE,{type:"button",onClick:this.handleAddImage,variant:"outlined","data-tip":!0,"data-for":"add_image_tooltip",sx:{mr:1},children:[(0,Ne.jsx)(bo,{className:"inline-icon",icon:Ro,title:"Uploaded images (multiple allowed)."}),"Add an Image File"]}),(0,Ne.jsxs)("small",{id:"emailHelp",className:"form-text text-muted",children:[(0,Ne.jsx)("span",{className:"text-danger inline-icon",children:(0,Ne.jsx)(bo,{icon:Do})})," Upload de-identified images only"]}),(0,Ne.jsx)(hT,{id:"add_image_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Click here to attach a single or multiple image(s)"})})]}),this.state.images.map((e=>(0,Ne.jsx)(mT,{id:e.id,file_name:e.file_name,description:e.description,ref:e.ref,error:e.error,readOnly:this.state.readOnly,formId:this.state.form_id,onFileChange:this.onFileChange,validate:this.validateImagesFiles,onDelete:this.handleDeleteImage,imageType:"image",show_description:!0},e.id)))]})]}),this.state.submit_error&&(0,Ne.jsx)("div",{className:"alert alert-danger col-sm-12",role:"alert",children:"Oops! Something went wrong. Please contact administrator for help."}),(0,Ne.jsx)("div",{className:"row",children:this.renderButtonBar()}),this.props.editingEntity&&"public"===this.props.editingEntity.data_access_level&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{className:"alert alert-warning text-center",role:"alert",children:"This entity is no longer editable. It was locked when it became publicly accessible when data associated with it was published."})})]}),(0,Ne.jsx)(xT,{show:this.state.show,handleClose:this.hideModal}),(0,Ne.jsx)(AT,{show:this.state.GroupSelectShow,hide:this.hideGroupSelectModal,groups:this.state.groups,submit:this.handleSubmit,handleInputChange:this.handleInputChange})]})}}const kT=CT;var ET=r(6369),RT=r(3893),jT=r(7800),OT=r(6562);r(2086);var TT=i.forwardRef((function(e,t){var r=e.children,n=e.classes,o=e.className,s=e.collapsedHeight,a=e.collapsedSize,l=void 0===a?"0px":a,u=e.component,c=void 0===u?"div":u,d=e.disableStrictModeCompat,p=void 0!==d&&d,h=e.in,f=e.onEnter,m=e.onEntered,g=e.onEntering,v=e.onExit,b=e.onExited,y=e.onExiting,x=e.style,w=e.timeout,_=void 0===w?aO.p0.standard:w,S=e.TransitionComponent,A=void 0===S?ei:S,C=(0,gs.A)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),k=Vl(),E=i.useRef(),R=i.useRef(null),j=i.useRef(),O="number"===typeof(s||l)?"".concat(s||l,"px"):s||l;i.useEffect((function(){return function(){clearTimeout(E.current)}}),[]);var T=k.unstable_strictMode&&!p,I=i.useRef(null),P=(0,Rs.A)(t,T?I:void 0),N=function(e){return function(t,r){if(e){var n=T?[I.current,t]:[t,r],o=(0,et.A)(n,2),i=o[0],s=o[1];void 0===s?e(i):e(i,s)}}},M=N((function(e,t){e.style.height=O,f&&f(e,t)})),D=N((function(e,t){var r=R.current?R.current.clientHeight:0,n=uO({style:x,timeout:_},{mode:"enter"}).duration;if("auto"===_){var o=k.transitions.getAutoHeightDuration(r);e.style.transitionDuration="".concat(o,"ms"),j.current=o}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height="".concat(r,"px"),g&&g(e,t)})),L=N((function(e,t){e.style.height="auto",m&&m(e,t)})),F=N((function(e){var t=R.current?R.current.clientHeight:0;e.style.height="".concat(t,"px"),v&&v(e)})),z=N(b),B=N((function(e){var t=R.current?R.current.clientHeight:0,r=uO({style:x,timeout:_},{mode:"exit"}).duration;if("auto"===_){var n=k.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),j.current=n}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height=O,y&&y(e)}));return i.createElement(A,(0,Ft.A)({in:h,onEnter:M,onEntered:L,onEntering:D,onExit:F,onExited:z,onExiting:B,addEndListener:function(e,t){var r=T?e:t;"auto"===_&&(E.current=setTimeout(r,j.current||0))},nodeRef:T?I:void 0,timeout:"auto"===_?null:_},C),(function(e,t){return i.createElement(c,(0,Ft.A)({className:(0,vs.A)(n.root,n.container,o,{entered:n.entered,exited:!h&&"0px"===O&&n.hidden}[e]),style:(0,Ft.A)({minHeight:O},x),ref:P},t),i.createElement("div",{className:n.wrapper,ref:R},i.createElement("div",{className:n.wrapperInner},r)))}))}));TT.muiSupportAuto=!0;const IT=(0,ys.A)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(TT);const PT=i.createContext({});var NT=r(1051),MT=i.forwardRef((function(e,t){var r,n=e.children,o=e.classes,s=e.className,a=e.defaultExpanded,l=void 0!==a&&a,u=e.disabled,c=void 0!==u&&u,d=e.expanded,p=e.onChange,h=e.square,f=void 0!==h&&h,m=e.TransitionComponent,g=void 0===m?IT:m,v=e.TransitionProps,b=(0,gs.A)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),y=(0,NT.A)({controlled:d,default:l,name:"Accordion",state:"expanded"}),x=(0,et.A)(y,2),w=x[0],_=x[1],S=i.useCallback((function(e){_(!w),p&&p(e,!w)}),[w,p,_]),A=i.Children.toArray(n),C=(r=A,(0,ET.A)(r)||(0,RT.A)(r)||(0,jT.A)(r)||(0,OT.A)()),k=C[0],E=C.slice(1),R=i.useMemo((function(){return{expanded:w,disabled:c,toggle:S}}),[w,c,S]);return i.createElement(ws,(0,Ft.A)({className:(0,vs.A)(o.root,s,w&&o.expanded,c&&o.disabled,!f&&o.rounded),ref:t,square:f},b),i.createElement(PT.Provider,{value:R},k),i.createElement(g,(0,Ft.A)({in:w,timeout:"auto"},v),i.createElement("div",{"aria-labelledby":k.props.id,id:k.props["aria-controls"],role:"region"},E)))}));const DT=(0,ys.A)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(MT);var LT=i.forwardRef((function(e,t){var r=e.children,n=e.classes,o=e.className,s=e.expandIcon,a=e.focusVisibleClassName,l=e.IconButtonProps,u=void 0===l?{}:l,c=e.onClick,d=(0,gs.A)(e,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),p=i.useContext(PT),h=p.disabled,f=void 0!==h&&h,m=p.expanded,g=p.toggle;return i.createElement(Ls,(0,Ft.A)({focusRipple:!1,disableRipple:!0,disabled:f,component:"div","aria-expanded":m,className:(0,vs.A)(n.root,o,f&&n.disabled,m&&n.expanded),focusVisibleClassName:(0,vs.A)(n.focusVisible,n.focused,a),onClick:function(e){g&&g(e),c&&c(e)},ref:t},d),i.createElement("div",{className:(0,vs.A)(n.content,m&&n.expanded)},r),s&&i.createElement(Bs,(0,Ft.A)({className:(0,vs.A)(n.expandIcon,m&&n.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},u),s))}));const FT=(0,ys.A)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(LT);var zT=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=(0,gs.A)(e,["classes","className"]);return i.createElement("div",(0,Ft.A)({className:(0,vs.A)(r.root,n),ref:t},o))}));const BT=(0,ys.A)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(zT);function $T(e){return(0,qt.Ay)("MuiDialogActions",e)}(0,Vt.A)("MuiDialogActions",["root","spacing"]);const HT=["className","disableSpacing"],UT=(0,Ht.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),WT=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=r,i=(0,Lt.A)(r,HT),s=(0,Ft.A)({},r,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,$t.A)(n,$T,t)})(s);return(0,Ne.jsx)(UT,(0,Ft.A)({className:(0,zt.A)(a.root,n),ownerState:s,ref:t},i))})),VT=e=>{let[t,r]=(0,i.useState)(!!e.show&&e.show);function n(){r(!t)}const o=Z();return console.log(o.pathname),(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsxs)(pu,{id:"HIPPAAlert",severity:"error",sx:{color:"rgb(97, 26, 21)",border:"1px solid #f1aeae",background:"rgb(253, 237, 237)!important"},iconMapping:{error:(0,Ne.jsx)(bo,{sx:{fontSize:"3em"},icon:Do})},children:["Do not provide any Protected Health Information. This includes the",(0,Ne.jsxs)("span",{style:{cursor:"pointer"},className:"text-primary",onClick:()=>n(),children:[" ","18 identifiers specified by HIPAA"]})]}),(0,Ne.jsxs)(Ka,{open:t,fullWidth:!0,maxWidth:"md","aria-labelledby":"HIPPA Identifiers","aria-describedby":"HIPPA Identifiers",children:[(0,Ne.jsx)(ol,{sx:{background:"rgb(253, 237, 237)",color:"rgb(95, 33, 32)"},children:(0,Ne.jsxs)(Yt,{id:"Dialog-title",children:[(0,Ne.jsx)(bo,{sx:{fontSize:"3em"},icon:Do}),"  18 identifiers specified by HIPAA"]})}),(0,Ne.jsx)(tl,{children:(0,Ne.jsx)(mr,{sx:{color:"rgba(0, 0, 0, 0.6)",display:"flex",flexDirection:"column",m:"auto",width:"fit-content"},children:(0,Ne.jsxs)(Rr,{container:!0,spacing:2,style:{marginTop:"10px"},children:[(0,Ne.jsx)(Rr,{item:!0,xs:12,sm:6,children:(0,Ne.jsxs)("ol",{style:{fontSize:".8em"},children:[(0,Ne.jsx)("li",{children:"Names."}),(0,Ne.jsxs)("li",{children:["All geographic subdivisions smaller than a state, including street address, city, county, precinct, ZIP Code, and their equivalent geographical codes, except for the initial three digits of a ZIP Code if, according to the current publicly available data from the Bureau of the Census:",(0,Ne.jsxs)("ol",{type:"a",children:[(0,Ne.jsx)("li",{children:"The geographic unit formed by combining all ZIP Codes with the same three initial digits contains more than 20,000 people."}),(0,Ne.jsx)("li",{children:"The initial three digits of a ZIP Code for all such geographic units containing 20,000 or fewer people are changed to 000."})]})]}),(0,Ne.jsx)("li",{children:"All elements of dates (except year) for dates directly related to an individual, including birth date, admission date, discharge date, date of death; and all ages over 89 and all elements of dates (including year) indicative of such age, except that such ages and elements may be aggregated into a single category of age 90 or older."}),(0,Ne.jsx)("li",{children:"Telephone numbers."}),(0,Ne.jsx)("li",{children:"Facsimile numbers."}),(0,Ne.jsx)("li",{children:"Electronic mail addresses."}),(0,Ne.jsx)("li",{children:"Social security numbers."})]})}),(0,Ne.jsx)(Rr,{item:!0,xs:12,sm:6,children:(0,Ne.jsxs)("ol",{start:"8",style:{fontSize:".8em"},children:[(0,Ne.jsx)("li",{children:"Medical record numbers."}),(0,Ne.jsx)("li",{children:"Health plan beneficiary numbers."}),(0,Ne.jsx)("li",{children:"Account numbers."}),(0,Ne.jsx)("li",{children:"Certificate/license numbers."}),(0,Ne.jsx)("li",{children:"Vehicle identifiers and serial numbers, including license plate numbers."}),(0,Ne.jsx)("li",{children:"Device identifiers and serial numbers."}),(0,Ne.jsx)("li",{children:"Web universal resource locators (URLs)."}),(0,Ne.jsx)("li",{children:"Internet protocol (IP) address numbers."}),(0,Ne.jsx)("li",{children:"Biometric identifiers, including fingerprints and voiceprints."}),(0,Ne.jsx)("li",{children:"Full-face photographic images and any comparable images."}),(0,Ne.jsx)("li",{children:"Any other unique identifying number, characteristic, or code, unless otherwise permitted by the Privacy Rule for re-identification."})]})})]})})}),(0,Ne.jsx)(WT,{children:(0,Ne.jsx)(HE,{onClick:()=>n(),children:"Close"})})]})]})};function qT(e){let t={};return e.forEach((e=>{Object.assign(t,e)})),t}class GT extends i.Component{constructor(e){super(e),this.state={metadata_file:"",metadata_file_name:"Choose a file",metaddata_file_uuid:"",metadataFileValid:!0,uploadPercentage:0},this.handleMetadataFileChange=e=>{let{target:{files:t}}=e;if(t[0]){const e=t[0].name;this.props.onFileChange("metadata",this.props.id).then((()=>{""!==e&&this.setState({metadata_file:t[0],metadata_file_name:e,metadataFileValid:!0},(()=>{let e=new FormData;e.append("file",t[0]);const r={headers:{Authorization:"Bearer "+JSON.parse(localStorage.getItem("info")).groups_token,"Content-Type":"multipart/form-data"},onUploadProgress:e=>{const{loaded:t,total:r}=e;let n=Math.floor(100*t/r);n<100&&this.setState({uploadPercentage:n})}};_u().post("https://ingest.api.hubmapconsortium.org/file-upload",e,r).then((e=>{console.log("handleMetadataFileChange",e.data),this.setState({uploadPercentage:100},(()=>{setTimeout((()=>{this.setState({uploadPercentage:0})}),1e3)})),this.setState({temp_file_id:e.data.temp_file_id})}))}))})).catch((()=>{this.setState({metadata_file:null,metadata_file_name:"",metadataFileValid:!1,temp_file_id:""})}))}},this.metadata_file=i.createRef()}componentDidMount(){this.setState({metadata_file_name:this.props.file_name||"Choose a file",temp_file_id:""})}render(){const{uploadPercentage:e}=this.state;return(0,Ne.jsx)("div",{className:"card mt-3 mb-3",children:(0,Ne.jsxs)("div",{className:"card-body",children:[(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsx)("div",{className:"col-sm-3",children:(0,Ne.jsxs)("h4",{children:["Metadata ",this.props.id]})}),!this.props.readOnly&&(0,Ne.jsxs)("div",{className:"col-sm-2 offset-sm-7 text-right",children:[(0,Ne.jsx)("button",{type:"button",className:"btn btn-danger btn-sm",onClick:()=>this.props.onDelete(this.props.id),"data-tip":!0,"data-for":"remove_file_tooltip",children:(0,Ne.jsx)(bo,{icon:zo,size:"1x"})}),(0,Ne.jsx)(hT,{id:"remove_file_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Click here to remove this file"})})]})]}),(0,Ne.jsxs)("div",{className:"form-group row",children:[!this.props.readOnly&&(0,Ne.jsx)("div",{className:"col-sm-9",children:(0,Ne.jsx)("div",{className:"input-group mb-3",children:(0,Ne.jsxs)("div",{className:"custom-file",children:[(0,Ne.jsx)("input",{type:"file",className:"custom-file-input "+(this.state.metadataFileValid?"":"is-invalid"),name:"metadata_file_"+this.props.id,id:"metadata_file_"+this.props.id,onChange:this.handleMetadataFileChange,ref:this.metadata_file,disabled:""!==this.state.metadata_file_name&&"Choose a file"!==this.state.metadata_file_name}),(0,Ne.jsx)("label",{className:"custom-file-label",htmlFor:"metadata",children:this.state.metadata_file_name})]})})}),this.props.readOnly&&(0,Ne.jsx)("div",{className:"col-sm-9 col-form-label",children:(0,Ne.jsx)("p",{children:this.state.metadata_file_name})})]}),e>0&&(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-sm-12",children:(0,Ne.jsx)("div",{className:"progress w-100",children:(0,Ne.jsxs)("div",{className:"progress-bar progress-bar-striped progress-bar-animated",role:"progressbar","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100",style:{width:`${e}%`},children:[e,"%"]})})})}),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-sm-6 offset-sm-3",children:(0,Ne.jsx)("span",{className:"text-danger",children:this.props.error})})})]})})}}const QT=GT;class KT extends i.Component{constructor(){super(...arguments),this.state={}}render(){const{handleClose:e,show:t}=this.props,r=t?"locmodal display-block":"locmodal display-none";return(0,Ne.jsx)("div",{className:r,children:(0,Ne.jsxs)(vO,{"aria-labelledby":"rui-info-dialog",open:t,children:[(0,Ne.jsx)("div",{children:(0,Ne.jsx)("h3",{children:"Sample Location Information"})}),(0,Ne.jsx)("div",{className:"modal-body",children:(0,Ne.jsx)("pre",{children:this.props.children})}),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-sm-12 text-center",children:(0,Ne.jsx)("button",{className:"btn btn-link",type:"button",onClick:e,children:"Close"})})})]})})}}const JT=KT;class XT extends i.Component{constructor(){super(),this.handleCloseScreenClick=e=>{this.setState({close_rui:!0})},this.state={jsonRUI:"",rui_back:!1,close_rui:!1,close_link:!0,width:1820,height:1012,mounted:!1},this.ruiRef=i.createRef()}updateDimensions(){if(window.innerWidth<1100)this.setState({width:1e3,height:647});else{const e=Math.min(window.innerWidth-50,2e3),t=Math.round(window.innerHeight-50,2e3);this.setState({width:e,height:t,margin_left:25})}}componentDidMount(){console.log("RUI...",this.props),Ic().then((e=>{this.setState({organ_types:e},(()=>{console.log(this.state.organ_types)}),(()=>{console.log("ERROR: ubkg_api_get_organ_type_set")}))})),this.updateRUIConfig(),this.updateDimensions(),window.addEventListener("resize",this.updateDimensions.bind(this)),this.setState({mounted:!0})}componentDidUpdate(){this.ruiRef.current&&this.updateRUIConfig()}componentWillUnmount(){window.removeEventListener("resize",this.updateDimensions.bind(this))}updateRUIConfig(){var e;console.debug("%c\u25c9 thisPROPS RuiInt ","color:#00ff7b",this.props);const t=Be[this.props.organ],r=this.props.organList[this.props.organ].split("("),n=r[0].toLowerCase().trim(),o=null===(e=r[1])||void 0===e?void 0:e.replace(/\(|\)/g,"").toLowerCase(),i=this.props.sex,s=this.props.user||"",a=""===this.props.location?null:JSON.parse(this.props.location),l=this,u=this.ruiRef.current;u.baseHref="https://cdn.humanatlas.io/ui/ccf-rui/",u.user={firstName:s.split(" ")[0],lastName:s.split(" ")[1]},u.organ={ontologyId:t,name:n,sex:i||"female",side:o},u.register=function(e){console.log(e),l.setState({jsonRUI:e}),l.props.handleJsonRUI(e),l.handleCloseScreenClick()},u.fetchPreviousRegistrations=function(){return[]},u.cancelRegistration=function(){u.register(l.props.location)},!a||u.editRegistration&&a["@id"]===u.editRegistration["@id"]||(u.editRegistration=a),u.useDownload=!1}render(){return(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{className:"webgl-content rui mat-typography",children:!this.state.close_rui&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{id:"unityContainer",style:{width:this.state.width,height:this.state.height,marginLeft:this.state.margin_left},children:(0,Ne.jsx)("ccf-rui",{ref:this.ruiRef})})})})})}}const YT=XT;class ZT extends i.Component{constructor(){super(...arguments),this.state={lab:"",lab_tissue_id:"",back_btn_hide:!1,param_uuid:"",protocol_url:"",entity_type:"",source_entity_type:"",specimen_type:"",specimen_type_other:"",source_uuid:"",source_uuid_list:"",sample_category:[],sample_category_library:Fe,ancestor_organ:"",LocationSaved:!1,organ:"",organ_other:"",visit:"",description:"",metadata:"",metadata_file:"",LookUpShow:!1,lookUpCancelled:!1,multiple_id:!1,RUI_ACTIVE:!0,rui_check:!1,rui_view:!1,rui_hide:!0,rui_click:!1,rui_show:!1,rui_show_btn:!1,rui_location:"",sample_count:"",protocol_file_name:"Choose a file",metadata_file_name:"Choose a file",title:"",publication_date:"",publication_doi:"",publication_url:"",publication_venue:"",volume:"",issue:"",pages_or_article_num:"",publication_status:"",show:!1,metadatas:[],images:[],thumbnail:[],related_group_ids:[],new_metadatas:[],deleted_metas:[],new_images:[],deleted_images:[],new_thumbnail:[],deleted_thumbnail:[],groups:[],groups_dataprovider:[],groups_access:[],selected_group:"",error_message_detail:"",error_message:"Oops! Something went wrong. Please contact administrator for help.",readOnly:!1,setOpen:!1,show_snack:!1,show_dirty_warning:!1,submitting:!1,GroupSelectShow:!1,snackmessage:"",isDirty:!1,formErrors:{lab:"",title:"",title_DOI:"",protocol_url:"",protocol_url_DOI:"",specimen_type:"",specimen_type_other:"",sample_category:"",organ:"",organ_other:"",visit:"",source_uuid:"",description:"",metadata:"",metadata_file:"",multiple_id:"",rui_check:"",rui_view:"",sample_count:""}},this.handleChangeSample=e=>{this.setState({loadWithin:!0}),this.props.handleChangeSamplePage(e)},this.showModal=()=>{this.setState({show:!0})},this.handleRUIJson=e=>{this.setState({rui_location:e,rui_check:!0,rui_view:!0,rui_click:!1})},this.closeSnack=(e,t)=>{"clickaway"!==t&&this.setState({show_snack:!1,show_dirty_warning:!1,snackmessage:""})},this.getID=()=>{try{return this.state.editingEntity.donor.display_doi}catch{}try{return this.state.editingEntity.direct_ancestor.hubmap_id}catch{}return"<Error Unavailable>"},this.handleCancel=()=>{this.props.handleCancel?this.props.handleCancel():window.history.back()},this.setDirty=e=>{this.setState({isDirty:e});try{this.props.handleDirty(e)}catch{}},this.snackCancel=()=>{this.setState({isDirty:!1,show_dirty_warning:!1})},this.handleInputBlur=e=>{const{name:t,value:r}=e.target;if("protocol_url"===t)vT(r)?bT(r)?this.setState((e=>({formErrors:{...e.formErrors,protocol_url:""}}))):this.setState((e=>({formErrors:{...e.formErrors,protocol_url:"Please enter only one valid protocols.io URL"}}))):this.setState((e=>({formErrors:{...e.formErrors,protocol_url:"Please enter a valid protocols.io URL"}})))},this.handleInputChange=e=>{const{name:t,value:r}=e.target;switch(this.setDirty(!0),t){case"lab":this.setState({lab:r}),gT(r)?this.setState((e=>({formErrors:{...e.formErrors,lab:"required"}}))):this.setState((e=>({formErrors:{...e.formErrors,lab:""}})));break;case"lab_tissue_id":this.setState({lab_tissue_id:r}),gT(r)?this.setState((e=>({formErrors:{...e.formErrors,lab_tissue_id:""}}))):this.setState((e=>({formErrors:{...e.formErrors,lab_tissue_id:"required"}})));break;case"rui":this.setState({rui:r}),gT(r)?this.setState((e=>({formErrors:{...e.formErrors,rui:""}}))):this.setState((e=>({formErrors:{...e.formErrors,rui:"required"}})));break;case"protocol_url":this.setState({protocol_url:r}),gT(r)?this.setState((e=>({formErrors:{...e.formErrors,protocol_url:""}}))):this.setState((e=>({formErrors:{...e.formErrors,protocol_url:"required"}})));break;case"sample_category":this.setState({sample_category:r}),"block"===r&&this.isSpecialOrganType(this.state.organ)&&this.setState({rui_show_btn:!0},(()=>{console.debug("%c\u25c9 Showin RUI Button! ","color:#00ff7b")})),gT(r)?this.setState((e=>({formErrors:{...e.formErrors,sample_category:""}}))):this.setState((e=>({formErrors:{...e.formErrors,sample_category:"required"}})));break;case"specimen_type_other":this.setState({specimen_type_other:r}),gT(r)?this.setState((e=>({formErrors:{...e.formErrors,specimen_type_other:""}}))):this.setState((e=>({formErrors:{...e.formErrors,specimen_type_other:"required"}})));break;case"organ":this.setState({organ:r}),gT(r)?"other"===r?this.setState((e=>({formErrors:{...e.formErrors,organ_other:""}}))):this.setState((e=>({organ_other:"",formErrors:{...e.formErrors,organ:""}}))):this.setState((e=>({formErrors:{...e.formErrors,organ:"required"}})));break;case"organ_other":this.setState({organ_other:r});break;case"visit":this.setState({visit:r});break;case"description":this.setState({description:r});break;case"groups":this.setState({selected_group:r});break;case"multipleID":this.setState({multiple_id:e.target.checked}),e.target.checked||this.setState({sample_count:""});break;case"sample_count":this.setState({sample_count:r})}},this.openRUIModalHandler=()=>{this.setState({rui_show:!0})},this.closeRUIModalHandler=()=>{this.setState({rui_show:!1})},this.handleAddRUILocation=e=>{console.debug("%c\u25c9 this.props.organ ","color:#00ff7b",this.props.organ),this.setState({rui_click:!0})},this.handleViewRUIClick=e=>{this.setState({rui_view:!0,rui_show:!0,rui_hide:!1})},this.handleClose=e=>{this.setState({rui_show:!1,rui_hide:!0})},this.handleSourceUUIDKeyDown=e=>{const t=e.target.value;if("Backspace"===e.key){new RegExp("^.{3}-$|^.{3}-.{4}-$").test(t)&&this.setState({source_uuid:t.substring(0,t.length-1)})}},this.onFileChange=(e,t)=>{switch(e){case"metadata":{const e=this.state.metadatas.findIndex((e=>e.id===t));let r=[...this.state.metadatas];r[e].file_name=r[e].ref.current.metadata_file.current.files[0].name;let n=[...this.state.new_metadatas];return n.push(r[e].file_name),new Promise(((o,i)=>{this.setState({metadatas:r},(()=>{this.validateMetadataFiles(t)?(this.setState({new_metadatas:n}),o()):(r[e].file_name="",this.setState({metadatas:r}),i())}))}))}case"image":{const e=this.state.images.findIndex((e=>e.id===t));let r=[...this.state.images];r[e].file_name=r[e].ref.current.image_file.current.files[0].name;let n=[...this.state.new_images];return n.push(r[e].file_name),new Promise(((o,i)=>{this.setState({images:r,new_images:n},(()=>{this.validateImagesFiles(t)?(this.setState({new_images:n}),o()):(r[e].file_name="",this.setState({images:r}),i())}))}))}case"thumbnail":{const e=this.state.thumbnail.findIndex((e=>e.id===t));let r=[...this.state.thumbnail];r[e].file_name=r[e].ref.current.image_file.current.files[0].name;let n=[...this.state.new_thumbnail];return n.push(r[e].file_name),new Promise(((e,t)=>{this.setState({thumbnail:r,new_thumbnail:n},(()=>{this.setState({new_thumbnail:n}),e()}))}))}}},this.validateMetadataFiles=e=>{const t=this.state.metadatas.map((e=>e.file_name));if(t.length>new Set(t).size){const t=this.state.metadatas.findIndex((t=>t.id===e));let r=[...this.state.metadatas];return r[t].error="Duplicate file name is not allowed.",this.setState({metadatas:r}),!1}const r=this.state.metadatas.findIndex((t=>t.id===e));let n=[...this.state.metadatas];return n[r].error="",this.setState({metadatas:n}),!0},this.validateImagesFiles=e=>{const t=this.state.images.map((e=>e.file_name));if(t.length>new Set(t).size){const t=this.state.images.findIndex((t=>t.id===e));let r=[...this.state.images];return r[t].error="Duplicate file name is not allowed.",this.setState({images:r}),!1}return!0},this.validateThumbnailFile=e=>!0,this.handleAddMetadata=()=>{let e=1;this.state.metadatas.length>0&&(e=this.state.metadatas[this.state.metadatas.length-1].id+1),this.setState({metadatas:[...this.state.metadatas,{id:e,ref:i.createRef()}]})},this.handleAddThumbnail=()=>{this.state.thumbnail.length>0||this.setState({thumbnail:[...this.state.thumbnail,{id:1,ref:i.createRef()}]})},this.handleDeleteThumbnail=e=>{const t=this.state.thumbnail.find((t=>t.id===e)),r=this.state.new_thumbnail.filter((e=>e!==t.file_name));let n=[...this.state.deleted_thumbnail];r.length===this.state.new_thumbnail.length&&n.push(t.file_uuid);const o=this.state.thumbnail.filter((t=>t.id!==e));this.setState({thumbnail:o,new_thumbnail:r,deleted_thumbnail:n})},this.handleDeleteMetadata=e=>{const t=this.state.metadatas.find((t=>t.id===e)),r=this.state.metadatas.filter((t=>t.id!==e)),n=this.state.new_metadatas.filter((e=>e!==t.uuid));let o=[...this.state.deleted_metas];o.push(t.file_uuid),this.setState({metadatas:r,new_metadatas:n,deleted_metas:o})},this.handleAddImage=()=>{let e=1;this.state.images.length>0&&(e=this.state.images[this.state.images.length-1].id+1),this.setState({images:[...this.state.images,{id:e,ref:i.createRef()}]})},this.handleDeleteImage=e=>{const t=this.state.images.find((t=>t.id===e)),r=this.state.new_images.filter((e=>e!==t.file_name));let n=[...this.state.deleted_images];r.length===this.state.new_images.length&&n.push(t.file_uuid);const o=this.state.images.filter((t=>t.id!==e));this.setState({images:o,new_images:r,deleted_images:n})},this.isSpecialOrganType=e=>$e.includes(e),this.isOrganBloodType=e=>"organ"===e||"blood"===e,this.getGender=e=>{const t=null===e||void 0===e?void 0:e.metadata;if(void 0===t)return"";try{return t.organ_donor_data.find((e=>"Sex"===e.grouping_concept_preferred_term)).preferred_term.toLowerCase()}catch{return""}},this.handleSubmit=e=>{e.preventDefault(),this.validateForm().then((e=>{if(e)if(!this.state.editingEntity&&this.state.groups.length>1&&!this.state.GroupSelectShow)this.setState({GroupSelectShow:!0});else{this.setState({GroupSelectShow:!1,submitting:!0});let e={protocol_url:this.state.protocol_url,direct_ancestor_uuid:this.state.source_uuid_list,organ_other:this.state.organ_other,visit:this.state.visit,description:this.state.description};if(this.state.editingEntity||(e.sample_category=this.state.sample_category,"organ"===this.state.sample_category&&(e.organ=this.state.organ)),this.state.sample_count<1){if(e.lab_tissue_sample_id=this.state.lab_tissue_id,this.state.rui_location&&""!==this.state.rui_location.length&&(e.rui_location=JSON.parse(this.state.rui_location)),this.state.metadatas.length>0){let t=[];this.state.metadatas.forEach((e=>{""!==e.ref.current.state.temp_file_id&&t.push({temp_file_id:e.ref.current.state.temp_file_id,file_name:e.ref.current.metadata_file.current.files[0].name})})),t.length>0&&(e.metadata_files_to_add=t)}if(this.state.deleted_metas.length>0&&(e.metadata_files_to_remove=this.state.deleted_metas),this.state.images.length>0){let t=[],r=[];this.state.images.forEach((e=>{""!==e.ref.current.state.temp_file_id?t.push({temp_file_id:e.ref.current.state.temp_file_id,description:e.ref.current.image_file_description.current.value.replace(/["\\]/g,"\\$&")}):r.push({file_uuid:e.file_uuid,description:e.ref.current.image_file_description.current.value.replace(/["\\]/g,"\\$&")})})),t.length>0&&(e.image_files_to_add=t),r.length>0&&(e.image_files=r)}if(this.state.deleted_images.length>0&&(e.image_files_to_remove=this.state.deleted_images),this.state.thumbnail.length>0){let t=[],r=[];this.state.thumbnail.forEach((e=>{""!==e.ref.current.state.temp_file_id?t.push({temp_file_id:e.ref.current.state.temp_file_id}):r.push({file_uuid:e.file_uuid})})),t.length>0&&(e.thumbnail_file_to_add=t[0]),r.length>0&&(e.thumbnail_file=r[0])}this.state.deleted_thumbnail.length>0&&(e.thumbnail_file_to_remove=this.state.deleted_thumbnail[0])}this.state.editingEntity?xd(this.state.editingEntity.uuid,JSON.stringify(e),JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{200===t.status?(this.setState({submit_error:!1,submitting:!1,show_snack:!0,show_dirty_warning:!1,snackmessage:"Save was succesful",isDirty:!1}),this.state.related_group_ids.length<2&&this.props.onUpdated(t.results),this.setState({submit_error:!1,submitting:!1,isDirty:!1})):(this.setState({submit_error:!0,submitting:!1,isDirty:!1}),this.setDirty(!1),xd(this.state.editingEntity.uuid,JSON.stringify(e),JSON.parse(localStorage.getItem("info")).groups_token))})):(this.state.selected_group&&this.state.selected_group.length>0?e.group_uuid=this.state.selected_group:e.group_uuid=this.state.groups_dataprovider[0].uuid,this.state.sample_count<1?wd("sample",JSON.stringify(e),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{200===e.status?(this.props.onCreated({new_samples:[],entity:e.results}),this.setState({submit_error:!1,submitting:!1})):400===e.status&&this.setState({submit_error:!0,submitting:!1,error_message_detail:Oc(e.results)})})):this.state.sample_count>0&&function(e,t){const r={headers:{Authorization:"Bearer "+bd,"Content-Type":"application/json"}};let n=`https://entity.api.hubmapconsortium.org/entities/multiple-samples/${e}`;return _u().post(n,t,r).then((e=>{let t=e.data,r=[];return t.forEach((e=>{e.checked=!1,r.push(e)})),{status:e.status,results:r}})).catch((e=>({error:e})))}(this.state.sample_count,JSON.stringify(e),JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{console.debug("entity_api_create_multiple_entities",t),200===t.status?(this.props.onCreated({new_samples:t.results,entity:e}),this.setState({submit_error:!1,submitting:!1})):400===t.status&&this.setState({submit_error:!0,submitting:!1,error_message_detail:Oc(t.results)})})))}}))},this.handleLookUpClick=()=>{this.state.lookUpCancelled?this.setState({LookUpShow:!1}):this.setState({LookUpShow:!0}),this.setState({lookUpCancelled:!1})},this.hideLookUpModal=()=>{this.setState({LookUpShow:!1})},this.cancelLookUpModal=()=>{this.setState({LookUpShow:!1,lookUpCancelled:!0})},this.hideGroupSelectModal=()=>{this.setState({GroupSelectShow:!1})},this.handleSelectClick=e=>{let t="";e&&_d(e.row.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((r=>{200===r.status?r.results.length>0&&(t=r.results[0].organ):t=(r.error,e.row.organ),this.fetchDonorMeta(e.row.uuid),this.setState({source_uuid:e.row.hubmap_id,source_entity:e.row,source_uuid_list:e.row.uuid,source_entity_type:e.row.entity_type,organ:t,ancestor_organ:t},(()=>{console.debug("%c\u25c9 SETDONORSEX ","color:#7BFF00",this.state.sex)})),this.cancelLookUpModal()}))},this.hideBackButton=()=>{this.setState({back_btn_hide:!0})},this.handleSavedLocations=e=>{this.setState({LocationSaved:!0})}}componentDidUpdate(e,t){e.editingEntity!==this.props.editingEntity&&this.setState({editingEntity:this.props.editingEntity,loadWithin:!1})}componentDidMount(){let e=new URL(window.location.href).searchParams.get("source");console.debug("%c\u25c9 source! ","color:#00ff7b",e),Ic().then((e=>{this.setState({organ_types:e},(()=>{console.log(this.state.organ_types)}),(()=>{console.log("ERROR: ubkg_api_get_organ_type_set")}))})),$c(JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{const t=e.results.filter((e=>!0===e.data_provider));this.setState({groups:t,groups_dataprovider:t})})).catch((e=>{void 0===e.response||401===e.response.status&&(localStorage.setItem("isAuthenticated",!1),window.location.reload())}));try{let e="";try{e=this.props.match.params.uuid}catch{e=this.props.editingEntity.uuid}yd(e,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{if(200===t.status){let r=t.results;Uc(e,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{if(200===t.status){let n=!t.results.has_write_priv;this.setState({editingEntity:r,readOnly:n,param_uuid:e},(()=>{this.checkForRelatedGroupIds(r),this.initialize()}))}else this.setState({editingEntity:r,readOnly:!1,param_uuid:e},(()=>{this.checkForRelatedGroupIds(r),this.initialize()}))}))}}))}catch{this.props&&this.setState({editingEntityProp:this.props.editingEntity,specimen_type:this.props.specimenType,source_entity_type:this.props.source_entity_type?this.props.source_entity_type:"Donor",source_entity:this.props.direct_ancestor?this.props.direct_ancestor:"",source_uuid:this.props.sourceUUID,ancestor_organ:this.props.direct_ancestor?this.props.direct_ancestor.organ:"",organ:this.props.direct_ancestor?this.props.direct_ancestor.organ:"",source_uuid_list:this.props.uuid})}}initialize(){if(this.props.hideBackButton&&this.hideBackButton(),console.debug("%c\u25c9 this.state.readOnly,","color:#00ff7b",this.state.readOnly,!this.state.editingEntity),this.state.editingEntity){let e=this.state.editingEntity.image_files,t=this.state.editingEntity.metadata_files,r=this.state.editingEntity.thumbnail_file;const n=[],o=[],s=[];try{e.forEach(((e,t)=>{n.push({id:t+1,ref:i.createRef(),file_name:e.filename,description:e.description,file_uuid:e.file_uuid})}))}catch{}try{t.forEach(((e,t)=>{o.push({id:t+1,ref:i.createRef(),file_name:e.filename,file_uuid:e.file_uuid})}))}catch{}try{s.push({id:1,ref:i.createRef(),file_name:r.filename,file_uuid:r.file_uuid})}catch{}this.setState({author:this.state.editingEntity.created_by_user_email,organ:this.props.editingEntity.organ?this.props.editingEntity.organ:this.props.editingEntity.direct_ancestor.organ,visit:this.state.editingEntity.visit?this.state.editingEntity.visit:"",lab_tissue_id:this.state.editingEntity.lab_tissue_sample_id?this.state.editingEntity.lab_tissue_sample_id:"",description:this.state.editingEntity.description?this.state.editingEntity.description:"",protocol_url:this.state.editingEntity.protocol_url,entity_type:this.state.editingEntity.entity_type,specimen_type:this.state.editingEntity.specimen_type,specimen_type_other:this.state.editingEntity.specimen_type_other,sample_category:this.state.editingEntity.sample_category,rui_location:JSON.stringify(this.state.editingEntity.rui_location,null,3)||"",rui_check:!!JSON.stringify(this.state.editingEntity.rui_location,null,3),images:n,metadatas:o,thumbnail:s,source_uuid:this.getID(),source_entity:this.state.editingEntity.direct_ancestor,source_entity_type:this.state.editingEntity.direct_ancestor.entity_type},(()=>{console.debug("ORGANCHECK",this.props.editingEntity.organ,this.isSpecialOrganType(this.props.editingEntity.organ),this.props.editingEntity.sample_category),this.isSpecialOrganType(this.props.editingEntity.organ)&&"organ"!==this.props.editingEntity.sample_category&&this.setState({rui_show_btn:!0},(()=>{console.debug("%c\u25c9 RUISHOW ","color:#00ff7b")}))})),"Donor"!==this.state.editingEntity.direct_ancestor.entity_type&&"Organ"!==this.state.editingEntity.direct_ancestor.entity_type||this.getSourceAncestorOrgan(this.state.editingEntity),this.fetchDonorMeta(this.props.editingEntity.uuid)}else this.setState({specimen_type:this.props.specimenType,source_entity_type:this.props.source_entity_type?this.props.source_entity_type:"Donor",source_entity:this.props.direct_ancestor?this.props.direct_ancestor:"",source_uuid:this.props.sourceUUID,ancestor_organ:this.props.direct_ancestor?this.props.direct_ancestor.organ:"",organ:this.props.direct_ancestor?this.props.direct_ancestor.organ:"",source_uuid_list:this.props.uuid})}fetchDonorMeta(e){(function(e){const t={headers:{Authorization:"Bearer "+bd,"Content-Type":"application/json"}};let r=`https://entity.api.hubmapconsortium.org/ancestors/${e}`;return _u().get(r,t).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>({error:e})))})(e,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{var t;console.debug("%c\u25c9 ANCESTOR LIST ","color:#8C00FF",e.results),t=1===e.results.length?e.results[0]:(t=e.results.filter((e=>"Donor"===e.entity_type)))[0],console.debug("%c\u25c9 donor ","color:#00ff7b",t);var r=t.metadata.organ_donor_data?t.metadata.organ_donor_data:t.metadata.living_donor_data;console.debug("%c\u25c9 donorMeta ","color:#4400FF",r);var n=r.filter((e=>"57312000"===e.grouping_code));console.debug("%c\u25c9 donorSexDetails ","color:#0011FF",n);var o=n[0].preferred_term;console.debug("%c\u25c9 donorSex ","color:#0077FF",o),this.setState({donor_sex:o,sex:o},(()=>{}))})).catch((e=>{console.debug("ERR entity_api_get_entity_ancestor_list",e)}))}fetchOrganTypes(){Ic().then((e=>(console.debug("fetchOrganTypes",e),e))).catch((e=>{console.debug("ERR fetchOrganTypes",e)}))}checkForRelatedGroupIds(e){JSON.parse(localStorage.getItem("info")).groups_token;(function(e){const t={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};return _u().get(`https://ingest.api.hubmapconsortium.org/specimens/${e}/ingest-group-ids`,t).then((e=>(e.data.ingest_group_ids.length>1&&e.data.ingest_group_ids.sort(((e,t)=>parseInt(e.submission_id.substring(e.submission_id.lastIndexOf("-")+1))>parseInt(t.submission_id.substring(e.submission_id.lastIndexOf("-")+1))?1:parseInt(t.submission_id.substring(e.submission_id.lastIndexOf("-")+1))>parseInt(e.submission_id.substring(e.submission_id.lastIndexOf("-")+1))?-1:0)),{status:e.status,results:e.data.ingest_group_ids}))).catch((e=>({error:e})))})(e.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{if(console.debug("LENGTH .data.ingest_group_ids.length",t.results.length),console.debug("ingest_api_get_associated_ids",t.results),t.results.length>0){this.setState({related_group_ids:t.results},(()=>{console.debug("RELATED IDS:",this.state.related_group_ids)})),t.results.sort(((e,t)=>parseInt(e.submission_id.substring(e.submission_id.lastIndexOf("-")+1))>parseInt(t.submission_id.substring(e.submission_id.lastIndexOf("-")+1))?1:parseInt(t.submission_id.substring(e.submission_id.lastIndexOf("-")+1))>parseInt(e.submission_id.substring(e.submission_id.lastIndexOf("-")+1))?-1:0));const r=t.data.ingest_group_ids[0].submission_id,n=t.data.ingest_group_ids[t.data.ingest_group_ids.length-1].submission_id;this.setState({editingMultiWarning:`This sample is part of a group of ${t.data.ingest_group_ids.length} other \n                   ${e.sample_category} samples, ranging from ${r} through ${n}`,related_group_ids:t.data.ingest_group_ids})}})).catch((e=>{void 0===e.response||401===e.response.status&&(localStorage.setItem("isAuthenticated",!1),window.location.reload())}))}handleMultiEdit(e){this.state.isDirty?this.setState({show_dirty_warning:!0}):this.handleChangeSample(e)}getSourceAncestorOrgan(e){_d(e.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{200===e.status&&e.results.length>0&&this.setState({source_entity:e.results[0],ancestor_organ:e.results[0].organ})}))}renderButtons(){return this.state.editingEntity?this.state.readOnly?(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsx)("div",{className:"col-sm-12  m-2",children:(0,Ne.jsx)(kO,{})}),(0,Ne.jsx)("div",{className:"col-sm-12 text-right pads",children:(0,Ne.jsx)(HE,{type:"button",variant:"outlined",onClick:()=>this.handleCancel(),children:"Cancel"})})]}):(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsx)("div",{className:"col-sm-12 m-2",children:(0,Ne.jsx)(kO,{})}),(0,Ne.jsxs)("div",{className:"buttonWrapRight",children:[(0,Ne.jsxs)(HE,{type:"submit",color:"primary",variant:"contained",className:"btn btn-primary mr-1",disabled:this.state.submitting,children:[this.state.submitting&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.submitting&&"Update"]}),!this.state.back_btn_hide&&(0,Ne.jsx)(HE,{id:"editBackBtn",type:"button",variant:"outlined",onClick:()=>this.props.handleCancel(),children:"Cancel"})]})]}):(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsx)("div",{className:"col-sm-12",children:(0,Ne.jsx)(kO,{})}),(0,Ne.jsxs)("div",{className:"buttonWrapRight",children:[(0,Ne.jsxs)(HE,{type:"submit",className:"btn btn-primary mr-1",disabled:this.state.submitting,children:[this.state.submitting&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.submitting&&"Generate ID"]}),(0,Ne.jsx)(HE,{type:"button",variant:"outlined",onClick:()=>this.handleCancel(),children:"Cancel"})]})]})}errorClass(e){return"valid"===e?"is-valid":0===e.length?"":"is-invalid"}validateForm(){return new Promise(((e,t)=>{let r=!0;if("organ"!==this.state.sample_category||gT(this.state.organ)?this.setState((e=>({formErrors:{...e.formErrors,organ:""}}))):(this.setState((e=>({formErrors:{...e.formErrors,organ:"required"}}))),r=!1),"OT"!==this.state.organ||gT(this.state.organ_other)?this.setState((e=>({formErrors:{...e.formErrors,organ_other:""}}))):(this.setState((e=>({formErrors:{...e.formErrors,organ_other:"required"}}))),r=!1),gT(this.state.protocol_url)?vT(this.state.protocol_url)&&bT(this.state.protocol_url)?this.setState((e=>({formErrors:{...e.formErrors,protocol_url:""}}))):(this.setState((e=>({formErrors:{...e.formErrors,protocol_url:"Please enter one valid protocols.io DOI"}}))),r=!1):(this.setState((e=>({formErrors:{...e.formErrors,protocol_url:"required"}}))),r=!1),gT(this.state.sample_category)?this.setState((e=>({formErrors:{...e.formErrors,sample_category:""}}))):(this.setState((e=>({formErrors:{...e.formErrors,sample_category:"required"}}))),r=!1),this.state.sample_count<1){this.state.images.forEach(((e,t)=>{e.file_name||gT(e.ref.current.image_file.current.value)||(r=!1,e.ref.current.validate()),gT(e.ref.current.image_file_description.current.value)||(r=!1,e.ref.current.validate())}));new Set(this.state.images).size!==this.state.images.length&&(r=!1)}gT(this.state.source_uuid)?(this.setState((e=>({formErrors:{...e.formErrors,source_uuid:""}}))),e(r)):(this.setState((e=>({formErrors:{...e.formErrors,source_uuid:"required"}}))),r=!1,e(r))}))}getSourceAncestor(e){try{return e[0].hubmap_id}catch{}return""}getSourceAncestorEntity(e){try{return e[0]}catch{}return""}render(){return(0,Ne.jsxs)("div",{className:"row",children:[this.state.related_group_ids.length>1&&(0,Ne.jsxs)("div",{severity:"info",className:"alert alert-primary col-sm-12 ",role:"alert",children:[this.state.editingMultiWarning," ",(0,Ne.jsx)("p",{children:"Click below to expand and view the groups list. Then select an Sample ID to edit the sample data.  Press the update button to save your changes."}),(0,Ne.jsxs)(DT,{children:[(0,Ne.jsx)(FT,{expandIcon:(0,Ne.jsx)(bo,{icon:Io}),"aria-controls":"panel1a-content",id:"panel1a-header",children:"Sample Group List"}),(0,Ne.jsx)(BT,{className:"idlist",children:(0,Ne.jsx)("ul",{className:"",children:this.state.related_group_ids.length>0&&this.state.related_group_ids.map(((e,t)=>e.uuid===this.state.editingEntity.uuid?(0,Ne.jsx)("li",{className:"active",children:(0,Ne.jsx)(HE,{type:"button",className:"btn btn-link",children:`${e.submission_id}`})},t+"_"+e.submission_id):(0,Ne.jsx)(Ne.Fragment,{children:(0,Ne.jsx)("li",{children:(0,Ne.jsx)(HE,{type:"button",className:"btn btn-link",onClick:t=>this.handleMultiEdit(e.uuid,t),children:`${e.submission_id}`})},t+"_"+e.submission_id)})))})})]})]}),this.state.loadWithin&&(0,Ne.jsx)(ms,{}),(0,Ne.jsxs)("div",{className:"col-sm-12 pads",children:[this.state.editingEntity&&"public"===this.state.editingEntity.data_access_level&&this.state.read_only_state&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{className:"alert alert-warning text-center",role:"alert",children:"This entity is no longer editable. It was locked when it became publicly accessible when data associated with it was published."})}),(0,Ne.jsx)("div",{className:"col-sm-12 text-center",children:(0,Ne.jsx)("h4",{children:"Sample Information"})}),(0,Ne.jsx)("div",{style:{maxheight:"150px",margin:"10px auto"},children:(0,Ne.jsx)(VT,{})}),this.state.editingEntity&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsxs)("div",{className:"row mb-2",children:[(0,Ne.jsxs)("div",{className:"col-sm-5 offset-sm-1 portal-label",children:["HuBMAP ID: ",this.state.editingEntity.hubmap_id]}),(0,Ne.jsxs)("div",{className:"col-sm-5 text-right portal-label",children:["Submission ID: ",this.state.editingEntity.submission_id]}),(0,Ne.jsxs)("div",{className:"col-sm-5 offset-sm-1 portal-label",children:["Entered by: ",this.state.editingEntity.created_by_user_email]}),(0,Ne.jsxs)("div",{className:"col-sm-5 text-right portal-label",children:["Entry Date: ",jc(this.state.editingEntity.created_timestamp)]})]})}),(0,Ne.jsxs)("form",{className:"formSpacer expanded-form",onSubmit:this.handleSubmit,children:[(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"source_uuid",children:["Source ID ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"}),"  ",(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"source_uuid_tooltip"}),(0,Ne.jsx)(hT,{id:"source_uuid_tooltip",className:"tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsxs)("p",{children:["The HuBMAP Unique identifier of the direct origin entity,",(0,Ne.jsx)("br",{}),"other sample or donor, where this sample came from."]})})]}),!this.state.readOnly&&(0,Ne.jsxs)("div",{className:"input-group",children:[(0,Ne.jsx)("input",{type:"text",disabled:this.state.editingEntity,name:"source_uuid",id:"source_uuid",className:"form-control "+this.errorClass(this.state.formErrors.source_uuid),value:this.state.source_uuid||"",onChange:this.handleInputChange,onFocus:this.handleLookUpClick,autoComplete:"off"}),(0,Ne.jsx)(HE,{variant:"outlined",disabled:this.state.editingEntity,className:"btn btn-outline-secondary",type:"button",onClick:this.handleLookUpClick,children:(0,Ne.jsx)(bo,{icon:Mo,"data-tip":!0,"data-for":"source_uuid_tooltip"})})]}),this.state.readOnly&&(0,Ne.jsx)("div",{className:"mt-2",children:(0,Ne.jsx)("input",{type:"text",readOnly:!0,className:"form-control",id:"static_source_uuid",value:this.state.source_uuid})}),(0,Ne.jsxs)(vO,{fullWidth:!0,maxWidth:"lg",onClose:this.hideLookUpModal,"aria-labelledby":"source-lookup-dialog",open:this.state.LookUpShow,children:[(0,Ne.jsx)(yO,{children:(0,Ne.jsx)(zj,{select:this.handleSelectClick,custom_title:"Search for a Source ID for your Sample",filter_type:"Sample",blacklist:["collection"],modecheck:"Source"})}),(0,Ne.jsx)(_T,{children:(0,Ne.jsx)(HE,{onClick:this.cancelLookUpModal,color:"primary",children:"Close"})})]})]}),this.state.source_entity&&(0,Ne.jsx)("div",{className:"form-group row",children:(0,Ne.jsx)("div",{className:"col-sm-7 offset-sm-2",children:(0,Ne.jsx)("div",{className:"card",children:(0,Ne.jsx)("div",{className:"card-body",children:(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsxs)("div",{className:"col-sm-6",children:[(0,Ne.jsx)("b",{children:"Source Category:"})," ",this.state.source_entity.sample_category?qT(Fe)[this.state.source_entity.sample_category]:this.state.source_entity.entity_type]}),this.isOrganBloodType(this.state.source_entity.sample_category)&&(0,Ne.jsxs)("div",{className:"col-sm-12",children:[(0,Ne.jsx)("b",{children:"Organ Type:"})," ",this.state.organ_types[this.state.source_entity.organ]]}),this.state.source_entity.submission_id&&(0,Ne.jsxs)("div",{className:"col-sm-12",children:[(0,Ne.jsx)("b",{children:"Submission ID:"})," ",this.state.source_entity.submission_id]}),this.state.source_entity.lab_donor_id&&(0,Ne.jsxs)("div",{className:"col-sm-12",children:[(0,Ne.jsx)("b",{children:"Lab ID: "})," ",this.state.source_entity.lab_donor_id]}),this.state.source_entity.group_name&&(0,Ne.jsxs)("div",{className:"col-sm-12",children:[(0,Ne.jsx)("b",{children:"Group Name: "})," ",this.state.source_entity.group_name]})]})})})})}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"sample_category",children:["Sample Category ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"}),(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"sample_category_tooltip"}),(0,Ne.jsx)(hT,{id:"sample_category_tooltip",className:"tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"The category of sample."})})]}),!this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsxs)("select",{disabled:this.state.editingEntity,name:"sample_category",id:"sample_category",className:"form-control "+this.errorClass(this.state.formErrors.sample_category),onChange:this.handleInputChange,value:this.state.sample_category,children:[(0,Ne.jsx)("option",{value:"",children:"Select Category"}),"Donor"===this.state.source_entity_type&&(0,Ne.jsx)("option",{value:"organ",id:"organ",children:"Organ"}),"Donor"!=this.state.source_entity_type&&(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("option",{value:"block",id:"block",children:"Block"}),(0,Ne.jsx)("option",{value:"section",id:"section",children:"Section"}),(0,Ne.jsx)("option",{value:"suspension",id:"suspension",children:"Suspension"})]})]})}),this.state.readOnly&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{className:"col-sm-3",children:(0,Ne.jsx)("input",{readOnly:!0,type:"text",className:"form-control",id:"_readonly_sample_category",value:this.state.sample_category})})})]}),"organ"===this.state.sample_category&&(0,Ne.jsxs)("div",{className:"form-group row",children:[(0,Ne.jsxs)("label",{htmlFor:"organ",className:"col-sm-2 col-form-label text-right",children:["Organ Type",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),!this.state.readOnly&&(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)("div",{className:"col-sm-6",children:(0,Ne.jsxs)("select",{name:"organ",disabled:this.state.editingEntity,id:"organ",className:"form-control "+this.errorClass(this.state.formErrors.organ),onChange:this.handleInputChange,value:this.state.organ,children:[(0,Ne.jsx)("option",{value:"",children:"----"}),Object.entries(this.state.organ_types).map(((e,t)=>(0,Ne.jsx)("option",{value:e[0],children:e[1]},e[0])))]})}),"OT"===this.state.organ&&(0,Ne.jsx)("div",{className:"col-sm-3",children:(0,Ne.jsx)("input",{type:"text",disabled:this.state.readOnly||this.state.editingEntity,name:"organ_other",placeholder:"Please specify",className:"form-control "+this.errorClass(this.state.formErrors.organ_other),id:"organ_other",onChange:this.handleInputChange,value:this.state.organ_other})})]}),this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",readOnly:!0,className:"form-control",id:"static_organ",value:"OT"===this.state.organ?this.state.organ_other:this.state.organ_types[this.state.organ]})})]}),["organ","biopsy","blood"].includes(this.state.sample_category)&&(!this.state.readOnly||void 0!==this.state.visit)&&(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"visit",children:["Visit ",(0,Ne.jsx)("span",{className:"text-danger inline-icon",children:(0,Ne.jsx)(bo,{icon:Do})}),(0,Ne.jsxs)("span",{children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"visit_tooltip"}),(0,Ne.jsx)(hT,{id:"visit_tooltip",className:"tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Associated visit in which sample was acquired (Non-PHI number). e.g., baseline"})})]})]}),!this.state.readOnly&&(0,Ne.jsx)("input",{type:"text",name:"visit",id:"visit",className:"form-control "+this.errorClass(this.state.formErrors.visit),placeholder:"Visit",onChange:this.handleInputChange,value:this.state.visit}),this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",readOnly:!0,className:"form-control",id:"static_visit",value:this.state.visit})})]}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"protocol_url",children:["   Preparation Protocol ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"}),(0,Ne.jsxs)("span",{className:"text-danger inline-icon",children:[" ",(0,Ne.jsx)(bo,{icon:Do})]}),(0,Ne.jsxs)("span",{children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"protocol_tooltip"}),(0,Ne.jsx)(hT,{id:"protocol_tooltip",className:"tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"The protocol used when procuring or preparing the tissue. This must be provided as a protocols.io DOI URL see https://www.protocols.io/"})})]})]}),!this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{ref:this.protocol_url,type:"text",name:"protocol_url",id:"protocol_url",className:"form-control "+this.errorClass(this.state.formErrors.protocol_url)+" "+this.errorClass(this.state.formErrors.protocol_url_DOI),onChange:this.handleInputChange,onBlur:this.handleInputBlur,value:this.state.protocol_url,placeholder:"protocols.io DOI"})}),this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",readOnly:!0,className:"form-control",id:"static_protocol",value:this.state.protocol_url})})]}),!this.state.readOnly&&"organ"!==this.state.specimen_type&&!this.state.editingEntity&&(0,Ne.jsxs)("div",{className:"form-group row",children:[(0,Ne.jsx)("div",{className:"col-sm-8",children:(0,Ne.jsxs)("div",{className:"form-group form-check",children:[(0,Ne.jsx)("input",{type:"checkbox",className:"form-check-input",name:"multipleID",id:"multipleID",onClick:this.handleInputChange}),(0,Ne.jsxs)("label",{className:"form-check-label",htmlFor:"multipleID",children:["Generate IDs for multiple"," ",this.state.specimen_type_other||qT(Fe)[this.state.specimen_type]," ","samples"]})]})}),this.state.multiple_id&&(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)("div",{className:"col-sm-4 offset-sm-1",children:(0,Ne.jsx)("input",{type:"number",className:"form-control "+this.errorClass(this.state.formErrors.sample_count),name:"sample_count",id:"sample_count",placeholder:"Number of IDs to Generate",min:"1",onChange:this.handleInputChange})}),this.state.source_entity&&this.isSpecialOrganType(this.state.organ)&&(0,Ne.jsx)("div",{className:"col-sm-4",children:(0,Ne.jsx)("small",{className:"portal-label",children:"Lab IDs, Sample Locations and files/images can be assigned on the next screen after generating the HuBMAP IDs"})}),this.state.source_entity&&!0!==this.isSpecialOrganType(this.state.organ)&&(0,Ne.jsx)("div",{className:"col-sm-4",children:(0,Ne.jsx)("small",{className:"portal-label",children:"Lab IDs and files/images can be assigned on the next screen after generating the HuBMAP IDs"})})]})]}),!this.state.multiple_id&&(!this.state.readOnly||void 0!==this.state.lab_tissue_id)&&(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"lab_tissue_id",children:["Lab Sample Id  ",(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"lab_tissue_id_tooltip"}),(0,Ne.jsx)(hT,{id:"lab_tissue_id_tooltip",className:"tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsxs)("p",{children:["An identifier used by the lab to identify , this can be an identifier from the system ",(0,Ne.jsx)("br",{}),"used to track the specimen in the lab. This field will be entered by the user."]})})]}),!this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",name:"lab_tissue_id",id:"lab_tissue_id",className:"form-control",placeholder:"Lab specific Alpha-numeric id",onChange:this.handleInputChange,value:this.state.lab_tissue_id})}),this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",readOnly:!0,className:"form-control",id:"static_lab_tissue_id",value:this.state.lab_tissue_id})})]}),(!this.state.readOnly||void 0!==this.state.description)&&(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"description",children:["Description  ",(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"description_tooltip"}),(0,Ne.jsx)(hT,{id:"description_tooltip",className:"tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"A free text description of the specimen."})})]}),!this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("textarea",{name:"description",id:"description",className:"form-control",value:this.state.description,onChange:this.handleInputChange})}),this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)("input",{type:"text",readOnly:!0,className:"form-control",id:"static_description",value:this.state.description})})]}),!this.state.editingEntity&&!this.state.multiple_id&&void 0!==this.state.source_entity&&this.state.rui_show_btn&&(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"location",sx:{display:"inline-block"},children:["Sample Location "," ",(0,Ne.jsxs)("span",{children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"rui_tooltip"}),(0,Ne.jsx)(hT,{id:"rui_tooltip",className:"tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsxs)("p",{children:["Provide formatted location data from ",(0,Ne.jsx)("br",{}),"CCF Location Registration Tool for ",(0,Ne.jsx)("br",{}),"this sample."]})})]})]}),(0,Ne.jsx)("div",{className:"",children:(0,Ne.jsx)(HE,{onClick:this.handleAddRUILocation,variant:"contained",className:"btn btn-primary mr-1",color:"primary",children:"Register Location"})}),this.state.rui_click&&this.state.RUI_ACTIVE&&(0,Ne.jsx)(vO,{fullScreen:!0,"aria-labelledby":"rui-dialog",open:this.state.rui_click,children:(0,Ne.jsx)(YT,{handleJsonRUI:this.handleRUIJson,organList:this.state.organ_types,organ:this.state.ancestor_organ?this.state.ancestor_organ:this.state.source_entity.organ,sex:this.state.donor_sex,user:this.state.source_entity.created_by_user_displayname,location:this.state.rui_location,parent:"TissueForm"})}),this.state.rui_check&&(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsxs)("div",{className:"col-sm-2 text-left",children:[(0,Ne.jsx)("img",{src:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAAWABkDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9O6q6pqlpoun3F9fTpbWluhkllkOAqivm74tfGXxt8KfivHeX9njw1IvlW9srkw3MIOWbdj5Zec9OOByOTyHxZ+MF78ePFek+EvBiTTafJsYIwKGWUqGZpPRYxkemQx54r4vFcTUKMa1OnB+2i+VRas5N7NeX4/ej56tnFOEakYRftIuyi+r6P0/rqjuofjh4i8efErT4PC9pJNp1vKSLPO0TR9GeVuijB4zwDjqa+jtx/un9K4z4V/C/T/hf4djsbbE9/IA15ekfNM/9FHQD+pNdrXdkeBxuFpTq4+q51Kj5mukfJfLfppp3e+V4XE4enKeKqOU5u7XReS/q364PjfwTpPxC8N3eh61bC4srgdRw8bD7roezDsfwOQSK84/Z9/Z5tvgzHqd3dXUeq6zdStGl4qFRHbBvlUA9CcBm98DnGSUV6tTB0KmKhiJQTnFOzPRlRpyqxquPvLqey0UUV6J0n//Z",alt:"check",className:"check"}),(0,Ne.jsx)(HE,{variant:"text",className:"btn btn-link",type:"button",onClick:this.openRUIModalHandler,children:"View Location"})]}),(0,Ne.jsx)(JT,{className:"Modal",show:this.state.rui_show,handleClose:this.closeRUIModalHandler,children:this.state.rui_location}),(0,Ne.jsx)("div",{className:"col-sm-2"})]}),!this.state.rui_check&&(0,Ne.jsx)("div",{className:"col-sm-5"})]}),this.state.editingEntity&&!this.state.multiple_id&&void 0!==this.state.source_entity&&"organ"!==this.props.editingEntity.sample_category&&this.isSpecialOrganType(this.state.organ)&&this.state.RUI_ACTIVE&&(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"location",className:"col-sm-2 col-form-label",children:["Sample Location "," ",(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"rui_tooltip"}),(0,Ne.jsx)(hT,{id:"rui_tooltip",className:"tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsxs)("p",{children:["Provide formatted location data from ",(0,Ne.jsx)("br",{}),"CCF Location Registration Tool for ",(0,Ne.jsx)("br",{}),"this sample."]})})]}),!this.state.readOnly&&this.state.rui_check&&this.state.RUI_ACTIVE&&(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)("div",{className:"col-sm-3 text-left",children:(0,Ne.jsx)(HE,{onClick:this.handleAddRUILocation,variant:"contained",color:"primary",className:"btn btn-primary ",children:"Modify Location Information"})}),this.state.rui_click&&(0,Ne.jsx)(vO,{fullScreen:!0,"aria-labelledby":"rui-dialog",open:this.state.rui_click,children:(0,Ne.jsx)(YT,{handleJsonRUI:this.handleRUIJson,organList:this.state.organ_types,organ:this.props.editingEntity.organ,sex:this.state.donor_sex,user:this.state.source_entity.created_by_user_displayname,location:this.state.rui_location,parent:"TissueForm"})})]}),this.state.rui_check&&(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)("div",{className:"col-sm-3",children:(0,Ne.jsx)(HE,{variant:"contained",color:"primary",className:"btn btn-primary mt-2",onClick:this.openRUIModalHandler,children:"View Location"})}),(0,Ne.jsx)(JT,{className:"Modal",show:this.state.rui_show,handleClose:this.closeRUIModalHandler,children:this.state.rui_location}),(0,Ne.jsx)("div",{className:"col-sm-2"})]}),!this.state.readOnly&&!this.state.multiple_id&&!this.state.rui_check&&this.state.RUI_ACTIVE&&(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)("div",{className:"",children:(0,Ne.jsx)(HE,{type:"button",onClick:this.handleAddRUILocation,variant:"contained",className:"btn btn-primary mr-1",color:"primary",children:"Register Location"})}),this.state.rui_click&&(0,Ne.jsx)(vO,{fullScreen:!0,"aria-labelledby":"rui-dialog",open:this.state.rui_click,children:(0,Ne.jsx)(YT,{handleJsonRUI:this.handleRUIJson,organList:this.state.organ_types,organ:this.props.editingEntity.organ,sex:this.state.donor_sex,user:this.state.source_entity.created_by_user_displayname,location:this.state.rui_location,parent:"TissueForm"})})]}),this.state.readOnly&&(0,Ne.jsx)("div",{className:"col-sm-4"}),(0,Ne.jsx)("div",{className:"col-sm-1 my-auto text-center"})]}),this.state.readOnly||void 0!==this.state.abstract&&(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsx)("label",{htmlFor:"sample_metadata_status",children:"Sample Metadata Status"}),(0,Ne.jsxs)("div",{className:"col-sm-9 my-auto",children:[this.state.sample_metadata_status||(0,Ne.jsx)("span",{className:"badge badge-secondary",children:"No value set"}),0===this.state.sample_metadata_status&&(0,Ne.jsx)("span",{className:"badge badge-secondary",children:"No metadata"}),1===this.state.sample_metadata_status&&(0,Ne.jsx)("span",{className:"badge badge-primary",children:"Metadata provided"}),2===this.state.sample_metadata_status&&(0,Ne.jsx)("span",{className:"badge badge-primary",children:"Metadata curated"})]})]}),(0,Ne.jsxs)("div",{className:"buttonWrapLeft",children:[(!this.state.readOnly||this.state.metadatas.length>0)&&!this.state.multiple_id&&(0,Ne.jsx)("div",{className:"form-group",children:(0,Ne.jsx)("div",{children:this.state.metadatas.map((e=>(0,Ne.jsx)(QT,{id:e.id,file_name:e.file_name,ref:e.ref,error:e.error,readOnly:this.state.readOnly,formId:this.state.form_id,onFileChange:this.onFileChange,validate:this.validateMetadataFiles,onDelete:this.handleDeleteMetadata},e.id)))})}),(!this.state.readOnly||this.state.images.length>0)&&!this.state.multiple_id&&(0,Ne.jsx)("div",{className:"form-group",children:(0,Ne.jsxs)("div",{children:[!this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsxs)("div",{className:"",children:[(0,Ne.jsxs)(HE,{className:"mr-2",type:"button",onClick:this.handleAddImage,variant:"outlined","data-tip":!0,"data-for":"add_image_tooltip",children:[(0,Ne.jsx)(bo,{className:"inline-icon",icon:Ro,title:"Uploaded images (multiple allowed)."}),"Add an Image file"]}),(0,Ne.jsxs)("small",{id:"emailHelp",className:"form-text text-muted m-3",children:[(0,Ne.jsx)("span",{className:"text-danger inline-icon",children:(0,Ne.jsx)(bo,{icon:Do})})," Upload de-identified images only"]}),(0,Ne.jsx)(hT,{id:"add_image_tooltip",className:"tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Click here to attach a single or multiple image(s)"})})]})}),this.state.images.map((e=>(0,Ne.jsx)(mT,{id:e.id,file_name:e.file_name,description:e.description,ref:e.ref,error:e.error,readOnly:this.state.readOnly,formId:this.state.form_id,onFileChange:this.onFileChange,validate:this.validateImagesFiles,onDelete:this.handleDeleteImage,imageType:"image",show_description:!0},e.id)))]})}),!this.state.readOnly&&!this.state.multiple_id&&(0,Ne.jsx)("div",{className:"form-group",children:(0,Ne.jsxs)("div",{children:[!this.state.readOnly&&(0,Ne.jsx)("div",{children:(0,Ne.jsxs)("div",{children:[(0,Ne.jsxs)(HE,{type:"button",onClick:this.handleAddThumbnail,variant:"outlined","data-tip":!0,"data-for":"add_thumbimage_tooltip",children:[(0,Ne.jsx)(bo,{className:"inline-icon",icon:Ro,title:"Uploaded images (multiple allowed)."}),"Add a Thumbnail file"]}),(0,Ne.jsxs)("small",{id:"emailHelp",className:"form-text text-muted m-3",children:[(0,Ne.jsx)("span",{className:"text-danger inline-icon",children:(0,Ne.jsx)(bo,{icon:Do})})," Upload de-identified images only"]}),(0,Ne.jsx)(hT,{id:"add_thumbimage_tooltip",className:"tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Click here to attach a single thumbnail image."})})]})}),this.state.thumbnail.map((e=>(0,Ne.jsx)(mT,{id:e.id,file_name:e.file_name,description:e.description,ref:e.ref,error:e.error,readOnly:this.state.readOnly,formId:this.state.form_id,onFileChange:this.onFileChange,validate:this.validateThumbnailFile,onDelete:this.handleDeleteThumbnail,imageType:"thumbnail",show_description:!1},e.id)))]})})]}),this.state.submit_error&&(0,Ne.jsxs)("div",{className:"alert alert-danger col-sm-12",role:"alert",children:[(0,Ne.jsx)("p",{children:this.state.error_message_detail}),this.state.error_message]}),this.renderButtons(),this.state.editingEntity&&"public"===this.state.editingEntity.data_access_level&&this.state.read_only_state&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{className:"alert alert-warning text-center",role:"alert",children:"This entity is no longer editable. It was locked when it became publicly accessible when data associated with it was published."})})]})]}),(0,Ne.jsx)(AT,{show:this.state.GroupSelectShow,hide:this.hideGroupSelectModal,groups:this.state.groups,submit:this.handleSubmit,handleInputChange:this.handleInputChange}),(0,Ne.jsx)(Bl,{open:this.state.show_snack,onClose:this.closeSnack,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:6e3,message:this.state.snackmessage,action:(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)(Gi,{size:"small","aria-label":"close",color:"inherit",onClick:this.closeSnack,children:(0,Ne.jsx)(bo,{icon:zo,size:"2x"})})})}),(0,Ne.jsx)(Bl,{open:this.state.show_dirty_warning,anchorOrigin:{vertical:"top",horizontal:"center"},severity:"warning",message:(0,Ne.jsx)("span",{id:"client-snackbar",children:"You have made changes, please UPDATE to save."}),action:(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)(HE,{variant:"contained",color:"inherit",size:"small",onClick:this.snackCancel,children:"Cancel Changes"})})})]})}}const eI=ZT;function tI(e){return(0,qt.Ay)("MuiLoadingButton",e)}const rI=(0,Vt.A)("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),nI=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],oI=(0,Ht.Ay)(HE,{shouldForwardProp:e=>(e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e)(e)||"classes"===e,name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${rI.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${rI.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})((e=>{let{ownerState:t,theme:r}=e;return(0,Ft.A)({[`& .${rI.startIconLoadingStart}, & .${rI.endIconLoadingEnd}`]:{transition:r.transitions.create(["opacity"],{duration:r.transitions.duration.short}),opacity:0}},"center"===t.loadingPosition&&{transition:r.transitions.create(["background-color","box-shadow","border-color"],{duration:r.transitions.duration.short}),[`&.${rI.loading}`]:{color:"transparent"}},"start"===t.loadingPosition&&t.fullWidth&&{[`& .${rI.startIconLoadingStart}, & .${rI.endIconLoadingEnd}`]:{transition:r.transitions.create(["opacity"],{duration:r.transitions.duration.short}),opacity:0,marginRight:-8}},"end"===t.loadingPosition&&t.fullWidth&&{[`& .${rI.startIconLoadingStart}, & .${rI.endIconLoadingEnd}`]:{transition:r.transitions.create(["opacity"],{duration:r.transitions.duration.short}),opacity:0,marginLeft:-8}})})),iI=(0,Ht.Ay)("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.loadingIndicator,t[`loadingIndicator${(0,Wt.A)(r.loadingPosition)}`]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({position:"absolute",visibility:"visible",display:"flex"},"start"===r.loadingPosition&&("outlined"===r.variant||"contained"===r.variant)&&{left:"small"===r.size?10:14},"start"===r.loadingPosition&&"text"===r.variant&&{left:6},"center"===r.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled},"end"===r.loadingPosition&&("outlined"===r.variant||"contained"===r.variant)&&{right:"small"===r.size?10:14},"end"===r.loadingPosition&&"text"===r.variant&&{right:6},"start"===r.loadingPosition&&r.fullWidth&&{position:"relative",left:-10},"end"===r.loadingPosition&&r.fullWidth&&{position:"relative",right:-10})})),sI=i.forwardRef((function(e,t){const r=i.useContext(ME),n=(0,Ew.A)(r,e),o=(0,Ut.b)({props:n,name:"MuiLoadingButton"}),{children:s,disabled:a=!1,id:l,loading:u=!1,loadingIndicator:c,loadingPosition:d="center",variant:p="text"}=o,h=(0,Lt.A)(o,nI),f=(0,aA.A)(l),m=null!=c?c:(0,Ne.jsx)(A_,{"aria-labelledby":f,color:"inherit",size:16}),g=(0,Ft.A)({},o,{disabled:a,loading:u,loadingIndicator:m,loadingPosition:d,variant:p}),v=(e=>{const{loading:t,loadingPosition:r,classes:n}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${(0,Wt.A)(r)}`],endIcon:[t&&`endIconLoading${(0,Wt.A)(r)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${(0,Wt.A)(r)}`]},i=(0,$t.A)(o,tI,n);return(0,Ft.A)({},n,i)})(g),b=u?(0,Ne.jsx)(iI,{className:v.loadingIndicator,ownerState:g,children:m}):null;return(0,Ne.jsxs)(oI,(0,Ft.A)({disabled:a||u,id:f,ref:t},h,{variant:p,classes:v,ownerState:g,children:["end"===g.loadingPosition?s:b,"end"===g.loadingPosition?b:s]}))}));function aI(e){return(0,qt.Ay)("MuiFormGroup",e)}(0,Vt.A)("MuiFormGroup",["root","row","error"]);const lI=["className","row"],uI=(0,Ht.Ay)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),cI=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,i=(0,Lt.A)(r,lI),s=Xf({props:r,muiFormControl:Zf(),states:["error"]}),a=(0,Ft.A)({},r,{row:o,error:s.error}),l=(e=>{const{classes:t,row:r,error:n}=e,o={root:["root",r&&"row",n&&"error"]};return(0,$t.A)(o,aI,t)})(a);return(0,Ne.jsx)(uI,(0,Ft.A)({className:(0,zt.A)(l.root,n),ownerState:a,ref:t},i))}));function dI(e){return(0,qt.Ay)("MuiAlertTitle",e)}(0,Vt.A)("MuiAlertTitle",["root"]);const pI=["className"],hI=(0,Ht.Ay)(Yt,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}})),fI=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiAlertTitle"}),{className:n}=r,o=(0,Lt.A)(r,pI),i=r,s=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"]},dI,t)})(i);return(0,Ne.jsx)(hI,(0,Ft.A)({gutterBottom:!0,component:"div",ownerState:i,ref:t,className:(0,zt.A)(s.root,n)},o))})),mI=e=>{const t=te(),[r,n]=(0,i.useState)(e.open),[o]=(0,i.useState)(e.type),[s]=(0,i.useState)(e.uuid),[a,l]=(0,i.useState)(""),[u,c]=(0,i.useState)(!1),[d,p]=(0,i.useState)(""),[h,f]=(0,i.useState)(!1),m=()=>{n(!1)};return(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)(hT,{id:"revert_tooltip",className:"zindex-tooltip revertTooltip",place:"top",variant:"light",border:"#000000",effect:"solid",children:(0,Ne.jsxs)("p",{sx:{color:"black!important",maxWidth:"160px",fontSize:"inherent"},children:["Revert this ",(0,Ne.jsx)("span",{sx:{color:"red"},children:o})," back to ",(0,Ne.jsx)("span",{label:"New",className:"badge "+Yc("NEW"),children:"New"})," ",(0,Ne.jsx)("span",{label:"Valid",className:"badge "+Yc("VALID"),children:"Valid"})," ",(0,Ne.jsx)("br",{})," ",(0,Ne.jsx)("span",{label:"Invalid",className:"badge "+Yc("INVALID"),children:"Invalid"})," ",(0,Ne.jsx)("span",{label:"qa",className:"badge "+Yc("QA"),children:"QA"})," ",(0,Ne.jsx)("span",{label:"Submitted",className:"badge "+Yc("SUBMITTED"),children:"Submitted"}),"  ",(0,Ne.jsx)("br",{})," or ",(0,Ne.jsx)("span",{label:"Incomplete",className:"badge "+Yc("INCOMPLETE"),children:"Incomplete"})," status"]})}),(0,Ne.jsx)(HE,{variant:"outlined",onClick:()=>{n(!0)},"data-tip":!0,"data-for":"revert_tooltip",children:" Revert "}),(0,Ne.jsx)(Ka,{onClose:m,"aria-labelledby":"Revert-Dialog",open:r,children:(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsxs)(ol,{sx:{m:0,p:2},id:"customized-dialog-title",children:["Select ",o," Status"]}),(0,Ne.jsx)(Gi,{"aria-label":"close",onClick:m,sx:{position:"absolute",right:8,top:8},children:(0,Ne.jsx)($l.A,{})}),(0,Ne.jsxs)(tl,{dividers:!0,children:[u&&(0,Ne.jsxs)(pu,{severity:"error",children:[(0,Ne.jsx)(fI,{sx:{width:"auto",float:"left",marginRight:"10px",height:"95%"},children:"Error: "}),d]}),(0,Ne.jsxs)(Yt,{children:["Choose a status to revert this ",(0,Ne.jsx)("span",{className:"text-da nger",children:o})," to, then click [Revert] to apply your changes"]}),(0,Ne.jsx)(mE,{sx:{m:1,width:"100%"},children:(0,Ne.jsxs)(US,{id:"revert-status",value:a,onChange:e=>{l(e.target.value)},children:[(0,Ne.jsx)(Ax,{value:""}),(0,Ne.jsx)(Ax,{value:"New",children:"New"}),(0,Ne.jsx)(Ax,{value:"Valid",children:"Valid"}),(0,Ne.jsx)(Ax,{value:"Invalid",children:"Invalid"}),(0,Ne.jsx)(Ax,{value:"QA",children:"QA"}),(0,Ne.jsx)(Ax,{value:"Submitted",children:"Submitted"}),(0,Ne.jsx)(Ax,{value:"Incomplete",children:"Incomplete"})]})})]}),(0,Ne.jsxs)(WT,{children:[(0,Ne.jsx)(HE,{className:"btn btn-primary mr-1",onClick:m,children:"Close"}),(0,Ne.jsx)(sI,{className:"",loading:h,onClick:e=>(f(!0),void xd(s,{status:a},JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{f(!1),e.status<300?(console.debug("%c\u25c9 RESPULTD ","color:#00ff7b",e.results),t("../",{revertedUUID:s})):(console.debug("%c\u25c9 RESPONSE NOGOOD ","color:#00ff7b",e,e.results.error),c(!0),p(e.results.error))})).catch((e=>{console.debug("%c\u25c9 ERROR ","color:#ff005d",e)}))),variant:"outlined",children:"Revert"})]})]})})]})};function gI(e){return(0,qt.Ay)("MuiListItemButton",e)}const vI=(0,Vt.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),bI=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],yI=(0,Ht.Ay)(Hi,{shouldForwardProp:e=>(0,dl.A)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${vI.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${vI.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${vI.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${vI.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${vI.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},r.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===r.alignItems&&{alignItems:"flex-start"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.dense&&{paddingTop:4,paddingBottom:4})})),xI=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiListItemButton"}),{alignItems:n="center",autoFocus:o=!1,component:s="div",children:a,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:d,selected:p=!1,className:h}=r,f=(0,Lt.A)(r,bI),m=i.useContext(Iy),g=i.useMemo((()=>({dense:l||m.dense||!1,alignItems:n,disableGutters:u})),[n,m.dense,l,u]),v=i.useRef(null);(0,em.A)((()=>{o&&v.current&&v.current.focus()}),[o]);const b=(0,Ft.A)({},r,{alignItems:n,dense:g.dense,disableGutters:u,divider:c,selected:p}),y=(e=>{const{alignItems:t,classes:r,dense:n,disabled:o,disableGutters:i,divider:s,selected:a}=e,l={root:["root",n&&"dense",!i&&"gutters",s&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",a&&"selected"]},u=(0,$t.A)(l,gI,r);return(0,Ft.A)({},r,u)})(b),x=(0,ii.A)(v,t);return(0,Ne.jsx)(Iy.Provider,{value:g,children:(0,Ne.jsx)(yI,(0,Ft.A)({ref:x,href:f.href||f.to,component:(f.href||f.to)&&"div"===s?"button":s,focusVisibleClassName:(0,zt.A)(y.focusVisible,d),ownerState:b,className:(0,zt.A)(y.root,h)},f,{classes:y,children:a}))})}));var wI=r(5896),_I=r(555);(0,Ht.Ay)((e=>{let{className:t,...r}=e;return(0,Ne.jsx)(iR,{...r})}))((e=>{let{theme:t}=e;return{[`& .${JE.tooltip}`]:{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:220,fontSize:t.typography.pxToRem(12),border:"1px solid #dadde9"}}}));function SI(e){console.debug("ErrBox",e);var t=e.err.status;return console.debug("ErrBox",e),(0,Ne.jsxs)(pu,{severity:"error",variant:"filled",sx:{width:"100%",backgroundColor:"red"},children:[(0,Ne.jsx)(fI,{children:t}),e.err.message]})}function AI(e,t){return(0,Ne.jsxs)(Rr,{container:!0,spacing:2,sx:{display:"flex",justifyContent:"flex-start",textAlign:"left"},children:[e&&(0,Ne.jsx)(Rr,{item:!0,xs:6,children:CI(e,"Previous")}),t&&(0,Ne.jsx)(Rr,{item:!0,xs:6,children:CI(t,"Next")})]})}function CI(e,t){return(0,Ne.jsxs)(ws,{className:"p5",children:[(0,Ne.jsxs)(Yt,{sx:{backgroundColor:"#343a40",color:"#fff",padding:"2px 5px"},children:["Previous"===t?(0,Ne.jsx)(wI.A,{}):(0,Ne.jsx)(hi.A,{}),t," List Revisions"]}),e[0]&&(0,Ne.jsx)(Dy,{divider:!0,dense:!0,sx:{maxHeight:"140px",maxWidth:"auto",overflowY:"scroll",overflowX:"auto",flexDirection:"column",flexWrap:"inherit",padding:"0px",backgroundColor:"#f5f5f5"},children:e.map(((e,t)=>(0,Ne.jsxs)(xI,{sx:{width:"100%"},href:"/"+e.type+"/"+e.hubmapID,children:[(0,Ne.jsx)(Ok,{primary:e.hubmapID,sx:{padding:"2px 5px"}})," ",(0,Ne.jsx)(_I.A,{})]},t+1)))}),!e[0]&&(0,Ne.jsx)(Yt,{sx:{padding:"2px 5px",backgroundColor:"#f5f5f5"},children:"No Revisions Found"})]})}var kI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},EI=i.forwardRef((function(e,t){var r=e.align,n=void 0===r?"inherit":r,o=e.classes,s=e.className,a=e.color,l=void 0===a?"initial":a,u=e.component,c=e.display,d=void 0===c?"initial":c,p=e.gutterBottom,h=void 0!==p&&p,f=e.noWrap,m=void 0!==f&&f,g=e.paragraph,v=void 0!==g&&g,b=e.variant,y=void 0===b?"body1":b,x=e.variantMapping,w=void 0===x?kI:x,_=(0,gs.A)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=u||(v?"p":w[y]||kI[y])||"span";return i.createElement(S,(0,Ft.A)({className:(0,vs.A)(o.root,s,"inherit"!==y&&o[y],"initial"!==l&&o["color".concat((0,Fs.A)(l))],m&&o.noWrap,h&&o.gutterBottom,v&&o.paragraph,"inherit"!==n&&o["align".concat((0,Fs.A)(n))],"initial"!==d&&o["display".concat((0,Fs.A)(d))]),ref:t},_))}));const RI=(0,ys.A)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(EI);const jI=i.createContext();var OI="table",TI=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.component,s=void 0===o?OI:o,a=e.padding,l=void 0===a?"normal":a,u=e.size,c=void 0===u?"medium":u,d=e.stickyHeader,p=void 0!==d&&d,h=(0,gs.A)(e,["classes","className","component","padding","size","stickyHeader"]),f=i.useMemo((function(){return{padding:l,size:c,stickyHeader:p}}),[l,c,p]);return i.createElement(jI.Provider,{value:f},i.createElement(s,(0,Ft.A)({role:s===OI?null:"table",ref:t,className:(0,vs.A)(r.root,n,p&&r.stickyHeader)},h)))}));const II=(0,ys.A)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,Ft.A)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(TI);const PI=i.createContext();var NI={variant:"body"},MI="tbody",DI=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.component,s=void 0===o?MI:o,a=(0,gs.A)(e,["classes","className","component"]);return i.createElement(PI.Provider,{value:NI},i.createElement(s,(0,Ft.A)({className:(0,vs.A)(r.root,n),ref:t,role:s===MI?null:"rowgroup"},a)))}));const LI=(0,ys.A)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(DI);var FI=i.forwardRef((function(e,t){var r,n,o=e.align,s=void 0===o?"inherit":o,a=e.classes,l=e.className,u=e.component,c=e.padding,d=e.scope,p=e.size,h=e.sortDirection,f=e.variant,m=(0,gs.A)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),g=i.useContext(jI),v=i.useContext(PI),b=v&&"head"===v.variant;u?(n=u,r=b?"columnheader":"cell"):n=b?"th":"td";var y=d;!y&&b&&(y="col");var x=c||(g&&g.padding?g.padding:"normal"),w=p||(g&&g.size?g.size:"medium"),_=f||v&&v.variant,S=null;return h&&(S="asc"===h?"ascending":"descending"),i.createElement(n,(0,Ft.A)({ref:t,className:(0,vs.A)(a.root,a[_],l,"inherit"!==s&&a["align".concat((0,Fs.A)(s))],"normal"!==x&&a["padding".concat((0,Fs.A)(x))],"medium"!==w&&a["size".concat((0,Fs.A)(w))],"head"===_&&g&&g.stickyHeader&&a.stickyHeader),"aria-sort":S,role:r,scope:y},m))}));const zI=(0,ys.A)((function(e){return{root:(0,Ft.A)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n    ".concat("light"===e.palette.type?(0,bs.a)((0,bs.X4)(e.palette.divider,1),.88):(0,bs.e$)((0,bs.X4)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(FI);var BI=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.component,s=void 0===o?"div":o,a=(0,gs.A)(e,["classes","className","component"]);return i.createElement(s,(0,Ft.A)({ref:t,className:(0,vs.A)(r.root,n)},a))}));const $I=(0,ys.A)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(BI);var HI={variant:"head"},UI="thead",WI=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.component,s=void 0===o?UI:o,a=(0,gs.A)(e,["classes","className","component"]);return i.createElement(PI.Provider,{value:HI},i.createElement(s,(0,Ft.A)({className:(0,vs.A)(r.root,n),ref:t,role:s===UI?null:"rowgroup"},a)))}));const VI=(0,ys.A)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(WI);var qI=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.component,s=void 0===o?"tr":o,a=e.hover,l=void 0!==a&&a,u=e.selected,c=void 0!==u&&u,d=(0,gs.A)(e,["classes","className","component","hover","selected"]),p=i.useContext(PI);return i.createElement(s,(0,Ft.A)({ref:t,className:(0,vs.A)(r.root,n,p&&{head:r.head,footer:r.footer}[p.variant],l&&r.hover,c&&r.selected),role:"tr"===s?null:"row"},d))}));const GI=(0,ys.A)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:(0,bs.X4)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(qI);var QI=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=(0,gs.A)(e,["classes","className"]);return i.createElement(RI,(0,Ft.A)({gutterBottom:!0,component:"div",ref:t,className:(0,vs.A)(r.root,n)},o))}));const KI=(0,ys.A)((function(e){return{root:{fontWeight:e.typography.fontWeightMedium,marginTop:-2}}}),{name:"MuiAlertTitle"})(QI);class JI extends i.Component{constructor(){super(...arguments),this.state={newForm:this.props.newForm,contains_human_genetic_sequences:this.props.editingDataset?this.props.editingDataset.contains_human_genetic_sequences:void 0,editingDatasetProp:this.props.editingDataset?this.props.editingDataset:{},dataset_type:this.props.editingDataset?this.props.editingDataset.dataset_type:"",dtl_primary:[],dtl_all:[],dataset_info:"",description:"",dataTypeDropdown:[],display_doi:"",editingSource:[],is_primary:!1,source_uuid_list:[],source_uuid_type:"",source_uuid:void 0,source_uuids:[],status:"NEW",upload:[],writeable:!0,allGroups:this.props.allGroups?this.props.allGroups:{},assigned_to_group_name:"",ingest_task:"",groups:[],has_admin_priv:!1,has_submit_priv:!1,has_publish_priv:!1,has_version_priv:!1,has_manual_priv:!1,has_pipeline_testing_priv:!1,groupsToken:"",assay_type_primary:!0,data_type_dicts:this.props.dataTypeList,slist:[],changed:!1,showSubmitModal:!1,showRevertModal:!1,badge_class:"badge-purple",groups_dataprovider:[],GroupSelectShow:!1,lookUpCancelled:!1,LookUpShow:!1,other_dt:"",buttonSpinnerTarget:"",errorSnack:!1,popperOpen:!1,anchorEl:null,submitLoader:!1,disableSelectDatatype:!1,toggleStatusSet:!1,statusSetLabel:"Reset Status",newStatus:"",newVersion:!1,previousHID:void 0,nextHID:void 0,loadingPreviousVersions:!0,loadingNextVersions:!0,versioned:!1,previous_revision_uuid:void 0,has_other_datatype:!1,submitErrorResponse:"",submitErrorStatus:"",showFeedbackDialog:!1,feedbackDialog:{title:"",message:"",actions:[]},isValidData:!0,previousHubIDs:[],nextHubIDs:[],formErrors:{contains_human_genetic_sequences:"",dataset_type:"",lab_dataset_id:"",other_dt:"",source_uuid_list:"",source_uuid:""}},this.showModal=()=>{this.setState({show:!0})},this.launchSubmitModal=()=>{this.setState({showSubmitModal:!0})},this.hideModal=()=>{console.debug("%c\u2299 Hiding Modal","color:#00ff7b"),this.setState({GroupSelectShow:!1,buttonSpinnerTarget:""})},this.hideRevertModal=()=>{this.setState({showRevertModal:!1})},this.showErrorMsgModal=e=>{this.setState({errorMsgShow:!0,statusErrorMsg:e})},this.hideErrorMsgModal=()=>{this.setState({errorMsgShow:!1})},this.toggleFeedbackDialog=(e,t,r)=>{console.debug("%c\u25c9 toggleFeedback ","color:#00ff7b",e,t,r),this.setState({showFeedbackDialog:!this.state.showFeedbackDialog,feedbackDialog:{title:e||"",message:t||"",actions:r||[{label:"Close",action:()=>{this.clearFeedbackDialog()}}]}},(()=>{console.debug("%c\u25c9 FeedbackDialog","color:#00ff7b",this.state.showFeedbackDialog)}))},this.clearFeedbackDialog=()=>{console.debug("%c\u25c9 clearFeedbackDialog ","color:#00ff7b"),this.setState({showFeedbackDialog:!1,feedbackDialog:{title:"",message:"",actions:[]}},(()=>{console.debug("%c\u25c9 FeedbackDialog Cleared","color:#00ff7b")}))},this.hideConfirmDialog=()=>{this.setState({confirmDialog:!1,editingSource:[]})},this.toggleStatSetView=()=>{this.setState((e=>({statusSetLabel:"Reset Status"===e.statusSetLabel?"Cancel":"Reset Status",toggleStatusSet:!e.toggleStatusSet})))},this.hideGroupSelectModal=()=>{this.setState({GroupSelectShow:!1})},this.hideSubmitModal=()=>{this.setState({showSubmitModal:!1})},this.handleLookUpClick=()=>{this.state.lookUpCancelled||this.setState({LookUpShow:!0}),this.setState({lookUpCancelled:!1})},this.hideLookUpModal=()=>{this.setState({LookUpShow:!1})},this.cancelLookUpModal=()=>{this.setState({LookUpShow:!1,lookUpCancelled:!0})},this.handler=e=>{"Tab"===e.key&&(e.preventDefault(),this.state.collection_candidates.length>0&&this.setState({collection:this.state.collection_candidates[0],showCollectionsDropDown:!1}))},this.handleInputChange=e=>{const{name:t,value:r}=e.target;this.setState({changed:!0});const n={lab_dataset_id:"lab_dataset_id",contains_human_genetic_sequences:"yes"===r||"no"!==r&&void 0,description:"description",dataset_info:"dataset_info",status:"new_status",other_dt:"other_dt",newStatus:"newStatus",assigned_to_group_name:"assigned_to_group_name",ingest_task:"ingest_task",dt_select:{has_other_datatype:!1,dataset_type:r},groups:"selected_group"}[t];n?"object"===typeof n?this.setState(n):this.setState({[n]:r}):this.setState({[t]:r})},this.handleInputFocus=e=>{const{name:t,value:r}=e.target;if("collection"===t){let e=this.state.collections.filter((e=>e.name.toLowerCase().includes(r.toLowerCase())));this.setState({collection:r,showCollectionsDropDown:!0,collection_candidates:e})}},this.handleInputBlur=e=>{const{name:t}=e.target;if("collection"===t)this.setState({showCollectionsDropDown:!1})},this.handlePopoverOpen=e=>{console.debug("%c\u25c9 handlePopoverOpen ","color:#ffe921",e.currentTarget),this.setState({showRevertModal:!0})},this.handlePopoverClose=()=>{console.debug("%c\u25c9 handlePopoverClose ","color:#ffe921"),this.setState({popperOpen:!1,anchorEl:null})},this.handleCollectionClick=e=>{this.setState({collection:e,showCollectionsDropDown:!1})},this.handleSelectClick=e=>{this.state.selectedSource!==e.row.uuid&&this.setState({selectedSource:e.row.uuid},(()=>{var t=this.state.source_uuid_list;t.push(e.row),this.setState({source_uuid:e.row.hubmap_id,source_uuid_list:t,slist:t,source_entity:e.row,LookUpShow:!1}),this.hideLookUpModal()}))},this.sourceRemover=e=>{var t=this.state.source_uuid_list;t=t.filter((t=>t.uuid!==e.uuid)),this.setState({source_uuid_list:t,slist:t},(()=>{}))},this.renderGroupAssignment=()=>(0,Ne.jsxs)(US,{fullWidth:!0,labelid:"group_label",id:"assigned_to_group_name",name:"assigned_to_group_name",label:"Assigned to Group Name",value:this.state.assigned_to_group_name,onChange:e=>this.handleInputChange(e),children:[(0,Ne.jsx)(Ax,{value:""}),this.props.allGroups.map(((e,t)=>(0,Ne.jsx)(Ax,{value:Object.values(e)[0],children:Object.values(e)[0]},t+1)))]}),this.renderSources=()=>{if(this.state.source_uuid_list||!1===this.props.newForm)return(0,Ne.jsxs)("div",{className:"w-100",children:[(0,Ne.jsxs)("label",{htmlFor:"source_uuid_list",children:["Source(s) ",(0,Ne.jsx)("span",{className:"text-danger px-2",children:"*"})]}),(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"source_uuid_tooltip"}),(0,Ne.jsx)(hT,{id:"source_uuid_tooltip",className:"zindex-tooltip",place:"right",type:"info",effect:"solid",children:(0,Ne.jsxs)("p",{children:["The source tissue samples or data from which this data was derived.  ",(0,Ne.jsx)("br",{}),"At least ",(0,Ne.jsx)("strong",{children:"one source "}),"is required, but multiple may be specified."]})}),(0,Ne.jsx)($I,{component:ws,style:{maxHeight:450},className:this.errorClass(this.state.formErrors.source_uuid_list),children:(0,Ne.jsxs)(II,{"aria-label":"Associated Datasets",size:"small",className:"table table-striped table-hover mb-0",children:[(0,Ne.jsx)(VI,{className:"thead-dark font-size-sm",children:(0,Ne.jsxs)(GI,{className:"   ",children:[(0,Ne.jsx)(zI,{children:" Source ID"}),(0,Ne.jsx)(zI,{component:"th",children:"Submission ID"}),(0,Ne.jsx)(zI,{component:"th",children:"Subtype"}),(0,Ne.jsx)(zI,{component:"th",children:"Group Name"}),(0,Ne.jsx)(zI,{component:"th",children:"Status"}),(0,Ne.jsx)(zI,{component:"th",align:"right",children:"Action"})]})}),(0,Ne.jsx)(LI,{children:this.state.source_uuid_list.map(((e,t)=>(0,Ne.jsxs)(GI,{className:"row-selection",children:[(0,Ne.jsx)(zI,{className:"clicky-cell",scope:"row",children:e.hubmap_id}),(0,Ne.jsxs)(zI,{className:"clicky-cell",scope:"row",children:[" ",e.submission_id&&e.submission_id," "]}),(0,Ne.jsx)(zI,{className:"clicky-cell",scope:"row",children:e.display_subtype}),(0,Ne.jsx)(zI,{className:"clicky-cell",scope:"row",children:e.group_name}),(0,Ne.jsx)(zI,{className:"clicky-cell",scope:"row",children:e.status&&(0,Ne.jsxs)("span",{className:"w-100 badge "+Yc(e.status,e.uuid),children:[" ",e.status]})}),(0,Ne.jsxs)(zI,{className:"clicky-cell",align:"right",scope:"row",children:[this.state.writeable&&"Multi-Assay Split"!==this.props.editingDataset.creation_action&&"Central Process"!==this.props.editingDataset.creation_action&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)(bo,{className:"inline-icon interaction-icon ",icon:Co,color:"red",onClick:()=>this.sourceRemover(e,t)})}),(!this.state.writeable||"Multi-Assay Split"===this.props.editingDataset.creation_action||"Central Process"===this.props.editingDataset.creation_action)&&(0,Ne.jsx)("small",{className:"text-muted",children:"N/A"})]})]},e.hubmap_id+""+t)))})]})}),this.state.writeable&&"Multi-Assay Split"!==this.props.editingDataset.creation_action&&"Central Process"!==this.props.editingDataset.creation_action&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsxs)(mr,{className:"mt-2 w-100",width:"100%",display:"flex",children:[(0,Ne.jsx)(mr,{p:1,className:"m-0  text-right",flexShrink:0,children:(0,Ne.jsxs)(HE,{variant:"contained",type:"button",size:"small",className:"btn btn-neutral",onClick:()=>this.handleLookUpClick(),children:["Add ",this.state.source_uuids&&this.state.source_uuids.length>=1&&"Another"," Source",(0,Ne.jsx)(bo,{className:"fa button-icon m-2",icon:Lo})]})}),(0,Ne.jsx)(mr,{p:1,width:"100%",children:this.errorClass(this.state.formErrors.source_uuid_list)&&(0,Ne.jsxs)(Ws,{severity:"error",width:"100% ",children:[this.state.formErrors.source_uuid_list,"  ",this.state.formErrors.source_uuid]})})]})})]});this.state.writeable&&this.state.editingDataset},this.handleNewVersion=()=>{this.setState({newVersion:!0}),this.handleSubmit("newversion")},this.handleVersionNavigate=e=>{"next"===e?window.history.pushState(null,"","/dataset/"+this.props.editingDataset.next_revision_uuid):window.history.pushState(null,"","/dataset/"+this.props.editingDataset.previous_revision_uuid),window.location.reload()},this.handleAddNewCollection=()=>{this.setState({AddCollectionShow:!0})},this.handleClickOutside=e=>{this.setState({showCollectionsDropDown:!1})},this.handleCancel=()=>{this.props&&this.props.handleCancel?this.props.handleCancel():window.history.back()},this.handleReprocess=()=>{this.setState({submit_error:!0,submitting:!1,submitErrorResponse:"Reprocessing feature not implemented",buttonSpinnerTarget:""},(()=>{}))},this.handleButtonClick=(e,t)=>{this.setState({new_status:e,buttonState:{i:!0}},(()=>{this.handleSubmit(e)}))},this.handleDatasetSelect=e=>{e.preventDefault(),window.history.pushState(null,"","/upload/"+this.props.editingDataset.upload.uuid),window.location.reload()},this.handleStatusSet=e=>{this.setState({submittingUpdate:!0});var t=this.state.newStatus;xd(this.props.editingDataset.uuid,{status:t},JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status<300?(this.setState({submit_error:!1,submitting:!1,submittingUpdate:!1}),this.props.onUpdated(e.results)):this.setState({submit_error:!0,submitting:!1,submittingUpdate:!1,submitErrorResponse:e.results.statusText})})).catch((e=>{this.setState({submit_error:!0,submitting:!1})}))},this.handleSubmit=e=>{this.setState({submitting:!0}),this.validateForm().then((t=>{if(t)if((!this.props.editingDataset||this.props.editingDataset.length<=0||!this.props.editingDataset.uuid)&&this.state.groups.length>1&&!this.state.GroupSelectShow)this.setState({GroupSelectShow:!0});else{this.setState({GroupSelectShow:!1,submitting:!0});let t={lab_dataset_id:this.state.lab_dataset_id,contains_human_genetic_sequences:this.state.contains_human_genetic_sequences,description:this.state.description,dataset_info:this.state.dataset_info};if(this.state.has_admin_priv&&(console.debug("%c\u2299","color:#8b1fff",this.state.assigned_to_group_name,this.state.ingest_task),this.state.assigned_to_group_name&&this.state.assigned_to_group_name.length>0&&(t.assigned_to_group_name=this.state.assigned_to_group_name),this.state.ingest_task&&this.state.ingest_task.length>0&&(t.ingest_task=this.state.ingest_task)),console.debug("%c\u2b57 Data","color:#00ff7b",t),this.state.source_uuid_list&&this.state.source_uuid_list.length>0){let e=this.state.source_uuid_list.map((e=>e.uuid||e.source_uuid));e&&"Multi-Assay Split"!==this.props.editingDataset.creation_action&&"Central Process"!==this.props.editingDataset.creation_action&&(t.direct_ancestor_uuids=e)}JSON.parse(localStorage.getItem("info")).groups_token;if(this.props.editingDataset&&!this.props.newForm)if("newversion"===e)t.previous_revision_uuid=this.props.editingDataset.uuid,this.state.lab_dataset_id&&(t.lab_dataset_id=this.state.lab_dataset_id),this.state.selected_group&&this.state.selected_group.length>0?t.group_uuid=this.state.selected_group:t.group_uuid=this.state.groups_dataprovider[0].uuid,Vc(JSON.stringify(t),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status<300?(this.setState({display_doi:e.results.display_doi}),Sd(e.results.uuid,this.state.groupsToken).then((t=>{this.setState({globus_path:t.results},(()=>{this.props.onCreated({entity:e.results,globus_path:t.results}),this.onChangeGlobusURL(e.results,t.results)}))})).catch((e=>{e.response&&401===e.response.status&&localStorage.setItem("isAuthenticated",!1)}))):this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e.results.data.error,buttonSpinnerTarget:""},(()=>{}))})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e,buttonSpinnerTarget:""},(()=>{}))}));else if("published"===e)(function(e,t){const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};let n=`https://ingest.api.hubmapconsortium.org/datasets/${e}/publish`;return _u().put(n,t,r).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>({error:e})))})(this.props.editingDataset.uuid,this.JSON.stringify(t)).then((e=>{this.props.onUpdated(e.data)})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e.result.data,buttonSpinnerTarget:""})}));else if("submit"===e){xd(this.props.editingDataset.uuid,JSON.stringify({status:"Submitted"}),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{console.debug("entity_api_update_entity response",e);var t={message:"Dataset has been submitted ("+("https://ingest.hubmapconsortium.org/dataset/"+this.props.editingDataset.uuid)+")"};Kc(JSON.parse(localStorage.getItem("info")).groups_token,t).then((t=>{console.debug("slackRes",t),e.status<300?(this.setState({submit_error:!1,submitting:!1}),console.debug("submitting"),this.props.onUpdated(e.results)):(this.setState({submit_error:!0,submitting:!1,submitLoader:!1,submitErrorResponse:e,buttonSpinnerTarget:""}),this.props.reportError(e))})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitLoader:!1,submitErrorResponse:e.result.data,buttonSpinnerTarget:""})}))})).catch((e=>{this.props.reportError(e),this.setState({submit_error:!0,submitting:!1,submitLoader:!1,submitErrorResponse:e.result.data,buttonSpinnerTarget:""})}))}else"processing"===e?(this.setState({submit_error:!1},(()=>{})),qc(this.props.editingDataset.uuid,JSON.stringify(t),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(e.status<300)this.props.onUpdated(e.results);else{var t="";console.debug("err",e,e.error),e.err?t=e.err.response.status+" "+e.err.response.statusText:e.error&&(t=e.error.response.status+" "+e.error.response.statusText);var r="Uncaptured Error";e.err&&e.err.response.data&&(r=e.err.response.data),e.error&&e.error.response.data&&(r=e.error.response.data),this.setState({submit_error:!0,submitting:!1,buttonSpinnerTarget:"",submitErrorStatus:t,submitErrorResponse:r})}})).catch((e=>{this.props.reportError(e),this.setState({submit_error:!0,submitting:!1,submitLoader:!1,submitErrorResponse:e,submitErrorStatus:e,buttonSpinnerTarget:""})}))):xd(this.props.editingDataset.uuid,JSON.stringify(t),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status<300?(this.setState({submit_error:!1,submitting:!1}),this.props.onUpdated(e.results)):this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e.results.statusText,buttonSpinnerTarget:""})})).catch((e=>{this.props.reportError(e),this.setState({submit_error:!0,submitting:!1,submitLoader:!1,submitErrorResponse:e.result.data,buttonSpinnerTarget:""})}));else t.dataset_type=this.state.dataset_type,this.state.lab_dataset_id&&(t.lab_dataset_id=this.state.lab_dataset_id),this.state.selected_group&&this.state.selected_group.length>0?t.group_uuid=this.state.selected_group:t.group_uuid=this.state.groups_dataprovider[0].uuid,Vc(JSON.stringify(t),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status<300?(this.setState({display_doi:e.results.display_doi}),Sd(e.results.uuid,this.state.groupsToken).then((t=>{this.setState({globus_path:t.results},(()=>{this.props.onCreated({entity:e.results,globus_path:t.results}),this.onChangeGlobusURL(e.results,t.results)}))})).catch((e=>{e.response&&401===e.response.status&&(localStorage.setItem("isAuthenticated",!1),window.location.reload())}))):this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e.results.data.error,buttonSpinnerTarget:""},(()=>{}))})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e,buttonSpinnerTarget:""},(()=>{}))}))}else this.setState({submit_error:!0,submitting:!1,buttonSpinnerTarget:""})})).catch((e=>{console.debug("validateForm err",e),this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e,buttonSpinnerTarget:""},(()=>{}))}))},this.handleSaveCheck=()=>{this.state.changed?this.toggleFeedbackDialog("Continue Without Saving","You have unsaved changes. Are you sure you want to continue without saving?",[{label:"Continue",action:()=>{this.handleSubmitForTesting()}},{label:"Save",action:()=>{this.handleSubmitForTesting()}},{label:"Close",action:()=>{this.clearFeedbackDialog("","","")}}]):this.handleSubmitForTesting()},this.handleSubmitForTesting=()=>{console.debug("%c\u25c9 Submitting for Testing ","color:#00ff7b"),function(e,t){const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};let n=`https://ingest.api.hubmapconsortium.org/datasets/${t.uuid}/submit-for-pipeline-testing`;return console.debug("%c\u25c9 url ","color:#00ff7b",n),_u().post(n,{},r).then((e=>{console.debug("ingest_api_pipeline_test_submit",e);let t=e.data;return{status:e.status,results:t}})).catch((e=>(console.debug("%c\u2b57  ingest_api_pipeline_test_submit","color:#ff005d",e),{error:e})))}(JSON.parse(localStorage.getItem("info")).groups_token,{uuid:this.props.editingDataset.uuid}).then((e=>{console.debug("%c\u25c9  SUBMITTED","color:#00ff7b",e);let t="",r="";200===e.status?(r="Submitted for Testing",t="Dataset submitted for test processing"):500===e.status?(r="Error",t="Unexpected error occurred, please ask an admin to check the ingest-api logs."):(r="Submission Response: "+e.status,t=e.results),this.toggleFeedbackDialog(r,t,[{label:"Close",action:()=>{this.clearFeedbackDialog()}}])})).catch((e=>{this.setState({submit_error:!0,submitting:!1})}))},this.renderManualStatusControl=()=>(0,Ne.jsxs)("div",{className:"mt-1",children:[this.state.toggleStatusSet&&(0,Ne.jsxs)(HE,{variant:"contained",className:"mx-1",onClick:()=>this.handleStatusSet(),children:[this.state.submitting&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.submittingUpdate&&"Update"]}),(0,Ne.jsx)(pi,{in:this.state.toggleStatusSet,className:"col-7",children:(0,Ne.jsxs)(cI,{controlId:"status",children:[(0,Ne.jsxs)(US,{native:!0,size:"small",name:"newStatus",className:"form-select col-3 mt-3 ",required:!0,"aria-label":"status-select",value:this.state.newStatus,id:"newStatus",onChange:this.handleInputChange,children:[(0,Ne.jsx)("option",{value:"",children:"----"}),(0,Ne.jsx)("option",{children:"New"}),(0,Ne.jsx)("option",{children:"Submitted"})]}),(0,Ne.jsx)(wE,{children:"Select the desired status, then click [Update] to apply your changes."})]})})]}),this.renderSubmitModal=()=>(0,Ne.jsxs)(Ka,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs","aria-labelledby":"submit-dialog",open:this.state.showSubmitModal,children:[(0,Ne.jsxs)(tl,{children:[(0,Ne.jsx)("h4",{children:"Preparing to Submit"}),(0,Ne.jsxs)("div",{children:["  Has all data for this dataset been ",(0,Ne.jsx)("br",{}),"1 ) validated locally, and  ",(0,Ne.jsx)("br",{}),"2 ) uploaded to the globus folder?"]})]}),(0,Ne.jsxs)(WT,{children:[(0,Ne.jsx)(sI,{loading:this.state.submitting,sx:{width:"150px"},loadingIndicator:"Submitting...",variant:"outlined",onClick:()=>this.handleSubmit("submit"),submitLoader:!0,children:"Submit"}),(0,Ne.jsx)(HE,{className:"btn btn-secondary",onClick:this.hideSubmitModal,children:"Cancel"})]})]}),this.renderFeedbackModall=()=>(0,Ne.jsxs)(Ka,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs","aria-labelledby":"feedback-dialog",open:this.state.showFeedbackDialog,children:[(0,Ne.jsxs)(tl,{children:[(0,Ne.jsx)("h4",{children:this.state.feedbackDialog.title}),(0,Ne.jsx)("div",{children:this.state.feedbackDialog.message})]}),(0,Ne.jsx)(WT,{children:(0,Ne.jsx)(HE,{onClick:()=>this.toggleFeedbackDialog(),variant:"contained",color:"primary",children:"Close"})})]})}componentDidMount(){this.state.has_admin_priv,this.state.has_submit_priv,this.state.writeable,this.state.status.toUpperCase(),this.props.newForm;this.props.editingDataset&&this.props.editingDataset.assigned_to_group_name&&this.setState({assigned_to_group_name:this.props.editingDataset.assigned_to_group_name}),this.props.editingDataset&&this.props.editingDataset.ingest_task&&this.setState({ingest_task:this.props.editingDataset.ingest_task}),function(){const e={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};return _u().get("https://ingest.api.hubmapconsortium.org/has-pipeline-test-privs",e).then((e=>{console.debug("ingest_api_pipeline_test_privs",e);let t=e.data;return{status:e.status,results:t}})).catch((e=>(console.debug("%c\u2b57  ingest_api_pipeline_test_privs","color:#ff005d",e),{error:e})))}(JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status>=200&&e.status<301&&this.setState({has_pipeline_testing_priv:e.results.has_pipeline_test_privs})})).catch((e=>{e.response&&401===e.response.status?(this.props.reportError(e),localStorage.setItem("isAuthenticated",!1)):e.status&&this.props.reportError(e)})),document.addEventListener("click",this.handleClickOutside);var e=void 0;try{var t=JSON.parse(localStorage.getItem("info")).groups_token;this.setState({groupsToken:t})}catch{t=""}if(localStorage.getItem("info")){JSON.parse(localStorage.getItem("info")).groups_token}else localStorage.setItem("isAuthenticated",!1);if(this.props.editingDataset&&(this.props.editingDataset.hasOwnProperty("creation_action")&&"Create Dataset Activity"===this.props.editingDataset.creation_action&&this.setState({is_primary:!0}),this.props.editingDataset.previous_revision_uuids||this.setState({loadingPreviousVersions:!1}),this.props.editingDataset.next_revision_uuids||this.setState({loadingNextVersions:!1}),this.props.editingDataset.uuid&&Uc(this.props.editingDataset.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status<300&&(console.debug("Perms",e.results),this.setState({writeable:e.results.has_write_priv,has_write_priv:e.results.has_write_priv,has_submit_priv:e.results.has_submit_priv,has_publish_priv:e.results.has_publish_priv,has_admin_priv:e.results.has_admin_priv}),Wc(this.props.editingDataset.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{console.debug("Perms SL",e.results),this.setState({has_version_priv:e.results.has_write_priv}),!this.state.has_admin_priv||"ERROR"!==this.state.status.toUpperCase()&&"INVALID"!==this.state.status.toUpperCase()||this.setState({has_manual_priv:!0})})).catch((e=>{})))}))),zc().then((e=>{const t=e.results.filter((e=>!0===e.data_provider));this.setState({groups:t,groups_dataprovider:t},(()=>{}))})).catch((e=>{e.response&&401===e.response.status?(this.props.reportError(e),localStorage.setItem("isAuthenticated",!1)):e.status&&localStorage.setItem("isAuthenticated",!1)})),this.props.editingDataset&&!this.props.newForm){try{this.setState({source_uuid_list:this.assembleSourceAncestorData(this.props.editingDataset.direct_ancestors)})}catch(o){console.debug("%c\u2b57 ancestorList","color:#ff005d",o)}""!==this.props.editingDataset&&this.props.editingDataset?(console.debug("EDITING DATASET FOUND",this.props.editingDataset),e=this.props.editingDataset.contains_human_genetic_sequences):(console.debug("EDITINGDATASET UNDEFINED"),e=void 0);if(this.props.editingDataset.direct_ancestors&&(console.debug("%c\u2299 direct_ancestors","color:#5900FF",this.props.editingDataset.direct_ancestors),this.assembleSourceAncestorData(this.props.editingDataset.direct_ancestors)),this.setState({status:this.props.editingDataset.hasOwnProperty("status")?this.props.editingDataset.status.toUpperCase():"NEW",display_doi:this.props.editingDataset.hubmap_id,lab_dataset_id:this.props.editingDataset.lab_dataset_id,source_uuid:this.getSourceAncestor(this.props.editingDataset.direct_ancestors),source_entity:this.getSourceAncestorEntity(this.props.editingDataset.direct_ancestors),slist:this.getSourceAncestorEntity(this.props.editingDataset.direct_ancestors),contains_human_genetic_sequences:e,description:this.props.editingDataset.description,dataset_info:this.props.editingDataset.dataset_info,previous_revision_uuid:this.props.editingDataset.hasOwnProperty("previous_revision_uuid")?this.props.editingDataset.previous_revision_uuid:void 0,errorMsgShow:!("error"!==this.props.editingDataset.status.toLowerCase()||!this.props.editingDataset.message),statusErrorMsg:this.props.editingDataset.message},(()=>{this.setState({badge_class:Yc(this.state.status.toUpperCase())}),Sd(this.props.editingDataset.uuid,this.state.groupsToken).then((e=>{this.setState({globus_path:e.results})})).catch((e=>{this.setState({globus_path:"",globus_path_tips:"Globus URL Unavailable"}),e.response&&401===e.response.status&&(localStorage.setItem("isAuthenticated",!1),window.location.reload())}))})),this.setState({dataset_type:this.props.editingDataset.dataset_type,dataTypeDropdown:this.props.dtl_all}),this.props.editingDataset&&this.props.editingDataset.previous_revision_uuids&&this.props.editingDataset.previous_revision_uuids.length>0){this.setState({versioned:!0});var r=[];this.props.editingDataset.previous_revision_uuids.forEach((function(e,t){yd(e,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{t.results.hubmap_id?r.push({type:t.results.entity_type,hubmapID:t.results.hubmap_id}):r.push(e)})).catch((t=>{r.push(e),console.debug("UUIDCheck",t),this.props.reportError(t)}))})),this.setState({previousHubIDs:r},(()=>{this.setState({loadingPreviousVersions:!1})}))}if(this.props.editingDataset&&this.props.editingDataset.next_revision_uuids&&this.props.editingDataset.next_revision_uuids.length>0){this.setState({versioned:!0});var n=[];this.props.editingDataset.next_revision_uuids.forEach((function(e,t){yd(e,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{t.results.hubmap_id?n.push({type:t.results.entity_type,hubmapID:t.results.hubmap_id}):n.push(e)})).catch((t=>{console.debug("UUIDCheck",t),this.props.reportError(t),n.push(e)}))})),this.setState({nextHubIDs:n},(()=>{this.setState({loadingNextVersions:!1})}))}}}uncapError(e){var t="Uncaptured Error";e.err&&e.err.response.data&&(t=e.err.response.data),e.error&&e.error.response.data&&(t=e.error.response.data),"string"===typeof e&&(t=e),this.setState({showSubmitModal:!1,submit_error:!0,submitting:!1,submitErrorResponse:t,buttonSpinnerTarget:""},(()=>{this.props.reportError()}))}componentWillUnmount(){document.removeEventListener("click",this.handleClickOutside,!0)}showConfirmDialog(e,t){this.setState({confirmDialog:!0,editingSource:e,editingSourceIndex:t})}validateForm(){return console.debug("validateForm"),new Promise(((e,t)=>{let r=!0;if(gT(this.state.source_uuid_list)?this.setState((e=>({formErrors:{...e.formErrors,source_uuid_list:""}}))):(this.setState((e=>({formErrors:{...e.formErrors,source_uuid_list:"At least one Source is required"}}))),r=!1,e(r)),this.state.dataset_type&&(0===this.state.dataset_type.size||""===this.state.dataset_type)||!this.state.dataset_type?(this.setState((e=>({formErrors:{...e.formErrors,dataset_type:"required"}}))),r=!1,e(r)):this.setState((e=>({formErrors:{...e.formErrors,dataset_type:""}}))),this.setState({isValidData:r}),!r){this.setState({submit_error:!0,submitting:!1,buttonSpinnerTarget:""});this.state.formErrors}e(r)}))}assembleSourceAncestorData(e){var t="";return e.forEach((function(r,n){t=function(e){var t="",r=e.entity_type;if("Sample"===r&&"sample_category"in e)if("organ"===e.sample_category.toLowerCase()){if(!("organ"in e))throw new Error("Missing Organ key for  Sample with uuid: {entity['uuid']}");var n=e.organ;Ic().then((e=>{console.debug("%c\u2299 generate_subtype","color:#8400FF",e[n]),t=e[n]})).catch((e=>e))}else t=e.sample_category.toString();else if("Dataset"===r&&"dataset_type"in e)t=e.dataset_type.toString();else{if("Upload"===r)return"Data Upload";t=Tc(r.toString())}return t}(r),console.debug("dst",t),e[n].display_subtype=t})),this.setState({source_uuid_list:e}),e}getSourceAncestor(e){try{return e[0].hubmap_id}catch{}return""}getSourceAncestorTypes(e){return this.props.editingDataset.direct_ancestors.map((e=>e.entity_type)).includes(e)}getSourceAncestorEntity(e){try{return e[0]}catch{}return""}generateDisplaySourceId(e){if(e.length>1){for(var t="",r=1;r<e.length;r++){var n=e[r-1];"string"!=typeof e[r-1]&&(n=e[r-1].hubmap_id);var o=n.substring(n.lastIndexOf("-")+1,n.length),i=e[r];if("string"!=typeof e[r]&&(i=e[r].hubmap_id),i.substring(i.lastIndexOf("-")+1,i.length)-o!==1){t="subset";break}}let s=e[0].hubmap_id?e[0].hubmap_id:e[0],a=e[e.length-1].hubmap_id?e[e.length-1].hubmap_id:e[e.length-1],l=s.substring(0,s.lastIndexOf("-")+1),u="",c="",d=s;return u=s.substring(s.lastIndexOf("-")+1,s.length),c=a.substring(a.lastIndexOf("-")+1,a.length),d=`${l}[${u} through ${c}]`,"subset"===t&&(d=`a subset of ${l}[ between ${u} and ${c}]`),d}return e&&e[0]&&e[0].hubmap_id?e[0].hubmap_id:e[0]}renderButtonOverlay(){return(0,Ne.jsx)(Ne.Fragment,{})}renderDialogActionButtons(e){console.debug("%c\u25c9 renderDialogActionButtons ","color:#00ff7b",e),e&&e.length>1&&e.map(((t,r)=>(console.debug("%c\u25c9 innermap ACTION ","color:#00ff7b",t,e[r].action),(0,Ne.jsx)(HE,{className:"btn btn-primary",variant:"contained",onClick:e[r].action,children:e[r].label},r))))}renderSubmitForTestingButton(){return(0,Ne.jsx)(HE,{style:{width:"230px"},className:"btn btn-primary mr-1",variant:"contained",fullWidth:!0,onClick:()=>this.handleSubmitForTesting(),children:"Submit for Testing"})}renderButtons(){this.state.has_write_priv,this.state.has_admin_priv,this.state.has_manual_priv,this.state.has_version_priv,this.props.newForm,this.state.status,this.state.status;return!0===this.state.has_admin_priv&&(!this.state.previous_revision_uuid||void 0===this.state.previous_revision_uuid)&&this.state.status.toUpperCase(),!1===this.state.writeable?(0,Ne.jsxs)("div",{className:"buttonWrapRight",children:[(this.state.has_pipeline_testing_priv||this.state.has_admin_priv)&&!0===this.state.is_primary&&(0,Ne.jsx)("div",{children:this.renderSubmitForTestingButton()}),this.cancelButton()]}):["NEW","INVALID","REOPENED","ERROR","SUBMITTED"].includes(this.state.status.toUpperCase())?(0,Ne.jsxs)("div",{className:"buttonWrapRight",children:[this.aButton(this.state.status.toLowerCase(),"Save"),this.state.has_admin_priv&&("NEW"===this.state.status.toUpperCase()||"SUBMITTED"===this.state.status.toUpperCase())&&this.aButton("processing","Process"),this.state.has_write_priv&&!this.props.newForm&&"NEW"===this.state.status.toUpperCase()&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)(HE,{className:"btn btn-primary mr-1",variant:"contained",onClick:()=>this.launchSubmitModal(),children:"Submit"})}),(this.state.has_pipeline_testing_priv||this.state.has_admin_priv)&&!0===this.state.is_primary&&(0,Ne.jsx)("div",{children:this.renderSubmitForTestingButton()}),this.cancelButton()]}):"PUBLISHED"===this.state.status.toUpperCase()?(0,Ne.jsxs)("div",{className:"buttonWrapRight",children:[this.aButton("reopened","Reopen"),this.aButton("unpublished","UnPublish"),(this.state.has_pipeline_testing_priv||this.state.has_admin_priv)&&!0===this.state.is_primary&&(0,Ne.jsx)("div",{children:this.renderSubmitForTestingButton()}),this.cancelButton()]}):(0,Ne.jsxs)("div",{className:"buttonWrapRight",children:[(this.state.has_pipeline_testing_priv||this.state.has_admin_priv)&&!0===this.state.is_primary&&(0,Ne.jsx)("div",{children:this.renderSubmitForTestingButton()}),this.cancelButton()]})}renderListItem(e){console.debug("%c\u25c9 data ","color:#00ff7b",e),yd(e,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>(console.debug("%c\u25c9 response ","color:#00ff7b",t.results.hubmap_id),t.results.hubmap_id?t.results.hubmap_id:e))).catch((e=>{console.debug("UUIDCheck",e),this.props.reportError(e)}))}renderVersionNav(){return AI(this.state.previousHubIDs,this.state.nextHubIDs)}cancelButton(){return(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{children:(0,Ne.jsx)(HE,{type:"button",variant:"outlined",onClick:()=>this.handleCancel(),children:"Cancel"})})})}aButton(e,t,r){return(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{children:(0,Ne.jsxs)(HE,{type:"button",name:"button-"+t,variant:"contained",disabled:this.state.submitting,onClick:r=>{this.setState({buttonSpinnerTarget:t.toLowerCase()},(()=>{})),this.handleButtonClick(e)},"data-status":e.toLowerCase(),children:[this.state.buttonSpinnerTarget===t.toLowerCase()&&(0,Ne.jsx)("span",{children:(0,Ne.jsx)(bo,{icon:Bo,spin:!0})}),this.state.buttonSpinnerTarget!==t.toLowerCase()&&t]})})})}reprocessButton(){return(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{children:(0,Ne.jsxs)(HE,{variant:"contained",type:"button",disabled:this.state.submitting,onClick:()=>this.handleReprocess(),"data-status":this.state.status.toLowerCase(),children:[this.state.submitting&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.submitting&&"Reprocess"]})})})}errorClass(e){return"valid"===e?"is-valid":0===e.length?"":"is-invalid"}onChangeGlobusLink(e,t){const{name:r,display_doi:n,doi:o}=t;this.setState({globus_url:e,name:r,display_doi:n,doi:o,createSuccess:!0})}onChangeGlobusURL(){this.props.changeLink(this.state.globus_path,{name:this.state.lab_dataset_id,display_doi:this.state.display_doi,doi:this.state.doi})}renderDatsetTypeDropdown(){return(0,Ne.jsxs)(US,{native:!0,fullWidth:!0,name:"dt_select",className:"form-select",value:this.state.dataset_type,id:"dt_select",labelid:"type_label",label:"Dataset Type",onChange:this.handleInputChange,disabled:!this.state.writeable||this.state.disableSelectDatatype,children:[(0,Ne.jsx)("option",{value:""}),this.props.dtl_all.map(((e,t)=>(0,Ne.jsx)("option",{value:e.dataset_type,children:e.dataset_type},t+1)))]})}render(){return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsxs)("form",{className:"expanded-form",children:[(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsxs)("div",{className:"col-md-6",children:[(0,Ne.jsxs)("h3",{children:[(0,Ne.jsx)("span",{className:"badge "+this.state.badge_class,style:{cursor:"pointer"},onClick:()=>this.showErrorMsgModal(this.props.editingDataset.pipeline_message),children:this.state.status}),this.props.editingDataset&&!this.props.newForm&&(0,Ne.jsxs)("span",{className:"mx-1",children:[" HuBMAP Dataset ID  ",this.state.display_doi," "]}),(!this.props.editingDataset||this.props.newForm)&&(0,Ne.jsxs)("span",{className:"mx-1",children:["Registering a Dataset  ",this.state.display_doi," "]})]}),(0,Ne.jsx)("p",{children:(0,Ne.jsx)("strong",{children:(0,Ne.jsx)("big",{children:this.props.editingDataset&&this.props.editingDataset.title})})}),(0,Ne.jsx)("p",{children:(0,Ne.jsx)("strong",{children:this.state.globus_path&&(0,Ne.jsxs)("a",{href:this.state.globus_path,target:"_blank",rel:"noopener noreferrer",children:["To add or modify data files go to the data repository",(0,Ne.jsx)(bo,{icon:Eo,style:{marginLeft:"5px"}})]})})})]}),(0,Ne.jsxs)("div",{className:"col-md-6",children:[(0,Ne.jsx)(VT,{}),this.props.editingDataset&&this.props.editingDataset.upload&&this.props.editingDataset.upload.uuid&&(0,Ne.jsx)(mr,{sx:{display:"flex"},children:(0,Ne.jsxs)(mr,{sx:{width:"100%"},children:[(0,Ne.jsx)("strong",{children:"This Dataset is contained in the data Upload "}),(0,Ne.jsx)(HE,{variant:"text",onClick:this.handleDatasetSelect,children:this.props.editingDataset.upload.hubmap_id})]})})]})]}),(0,Ne.jsx)("div",{className:"row"}),(0,Ne.jsxs)("div",{className:"form-group",children:[this.renderSources(),(0,Ne.jsxs)(Ka,{fullWidth:!0,maxWidth:"lg",onClose:this.hideLookUpModal,"aria-labelledby":"source-lookup-dialog",open:!!this.state.LookUpShow&&this.state.LookUpShow,children:[(0,Ne.jsx)(tl,{children:(0,Ne.jsx)(zj,{select:this.handleSelectClick,custom_title:"Search for a Source ID for your Dataset",filter_type:"Dataset",blacklist:["collection"],modecheck:"Source"})}),(0,Ne.jsx)(WT,{children:(0,Ne.jsx)(HE,{onClick:this.cancelLookUpModal,variant:"contained",color:"primary",children:"Close"})})]})]}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsx)("label",{htmlFor:"lab_dataset_id",children:"Lab Name or ID"}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"lab_dataset_id_tooltip"}),(0,Ne.jsx)(hT,{id:"lab_dataset_id_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Lab Name or ID"})})]}),this.state.writeable&&(0,Ne.jsx)("input",{type:"text",name:"lab_dataset_id",id:"lab_dataset_id",className:"form-control "+this.errorClass(this.state.formErrors.lab_dataset_id),placeholder:"Lab Name or ID",onChange:this.handleInputChange,value:this.state.lab_dataset_id}),!this.state.writeable&&(0,Ne.jsx)("div",{className:"col-sm-9 col-form-label",children:(0,Ne.jsx)("p",{children:this.state.lab_dataset_id})})]}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsx)("label",{htmlFor:"description",children:"Description"}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"description_tooltip"}),(0,Ne.jsx)(hT,{id:"description_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Description Tips"})})]}),this.state.writeable&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{children:(0,Ne.jsx)("textarea",{type:"text",name:"description",id:"description",cols:"30",rows:"5",className:"form-control",placeholder:"Description",onChange:this.handleInputChange,value:this.state.description})})}),!this.state.writeable&&(0,Ne.jsx)("div",{className:"col-sm-12 col-form-label",children:(0,Ne.jsx)("p",{children:this.state.description})})]}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsx)("label",{htmlFor:"additional-info",children:"Additional Information"}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"description_tooltip"}),(0,Ne.jsx)(hT,{id:"description_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Add information here which can be used to find this data, including lab specific (non-PHI) identifiers."})})]}),this.state.writeable&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{children:(0,Ne.jsx)("textarea",{type:"text",name:"dataset_info",id:"dataset_info",cols:"30",rows:"5",className:"form-control",placeholder:"Additional Info",onChange:this.handleInputChange,value:this.state.dataset_info})})}),!this.state.writeable&&(0,Ne.jsx)("div",{className:"col-sm-12 col-form-label",children:(0,Ne.jsx)("p",{children:this.state.dataset_info})})]}),(0,Ne.jsxs)("div",{className:"form-group  ",children:[(0,Ne.jsxs)("label",{htmlFor:"contains_human_genetic_sequences",className:"col-sm-2 col-form-label text-right ",children:["Gene Sequences ",(0,Ne.jsx)("span",{className:"text-danger",children:" * "})]}),(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"contains_human_genetic_sequences_tooltip"}),(0,Ne.jsx)(hT,{id:"contains_human_genetic_sequences_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Gene Sequences Tips"})}),(0,Ne.jsxs)("div",{className:"row",children:[this.props.editingDataset&&(0,Ne.jsxs)("div",{className:"col-sm-9",children:[(0,Ne.jsxs)("div",{className:"form-check form-check-inline",children:[(0,Ne.jsx)("input",{className:"form-check-input",type:"radio",name:"contains_human_genetic_sequences",id:"contains_human_genetic_sequences_no",value:"no",checked:!1===this.state.contains_human_genetic_sequences&&this.props.editingDataset,onChange:this.handleInputChange,disabled:!this.state.writeable}),(0,Ne.jsx)("label",{className:"form-check-label",htmlFor:"contains_human_genetic_sequences_no",children:"No"})]}),(0,Ne.jsxs)("div",{className:"form-check form-check-inline",children:[(0,Ne.jsx)("input",{className:"form-check-input",type:"radio",name:"contains_human_genetic_sequences",id:"contains_human_genetic_sequences_yes",value:"yes",checked:!0===this.state.contains_human_genetic_sequences&&this.props.editingDataset,onChange:this.handleInputChange,disabled:!this.state.writeable}),(0,Ne.jsx)("label",{className:"form-check-label",htmlFor:"contains_human_genetic_sequences_yes",children:"Yes"})]}),(0,Ne.jsx)("small",{id:"PHIHelpBlock",className:"form-text text-muted",children:"Will this data contain any human genomic sequence data?"})]}),!this.props.editingDataset&&(0,Ne.jsxs)("div",{className:"col-sm-9 ",children:[(0,Ne.jsxs)("div",{className:"form-check form-check-inline",children:[(0,Ne.jsx)("input",{className:"form-check-input "+this.errorClass(this.state.formErrors.contains_human_genetic_sequences),type:"radio",name:"contains_human_genetic_sequences",id:"contains_human_genetic_sequences_no",value:"no",onChange:this.handleInputChange}),(0,Ne.jsx)("label",{className:"form-check-label",htmlFor:"contains_human_genetic_sequences_no",children:"No"})]}),(0,Ne.jsxs)("div",{className:"form-check form-check-inline",children:[(0,Ne.jsx)("input",{className:"form-check-input "+this.errorClass(this.state.formErrors.contains_human_genetic_sequences),type:"radio",name:"contains_human_genetic_sequences",id:"contains_human_genetic_sequences_yes",value:"yes",onChange:this.handleInputChange}),(0,Ne.jsx)("label",{className:"form-check-label",htmlFor:"contains_human_genetic_sequences_yes",children:"Yes"})]}),(0,Ne.jsx)("small",{id:"PHIHelpBlock",className:"form-text text-muted",children:"Will this data contain any human genomic sequence data?"})]}),this.errorClass(this.state.formErrors.contains_human_genetic_sequences)&&(0,Ne.jsx)(Ws,{severity:"error",children:this.state.formErrors.contains_human_genetic_sequences})]})]}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"dt_select",className:"col col-form-label text-right",children:["Dataset Type ",(0,Ne.jsx)("span",{className:"text-danger",children:"* "})]}),(0,Ne.jsxs)("span",{children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"datatype_tooltip",style:{marginLeft:"10px"}}),(0,Ne.jsx)(hT,{id:"datatype_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Dataset Type Tips"})})]}),this.props.newForm&&(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)("div",{className:"col-sm-12",children:this.renderDatsetTypeDropdown()}),(0,Ne.jsx)("div",{className:"col-sm-12",children:this.state.formErrors.dataset_type&&(0,Ne.jsx)("div",{className:"alert alert-danger",children:"One Dataset Type is Required."})})]}),!this.props.newForm&&this.props.editingDataset.dataset_type&&(0,Ne.jsx)("div",{className:"col-sm-12",children:this.props.editingDataset.dataset_type.toString()})]}),this.props.allGroups&&this.state.has_admin_priv&&(0,Ne.jsxs)("div",{className:"row mt-4  ",children:[(0,Ne.jsxs)("div",{className:"form-group col-6",children:[(0,Ne.jsx)("label",{htmlFor:"assigned_to_group_name",children:"Assigned to Group Name "}),this.renderGroupAssignment(),(0,Ne.jsx)(wE,{children:"The group responsible for the next step in the data ingest process."})]}),(0,Ne.jsxs)("div",{className:"form-group col-6",children:[(0,Ne.jsx)("label",{htmlFor:"ingest_task",children:"Ingest Task "}),(0,Ne.jsx)(kE,{labelid:"ingest_task_label",name:"ingest_task",id:"ingest_task",helperText:"The next task in the data ingest process.",fullWidth:!0,value:this.state.ingest_task,onChange:e=>this.handleInputChange(e)})]})]}),!this.state.has_admin_priv&&this.state.assigned_to_group_name&&this.state.ingest_task&&(0,Ne.jsxs)("div",{className:"row mt-4  ",children:[(0,Ne.jsxs)("div",{className:"form-group col-6",children:[(0,Ne.jsx)("label",{htmlFor:"assigned_to_group_name",children:"Assigned to Group Name "}),(0,Ne.jsx)(RI,{children:this.state.assigned_to_group_name})]}),(0,Ne.jsxs)("div",{className:"form-group col-6",children:[(0,Ne.jsx)("label",{htmlFor:"ingest_task",children:"Ingest Task "}),(0,Ne.jsx)(RI,{children:this.state.ingest_task})]})]}),(0,Ne.jsx)("div",{className:"col-8",children:this.state.submit_error&&(0,Ne.jsxs)(Ws,{severity:"error",children:[this.state.submitErrorResponse&&(0,Ne.jsx)(KI,{children:this.state.submitErrorStatus}),"Oops! Something went wrong. Please contact administrator for help. ",(0,Ne.jsx)("br",{}),"Details:  ",(0,Ne.jsxs)("strong",{children:[this.state.submitErrorStatus," "]})," ",this.state.submitErrorResponse]})}),(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsx)("div",{className:"col-8",children:this.state.has_admin_priv&&(0,Ne.jsx)(mI,{uuid:this.props.editingDataset?this.props.editingDataset.uuid:null,type:this.props.editingDataset?this.props.editingDataset.entity_type:"entity"})}),(0,Ne.jsx)("div",{className:"col-4",children:this.renderButtons()})]})]}),(0,Ne.jsx)(AT,{show:this.state.GroupSelectShow,groups:this.state.groups,submit:this.handleSubmit,hide:()=>this.hideModal(),handleInputChange:this.handleInputChange}),(0,Ne.jsx)(De,{show:this.state.errorMsgShow,handleClose:this.hideErrorMsgModal,children:(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"col-sm-12 text-center alert",children:[(0,Ne.jsx)("h4",{children:this.props.editingDataset&&this.props.editingDataset.status&&this.props.editingDataset.status.toUpperCase()||"STATUS"}),(0,Ne.jsx)("div",{dangerouslySetInnerHTML:{__html:this.state.statusErrorMsg}})]})})}),this.renderSubmitModal(),this.renderFeedbackModall()]})}}const XI=JI;var YI=i.createContext();const ZI=YI;function eP(){return i.useContext(ZI)}var tP=i.forwardRef((function(e,t){var r=e.autoFocus,n=e.checked,o=e.checkedIcon,s=e.classes,a=e.className,l=e.defaultChecked,u=e.disabled,c=e.icon,d=e.id,p=e.inputProps,h=e.inputRef,f=e.name,m=e.onBlur,g=e.onChange,v=e.onFocus,b=e.readOnly,y=e.required,x=e.tabIndex,w=e.type,_=e.value,S=(0,gs.A)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),A=(0,NT.A)({controlled:n,default:Boolean(l),name:"SwitchBase",state:"checked"}),C=(0,et.A)(A,2),k=C[0],E=C[1],R=eP(),j=u;R&&"undefined"===typeof j&&(j=R.disabled);var O="checkbox"===w||"radio"===w;return i.createElement(Bs,(0,Ft.A)({component:"span",className:(0,vs.A)(s.root,a,k&&s.checked,j&&s.disabled),disabled:j,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:function(e){m&&m(e),R&&R.onBlur&&R.onBlur(e)},ref:t},S),i.createElement("input",(0,Ft.A)({autoFocus:r,checked:n,defaultChecked:l,className:s.input,disabled:j,id:O&&d,name:f,onChange:function(e){var t=e.target.checked;E(t),g&&g(e,t)},readOnly:b,ref:h,required:y,tabIndex:x,type:w,value:_},p)),k?o:c)}));const rP=(0,ys.A)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(tP),nP=(0,_s.A)(i.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),oP=(0,_s.A)(i.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),iP=(0,_s.A)(i.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var sP=i.createElement(oP,null),aP=i.createElement(nP,null),lP=i.createElement(iP,null),uP=i.forwardRef((function(e,t){var r=e.checkedIcon,n=void 0===r?sP:r,o=e.classes,s=e.color,a=void 0===s?"secondary":s,l=e.icon,u=void 0===l?aP:l,c=e.indeterminate,d=void 0!==c&&c,p=e.indeterminateIcon,h=void 0===p?lP:p,f=e.inputProps,m=e.size,g=void 0===m?"medium":m,v=(0,gs.A)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),b=d?h:u,y=d?h:n;return i.createElement(rP,(0,Ft.A)({type:"checkbox",classes:{root:(0,vs.A)(o.root,o["color".concat((0,Fs.A)(a))],d&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:a,inputProps:(0,Ft.A)({"data-indeterminate":d},f),icon:i.cloneElement(b,{fontSize:void 0===b.props.fontSize&&"small"===g?g:b.props.fontSize}),checkedIcon:i.cloneElement(y,{fontSize:void 0===y.props.fontSize&&"small"===g?g:y.props.fontSize}),ref:t},v))}));const cP=(0,ys.A)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,bs.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,bs.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(uP);function dP(e){return e.substring(2).toLowerCase()}const pP=function(e){var t=e.children,r=e.disableReactTree,o=void 0!==r&&r,s=e.mouseEvent,a=void 0===s?"onClick":s,l=e.onClickAway,u=e.touchEvent,c=void 0===u?"onTouchEnd":u,d=i.useRef(!1),p=i.useRef(null),h=i.useRef(!1),f=i.useRef(!1);i.useEffect((function(){return setTimeout((function(){h.current=!0}),0),function(){h.current=!1}}),[]);var m=i.useCallback((function(e){p.current=n.findDOMNode(e)}),[]),g=(0,Rs.A)(t.ref,m),v=(0,js.A)((function(e){var t=f.current;if(f.current=!1,h.current&&p.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(d.current)d.current=!1;else{var r;if(e.composedPath)r=e.composedPath().indexOf(p.current)>-1;else r=!(0,Hj.A)(p.current).documentElement.contains(e.target)||p.current.contains(e.target);r||!o&&t||l(e)}})),b=function(e){return function(r){f.current=!0;var n=t.props[e];n&&n(r)}},y={ref:g};return!1!==c&&(y[c]=b(c)),i.useEffect((function(){if(!1!==c){var e=dP(c),t=(0,Hj.A)(p.current),r=function(){d.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",r),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",r)}}}),[v,c]),!1!==a&&(y[a]=b(a)),i.useEffect((function(){if(!1!==a){var e=dP(a),t=(0,Hj.A)(p.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,a]),i.createElement(i.Fragment,null,i.cloneElement(t,y))};function hP(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var fP={entering:{opacity:1,transform:hP(1)},entered:{opacity:1,transform:"none"}},mP=i.forwardRef((function(e,t){var r=e.children,n=e.disableStrictModeCompat,o=void 0!==n&&n,s=e.in,a=e.onEnter,l=e.onEntered,u=e.onEntering,c=e.onExit,d=e.onExited,p=e.onExiting,h=e.style,f=e.timeout,m=void 0===f?"auto":f,g=e.TransitionComponent,v=void 0===g?ei:g,b=(0,gs.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),y=i.useRef(),x=i.useRef(),w=Vl(),_=w.unstable_strictMode&&!o,S=i.useRef(null),A=(0,Rs.A)(r.ref,t),C=(0,Rs.A)(_?S:void 0,A),k=function(e){return function(t,r){if(e){var n=_?[S.current,t]:[t,r],o=(0,et.A)(n,2),i=o[0],s=o[1];void 0===s?e(i):e(i,s)}}},E=k(u),R=k((function(e,t){lO(e);var r,n=uO({style:h,timeout:m},{mode:"enter"}),o=n.duration,i=n.delay;"auto"===m?(r=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=r):r=o,e.style.transition=[w.transitions.create("opacity",{duration:r,delay:i}),w.transitions.create("transform",{duration:.666*r,delay:i})].join(","),a&&a(e,t)})),j=k(l),O=k(p),T=k((function(e){var t,r=uO({style:h,timeout:m},{mode:"exit"}),n=r.duration,o=r.delay;"auto"===m?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=n,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:o}),w.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=hP(.75),c&&c(e)})),I=k(d);return i.useEffect((function(){return function(){clearTimeout(y.current)}}),[]),i.createElement(v,(0,Ft.A)({appear:!0,in:s,nodeRef:_?S:void 0,onEnter:R,onEntered:j,onEntering:E,onExit:T,onExited:I,onExiting:O,addEndListener:function(e,t){var r=_?e:t;"auto"===m&&(y.current=setTimeout(r,x.current||0))},timeout:"auto"===m?null:m},b),(function(e,t){return i.cloneElement(r,(0,Ft.A)({style:(0,Ft.A)({opacity:0,transform:hP(.75),visibility:"exited"!==e||s?void 0:"hidden"},fP[e],h,r.props.style),ref:C},t))}))}));mP.muiSupportAuto=!0;const gP=mP;var vP=i.forwardRef((function(e,t){var r=e.action,n=e.classes,o=e.className,s=e.message,a=e.role,l=void 0===a?"alert":a,u=(0,gs.A)(e,["action","classes","className","message","role"]);return i.createElement(ws,(0,Ft.A)({role:l,square:!0,elevation:6,className:(0,vs.A)(n.root,o),ref:t},u),i.createElement("div",{className:n.message},s),r?i.createElement("div",{className:n.action},r):null)}));const bP=(0,ys.A)((function(e){var t="light"===e.palette.type?.8:.98,r=(0,bs.tL)(e.palette.background.default,t);return{root:(0,Ft.A)({},e.typography.body2,(0,Bj.A)({color:e.palette.getContrastText(r),backgroundColor:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(vP);var yP=i.forwardRef((function(e,t){var r=e.action,n=e.anchorOrigin,o=(n=void 0===n?{vertical:"bottom",horizontal:"center"}:n).vertical,s=n.horizontal,a=e.autoHideDuration,l=void 0===a?null:a,u=e.children,c=e.classes,d=e.className,p=e.ClickAwayListenerProps,h=e.ContentProps,f=e.disableWindowBlurListener,m=void 0!==f&&f,g=e.message,v=e.onClose,b=e.onEnter,y=e.onEntered,x=e.onEntering,w=e.onExit,_=e.onExited,S=e.onExiting,A=e.onMouseEnter,C=e.onMouseLeave,k=e.open,E=e.resumeHideDuration,R=e.TransitionComponent,j=void 0===R?gP:R,O=e.transitionDuration,T=void 0===O?{enter:aO.p0.enteringScreen,exit:aO.p0.leavingScreen}:O,I=e.TransitionProps,P=(0,gs.A)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),N=i.useRef(),M=i.useState(!0),D=M[0],L=M[1],F=(0,js.A)((function(){v&&v.apply(void 0,arguments)})),z=(0,js.A)((function(e){v&&null!=e&&(clearTimeout(N.current),N.current=setTimeout((function(){F(null,"timeout")}),e))}));i.useEffect((function(){return k&&z(l),function(){clearTimeout(N.current)}}),[k,l,z]);var B=function(){clearTimeout(N.current)},$=i.useCallback((function(){null!=l&&z(null!=E?E:.5*l)}),[l,E,z]);return i.useEffect((function(){if(!m&&k)return window.addEventListener("focus",$),window.addEventListener("blur",B),function(){window.removeEventListener("focus",$),window.removeEventListener("blur",B)}}),[m,$,k]),!k&&D?null:i.createElement(pP,(0,Ft.A)({onClickAway:function(e){v&&v(e,"clickaway")}},p),i.createElement("div",(0,Ft.A)({className:(0,vs.A)(c.root,c["anchorOrigin".concat((0,Fs.A)(o)).concat((0,Fs.A)(s))],d),onMouseEnter:function(e){A&&A(e),B()},onMouseLeave:function(e){C&&C(e),$()},ref:t},P),i.createElement(j,(0,Ft.A)({appear:!0,in:k,onEnter:(0,qj.A)((function(){L(!1)}),b),onEntered:y,onEntering:x,onExit:w,onExited:(0,qj.A)((function(){L(!0)}),_),onExiting:S,timeout:T,direction:"top"===o?"down":"up"},I),u||i.createElement(bP,(0,Ft.A)({message:g,action:r},h)))))}));const xP=(0,ys.A)((function(e){var t={top:8},r={bottom:8},n={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},s={bottom:24},a={right:24},l={left:24},u={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,Ft.A)({},t,(0,Bj.A)({},e.breakpoints.up("sm"),(0,Ft.A)({},i,u))),anchorOriginBottomCenter:(0,Ft.A)({},r,(0,Bj.A)({},e.breakpoints.up("sm"),(0,Ft.A)({},s,u))),anchorOriginTopRight:(0,Ft.A)({},t,n,(0,Bj.A)({},e.breakpoints.up("sm"),(0,Ft.A)({left:"auto"},i,a))),anchorOriginBottomRight:(0,Ft.A)({},r,n,(0,Bj.A)({},e.breakpoints.up("sm"),(0,Ft.A)({left:"auto"},s,a))),anchorOriginTopLeft:(0,Ft.A)({},t,o,(0,Bj.A)({},e.breakpoints.up("sm"),(0,Ft.A)({right:"auto"},i,l))),anchorOriginBottomLeft:(0,Ft.A)({},r,o,(0,Bj.A)({},e.breakpoints.up("sm"),(0,Ft.A)({right:"auto"},s,l)))}}),{flip:!1,name:"MuiSnackbar"})(yP);class wP extends i.Component{constructor(){super(...arguments),this.state={multiples:this.props.ids,checked:!1,edit_uuid:"",submitting:!1,formType:"sample",editingEntity:"",updateSuccess:!1,readOnly:!0,currentEditList:"",error_message_detail:"",error_message:"Oops! Something went wrong. Please contact administrator for help.",setOpen:!1,show_snack:!1,show_dirty_warning:!1,snackmessage:"",isDirty:!1},this.closeSnack=(e,t)=>{"clickaway"!==t&&this.setState({show_snack:!1,show_dirty_warning:!1,snackmessage:""})},this.handleOnUpdate=()=>{let e=this.setCheckIndicator(this.state.currentEditList.uuid,!0);this.setState({updateSuccess:!0,editingEntity:null,checked:!0,show_snack:!0,show_dirty_warning:!1,snackmessage:"Save was succesful",multiples:e})},this.handleEdit=e=>{window.history.pushState(null,"","/sample/"+e.uuid),window.location.reload()},this.handleInputKeyPress=()=>{console.log("Press")},this.handleDirty=e=>{this.setState({isDirty:e}),console.debug("MultipleListModal:isDirty",e)},this.handleCancelChanges=()=>{this.handleDirty(!1),this.setState({show_dirty_warning:!1})},this.setCheckIndicator=(e,t)=>{let r=[];return this.state.multiples.forEach(((n,o)=>{n.uuid===e&&(n.checked=t),r.push(n)})),r},this.editForm=e=>{yd(e,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{200===t.status?(this.setState({edit_uuid:t.results.uuid,editingEntity:t.results}),Uc(e,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(200===e.status){let r=!e.results.has_write_priv;this.setState({readOnly:r,show_snack:!0,snackmessage:"Sample data was loaded",show_dirty_warning:!1}),console.debug("in the editForm",t.results)}else 400===e.status&&this.setState({submit_error:!0,submitting:!1,error_message_detail:Oc(e.results)})}))):400===t.status&&this.setState({submit_error:!0,submitting:!1,error_message_detail:Oc(t.results)})}))}}componentDidMount(){console.log("MultipleListModal",this.state.multiples);const e=this.state.multiples[0].submission_id,t=this.state.multiples[this.state.multiples.length-1].submission_id;this.setState({submitting:!1,multiMessage:`${this.state.multiples.length} samples added ${e} through ${t}`,edit_uuid:this.state.multiples[0].uuid}),this.editForm(this.state.multiples[0].uuid)}render(){return(0,Ne.jsxs)("div",{className:"w-100",children:[(0,Ne.jsxs)("div",{className:"col-sm-12 mb-2 mt-2",children:[(0,Ne.jsxs)("div",{severity:"info",className:"alert alert-primary col-sm-12 ",role:"alert",children:["You have generated multiples samples. Select one of the additoinal samples below to edit in a new tab, ",(0,Ne.jsx)("br",{}),"or click done to return to the Main page."]}),(0,Ne.jsx)(ws,{style:{maxHeight:700,overflow:"auto"},children:(0,Ne.jsx)("ul",{className:"no-bullets",children:this.state.multiples.map(((e,t)=>(0,Ne.jsxs)("li",{children:[(0,Ne.jsx)(cP,{id:`cb_${e.uuid}`,checked:e.checked,disabled:!0,size:"small",inputProps:{"aria-label":"Submission ID"}})," "," ",(0,Ne.jsx)("a",{href:"/sample/"+e.uuid,className:"btn my-1",target:"blank",children:`${e.submission_id}`})]})))})})]}),(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(xP,{open:this.state.show_snack,onClose:this.closeSnack,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:6e3,message:this.state.snackmessage,action:(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)(Gi,{size:"small","aria-label":"close",color:"inherit",onClick:this.closeSnack,children:(0,Ne.jsx)(bo,{icon:zo,size:"1x"})})})}),(0,Ne.jsx)(xP,{open:this.state.show_dirty_warning,anchorOrigin:{vertical:"top",horizontal:"center"},severity:"warning",message:"You have made changes, press the UPDATE button to save. To Cancel, click here ->",action:(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)(HE,{color:"secondary",size:"small",onClick:this.handleCancelChanges,children:"Cancel Changes"}),(0,Ne.jsx)(Gi,{size:"small","aria-label":"close",color:"inherit",onClick:this.closeSnack,children:(0,Ne.jsx)(bo,{icon:zo,size:"1x"})})]})})]})]})}}const _P=wP;class SP extends i.Component{constructor(){super(...arguments),this.state={results:[]},this.handleCopyToClipboard=()=>{var e=document.getElementsByTagName("body")[0],t=document.getElementById("display_doi").innerHTML,r=document.createElement("INPUT");e.appendChild(r),r.setAttribute("value",t),r.select(),document.execCommand("copy"),e.removeChild(r),this.setState({copied:!0}),setTimeout((()=>{this.setState({copied:null})}),5e3)},this.handleReturnClick=e=>{console.debug("handleReturnClick",e),this.props.onReturn?this.props.onReturn():console.debug()}}render(){return console.debug("Results"),console.debug("RESULTS!!!!",this.props.result),(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)("div",{className:"row",children:this.props.result.new_samples&&this.props.result.new_samples.length>1&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{children:(0,Ne.jsx)(_P,{ids:this.props.result.new_samples,handleCancel:this.props.handleReturnClick})})})}),void 0!==this.props.result&&(0,Ne.jsxs)("div",{className:"row",style:{padding:"10px 20px",margin:"auto"},children:[this.props.result.entity&&(0,Ne.jsx)("div",{className:"portal-jss116 col-sm-12 ml-2 mb-2",children:"Save was successful"}),this.props.result.entity.hubmap_id&&(0,Ne.jsxs)("div",{className:"portal-jss116 col-sm-12 ml-2",children:["HuBMAP ID: ",(0,Ne.jsx)(sd,{variant:"body2",href:"/"+this.props.result.entity.entity_type.toLowerCase()+"/"+this.props.result.entity.uuid,children:this.props.result.entity.hubmap_id})]}),this.props.result.entity.submission_id&&(0,Ne.jsxs)("div",{className:"portal-jss116 col-sm-12 ml-2",children:["Submission ID: ",this.props.result.entity.submission_id]}),this.props.result.entity.entity_type&&(0,Ne.jsxs)("div",{className:"portal-jss116 col-sm-12 ml-2",children:["Type: ",this.props.result.entity.entity_type]}),this.props.result.globus_path&&(0,Ne.jsx)("div",{className:"portal-jss116 col-sm-12 ml-2",children:(0,Ne.jsxs)("a",{href:this.props.result.globus_path,target:"_blank",rel:"noopener noreferrer",children:[(0,Ne.jsx)(bo,{icon:wo,"data-tip":!0,"data-for":"folder_tooltip"})," Click here to go to the Globus data repository"]})}),this.props.result.entity.uuid&&(0,Ne.jsx)("div",{className:"d-none",children:(0,Ne.jsxs)("a",{href:this.props.result.entity.entity_type+"/"+this.props.result.entity.uuid,children:[(0,Ne.jsx)(bo,{icon:Po,"data-tip":!0,"data-for":"link_tooltip"})," View in Ingest"]})})]}),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"col-sm-12 mt-2 mr-2 mb-2 text-center",children:[void 0!==this.props.result&&"Donor"===this.props.result.entity.entity_type&&(0,Ne.jsx)(iR,{placement:"top-start",title:"Registering organs from a new Donor will return with the release of the new Sample form \ud83c\udf89",children:(0,Ne.jsx)("span",{children:(0,Ne.jsx)(HE,{className:"btn btn-success m-2",variant:"contained",disabled:!0,color:"primary",onClick:()=>this.props.onCreateNext(this.props.result.entity),children:"Register an organ from this donor"})})}),void 0!==this.props.result&&"organ"===this.props.result.entity.specimen_type&&(0,Ne.jsx)(iR,{placement:"top-start",title:"Registering tisse samples from a new organ will return with the release of the new Sample form \ud83c\udf89",children:(0,Ne.jsx)("span",{children:(0,Ne.jsx)(HE,{className:"btn btn-primary m-2",variant:"contained",disabled:!0,color:"success",sx:{marginRight:"10px"},type:"button",onClick:()=>this.props.onCreateNext(this.props.result.entity),children:"Register tissue samples from this organ"})})}),(0,Ne.jsx)(HE,{className:"btn btn-success",variant:"contained",color:"primary",onClick:this.handleReturnClick,children:"Done"})]})})]})}}const AP=SP;var CP=r(5714);function kP(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function EP(e){var t=function(t){var r=e(t);return t.css?(0,Ft.A)({},(0,CP.A)(r,e((0,Ft.A)({theme:t.theme},t.css))),kP(t.css,[e.filterProps])):t.sx?(0,Ft.A)({},(0,CP.A)(r,e((0,Ft.A)({theme:t.theme},t.sx))),kP(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat((0,Ts.A)(e.filterProps)),t}const RP=EP;const jP=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce((function(t,r){var n=r(e);return n?(0,CP.A)(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n};var OP=r(498);function TP(e,t){return t&&"string"===typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}const IP=function(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,s=function(e){if(null==e[t])return null;var r=e[t],s=TP(e.theme,o)||{};return(0,OP.N)(e,r,(function(e){var t;return"function"===typeof s?t=s(e):Array.isArray(s)?t=s[e]||e:(t=TP(s,e)||e,i&&(t=i(t))),!1===n?t:(0,Bj.A)({},n,t)}))};return s.propTypes={},s.filterProps=[t],s};function PP(e){return"number"!==typeof e?e:"".concat(e,"px solid")}const NP=jP(IP({prop:"border",themeKey:"borders",transform:PP}),IP({prop:"borderTop",themeKey:"borders",transform:PP}),IP({prop:"borderRight",themeKey:"borders",transform:PP}),IP({prop:"borderBottom",themeKey:"borders",transform:PP}),IP({prop:"borderLeft",themeKey:"borders",transform:PP}),IP({prop:"borderColor",themeKey:"palette"}),IP({prop:"borderRadius",themeKey:"shape"}));const MP=jP(IP({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),IP({prop:"display"}),IP({prop:"overflow"}),IP({prop:"textOverflow"}),IP({prop:"visibility"}),IP({prop:"whiteSpace"}));const DP=jP(IP({prop:"flexBasis"}),IP({prop:"flexDirection"}),IP({prop:"flexWrap"}),IP({prop:"justifyContent"}),IP({prop:"alignItems"}),IP({prop:"alignContent"}),IP({prop:"order"}),IP({prop:"flex"}),IP({prop:"flexGrow"}),IP({prop:"flexShrink"}),IP({prop:"alignSelf"}),IP({prop:"justifyItems"}),IP({prop:"justifySelf"}));const LP=jP(IP({prop:"gridGap"}),IP({prop:"gridColumnGap"}),IP({prop:"gridRowGap"}),IP({prop:"gridColumn"}),IP({prop:"gridRow"}),IP({prop:"gridAutoFlow"}),IP({prop:"gridAutoColumns"}),IP({prop:"gridAutoRows"}),IP({prop:"gridTemplateColumns"}),IP({prop:"gridTemplateRows"}),IP({prop:"gridTemplateAreas"}),IP({prop:"gridArea"}));const FP=jP(IP({prop:"position"}),IP({prop:"zIndex",themeKey:"zIndex"}),IP({prop:"top"}),IP({prop:"right"}),IP({prop:"bottom"}),IP({prop:"left"}));const zP=jP(IP({prop:"color",themeKey:"palette"}),IP({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}));const BP=IP({prop:"boxShadow",themeKey:"shadows"});function $P(e){return e<=1?"".concat(100*e,"%"):e}var HP=IP({prop:"width",transform:$P}),UP=IP({prop:"maxWidth",transform:$P}),WP=IP({prop:"minWidth",transform:$P}),VP=IP({prop:"height",transform:$P}),qP=IP({prop:"maxHeight",transform:$P}),GP=IP({prop:"minHeight",transform:$P});IP({prop:"size",cssProperty:"width",transform:$P}),IP({prop:"size",cssProperty:"height",transform:$P});const QP=jP(HP,UP,WP,VP,qP,GP,IP({prop:"boxSizing"}));var KP=r(5995);const JP=jP(IP({prop:"fontFamily",themeKey:"typography"}),IP({prop:"fontSize",themeKey:"typography"}),IP({prop:"fontStyle",themeKey:"typography"}),IP({prop:"fontWeight",themeKey:"typography"}),IP({prop:"letterSpacing"}),IP({prop:"lineHeight"}),IP({prop:"textAlign"}));var XP=r(219),YP=r.n(XP),ZP=r(617);function eN(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.name,o=(0,gs.A)(r,["name"]);var s,a=n,l="function"===typeof t?function(e){return{root:function(r){return t((0,Ft.A)({theme:e},r))}}}:{root:t},u=(0,ZP.A)(l,(0,Ft.A)({Component:e,name:n||e.displayName,classNamePrefix:a},o));t.filterProps&&(s=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=i.forwardRef((function(t,r){var n=t.children,o=t.className,a=t.clone,l=t.component,c=(0,gs.A)(t,["children","className","clone","component"]),d=u(t),p=(0,vs.A)(d.root,o),h=c;if(s&&(h=function(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}(h,s)),a)return i.cloneElement(n,(0,Ft.A)({className:(0,vs.A)(n.props.className,p)},h));if("function"===typeof n)return n((0,Ft.A)({className:p},h));var f=l||e;return i.createElement(f,(0,Ft.A)({ref:r,className:p},h),n)}));return YP()(c,e),c}}const tN=function(e){var t=eN(e);return function(e,r){return t(e,(0,Ft.A)({defaultTheme:Wl.A},r))}};var rN=RP(jP(NP,MP,DP,LP,FP,zP,BP,QP,KP.A,JP));const nN=tN("div")(rN,{name:"MuiBox"});class oN extends i.Component{constructor(e){super(e),this.state={},this.hideNewDatasetModal=()=>{this.setState({NewDatasetShow:!1})},this.showModal=()=>{this.setState({show:!0})},this.hideModal=()=>{this.setState({show:!1})},this.group=i.createRef(),this.sampleType=i.createRef(),this.keywords=i.createRef()}componentDidMount(){this.setState({NewDatasetShow:!1})}render(){return(0,Ne.jsx)(De,{show:this.props.show,handleClose:this.props.onDismiss,children:(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-sm-12",children:(0,Ne.jsx)("div",{className:"card text-left",children:(0,Ne.jsx)("div",{className:"card-body ",children:(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsxs)("div",{className:"col-6",children:[(0,Ne.jsx)("h5",{className:"card-title",children:"New Dataset Information has been created"}),(0,Ne.jsxs)(nN,{display:"flex",justifyContent:"left",className:"py-0 my-0",children:[(0,Ne.jsx)(nN,{className:"newdataset-name bold",children:(0,Ne.jsx)("strong",{children:"Dataset Name:"})}),(0,Ne.jsx)(nN,{className:"ml-2",children:this.props.entity.title})]}),(0,Ne.jsxs)(nN,{display:"flex",justifyContent:"left",children:[(0,Ne.jsx)(nN,{className:"newdataset-uuid py-0 my-0",children:(0,Ne.jsx)("strong",{children:"HuBMAP Dataset DOI: "})}),(0,Ne.jsx)(nN,{className:"ml-2",children:this.props.entity.hubmap_id})]})]}),(0,Ne.jsxs)("div",{className:"col-6",children:[(0,Ne.jsx)("a",{target:"_blank",name:"globus_directory_url_path",href:this.props.globus_directory_url_path,rel:"noopener noreferrer",children:(0,Ne.jsx)("h4",{children:"Click to Upload Dataset Files"})}),(0,Ne.jsxs)("div",{className:"alert alert-danger",role:"alert",children:[(0,Ne.jsx)(bo,{icon:Do})," - Do not upload any data containing any of the"," ",(0,Ne.jsx)("span",{style:{cursor:"pointer"},className:"text-primary",onClick:this.showModal,children:"18 identifiers specified by HIPAA"}),"."]}),(0,Ne.jsx)(xT,{show:this.state.show,handleClose:this.hideModal})]})]})})})})})})}}const iN=oN,sN=(0,eu.A)((0,Ne.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),aN=(0,eu.A)((0,Ne.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),lN=(0,Ht.Ay)("span",{shouldForwardProp:dl.A})({position:"relative",display:"flex"}),uN=(0,Ht.Ay)(sN)({transform:"scale(1)"}),cN=(0,Ht.Ay)(aN)((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},r.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));const dN=function(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=(0,Ft.A)({},e,{checked:t});return(0,Ne.jsxs)(lN,{className:r.root,ownerState:o,children:[(0,Ne.jsx)(uN,{fontSize:n,className:r.background,ownerState:o}),(0,Ne.jsx)(cN,{fontSize:n,className:r.dot,ownerState:o})]})};var pN=r(6593);const hN=i.createContext(void 0);function fN(e){return(0,qt.Ay)("MuiRadio",e)}const mN=(0,Vt.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),gN=["checked","checkedIcon","color","icon","name","onChange","size","className"],vN=(0,Ht.Ay)(Uk,{shouldForwardProp:e=>(0,dl.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"medium"!==r.size&&t[`size${(0,Wt.A)(r.size)}`],t[`color${(0,Wt.A)(r.color)}`]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,fi.X4)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{[`&.${mN.checked}`]:{color:(t.vars||t).palette[r.color].main}},{[`&.${mN.disabled}`]:{color:(t.vars||t).palette.action.disabled}})}));const bN=(0,Ne.jsx)(dN,{checked:!0}),yN=(0,Ne.jsx)(dN,{}),xN=i.forwardRef((function(e,t){var r,n;const o=(0,Ut.b)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=bN,color:l="primary",icon:u=yN,name:c,onChange:d,size:p="medium",className:h}=o,f=(0,Lt.A)(o,gN),m=(0,Ft.A)({},o,{color:l,size:p}),g=(e=>{const{classes:t,color:r,size:n}=e,o={root:["root",`color${(0,Wt.A)(r)}`,"medium"!==n&&`size${(0,Wt.A)(n)}`]};return(0,Ft.A)({},t,(0,$t.A)(o,fN,t))})(m),v=i.useContext(hN);let b=s;const y=(0,pN.A)(d,v&&v.onChange);let x=c;var w,_;return v&&("undefined"===typeof b&&(w=v.value,b="object"===typeof(_=o.value)&&null!==_?w===_:String(w)===String(_)),"undefined"===typeof x&&(x=v.name)),(0,Ne.jsx)(vN,(0,Ft.A)({type:"radio",icon:i.cloneElement(u,{fontSize:null!=(r=yN.props.fontSize)?r:p}),checkedIcon:i.cloneElement(a,{fontSize:null!=(n=bN.props.fontSize)?n:p}),ownerState:m,classes:g,name:x,checked:b,onChange:y,ref:t,className:(0,zt.A)(g.root,h)},f))}));function wN(e){return(0,qt.Ay)("MuiRadioGroup",e)}(0,Vt.A)("MuiRadioGroup",["root","row","error"]);const _N=["actions","children","className","defaultValue","name","onChange","value"],SN=i.forwardRef((function(e,t){const{actions:r,children:n,className:o,defaultValue:s,name:a,onChange:l,value:u}=e,c=(0,Lt.A)(e,_N),d=i.useRef(null),p=(e=>{const{classes:t,row:r,error:n}=e,o={root:["root",r&&"row",n&&"error"]};return(0,$t.A)(o,wN,t)})(e),[h,f]=(0,iS.A)({controlled:u,default:s,name:"RadioGroup"});i.useImperativeHandle(r,(()=>({focus:()=>{let e=d.current.querySelector("input:not(:disabled):checked");e||(e=d.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const m=(0,ii.A)(t,d),g=(0,aA.A)(a),v=i.useMemo((()=>({name:g,onChange(e){f(e.target.value),l&&l(e,e.target.value)},value:h})),[g,l,f,h]);return(0,Ne.jsx)(hN.Provider,{value:v,children:(0,Ne.jsx)(cI,(0,Ft.A)({role:"radiogroup",ref:m,className:(0,zt.A)(p.root,o)},c,{children:n}))})}));var AN={AO:"Aorta",BL:"Bladder",BD:"Blood",BM:"Bone Marrow",BR:"Brain",LF:"Fallopian Tube (Left)",RF:"Fallopian Tube (Right)",HT:"Heart",LB:"Bronchus (Left)",LE:"Eye (Left)",LI:"Large Intestine",LK:"Kidney (Left)",LL:"Lung (Left)",LN:"Knee (Left)",LV:"Liver",LY:"Lymph Node",LO:"Ovary (Left)",RO:"Ovary (Right)",OT:"Other",PA:"Pancreas",PL:"Placenta",RB:"Bronchus (Right)",RE:"Eye (Right)",RK:"Kidney (Right)",RL:"Lung (Right)",RN:"Knee (Right)",SI:"Small Intestine",SK:"Skin",SP:"Spleen",ST:"Sternum",TH:"Thymus",TR:"Trachea",UR:"Ureter",UT:"Uterus"},CN={atacseq:"ATACseq",biopsy:"Biopsy",blood:"Blood",cell_lysate:"Cell lysate",clarity_hydrogel:"CLARITY hydrogel",codex:"CODEX",cryosections_curls_from_fresh_frozen_oct:"Cryosections/curls from fresh frozen OCT",cryosections_curls_rnalater:"Cryosections/curls RNAlater",ffpe_block:"FFPE block",ffpe_slide:"FFPE slide",fixed_frozen_section_slide:"Fixed frozen section slide",fixed_tissue_piece:"Fixed tissue piece",flash_frozen_liquid_nitrogen:"Flash frozen, liquid nitrogen",formalin_fixed_oct_block:"Formalin fixed OCT block",fresh_frozen_oct_block:"Fresh frozen OCT block",fresh_frozen_section_slide:"Fresh frozen section slide",fresh_frozen_tissue:"Fresh frozen tissue",fresh_frozen_tissue_section:"Fresh frozen tissue section",fresh_tissue:"Fresh tissue",frozen_cell_pellet_buffy_coat:"Frozen cell pellet (Buffy coat)",gdna:"gDNA",module:"Module",nuclei:"Nuclei",nuclei_rnalater:"Nuclei RNAlater",organ:"Organ",organ_piece:"Organ piece",other:"Other",pbmc:"PBMC",pfa_fixed_frozen_oct_block:"PFA fixed frozen OCT block",plasma:"Plasma",protein:"Protein",ran_poly_a_enriched:"RNA, poly-A enriched",rna_total:"RNA, total",rnalater_treated_and_stored:"RNAlater treated and stored",rnaseq:"RNAseq",scatacseq:"scATACseq",scrnaseq:"scRNAseq",segment:"Segment",seqfish:"seqFISH",sequence_library:"Sequence library",serum:"Serum",single_cell_cryopreserved:"Single cell cryopreserved",snatacseq:"snATACseq",snrnaseq:"snRNAseq",tissue_lysate:"Tissue lysate",wgs:"Whole genome sequencing"};function kN(e){var t,r,n=e.entity_type,o="{unknown}";return"Upload"===n?o="Data Upload":"Donor"===n?o="Donor":"Sample"===n?"sample_category"in e?(console.debug("%c\u2299 sample_category","color:#00ff7b",e.sample_category),"organ"===e.sample_category.toLowerCase()?"organ"in e?(r=e.organ,console.debug("get_organ_description",AN[r]),o=AN[r]):console.error("Missing missing organ when sample_category is set of Sample with uuid: {entity['uuid']}"):(t=e.sample_category,console.debug("get_tissue_sample_description",AN[t]),o=CN[t])):console.error("Missing sample_category of Sample with uuid: {entity['uuid']}"):"Dataset"===n?"dataset_type"in e?o=e.dataset_type.toString():console.error("Missing dataset_type of Dataset with uuid: {entity['uuid']}"):console.error("Invalid entity_type: {entity_type}. Only generate display_subtype for Upload/Donor/Sample/Dataset"),o}function EN(e,t){const r=t.find((t=>{let{dataset_type:r}=t;return r===e}));return void 0!==r&&r&&r.dataset_type?r.dataset_type:"N/A"}var RN=r(1560),jN=r(8565),ON=r(9736);function TN(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function IN(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function PN(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function NN(e){return"function"===typeof e?e():e}var MN=i.forwardRef((function(e,t){var r=e.action,o=e.anchorEl,s=e.anchorOrigin,a=void 0===s?{vertical:"top",horizontal:"left"}:s,l=e.anchorPosition,u=e.anchorReference,c=void 0===u?"anchorEl":u,d=e.children,p=e.classes,h=e.className,f=e.container,m=e.elevation,g=void 0===m?8:m,v=e.getContentAnchorEl,b=e.marginThreshold,y=void 0===b?16:b,x=e.onEnter,w=e.onEntered,_=e.onEntering,S=e.onExit,A=e.onExited,C=e.onExiting,k=e.open,E=e.PaperProps,R=void 0===E?{}:E,j=e.transformOrigin,O=void 0===j?{vertical:"top",horizontal:"left"}:j,T=e.TransitionComponent,I=void 0===T?gP:T,P=e.transitionDuration,N=void 0===P?"auto":P,M=e.TransitionProps,D=void 0===M?{}:M,L=(0,gs.A)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),F=i.useRef(),z=i.useCallback((function(e){if("anchorPosition"===c)return l;var t=NN(o),r=(t&&1===t.nodeType?t:(0,Hj.A)(F.current).body).getBoundingClientRect(),n=0===e?a.vertical:"center";return{top:r.top+TN(r,n),left:r.left+IN(r,a.horizontal)}}),[o,a.horizontal,a.vertical,l,c]),B=i.useCallback((function(e){var t=0;if(v&&"anchorEl"===c){var r=v(e);if(r&&e.contains(r)){var n=function(e,t){for(var r=t,n=0;r&&r!==e;)n+=(r=r.parentElement).scrollTop;return n}(e,r);t=r.offsetTop+r.clientHeight/2-n||0}0}return t}),[a.vertical,c,v]),$=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:TN(e,O.vertical)+t,horizontal:IN(e,O.horizontal)}}),[O.horizontal,O.vertical]),H=i.useCallback((function(e){var t=B(e),r={width:e.offsetWidth,height:e.offsetHeight},n=$(r,t);if("none"===c)return{top:null,left:null,transformOrigin:PN(n)};var i=z(t),s=i.top-n.vertical,a=i.left-n.horizontal,l=s+r.height,u=a+r.width,d=(0,Kj.A)(NN(o)),p=d.innerHeight-y,h=d.innerWidth-y;if(s<y){var f=s-y;s-=f,n.vertical+=f}else if(l>p){var m=l-p;s-=m,n.vertical+=m}if(a<y){var g=a-y;a-=g,n.horizontal+=g}else if(u>h){var v=u-h;a-=v,n.horizontal+=v}return{top:"".concat(Math.round(s),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:PN(n)}}),[o,c,z,B,$,y]),U=i.useCallback((function(){var e=F.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),W=i.useCallback((function(e){F.current=n.findDOMNode(e)}),[]);i.useEffect((function(){k&&U()})),i.useImperativeHandle(r,(function(){return k?{updatePosition:function(){U()}}:null}),[k,U]),i.useEffect((function(){if(k){var e=(0,ON.A)((function(){U()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,U]);var V=N;"auto"!==N||I.muiSupportAuto||(V=void 0);var q=f||(o?(0,Hj.A)(NN(o)).body:void 0);return i.createElement(sO,(0,Ft.A)({container:q,open:k,ref:t,BackdropProps:{invisible:!0},className:(0,vs.A)(p.root,h)},L),i.createElement(I,(0,Ft.A)({appear:!0,in:k,onEnter:x,onEntered:w,onExit:S,onExited:A,onExiting:C,timeout:V},D,{onEntering:(0,qj.A)((function(e,t){_&&_(e,t),U()}),D.onEntering)}),i.createElement(ws,(0,Ft.A)({elevation:g,ref:W},R,{className:(0,vs.A)(p.paper,R.className)}),d)))}));const DN=(0,ys.A)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(MN);const LN=i.createContext({});var FN=i.forwardRef((function(e,t){var r=e.children,n=e.classes,o=e.className,s=e.component,a=void 0===s?"ul":s,l=e.dense,u=void 0!==l&&l,c=e.disablePadding,d=void 0!==c&&c,p=e.subheader,h=(0,gs.A)(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=i.useMemo((function(){return{dense:u}}),[u]);return i.createElement(LN.Provider,{value:f},i.createElement(a,(0,Ft.A)({className:(0,vs.A)(n.root,o,u&&n.dense,!d&&n.padding,p&&n.subheader),ref:t},h),p,r))}));const zN=(0,ys.A)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(FN);function BN(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function $N(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function HN(e,t){if(void 0===t)return!0;var r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function UN(e,t,r,n,o,i){for(var s=!1,a=o(e,t,!!t&&r);a;){if(a===e.firstChild){if(s)return;s=!0}var l=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&HN(a,i)&&!l)return void a.focus();a=o(e,a,r)}}var WN="undefined"===typeof window?i.useEffect:i.useLayoutEffect;const VN=i.forwardRef((function(e,t){var r=e.actions,o=e.autoFocus,s=void 0!==o&&o,a=e.autoFocusItem,l=void 0!==a&&a,u=e.children,c=e.className,d=e.disabledItemsFocusable,p=void 0!==d&&d,h=e.disableListWrap,f=void 0!==h&&h,m=e.onKeyDown,g=e.variant,v=void 0===g?"selectedMenu":g,b=(0,gs.A)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),y=i.useRef(null),x=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});WN((function(){s&&y.current.focus()}),[s]),i.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var r=!y.current.style.width;if(e.clientHeight<y.current.clientHeight&&r){var n="".concat(Qj(),"px");y.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,y.current.style.width="calc(100% + ".concat(n,")")}return y.current}}}),[]);var w=i.useCallback((function(e){y.current=n.findDOMNode(e)}),[]),_=(0,Rs.A)(w,t),S=-1;i.Children.forEach(u,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===S)&&(S=t))}));var A=i.Children.map(u,(function(e,t){if(t===S){var r={};return l&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===v&&(r.tabIndex=0),i.cloneElement(e,r)}return e}));return i.createElement(zN,(0,Ft.A)({role:"menu",ref:_,className:c,onKeyDown:function(e){var t=y.current,r=e.key,n=(0,Hj.A)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),UN(t,n,f,p,BN);else if("ArrowUp"===r)e.preventDefault(),UN(t,n,f,p,$N);else if("Home"===r)e.preventDefault(),UN(t,null,f,p,BN);else if("End"===r)e.preventDefault(),UN(t,null,f,p,$N);else if(1===r.length){var o=x.current,i=r.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);var a=n&&!o.repeating&&HN(n,o);o.previousKeyMatched&&(a||UN(t,n,!1,p,BN,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:s?0:-1},b),A)}));var qN={vertical:"top",horizontal:"right"},GN={vertical:"top",horizontal:"left"},QN=i.forwardRef((function(e,t){var r=e.autoFocus,o=void 0===r||r,s=e.children,a=e.classes,l=e.disableAutoFocusItem,u=void 0!==l&&l,c=e.MenuListProps,d=void 0===c?{}:c,p=e.onClose,h=e.onEntering,f=e.open,m=e.PaperProps,g=void 0===m?{}:m,v=e.PopoverClasses,b=e.transitionDuration,y=void 0===b?"auto":b,x=e.TransitionProps,w=(x=void 0===x?{}:x).onEntering,_=(0,gs.A)(x,["onEntering"]),S=e.variant,A=void 0===S?"selectedMenu":S,C=(0,gs.A)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),k=Vl(),E=o&&!u&&f,R=i.useRef(null),j=i.useRef(null),O=-1;i.Children.map(s,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==A&&e.props.selected||-1===O)&&(O=t))}));var T=i.Children.map(s,(function(e,t){return t===O?i.cloneElement(e,{ref:function(t){j.current=n.findDOMNode(t),(0,Uj.A)(e.ref,t)}}):e}));return i.createElement(DN,(0,Ft.A)({getContentAnchorEl:function(){return j.current},classes:v,onClose:p,TransitionProps:(0,Ft.A)({onEntering:function(e,t){R.current&&R.current.adjustStyleForScrollbar(e,k),h&&h(e,t),w&&w(e,t)}},_),anchorOrigin:"rtl"===k.direction?qN:GN,transformOrigin:"rtl"===k.direction?qN:GN,PaperProps:(0,Ft.A)({},g,{classes:(0,Ft.A)({},g.classes,{root:a.paper})}),open:f,ref:t,transitionDuration:y},C),i.createElement(VN,(0,Ft.A)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:R,autoFocus:o&&(-1===O||u),autoFocusItem:E,variant:A},d,{className:(0,vs.A)(a.list,d.className)}),T))}));const KN=(0,ys.A)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(QN);function JN(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function XN(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(JN(e.value)&&""!==e.value||t&&JN(e.defaultValue)&&""!==e.defaultValue)}function YN(e,t){return"object"===(0,Qe.A)(t)&&null!==t?e===t:String(e)===String(t)}const ZN=i.forwardRef((function(e,t){var r=e["aria-label"],n=e.autoFocus,o=e.autoWidth,s=e.children,a=e.classes,l=e.className,u=e.defaultValue,c=e.disabled,d=e.displayEmpty,p=e.IconComponent,h=e.inputRef,f=e.labelId,m=e.MenuProps,g=void 0===m?{}:m,v=e.multiple,b=e.name,y=e.onBlur,x=e.onChange,w=e.onClose,_=e.onFocus,S=e.onOpen,A=e.open,C=e.readOnly,k=e.renderValue,E=e.SelectDisplayProps,R=void 0===E?{}:E,j=e.tabIndex,O=(e.type,e.value),T=e.variant,I=void 0===T?"standard":T,P=(0,gs.A)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),N=(0,NT.A)({controlled:O,default:u,name:"Select"}),M=(0,et.A)(N,2),D=M[0],L=M[1],F=i.useRef(null),z=i.useState(null),B=z[0],$=z[1],H=i.useRef(null!=A).current,U=i.useState(),W=U[0],V=U[1],q=i.useState(!1),G=q[0],Q=q[1],K=(0,Rs.A)(t,h);i.useImperativeHandle(K,(function(){return{focus:function(){B.focus()},node:F.current,value:D}}),[B,D]),i.useEffect((function(){n&&B&&B.focus()}),[n,B]),i.useEffect((function(){if(B){var e=(0,Hj.A)(B).getElementById(f);if(e){var t=function(){getSelection().isCollapsed&&B.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[f,B]);var J,X,Y=function(e,t){e?S&&S(t):w&&w(t),H||(V(o?null:B.clientWidth),Q(e))},Z=i.Children.toArray(s),ee=function(e){return function(t){var r;if(v||Y(!1,t),v){r=Array.isArray(D)?D.slice():[];var n=D.indexOf(e.props.value);-1===n?r.push(e.props.value):r.splice(n,1)}else r=e.props.value;e.props.onClick&&e.props.onClick(t),D!==r&&(L(r),x&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:r,name:b}}),x(t,e)))}},te=null!==B&&(H?A:G);delete P["aria-invalid"];var re=[],ne=!1;(XN({value:D})||d)&&(k?J=k(D):ne=!0);var oe=Z.map((function(e){if(!i.isValidElement(e))return null;var t;if(v){if(!Array.isArray(D))throw new Error((0,jN.A)(2));(t=D.some((function(t){return YN(t,e.props.value)})))&&ne&&re.push(e.props.children)}else(t=YN(D,e.props.value))&&ne&&(X=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ee(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(J=v?re.join(", "):X);var ie,se=W;!o&&H&&B&&(se=B.clientWidth),ie="undefined"!==typeof j?j:c?null:0;var ae=R.id||(b?"mui-component-select-".concat(b):void 0);return i.createElement(i.Fragment,null,i.createElement("div",(0,Ft.A)({className:(0,vs.A)(a.root,a.select,a.selectMenu,a[I],l,c&&a.disabled),ref:$,tabIndex:ie,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":te?"true":void 0,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[f,ae].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:c||C?null:function(e){0===e.button&&(e.preventDefault(),B.focus(),Y(!0,e))},onBlur:function(e){!te&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:b}}),y(e))},onFocus:_},R,{id:ae}),function(e){return null==e||"string"===typeof e&&!e.trim()}(J)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):J),i.createElement("input",(0,Ft.A)({value:Array.isArray(D)?D.join(","):D,name:b,ref:F,"aria-hidden":!0,onChange:function(e){var t=Z.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var r=Z[t];L(r.props.value),x&&x(e,r)}},tabIndex:-1,className:a.nativeInput,autoFocus:n},P)),i.createElement(p,{className:(0,vs.A)(a.icon,a["icon".concat((0,Fs.A)(I))],te&&a.iconOpen,c&&a.disabled)}),i.createElement(KN,(0,Ft.A)({id:"menu-".concat(b||""),anchorEl:B,open:te,onClose:function(e){Y(!1,e)}},g,{MenuListProps:(0,Ft.A)({"aria-labelledby":f,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:(0,Ft.A)({},g.PaperProps,{style:(0,Ft.A)({minWidth:se},null!=g.PaperProps?g.PaperProps.style:null)})}),oe))}));function eM(e){var t=e.props,r=e.states,n=e.muiFormControl;return r.reduce((function(e,r){return e[r]=t[r],n&&"undefined"===typeof t[r]&&(e[r]=n[r]),e}),{})}const tM=(0,_s.A)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function rM(e,t){return parseInt(e[t],10)||0}var nM="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,oM={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const iM=i.forwardRef((function(e,t){var r=e.onChange,n=e.rows,o=e.rowsMax,s=e.rowsMin,a=e.maxRows,l=e.minRows,u=void 0===l?1:l,c=e.style,d=e.value,p=(0,gs.A)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=a||o,f=n||s||u,m=i.useRef(null!=d).current,g=i.useRef(null),v=(0,Rs.A)(t,g),b=i.useRef(null),y=i.useRef(0),x=i.useState({}),w=x[0],_=x[1],S=i.useCallback((function(){var t=g.current,r=window.getComputedStyle(t),n=b.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");var o=r["box-sizing"],i=rM(r,"padding-bottom")+rM(r,"padding-top"),s=rM(r,"border-bottom-width")+rM(r,"border-top-width"),a=n.scrollHeight-i;n.value="x";var l=n.scrollHeight-i,u=a;f&&(u=Math.max(Number(f)*l,u)),h&&(u=Math.min(Number(h)*l,u));var c=(u=Math.max(u,l))+("border-box"===o?i+s:0),d=Math.abs(u-a)<=1;_((function(e){return y.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==d)?(y.current+=1,{overflow:d,outerHeightStyle:c}):e}))}),[h,f,e.placeholder]);i.useEffect((function(){var e=(0,ON.A)((function(){y.current=0,S()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[S]),nM((function(){S()})),i.useEffect((function(){y.current=0}),[d]);return i.createElement(i.Fragment,null,i.createElement("textarea",(0,Ft.A)({value:d,onChange:function(e){y.current=0,m||S(),r&&r(e)},ref:v,rows:f,style:(0,Ft.A)({height:w.outerHeightStyle,overflow:w.overflow?"hidden":null},c)},p)),i.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:b,tabIndex:-1,style:(0,Ft.A)({},oM,c)}))}));var sM="undefined"===typeof window?i.useEffect:i.useLayoutEffect,aM=i.forwardRef((function(e,t){var r=e["aria-describedby"],n=e.autoComplete,o=e.autoFocus,s=e.classes,a=e.className,l=(e.color,e.defaultValue),u=e.disabled,c=e.endAdornment,d=(e.error,e.fullWidth),p=void 0!==d&&d,h=e.id,f=e.inputComponent,m=void 0===f?"input":f,g=e.inputProps,v=void 0===g?{}:g,b=e.inputRef,y=(e.margin,e.multiline),x=void 0!==y&&y,w=e.name,_=e.onBlur,S=e.onChange,A=e.onClick,C=e.onFocus,k=e.onKeyDown,E=e.onKeyUp,R=e.placeholder,j=e.readOnly,O=e.renderSuffix,T=e.rows,I=e.rowsMax,P=e.rowsMin,N=e.maxRows,M=e.minRows,D=e.startAdornment,L=e.type,F=void 0===L?"text":L,z=e.value,B=(0,gs.A)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),$=null!=v.value?v.value:z,H=i.useRef(null!=$).current,U=i.useRef(),W=i.useCallback((function(e){0}),[]),V=(0,Rs.A)(v.ref,W),q=(0,Rs.A)(b,V),G=(0,Rs.A)(U,q),Q=i.useState(!1),K=Q[0],J=Q[1],X=i.useContext(YI);var Y=eM({props:e,muiFormControl:X,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Y.focused=X?X.focused:K,i.useEffect((function(){!X&&u&&K&&(J(!1),_&&_())}),[X,u,K,_]);var Z=X&&X.onFilled,ee=X&&X.onEmpty,te=i.useCallback((function(e){XN(e)?Z&&Z():ee&&ee()}),[Z,ee]);sM((function(){H&&te({value:$})}),[$,te,H]);i.useEffect((function(){te(U.current)}),[]);var re=m,ne=(0,Ft.A)({},v,{ref:G});"string"!==typeof re?ne=(0,Ft.A)({inputRef:G,type:F},ne,{ref:null}):x?!T||N||M||I||P?(ne=(0,Ft.A)({minRows:T||M,rowsMax:I,maxRows:N},ne),re=iM):re="textarea":ne=(0,Ft.A)({type:F},ne);return i.useEffect((function(){X&&X.setAdornedStart(Boolean(D))}),[X,D]),i.createElement("div",(0,Ft.A)({className:(0,vs.A)(s.root,s["color".concat((0,Fs.A)(Y.color||"primary"))],a,Y.disabled&&s.disabled,Y.error&&s.error,p&&s.fullWidth,Y.focused&&s.focused,X&&s.formControl,x&&s.multiline,D&&s.adornedStart,c&&s.adornedEnd,"dense"===Y.margin&&s.marginDense),onClick:function(e){U.current&&e.currentTarget===e.target&&U.current.focus(),A&&A(e)},ref:t},B),D,i.createElement(ZI.Provider,{value:null},i.createElement(re,(0,Ft.A)({"aria-invalid":Y.error,"aria-describedby":r,autoComplete:n,autoFocus:o,defaultValue:l,disabled:Y.disabled,id:h,onAnimationStart:function(e){te("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:w,placeholder:R,readOnly:j,required:Y.required,rows:T,value:$,onKeyDown:k,onKeyUp:E},ne,{className:(0,vs.A)(s.input,v.className,Y.disabled&&s.disabled,x&&s.inputMultiline,Y.hiddenLabel&&s.inputHiddenLabel,D&&s.inputAdornedStart,c&&s.inputAdornedEnd,"search"===F&&s.inputTypeSearch,"dense"===Y.margin&&s.inputMarginDense),onBlur:function(e){_&&_(e),v.onBlur&&v.onBlur(e),X&&X.onBlur?X.onBlur(e):J(!1)},onChange:function(e){if(!H){var t=e.target||U.current;if(null==t)throw new Error((0,jN.A)(1));te({value:t.value})}for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];v.onChange&&v.onChange.apply(v,[e].concat(n)),S&&S.apply(void 0,[e].concat(n))},onFocus:function(e){Y.disabled?e.stopPropagation():(C&&C(e),v.onFocus&&v.onFocus(e),X&&X.onFocus?X.onFocus(e):J(!0))}}))),c,O?O((0,Ft.A)({},Y,{startAdornment:D})):null)}));const lM=(0,ys.A)((function(e){var t="light"===e.palette.type,r={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,Ft.A)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",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":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(aM);var uM=i.forwardRef((function(e,t){var r=e.disableUnderline,n=e.classes,o=e.fullWidth,s=void 0!==o&&o,a=e.inputComponent,l=void 0===a?"input":a,u=e.multiline,c=void 0!==u&&u,d=e.type,p=void 0===d?"text":d,h=(0,gs.A)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(lM,(0,Ft.A)({classes:(0,Ft.A)({},n,{root:(0,vs.A)(n.root,!r&&n.underline),underline:null}),fullWidth:s,inputComponent:l,multiline:c,ref:t,type:p},h))}));uM.muiName="Input";const cM=(0,ys.A)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.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"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),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($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(uM);const dM=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.disabled,s=e.IconComponent,a=e.inputRef,l=e.variant,u=void 0===l?"standard":l,c=(0,gs.A)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return i.createElement(i.Fragment,null,i.createElement("select",(0,Ft.A)({className:(0,vs.A)(r.root,r.select,r[u],n,o&&r.disabled),disabled:o,ref:a||t},c)),e.multiple?null:i.createElement(s,{className:(0,vs.A)(r.icon,r["icon".concat((0,Fs.A)(u))],o&&r.disabled)}))}));var pM=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},hM=i.createElement(cM,null),fM=i.forwardRef((function(e,t){var r=e.children,n=e.classes,o=e.IconComponent,s=void 0===o?tM:o,a=e.input,l=void 0===a?hM:a,u=e.inputProps,c=(e.variant,(0,gs.A)(e,["children","classes","IconComponent","input","inputProps","variant"])),d=eM({props:e,muiFormControl:eP(),states:["variant"]});return i.cloneElement(l,(0,Ft.A)({inputComponent:dM,inputProps:(0,Ft.A)({children:r,classes:n,IconComponent:s,variant:d.variant,type:void 0},u,l?l.props.inputProps:{}),ref:t},c))}));fM.muiName="Select";(0,ys.A)(pM,{name:"MuiNativeSelect"})(fM);var mM=i.forwardRef((function(e,t){var r=e.disableUnderline,n=e.classes,o=e.fullWidth,s=void 0!==o&&o,a=e.inputComponent,l=void 0===a?"input":a,u=e.multiline,c=void 0!==u&&u,d=e.type,p=void 0===d?"text":d,h=(0,gs.A)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(lM,(0,Ft.A)({classes:(0,Ft.A)({},n,{root:(0,vs.A)(n.root,!r&&n.underline),underline:null}),fullWidth:s,inputComponent:l,multiline:c,ref:t,type:p},h))}));mM.muiName="Input";const gM=(0,ys.A)((function(e){var t="light"===e.palette.type,r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:n,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:n}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.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"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(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:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(mM);var vM=i.forwardRef((function(e,t){e.children;var r=e.classes,n=e.className,o=e.label,s=e.labelWidth,a=e.notched,l=e.style,u=(0,gs.A)(e,["children","classes","className","label","labelWidth","notched","style"]),c="rtl"===Vl().direction?"right":"left";if(void 0!==o)return i.createElement("fieldset",(0,Ft.A)({"aria-hidden":!0,className:(0,vs.A)(r.root,n),ref:t,style:l},u),i.createElement("legend",{className:(0,vs.A)(r.legendLabelled,a&&r.legendNotched)},o?i.createElement("span",null,o):i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var d=s>0?.75*s+8:.01;return i.createElement("fieldset",(0,Ft.A)({"aria-hidden":!0,style:(0,Ft.A)((0,Bj.A)({},"padding".concat((0,Fs.A)(c)),8),l),className:(0,vs.A)(r.root,n),ref:t},u),i.createElement("legend",{className:r.legend,style:{width:a?d:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))}));const bM=(0,ys.A)((function(e){return{root:{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"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(vM);var yM=i.forwardRef((function(e,t){var r=e.classes,n=e.fullWidth,o=void 0!==n&&n,s=e.inputComponent,a=void 0===s?"input":s,l=e.label,u=e.labelWidth,c=void 0===u?0:u,d=e.multiline,p=void 0!==d&&d,h=e.notched,f=e.type,m=void 0===f?"text":f,g=(0,gs.A)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(lM,(0,Ft.A)({renderSuffix:function(e){return i.createElement(bM,{className:r.notchedOutline,label:l,labelWidth:c,notched:"undefined"!==typeof h?h:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,Ft.A)({},r,{root:(0,vs.A)(r.root,r.underline),notchedOutline:null}),fullWidth:o,inputComponent:a,multiline:p,ref:t,type:m},g))}));yM.muiName="Input";const xM=(0,ys.A)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(yM);var wM=pM,_M=i.createElement(cM,null),SM=i.createElement(gM,null),AM=i.forwardRef((function e(t,r){var n=t.autoWidth,o=void 0!==n&&n,s=t.children,a=t.classes,l=t.displayEmpty,u=void 0!==l&&l,c=t.IconComponent,d=void 0===c?tM:c,p=t.id,h=t.input,f=t.inputProps,m=t.label,g=t.labelId,v=t.labelWidth,b=void 0===v?0:v,y=t.MenuProps,x=t.multiple,w=void 0!==x&&x,_=t.native,S=void 0!==_&&_,A=t.onClose,C=t.onOpen,k=t.open,E=t.renderValue,R=t.SelectDisplayProps,j=t.variant,O=void 0===j?"standard":j,T=(0,gs.A)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),I=S?dM:ZN,P=eM({props:t,muiFormControl:eP(),states:["variant"]}).variant||O,N=h||{standard:_M,outlined:i.createElement(xM,{label:m,labelWidth:b}),filled:SM}[P];return i.cloneElement(N,(0,Ft.A)({inputComponent:I,inputProps:(0,Ft.A)({children:s,IconComponent:d,variant:P,type:void 0,multiple:w},S?{id:p}:{autoWidth:o,displayEmpty:u,labelId:g,MenuProps:y,onClose:A,onOpen:C,open:k,renderValue:E,SelectDisplayProps:(0,Ft.A)({id:p},R)},f,{classes:f?(0,RN.A)({baseClasses:a,newClasses:f.classes,Component:e}):a},h?h.props.inputProps:{}),ref:r},T))}));AM.muiName="Select";const CM=(0,ys.A)(wM,{name:"MuiSelect"})(AM);class kM extends i.Component{constructor(){super(...arguments),this.state={newForm:this.props.newForm,dataset_type:"publication",dtl_primary:[],selected_dt:"",dataset_info:"",description:"",dataTypeDropdown:[],display_doi:"",editingSource:[],source_uuid_list:[],source_uuid_type:"",source_uuid:void 0,source_uuids:[],status:"NEW",upload:[],writeable:!0,nextHubIDs:[],previousHubIDs:[],editingPublication:this.props.newForm?{publication_status:void 0}:this.props.editingPublication,groups:[],has_admin_priv:!1,has_submit_priv:!1,has_publish_priv:!1,has_version_priv:!1,has_manual_priv:!1,groupsToken:"",assay_type_primary:!0,data_type_dicts:this.props.dataTypeList,slist:[],showSubmitModal:!1,badge_class:"badge-purple",groups_dataprovider:[],GroupSelectShow:!1,lookUpCancelled:!1,LookUpShow:!1,other_dt:"",buttonSpinnerTarget:"",errorSnack:!1,disableSelectDatatype:!1,statusSetLabel:"Reset Status",toggleStatusSet:!1,newVersion:!1,previousHID:void 0,nextHID:void 0,loadingPreviousVersions:!0,loadingNextVersions:!0,versioned:!1,previous_revision_uuid:void 0,has_other_datatype:!1,submitErrorResponse:"",submitErrorStatus:"",isValidData:!0,fieldString:"",formErrors:{title:"",issue:"",volume:"",pages_or_article_num:"",description:"",source_uuid_list:"",source_uuid:"",publication_date:"",publication_venue:"",publication_doi:"",omap_doi:"",publication_url:"",publication_status:""},validationStatus:{title:"",issue:"",volume:"",pages_or_article_num:"",description:"",source_uuid_list:"",source_uuid:"",publication_date:"",publication_venue:"",publication_doi:"",omap_doi:"",publication_url:"",publication_status:""},fieldDescriptons:{title:"The title of the publication",issue:"The issue number of the journal that it was published in.",volume:"The volume number of a journal that it was published in.",pages_or_article_num:'The pages or the article number in the publication journal e.g., "23", "23-49", "e1003424.',description:"Free text description of the publication",source_uuid_list:"",source_uuid:"",publication_date:"The date of publication",publication_venue:"The venue of the publication, journal, conference, preprint server, etc...",publication_doi:"The doi of the publication. (##.####/[alpha-numeric-string])",omap_doi:"A DOI pointing to an Organ Mapping Antibody Panel relevant to this publication",publication_url:"The URL at the publishers server for print/pre-print (http(s)://[alpha-numeric-string].[alpha-numeric-string].[...]",publication_status:"if the publication has been published yet or not"}},this.showModal=()=>{this.setState({show:!0})},this.hideModal=()=>{this.setState({show:!1})},this.showErrorMsgModal=e=>{this.setState({errorMsgShow:!0,statusErrorMsg:e})},this.hideErrorMsgModal=()=>{this.setState({errorMsgShow:!1})},this.showSubmitModal=()=>{this.setState({showSubmitModal:!0})},this.hideSubmitModal=()=>{this.setState({showSubmitModal:!1})},this.hideConfirmDialog=()=>{this.setState({confirmDialog:!1,editingSource:[]})},this.hideGroupSelectModal=()=>{this.setState({LookUpShow:!1,GroupSelectShow:!1,submitting:!1,buttonSpinnerTarget:""})},this.handleLookUpClick=()=>{this.state.lookUpCancelled||this.setState({LookUpShow:!0}),this.setState({lookUpCancelled:!1})},this.hideLookUpModal=()=>{this.setState({LookUpShow:!1})},this.cancelLookUpModal=()=>{this.setState({LookUpShow:!1,lookUpCancelled:!0})},this.cancelGroupModal=()=>{this.setState({GroupSelectShow:!1})},this.handler=e=>{"Tab"===e.key&&(e.preventDefault(),this.state.collection_candidates.length>0&&this.setState({collection:this.state.collection_candidates[0],showCollectionsDropDown:!1}))},this.handleDateChange=e=>{this.setState({publication_date:e})},this.handlePublicationStatus=e=>{var t=!1;t="true"===e,this.setState((e=>({editingPublication:{...e.editingPublication,publication_status:t}})))},this.handleInputChange=e=>{var{id:t,value:r,name:n}=e.target,o="publication_status"===n?n:t;"groups"===n?this.setState((e=>({selected_group:r,editingPublication:{...e.editingPublication,group:r}}))):"newStatus"===o?this.setState({newStatus:r}):this.setState((e=>({editingPublication:{...e.editingPublication,[o]:r}})))},this.handleInputFocus=e=>{const{name:t,value:r}=e.target;if("collection"===t){let e=this.state.collections.filter((e=>e.name.toLowerCase().includes(r.toLowerCase())));this.setState({collection:r,showCollectionsDropDown:!0,collection_candidates:e})}},this.handleInputBlur=e=>{const{name:t}=e.target;if("collection"===t)this.setState({showCollectionsDropDown:!1})},this.handleCollectionClick=e=>{this.setState({collection:e,showCollectionsDropDown:!1})},this.handleSelectClick=e=>{this.state.selectedSource!==e.row.uuid&&this.setState({selectedSource:e.row.uuid},(()=>{var t=this.state.source_uuid_list;t.push(e.row),this.setState((r=>({source_uuid:e.row.hubmap_id,source_uuid_list:t,slist:t,source_entity:e.row,LookUpShow:!1,validationStatus:{...r.validationStatus,source_uuid_list:""},formErrors:{...r.formErrors,source_uuid_list:""}}))),this.hideLookUpModal()}))},this.sourceRemover=e=>{var t=this.state.source_uuid_list;t=t.filter((t=>t.uuid!==e.uuid)),this.setState({source_uuid_list:t,slist:t},(()=>{}))},this.renderSources=()=>{if(this.state.source_uuid_list||!1===this.props.newForm)return(0,Ne.jsxs)("div",{className:"w-100",children:[(0,Ne.jsxs)("label",{htmlFor:"source_uuid_list",children:["Source(s) ",(0,Ne.jsx)("span",{className:"text-danger px-2",children:"*"})]}),(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"source_uuid_tooltip"}),(0,Ne.jsx)(hT,{id:"source_uuid_tooltip",className:"zindex-tooltip",place:"right",type:"info",effect:"solid",children:(0,Ne.jsxs)("p",{children:["The source tissue samples or data from which this data was derived. ",(0,Ne.jsx)("br",{}),"At least ",(0,Ne.jsx)("strong",{children:"one source "}),"is required, but multiple may be specified."]})}),(0,Ne.jsx)($I,{component:ws,style:{maxHeight:450},children:(0,Ne.jsxs)(II,{"aria-label":"Associated Publications",size:"small",className:"table table-striped table-hover mb-0",children:[(0,Ne.jsx)(VI,{className:"thead-dark font-size-sm",children:(0,Ne.jsxs)(GI,{className:"   ",children:[(0,Ne.jsx)(zI,{children:" Source ID"}),(0,Ne.jsx)(zI,{component:"th",children:"Subtype"}),(0,Ne.jsx)(zI,{component:"th",children:"Group Name"}),(0,Ne.jsx)(zI,{component:"th",children:"Status"}),(0,Ne.jsx)(zI,{component:"th",align:"right",children:"Action"})]})}),(0,Ne.jsx)(LI,{children:this.state.source_uuid_list.map(((e,t)=>(0,Ne.jsxs)(GI,{className:"row-selection",children:[(0,Ne.jsx)(zI,{className:"clicky-cell",scope:"row",children:e.hubmap_id}),(0,Ne.jsx)(zI,{className:"clicky-cell",scope:"row",children:e.display_subtype}),(0,Ne.jsx)(zI,{className:"clicky-cell",scope:"row",children:e.group_name}),(0,Ne.jsx)(zI,{className:"clicky-cell",scope:"row",children:e.status&&(0,Ne.jsxs)("span",{className:"w-100 badge "+Yc(e.status,e.uuid),children:[" ",e.status]})}),(0,Ne.jsxs)(zI,{className:"clicky-cell",align:"right",scope:"row",children:[this.state.writeable&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)(bo,{className:"inline-icon interaction-icon ",icon:Co,color:"red",onClick:()=>this.sourceRemover(e,t)})}),!this.state.writeable&&(0,Ne.jsx)("small",{className:"text-muted",children:"N/A"})]})]},e.hubmap_id+""+t)))})]})}),this.state.writeable&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsxs)(nN,{className:"mt-2 w-100",width:"100%",display:"flex",children:[(0,Ne.jsx)(nN,{p:1,className:"m-0  text-right",flexShrink:0,children:(0,Ne.jsxs)(HE,{variant:"contained",type:"button",size:"small",className:"btn btn-neutral",onClick:()=>this.handleLookUpClick(),children:["Add"," ",this.state.source_uuids&&this.state.source_uuids.length>=1&&"Another"," ","Source",(0,Ne.jsx)(bo,{className:"fa button-icon m-2",icon:Lo})]})}),(0,Ne.jsx)(nN,{p:1,width:"100%",children:this.state.validationStatus.source_uuid_list&&this.state.validationStatus.source_uuid_list.length>0&&(0,Ne.jsx)(Ws,{severity:"error",width:"100% ",children:"Invalid Source: At least one source must be added."})})]})})]});this.state.writeable&&this.state.editingPublication},this.handleNewVersion=()=>{this.setState({buttonSpinnerTarget:"version"}),this.handleSubmit("newversion")},this.handleVersionNavigate=e=>{"next"===e?window.history.pushState(null,"","/publication/"+this.props.editingPublication.next_revision_uuid):window.history.pushState(null,"","/publication/"+this.props.editingPublication.previous_revision_uuid),window.location.reload()},this.handleAddNewCollection=()=>{this.setState({AddCollectionShow:!0})},this.handleClickOutside=e=>{this.setState({showCollectionsDropDown:!1})},this.handleCancelModal=()=>{this.props&&this.props.handleCancel?this.props.handleCancel():window.history.back()},this.handleReprocess=()=>{Ws("Reprocessing feature not implemented")},this.handleProcess=()=>{this.setState({buttonSpinnerTarget:"process"}),this.handleSubmit("process")},this.handleButtonClick=(e,t)=>{this.setState({new_status:e,buttonState:{i:!0}},(()=>{this.handleSubmit(e)}))},this.handlePublicationSelect=e=>{e.preventDefault(),window.history.pushState(null,"","/upload/"+this.props.editingPublication.upload.uuid),window.location.reload()},this.handleStatusSet=e=>{this.setState({submittingUpdate:!0});var t=this.state.newStatus;xd(this.props.editingPublication.uuid,{status:t},JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status<300?(this.setState({submit_error:!1,submitting:!1,submittingUpdate:!1}),this.props.onUpdated(e.results)):this.setState({submit_error:!0,submitting:!1,submittingUpdate:!1,submitErrorResponse:e.results.statusText?e.results.statusText:e.results.error,fieldString:e.results.statusText?e.results.statusText:e.results.error})})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e.toString(),fieldString:e.toString()})}))},this.handleSubmit=e=>{this.setState({submitting:!0,buttonSpinnerTarget:e.toLowerCase()}),this.validateForm().then((t=>{if(!t){var r=function(e){for(var t=Object.keys(e),r=0;r<t.length;++r){var n=t[r],o=e[n];null!==o&&void 0!==o&&""!==o||delete e[n]}return e}(this.state.formErrors),n=Object.keys(r),o="";for(var i in n){o=o+Rc(n[i])+", "}o=o.replace(/,\s*$/,""),this.setState({fieldString:o})}if(t)if((!this.props.editingPublication||this.props.editingPublication.length<=0||!this.props.editingPublication.uuid)&&this.state.groups.length>1&&!this.state.GroupSelectShow)this.setState({GroupSelectShow:!0});else{this.setState({GroupSelectShow:!1,submitting:!0});var s=!1;s="true"===this.state.editingPublication.publication_status;var a={description:this.state.editingPublication.description,title:this.state.editingPublication.title,publication_venue:this.state.editingPublication.publication_venue,publication_date:this.state.editingPublication.publication_date,publication_doi:this.state.editingPublication.publication_doi,omap_doi:this.state.editingPublication.omap_doi,publication_status:s,publication_url:this.state.editingPublication.publication_url,issue:parseInt(this.state.editingPublication.issue),volume:parseInt(this.state.editingPublication.volume),pages_or_article_num:this.state.editingPublication.pages_or_article_num,contains_human_genetic_sequences:!1};if(isNaN(a.issue)&&delete a.issue,isNaN(a.volume)&&delete a.volume,this.state.source_uuid_list&&this.state.source_uuid_list.length>0){let e=this.state.source_uuid_list.map((e=>e.uuid||e.source_uuid));e&&(a.direct_ancestor_uuids=e)}JSON.parse(localStorage.getItem("info")).groups_token;this.props.editingPublication&&!this.props.newForm?"newversion"===e?(a.previous_revision_uuid=this.props.editingPublication.uuid,this.state.selected_group&&this.state.selected_group.length>0?a.group_uuid=this.state.selected_group:a.group_uuid=this.state.groups_dataprovider[0].uuid,wd("publication",JSON.stringify(a),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status<300?(this.setState({display_doi:e.results.display_doi}),Sd(e.results.uuid,this.state.groupsToken).then((t=>{this.setState({globus_path:t.results},(()=>{this.props.onCreated({entity:e.results,globus_path:t.results}),this.onChangeGlobusURL(e.results,t.results)}))})).catch((e=>{e.response&&401===e.response.status&&localStorage.setItem("isAuthenticated",!1)}))):this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e.results.data.error,buttonSpinnerTarget:""},(()=>{}))})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e,buttonSpinnerTarget:""},(()=>{}))}))):"submit"===e?(a.status="Submitted",xd(this.props.editingPublication.uuid,JSON.stringify(a),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(e.status<300){var t={message:"Publication has been submitted ("+("https://ingest.hubmapconsortium.org/publication/"+this.props.editingPublication.uuid)+")"};Kc(JSON.parse(localStorage.getItem("info")).groups_token,t).then((t=>{e.status<300?(this.setState({submit_error:!1,submitting:!1}),this.props.onUpdated(e.results)):this.props.reportError(e)}))}else this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e,buttonSpinnerTarget:""})})).catch((e=>{this.props.reportError(e),this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e.result.data,buttonSpinnerTarget:""})}))):"process"===e?qc(this.props.editingPublication.uuid,JSON.stringify(a),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(e.status<300)this.props.onUpdated(e.results);else{var t="";e.err?t=e.err.response.status+" "+e.err.response.statusText:e.error&&(t=e.error.response.status+" "+e.error.response.statusText);var r="Uncaptured Error";e.err&&e.err.response.data&&(r=e.err.response.data),e.error&&e.error.response.data&&(r=e.error.response.data),this.setState({submit_error:!0,submitting:!1,buttonSpinnerTarget:"",submitErrorStatus:t,submitErrorResponse:r})}})).catch((e=>{this.props.reportError(e),this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e,submitErrorStatus:e,buttonSpinnerTarget:""})})):xd(this.props.editingPublication.uuid,JSON.stringify(a),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status<300?(this.setState({submit_error:!1,submitting:!1}),this.props.onUpdated(e.results)):this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e,buttonSpinnerTarget:""})})).catch((e=>{this.props.reportError(e),this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e.result.data,buttonSpinnerTarget:""})})):(this.state.selected_group&&this.state.selected_group.length>0?a.group_uuid=this.state.selected_group:a.group_uuid=this.state.groups_dataprovider[0].uuid,function(e){const t={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};return _u().post("https://ingest.api.hubmapconsortium.org/publications",e,t).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>e.response?{status:e.response.status,results:e.response.data}:{error:e}))}(JSON.stringify(a),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status<300?(this.setState({display_doi:e.results.display_doi}),Sd(e.results.uuid,this.state.groupsToken).then((t=>{this.setState({globus_path:t.results},(()=>{this.props.onCreated({entity:e.results,globus_path:t.results}),this.onChangeGlobusURL(e.results,t.results)}))})).catch((e=>{e.response&&401===e.response.status&&(localStorage.setItem("isAuthenticated",!1),window.location.reload())}))):e.response.data.error?this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e.response.data.error,buttonSpinnerTarget:""},(()=>{this.props.reportError(e.response.data.error)})):this.setState({submit_error:!0,submitting:!1,submitErrorResponse:"Error Creating Publication",buttonSpinnerTarget:""},(()=>{this.props.reportError(e.response.data.error)}))})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e,buttonSpinnerTarget:""},(()=>{this.props.reportError(e)}))})))}else this.setState({submit_error:!0,submitting:!1,buttonSpinnerTarget:"",submitErrorStatus:"There was a problem handling your form, and it is currently in an invalid state. Please review the marked items and try again."})}))},this.renderSubmitModal=()=>(0,Ne.jsxs)(vO,{"aria-labelledby":"submit-dialog",open:this.state.showSubmitModal,children:[(0,Ne.jsxs)(yO,{children:[(0,Ne.jsx)("h4",{children:"Preparing to Submit"}),(0,Ne.jsxs)("div",{children:["  Has all data for this dataset been ",(0,Ne.jsx)("br",{}),"1 ) validated locally, and  ",(0,Ne.jsx)("br",{}),"2 ) uploaded to the globus folder?"]})]}),(0,Ne.jsxs)(_T,{children:[(0,Ne.jsx)(HE,{className:"btn btn-primary mr-1",onClick:()=>this.handleSubmit("submit"),children:"Submit"}),(0,Ne.jsx)(HE,{className:"btn btn-secondary",onClick:this.hideSubmitModal,children:"Cancel"})]})]}),this.toggleStatSetView=()=>{this.setState((e=>({statusSetLabel:"Reset Status"===e.statusSetLabel?"Cancel":"Reset Status",toggleStatusSet:!e.toggleStatusSet})))},this.renderManualStatusControl=()=>(0,Ne.jsxs)("div",{className:"mt-1",children:[(0,Ne.jsx)(HE,{variant:"text",className:"mx-1",onClick:this.toggleStatSetView,children:this.state.statusSetLabel}),this.state.toggleStatusSet&&(0,Ne.jsx)(sI,{className:"mx-1",loading:this.state.submittingUpdate,onClick:()=>this.handleStatusSet(),variant:"contained",children:"Update"}),(0,Ne.jsx)(pi,{in:this.state.toggleStatusSet,className:"col-7",children:(0,Ne.jsxs)(cI,{controlId:"status",children:[(0,Ne.jsxs)(CM,{native:!0,size:"small",name:"newStatus",className:"form-select col-3 mt-3 ",required:!0,"aria-label":"status-select",value:this.state.newStatus,id:"newStatus",onChange:this.handleInputChange,children:[(0,Ne.jsx)("option",{value:"",children:"----"}),(0,Ne.jsx)("option",{children:"New"}),(0,Ne.jsx)("option",{children:"Submitted"})]}),(0,Ne.jsx)(wE,{children:"Select the desired status, then click [Update] to apply your changes."})]})})]})}updateStateDataTypeInfo(){let e;this.props.hasOwnProperty("editingPublication")&&this.props.editingPublication&&this.props.editingPublication.dataset_type,this.setState({dataset_type:this.props.editingPublication.dataset_type,has_other_datatype:void 0!==e,other_dt:e})}componentDidMount(){document.addEventListener("click",this.handleClickOutside);var e=void 0;try{var t=JSON.parse(localStorage.getItem("info")).groups_token;this.setState({groupsToken:t})}catch{}if(localStorage.getItem("info")){JSON.parse(localStorage.getItem("info")).groups_token}else localStorage.setItem("isAuthenticated",!1);if(this.props.editingPublication&&(this.props.editingPublication.previous_revision_uuids||this.setState({loadingPreviousVersions:!1}),this.props.editingPublication.next_revision_uuids||this.setState({loadingNextVersions:!1}),this.props.editingPublication.uuid&&Uc(this.props.editingPublication.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{e.status<300&&(this.setState({writeable:e.results.has_write_priv,has_write_priv:e.results.has_write_priv,has_submit_priv:e.results.has_submit_priv,has_publish_priv:e.results.has_publish_priv,has_admin_priv:e.results.has_admin_priv}),Wc(this.props.editingPublication.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{this.setState({has_version_priv:e.results.has_write_priv}),this.state.has_admin_priv&&"PUBLISHED"!==this.props.editingPublication.status.toUpperCase()&&this.setState({has_manual_priv:!0})})).catch((e=>{this.props.reportError(e)})))})).catch((e=>{}))),zc().then((e=>{const t=e.results.filter((e=>!0===e.data_provider));this.setState({groups:t,groups_dataprovider:t},(()=>{}))})).catch((e=>{e.response&&401===e.response.status?(this.props.reportError(e),localStorage.setItem("isAuthenticated",!1)):e.status&&localStorage.setItem("isAuthenticated",!1)})),this.props.editingPublication&&!this.props.newForm){try{this.setState({source_uuids:this.props.editingPublication.direct_ancestors})}catch{}if(e=(this.props.editingPublication,!1),this.setState({status:this.props.editingPublication.hasOwnProperty("status")?this.props.editingPublication.status.toUpperCase():"NEW",display_doi:this.props.editingPublication.hubmap_id,source_uuid:this.getSourceAncestor(this.props.editingPublication.direct_ancestors),source_uuid_list:this.assembleSourceAncestorData(this.props.editingPublication.direct_ancestors),source_entity:this.getSourceAncestorEntity(this.props.editingPublication.direct_ancestors),slist:this.getSourceAncestorEntity(this.props.editingPublication.direct_ancestors),contains_human_genetic_sequences:e,description:this.props.editingPublication.description,dataset_info:this.props.editingPublication.dataset_info,previous_revision_uuid:this.props.editingPublication.hasOwnProperty("previous_revision_uuid")?this.props.editingPublication.previous_revision_uuid:void 0,errorMsgShow:!("error"!==this.props.editingPublication.status.toLowerCase()||!this.props.editingPublication.message),statusErrorMsg:this.props.editingPublication.message},(()=>{this.setState({badge_class:Yc(this.state.status.toUpperCase())}),Sd(this.props.editingPublication.uuid,this.state.groupsToken).then((e=>{this.setState({globus_path:e.results})})).catch((e=>{this.setState({globus_path:"",globus_path_tips:"Globus URL Unavailable"}),e.response&&401===e.response.status&&(localStorage.setItem("isAuthenticated",!1),window.location.reload())}))})),this.props.editingPublication&&this.props.editingPublication.previous_revision_uuids&&this.props.editingPublication.previous_revision_uuids.length>0){this.setState({versioned:!0});var r=[];this.props.editingPublication.previous_revision_uuids.forEach((function(e,t){yd(e,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{t.results.hubmap_id?r.push({type:t.results.entity_type,hubmapID:t.results.hubmap_id}):r.push(e)})).catch((t=>{r.push(e),this.props.reportError(t)}))})),this.setState({previousHubIDs:r},(()=>{this.setState({loadingPreviousVersions:!1})}))}if(this.props.editingPublication&&this.props.editingPublication.next_revision_uuids&&this.props.editingPublication.next_revision_uuids.length>0){this.setState({versioned:!0});var n=[];this.props.editingPublication.next_revision_uuids.forEach((function(e,t){yd(e,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{t.results.hubmap_id?n.push({type:t.results.entity_type,hubmapID:t.results.hubmap_id}):n.push(e)})).catch((t=>{this.props.reportError(t),n.push(e)}))})),this.setState({nextHubIDs:n},(()=>{this.setState({loadingNextVersions:!1})}))}}}componentWillUnmount(){document.removeEventListener("click",this.handleClickOutside,!0)}showConfirmDialog(e,t){this.setState({confirmDialog:!0,editingSource:e,editingSourceIndex:t})}validateProcessor(e,t){return this.state.editingPublication[e]&&0!==this.state.editingPublication[e].length?(this.setState((t=>({validationStatus:{...t.validationStatus,[e]:""},formErrors:{...t.formErrors,[e]:""}}))),!0):(this.setState((r=>({validationStatus:{...r.validationStatus,[e]:t},formErrors:{...r.formErrors,[e]:"is-invalid"}}))),!1)}validateForm(){return new Promise(((e,t)=>{let r=!0;["title","publication_venue","publication_date","publication_url","description"].forEach((t=>{!1===this.validateProcessor(t,"Field is Required")&&(r=!1,e(r))}));var n=this.state.editingPublication.publication_status;void 0===n||null===n||0===n.length?(this.setState((e=>({validationStatus:{...e.validationStatus,publication_status:"Status is Required"},formErrors:{...e.formErrors,publication_status:"is-invalid"}}))),r=!1,e(r)):this.setState((e=>({validationStatus:{...e.validationStatus,publication_status:""},formErrors:{...e.formErrors,publication_status:""}}))),0===this.state.source_uuid_list.length?(this.setState((e=>({validationStatus:{...e.validationStatus,source_uuid_list:"Please select at least one source"},formErrors:{...e.formErrors,source_uuid_list:"is-invalid"}}))),r=!1,e(r)):this.setState((e=>({validationStatus:{...e.validationStatus,source_uuid_list:""},formErrors:{...e.formErrors,source_uuid_list:""}})));["issue","volume"].forEach((t=>{this.state.editingPublication[t]&&this.state.editingPublication[t].length>0&&isNaN(this.state.editingPublication[t])?(this.setState((e=>({validationStatus:{...e.validationStatus,[t]:"Must be a Number"},formErrors:{...e.formErrors,[t]:"is-invalid"}}))),r=!1,e(r)):this.setState((e=>({validationStatus:{...e.validationStatus,[t]:""},formErrors:{...e.formErrors,[t]:""}})))})),this.setState({isValidData:r}),r||this.setState({submit_error:!0,submitting:!1,buttonSpinnerTarget:"",submitErrorResponse:toString(this.state.validationStatus)}),e(r)}))}assembleSourceAncestorData(e){for(var t=0;t<e.length;t++){var r=kN(e[t]);e[t].display_subtype=r}try{return e}catch{}}getSourceAncestor(e){try{return e[0].hubmap_id}catch{}return""}getSourceAncestorTypes(e){return this.props.editingPublication.direct_ancestors.map((e=>e.entity_type)).includes(e)}getSourceAncestorEntity(e){try{return e[0]}catch{}return""}generateDisplaySourceId(e){if(e.length>1){for(var t="",r=1;r<e.length;r++){var n=e[r-1];"string"!=typeof e[r-1]&&(n=e[r-1].hubmap_id);var o=n.substring(n.lastIndexOf("-")+1,n.length),i=e[r];if("string"!=typeof e[r]&&(i=e[r].hubmap_id),i.substring(i.lastIndexOf("-")+1,i.length)-o!==1){t="subset";break}}let s=e[0].hubmap_id?e[0].hubmap_id:e[0],a=e[e.length-1].hubmap_id?e[e.length-1].hubmap_id:e[e.length-1],l=s.substring(0,s.lastIndexOf("-")+1),u="",c="",d=s;return u=s.substring(s.lastIndexOf("-")+1,s.length),c=a.substring(a.lastIndexOf("-")+1,a.length),d=`${l}[${u} through ${c}]`,"subset"===t&&(d=`a subset of ${l}[ between ${u} and ${c}]`),d}return e&&e[0]&&e[0].hubmap_id?e[0].hubmap_id:e[0]}renderButtonOverlay(){return(0,Ne.jsx)("div",{className:"overlay"})}renderButtons(){var e=!this.state.editingPublication.next_revision_uuid||void 0===this.state.editingPublication.next_revision_uuid,t=this.state.has_write_priv,r=this.state.has_admin_priv,n=(this.state.has_version_priv,"Published"===this.state.editingPublication.status),o="Submitted"===this.state.editingPublication.status,i="New"===this.state.editingPublication.status,s=this.props.newForm;return(0,Ne.jsxs)("div",{className:"buttonWrapRight",children:[this.renderButtonOverlay(),(o||i)&&r&&e&&(0,Ne.jsx)(Ne.Fragment,{children:this.processButton()}),t&&!s&&i&&(0,Ne.jsx)(Ne.Fragment,{children:(0,Ne.jsx)(HE,{className:"btn btn-primary mr-1",variant:"contained",onClick:()=>this.showSubmitModal(),children:"Submit"})}),!n&&t&&(0,Ne.jsx)(Ne.Fragment,{children:this.saveButton()}),s&&(0,Ne.jsx)(Ne.Fragment,{children:this.saveButton()}),this.cancelModalButton()]})}renderNewVersionButtons(){return(0,Ne.jsxs)(HE,{variant:"contained",sx:{minWidth:"130px"},onClick:()=>this.handleNewVersion(),children:[this.state.submitting&&"newversion"===this.state.buttonSpinnerTarget&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.submitting&&(0,Ne.jsx)(Ne.Fragment,{children:"New Version"})]})}renderVersionNav(){return AI(this.state.previousHubIDs,this.state.nextHubIDs)}cancelModalButton(){return(0,Ne.jsx)(HE,{type:"button",variant:"outlined",onClick:()=>this.handleCancelModal(),children:"Cancel"})}saveButton(){return(0,Ne.jsxs)(HE,{type:"button",variant:"contained",onClick:()=>this.handleSubmit("save"),children:["save"===this.state.buttonSpinnerTarget&&(0,Ne.jsx)("span",{children:(0,Ne.jsx)(bo,{icon:Bo,spin:!0})}),"save"!==this.state.buttonSpinnerTarget&&(0,Ne.jsx)(Ne.Fragment,{children:"Save"})]})}submitButton(){return(0,Ne.jsxs)(HE,{type:"button",variant:"contained",onClick:()=>this.handleSubmit("submit"),children:["submit"===this.state.buttonSpinnerTarget&&(0,Ne.jsx)("span",{children:(0,Ne.jsx)(bo,{icon:Bo,spin:!0})}),"submit"!==this.state.buttonSpinnerTarget&&(0,Ne.jsx)(Ne.Fragment,{children:"Submit"})]})}reprocessButton(){return(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{children:(0,Ne.jsxs)(HE,{variant:"contained",type:"button",disabled:this.state.submitting,onClick:()=>this.handleReprocess(),"data-status":this.state.status.toLowerCase(),children:[this.state.submitting&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.submitting&&"Reprocess"]})})})}processButton(){return(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{children:(0,Ne.jsxs)(HE,{variant:"contained",type:"button",disabled:this.state.submitting,onClick:()=>this.handleProcess(),"data-status":this.state.status.toLowerCase(),children:["process"===this.state.buttonSpinnerTarget&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),"process"!==this.state.buttonSpinnerTarget&&"Process"]})})})}errorClass(e,t){return"valid"===e?"is-valid":"invalid"===e||"is-invalid"===e||e&&e.length&&0===e.length?"is-invalid":""}onChangeGlobusLink(e,t){const{name:r,display_doi:n,doi:o}=t;this.setState({globus_url:e,name:r,display_doi:n,doi:o,createSuccess:!0})}onChangeGlobusURL(){this.props.changeLink(this.state.globus_path,{display_doi:this.state.display_doi,doi:this.state.doi})}renderListAssay(e){return(0,Ne.jsx)("li",{children:e},e)}renderStringAssay(e){return{val:e}}renderDisabledNonprimaryDT(e){return(0,Ne.jsx)("li",{children:e},e)}renderMultipleAssays(){return Array.from(this.state.dataset_type).map((e=>this.renderListAssay(e)))}assay_contains_pii(e){let t=[...e.values()][0];for(let r in this.props.dataTypeList){let e=this.props.dataTypeList[r];if(e.name===t)return e["contains-pii"]}return!1}render(){return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsxs)("form",{className:"expanded-form",children:[(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsxs)("div",{className:"col-md-6",children:[(0,Ne.jsxs)("h3",{children:[(0,Ne.jsx)("span",{className:"badge "+this.state.badge_class,style:{cursor:"pointer"},onClick:()=>this.showErrorMsgModal(this.props.editingPublication.pipeline_message),children:this.state.status}),this.props.editingPublication&&!this.props.newForm&&(0,Ne.jsxs)("span",{className:"mx-1",children:[" ","HuBMAP Publication ID ",this.state.editingPublication.hubmap_id," "]}),(!this.props.editingPublication||this.props.newForm)&&(0,Ne.jsx)("span",{className:"mx-1",children:"Registering a Publication"})]}),(0,Ne.jsx)("p",{children:(0,Ne.jsx)("strong",{children:(0,Ne.jsx)("big",{children:this.props.editingPublication&&this.props.editingPublication.title})})}),(0,Ne.jsx)("p",{children:(0,Ne.jsx)("strong",{children:this.state.globus_path&&(0,Ne.jsxs)("a",{href:this.state.globus_path,target:"_blank",rel:"noopener noreferrer",children:["To add or modify data files go to the data repository",(0,Ne.jsx)(bo,{icon:Eo,style:{marginLeft:"5px"}})]})})})]}),(0,Ne.jsxs)("div",{className:"col-md-6",children:[(0,Ne.jsx)(VT,{}),this.props.editingPublication&&this.props.editingPublication.upload&&this.props.editingPublication.upload.uuid&&(0,Ne.jsx)(nN,{sx:{display:"flex"},children:(0,Ne.jsxs)(nN,{sx:{width:"100%"},children:[(0,Ne.jsxs)("strong",{children:["This Publication is contained in the data Upload"," "]}),(0,Ne.jsx)(HE,{variant:"text",onClick:this.handlePublicationSelect,children:this.props.editingPublication.upload.hubmap_id})]})})]})]}),(0,Ne.jsx)("div",{className:"row"}),(0,Ne.jsxs)("div",{className:"form-group",children:[this.renderSources(),(0,Ne.jsxs)(vO,{fullWidth:!0,maxWidth:"lg",onClose:this.hideLookUpModal,"aria-labelledby":"source-lookup-dialog",open:!!this.state.LookUpShow&&this.state.LookUpShow,children:[(0,Ne.jsx)(yO,{children:(0,Ne.jsx)(zj,{select:this.handleSelectClick,custom_title:"Search for a Source ID for your Publication",modecheck:"Source",restrictions:{entityType:"dataset"}})}),(0,Ne.jsx)(_T,{children:(0,Ne.jsx)(HE,{onClick:this.cancelLookUpModal,variant:"contained",color:"primary",children:"Close"})})]})]}),(0,Ne.jsx)("div",{className:"form-gropup mb-4",children:(0,Ne.jsxs)(mE,{fullWidth:!0,children:[(0,Ne.jsx)(kE,{required:!0,disabled:!this.state.writeable,error:this.state.validationStatus.title.length>0,label:"Title",helperText:this.state.fieldDescriptons.title,variant:"standard",id:"title",name:"title",onChange:this.handleInputChange,value:this.state.editingPublication.title}),this.state.validationStatus.title.length>0&&(0,Ne.jsxs)(wE,{className:"component-error-text",children:[" ",this.state.validationStatus.title]})]})}),(0,Ne.jsx)("div",{className:"form-gropup mb-4",children:(0,Ne.jsxs)(mE,{fullWidth:!0,children:[(0,Ne.jsx)(kE,{required:!0,disabled:!this.state.writeable,error:this.state.validationStatus.publication_venue.length>0,label:"Venue",helperText:this.state.fieldDescriptons.publication_venue,variant:"standard",id:"publication_venue",name:"publication_venue",onChange:this.handleInputChange,value:this.state.editingPublication.publication_venue}),this.state.validationStatus.publication_venue.length>0&&(0,Ne.jsxs)(wE,{className:"component-error-text",children:[" ",this.state.validationStatus.publication_venue]})]})}),(0,Ne.jsx)("div",{className:"form-gropup mb-4",children:(0,Ne.jsxs)(mE,{children:[(0,Ne.jsx)(kE,{InputLabelProps:{shrink:!0},required:!0,disabled:!this.state.writeable,type:"date",placeholder:"YYYY-MM-DD",error:this.state.validationStatus.publication_date.length>0,label:"Publication Date",helperText:this.state.fieldDescriptons.publication_date,variant:"standard",id:"publication_date",name:"publication_date",onChange:this.handleInputChange,value:this.state.editingPublication.publication_date}),this.state.validationStatus.publication_date.length>0&&(0,Ne.jsxs)(wE,{className:"component-error-text",children:[" ",this.state.validationStatus.publication_date]})]})}),(0,Ne.jsx)("div",{className:"form-gropup mb-4 "+this.state.formErrors.publication_status,children:(0,Ne.jsxs)(mE,{error:this.state.validationStatus.publication_status.length>0,children:[(0,Ne.jsx)(sE,{id:"publication_status",error:this.state.validationStatus.publication_status.length>0,children:"Has this Publication been Published?"}),(0,Ne.jsxs)(SN,{row:!0,required:!0,disabled:!this.state.writeable,error:this.state.validationStatus.publication_status,"aria-labelledby":"publication_status",id:"publication_status",name:"publication_status",value:this.state.editingPublication.publication_status,onChange:this.handleInputChange,children:[(0,Ne.jsx)(uC,{value:!0,className:""+this.state.formErrors.publication_status,error:this.state.validationStatus.publication_status,disabled:!this.state.writeable,control:(0,Ne.jsx)(xN,{}),label:"Yes"}),(0,Ne.jsx)(uC,{value:!1,className:""+this.state.formErrors.publication_status,error:this.state.validationStatus.publication_status,disabled:!this.state.writeable,control:(0,Ne.jsx)(xN,{}),label:"No"})]}),this.state.validationStatus.publication_doi.length>0&&(0,Ne.jsx)(wE,{className:"component-error-text",children:this.state.validationStatus.publication_status})]})}),(0,Ne.jsx)("div",{className:"form-gropup mb-4",children:(0,Ne.jsxs)(mE,{fullWidth:!0,children:[(0,Ne.jsx)(kE,{required:!0,disabled:!this.state.writeable,error:this.state.validationStatus.publication_url.length>0,label:"Publication URL",helperText:this.state.fieldDescriptons.publication_url,variant:"standard",id:"publication_url",name:"publication_url",onChange:this.handleInputChange,value:this.state.editingPublication.publication_url}),this.state.validationStatus.publication_url.length>0&&(0,Ne.jsxs)(wE,{className:"component-error-text",children:[" ",this.state.validationStatus.publication_url]})]})}),(0,Ne.jsx)("div",{className:"form-gropup mb-4",children:(0,Ne.jsxs)(mE,{fullWidth:!0,error:this.state.validationStatus.publication_doi.length>0,children:[(0,Ne.jsx)(kE,{disabled:!this.state.writeable,label:"Publication DOI",helperText:this.state.fieldDescriptons.publication_doi,variant:"standard",id:"publication_doi",name:"publication_doi",onChange:this.handleInputChange,value:this.state.editingPublication.publication_doi}),this.state.validationStatus.publication_doi.length>0&&(0,Ne.jsxs)(wE,{className:"component-error-text",children:[" ",this.state.validationStatus.publication_doi]})]})}),(0,Ne.jsx)("div",{className:"form-gropup mb-4",children:(0,Ne.jsxs)(mE,{fullWidth:!0,children:[(0,Ne.jsx)(kE,{disabled:!this.state.writeable,error:this.state.validationStatus.omap_doi.length>0,label:"OMAP DOI",helperText:this.state.fieldDescriptons.omap_doi,variant:"standard",id:"omap_doi",name:"omap_doi",onChange:this.handleInputChange,value:this.state.editingPublication.omap_doi}),this.state.validationStatus.omap_doi.length>0&&(0,Ne.jsxs)(wE,{className:"component-error-text",children:[" ",this.state.validationStatus.omap_doi]})]})}),(0,Ne.jsx)("div",{className:"form-group mb-4",children:(0,Ne.jsxs)(mE,{children:[(0,Ne.jsx)(kE,{error:this.state.validationStatus.issue.length>0,label:"Issue",disabled:!this.state.writeable,inputProps:{inputMode:"numeric",pattern:"[0-9]*"},helperText:this.state.fieldDescriptons.issue,variant:"standard",id:"issue",name:"issue",onChange:this.handleInputChange,value:this.state.editingPublication.issue}),this.state.validationStatus.issue.length>0&&(0,Ne.jsxs)(wE,{className:"component-error-text",children:[" ",this.state.validationStatus.issue]})]})}),(0,Ne.jsx)("div",{className:"form-group mb-4",children:(0,Ne.jsxs)(mE,{children:[(0,Ne.jsx)(kE,{label:"Volume",disabled:!this.state.writeable,error:this.state.validationStatus.volume.length>0,inputProps:{inputMode:"numeric",pattern:"[0-9]*"},helperText:this.state.fieldDescriptons.volume,variant:"standard",id:"volume",name:"volume",onChange:this.handleInputChange,value:this.state.editingPublication.volume}),this.state.validationStatus.volume.length>0&&(0,Ne.jsxs)(wE,{className:"component-error-text",children:[" ",this.state.validationStatus.volume]})]})}),(0,Ne.jsx)("div",{className:"form-group mb-4",children:(0,Ne.jsxs)(mE,{children:[(0,Ne.jsx)(kE,{disabled:!this.state.writeable,error:this.state.validationStatus.pages_or_article_num.length>0,label:"Pages or Article Number",helperText:this.state.fieldDescriptons.pages_or_article_num,variant:"standard",id:"pages_or_article_num",name:"pages_or_article_num",onChange:this.handleInputChange,value:this.state.editingPublication.pages_or_article_num}),this.state.validationStatus.pages_or_article_num.length>0&&(0,Ne.jsxs)(wE,{className:"component-error-text",children:[" ",this.state.validationStatus.pages_or_article_num]})]})}),(0,Ne.jsx)("div",{className:"form-group",children:(0,Ne.jsxs)(mE,{fullWidth:!0,children:[(0,Ne.jsx)(kE,{required:!0,error:this.state.validationStatus.description.length>0,label:"Abstract",disabled:!this.state.writeable,helperText:this.state.fieldDescriptons.description,variant:"standard",id:"description",name:"description",multiline:!0,rows:4,onChange:this.handleInputChange,value:this.state.editingPublication.description}),this.state.validationStatus.description.length>0&&(0,Ne.jsxs)(wE,{className:"component-error-text",children:[" ",this.state.validationStatus.description]})]})}),(0,Ne.jsx)("div",{className:"col-8",children:this.state.submit_error&&(0,Ne.jsxs)(Ws,{severity:"error",className:"mb-2",children:[this.state.submitErrorResponse&&(0,Ne.jsx)(KI,{children:this.state.submitErrorStatus})," ",(0,Ne.jsx)("strong",{children:"Details:"})," The following fields are Invalid: ",this.state.fieldString," "," "]})}),(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsx)("div",{className:"col-8",children:this.state.has_manual_priv&&(0,Ne.jsx)(Ne.Fragment,{children:this.renderManualStatusControl()})}),(0,Ne.jsx)("div",{className:"col-4",children:this.renderButtons()})]})]}),(0,Ne.jsx)(AT,{show:this.state.GroupSelectShow,groups:this.state.groups,hide:()=>this.hideGroupSelectModal(),submit:()=>this.handleSubmit("save"),handleInputChange:this.handleInputChange}),(0,Ne.jsx)(De,{show:this.state.errorMsgShow,handleClose:this.hideErrorMsgModal,children:(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"col-sm-12 text-center alert",children:[(0,Ne.jsx)("h4",{children:this.props.editingPublication&&this.props.editingPublication.status&&this.props.editingPublication.status.toUpperCase()||"STATUS"}),(0,Ne.jsx)("div",{dangerouslySetInnerHTML:{__html:this.state.statusErrorMsg}})]})})}),this.renderSubmitModal()]})}}const EM=kM;class RM extends i.Component{constructor(){super(...arguments),this.state={formType:"----",createSuccess:!1,isDirty:!1,isLoading:!0,open:!1,entity:null,dataTypeList:null,showDatasetResultsDialog:!1,showSuccessDialog:!1,result_dialog_size:"xs"},this.handleFormTypeChange=e=>{this.setState({formType:e.target.value.toLowerCase(),createSuccess:!1})},this.handleDirty=e=>{this.setState({isDirty:e})},this.prepDatatypes=()=>{},this.onCreated=e=>{e.new_samples&&this.setState({result_dialog_size:"xl"}),this.setState({entity:e.entity,result:e,formType:"----",createSuccess:!0,showSuccessDialog:!0})},this.handleSingularty=(e,t)=>"uploads"===e?"uploads":"plural"===t?"s"===e.slice(-1)?e.toLowerCase():(e+"s").toLowerCase():"s"===e.slice(-1)?e.slice(0,-1).toLowerCase():e.toLowerCase(),this.handleUrlChange=e=>{var t="";e&&void 0!==e&&(t=e),this.setState({loading:!1}),"----"!==e&&"undefined"!==e&&window.history.pushState(null,"","/"+t)},this.onCreateNext=e=>{this.setState({createSuccess:!1,showSuccessDialog:!0,formType:"sample",specimenType:"Sample"===e.entity_type?"":"organ",source_entity_type:e.entity_type,sourceUUID:e.hubmap_id,uuid:e.uuid,ancestor_entity:e})},this.handleClose=()=>{}}UNSAFE_componentWillMount(){var e=this.props.dtl_primary;this.setState({formType:this.props.formType,open:!0,dataTypeList:e},(()=>{this.setState({isLoading:!1})}))}componentDidUpdate(e,t){e.formType!==this.props.formType&&this.setState({editForm:!0,createSuccess:!1,show_search:!1,showSearch:!1,anchorEl:null,formType:this.props.formType})}onChangeGlobusLink(e,t){const{name:r,display_doi:n,doi:o}=t;this.setState({globus_url:e,name:r,display_doi:n,doi:o,createSuccess:!0})}renderForm(){var e=Tc(this.props.formType);return document.title="HuBMAP Ingest Portal | New "+e,this.state.createSuccess?(0,Ne.jsx)(vO,{"aria-labelledby":"result-dialog",open:this.state.showSuccessDialog,maxWidth:this.state.result_dialog_size,children:(0,Ne.jsx)(yO,{children:(0,Ne.jsx)(AP,{result:this.state.result,onReturn:this.props.onReturn,handleCancel:this.props.handleCancel,onCreateNext:this.onCreateNext,entity:this.state.entity})})}):"donor"===this.state.formType?(0,Ne.jsx)(kT,{onCreated:this.onCreated,handleCancel:this.props.handleCancel}):"sample"===this.state.formType?(0,Ne.jsx)(eI,{onCreated:this.onCreated,onReturn:this.props.onReturn,specimenType:this.state.specimenType,source_entity_type:this.state.source_entity_type,sourceUUID:this.state.sourceUUID,uuid:this.state.uuid,direct_ancestor:this.state.ancestor_entity,handleCancel:this.props.handleCancel}):"dataset"===this.props.formType?(0,Ne.jsx)(XI,{dataTypeList:this.props.dataTypeList,onCreated:this.onCreated,onReturn:this.props.handleCancel,changeLink:this.onChangeGlobusLink.bind(this),newForm:!0,dtl_primary:this.props.dtl_primary,dtl_all:this.props.dtl_all,dtl_status:!1,editingDataset:"{}"}):"publication"===this.props.formType?(0,Ne.jsx)(EM,{onCreated:this.onCreated,onReturn:this.props.handleCancel,changeLink:this.onChangeGlobusLink.bind(this),newForm:!0}):null}render(){return(0,Ne.jsxs)("div",{children:[this.state.isLoading&&(0,Ne.jsx)(Ne.Fragment,{children:"Loading"}),!this.state.isLoading&&this.renderForm(),this.state.showDatasetResultsDialog&&(0,Ne.jsx)(iN,{show:this.state.showDatasetResultsDialog,parent:"dataset",globus_directory_url_path:this.state.globus_url,entity:this.state.entity,onDismiss:()=>this.setState({showDatasetResultsDialog:!1,editingDataset:null})})]})}}const jM=RM,OM=e=>(e.message&&e,new Error(e));function TM(e){return(0,qt.Ay)("MuiAppBar",e)}(0,Vt.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const IM=["className","color","enableColorOnDark","position"],PM=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,NM=(0,Ht.Ay)(Ba,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${(0,Wt.A)(r.position)}`],t[`color${(0,Wt.A)(r.color)}`]]}})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,Ft.A)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!t.vars&&(0,Ft.A)({},"default"===r.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:t.palette[r.color].main,color:t.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===t.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,Ft.A)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,Ft.A)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:PM(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:PM(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette[r.color].main:PM(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:PM(t.vars.palette.AppBar.darkColor,t.vars.palette[r.color].contrastText)},!["inherit","transparent"].includes(r.color)&&{backgroundColor:"var(--AppBar-background)"},{color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),MM=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiAppBar"}),{className:n,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,a=(0,Lt.A)(r,IM),l=(0,Ft.A)({},r,{color:o,position:s,enableColorOnDark:i}),u=(e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${(0,Wt.A)(t)}`,`position${(0,Wt.A)(r)}`]};return(0,$t.A)(o,TM,n)})(l);return(0,Ne.jsx)(NM,(0,Ft.A)({square:!0,component:"header",ownerState:l,elevation:4,className:(0,zt.A)(u.root,n,"fixed"===s&&"mui-fixed"),ref:t},a))})),DM=["className","component","disableGutters","fixed","maxWidth","classes"],LM=(0,nr.A)(),FM=oh("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,kd.A)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),zM=e=>Rw({props:e,name:"MuiContainer",defaultTheme:LM});const BM=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=FM,useThemeProps:r=zM,componentName:n="MuiContainer"}=e,o=t((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{let{theme:t,ownerState:r}=e;return r.fixed&&Object.keys(t.breakpoints.values).reduce(((e,r)=>{const n=r,o=t.breakpoints.values[n];return 0!==o&&(e[t.breakpoints.up(n)]={maxWidth:`${o}${t.breakpoints.unit}`}),e}),{})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({},"xs"===r.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},r.maxWidth&&"xs"!==r.maxWidth&&{[t.breakpoints.up(r.maxWidth)]:{maxWidth:`${t.breakpoints.values[r.maxWidth]}${t.breakpoints.unit}`}})}));return i.forwardRef((function(e,t){const i=r(e),{className:s,component:a="div",disableGutters:l=!1,fixed:u=!1,maxWidth:c="lg"}=i,d=(0,Lt.A)(i,DM),p=(0,Ft.A)({},i,{component:a,disableGutters:l,fixed:u,maxWidth:c}),h=((e,t)=>{const{classes:r,fixed:n,disableGutters:o,maxWidth:i}=e,s={root:["root",i&&`maxWidth${(0,kd.A)(String(i))}`,n&&"fixed",o&&"disableGutters"]};return(0,$t.A)(s,(e=>(0,qt.Ay)(t,e)),r)})(p,n);return(0,Ne.jsx)(o,(0,Ft.A)({as:a,ownerState:p,className:er(h.root,s),ref:t},d))}))}({createStyledComponent:(0,Ht.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,Wt.A)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,Ut.b)({props:e,name:"MuiContainer"})});var $M=r(430);class HM extends i.Component{constructor(e){super(e),this.handleSubmit=async e=>{if(e.preventDefault(),this.setState({submitting:!0,processingUpload:!0}),!this.validateForm())return this.state.inputValue_title&&""!==this.state.inputValue_title||this.state.inputValue_desc&&""!==this.state.inputValue_desc||this.state.inputValue_organ&&""!==this.state.inputValue_organ||this.state.inputValue_type&&""!==this.state.inputValue_type?this.state.inputValue_title&&""!==this.state.inputValue_title&&this.state.inputValue_desc&&""!==this.state.inputValue_desc&&this.state.inputValue_organ&&""!==this.state.inputValue_organ&&this.state.inputValue_type&&""!==this.state.inputValue_type?void this.handleError("The system has encountered an unrecognized error during validation.           Please try again or contact the help desk for further assistance."):void this.handleError("Above marked fields are required."):void this.handleError("Please fill in all required fields before submitting.");const t={title:this.state.inputValue_title,description:this.state.inputValue_desc,intended_organ:this.state.inputValue_organ,intended_dataset_type:this.state.inputValue_type,group_uuid:this.state.inputValue_group_uuid};try{const e=await function(e){const t={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};return _u().post("https://ingest.api.hubmapconsortium.org/uploads",e,t).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>({error:e})))}(t,JSON.parse(localStorage.getItem("info")).groups_token);if(console.debug("%c\u25c9 response ","color:#00ff7b",e),200===e.status)this.props.onCreated(e);else{var r,n,o,i,s,a,l;let t=null!==(r=null!==(n=null!==(o=null===(i=e.error)||void 0===i||null===(s=i.response)||void 0===s||null===(a=s.data)||void 0===a?void 0:a.error)&&void 0!==o?o:null===(l=e.error)||void 0===l?void 0:l.response)&&void 0!==n?n:e.error)&&void 0!==r?r:e;console.debug("%c\u25c9 err ","color:#00ff7b",t),this.handleError(t)}}catch(p){var u,c,d;console.debug("%c\u25c9 error  ","color:#00ff7b",p);const e=null!==(u=null===(c=p.response)||void 0===c||null===(d=c.data)||void 0===d?void 0:d.error)&&void 0!==u?u:p;this.handleError(e)}},this.handleError=e=>{this.setState({submit_error:!0,submitting:!1,processingUpload:!1,errorMessage:e})},this.cancelEdit=()=>{this.setState({creatingNewSubmission:!1,editingSubmission:null,processingUpload:!1,submitting:!1,creatingNewUpload:!1})},this.updateInputValue=e=>{if(console.debug("%c\u25c9 evt ","color:#00ff7b",e,e.target),console.debug("%c\u25c9 evt.target.name ","color:#00ff7b",e.target.name),0===e.target.name.length)e.target.value=null;else{const t={Submission_Title:"inputValue_title",Submission_Desc:"inputValue_desc",Submission_Organ:"inputValue_organ",Submission_Type:"inputValue_type",Submission_Group:"inputValue_group_uuid"}[e.target.name];console.debug("%c\u25c9 evt.target.id ","color:#00ff7b",e.target.id),console.debug("%c\u25c9 stateKey ","color:#00ff7b",t),t?this.setState({[t]:e.target.value},(()=>{console.debug("%c\u25c9 STATE ","color:#5C3FFF",this.state)})):console.debug("%c\u25c9 Cant Match: ","color:#00ff7b",e.target.id)}},this.renderActionButtons=()=>(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsx)("div",{className:"col-sm-12",children:(0,Ne.jsx)(kO,{})}),(0,Ne.jsxs)("div",{className:"col-md-12 text-right pads",style:{textAlign:"right"},children:[(0,Ne.jsxs)("button",{type:"submit",style:{marginRight:"10px",marginLeft:"10px"},className:"btn btn-primary  ",disabled:this.state.submitting,onClick:e=>this.handleSubmit(e),children:[this.state.submitting&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.submitting&&"Create"]}),(0,Ne.jsx)("button",{type:"button",className:"btn btn-secondary",style:{marginRight:"10px"},onClick:this.props.cancelEdit,children:"Cancel"})]})]}),this.state={errorDetails:"",creatingNewUploadFolder:!0,currentDateTime:Date().toLocaleString(),inputValue_title:"",inputValue_desc:"",inputValue_type:"",inputValue_organ:"",inputValue_group_uuid:"",organList:{},datasetTypes:{},assetError:!1,groups:[],processingUpload:!1,successfulUploadCreation:!1,errorMessage:" ",showNewUpload:!0,formErrors:{title:"",description:"",organ:"",type:"",group:""}}}componentDidMount(){if(this.getUserGroups(),localStorage.getItem("organs")&&localStorage.getItem("datasetTypes")){const e=Object.entries(JSON.parse(localStorage.getItem("organs"))).sort(((e,t)=>e[1].localeCompare(t[1])));console.debug("%c\u25c9 sortedOrgans ","color:#00ff7b",e),this.setState({organList:e},(()=>{console.debug("%c\u25c9 ORGANSANDDATA ","color:#5C3FFF",this.state.organList)}))}else console.debug("%c\u25c9 Missing Organ Assets ","color:#00ff7b",localStorage.getItem("organs")),this.setState({assetError:!0,errorMessage:"Error: Missing Assets: Please refresh the page to reload the missing assets."});Nc().then((e=>{console.debug("%c\u25c9 UPLOAD DTYPES  ","color:#00ff7b",e);const t=e.filter((e=>"UNKNOWN"!==e.term)).sort(((e,t)=>e.term.localeCompare(t.term)));this.setState({datasetTypes:t})})).catch((e=>{console.debug("%c\u25c9 UPLOAD DTYPES ERROR  ","color:#00e5ff",e),this.setState({assetError:!0,errorMessage:"Error: Missing Assets: There is an issue loading required assets. \n Please try again in a moment, or contact the help desk for further assistance."})}))}errorClass(e){return"valid"===e?"is-valid":0===e.length?"":"is-invalid"}validateForm(){let e=!0;return[{name:"inputValue_title",errorKey:"title"},{name:"inputValue_desc",errorKey:"description"},{name:"inputValue_type",errorKey:"inteneded_dataset_type"},{name:"inputValue_organ",errorKey:"organ"},{name:"inputValue_group_uuid",errorKey:"group"}].forEach((t=>{const r=gT(this.state[t.name])?"valid":"invalid";"invalid"===r&&(e=!1),this.setState((e=>({formErrors:{...e.formErrors,[t.errorKey]:r}})))})),e}renderDatasetTypeDropdown(){return(0,Ne.jsxs)(US,{fullWidth:!0,size:"small",name:"Submission_Type",className:"form-control "+this.state.formErrors.inteneded_dataset_type,value:this.state.inputValue_type,id:"Submission_Type",labelid:"type_label",label:"Dataset Type",onChange:e=>this.updateInputValue(e),children:[(0,Ne.jsx)(Ax,{value:"",index:0},0),this.state.datasetTypes.map(((e,t)=>(0,Ne.jsx)(Ax,{value:e.term,children:e.term},t+1)))]})}renderOrganDropdown(){return(0,Ne.jsxs)(US,{fullWidth:!0,size:"small",name:"Submission_Organ",className:"form-control "+this.state.formErrors.organ,value:this.state.inputValue_organ,id:"Submission_Organ",labelid:"organ_label",label:"Organ",onChange:e=>this.updateInputValue(e),children:[(0,Ne.jsx)(Ax,{},0),Object.entries(this.state.organList).map(((e,t)=>{let[r,n]=e;return(0,Ne.jsx)(Ax,{value:n[0],children:n[1]},t+1)}))]})}renderLoadingSpinner(){return(0,Ne.jsxs)("div",{className:"text-center mx-2 my-4",children:[(0,Ne.jsx)(bo,{icon:Bo,spin:!0,size:"6x"}),(0,Ne.jsx)("h3",{children:"Generating your new folder."}),(0,Ne.jsx)("h6",{children:"Please do not refresh or leave this page"})]})}renderSuccessMessage(){return(0,Ne.jsx)("div",{className:"m-0 ",children:"renderSuccessMessage"})}renderErrorMessage(){return(0,Ne.jsx)("div",{className:"m-0 ",children:(0,Ne.jsx)(pu,{severity:"error",children:this.state.errorMessage})})}getUserGroups(){zc(JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(console.debug("%c\u25c9 getUserGroup Results: ","color:#FF0095",e),200===e.status){const t=e.results.filter((e=>"5777527e-ec11-11e8-ab41-0af86edb4424"!==e.uuid));this.setState({groups:t,inputValue_group_uuid:t[0].uuid})}else 401===e.status?(localStorage.setItem("isAuthenticated",!1),window.location.reload()):this.setState({groups:["NA"]})}))}renderGroupSelect(){return(0,Ne.jsx)("div",{className:"col3",children:(0,Ne.jsx)("select",{name:"Submission_Group",id:"Submission_Group",label:"Group",className:"form-control select-css"+this.state.formErrors.group,onChange:e=>this.updateInputValue(e),children:this.state.groups.map((e=>(0,Ne.jsx)("option",{value:e.uuid,children:e.displayname},e.uuid)))})})}render(){return(0,Ne.jsxs)("div",{children:[this.state.assetError&&this.renderErrorMessage(),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)("div",{className:"col-12",children:(0,Ne.jsx)("h3",{className:"float-left",children:"Create a new Data Upload"})})}),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"col-12 mb-4",children:["Register a new Data Upload which will be used to bulk upload data which will organized by the HIVE into multiple Datasets. For more information about registering and uploading data see the ",(0,Ne.jsx)("a",{href:"https://docs.google.com/document/d/1KR2TC2y-NIjbBRHTu0giSZATMUfPKxN_/edit",target:"new",children:" Data Submission Guide."})]})}),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"col-md-12",children:[this.state.processingUpload&&this.renderLoadingSpinner(),!this.state.processingUpload&&(0,Ne.jsx)("div",{children:(0,Ne.jsxs)("form",{onSubmit:this.handleSubmit,children:[(0,Ne.jsxs)("div",{className:"form-group  mb-4",children:[(0,Ne.jsxs)("label",{htmlFor:"title",children:["Title ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"title_tooltip"}),(0,Ne.jsx)(hT,{id:"title_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"A name for this upload. This will be used internally by Consortium members for the purposes of finding this Data Upload"})})]}),(0,Ne.jsx)("input",{type:"text",name:"Submission_Title",id:"Submission_Title",className:"form-control "+this.state.formErrors.title,placeholder:"Upload Title",onChange:e=>this.updateInputValue(e),value:this.state.inputValue_title})]}),(0,Ne.jsxs)("div",{className:"form-group mb-4",children:[(0,Ne.jsxs)("label",{htmlFor:"description",children:["Description ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"description_tooltip"}),(0,Ne.jsx)(hT,{id:"description_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"A full description of this Data Upload which will be used internally by the Consortium (not displayed publicly) for the purposes of searching for the Data Upload."})})]}),(0,Ne.jsx)("textarea",{type:"text",name:"Submission_Desc",id:"Submission_Desc",cols:"30",rows:"5",className:"form-control "+this.state.formErrors.description,placeholder:"Description",onChange:e=>this.updateInputValue(e),value:this.state.inputValue_description})]}),(0,Ne.jsxs)("div",{className:"form-group mb-4",children:[(0,Ne.jsxs)("label",{htmlFor:"organ",children:["Intended Organ Type ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"organ_tooltip"}),(0,Ne.jsx)(hT,{id:"organ_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Select the organ type that the data in this Upload is intended to be derived from."})})]}),this.renderOrganDropdown()]}),(0,Ne.jsxs)("div",{className:"form-group mb-1",children:[(0,Ne.jsxs)("label",{htmlFor:"datasetTypes",children:["Intended Dataset Type ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"datasetTypes_tooltip"}),(0,Ne.jsx)(hT,{id:"datasetTypes_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Select the data type that this Upload will contain."})})]}),this.state.datasetTypes.length>0&&this.renderDatasetTypeDropdown()]}),(0,Ne.jsxs)("div",{className:"form-group mb-1",children:[(0,Ne.jsx)("label",{htmlFor:"Submission_Group",children:"Select the data provider group that this data belongs to"}),(0,Ne.jsxs)("span",{className:"px-1",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"group_tooltip"}),(0,Ne.jsx)(hT,{id:"group_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Choose the Data Provider group which the data included in this Data Upload will be associated with/is being uploaded by."})})]}),this.renderGroupSelect(),this.state.submit_error&&(0,Ne.jsxs)("div",{className:"alert alert-danger col-sm-12 mt-4",role:"alert",children:["Oops! Something went wrong: ",(0,Ne.jsx)("br",{}),(0,Ne.jsx)(bo,{icon:Uo,sx:{padding:1}})," ",this.state.errorMessage.toString()," ",(0,Ne.jsx)("br",{}),"If the problem persists, please contact the HuBMAP Help Desk at ",(0,Ne.jsx)("a",{href:"mailto:help@hubmapconsortium.org",children:"help@hubmapconsortium.org"})]})]}),this.renderActionButtons()]})})]})})]})}}const UM=HM,WM=e=>{const[t,r]=i.useState(e.userDataGroups?e.userDataGroups:null),[n,o]=i.useState(!1),[s,a]=i.useState({I:null,B:null,S:null}),l=Boolean(s.I),u=Boolean(s.B),c=Boolean(s.S),d=te(),p=e.appInfo;(0,i.useEffect)((()=>{t&&null!==t||zc().then((e=>{if("string"===typeof e.Response)throw new Error(e.results);r(e.results)})).catch((e=>{throw new Error(e)}))}),[]);const h=e=>t=>{a((r=>({...r,[e]:t.currentTarget})))},f=()=>{a({I:null,B:null,S:null})},m=()=>{o(!0)};function g(){return(0,Ne.jsxs)(i.Fragment,{children:[v("Individual",h("I"),l,s.I,[{to:"/new/donor",label:"Donor"},{to:"/new/sample",label:"Sample"},{to:"/new/dataset",label:"Dataset"},{to:"/new/publication",label:"Publication"},{to:"/new/collection",label:"Collection - Dataset"},{to:"/new/EPICollection",label:"Collection - EPIC"}]),v("Bulk",h("B"),u,s.B,[{to:"/bulk/donors",label:"Donors"},{to:"/bulk/samples",label:"Samples"},{to:"/bulk/data",label:"Data",onClick:m}]),v("Upload Sample Metadata",h("S"),c,s.S,[{to:"/metadata/block",label:"Block"},{to:"/metadata/section",label:"Section"},{to:"/metadata/suspension",label:"Suspension"}]),(0,Ne.jsx)("span",{className:"board",children:(0,Ne.jsx)(HE,{target:"_blank",href:"https://ingest.board.hubmapconsortium.org/",className:"flat-link ",children:"Data Ingest Board"})})]})}function v(e,t,r,n,o){const s=e.toString().replace(/\s+/g,"");return console.debug("%c\u25c9 anchorEl ","color:#00ff7b",n),(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)(HE,{id:`${s}IndividualButton`,endIcon:(0,Ne.jsx)($M.A,{}),"aria-controls":r?"IndividualMenu":void 0,"aria-haspopup":"true","aria-expanded":r?"true":void 0,onClick:t,children:e.toString()}),(0,Ne.jsx)(K_,{id:"IndividualMenu",anchorEl:n,open:r,onClose:()=>f(),MenuListProps:{"aria-labelledby":"IndividualButton"},children:o.map(((e,t)=>"/bulk/data"===e.to?function(e,t){return(0,Ne.jsx)(Ax,{className:"nav-link",component:Re,onClick:()=>m(),children:t})}(e.to,e.label):function(e,t){return(0,Ne.jsx)(Ax,{className:"nav-link",component:Re,onClick:f,to:e,children:t})}(e.to,e.label)))})]})}return(0,Ne.jsxs)(MM,{position:"static",id:"header",children:[(0,Ne.jsx)(Ka,{open:n,children:(0,Ne.jsx)(tl,{children:(0,Ne.jsx)(UM,{onCreated:e=>{d("/Upload/"+e.results.uuid),o(!1)},cancelEdit:()=>{o(!1)}})})}),(0,Ne.jsx)(BM,{maxWidth:"xl",children:(0,Ne.jsxs)(eA,{disableGutters:!0,children:[(0,Ne.jsx)(Yt,{variant:"h6",noWrap:!0,href:"/",sx:{mr:2,display:{xs:"flex",md:"none"},fontFamily:"monospace",fontWeight:700,letterSpacing:".3rem",color:"inherit",textDecoration:"none"},children:(0,Ne.jsx)("a",{className:"navbar-brand",href:"/",children:(0,Ne.jsx)("img",{src:"https://hubmapconsortium.org/wp-content/uploads/2020/09/hubmap-type-white250.png",height:"40",className:"d-inline-block align-top",id:"MenuLogo",alt:"HuBMAP logo"})})}),t&&t.length>0&&"Non-active login"!==t&&(0,Ne.jsx)(mr,{className:"menu-bar",sx:{flexGrow:1,display:{xs:"flex",md:"none"}},children:g()}),(0,Ne.jsx)(Yt,{variant:"h5",noWrap:!0,href:"#app-bar-with-responsive-menu",sx:{textAlign:"left",mr:2,display:{xs:"none",md:"flex"},fontFamily:"monospace",fontWeight:700,letterSpacing:".3rem",color:"inherit",textDecoration:"none"},children:(0,Ne.jsx)("a",{className:"navbar-brand",href:"/",children:(0,Ne.jsx)("img",{src:"https://hubmapconsortium.org/wp-content/uploads/2020/09/hubmap-type-white250.png",height:"40",className:"d-inline-block align-top",id:"MenuLogo",alt:"HuBMAP logo"})})}),t&&t.length>0&&"Non-active login"!==t&&(0,Ne.jsx)(mr,{className:"menu-bar",sx:{display:{xs:"none",md:"flex"}},children:g()}),(0,Ne.jsx)(mr,{className:"menu-bar",sx:{flexGrow:1,justifyContent:"flex-end"},children:(0,Ne.jsx)("div",{id:"MenuRight",children:p&&p.email&&(0,Ne.jsxs)("div",{className:"float-right",children:[(0,Ne.jsxs)("span",{className:"username",children:[(0,Ne.jsx)(Yt,{variant:"button",className:"username-menu",children:p.email}),(0,Ne.jsx)(HE,{target:"_blank",href:"https://profile.hubmapconsortium.org/profile",className:"nav-link",children:"Edit Profile"})]}),(0,Ne.jsx)("span",{className:"logout",children:(0,Ne.jsx)(sI,{loading:e.isLoggingOut,color:"info",onClick:t=>e.logout(t),children:"Log Out"})})]})})})]})})]})};class VM extends i.Component{constructor(){super(...arguments),this.state={results:[]},this.handleCopyToClipboard=()=>{var e=document.getElementsByTagName("body")[0],t=document.getElementById("display_doi").innerHTML,r=document.createElement("INPUT");e.appendChild(r),r.setAttribute("value",t),r.select(),document.execCommand("copy"),e.removeChild(r),this.setState({copied:!0}),setTimeout((()=>{this.setState({copied:null})}),5e3)},this.handleReturnClick=e=>{console.debug("handleReturnClick",e),this.props.onReturn?this.props.onReturn():console.debug()}}render(){return console.debug("Results"),console.debug("RESULTS!!!!",this.props.result),(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)("div",{className:"row",children:this.props.result.new_samples&&this.props.result.new_samples.length>1&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{children:(0,Ne.jsx)(_P,{ids:this.props.result.new_samples,handleCancel:this.props.handleReturnClick})})})}),void 0!==this.props.result&&(0,Ne.jsxs)("div",{className:"row",style:{padding:"10px 20px",margin:"auto"},children:[this.props.result.entity&&(0,Ne.jsx)("div",{className:"portal-jss116 col-sm-12 ml-2 mb-2",children:"Save was successful"}),this.props.result.entity.hubmap_id&&(0,Ne.jsxs)("div",{className:"portal-jss116 col-sm-12 ml-2",children:["HuBMAP ID: ",(0,Ne.jsx)(sd,{variant:"body2",href:"/"+this.props.result.entity.entity_type.toLowerCase()+"/"+this.props.result.entity.uuid,children:this.props.result.entity.hubmap_id})]}),this.props.result.entity.submission_id&&(0,Ne.jsxs)("div",{className:"portal-jss116 col-sm-12 ml-2",children:["Submission ID: ",this.props.result.entity.submission_id]}),this.props.result.entity.entity_type&&(0,Ne.jsxs)("div",{className:"portal-jss116 col-sm-12 ml-2",children:["Type: ",this.props.result.entity.entity_type]}),this.props.result.globus_path&&(0,Ne.jsx)("div",{className:"portal-jss116 col-sm-12 ml-2",children:(0,Ne.jsxs)("a",{href:this.props.result.globus_path,target:"_blank",rel:"noopener noreferrer",children:[(0,Ne.jsx)(bo,{icon:wo,"data-tip":!0,"data-for":"folder_tooltip"})," Click here to go to the Globus data repository"]})}),this.props.result.entity.uuid&&(0,Ne.jsx)("div",{className:"d-none",children:(0,Ne.jsxs)("a",{href:this.props.result.entity.entity_type+"/"+this.props.result.entity.uuid,children:[(0,Ne.jsx)(bo,{icon:Po,"data-tip":!0,"data-for":"link_tooltip"})," View in Ingest"]})})]}),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"col-sm-12 mt-2 mr-2 mb-2 text-center",children:[void 0!==this.props.result&&"Donor"===this.props.result.entity.entity_type&&(0,Ne.jsx)(iR,{placement:"top-start",title:"Registering organs from a new Donor will return with the release of the new Sample form \ud83c\udf89",children:(0,Ne.jsx)("span",{children:(0,Ne.jsx)(HE,{className:"btn btn-success m-2",variant:"contained",disabled:!0,color:"primary",onClick:()=>this.props.onCreateNext(this.props.result.entity),children:"Register an organ from this donor"})})}),void 0!==this.props.result&&"organ"===this.props.result.entity.specimen_type&&(0,Ne.jsx)(iR,{placement:"top-start",title:"Registering tisse samples from a new organ will return with the release of the new Sample form \ud83c\udf89",children:(0,Ne.jsx)("span",{children:(0,Ne.jsx)(HE,{className:"btn btn-primary m-2",variant:"contained",disabled:!0,color:"success",sx:{marginRight:"10px"},type:"button",onClick:()=>this.props.onCreateNext(this.props.result.entity),children:"Register tissue samples from this organ"})})}),(0,Ne.jsx)(HE,{className:"btn btn-success",variant:"contained",color:"primary",onClick:this.handleReturnClick,children:"Done"})]})})]})}}const qM=VM;function GM(e){var t={TMC:[],RTI:[],TTD:[],DP:[],TC:[],MC:[],EXT:[],IEC:[]},r=[];for(var n in e){var o=e[n].shortname.split(" ");["TMC","RTI","TTD","DP","TC","MC","EXT","IEC"].includes(o[0])&&t[o[0]].push({shortName:e[n].shortname,uuid:e[n].uuid})}return r.push(t.TMC,t.RTI,t.TTD,t.DP,t.TC,t.MC,t.EXT,t.IEC),r.flat()}var QM=r(5766),KM=r.n(QM);function JM(e){return(0,qt.Ay)("MuiTable",e)}(0,Vt.A)("MuiTable",["root","stickyHeader"]);const XM=["className","component","padding","size","stickyHeader"],YM=(0,Ht.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Ft.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,Ft.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),ZM="table",eD=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiTable"}),{className:n,component:o=ZM,padding:s="normal",size:a="medium",stickyHeader:l=!1}=r,u=(0,Lt.A)(r,XM),c=(0,Ft.A)({},r,{component:o,padding:s,size:a,stickyHeader:l}),d=(e=>{const{classes:t,stickyHeader:r}=e,n={root:["root",r&&"stickyHeader"]};return(0,$t.A)(n,JM,t)})(c),p=i.useMemo((()=>({padding:s,size:a,stickyHeader:l})),[s,a,l]);return(0,Ne.jsx)(WS.Provider,{value:p,children:(0,Ne.jsx)(YM,(0,Ft.A)({as:o,role:o===ZM?null:"table",ref:t,className:(0,zt.A)(d.root,n),ownerState:c},u))})}));function tD(e){return(0,qt.Ay)("MuiTableBody",e)}(0,Vt.A)("MuiTableBody",["root"]);const rD=["className","component"],nD=(0,Ht.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),oD={variant:"body"},iD="tbody",sD=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiTableBody"}),{className:n,component:o=iD}=r,i=(0,Lt.A)(r,rD),s=(0,Ft.A)({},r,{component:o}),a=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"]},tD,t)})(s);return(0,Ne.jsx)(VS.Provider,{value:oD,children:(0,Ne.jsx)(nD,(0,Ft.A)({className:(0,zt.A)(a.root,n),as:o,ref:t,role:o===iD?null:"rowgroup",ownerState:s},i))})}));function aD(e){return(0,qt.Ay)("MuiTableContainer",e)}(0,Vt.A)("MuiTableContainer",["root"]);const lD=["className","component"],uD=(0,Ht.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),cD=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=(0,Lt.A)(r,lD),s=(0,Ft.A)({},r,{component:o}),a=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"]},aD,t)})(s);return(0,Ne.jsx)(uD,(0,Ft.A)({ref:t,as:o,className:(0,zt.A)(a.root,n),ownerState:s},i))}));function dD(e){return(0,qt.Ay)("MuiTableHead",e)}(0,Vt.A)("MuiTableHead",["root"]);const pD=["className","component"],hD=(0,Ht.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),fD={variant:"head"},mD="thead",gD=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiTableHead"}),{className:n,component:o=mD}=r,i=(0,Lt.A)(r,pD),s=(0,Ft.A)({},r,{component:o}),a=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"]},dD,t)})(s);return(0,Ne.jsx)(VS.Provider,{value:fD,children:(0,Ne.jsx)(hD,(0,Ft.A)({as:o,className:(0,zt.A)(a.root,n),ref:t,role:o===mD?null:"rowgroup",ownerState:s},i))})}));function vD(e){return(0,qt.Ay)("MuiTableRow",e)}const bD=(0,Vt.A)("MuiTableRow",["root","selected","hover","head","footer"]),yD=["className","component","hover","selected"],xD=(0,Ht.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${bD.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${bD.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,fi.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),wD="tr",_D=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiTableRow"}),{className:n,component:o=wD,hover:s=!1,selected:a=!1}=r,l=(0,Lt.A)(r,yD),u=i.useContext(VS),c=(0,Ft.A)({},r,{component:o,hover:s,selected:a,head:u&&"head"===u.variant,footer:u&&"footer"===u.variant}),d=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e,s={root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]};return(0,$t.A)(s,vD,t)})(c);return(0,Ne.jsx)(xD,(0,Ft.A)({as:o,ref:t,className:(0,zt.A)(d.root,n),role:o===wD?null:"row",ownerState:c},l))}));var SD=r(7058);const AD=(0,Ht.Ay)(kE)`
  textarea {
    resize: both;
  }
`;function CD(e){var[t,r]=(0,i.useState)([]),[n,o]=(0,i.useState)([]),[s,a]=(0,i.useState)(""),[l,u]=(0,i.useState)(""),[c,d]=(0,i.useState)(),[p,h]=(0,i.useState)(),[f,m]=(0,i.useState)(!0),[g,v]=(0,i.useState)(!0),[b,y]=(0,i.useState)(!1),[x,w]=(0,i.useState)(!1),[_,S]=(0,i.useState)(!1),[A,C]=(0,i.useState)(!1),[k,E]=(0,i.useState)(!1),[R,j]=(0,i.useState)(!1),[O,T]=(0,i.useState)(""),[I,P]=(0,i.useState)(!1),[N,M]=(0,i.useState)(null),[D,L]=(0,i.useState)([]),[F,z]=(0,i.useState)(!1),[B,$]=(0,i.useState)(!1),[H,U]=(0,i.useState)(!1),[W,V]=i.useState(!1),[q,G]=i.useState([]),[Q,K]=i.useState([]),[J,X]=i.useState(null),[Y,Z]=i.useState(null),[ee,te]=(0,i.useState)({status:"",message:"",isError:null}),[re,ne]=(0,i.useState)({bulk_dataset_uuids:""}),[oe,ie]=(0,i.useState)({title:"",description:"",dataset_uuids:"",contributors:[],bulk_dataset_uuids:["","",""]}),[se,ae]=(0,i.useState)({title:"",description:"",dataset_uuids:[],contributors:[],group_uuid:""}),[le]=(0,i.useState)(e.newForm),[ue]=(0,i.useState)(e.dataGroups),[ce]=(0,i.useState)(e.dtl_all),[de]=(0,i.useState)(e.editingCollection);(0,i.useEffect)((()=>{Bc(JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{console.debug("%c\u25c9 ADMINCHECK ","color:#3F007b",e),$(e)})).catch((e=>{console.debug("%c\u2b57","color:#1f005d","ingest_api_user_admin ERR",e)}))}),[]),(0,i.useEffect)((()=>{if(de){r([]);var t=de,n=[];if(de.associations&&de.associations.length>0){for(const t of de.associations){if(t.id=t.uuid,t.dataset_type&&t.dataset_type.length>0){var i="";i="string"===typeof t.dataset_type?EN(t.dataset_type,e.dtl_all):EN(t.dataset_type[0],e.dtl_all),t.display_subtype=i}r((e=>[...e,t])),L((e=>[...e,t.uuid])),n.push(t.uuid)}t.dataset_uuids=n,o(n)}de.contributors&&de.contributors.length>0&&(t.contributors=de.contributors),ae(t),v(!1),(de.doi_url||de.registered_doi)&&w(!0)}else v(!1)}),[de]);const pe=(e,t,r)=>{console.debug("%c\u25c9 CELLCLICK params ","color:#eeff7b",e.row,e.field),"uuid"===e.field&&he(e.row)},he=(e,n)=>{let o=D.filter((t=>t!==e.uuid));L(o),console.debug("%c\u2299","color:#00ff7b","filteredUUIDs",o);let i=t.filter(((t,r)=>t.uuid!==e.uuid));r(i),console.debug("%c\u2299","color:#00ff7b","filtered Details",i),ae((e=>({...e,dataset_uuids:o})))},fe=t=>{let r={};t.data&&t.data.error?(console.debug("response.data.error",t.data.error),r.message=t.data.error):console.debug("response",t),console.debug("ERRMSG",r),e.reportError(t)},me=e=>{const{name:t,value:r,type:n}=e.target;console.debug("handleInputChange",t,r,n),"file"===n?ae((r=>({...r,[t]:e.target.files[0]}))):"groups"===t?(console.debug("%c\u25c9 GROUPS FPOUND ","color:#00ff7b",r),ae((e=>({...e,group_uuid:r}))),U((e=>({...e,group_uuid:r})))):ae((e=>({...e,[t]:r})))},ge=()=>{var n=se.dataset_uuids,o=n;let i=0;var s=t.map((e=>{let{uuid:t}=e;return t}));ie((e=>({...e,bulk_dataset_uuids:["","",""]}))),V(!1),("string"===typeof n||n instanceof String)&&(o=n.split(","));for(let t of o){let n=t.split(" ").join(""),o=0;console.debug("%c\u2299","color:#00ff7b","ds",n,s.includes(n),s),v(!0),0===n.length||s.includes(n)?s.includes(n)&&(V(!0),ne((e=>({...e,bulk_dataset_uuids:"UUID "+n+" is already in the list"})))):(console.debug("%c\u2299","color:#00ff7b","ds",n,s.includes(n)),yd(n,JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{if((400===t.status||404===t.status)&&t.data&&t.data.error)o++,ie((e=>({...e,bulk_dataset_uuids:t.data.error.split(": ")})));else if(200!==t.status&&400!==t.status&&404!==t.status)o++,fe(t);else{let o=t.results;s.includes(o.uuid)?(V(!0),ne((e=>({...e,bulk_dataset_uuids:"UUID "+n+" is already in the list"})))):!o.display_subtype&&o.dataset_type&&(o.display_subtype=EN(o.dataset_type,e.dtl_all),o.id=o.uuid,r((e=>[...e,o])),s.push(o.uuid.toString()))}})).catch((e=>{fe(e),y(!1),v(!1)}))),i+=o}v(!1),i>0&&(console.debug("%c\u2299","color:#00ff7b","No Errors"),m(!0),y(!1))};const ve=()=>{a("submit");var e=function(e){console.debug("%c\u25c9 validateForm FormValues ","color:#00ff7b");var r=!0;let{title:n,description:o,contributors:i,contacts:s}=e,a={};n&&0!==n.length?(ie((e=>({...e,title:""}))),a.title=e.title):(ie((e=>({...e,title:"Title is required"}))),r=!1),o&&0!==o.length?(ie((e=>({...e,description:""}))),a.description=o):(ie((e=>({...e,description:"Descripton is required"}))),r=!1);var l=[];return t.map(((e,t)=>{l.push(e.uuid)})),console.debug("%c\u2299","color:#00ff7b","datasetUUIDs",l,l.length),l&&0!==l.length?(ie((e=>({...e,dataset_uuids:""}))),a.dataset_uuids=l):(console.debug("%c\u2b57","color:#ff005d","No Datasets"),ie((e=>({...e,dataset_uuids:"At least one Member is required"}))),r=!1),console.debug("%c\u2299","color:#00ff7b","contributors",i),i&&i[0]&&void 0!==i[0].orcid&&(a.contributors=i),s&&s[0]&&(a.contacts=s),!!r&&a}(se);if(U(e),console.debug("%c\u2299 setValidatingSubmitForm","color:#00ff7b",e),!1!==e)if(de){var r=n.sort(),o=e.dataset_uuids.sort();if(console.debug("%c\u25c9 associatedEntitiesInitial VS forumUUIDs ","color:#00ff7b",r,o,r===o),r.toString()===o.toString()){console.debug("%c\u2299","color:#00ff7b","SAME"),delete e.dataset_uuids;var i=e;console.debug("%c\u25c9  newSubmitForm","color:#00ff7b",i),ye(i)}else ye(e)}else console.debug("%c\u2299","color:#00ff7b","Creating"),console.debug("%c\u2299","color:#00ff7b","Just need the group"),console.debug("%c\u25c9 dataGroups ","color:#00ff7b",ue),ue.length>1?(U((e=>({...e,group_uuid:ue[0].uuid}))),j(!0)):be(e);else a("")},be=t=>{j(!1),wd("collection",t,e.authToken).then((t=>{e.onProcessed(t)})).catch((e=>{console.debug("%c\u2b57","color:#ff005d","handleCreate error",e),T(e.toString()),a("")}))},ye=t=>{console.debug("%c\u25c9 formSubmit ","color:#00ff7b",t),xd(se.uuid,t,e.authToken).then((t=>{console.debug("%c\u2299","color:#00ff7b","handleUpdate response",t,t.results),200===t.status?e.onProcessed(t.results):(console.debug("%c\u2b57","color:#ff005d","handleUpdate NOT RIGHT",t.results.error),T(t.results.error.toString()),a(""))})).catch((e=>{console.debug("%c\u2b57","color:#ff005d","handleUpdate error",e),T(e.toString()),a("")}))};var xe=(e,t)=>{var r=[],n=[];for(const o of e.data)r.push(o),o.is_contact?!o.is_contact||"TRUE"!==o.is_contact&&"yes"!==o.is_contact.toLowerCase()||n.push(o):o.is_contact="NO";ae({...se,contacts:n,contributors:r})},we=e=>{if(e.length>0)return e.map(((e,t)=>(0,Ne.jsxs)(_D,{className:"row-selection",children:[(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.display_name}),(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.affiliation}),(0,Ne.jsxs)(JS,{className:"clicky-cell",scope:"row",children:[e.orcid," "]}),(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.email}),(0,Ne.jsxs)(JS,{className:"clicky-cell",scope:"row",children:[" ",!e.is_contact||"TRUE"!==e.is_contact&&"yes"!==e.is_contact.toLowerCase()?"":(0,Ne.jsx)(bo,{icon:$o})," "]}),(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.is_principal_investigator}),(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.is_operator}),(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.metadata_schema_id})]},"rowName_"+t)))},_e=()=>{let e="<ul>";for(const t of l)e+=`<li>${t.error}</li>`;return e+="</ul>",e};return(0,Ne.jsxs)(mr,{component:"form",sx:{display:"flex",flexDirection:"column",gap:"1rem",margin:"0 0"},children:[(0,Ne.jsxs)("div",{className:"w-100",children:[(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"col-md-12 mb-4",children:[(0,Ne.jsxs)("h3",{children:[!e.newForm&&de&&(0,Ne.jsxs)("span",{className:"",children:["HuBMAP Collection ID: ",de.hubmap_id," "]}),e.newForm&&(0,Ne.jsx)("span",{className:"mx-1",children:"Registering a Collection"})]}),!e.newForm&&(0,Ne.jsx)("h5",{children:e.editingCollection.title}),de&&de.doi_url&&(0,Ne.jsxs)("h4",{className:"title_badge",children:["doi: ",(0,Ne.jsxs)("a",{href:de.doi_url,target:"_blank",rel:"noreferrer",children:[de.doi_url," "]}),(0,Ne.jsx)(bo,{icon:ko})]})]})}),(0,Ne.jsxs)("label",{htmlFor:"dataset_uuids",children:["Associated Entities ",(0,Ne.jsx)("span",{className:"text-danger px-2",children:"*"})]}),(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"associations_uuid_tooltip"}),(0,Ne.jsx)(hT,{id:"associations_uuid_tooltip",className:"zindex-tooltip",place:"right",type:"info",effect:"solid",children:(0,Ne.jsxs)("p",{children:["The source tissue samples or data from which this data was derived.  ",(0,Ne.jsx)("br",{}),"At least ",(0,Ne.jsx)("strong",{children:"one source "}),"is required, but multiple may be specified."]})}),g&&(0,Ne.jsx)(Gl,{}),!g&&(0,Ne.jsxs)(Ne.Fragment,{children:[(()=>{var e=[],r=new Set(t.map((e=>e.entity_type.toLowerCase())));r.has("dataset")&&1===r.size&&e.push("submission_id");var n=function(e){let t={};return e.forEach((e=>{t[e]=!1})),t}(e);return(0,Ne.jsx)("div",{style:{width:"100%",maxHeight:"340px",overflowX:"auto",padding:"10px 0"},children:(0,Ne.jsx)(mj,{columnVisibilityModel:n,className:"associationTable w-100",rows:t,columns:hd,disableColumnMenu:!0,hideFooterPagination:!0,hideFooterSelectedRowCount:!0,rowCount:t.length,onCellClick:pe,loading:!t.length>0&&!le,sx:{".MuiDataGrid-main > .MuiDataGrid-virtualScroller":{minHeight:"60px"}}})})})(),oe.bulk_dataset_uuids[0].length>0&&(0,Ne.jsxs)(pu,{variant:"filled",severity:"error",children:[(0,Ne.jsx)("strong",{children:"Error:"})," ",oe.bulk_dataset_uuids[1],": ",oe.bulk_dataset_uuids[2]," (",oe.bulk_dataset_uuids[2],")"]}),re.bulk_dataset_uuids.length>0&&(0,Ne.jsx)(pi,{in:W,children:(0,Ne.jsxs)(pu,{severity:"warning",variant:"filled",sx:{mt:2},action:(0,Ne.jsx)(Gi,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{V(!1)},children:(0,Ne.jsx)($l.A,{fontSize:"inherit"})}),children:[(0,Ne.jsx)("strong",{children:"Notice: "}),re.bulk_dataset_uuids]})}),(0,Ne.jsxs)(mr,{className:"mt-2 w-100",width:"100%",display:"flex",children:[(0,Ne.jsxs)(mr,{p:1,className:"m-0  text-right",flexShrink:0,flexDirection:"row",children:[(0,Ne.jsxs)(HE,{variant:"contained",type:"button",size:"small",className:"btn btn-neutral",onClick:()=>E(!0),children:["Add ",se.dataset_uuids&&se.dataset_uuids.length>=1&&"Another"," Member",(0,Ne.jsx)(bo,{className:"fa button-icon m-2",icon:Lo})]}),(0,Ne.jsxs)(HE,{variant:"text",type:"link",size:"small",className:"mx-2",onClick:e=>(e=>{e.preventDefault(),console.debug("%c\u2299","color:#00ff7b","FORM VALS",se.dataset_uuids),f?m(!f):ge()})(e),children:[f&&(0,Ne.jsx)(Ne.Fragment,{children:"Bulk"}),!f&&(0,Ne.jsx)(Ne.Fragment,{children:"Add"}),(0,Ne.jsx)(bo,{className:"fa button-icon m-2",icon:xo})]})]}),(0,Ne.jsx)(mr,{children:(0,Ne.jsxs)(pi,{in:!f,orientation:"horizontal",sx:{overflow:"hidden",display:"inline-box"},children:[b&&(0,Ne.jsx)(Gl,{children:" "}),!b&&(0,Ne.jsx)(mE,{sx:{verticalAlign:"bottom",minWidth:"400px",overflow:"hidden"},children:(0,Ne.jsx)(AD,{name:"dataset_uuids",id:"dataset_uuids",error:!!(oe.dataset_uuids&&oe.dataset_uuids.length>0),disabled:x,multiline:!0,rows:2,inputProps:{"aria-label":"description"},placeholder:"List of Dataset HuBMAP IDs or UUIDs, Comma Seperated ",variant:"standard",size:"small",fullWidth:!0,onChange:e=>me(e),value:se.dataset_uuids,sx:{marginTop:"10px",width:"100%",verticalAlign:"bottom"}})})]})}),!f&&(0,Ne.jsx)(mr,{p:1,className:"m-0  text-left",flexShrink:0,flexDirection:"row",children:(0,Ne.jsx)(Gi,{"aria-label":"cancel",size:"small",sx:{verticalAlign:"middle!important"},onClick:()=>{m(!0)},children:(0,Ne.jsx)(SD.A,{})})})]}),oe.dataset_uuids&&oe.dataset_uuids.length>0&&(0,Ne.jsx)(mr,{p:1,width:"100%",sx:{backgroundColor:"rgb(253, 237, 237)",padding:"10px"},children:oe.dataset_uuids})]}),(0,Ne.jsxs)(vO,{fullWidth:!0,maxWidth:"lg",onClose:()=>E(!1),"aria-labelledby":"association-lookup-dialog",open:k,children:[(0,Ne.jsx)(yO,{children:(0,Ne.jsx)(zj,{select:e=>(e=>{if(!D.includes(e.row.uuid)){r((t=>[...t,e.row])),L((t=>[...t,e.row.uuid]));var n=t.map((e=>{let{uuid:t}=e;return t}));n.push(e.row.uuid),console.debug("handleSelectClick SelctedSOurces",e.row,e.row.uuid),ae((e=>({...e,dataset_uuids:n}))),E(!1)}})(e),custom_title:"Search for an Associated Dataset for your Collection",modecheck:"Source",restrictions:{entityType:"dataset"}})}),(0,Ne.jsx)(_T,{children:(0,Ne.jsx)(HE,{onClick:()=>E(!1),variant:"contained",color:"primary",children:"Close"})})]})]}),(0,Ne.jsx)(mE,{children:(0,Ne.jsx)(kE,{label:"Title",name:"title",id:"title",error:!!(oe.title&&oe.title.length>0),disabled:!1,helperText:oe.title&&oe.title.length>0?"The title of the Collection is Required":"The title of the Collection",variant:"standard",onChange:me,value:se.title})}),(0,Ne.jsx)(mE,{children:(0,Ne.jsx)(kE,{label:"Description",name:"description",id:"description",multiline:!0,rows:4,error:!!(oe.description&&oe.description.length>0),disabled:!1,helperText:oe.title&&oe.title.length>0?"A description of the Collection is Required":"A description of the Collection",variant:"standard",onChange:me,value:se.description})}),(0,Ne.jsxs)(mE,{children:[(0,Ne.jsx)(Yt,{sx:{color:"rgba(0, 0, 0.2, 0.6)"},children:"Contributors"}),se.contributors&&se.contributors.length>0&&(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsxs)(Ne.Fragment,{children:[A&&(0,Ne.jsx)(mr,{sx:{position:"absolute",backgroundColor:"rgba(25,25,25,0.8)",color:"white",display:"flex",width:"100%",height:"100%",zIndex:1e3},children:(0,Ne.jsx)(xu,{color:"#fff",style:{margin:"auto"},size:23,loading:!0})}),(0,Ne.jsx)(cD,{style:{maxHeight:600},children:(0,Ne.jsxs)(eD,{stickyHeader:!0,"aria-label":"Associated Collaborators",size:"small",className:"table table-striped table-hover mb-0",children:[(0,Ne.jsx)(gD,{className:"thead-dark font-size-sm",children:(0,Ne.jsxs)(_D,{className:"   ",children:[(0,Ne.jsx)(JS,{children:" Name"}),(0,Ne.jsx)(JS,{component:"th",children:"Affiliation"}),(0,Ne.jsx)(JS,{component:"th",children:"Orcid"}),(0,Ne.jsx)(JS,{component:"th",children:"Email"}),(0,Ne.jsx)(JS,{component:"th",children:"Is Contact"}),(0,Ne.jsx)(JS,{component:"th",children:"Is Principal Investigator"}),(0,Ne.jsx)(JS,{component:"th",children:"Is Operator"}),(0,Ne.jsx)(JS,{component:"th",children:"Metadata Schema ID"})]})}),(0,Ne.jsx)(sD,{children:we(se.contributors)})]})}),l&&l.length>0&&(0,Ne.jsxs)(mr,{children:["Errors Found: ",(0,Ne.jsx)("br",{}),(0,Ne.jsx)("div",{dangerouslySetInnerHTML:{__html:_e()}})]}),oe.contributors&&oe.contributors.length>0&&(0,Ne.jsxs)(mr,{p:1,width:"100%",sx:{color:"red",padding:"10px"},children:[(0,Ne.jsx)(bo,{icon:Uo,color:"red",className:"mr-1 red"})," ",oe.contributors]})]})," "]}),(0,Ne.jsx)("div",{className:"text-right",children:(0,Ne.jsxs)(Yt,{variant:"caption",children:["Please refer to the ",(0,Ne.jsx)("a",{href:"https://hubmapconsortium.github.io/ingest-validation-tools/contributors/current/",target:"_blank",rel:"noreferrer",children:"contributor file schema information"}),", and this ",(0,Ne.jsx)("a",{href:"https://raw.githubusercontent.com/hubmapconsortium/dataset-metadata-spreadsheet/main/contributors/latest/contributors.tsv",target:"_blank",rel:"noreferrer",children:"Example TSV File"})," "]})}),(0,Ne.jsx)("div",{className:"text-left",children:(0,Ne.jsx)("label",{children:(0,Ne.jsx)("input",{accept:".tsv, .csv",type:"file",id:"FileUploadContriubtors",name:"Contributors",onChange:e=>((e,t)=>{console.debug("%c\u25c9 FILEGRAb ","color:#00ff7b"),u(),C(!0),S(!0);var r=e.target.files[0],n=r.name.replace(/ /g,"_"),o=new File([r],n);o&&o.name.length>0?(console.debug("%c\u25c9 HAVE FILE ","color:#00ff7b",o),ie((e=>({...e,contributors:""}))),Xc(JSON.parse(localStorage.getItem("info")).groups_token,o).then((e=>{if(200===e.status)console.debug("%c\u25c9 Success ","color:#00ff7b",e),u(),S(!1),ie((e=>({...e,contributors:""}))),C(!1);else{let r=e.error.response.data.description;if(r[0].row)try{r=r.sort(((e,t)=>e.row-t.row)),u(r)}catch(t){console.debug("%c\u25c9 parsedErrorRows trycatch  ","color:#00ff7b",t)}else try{u([{column:"N/A",error:r.toString(),row:"N/A"}])}catch(t){console.debug("%c\u25c9trycatch  errorPreprocessCheck","color:#00ff7b",t)}ie((e=>({...e,contributors:"Please Review the list of errors provided"}))),C(!1)}})).catch((e=>{console.debug("%c\u25c9 FAILURE ","color:#ff005d",e)})),KM().parse(o,{download:!0,skipEmptyLines:!0,header:!0,complete:e=>{h({...p,[t]:e.data}),xe(e,"grab")}})):console.debug("No Data??")})(e,"contributors")})})})]}),O.length>0&&(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)(pu,{variant:"filled",severity:"error",children:[(0,Ne.jsx)("strong",{children:"Error:"})," ",O]})}),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"buttonWrapRight",children:[!0===B&&de&&!de.doi_url&&(0,Ne.jsx)(sI,{loading:I,onClick:()=>(P(!0),void Jc(e.authToken,de.uuid).then((t=>{if(200===t.status)console.debug("%c\u25c9 Good ingest_api_publish_collection ","color:#00ff7b",t),e.onProcessed(t.results);else{console.debug("%c\u25c9 ingest_api_publish_collection  Bad result","color:#ff337b",t),P(!1);let e=401===t.status?"User must be Authorized":t.results.error.toString();T(t.status+" |  "+e)}})).catch((e=>{console.debug("%c\u2b57 handlePublishErr Broken Result","color:#ff005d",e),T(e.status+" |  "+e.message),P(!1)}))),variant:"contained",children:"Publish"}),(0,Ne.jsxs)(HE,{variant:"contained",onClick:()=>ve(),type:"button",disabled:x||_,className:"float-right",children:["submit"===s&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),"submit"!==s&&"Submit"]}),(0,Ne.jsx)(HE,{type:"button",variant:"outlined",onClick:()=>e.handleCancel(),children:"Cancel"})]})}),(0,Ne.jsx)(AT,{show:R,groups:ue,submit:()=>be(H),hide:e=>{j(!1)},handleInputChange:e=>me(e)})]})}const kD=e=>{let t=te();var[r]=(0,i.useState)(e.newForm),[n]=(0,i.useState)(e.groupsToken),[o]=(0,i.useState)(e.dataGroups),[s,a]=(0,i.useState)(),[l,u]=(0,i.useState)(!0),[c,d]=(0,i.useState)(),[p,h]=(0,i.useState)({status:"",message:"",isError:null});const f=re(),m=e.newForm?e.newForm:"";function g(e,t){u(!1),h({status:e,message:t,isError:!0})}(0,i.useEffect)((()=>{if(!m&&f){const r=f.uuid;var e=JSON.parse(localStorage.getItem("info"));console.debug("%c\u25c9 entityUUID ","color:#00ff7b",r),yd(r,e.groups_token).then((e=>{if(console.debug("%c\u25c9 response ","color:#00ff7b",e),200===e.status)if("Collection"!==e.results.entity_type)t("/"+e.results.entity_type+"/"+f);else{var r=e.results;r.datasets&&(r.associations=r.datasets),a(r),u(!1),document.title="HuBMAP Ingest Portal | Collection: "+e.results.hubmap_id}else console.debug("entity_api_get_entity RESP NOT 200",e.status,e),g(e.status,e.message)})).catch((e=>{console.debug("entity_api_get_entity ERROR",e),g(e.status,e.results.error)}))}else m&&!0===m&&u(!1)}),[f,m]);return l||!0!==p.isError?l?(0,Ne.jsxs)("div",{className:"card-body ",children:[(0,Ne.jsx)(Gl,{}),(0,Ne.jsx)("div",{className:"loader",children:"Loading..."})]}):(0,Ne.jsx)("div",{children:(0,Ne.jsx)(CD,{authToken:n,handleCancel:()=>e.handleCancel(),reportError:t=>e.reportError(t),onProcessed:r?e.onCreated:e.onUpdated,editingCollection:s,dataGroups:o,dtl_all:e.dtl_all,newForm:!!r||null})}):(0,Ne.jsx)("div",{children:(0,Ne.jsx)(SI,{err:p})})},ED=(0,Ht.Ay)(kE)`
  textarea {
    resize: both;
  }
`;function RD(e){var[t,r]=(0,i.useState)([]),[n,o]=(0,i.useState)([]),[s,a]=(0,i.useState)(""),[l,u]=(0,i.useState)(""),[c,d]=(0,i.useState)(),[p,h]=(0,i.useState)(),[f,m]=(0,i.useState)(!0),[g,v]=(0,i.useState)(!0),[b,y]=(0,i.useState)(!1),[x,w]=(0,i.useState)(!1),[_,S]=(0,i.useState)(!1),[A,C]=(0,i.useState)(!1),[k,E]=(0,i.useState)(!1),[R,j]=(0,i.useState)(!1),[O,T]=(0,i.useState)(""),[I,P]=(0,i.useState)(!1),[N,M]=(0,i.useState)(null),[D,L]=(0,i.useState)([]),[F,z]=(0,i.useState)(!1),[B,$]=(0,i.useState)(!1),[H,U]=(0,i.useState)(!1),[W,V]=i.useState(!1),[q,G]=i.useState([]),[Q,K]=i.useState([]),[J,X]=i.useState(null),[Y,Z]=i.useState(null),[ee,te]=(0,i.useState)({status:"",message:"",isError:null}),[re,ne]=(0,i.useState)({bulk_dataset_uuids:""}),[oe,ie]=(0,i.useState)({title:"",description:"",dataset_uuids:"",contributors:[],contacts:[],bulk_dataset_uuids:["","",""]}),[se,ae]=(0,i.useState)({title:"",description:"",dataset_uuids:[],contributors:[],group_uuid:"",contacts:[]}),[le]=(0,i.useState)(e.newForm),[ue]=(0,i.useState)(e.dataGroups),[ce]=(0,i.useState)(e.dtl_all),[de]=(0,i.useState)(e.editingCollection);(0,i.useEffect)((()=>{Bc(JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{console.debug("%c\u25c9 ADMINCHECK ","color:#3F007b",e),$(e)})).catch((e=>{console.debug("%c\u2b57","color:#1f005d","ingest_api_user_admin ERR",e)}))}),[]),(0,i.useEffect)((()=>{if(de){r([]);var t=de,n=[];if(de.associations&&de.associations.length>0){for(const t of de.associations){if(t.id=t.uuid,t.dataset_type&&t.dataset_type.length>0){var i="";i="string"===typeof t.dataset_type?EN(t.dataset_type,e.dtl_all):EN(t.dataset_type[0],e.dtl_all),t.display_subtype=i}r((e=>[...e,t])),L((e=>[...e,t.uuid])),n.push(t.uuid)}t.dataset_uuids=n,o(n)}de.contributors&&de.contributors.length>0&&(t.contributors=de.contributors),ae(t),v(!1),(de.doi_url||de.registered_doi)&&w(!0)}else v(!1)}),[de]);const pe=(e,t,r)=>{console.debug("%c\u25c9 CELLCLICK params ","color:#eeff7b",e.row,e.field),"uuid"===e.field&&he(e.row)},he=(e,n)=>{let o=D.filter((t=>t!==e.uuid));L(o),console.debug("%c\u2299","color:#00ff7b","filteredUUIDs",o);let i=t.filter(((t,r)=>t.uuid!==e.uuid));r(i),console.debug("%c\u2299","color:#00ff7b","filtered Details",i),ae((e=>({...e,dataset_uuids:o})))},fe=t=>{let r={};t.data&&t.data.error?(console.debug("response.data.error",t.data.error),r.message=t.data.error):console.debug("response",t),console.debug("ERRMSG",r),e.reportError(t)},me=e=>{const{name:t,value:r,type:n}=e.target;console.debug("handleInputChange",t,r,n),"file"===n?ae((r=>({...r,[t]:e.target.files[0]}))):"groups"===t?(console.debug("%c\u25c9 GROUPS FPOUND ","color:#00ff7b",r),ae((e=>({...e,group_uuid:r}))),U((e=>({...e,group_uuid:r})))):ae((e=>({...e,[t]:r})))},ge=()=>{var n=se.dataset_uuids,o=n,i=0,s=t.map((e=>{let{uuid:t}=e;return t}));for(var a of(ie((e=>({...e,bulk_dataset_uuids:["","",""]}))),V(!1),("string"===typeof n||n instanceof String)&&(o=n.split(",")),o)){let t=a.split(" ").join(""),n=0;console.debug("%c\u2299","color:#00ff7b","ds",t,s.includes(t),s),v(!0),0===t.length||s.includes(t)?s.includes(t)&&(V(!0),ne((e=>({...e,bulk_dataset_uuids:"UUID "+t+" is already in the list"})))):(console.debug("%c\u2299","color:#00ff7b","ds",t,s.includes(t)),yd(t,JSON.parse(localStorage.getItem("info")).groups_token).then((o=>{if((400===o.status||404===o.status)&&o.data&&o.data.error)n++,ie((e=>({...e,bulk_dataset_uuids:o.data.error.split(": ")})));else if(200!==o.status&&400!==o.status&&404!==o.status)n++,fe(o);else{let n=o.results;s.includes(n.uuid)?(V(!0),ne((e=>({...e,bulk_dataset_uuids:"UUID "+t+" is already in the list"})))):!n.display_subtype&&n.dataset_type&&(n.display_subtype=EN(n.dataset_type,e.dtl_all),n.id=n.uuid,r((e=>[...e,n])),s.push(n.uuid.toString()))}})).catch((e=>{fe(e),y(!1),v(!1)}))),i+=n}v(!1),i>0&&(console.debug("%c\u2299","color:#00ff7b","No Errors"),m(!0),y(!1))};const ve=()=>{a("submit");var e=function(e){console.debug("%c\u25c9 validateForm FormValues ","color:#00ff7b");var r=!0;let{title:n,description:o,contributors:i,contacts:s}=e,a={};n&&0!==n.length?(ie((e=>({...e,title:""}))),a.title=e.title):(ie((e=>({...e,title:"Title is required"}))),r=!1),o&&0!==o.length?(ie((e=>({...e,description:""}))),a.description=o):(ie((e=>({...e,description:"Descripton is required"}))),r=!1);var l=[];return t.map(((e,t)=>{l.push(e.uuid)})),console.debug("%c\u2299","color:#00ff7b","datasetUUIDs",l,l.length),l&&0!==l.length?(ie((e=>({...e,dataset_uuids:""}))),a.dataset_uuids=l):(console.debug("%c\u2b57","color:#ff005d","No Datasets"),ie((e=>({...e,dataset_uuids:"At least one Member is required"}))),r=!1),console.debug("%c\u2299","color:#00ff7b","contributors",i),i&&i[0]&&void 0!==i[0].orcid&&(a.contributors=i),s&&s[0]&&(a.contacts=s),!!r&&a}(se);if(U(e),console.debug("%c\u2299 setValidatingSubmitForm","color:#00ff7b",e),!1!==e)if(de){var r=n.sort(),o=e.dataset_uuids.sort();if(console.debug("%c\u25c9 associatedEntitiesInitial VS forumUUIDs ","color:#00ff7b",r,o,r===o),r.toString()===o.toString()){console.debug("%c\u2299","color:#00ff7b","SAME"),delete e.dataset_uuids;var i=e;console.debug("%c\u25c9  newSubmitForm","color:#00ff7b",i),ye(i)}else ye(e)}else console.debug("%c\u2299","color:#00ff7b","Creating"),console.debug("%c\u2299","color:#00ff7b","Just need the group"),console.debug("%c\u25c9 dataGroups ","color:#00ff7b",ue),ue.length>1?(U((e=>({...e,group_uuid:ue[0].uuid}))),j(!0)):be(e);else a("")},be=t=>{j(!1),wd("epicollection",t,e.authToken).then((t=>{200===t.status?e.onProcessed(t):(console.debug("%c\u2b57","color:#ff005d","handleCreate NOT RIGHT",t.error,t.error.error),T(t.error.error.toString()),a(""))})).catch((e=>{console.debug("%c\u2b57","color:#ff005d","handleCreate error",e),T(e.toString()),a("")}))},ye=t=>{console.debug("%c\u25c9 formSubmit ","color:#00ff7b",t),xd(se.uuid,t,e.authToken).then((t=>{console.debug("%c\u2299","color:#00ff7b","handleUpdate response",t,t.results),200===t.status?e.onProcessed(t.results):(console.debug("%c\u2b57","color:#ff005d","handleUpdate NOT RIGHT",t.results.error),T(t.results.error.toString()),a(""))})).catch((e=>{console.debug("%c\u2b57","color:#ff005d","handleUpdate error",e),T(e.toString()),a("")}))};var xe=e=>{var t=[],r=[];for(const n of e.data)t.push(n),n.is_contact?!n.is_contact||"TRUE"!==n.is_contact&&"yes"!==n.is_contact.toLowerCase()||r.push(n):n.is_contact="NO";ae({...se,contacts:r,contributors:t})},we=e=>{if(e.length>0)return e.map(((e,t)=>(0,Ne.jsxs)(_D,{className:"row-selection",children:[(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.display_name}),(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.affiliation}),(0,Ne.jsxs)(JS,{className:"clicky-cell",scope:"row",children:[e.orcid," "]}),(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.email}),(0,Ne.jsxs)(JS,{className:"clicky-cell",scope:"row",children:[" ",!e.is_contact||"TRUE"!==e.is_contact&&"yes"!==e.is_contact.toLowerCase()?"":(0,Ne.jsx)(bo,{icon:$o})," "]}),(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.is_principal_investigator}),(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.is_operator}),(0,Ne.jsx)(JS,{className:"clicky-cell",scope:"row",children:e.metadata_schema_id})]},"rowName_"+t)))},_e=()=>{let e="<ul>";for(const t of l)e+=`<li>${t.error}</li>`;return e+="</ul>",e};return(0,Ne.jsxs)(mr,{component:"form",sx:{display:"flex",flexDirection:"column",gap:"1rem",margin:"0 0"},children:[(0,Ne.jsxs)("div",{className:"w-100",children:[(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"col-md-12 mb-4",children:[(0,Ne.jsxs)("h3",{children:[!e.newForm&&de&&(0,Ne.jsxs)("span",{className:"",children:["HuBMAP EPICollection ID: ",de.hubmap_id," "]}),e.newForm&&(0,Ne.jsx)("span",{className:"mx-1",children:"Registering an EPICollection"})]}),!e.newForm&&(0,Ne.jsx)("h5",{children:e.editingCollection.title}),de&&de.doi_url&&(0,Ne.jsxs)("h4",{className:"title_badge",children:["doi: ",(0,Ne.jsxs)("a",{href:de.doi_url,target:"_blank",rel:"noreferrer",children:[de.doi_url," "]}),(0,Ne.jsx)(bo,{icon:ko})]})]})}),(0,Ne.jsxs)("label",{htmlFor:"dataset_uuids",children:["Associated Entities ",(0,Ne.jsx)("span",{className:"text-danger px-2",children:"*"})]}),(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"associations_uuid_tooltip"}),(0,Ne.jsx)(hT,{id:"associations_uuid_tooltip",className:"zindex-tooltip",place:"right",type:"info",effect:"solid",children:(0,Ne.jsxs)("p",{children:["The source tissue samples or data from which this data was derived.  ",(0,Ne.jsx)("br",{}),"At least ",(0,Ne.jsx)("strong",{children:"one source "}),"is required, but multiple may be specified."]})}),g&&(0,Ne.jsx)(Gl,{}),!g&&(0,Ne.jsxs)(Ne.Fragment,{children:[(()=>{var e=["registered_doi"],r=new Set(t.map((e=>e.entity_type.toLowerCase())));r.has("dataset")&&1===r.size&&e.push("submission_id");var n=function(e){let t={};return e.forEach((e=>{t[e]=!1})),t}(e);return(0,Ne.jsx)("div",{children:(0,Ne.jsx)(mj,{columnVisibilityModel:n,className:"associationTable w-100",density:"comfortable",rows:t,columns:hd,disableColumnMenu:!0,hideFooterPagination:!0,hideFooterSelectedRowCount:!0,rowCount:t.length,onCellClick:pe,loading:!t.length>0&&!le,sx:{".MuiDataGrid-main > .MuiDataGrid-virtualScroller":{minHeight:"60px"}}})})})(),oe.bulk_dataset_uuids[0].length>0&&(0,Ne.jsxs)(pu,{variant:"filled",severity:"error",children:[(0,Ne.jsx)("strong",{children:"Error:"})," ",oe.bulk_dataset_uuids[1],": ",oe.bulk_dataset_uuids[2]," (",oe.bulk_dataset_uuids[2],")"]}),re.bulk_dataset_uuids.length>0&&(0,Ne.jsx)(pi,{in:W,children:(0,Ne.jsxs)(pu,{severity:"warning",variant:"filled",sx:{mt:2},action:(0,Ne.jsx)(Gi,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{V(!1)},children:(0,Ne.jsx)($l.A,{fontSize:"inherit"})}),children:[(0,Ne.jsx)("strong",{children:"Notice: "}),re.bulk_dataset_uuids]})}),(0,Ne.jsxs)(mr,{className:"mt-2 w-100",width:"100%",display:"flex",children:[(0,Ne.jsxs)(mr,{p:1,className:"m-0  text-right",flexShrink:0,flexDirection:"row",children:[(0,Ne.jsxs)(HE,{variant:"contained",type:"button",size:"small",className:"btn btn-neutral",onClick:()=>E(!0),children:["Add ",se.dataset_uuids&&se.dataset_uuids.length>=1&&"Another"," Member",(0,Ne.jsx)(bo,{className:"fa button-icon m-2",icon:Lo})]}),(0,Ne.jsxs)(HE,{variant:"text",type:"link",size:"small",className:"mx-2",onClick:e=>(e=>{e.preventDefault(),console.debug("%c\u2299","color:#00ff7b","FORM VALS",se.dataset_uuids),f?m(!f):ge()})(e),children:[f&&(0,Ne.jsx)(Ne.Fragment,{children:"Bulk"}),!f&&(0,Ne.jsx)(Ne.Fragment,{children:"Add"}),(0,Ne.jsx)(bo,{className:"fa button-icon m-2",icon:xo})]})]}),(0,Ne.jsx)(mr,{children:(0,Ne.jsxs)(pi,{in:!f,orientation:"horizontal",sx:{overflow:"hidden",display:"inline-box"},children:[b&&(0,Ne.jsx)(Gl,{children:" "}),!b&&(0,Ne.jsx)(mE,{sx:{verticalAlign:"bottom",minWidth:"400px",overflow:"hidden"},children:(0,Ne.jsx)(ED,{name:"dataset_uuids",id:"dataset_uuids",error:!!(oe.dataset_uuids&&oe.dataset_uuids.length>0),disabled:x,multiline:!0,rows:2,inputProps:{"aria-label":"description"},placeholder:"List of Dataset HuBMAP IDs or UUIDs, Comma Seperated ",variant:"standard",size:"small",fullWidth:!0,onChange:e=>me(e),value:se.dataset_uuids,sx:{marginTop:"10px",width:"100%",verticalAlign:"bottom"}})})]})}),!f&&(0,Ne.jsx)(mr,{p:1,className:"m-0  text-left",flexShrink:0,flexDirection:"row",children:(0,Ne.jsx)(Gi,{"aria-label":"cancel",size:"small",sx:{verticalAlign:"middle!important"},onClick:()=>{m(!0)},children:(0,Ne.jsx)(SD.A,{})})})]}),oe.dataset_uuids&&oe.dataset_uuids.length>0&&(0,Ne.jsx)(mr,{p:1,width:"100%",sx:{backgroundColor:"rgb(253, 237, 237)",padding:"10px"},children:oe.dataset_uuids})]}),(0,Ne.jsxs)(vO,{fullWidth:!0,maxWidth:"lg",onClose:()=>E(!1),"aria-labelledby":"association-lookup-dialog",open:k,children:[(0,Ne.jsx)(yO,{children:(0,Ne.jsx)(zj,{select:e=>(e=>{if(!D.includes(e.row.uuid)){r((t=>[...t,e.row])),L((t=>[...t,e.row.uuid]));var n=t.map((e=>{let{uuid:t}=e;return t}));n.push(e.row.uuid),console.debug("handleSelectClick SelctedSOurces",e.row,e.row.uuid),ae((e=>({...e,dataset_uuids:n}))),E(!1)}})(e),custom_title:"Search for an Associated Dataset for your Collection",modecheck:"Source",restrictions:{entityType:"dataset"}})}),(0,Ne.jsx)(_T,{children:(0,Ne.jsx)(HE,{onClick:()=>E(!1),variant:"contained",color:"primary",children:"Close"})})]})]}),(0,Ne.jsx)(mE,{children:(0,Ne.jsx)(kE,{label:"Title",name:"title",id:"title",error:!!(oe.title&&oe.title.length>0),disabled:!1,helperText:oe.title&&oe.title.length>0?"The title of the Collection is Required":"The title of the Collection",variant:"standard",onChange:me,value:se.title})}),(0,Ne.jsx)(mE,{children:(0,Ne.jsx)(kE,{label:"Description",name:"description",id:"description",multiline:!0,rows:4,error:!!(oe.description&&oe.description.length>0),disabled:!1,helperText:oe.title&&oe.title.length>0?"A description of the Collection is Required":"A description of the Collection",variant:"standard",onChange:me,value:se.description})}),(0,Ne.jsxs)(mE,{children:[(0,Ne.jsx)(Yt,{sx:{color:"rgba(0, 0, 0.2, 0.6)"},children:"Contributors"}),se.contributors&&se.contributors.length>0&&(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsxs)(Ne.Fragment,{children:[A&&(0,Ne.jsx)(mr,{sx:{position:"absolute",backgroundColor:"rgba(25,25,25,0.8)",color:"white",display:"flex",width:"100%",height:"100%",zIndex:1e3},children:(0,Ne.jsx)(xu,{color:"#fff",style:{margin:"auto"},size:23,loading:!0})}),(0,Ne.jsx)(cD,{style:{maxHeight:200},children:(0,Ne.jsxs)(eD,{stickyHeader:!0,"aria-label":"Associated Collaborators",size:"small",className:"table table-striped table-hover mb-0",children:[(0,Ne.jsx)(gD,{className:"thead-dark font-size-sm",children:(0,Ne.jsxs)(_D,{className:"   ",children:[(0,Ne.jsx)(JS,{children:" Name"}),(0,Ne.jsx)(JS,{component:"th",children:"Affiliation"}),(0,Ne.jsx)(JS,{component:"th",children:"Orcid"}),(0,Ne.jsx)(JS,{component:"th",children:"Email"}),(0,Ne.jsx)(JS,{component:"th",children:"Is Contact"}),(0,Ne.jsx)(JS,{component:"th",children:"Is Principal Investigator"}),(0,Ne.jsx)(JS,{component:"th",children:"Is Operator"}),(0,Ne.jsx)(JS,{component:"th",children:"Metadata Schema ID"})]})}),(0,Ne.jsx)(sD,{children:we(se.contributors)})]})}),l&&l.length>0&&(0,Ne.jsxs)(mr,{children:["Errors Found: ",(0,Ne.jsx)("br",{}),(0,Ne.jsx)("div",{dangerouslySetInnerHTML:{__html:_e()}})]}),oe.contributors&&oe.contributors.length>0&&(0,Ne.jsxs)(mr,{p:1,width:"100%",sx:{color:"red",padding:"10px"},children:[(0,Ne.jsx)(bo,{icon:Uo,color:"red",className:"mr-1 red"})," ",oe.contributors]})]})," "]}),(0,Ne.jsx)("div",{className:"text-right",children:(0,Ne.jsxs)(Yt,{variant:"caption",children:["Please refer to the ",(0,Ne.jsx)("a",{href:"https://hubmapconsortium.github.io/ingest-validation-tools/contributors/current/",target:"_blank",rel:"noreferrer",children:"contributor file schema information"}),", and this ",(0,Ne.jsx)("a",{href:"https://raw.githubusercontent.com/hubmapconsortium/dataset-metadata-spreadsheet/main/contributors/latest/contributors.tsv",target:"_blank",rel:"noreferrer",children:"Example TSV File"})," "]})}),(0,Ne.jsx)("div",{className:"text-left",children:(0,Ne.jsx)("label",{children:(0,Ne.jsx)("input",{accept:".tsv, .csv",type:"file",id:"FileUploadContriubtors",name:"Contributors",onChange:e=>((e,t)=>{C(!0),S(!0);var r=e.target.files[0],n=r.name.replace(/ /g,"_"),o=new File([r],n);o&&o.name.length>0?(console.debug("%c\u25c9 HAVE FILE ","color:#00ff7b",o),ie((e=>({...e,contributors:""}))),Xc(JSON.parse(localStorage.getItem("info")).groups_token,o).then((e=>{if(200===e.status)console.debug("%c\u25c9 Success ","color:#00ff7b",e),u(),S(!1),ie((e=>({...e,contributors:""}))),C(!1);else{let r=e.error.response.data.description;if(console.debug('%c\u25c9 errorSet.includes("row") ',"color:#00ff7b",r.includes("row"),r[0].row),r[0].row)try{r=r.sort(((e,t)=>e.row-t.row)),u(r)}catch(t){console.debug("%c\u25c9 parsedErrorRows trycatch  ","color:#00ff7b",t)}else try{u([{column:"N/A",error:r.toString(),row:"N/A"}])}catch(t){console.debug("%c\u25c9trycatch  errorPreprocessCheck","color:#00ff7b",t)}ie((e=>({...e,contributors:"Please Review the list of errors provided"}))),C(!1)}})).catch((e=>{console.debug("%c\u25c9 FAILURE ","color:#ff005d",e)})),KM().parse(o,{download:!0,skipEmptyLines:!0,header:!0,complete:e=>{h({...p,[t]:e.data}),xe(e,"grab")}})):console.debug("No Data??")})(e,"contributors")})})})]}),O.length>0&&(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)(pu,{variant:"filled",severity:"error",children:[(0,Ne.jsx)("strong",{children:"Error:"})," ",O]})}),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"buttonWrapRight",children:[!0===B&&de&&!de.doi_url&&(0,Ne.jsx)(sI,{loading:I,onClick:()=>(P(!0),void Jc(e.authToken,de.uuid).then((t=>{if(console.debug("%c\u25c9 PUBLISHED ","color:#00ff7b"),200===t.status)console.debug("%c\u25c9 Good ingest_api_publish_collection ","color:#00ff7b",t),e.onProcessed(t.results);else{console.debug("%c\u25c9 ingest_api_publish_collection  Bad result","color:#ff337b",t),P(!1);let e=401===t.status?"User must be Authorized":t.results.error.toString();T(t.status+" |  "+e)}})).catch((e=>{console.debug("%c\u2b57 handlePublishErr Broken Result","color:#ff005d",e),T(e.status+" |  "+e.message),P(!1)}))),variant:"contained",children:"Publish"}),(0,Ne.jsxs)(HE,{variant:"contained",onClick:()=>ve(),type:"button",disabled:x||_,className:"float-right",children:["submit"===s&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),"submit"!==s&&"Submit"]}),(0,Ne.jsx)(HE,{type:"button",variant:"outlined",onClick:()=>e.handleCancel(),children:"Cancel"})]})}),(0,Ne.jsx)(AT,{show:R,groups:ue,submit:()=>be(H),hide:e=>{j(!1)},handleInputChange:e=>me(e)})]})}const jD=e=>{let t=te();var[r]=(0,i.useState)(e.newForm),[n]=(0,i.useState)(e.groupsToken),[o]=(0,i.useState)(e.dataGroups),[s,a]=(0,i.useState)(),[l,u]=(0,i.useState)(!0),[c,d]=(0,i.useState)(),[p,h]=(0,i.useState)({status:"",message:"",isError:null});const f=re(),m=e.newForm?e.newForm:"";function g(e,t){u(!1),h({status:e,message:t,isError:!0})}(0,i.useEffect)((()=>{if(!m&&f){const r=f.uuid;var e=JSON.parse(localStorage.getItem("info"));console.debug("%c\u25c9 entityUUID ","color:#00ff7b",r),yd(r,e.groups_token).then((e=>{if(console.debug("%c\u25c9 response ","color:#00ff7b",e),200===e.status)if("Epicollection"!==e.results.entity_type)t("/"+e.results.entity_type+"/"+f);else{var r=e.results;r.datasets&&(r.associations=r.datasets),a(r),u(!1),document.title="HuBMAP Ingest Portal | EPICollection: "+e.results.hubmap_id}else console.debug("entity_api_get_entity RESP NOT 200",e.status,e),g(e.status,e.message)})).catch((e=>{console.debug("entity_api_get_entity ERROR",e),g(e.status,e.results.error)}))}else m&&!0===m&&u(!1)}),[f,m]);return l||!0!==p.isError?l?(0,Ne.jsxs)("div",{className:"card-body ",children:[(0,Ne.jsx)(Gl,{}),(0,Ne.jsx)("div",{className:"loader",children:"Loading..."})]}):(0,Ne.jsx)("div",{children:(0,Ne.jsx)(RD,{authToken:n,handleCancel:()=>e.handleCancel(),reportError:t=>e.reportError(t),onProcessed:r?e.onCreated:e.onUpdated,editingCollection:s,dataGroups:o,dtl_all:e.dtl_all,newForm:!!r||null})}):(0,Ne.jsx)("div",{children:(0,Ne.jsx)(SI,{err:p})})},OD=e=>{(0,i.useRef)(null);let t=te();const{allGroups:r}=(0,i.useContext)(Pe);var[n,o]=(0,i.useState)(null),[s,a]=(0,i.useState)(null),[l,u]=(0,i.useState)(!1),[c,d]=(0,i.useState)(null),[p,h]=(0,i.useState)(null),[f,m]=(0,i.useState)(null),[g,v]=(0,i.useState)([""]),[b,y]=(0,i.useState)([""]),[x,w]=(0,i.useState)([""]),[_,S]=(0,i.useState)([""]),[A,C]=(0,i.useState)(!0),[k,E]=(0,i.useState)(!0),[R,j]=(0,i.useState)(),[O,T]=(0,i.useState)({status:"",message:"",isError:null});Z();const{uuid:I}=re();function P(){this.props&&this.props.handleCancel?this.props.handleCancel():window.history.back()}function N(e){t("/")}function M(e,t){T({status:e,message:t,isError:!0})}return console.debug("%c\u25c9 allGroups ","color:#2f00ff",r),(0,i.useEffect)((()=>{var r=JSON.parse(localStorage.getItem("info"));m(r),e.new?(console.debug("new"),C(!1)):(console.debug("Not New"),function(r){console.debug("fetchEntity",I,r.groups_token),yd(I,r.groups_token).then((r=>{if(console.debug("fetchEntity RESP",r),200===r.status)if("Dataset"!==r.results.entity_type)t("/"+r.results.entity_type+"/"+I);else{var n=r.results;h(n),C(!1),n.dataset_type,S(!1),y(e.dataTypeList),w(e.dataTypeList),j(e.dataTypeList),E(!1),document.title="HuBMAP Ingest Portal | Dataset: "+n.hubmap_id}else console.debug("NON 200",r.status,r.data),M(r.status,r.data),C(!1)})).catch((e=>{console.debug("fetchEntity Error",e),M(e.status,e.results.error),C(!1)}))}(r))}),[I]),A||k?(0,Ne.jsx)("div",{className:"card-body ",children:(0,Ne.jsx)("div",{className:"loader",children:"Loading..."})}):(console.debug("Loaded!",_,x,b),(0,Ne.jsxs)("div",{children:[function(){if(l)return(0,Ne.jsx)(vO,{"aria-labelledby":"result-dialog",open:l,maxWidth:"xs",children:(0,Ne.jsx)(yO,{children:(0,Ne.jsx)(AP,{result:s,onReturn:N,handleCancel:P,entity:n})})})}(),(0,Ne.jsx)(XI,{authToken:f,changeLink:function(e,t){console.debug(t,e);const{name:r,display_doi:n,doi:o}=t},onUpdated:function(e){t("../")},onCreated:function(e){console.debug(" onCreated:",e),o(e.entity),a(e),d(e.globus_path),u(!0)},handleCancel:P,editingDataset:p,reportError:e.reportError,allGroups:e.allGroups,dataTypeList:R,dtl_primary:x,dtl_all:b,dtl_status:_})]}))};var TD=r(3082);const ID=i.createContext({});const PD=ID,ND=i.createContext({});const MD=ND;function DD(e){return(0,qt.Ay)("MuiStep",e)}(0,Vt.A)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const LD=["active","children","className","component","completed","disabled","expanded","index","last"],FD=(0,Ht.Ay)("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel,r.completed&&t.completed]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})})),zD=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiStep"}),{active:n,children:o,className:s,component:a="div",completed:l,disabled:u,expanded:c=!1,index:d,last:p}=r,h=(0,Lt.A)(r,LD),{activeStep:f,connector:m,alternativeLabel:g,orientation:v,nonLinear:b}=i.useContext(PD);let[y=!1,x=!1,w=!1]=[n,l,u];f===d?y=void 0===n||n:!b&&f>d?x=void 0===l||l:!b&&f<d&&(w=void 0===u||u);const _=i.useMemo((()=>({index:d,last:p,expanded:c,icon:d+1,active:y,completed:x,disabled:w})),[d,p,c,y,x,w]),S=(0,Ft.A)({},r,{active:y,orientation:v,alternativeLabel:g,completed:x,disabled:w,expanded:c,component:a}),A=(e=>{const{classes:t,orientation:r,alternativeLabel:n,completed:o}=e,i={root:["root",r,n&&"alternativeLabel",o&&"completed"]};return(0,$t.A)(i,DD,t)})(S),C=(0,Ne.jsxs)(FD,(0,Ft.A)({as:a,className:(0,zt.A)(A.root,s),ref:t,ownerState:S},h,{children:[m&&g&&0!==d?m:null,o]}));return(0,Ne.jsx)(MD.Provider,{value:_,children:m&&!g&&0!==d?(0,Ne.jsxs)(i.Fragment,{children:[m,C]}):C})})),BD=(0,eu.A)((0,Ne.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),$D=(0,eu.A)((0,Ne.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var HD=r(8122);function UD(e){return(0,qt.Ay)("MuiStepIcon",e)}const WD=(0,Vt.A)("MuiStepIcon",["root","active","completed","error","text"]);var VD;const qD=["active","className","completed","error","icon"],GD=(0,Ht.Ay)(HD.A,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,[`&.${WD.completed}`]:{color:(t.vars||t).palette.primary.main},[`&.${WD.active}`]:{color:(t.vars||t).palette.primary.main},[`&.${WD.error}`]:{color:(t.vars||t).palette.error.main}}})),QD=(0,Ht.Ay)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((e=>{let{theme:t}=e;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}})),KD=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiStepIcon"}),{active:n=!1,className:o,completed:i=!1,error:s=!1,icon:a}=r,l=(0,Lt.A)(r,qD),u=(0,Ft.A)({},r,{active:n,completed:i,error:s}),c=(e=>{const{classes:t,active:r,completed:n,error:o}=e,i={root:["root",r&&"active",n&&"completed",o&&"error"],text:["text"]};return(0,$t.A)(i,UD,t)})(u);if("number"===typeof a||"string"===typeof a){const e=(0,zt.A)(o,c.root);return s?(0,Ne.jsx)(GD,(0,Ft.A)({as:$D,className:e,ref:t,ownerState:u},l)):i?(0,Ne.jsx)(GD,(0,Ft.A)({as:BD,className:e,ref:t,ownerState:u},l)):(0,Ne.jsxs)(GD,(0,Ft.A)({className:e,ref:t,ownerState:u},l,{children:[VD||(VD=(0,Ne.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,Ne.jsx)(QD,{className:c.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:a})]}))}return a}));function JD(e){return(0,qt.Ay)("MuiStepLabel",e)}const XD=(0,Vt.A)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),YD=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],ZD=(0,Ht.Ay)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation]]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({display:"flex",alignItems:"center",[`&.${XD.alternativeLabel}`]:{flexDirection:"column"},[`&.${XD.disabled}`]:{cursor:"default"}},"vertical"===t.orientation&&{textAlign:"left",padding:"8px 0"})})),eL=(0,Ht.Ay)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((e=>{let{theme:t}=e;return(0,Ft.A)({},t.typography.body2,{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),[`&.${XD.active}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${XD.completed}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${XD.alternativeLabel}`]:{marginTop:16},[`&.${XD.error}`]:{color:(t.vars||t).palette.error.main}})})),tL=(0,Ht.Ay)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${XD.alternativeLabel}`]:{paddingRight:0}}))),rL=(0,Ht.Ay)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((e=>{let{theme:t}=e;return{width:"100%",color:(t.vars||t).palette.text.secondary,[`&.${XD.alternativeLabel}`]:{textAlign:"center"}}})),nL=i.forwardRef((function(e,t){var r;const n=(0,Ut.b)({props:e,name:"MuiStepLabel"}),{children:o,className:s,componentsProps:a={},error:l=!1,icon:u,optional:c,slotProps:d={},StepIconComponent:p,StepIconProps:h}=n,f=(0,Lt.A)(n,YD),{alternativeLabel:m,orientation:g}=i.useContext(PD),{active:v,disabled:b,completed:y,icon:x}=i.useContext(MD),w=u||x;let _=p;w&&!_&&(_=KD);const S=(0,Ft.A)({},n,{active:v,alternativeLabel:m,completed:y,disabled:b,error:l,orientation:g}),A=(e=>{const{classes:t,orientation:r,active:n,completed:o,error:i,disabled:s,alternativeLabel:a}=e,l={root:["root",r,i&&"error",s&&"disabled",a&&"alternativeLabel"],label:["label",n&&"active",o&&"completed",i&&"error",s&&"disabled",a&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",o&&"completed",i&&"error",s&&"disabled",a&&"alternativeLabel"],labelContainer:["labelContainer",a&&"alternativeLabel"]};return(0,$t.A)(l,JD,t)})(S),C=null!=(r=d.label)?r:a.label;return(0,Ne.jsxs)(ZD,(0,Ft.A)({className:(0,zt.A)(A.root,s),ref:t,ownerState:S},f,{children:[w||_?(0,Ne.jsx)(tL,{className:A.iconContainer,ownerState:S,children:(0,Ne.jsx)(_,(0,Ft.A)({completed:y,active:v,error:l,icon:w},h))}):null,(0,Ne.jsxs)(rL,{className:A.labelContainer,ownerState:S,children:[o?(0,Ne.jsx)(eL,(0,Ft.A)({ownerState:S},C,{className:(0,zt.A)(A.label,null==C?void 0:C.className),children:o})):null,c]})]}))}));nL.muiName="StepLabel";const oL=nL;function iL(e){return(0,qt.Ay)("MuiStepper",e)}(0,Vt.A)("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);function sL(e){return(0,qt.Ay)("MuiStepConnector",e)}(0,Vt.A)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const aL=["className"],lL=(0,Ht.Ay)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel,r.completed&&t.completed]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})})),uL=(0,Ht.Ay)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.line,t[`line${(0,Wt.A)(r.orientation)}`]]}})((e=>{let{ownerState:t,theme:r}=e;const n="light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[600];return(0,Ft.A)({display:"block",borderColor:r.vars?r.vars.palette.StepConnector.border:n},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),cL=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiStepConnector"}),{className:n}=r,o=(0,Lt.A)(r,aL),{alternativeLabel:s,orientation:a="horizontal"}=i.useContext(PD),{active:l,disabled:u,completed:c}=i.useContext(MD),d=(0,Ft.A)({},r,{alternativeLabel:s,orientation:a,active:l,completed:c,disabled:u}),p=(e=>{const{classes:t,orientation:r,alternativeLabel:n,active:o,completed:i,disabled:s}=e,a={root:["root",r,n&&"alternativeLabel",o&&"active",i&&"completed",s&&"disabled"],line:["line",`line${(0,Wt.A)(r)}`]};return(0,$t.A)(a,sL,t)})(d);return(0,Ne.jsx)(lL,(0,Ft.A)({className:(0,zt.A)(p.root,n),ref:t,ownerState:d},o,{children:(0,Ne.jsx)(uL,{className:p.line,ownerState:d})}))})),dL=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],pL=(0,Ht.Ay)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel,r.nonLinear&&t.nonLinear]}})((e=>{let{ownerState:t}=e;return(0,Ft.A)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})})),hL=(0,Ne.jsx)(cL,{}),fL=i.forwardRef((function(e,t){const r=(0,Ut.b)({props:e,name:"MuiStepper"}),{activeStep:n=0,alternativeLabel:o=!1,children:s,className:a,component:l="div",connector:u=hL,nonLinear:c=!1,orientation:d="horizontal"}=r,p=(0,Lt.A)(r,dL),h=(0,Ft.A)({},r,{nonLinear:c,alternativeLabel:o,orientation:d,component:l}),f=(e=>{const{orientation:t,nonLinear:r,alternativeLabel:n,classes:o}=e,i={root:["root",t,r&&"nonLinear",n&&"alternativeLabel"]};return(0,$t.A)(i,iL,o)})(h),m=i.Children.toArray(s).filter(Boolean),g=m.map(((e,t)=>i.cloneElement(e,(0,Ft.A)({index:t,last:t+1===m.length},e.props)))),v=i.useMemo((()=>({activeStep:n,alternativeLabel:o,connector:u,nonLinear:c,orientation:d})),[n,o,u,c,d]);return(0,Ne.jsx)(PD.Provider,{value:v,children:(0,Ne.jsx)(pL,(0,Ft.A)({as:l,ownerState:h,className:(0,zt.A)(f.root,a),ref:t},p,{children:g}))})}));var mL=r(20);const gL=(e,t,r)=>{const n=e.keys[0];if(Array.isArray(t))t.forEach(((t,n)=>{r(((t,r)=>{n<=e.keys.length-1&&(0===n?Object.assign(t,r):t[e.up(e.keys[n])]=r)}),t)}));else if(t&&"object"===typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter((e=>i.includes(e))))).forEach((o=>{if(-1!==e.keys.indexOf(o)){const i=t[o];void 0!==i&&r(((t,r)=>{n===o?Object.assign(t,r):t[e.up(o)]=r}),i)}}))}else"number"!==typeof t&&"string"!==typeof t||r(((e,t)=>{Object.assign(e,t)}),t);var o,i};function vL(e){return e?`Level${e}`:""}function bL(e){return e.unstable_level>0&&e.container}function yL(e){return function(t){return`var(--Grid-${t}Spacing${vL(e.unstable_level)})`}}function xL(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${vL(e.unstable_level-1)})`}}function wL(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${vL(e.unstable_level-1)})`}const _L=e=>{let{theme:t,ownerState:r}=e;const n=yL(r),o={};return gL(t.breakpoints,r.gridSize,((e,t)=>{let i={};!0===t&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"===typeof t&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / ${wL(r)}${bL(r)?` + ${n("column")}`:""})`}),e(o,i)})),o},SL=e=>{let{theme:t,ownerState:r}=e;const n={};return gL(t.breakpoints,r.gridOffset,((e,t)=>{let o={};"auto"===t&&(o={marginLeft:"auto"}),"number"===typeof t&&(o={marginLeft:0===t?"0px":`calc(100% * ${t} / ${wL(r)})`}),e(n,o)})),n},AL=e=>{let{theme:t,ownerState:r}=e;if(!r.container)return{};const n=bL(r)?{[`--Grid-columns${vL(r.unstable_level)}`]:wL(r)}:{"--Grid-columns":12};return gL(t.breakpoints,r.columns,((e,t)=>{e(n,{[`--Grid-columns${vL(r.unstable_level)}`]:t})})),n},CL=e=>{let{theme:t,ownerState:r}=e;if(!r.container)return{};const n=xL(r),o=bL(r)?{[`--Grid-rowSpacing${vL(r.unstable_level)}`]:n("row")}:{};return gL(t.breakpoints,r.rowSpacing,((e,n)=>{var i;e(o,{[`--Grid-rowSpacing${vL(r.unstable_level)}`]:"string"===typeof n?n:null==(i=t.spacing)?void 0:i.call(t,n)})})),o},kL=e=>{let{theme:t,ownerState:r}=e;if(!r.container)return{};const n=xL(r),o=bL(r)?{[`--Grid-columnSpacing${vL(r.unstable_level)}`]:n("column")}:{};return gL(t.breakpoints,r.columnSpacing,((e,n)=>{var i;e(o,{[`--Grid-columnSpacing${vL(r.unstable_level)}`]:"string"===typeof n?n:null==(i=t.spacing)?void 0:i.call(t,n)})})),o},EL=e=>{let{theme:t,ownerState:r}=e;if(!r.container)return{};const n={};return gL(t.breakpoints,r.direction,((e,t)=>{e(n,{flexDirection:t})})),n},RL=e=>{let{ownerState:t}=e;const r=yL(t),n=xL(t);return(0,Ft.A)({minWidth:0,boxSizing:"border-box"},t.container&&(0,Ft.A)({display:"flex",flexWrap:"wrap"},t.wrap&&"wrap"!==t.wrap&&{flexWrap:t.wrap},{margin:`calc(${r("row")} / -2) calc(${r("column")} / -2)`},t.disableEqualOverflow&&{margin:`calc(${r("row")} * -1) 0px 0px calc(${r("column")} * -1)`}),(!t.container||bL(t))&&(0,Ft.A)({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(t.disableEqualOverflow||t.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},jL=e=>{const t=[];return Object.entries(e).forEach((e=>{let[r,n]=e;!1!==n&&void 0!==n&&t.push(`grid-${r}-${String(n)}`)})),t},OL=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"xs";function r(e){return void 0!==e&&("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e&&e>0)}if(r(e))return[`spacing-${t}-${String(e)}`];if("object"===typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((e=>{let[n,o]=e;r(o)&&t.push(`spacing-${n}-${String(o)}`)})),t}return[]},TL=e=>void 0===e?[]:"object"===typeof e?Object.entries(e).map((e=>{let[t,r]=e;return`direction-${t}-${r}`})):[`direction-xs-${String(e)}`],IL=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],PL=(0,nr.A)(),NL=oh("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function ML(e){return Rw({props:e,name:"MuiGrid",defaultTheme:PL})}const DL=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=NL,useThemeProps:r=ML,componentName:n="MuiGrid"}=e,o=i.createContext(void 0),s=t(AL,kL,CL,_L,EL,RL,SL),a=i.forwardRef((function(e,t){var a,l,u,c,d,p,h,f;const m=ar(),g=r(e),v=(0,Bt.A)(g),b=i.useContext(o),{className:y,children:x,columns:w=12,container:_=!1,component:S="div",direction:A="row",wrap:C="wrap",spacing:k=0,rowSpacing:E=k,columnSpacing:R=k,disableEqualOverflow:j,unstable_level:O=0}=v,T=(0,Lt.A)(v,IL);let I=j;O&&void 0!==j&&(I=e.disableEqualOverflow);const P={},N={},M={};Object.entries(T).forEach((e=>{let[t,r]=e;void 0!==m.breakpoints.values[t]?P[t]=r:void 0!==m.breakpoints.values[t.replace("Offset","")]?N[t.replace("Offset","")]=r:M[t]=r}));const D=null!=(a=e.columns)?a:O?void 0:w,L=null!=(l=e.spacing)?l:O?void 0:k,F=null!=(u=null!=(c=e.rowSpacing)?c:e.spacing)?u:O?void 0:E,z=null!=(d=null!=(p=e.columnSpacing)?p:e.spacing)?d:O?void 0:R,B=(0,Ft.A)({},v,{level:O,columns:D,container:_,direction:A,wrap:C,spacing:L,rowSpacing:F,columnSpacing:z,gridSize:P,gridOffset:N,disableEqualOverflow:null!=(h=null!=(f=I)?f:b)&&h,parentDisableEqualOverflow:b}),$=((e,t)=>{const{container:r,direction:o,spacing:i,wrap:s,gridSize:a}=e,l={root:["root",r&&"container","wrap"!==s&&`wrap-xs-${String(s)}`,...TL(o),...jL(a),...r?OL(i,t.breakpoints.keys[0]):[]]};return(0,$t.A)(l,(e=>(0,qt.Ay)(n,e)),{})})(B,m);let H=(0,Ne.jsx)(s,(0,Ft.A)({ref:t,as:S,ownerState:B,className:er($.root,y)},M,{children:i.Children.map(x,(e=>{var t,r;return i.isValidElement(e)&&(0,mL.A)(e,["Grid"])?i.cloneElement(e,{unstable_level:null!=(t=null==(r=e.props)?void 0:r.unstable_level)?t:O+1}):e}))}));return void 0!==I&&I!==(null!=b&&b)&&(H=(0,Ne.jsx)(o.Provider,{value:I,children:H})),H}));return a.muiName="Grid",a}({createStyledComponent:(0,Ht.Ay)("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>(0,Ut.b)({props:e,name:"MuiGrid2"})}),LL=e=>{var[t,r]=i.useState(0),[n,o]=i.useState([]),[s,a]=i.useState([]),[l,u]=i.useState(null),[c,d]=i.useState(null);const p=e.type;const h=(0,Ht.Ay)("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1});const f=e=>{r(1);try{(function(e,t,r){console.debug("%c\u2b57","color:#ff005d","ingest_api_upload_bulk_metadata",t,e,r);const n={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};var o=new(Lc());return o.append("metadata",new Blob([t],{type:"file"}),t.name),o.append("entity_type","Sample"),o.append("sub_type",e),o.append("validate_uuids",1),console.debug("%c\u2299 DATA","color:#00ff7b",o),_u().put("https://ingest.api.hubmapconsortium.org/sample-bulk-metadata",o,n).then((e=>{console.debug("ingest_api_upload_bulk_metadata",e);let t=e.data;return{status:e.status,results:t}})).catch((e=>(console.debug("%c\u2b57  ingest_api_upload_bulk_metadata","color:#ff005d",e),console.debug("%c\u25c9 error ","color:#00ff7b",e,e.status),{error:e})))})(Tc(p),e,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(console.debug("%c\u25c9 resp ","color:#00ff7b",e),202===e.status)d("Succeeding");else if(200===e.status)d("Success");else{d("Failure"),u(2);var t=e.error.response.data.error?e.error.response.data.error:e;if(t.includes("row"))try{var n=function(e){let t=e.match(/\[.*\]/)[0].replace(/"/g,"`").replace(/'/g,'"').replace(/[\[\]']+/g,"").split("},"),r=[];for(var n=0;n<t.length;n++){n+1<t.length&&(t[n]=t[n]+"}");let e=t[n].replace(/`/g,""),o=JSON.parse(e);r.push(o)}return r.sort(((e,t)=>e.row-t.row))}(t);o(n)}catch(i){console.debug("%c\u25c9 parsedErrorRows trycatch  ","color:#00ff7b",i)}else try{a(t.toString())}catch(i){console.debug("%c\u25c9trycatch  errorPreprocessCheck","color:#00ff7b",i)}}r(2)})).catch((e=>{r(2),d("Error")}))}catch(t){throw u(2),t.response?new Error(t.response):new Error(t)}};const m="https://hubmapconsortium.github.io/ingest-validation-tools/sample-"+e.type.toLowerCase()+"/current/";return(0,Ne.jsxs)("div",{className:"row",children:[(0,Ne.jsxs)("h4",{children:[Tc(e.type)," Metadata Upload"]}),(0,Ne.jsx)("div",{className:" col-sm-2",id:"stepContainer",children:(0,Ne.jsx)(fL,{activeStep:t,orientation:"vertical",children:["Upload","Processing","Results"].map(((e,t)=>{const r={};return t===l&&(r.optional=(0,Ne.jsx)(Yt,{variant:"caption",color:"error",children:"Error"}),r.error=!0),(0,Ne.jsx)(zD,{sx:{cursor:"pointer"},children:(0,Ne.jsx)(oL,{...r,children:e})},e)}))})}),(0,Ne.jsx)("div",{className:" col-sm-10",children:(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsxs)(Yt,{className:"d-inline-block text-left",style:{display:"inline-block",margin:"10px"},children:["To bulk register  ",e.type.toLowerCase()," metadata, upload your tsv file here. Please reffer to the format specified in this ",(0,Ne.jsxs)(HE,{href:m,size:"small",download:!0,target:"_blank ",children:[(0,Ne.jsx)(bo,{icon:To,className:"m-1"}),"Example.tsv "]})," file  For further details, please see the Metadata Upload Documentation for ",e.type,"s."]}),0===t&&(0,Ne.jsxs)(DL,{container:!0,spacing:2,alignItems:"flex-start",sx:{margin:"10px"},children:[(0,Ne.jsx)(DL,{container:!0,xs:2,children:(0,Ne.jsxs)(HE,{sx:{padding:"1.5em",fontSize:"1.1em"},fullWidth:!0,size:"large",variant:"contained",component:"label",startIcon:(0,Ne.jsx)(TD.A,{}),children:["Select",(0,Ne.jsx)(h,{type:"file",accept:".tsv, .csv",id:"FileUploader",name:"file",onChange:e=>(e=>{var t=e.target.files[0],r=t.name.replace(/ /g,"_"),n=new File([t],r);n&&n.name.length>0?f(n):console.debug("No Data??")})(e)})]})}),(0,Ne.jsx)(DL,{xs:10,children:(0,Ne.jsx)(Yt,{className:"d-inline-block text-left",style:{display:"inline-block",margin:"10px"},children:"Please select which file you'd like to process"})})]}),1===t&&(0,Ne.jsxs)(DL,{container:!0,spacing:2,alignItems:"flex-start",sx:{margin:"10px"},children:[(0,Ne.jsxs)(DL,{container:!0,alignItems:"flex-start",xs:2,children:[(0,Ne.jsx)(xu,{color:"#444a65",size:23,loading:!0}),(0,Ne.jsx)(xu,{color:"#444a65",size:23,loading:!0})]}),(0,Ne.jsx)(DL,{xs:10,container:!0,alignItems:"flex-start",children:(0,Ne.jsxs)(Yt,{className:"d-inline-block text-left",style:{display:"inline-block",margin:"10px"},children:["Uploading to Validation ",(0,Ne.jsx)("br",{}),"This step could take a few moments. ",(0,Ne.jsx)("br",{}),"Please do not refresh, close, or leave the page until the process is complete."]})})]}),2===t&&(0,Ne.jsxs)(DL,{container:!0,spacing:2,alignItems:"flex-start",sx:{margin:"10px"},children:[(0,Ne.jsx)(DL,{xs:12,children:(0,Ne.jsx)("div",{className:"d-inline-block text-left",style:{display:"inline-block",margin:"10px"},children:(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)("h3",{children:"Results:"}),"Succeeding"===c&&(0,Ne.jsxs)(pu,{className:"mb-2",severity:"success",children:[(0,Ne.jsx)(fI,{children:"Success"}),"No Errors or Failures Detected. Your Data has been accepted and import is in progress. Depending on how much metadata was provided, this could take several minutes to several hours to import."]}),"Success"===c&&(0,Ne.jsxs)(pu,{className:"mb-2",severity:"success",children:[(0,Ne.jsx)(fI,{children:"Success"}),"No Errors or Failures Detected. Your Data has been accepted and imported successfully! ",(0,Ne.jsx)("br",{})]}),"Failure"===c&&(0,Ne.jsxs)(mr,{className:"mb-2",severity:"error",children:[(0,Ne.jsx)(bo,{icon:Uo,color:"red",className:"mr-1"})," There were errors encountered when Validating your File:",s.length>0&&(0,Ne.jsxs)(pu,{className:"mb-2 p-1",variant:"filled",severity:"error",children:[(0,Ne.jsx)(fI,{children:"Error:"}),s.toString()]}),n.length>0&&n.map(((e,t)=>(0,Ne.jsxs)(pu,{className:"mb-2 p-1",variant:"filled",severity:"error",children:[(0,Ne.jsxs)(fI,{children:["Error: Row ",e.row.toString()," Column ",e.column.toString()]}),e.error.toString()]},t+1)))]})]})})}),(0,Ne.jsxs)(DL,{xs:12,alignItems:"flex-end",justifyContent:"flex-end",container:!0,children:[(0,Ne.jsx)(HE,{variant:"contained",className:"m-2",onClick:()=>window.location.reload(),children:"Restart"}),(0,Ne.jsx)(HE,{variant:"contained",className:"m-2",onClick:()=>(window.history.pushState(null,"","/"),void window.location.reload()),children:"Close"})]})]})]})})]})},FL=e=>{(0,i.useRef)(null);let t=te();var[r,n]=(0,i.useState)(null),[o,s]=(0,i.useState)(null),[a,l]=(0,i.useState)(!1),[u,c]=(0,i.useState)(null),[d,p]=(0,i.useState)(null),[h,f]=(0,i.useState)(null),[m,g]=(0,i.useState)([""]),[v,b]=(0,i.useState)([""]),[y,x]=(0,i.useState)([""]),[w,_]=(0,i.useState)([""]),[S,A]=(0,i.useState)(!0),[C,k]=(0,i.useState)(1),[E,R]=(0,i.useState)(),[j,O]=(0,i.useState)({status:"",message:"",isError:null});Z();const{uuid:T}=re();function I(){window.history.back()}function P(e){t("/")}return(0,i.useEffect)((()=>{var r=JSON.parse(localStorage.getItem("info"));f(r),e.new?A(!1):function(e){console.debug("fetchEntity",T,e.groups_token),yd(T,e.groups_token).then((e=>{if(console.debug("fetchEntity RESP",e),200===e.status)if("Publication"!==e.results.entity_type)t("/"+e.results.entity_type+"/"+T);else{var r=e.results;p(r),A(!1),document.title="HuBMAP Ingest Portal | Publication: "+e.results.hubmap_id,e.results.data_types,Pc().then((e=>{console.debug("checkAssayType Primary",e),R(e),x(e),b(e),_(!0),k(0)})).catch((e=>{console.debug("checkAssayType Primary Error",e),reportError(e)}))}else console.debug("NON 200",e.status,e.data),n=e.status,o=e.data,O({status:n,message:o,isError:!0}),A(!1);var n,o})).catch((e=>{console.debug("fetchEntity Error",e),reportError(e),A(!1)}))}(r)}),[T]),!S&&C<1?(console.debug("Loaded!",w,y,v),(0,Ne.jsxs)("div",{children:[function(){if(a)return(0,Ne.jsx)(vO,{"aria-labelledby":"result-dialog",open:a,maxWidth:"xs",children:(0,Ne.jsx)(yO,{children:(0,Ne.jsx)(AP,{result:o,onReturn:P,handleCancelForm:I,entity:r})})})}(),(0,Ne.jsx)(EM,{authToken:h,changeLink:function(e,t){console.debug(t,e)},onUpdated:function(e){t("../")},onCreated:function(e){console.debug(" onCreated:",e),n(e.entity),s(e),c(e.globus_path),l(!0)},handleCancelForm:I,editingPublication:d,reportError:e.reportError,dataTypeList:E,dtl_primary:y,dtl_all:v,dtl_status:!0})]})):(console.debug("Loading...",S,C),(0,Ne.jsx)("div",{className:"card-body ",children:(0,Ne.jsx)("div",{className:"loader",children:"Loading..."})}))},zL=e=>{console.debug("Rendering from NEWER Route, not Legacy Route");var t=JSON.parse(localStorage.getItem("info"));const{uuid:r}=re();var n=te(),[o,s]=(0,i.useState)(null),[a,l]=(0,i.useState)(!0),[u,c]=(0,i.useState)({status:"",message:"",isError:null}),[d,p]=(0,i.useState)(!1);function h(e,t){yd(e).then((t=>{if(p(!0),200===t.status)if("Sample"!==t.results.entity_type)n("/"+t.results.entity_type+"/"+e);else{var r=t.results;document.title="HuBMAP Ingest Portal | Sample: "+t.results.hubmap_id,r.organ?(s(r),l(!1)):_d(r.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{console.debug("%c\u25c9 RESPONSE entity_api_get_entity_ancestor","color:#00ff7b",e.results,e.results[0].organ),e.results[0].organ&&(r.organ=e.results[0].organ),s(r),l(!1)})).catch((e=>{f(e.status,e.results.error),s(r),l(!1)}))}else f(t.status,t.message)})).catch((e=>{f(e.status,e.results.error)}))}function f(e,t){console.debug("Error",e,t),l(!1),c({status:e,message:t,isError:!0})}return(0,i.useEffect)((()=>{!1===d&&h(r,t.groups_token)}),[t,r,d]),a||!0!==u.isError?a?(0,Ne.jsx)("div",{className:"card-body ",children:(0,Ne.jsx)("div",{className:"loader",children:"Loading..."})}):(0,Ne.jsx)("div",{children:(0,Ne.jsx)(eI,{handleCancel:function(){n("/")},uuid:o.uuid,onUpdated:function(e){n("../")},editingEntity:o,handleChangeSamplePage:function(e){l(!0),n("/sample/"+e),h(e,t.groups_token)}})}):(0,Ne.jsx)(SI,{err:u})};class BL extends i.Component{constructor(){super(...arguments),this.state={editingEntity:"entity_data",title:"title",description:"desc",intended_organ:"intended_organ",intended_dataset_type:"intended_dataset_type",author:"created_by_user_displayname",created:"created_timestamp",group:"group",groups:[],hid:"hubmap_id",uuid:"uuid",datasets:{},status:"status",creatingNewUploadFolder:!0,confirmModal:!1,writeable:!1,pageSize:10,data_admin:!1,data_curator:!1,data_group_editor:!1,validation_message:"",badge_class:"",submitting:!1,button_submit:!1,button_validate:!1,button_save:!1,button_reorganize:!1,organList:["organ"],datasetTypes:["types"],formErrors:{title:"",description:"",intended_organ:"",intended_dataset_type:""}},this.allowablePermissions=e=>{$c(JSON.parse(localStorage.getItem("info")).groups_token).then((t=>{if(200===t.status){var r=t.results,n=!1,o=!1,i=!1;r.forEach((function(t){"89a69625-99d7-11ea-9366-0e98982705c1"===t.uuid&&(n=!0),"75804b96-d4a8-11e9-9da9-0ad4acb67ed4"===t.uuid&&(o=!0),e===t.uuid&&(i=!0)})),this.setState({data_admin:n,data_curator:o,data_group_editor:i})}}))},this.handleCancel=()=>{this.props.history?this.props.history.goBack():this.props.handleCancel()},this.showConfirmModal=()=>{this.setState({confirmModal:!0})},this.hideConfirmModal=()=>{this.setState({confirmModal:!1})},this.handleSave=e=>{this.setState({button_save:!0}),this.validateForm().then((e=>{if(e)if(!this.props.editingUpload&&this.state.groups.length>1&&!this.state.GroupSelectShow)this.setState({GroupSelectShow:!0});else{this.setState({GroupSelectShow:!1,submitting:!1}),this.setState({submitting:!0});let e={};this.props.editingUpload.title!==this.state.title&&(e.title=this.state.title),this.props.editingUpload.intended_organ!==this.state.intended_organ&&(e.intended_organ=this.state.intended_organ),this.props.editingUpload.intended_dataset_type!==this.state.intended_dataset_type&&(e.intended_dataset_type=this.state.intended_dataset_type),this.props.editingUpload.description!==this.state.description&&(e.description=this.state.description),this.state.data_admin&&(this.state.assigned_to_group_name&&this.props.editingUpload.assigned_to_group_name!==this.state.assigned_to_group_name&&(e.assigned_to_group_name=this.state.assigned_to_group_name),this.state.ingest_task&&this.props.editingUpload.ingest_task!==this.state.ingest_task&&(e.ingest_task=this.state.ingest_task)),this.props.editingUpload&&xd(this.props.editingUpload.uuid,JSON.stringify(e),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{200===e.status?this.props.onUpdated(e.results):(this.setState({submit_error:!0,submitting:!1,submitting_submission:!1,button_save:!1}),this.handleSpinnerClear())})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitting_submission:!1,button_save:!1}),this.handleSpinnerClear()}))}else this.handleSpinnerClear()}))},this.handleSubmitUpload=e=>{this.setState({submitting_submission:!0,submitting:!0,button_submit:!0}),Qc(this.props.editingUpload.uuid,JSON.stringify(e),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{200===e.status?this.props.onUpdated(e.results):(this.setState({submit_error:!0,submitting:!1,submitting_submission:!1,button_submit:!1}),this.handleSpinnerClear())})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitting_submission:!1,button_submit:!1}),this.handleSpinnerClear()}))},this.handleReorganize=()=>{this.setState({submitting_submission:!0,submitting:!0,button_reorganize:!0}),function(e){const t={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};let r=`https://ingest.api.hubmapconsortium.org/uploads/${e}/reorganize`;return _u().put(r,{},t).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>({error:e})))}(this.props.editingUpload.uuid,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{200===e.status?this.props.onUpdated(e.results):this.setState({submit_error:!0,submitting:!1,submitting_submission:!1,button_reorganize:!1})})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitting_submission:!1,button_reorganize:!1}),this.handleSpinnerClear()}))},this.handleValidateUpload=e=>{this.setState({button_validate:!0,submitting:!0}),this.validateForm().then((e=>{if(e)if(!this.props.editingUpload&&this.state.groups.length>1&&!this.state.GroupSelectShow)this.setState({GroupSelectShow:!0});else{this.setState({GroupSelectShow:!1,submitting:!0}),this.setState({submitting:!0});let e={title:this.state.title,description:this.state.description};this.props.editingUpload&&function(e,t){const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"}};let n=`https://ingest.api.hubmapconsortium.org/uploads/${e}/validate`;return _u().put(n,t,r).then((e=>{let t=e.data;return{status:e.status,results:t}})).catch((e=>({error:e})))}(this.props.editingUpload.uuid,JSON.stringify(e),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{200===e.status?(this.props.onUpdated(e.results),this.handleSpinnerClear()):(this.setState({submit_error:!0,submitting:!1}),this.handleSpinnerClear())}))}else this.handleSpinnerClear()}))},this.handleValidateUploadSubmission=e=>{console.debug("%c\u2299 handleValidateUploadSubmission","color:#00ff7b"),this.setState({submitting_submission:!0,button_submit:!0}),this.validateForm().then((e=>{if(e)if(!this.props.editingUpload&&this.state.groups.length>1&&!this.state.GroupSelectShow)this.setState({GroupSelectShow:!0});else{this.setState({GroupSelectShow:!1,submitting_submission:!0});let e={title:this.state.title,description:this.state.description};this.state.data_admin&&(this.state.assigned_to_group_name&&(e.assigned_to_group_name=this.state.assigned_to_group_name),this.state.ingest_task&&(e.ingest_task=this.state.ingest_task)),console.debug("%c\u2299 DATA","color:#00ff7b",e),this.props.editingUpload&&Qc(this.props.editingUpload.uuid,JSON.stringify(e),JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(this.handleSpinnerClear(),200===e.status){var t={message:"Upload has been submitted ("+("https://ingest.hubmapconsortium.org/upload/"+this.props.editingUpload.uuid)+")"};Kc(JSON.parse(localStorage.getItem("info")).groups_token,t).then((t=>{console.debug("slackRes",t),e.status<300?(this.setState({submit_error:!1,submitting:!1}),this.props.onUpdated(e.results)):this.uncapError(e)})).catch((e=>{this.setState({submit_error:!0,submitting:!1,submitErrorResponse:e.result.data,buttonSpinnerTarget:""})})),this.handleSpinnerClear()}else this.setState({submit_error:!0,submitting:!1,submitting_submission:!1}),this.handleSpinnerClear()})).catch((e=>{this.handleSpinnerClear()}))}else this.handleSpinnerClear()}))},this.handleSpinnerClear=()=>{this.setState({button_submit:!1,button_reorganize:!1,button_save:!1,button_validate:!1,submitting:!1,submitting_submission:!1})},this.handleInputChange=e=>{const{name:t,value:r}=e.target;this.setState((e=>({[t]:r})))},this.showErrorMsgModal=e=>{this.setState({errorMsgShow:!0,statusErrorMsg:e})},this.renderHelperText=()=>(0,Ne.jsxs)("div",{className:"helper-text p-2 m-2 align-right w-100 text-right",children:[["VALID","INVALID","ERROR","NEW"].includes(this.state.status.toUpperCase())&&(this.state.data_admin||this.state.data_curator||this.state.data_group_editor)&&(0,Ne.jsxs)("p",{className:"text-small text-end p-0 m-0",children:["Use the ",(0,Ne.jsx)("strong",{children:"Save"})," button to save any updates to the Title or Description."]}),["VALID"].includes(this.state.status.toUpperCase())&&(this.state.data_admin||this.state.data_group_editor)&&(0,Ne.jsxs)("p",{className:"text-small text-end p-0 m-0",children:["Use the ",(0,Ne.jsx)("strong",{children:"Submit"})," button when all data has been uploaded and is ready for HIVE review."]})]}),this.handleUrlChange=e=>{window.history.replaceState(null,"","/"+e)},this.handleButtonClick=(e,t)=>{this.setState({new_status:e},(()=>{t&&("save"===t?this.handleSave(e):"create"===t||"validate"===t?(this.setState({button_validate:!0,submitting:!0},(()=>{})),this.handleValidateUpload(e)):"submit"===t?this.handleValidateUploadSubmission(e):"reorganize"===t&&this.handleReorganize())}))},this.fetchGlobusURL=e=>{Gc(e,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{200===e.status&&window.open(e.results,"_blank")}))},this.handlePageChange=e=>{this.setState({page:e.page,pageSize:e.pageSize},(()=>{this.handleSearchClick()}))},this.handleDatasetCellSelection=(e,t,r)=>{window.history.pushState(null,"","/dataset/"+e.uuid),window.location.reload()},this.updateInputValue=e=>{if(0===e.target.name.length)e.target.value=null;else{const t={title:"title",description:"description",intended_organ:"intended_organ",intended_dataset_type:"intended_dataset_type",ingest_task:"ingest_task",assigned_to_group_name:"assigned_to_group_name"}[e.target.name];t?this.setState({[t]:e.target.value}):console.debug("%c\u25c9 Cant Match: ","color:#00ff7b",e.target.id),this.validateForm()}},this.renderGroupAssignment=()=>(0,Ne.jsxs)(US,{native:!0,fullWidth:!0,labelid:"group_label",id:"assigned_to_group_name",name:"assigned_to_group_name",label:"Assigned to Group Name",value:this.state.assigned_to_group_name,onChange:e=>this.updateInputValue(e),children:[(0,Ne.jsx)("option",{value:""}),this.props.allGroups.map(((e,t)=>(0,Ne.jsx)("option",{value:Object.values(e)[0],children:Object.values(e)[0]},t+1)))]}),this.renderDatasets=e=>{if(this.state.datasets&&this.state.datasets.length>0){var t=[];for(var r in e)t.push({hubmap_id:e[r].hubmap_id,lab_dataset_id:e[r].lab_dataset_id,group_name:e[r].group_name,status:e[r].status,uuid:e[r].uuid});return(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)("label",{children:"Datsets"}),(0,Ne.jsx)($I,{component:ws,style:{maxHeight:350},children:(0,Ne.jsxs)(II,{"aria-label":"Associated Datasets",size:"small",stickyHeader:!0,children:[(0,Ne.jsx)(VI,{children:(0,Ne.jsxs)(GI,{children:[(0,Ne.jsx)(zI,{children:"HuBMAP ID"}),(0,Ne.jsx)(zI,{component:"th",align:"left",children:"Lab Name/ID"}),(0,Ne.jsx)(zI,{component:"th",align:"left",children:"Group name"}),(0,Ne.jsx)(zI,{component:"th",align:"left",children:"Submission Status"})]})}),(0,Ne.jsx)(LI,{children:t.map((e=>(0,Ne.jsxs)(GI,{onClick:()=>this.handleDatasetCellSelection(e),children:[(0,Ne.jsx)(zI,{align:"left",scope:"row",children:(0,Ne.jsx)(Re,{className:"btn btn-primary",to:"/datasets/{row.uuid}",onClick:this.handleEnterIngest,children:e.hubmap_id})}),(0,Ne.jsx)(zI,{align:"left",scope:"row",children:e.lab_dataset_id}),(0,Ne.jsx)(zI,{align:"left",scope:"row",children:e.group_name}),(0,Ne.jsx)(zI,{align:"left",scope:"row",children:(0,Ne.jsx)("span",{className:"w-100 badge "+Yc(e.status,e.uuid),children:e.status})})]},e.hubmap_id)))})]})})]})}}}componentDidMount(){JSON.parse(localStorage.getItem("info")).groups_token;let e=this.props.editingUpload;if(Sd(this.props.editingUpload.uuid).then((e=>{this.setState({globus_path:e.results})})).catch((e=>{this.setState({globus_path:" ",globus_path_tips:"Globus URL Unavailable"}),e.response&&401===e.response.status&&(localStorage.setItem("isAuthenticated",!1),window.location.reload())})),Nc().then((e=>{console.debug("%c\u25c9 UPLOAD DTYPES  ","color:#00ff7b",e);const t=e.filter((e=>"UNKNOWN"!==e.term)).sort(((e,t)=>e.term.localeCompare(t.term)));this.setState({datasetTypes:t})})).catch((e=>{console.debug("%c\u25c9 UPLOAD DTYPES ERROR  ","color:#00e5ff",e),this.setState({assetError:!0,errorMessage:"Error: Missing Assets: There is an issue loading required assets. \n Please try again in a moment, or contact the help desk for further assistance."})})),this.setState({updateSuccess:null,show:!0,editingEntity:e,title:e.title,hid:e.hubmap_id,uuid:e.uuid,description:e.description,intended_organ:e.intended_organ?e.intended_organ:"",intended_dataset_type:e.intended_dataset_type?e.intended_dataset_type:"",author:e.created_by_user_displayname,created:e.created_timestamp,group:e.group_uuid,datasets:e.datasets,status:e.status,assigned_to_group_name:e.assigned_to_group_name?e.assigned_to_group_name:"",ingest_task:e.ingest_task?e.ingest_task:"",editForm:!0,show_modal:!0,show_search:!1,new_entity:!1,creatingNewUploadFolder:!0,validation_message:e.validation_message,writeable:!1,globusLinkText:"To add or modify data files go to the data repository ",groups:[]},(()=>{switch(this.allowablePermissions(this.state.group),e.status.toUpperCase()){case"NEW":this.setState({validation_message_style:null,writeable:!0});break;case"ERROR":this.setState({validation_message_style:"error",writeable:!0});break;case"INVALID":case"INCOMPLETE":this.setState({validation_message_style:"warning",writeable:!0});break;case"VALID":case"PROCESSING":this.setState({validation_message_style:null,writeable:!1});break;case"REORGANIZED":this.setState({validation_message_style:null,globusLinkText:"Open data repository ",writeable:!1});break;case"SUBMITTED":this.setState({validation_message_style:null,globusLinkText:"Open data repository ",writeable:!0})}})),localStorage.getItem("organs")&&localStorage.getItem("datasetTypes")){const e=Object.entries(JSON.parse(localStorage.getItem("organs"))).sort(((e,t)=>e[1].localeCompare(t[1])));console.debug("%c\u25c9 sortedOrgans ","color:#00ff7b",e),this.setState({organList:e},(()=>{console.debug("%c\u25c9 ORGANSANDDATA ","color:#5C3FFF",this.state.organList)}))}else console.debug("%c\u25c9 Missing Organ Assets ","color:#00ff7b",localStorage.getItem("organs")),this.setState({assetError:!0,errorMessage:"Error: Missing Assets: Please refresh the page to reload the missing assets."});console.debug("%c\u25c9 this.state.status.toUpperCase() ","color:#00ff7b",e.status),this.setState({badge_class:Yc(e.status)}),this.setState({datarows:this.state.datasets,results_total:this.state.datasets.length,column_def:ud})}highlightInvalidDatasets(){document.querySelectorAll("div[data-value='invalid']").forEach((function(e){e.parentElement.classList.add("invalidDatset")}))}renderButtonBar(){return(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)("div",{className:"col-sm-12 align-right",children:(0,Ne.jsx)(kO,{})}),this.renderHelperText(),(0,Ne.jsx)(mr,{sx:{width:"50%",display:"inline-block"},children:this.state.data_admin&&(0,Ne.jsx)(mI,{uuid:this.props.editingUpload?this.props.editingUpload.uuid:null,type:this.props.editingUpload?this.props.editingUpload.entity_type:"entity"})}),(0,Ne.jsx)(mr,{sx:{width:"50%",float:"right",display:"inline-block",button:{m:1,align:"right",float:"right"}},children:(0,Ne.jsxs)(AO,{component:mr,display:"block !important",orientation:"horizontal",children:[(0,Ne.jsx)(HE,{variant:"contained",type:"button",disabled:this.state.submitting||this.state.submitting_submission,onClick:()=>this.props.handleCancel(),children:"Cancel"}),this.renderSaveButton(),this.renderReorganizeButton(),this.renderSubmitButton(),this.renderValidateButton()]})})]})}renderValidateButton(){if(["SUBMITTED","VALID","INVALID","ERROR","NEW"].includes(this.state.status.toUpperCase())&&this.state.data_admin)return(0,Ne.jsxs)(HE,{variant:"contained",type:"button",className:"btn btn-info mr-1 badge-info",onClick:()=>this.handleButtonClick(this.state.status.toLowerCase(),"validate"),children:[this.state.button_validate&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.button_validate&&"Validate"]})}renderSubmitButton(){if(["VALID"].includes(this.state.status.toUpperCase())&&(this.state.data_admin||this.state.data_group_editor))return(0,Ne.jsxs)(HE,{variant:"contained",type:"button",className:"btn btn-info mr-1 badge-success",disabled:this.state.submitting_submission,onClick:()=>this.handleButtonClick(this.state.status.toLowerCase(),"submit"),"data-status":this.state.status.toLowerCase(),children:[this.state.button_submit&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.button_submit&&"Submit"]})}renderSaveButton(){if(["VALID","INVALID","ERROR","NEW","INCOMPLETE"].includes(this.state.status.toUpperCase())&&(this.state.data_admin||this.state.data_curator||this.state.data_group_editor))return(0,Ne.jsxs)(HE,{variant:"contained",type:"button",className:"btn btn-primary mr-1",disabled:this.state.submitting,onClick:()=>this.handleButtonClick(this.state.status.toLowerCase(),"save"),"data-status":this.state.status.toLowerCase(),children:[this.state.button_save&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.button_save&&"Save"]})}renderReorganizeButton(){if(["SUBMITTED"].includes(this.state.status.toUpperCase())&&this.state.data_admin)return(0,Ne.jsxs)(HE,{variant:"contained",type:"button",className:"btn btn-info mr-1",disabled:this.state.submitting,onClick:()=>this.handleButtonClick(this.state.status.toLowerCase(),"reorganize"),"data-status":this.state.status.toLowerCase(),children:[this.state.submitting&&(0,Ne.jsx)(bo,{className:"inline-icon",icon:Bo,spin:!0}),!this.state.submitting&&"Reorganize"]})}tempAlert(){window.alert("This function has not yet been implemented.")}componentDidUpdate(e){this.props.targetUUID,e.targetUUID}validateForm(){return new Promise(((e,t)=>{let r=!0;gT(this.state.title)?this.setState((e=>({formErrors:{...e.formErrors,title:""}}))):(this.setState((e=>({formErrors:{...e.formErrors,title:"required"}}))),r=!1),gT(this.state.intended_dataset_type)?this.setState((e=>({formErrors:{...e.formErrors,intended_dataset_type:""}}))):(this.setState((e=>({formErrors:{...e.formErrors,intended_dataset_type:"required"}}))),r=!1),gT(this.state.intended_organ)?this.setState((e=>({formErrors:{...e.formErrors,intended_organ:""}}))):(this.setState((e=>({formErrors:{...e.formErrors,intended_organ:"required"}}))),r=!1),gT(this.state.description)?this.setState((e=>({formErrors:{...e.formErrors,description:""}}))):(this.setState((e=>({formErrors:{...e.formErrors,description:"required"}}))),r=!1),e(r)}))}errorClass(e){return console.debug("%c\u25c9 error ","color:#00ff7b",e),e&&"valid"===e?"is-valid":0===e.length?"":"is-invalid"}renderDatasetTypeDropdown(){return(0,Ne.jsxs)(US,{size:"small",name:"intended_dataset_type",className:"form-control "+this.errorClass(this.state.formErrors.intended_dataset_type),sx:{margin:"10px auto"},value:this.state.intended_dataset_type,id:"intended_dataset_type",labelid:"type_label",label:"Dataset Type",onChange:e=>this.updateInputValue(e),children:[(0,Ne.jsx)(Ax,{value:"",index:0},0),this.state.datasetTypes.map(((e,t)=>(0,Ne.jsx)(Ax,{value:e.term,children:e.term},t+1)))]})}renderOrganDropdown(){return(0,Ne.jsxs)(US,{size:"small",name:"intended_organ",className:"form-control "+this.errorClass(this.state.formErrors.intended_organ),sx:{margin:"10px auto"},value:this.state.intended_organ,id:"intended_organ",labelid:"organ_label",label:"Intended Organ Type",onChange:e=>this.updateInputValue(e),children:[(0,Ne.jsx)(Ax,{},0),Object.entries(this.state.organList).map(((e,t)=>{let[r,n]=e;return(0,Ne.jsx)(Ax,{value:n[0],children:n[1]},t+1)}))]})}renderLoadingSpinner(){return(0,Ne.jsx)("div",{className:"text-center",children:(0,Ne.jsx)(bo,{icon:Bo,spin:!0,size:"6x"})})}renderValidationMessage(){if(this.state.validation_message&&("Error"===this.state.status||"Invalid"===this.state.status))return(0,Ne.jsxs)(Ws,{severity:this.state.validation_message_style,children:[(0,Ne.jsx)(KI,{children:this.state.status}),this.state.validation_message]})}render(){return(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsxs)("form",{children:[(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)("div",{className:"row mt-3 mb-3",children:(0,Ne.jsx)("div",{className:"col-sm-12",children:(0,Ne.jsxs)("h3",{className:"float-left",children:[(0,Ne.jsx)("span",{className:"mr-1 badge "+this.state.badge_class,style:{cursor:"pointer",marginRight:"10px"},onClick:()=>this.showErrorMsgModal(this.props.editingUpload.pipeline_message),children:this.props.editingUpload.status}),this.props.editingUpload&&"HuBMAP Upload ID "+this.props.editingUpload.hubmap_id]})})}),(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsxs)("div",{className:"row  mb-3 ",children:[(0,Ne.jsxs)("div",{className:"col-sm-6",children:[(0,Ne.jsxs)("div",{className:"col-sm-12 portal-label",children:["Group Name: ",this.props.editingUpload.group_name]}),(0,Ne.jsxs)("div",{className:"col-sm-12 portal-label",children:["Entered by: ",this.props.editingUpload.created_by_user_email]}),(0,Ne.jsxs)("div",{className:"col-sm-12 portal-label",children:["Entry Date: ",jc(this.props.editingUpload.created_timestamp)]})]}),(0,Ne.jsx)("div",{className:"col-sm-6",children:(0,Ne.jsx)("p",{children:(0,Ne.jsx)("strong",{children:(0,Ne.jsx)("big",{children:this.state.globus_path&&(0,Ne.jsxs)("a",{href:this.state.globus_path,target:"_blank",rel:"noopener noreferrer",children:[this.state.globusLinkText," ",(0,Ne.jsx)(bo,{icon:Eo})]})})})})})]})}),(0,Ne.jsxs)("div",{className:"form-group",children:[this.renderValidationMessage(),(0,Ne.jsxs)("label",{htmlFor:"title",className:"mt-3",children:["Upload Title ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"title_tooltip"}),(0,Ne.jsx)(hT,{id:"title_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Upload Title Tips"})})]}),this.state.writeable&&(0,Ne.jsx)("input",{type:"text",name:"title",id:"title",className:"form-control "+this.errorClass(this.state.formErrors.title),placeholder:"Upload Title",onChange:e=>this.updateInputValue(e),value:this.state.title}),!this.state.writeable&&(0,Ne.jsx)("div",{className:"col-sm-9 col-form-label",children:(0,Ne.jsx)("p",{children:this.state.title})})]}),(0,Ne.jsxs)("div",{className:"form-group",children:[(0,Ne.jsxs)("label",{htmlFor:"description",children:[" Description ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"description_tooltip"}),(0,Ne.jsx)(hT,{id:"description_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Description Tips"})})]}),this.state.writeable&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)("div",{children:(0,Ne.jsx)("textarea",{type:"text",name:"description",id:"description",cols:"30",rows:"5",className:"form-control "+this.errorClass(this.state.formErrors.description),placeholder:"Description",onChange:e=>this.updateInputValue(e),value:this.state.description})})}),!this.state.writeable&&(0,Ne.jsx)("div",{className:"col-sm-9 col-form-label",children:(0,Ne.jsx)("p",{children:this.state.description})}),(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)("div",{className:"",children:this.renderDatasets(this.state.datasets)}),this.props.allGroups&&this.state.data_admin&&this.state.writeable&&(0,Ne.jsxs)("div",{className:"row mt-4  ",children:[(0,Ne.jsxs)("div",{className:"form-group col-6",children:[(0,Ne.jsx)("label",{htmlFor:"assigned_to_group_name",children:"Assigned to Group Name "}),this.renderGroupAssignment(),(0,Ne.jsx)(wE,{children:"The group responsible for the next step in the data ingest process."})]}),(0,Ne.jsxs)("div",{className:"form-group col-6",children:[(0,Ne.jsx)("label",{htmlFor:"ingest_task",children:"Ingest Task "}),(0,Ne.jsx)(kE,{labelid:"ingest_task_label",name:"ingest_task",id:"ingest_task",helperText:"The next task in the data ingest process.",fullWidth:!0,value:this.state.ingest_task,onChange:e=>this.updateInputValue(e)})]})]}),(0,Ne.jsxs)("div",{className:"row mt-4  ",children:[(0,Ne.jsxs)("div",{className:"form-group col-6",children:[(0,Ne.jsxs)("label",{htmlFor:"Organ",children:["Intended Organ Type ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"Organ_tooltip"}),(0,Ne.jsx)(hT,{id:"Organ_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Select the organ type that the data in this Upload is intended to be derived from."})})]}),this.renderOrganDropdown()]}),(0,Ne.jsxs)("div",{className:"form-group col-6",children:[(0,Ne.jsxs)("label",{htmlFor:"Dataset Type",children:["Intended Dataset Type ",(0,Ne.jsx)("span",{className:"text-danger",children:"*"})]}),(0,Ne.jsxs)("span",{className:"px-2",children:[(0,Ne.jsx)(bo,{icon:Ao,"data-tip":!0,"data-for":"Dataset Type_tooltip"}),(0,Ne.jsx)(hT,{id:"Dataset Type_tooltip",place:"top",type:"info",effect:"solid",children:(0,Ne.jsx)("p",{children:"Select the data type that this Upload will contain."})})]}),this.renderDatasetTypeDropdown()]})]}),!this.state.data_admin&&this.state.assigned_to_group_name&&this.state.ingest_task&&(0,Ne.jsxs)("div",{className:"row mt-4  ",children:[(0,Ne.jsxs)("div",{className:"form-group col-6",children:[(0,Ne.jsx)("label",{htmlFor:"assigned_to_group_name",children:"Assigned to Group Name "}),(0,Ne.jsx)(RI,{children:this.state.assigned_to_group_name})]}),(0,Ne.jsxs)("div",{className:"form-group col-6",children:[(0,Ne.jsx)("label",{htmlFor:"ingest_task",children:"Ingest Task "}),(0,Ne.jsx)(RI,{children:this.state.ingest_task})]})]})]}),this.state.submit_error&&(0,Ne.jsx)("div",{className:"alert alert-danger col-sm-12",role:"alert",children:"Oops! Something went wrong. Please contact administrator for help."})]})]}),this.renderButtonBar()]}),(0,Ne.jsx)(De,{show:this.state.errorMsgShow,handleClose:this.hideErrorMsgModal,children:(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsxs)("div",{className:"col-sm-12 text-center alert",children:[(0,Ne.jsx)("h4",{children:this.props.editingUpload&&this.props.editingUpload.status.toUpperCase()||"STATUS"}),(0,Ne.jsx)("div",{dangerouslySetInnerHTML:{__html:this.state.statusErrorMsg}})]})})})]})}}const $L=BL,HL=e=>{let t=te();var[r,n]=(0,i.useState)(!0),[o,s]=(0,i.useState)(!0),[a]=(0,i.useState)({status:"",message:"",isError:null});const{uuid:l}=re();return(0,i.useEffect)((()=>{yd(l,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(200!==e.status)return console.error(e.status,e.results.error),e.status,e.results.error;"Upload"!==e.results.entity_type?t("/"+e.results.entity_type+"/"+l):(n(e.results),document.title="HuBMAP Ingest Portal | Data Upload: "+e.results.hubmap_id,s(!1))})).catch((e=>(console.error(e),e.status,e.results.error)))}),[l]),o||!0!==a.isError?o?(console.debug("IS LOADING"),(0,Ne.jsx)("div",{className:"card-body ",children:(0,Ne.jsx)("div",{className:"loader",children:"Loading..."})})):(0,Ne.jsx)("div",{children:(0,Ne.jsx)($L,{handleCancel:function(){window.history.back()},editingUpload:r,onUpdated:function(e){console.debug("onUpdated",e),t("../")},allGroups:e.allGroups})}):(console.debug("errorHandler",a),(0,Ne.jsx)(SI,{err:a}))};var UL=r(1132),WL=r(7173),VL=i.forwardRef((function(e,t){var r=e.active,n=e.alternativeLabel,o=void 0!==n&&n,s=e.classes,a=e.className,l=e.completed,u=e.disabled,c=(e.index,e.orientation),d=void 0===c?"horizontal":c,p=(0,gs.A)(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return i.createElement("div",(0,Ft.A)({className:(0,vs.A)(s.root,s[d],a,o&&s.alternativeLabel,r&&s.active,l&&s.completed,u&&s.disabled),ref:t},p),i.createElement("span",{className:(0,vs.A)(s.line,{horizontal:s.lineHorizontal,vertical:s.lineVertical}[d])}))}));const qL=(0,ys.A)((function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}}),{name:"MuiStepConnector"})(VL);var GL=i.createElement(qL,null),QL=i.forwardRef((function(e,t){var r=e.activeStep,n=void 0===r?0:r,o=e.alternativeLabel,s=void 0!==o&&o,a=e.children,l=e.classes,u=e.className,c=e.connector,d=void 0===c?GL:c,p=e.nonLinear,h=void 0!==p&&p,f=e.orientation,m=void 0===f?"horizontal":f,g=(0,gs.A)(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),v=i.isValidElement(d)?i.cloneElement(d,{orientation:m}):null,b=i.Children.toArray(a),y=b.map((function(e,t){var r={index:t,active:!1,completed:!1,disabled:!1};return n===t?r.active=!0:!h&&n>t?r.completed=!0:!h&&n<t&&(r.disabled=!0),i.cloneElement(e,(0,Ft.A)({alternativeLabel:s,connector:v,last:t+1===b.length,orientation:m},r,e.props))}));return i.createElement(ws,(0,Ft.A)({square:!0,elevation:0,className:(0,vs.A)(l.root,l[m],u,s&&l.alternativeLabel),ref:t},g),y)}));const KL=(0,ys.A)({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(QL);var JL=i.forwardRef((function(e,t){var r=e.active,n=void 0!==r&&r,o=e.alternativeLabel,s=e.children,a=e.classes,l=e.className,u=e.completed,c=void 0!==u&&u,d=e.connector,p=e.disabled,h=void 0!==p&&p,f=e.expanded,m=void 0!==f&&f,g=e.index,v=e.last,b=e.orientation,y=(0,gs.A)(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","expanded","index","last","orientation"]),x=d?i.cloneElement(d,{orientation:b,alternativeLabel:o,index:g,active:n,completed:c,disabled:h}):null,w=i.createElement("div",(0,Ft.A)({className:(0,vs.A)(a.root,a[b],l,o&&a.alternativeLabel,c&&a.completed),ref:t},y),x&&o&&0!==g?x:null,i.Children.map(s,(function(e){return i.isValidElement(e)?i.cloneElement(e,(0,Ft.A)({active:n,alternativeLabel:o,completed:c,disabled:h,expanded:m,last:v,icon:g+1,orientation:b},e.props)):null})));return x&&!o&&0!==g?i.createElement(i.Fragment,null,x,w):w}));const XL=(0,ys.A)({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(JL),YL=(0,_s.A)(i.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),ZL=(0,_s.A)(i.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var eF=r(299),tF=i.createElement("circle",{cx:"12",cy:"12",r:"12"}),rF=i.forwardRef((function(e,t){var r=e.completed,n=void 0!==r&&r,o=e.icon,s=e.active,a=void 0!==s&&s,l=e.error,u=void 0!==l&&l,c=e.classes;if("number"===typeof o||"string"===typeof o){var d=(0,vs.A)(c.root,a&&c.active,u&&c.error,n&&c.completed);return u?i.createElement(ZL,{className:d,ref:t}):n?i.createElement(YL,{className:d,ref:t}):i.createElement(eF.A,{className:d,ref:t},tF,i.createElement("text",{className:c.text,x:"12",y:"16",textAnchor:"middle"},o))}return o}));const nF=(0,ys.A)((function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$completed":{color:e.palette.primary.main},"&$active":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}}),{name:"MuiStepIcon"})(rF);var oF=i.forwardRef((function(e,t){var r=e.active,n=void 0!==r&&r,o=e.alternativeLabel,s=void 0!==o&&o,a=e.children,l=e.classes,u=e.className,c=e.completed,d=void 0!==c&&c,p=e.disabled,h=void 0!==p&&p,f=e.error,m=void 0!==f&&f,g=(e.expanded,e.icon),v=(e.last,e.optional),b=e.orientation,y=void 0===b?"horizontal":b,x=e.StepIconComponent,w=e.StepIconProps,_=(0,gs.A)(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","expanded","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),S=x;return g&&!S&&(S=nF),i.createElement("span",(0,Ft.A)({className:(0,vs.A)(l.root,l[y],u,h&&l.disabled,s&&l.alternativeLabel,m&&l.error),ref:t},_),g||S?i.createElement("span",{className:(0,vs.A)(l.iconContainer,s&&l.alternativeLabel)},i.createElement(S,(0,Ft.A)({completed:d,active:n,error:m,icon:g},w))):null,i.createElement("span",{className:l.labelContainer},a?i.createElement(RI,{variant:"body2",component:"span",display:"block",className:(0,vs.A)(l.label,s&&l.alternativeLabel,d&&l.completed,n&&l.active,m&&l.error)},a):null,v))}));oF.muiName="StepLabel";const iF=(0,ys.A)((function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}}),{name:"MuiStepLabel"})(oF);var sF=r(3806),aF="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,lF=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(aF&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var uF=aF&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),lF))}};function cF(e){return e&&"[object Function]"==={}.toString.call(e)}function dF(e,t){if(1!==e.nodeType)return[];var r=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?r[t]:r}function pF(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function hF(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=dF(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?e:hF(pF(e))}function fF(e){return e&&e.referenceNode?e.referenceNode:e}var mF=aF&&!(!window.MSInputMethodContext||!document.documentMode),gF=aF&&/MSIE 10/.test(navigator.userAgent);function vF(e){return 11===e?mF:10===e?gF:mF||gF}function bF(e){if(!e)return document.documentElement;for(var t=vF(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===dF(r,"position")?bF(r):r:e?e.ownerDocument.documentElement:document.documentElement}function yF(e){return null!==e.parentNode?yF(e.parentNode):e}function xF(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,o=r?t:e,i=document.createRange();i.setStart(n,0),i.setEnd(o,0);var s=i.commonAncestorContainer;if(e!==s&&t!==s||n.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||bF(e.firstElementChild)===e)}(s)?s:bF(s);var a=yF(e);return a.host?xF(a.host,t):xF(e,yF(t).host)}function wF(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var n=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||n)[t]}return e[t]}function _F(e,t){var r="x"===t?"Left":"Top",n="Left"===r?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function SF(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],vF(10)?parseInt(r["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function AF(e){var t=e.body,r=e.documentElement,n=vF(10)&&getComputedStyle(r);return{height:SF("Height",t,r,n),width:SF("Width",t,r,n)}}var CF=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),kF=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},EF=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};function RF(e){return EF({},e,{right:e.left+e.width,bottom:e.top+e.height})}function jF(e){var t={};try{if(vF(10)){t=e.getBoundingClientRect();var r=wF(e,"top"),n=wF(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch(Wz){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?AF(e.ownerDocument):{},s=i.width||e.clientWidth||o.width,a=i.height||e.clientHeight||o.height,l=e.offsetWidth-s,u=e.offsetHeight-a;if(l||u){var c=dF(e);l-=_F(c,"x"),u-=_F(c,"y"),o.width-=l,o.height-=u}return RF(o)}function OF(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=vF(10),o="HTML"===t.nodeName,i=jF(e),s=jF(t),a=hF(e),l=dF(t),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);r&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=RF({top:i.top-s.top-u,left:i.left-s.left-c,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!n&&o){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=u-p,d.bottom-=u-p,d.left-=c-h,d.right-=c-h,d.marginTop=p,d.marginLeft=h}return(n&&!r?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(d=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=wF(t,"top"),o=wF(t,"left"),i=r?-1:1;return e.top+=n*i,e.bottom+=n*i,e.left+=o*i,e.right+=o*i,e}(d,t)),d}function TF(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===dF(e,"position"))return!0;var r=pF(e);return!!r&&TF(r)}function IF(e){if(!e||!e.parentElement||vF())return document.documentElement;for(var t=e.parentElement;t&&"none"===dF(t,"transform");)t=t.parentElement;return t||document.documentElement}function PF(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},s=o?IF(e):xF(e,fF(t));if("viewport"===n)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.ownerDocument.documentElement,n=OF(e,r),o=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),s=t?0:wF(r),a=t?0:wF(r,"left");return RF({top:s-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:o,height:i})}(s,o);else{var a=void 0;"scrollParent"===n?"BODY"===(a=hF(pF(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===n?e.ownerDocument.documentElement:n;var l=OF(a,s,o);if("HTML"!==a.nodeName||TF(s))i=l;else{var u=AF(e.ownerDocument),c=u.height,d=u.width;i.top+=l.top-l.marginTop,i.bottom=c+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"===typeof(r=r||0);return i.left+=p?r:r.left||0,i.top+=p?r:r.top||0,i.right-=p?r:r.right||0,i.bottom-=p?r:r.bottom||0,i}function NF(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=PF(r,n,i,o),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map((function(e){return EF({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),u=l.filter((function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight})),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function MF(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return OF(r,n?IF(t):xF(t,fF(r)),n)}function DF(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),n=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+n,height:e.offsetHeight+r}}function LF(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function FF(e,t,r){r=r.split("-")[0];var n=DF(e),o={width:n.width,height:n.height},i=-1!==["right","left"].indexOf(r),s=i?"top":"left",a=i?"left":"top",l=i?"height":"width",u=i?"width":"height";return o[s]=t[s]+t[l]/2-n[l]/2,o[a]=r===a?t[a]-n[u]:t[LF(a)],o}function zF(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function BF(e,t,r){return(void 0===r?e:e.slice(0,function(e,t,r){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===r}));var n=zF(e,(function(e){return e[t]===r}));return e.indexOf(n)}(e,"name",r))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=e.function||e.fn;e.enabled&&cF(r)&&(t.offsets.popper=RF(t.offsets.popper),t.offsets.reference=RF(t.offsets.reference),t=r(t,e))})),t}function $F(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=MF(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=NF(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=FF(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=BF(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function HF(e,t){return e.some((function(e){var r=e.name;return e.enabled&&r===t}))}function UF(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var o=t[n],i=o?""+o+r:e;if("undefined"!==typeof document.body.style[i])return i}return null}function WF(){return this.state.isDestroyed=!0,HF(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[UF("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function VF(e){var t=e.ownerDocument;return t?t.defaultView:window}function qF(e,t,r,n){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,r,{passive:!0}),o||qF(hF(i.parentNode),t,r,n),n.push(i)}function GF(e,t,r,n){r.updateBound=n,VF(e).addEventListener("resize",r.updateBound,{passive:!0});var o=hF(e);return qF(o,"scroll",r.updateBound,r.scrollParents),r.scrollElement=o,r.eventsEnabled=!0,r}function QF(){this.state.eventsEnabled||(this.state=GF(this.reference,this.options,this.state,this.scheduleUpdate))}function KF(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,VF(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function JF(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function XF(e,t){Object.keys(t).forEach((function(r){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&JF(t[r])&&(n="px"),e.style[r]=t[r]+n}))}var YF=aF&&/Firefox/i.test(navigator.userAgent);function ZF(e,t,r){var n=zF(e,(function(e){return e.name===t})),o=!!n&&e.some((function(e){return e.name===r&&e.enabled&&e.order<n.order}));if(!o){var i="`"+t+"`",s="`"+r+"`";console.warn(s+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var ez=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],tz=ez.slice(3);function rz(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=tz.indexOf(e),n=tz.slice(r+1).concat(tz.slice(0,r));return t?n.reverse():n}var nz="flip",oz="clockwise",iz="counterclockwise";function sz(e,t,r,n){var o=[0,0],i=-1!==["right","left"].indexOf(n),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(zF(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return u=u.map((function(e,n){var o=(1===n?!i:i)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,r,n){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],s=o[2];if(!i)return e;if(0===s.indexOf("%")){return RF("%p"===s?r:n)[t]/100*i}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,r)}))})),u.forEach((function(e,t){e.forEach((function(r,n){JF(r)&&(o[t]+=r*("-"===e[n-1]?-1:1))}))})),o}var az={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var o=e.offsets,i=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(r),l=a?"left":"top",u=a?"width":"height",c={start:kF({},l,i[l]),end:kF({},l,i[l]+i[u]-s[u])};e.offsets.popper=EF({},s,c[n])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var r=t.offset,n=e.placement,o=e.offsets,i=o.popper,s=o.reference,a=n.split("-")[0],l=void 0;return l=JF(+r)?[+r,0]:sz(r,i,s,a),"left"===a?(i.top+=l[0],i.left-=l[1]):"right"===a?(i.top+=l[0],i.left+=l[1]):"top"===a?(i.left+=l[0],i.top-=l[1]):"bottom"===a&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var r=t.boundariesElement||bF(e.instance.popper);e.instance.reference===r&&(r=bF(r));var n=UF("transform"),o=e.instance.popper.style,i=o.top,s=o.left,a=o[n];o.top="",o.left="",o[n]="";var l=PF(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);o.top=i,o.left=s,o[n]=a,t.boundaries=l;var u=t.priority,c=e.offsets.popper,d={primary:function(e){var r=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(r=Math.max(c[e],l[e])),kF({},e,r)},secondary:function(e){var r="right"===e?"left":"top",n=c[r];return c[e]>l[e]&&!t.escapeWithReference&&(n=Math.min(c[r],l[e]-("right"===e?c.width:c.height))),kF({},r,n)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=EF({},c,d[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,r=t.popper,n=t.reference,o=e.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return r[a]<i(n[l])&&(e.offsets.popper[l]=i(n[l])-r[u]),r[l]>i(n[a])&&(e.offsets.popper[l]=i(n[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var r;if(!ZF(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"===typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,s=i.popper,a=i.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",c=l?"Top":"Left",d=c.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",f=DF(n)[u];a[h]-f<s[d]&&(e.offsets.popper[d]-=s[d]-(a[h]-f)),a[d]+f>s[h]&&(e.offsets.popper[d]+=a[d]+f-s[h]),e.offsets.popper=RF(e.offsets.popper);var m=a[d]+a[u]/2-f/2,g=dF(e.instance.popper),v=parseFloat(g["margin"+c]),b=parseFloat(g["border"+c+"Width"]),y=m-e.offsets.popper[d]-v-b;return y=Math.max(Math.min(s[u]-f,y),0),e.arrowElement=n,e.offsets.arrow=(kF(r={},d,Math.round(y)),kF(r,p,""),r),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(HF(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var r=PF(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],o=LF(n),i=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case nz:s=[n,o];break;case oz:s=rz(n);break;case iz:s=rz(n,!0);break;default:s=t.behavior}return s.forEach((function(a,l){if(n!==a||s.length===l+1)return e;n=e.placement.split("-")[0],o=LF(n);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,p="left"===n&&d(u.right)>d(c.left)||"right"===n&&d(u.left)<d(c.right)||"top"===n&&d(u.bottom)>d(c.top)||"bottom"===n&&d(u.top)<d(c.bottom),h=d(u.left)<d(r.left),f=d(u.right)>d(r.right),m=d(u.top)<d(r.top),g=d(u.bottom)>d(r.bottom),v="left"===n&&h||"right"===n&&f||"top"===n&&m||"bottom"===n&&g,b=-1!==["top","bottom"].indexOf(n),y=!!t.flipVariations&&(b&&"start"===i&&h||b&&"end"===i&&f||!b&&"start"===i&&m||!b&&"end"===i&&g),x=!!t.flipVariationsByContent&&(b&&"start"===i&&f||b&&"end"===i&&h||!b&&"start"===i&&g||!b&&"end"===i&&m),w=y||x;(p||v||w)&&(e.flipped=!0,(p||v)&&(n=s[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=n+(i?"-"+i:""),e.offsets.popper=EF({},e.offsets.popper,FF(e.instance.popper,e.offsets.reference,e.placement)),e=BF(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,o=n.popper,i=n.reference,s=-1!==["left","right"].indexOf(r),a=-1===["top","left"].indexOf(r);return o[s?"left":"top"]=i[r]-(a?o[s?"width":"height"]:0),e.placement=LF(t),e.offsets.popper=RF(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ZF(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=zF(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var r=t.x,n=t.y,o=e.offsets.popper,i=zF(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==i?i:t.gpuAcceleration,a=bF(e.instance.popper),l=jF(a),u={position:o.position},c=function(e,t){var r=e.offsets,n=r.popper,o=r.reference,i=Math.round,s=Math.floor,a=function(e){return e},l=i(o.width),u=i(n.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?c||d||l%2===u%2?i:s:a,h=t?i:a;return{left:p(l%2===1&&u%2===1&&!d&&t?n.left-1:n.left),top:h(n.top),bottom:h(n.bottom),right:p(n.right)}}(e,window.devicePixelRatio<2||!YF),d="bottom"===r?"top":"bottom",p="right"===n?"left":"right",h=UF("transform"),f=void 0,m=void 0;if(m="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-l.height+c.bottom:c.top,f="right"===p?"HTML"===a.nodeName?-a.clientWidth+c.right:-l.width+c.right:c.left,s&&h)u[h]="translate3d("+f+"px, "+m+"px, 0)",u[d]=0,u[p]=0,u.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===p?-1:1;u[d]=m*g,u[p]=f*v,u.willChange=d+", "+p}var b={"x-placement":e.placement};return e.attributes=EF({},b,e.attributes),e.styles=EF({},u,e.styles),e.arrowStyles=EF({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,r;return XF(e.instance.popper,e.styles),t=e.instance.popper,r=e.attributes,Object.keys(r).forEach((function(e){!1!==r[e]?t.setAttribute(e,r[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&XF(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,r,n,o){var i=MF(o,t,e,r.positionFixed),s=NF(r.placement,i,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",s),XF(t,{position:r.positionFixed?"fixed":"absolute"}),r},gpuAcceleration:void 0}}},lz=function(){function e(t,r){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=uF(this.update.bind(this)),this.options=EF({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(EF({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){n.options.modifiers[t]=EF({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return EF({name:e},n.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&cF(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return CF(e,[{key:"update",value:function(){return $F.call(this)}},{key:"destroy",value:function(){return WF.call(this)}},{key:"enableEventListeners",value:function(){return QF.call(this)}},{key:"disableEventListeners",value:function(){return KF.call(this)}}]),e}();lz.Utils=("undefined"!==typeof window?window:r.g).PopperUtils,lz.placements=ez,lz.Defaults=az;const uz=lz;function cz(e){return"function"===typeof e?e():e}var dz="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,pz={};const hz=i.forwardRef((function(e,t){var r=e.anchorEl,n=e.children,o=e.container,s=e.disablePortal,a=void 0!==s&&s,l=e.keepMounted,u=void 0!==l&&l,c=e.modifiers,d=e.open,p=e.placement,h=void 0===p?"bottom":p,f=e.popperOptions,m=void 0===f?pz:f,g=e.popperRef,v=e.style,b=e.transition,y=void 0!==b&&b,x=(0,gs.A)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=i.useRef(null),_=(0,Rs.A)(w,t),S=i.useRef(null),A=(0,Rs.A)(S,g),C=i.useRef(A);dz((function(){C.current=A}),[A]),i.useImperativeHandle(g,(function(){return S.current}),[]);var k=i.useState(!0),E=k[0],R=k[1],j=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,(0,Ul.A)()),O=i.useState(j),T=O[0],I=O[1];i.useEffect((function(){S.current&&S.current.update()}));var P=i.useCallback((function(){if(w.current&&r&&d){S.current&&(S.current.destroy(),C.current(null));var e=function(e){I(e.placement)},t=(cz(r),new uz(cz(r),w.current,(0,Ft.A)({placement:j},m,{modifiers:(0,Ft.A)({},a?{}:{preventOverflow:{boundariesElement:"window"}},c,m.modifiers),onCreate:(0,qj.A)(e,m.onCreate),onUpdate:(0,qj.A)(e,m.onUpdate)})));C.current(t)}}),[r,a,c,d,j,m]),N=i.useCallback((function(e){(0,Uj.A)(_,e),P()}),[_,P]),M=function(){S.current&&(S.current.destroy(),C.current(null))};if(i.useEffect((function(){return function(){M()}}),[]),i.useEffect((function(){d||y||M()}),[d,y]),!u&&!d&&(!y||E))return null;var D={placement:T};return y&&(D.TransitionProps={in:d,onEnter:function(){R(!1)},onExited:function(){R(!0),M()}}),i.createElement(Vj,{disablePortal:a,container:o},i.createElement("div",(0,Ft.A)({ref:N,role:"tooltip"},x,{style:(0,Ft.A)({position:"fixed",top:0,left:0,display:d||!u||y?null:"none"},v)}),"function"===typeof n?n(D):n))}));var fz=r(2237);function mz(e){return Math.round(1e5*e)/1e5}var gz=!1,vz=null;var bz=i.forwardRef((function(e,t){var r=e.arrow,o=void 0!==r&&r,s=e.children,a=e.classes,l=e.disableFocusListener,u=void 0!==l&&l,c=e.disableHoverListener,d=void 0!==c&&c,p=e.disableTouchListener,h=void 0!==p&&p,f=e.enterDelay,m=void 0===f?100:f,g=e.enterNextDelay,v=void 0===g?0:g,b=e.enterTouchDelay,y=void 0===b?700:b,x=e.id,w=e.interactive,_=void 0!==w&&w,S=e.leaveDelay,A=void 0===S?0:S,C=e.leaveTouchDelay,k=void 0===C?1500:C,E=e.onClose,R=e.onOpen,j=e.open,O=e.placement,T=void 0===O?"bottom":O,I=e.PopperComponent,P=void 0===I?hz:I,N=e.PopperProps,M=e.title,D=e.TransitionComponent,L=void 0===D?gP:D,F=e.TransitionProps,z=(0,gs.A)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),B=Vl(),$=i.useState(),H=$[0],U=$[1],W=i.useState(null),V=W[0],q=W[1],G=i.useRef(!1),Q=i.useRef(),K=i.useRef(),J=i.useRef(),X=i.useRef(),Y=(0,NT.A)({controlled:j,default:!1,name:"Tooltip",state:"open"}),Z=(0,et.A)(Y,2),ee=Z[0],te=Z[1],re=ee,ne=(0,fz.A)(x);i.useEffect((function(){return function(){clearTimeout(Q.current),clearTimeout(K.current),clearTimeout(J.current),clearTimeout(X.current)}}),[]);var oe=function(e){clearTimeout(vz),gz=!0,te(!0),R&&R(e)},ie=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var r=s.props;"mouseover"===t.type&&r.onMouseOver&&e&&r.onMouseOver(t),G.current&&"touchstart"!==t.type||(H&&H.removeAttribute("title"),clearTimeout(K.current),clearTimeout(J.current),m||gz&&v?(t.persist(),K.current=setTimeout((function(){oe(t)}),gz?v:m)):oe(t))}},se=(0,Os.A)(),ae=se.isFocusVisible,le=se.onBlurVisible,ue=se.ref,ce=i.useState(!1),de=ce[0],pe=ce[1],he=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){H||U(t.currentTarget),ae(t)&&(pe(!0),ie()(t));var r=s.props;r.onFocus&&e&&r.onFocus(t)}},fe=function(e){clearTimeout(vz),vz=setTimeout((function(){gz=!1}),800+A),te(!1),E&&E(e),clearTimeout(Q.current),Q.current=setTimeout((function(){G.current=!1}),B.transitions.duration.shortest)},me=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var r=s.props;"blur"===t.type&&(r.onBlur&&e&&r.onBlur(t),de&&(pe(!1),le())),"mouseleave"===t.type&&r.onMouseLeave&&t.currentTarget===H&&r.onMouseLeave(t),clearTimeout(K.current),clearTimeout(J.current),t.persist(),J.current=setTimeout((function(){fe(t)}),A)}},ge=function(e){G.current=!0;var t=s.props;t.onTouchStart&&t.onTouchStart(e)},ve=(0,Rs.A)(U,t),be=(0,Rs.A)(ue,ve),ye=i.useCallback((function(e){(0,Uj.A)(be,n.findDOMNode(e))}),[be]),xe=(0,Rs.A)(s.ref,ye);""===M&&(re=!1);var we=!re&&!d,_e=(0,Ft.A)({"aria-describedby":re?ne:null,title:we&&"string"===typeof M?M:null},z,s.props,{className:(0,vs.A)(z.className,s.props.className),onTouchStart:ge,ref:xe}),Se={};h||(_e.onTouchStart=function(e){ge(e),clearTimeout(J.current),clearTimeout(Q.current),clearTimeout(X.current),e.persist(),X.current=setTimeout((function(){ie()(e)}),y)},_e.onTouchEnd=function(e){s.props.onTouchEnd&&s.props.onTouchEnd(e),clearTimeout(X.current),clearTimeout(J.current),e.persist(),J.current=setTimeout((function(){fe(e)}),k)}),d||(_e.onMouseOver=ie(),_e.onMouseLeave=me(),_&&(Se.onMouseOver=ie(!1),Se.onMouseLeave=me(!1))),u||(_e.onFocus=he(),_e.onBlur=me(),_&&(Se.onFocus=he(!1),Se.onBlur=me(!1)));var Ae=i.useMemo((function(){return(0,sF.A)({popperOptions:{modifiers:{arrow:{enabled:Boolean(V),element:V}}}},N)}),[V,N]);return i.createElement(i.Fragment,null,i.cloneElement(s,_e),i.createElement(P,(0,Ft.A)({className:(0,vs.A)(a.popper,_&&a.popperInteractive,o&&a.popperArrow),placement:T,anchorEl:H,open:!!H&&re,id:_e["aria-describedby"],transition:!0},Se,Ae),(function(e){var t=e.placement,r=e.TransitionProps;return i.createElement(L,(0,Ft.A)({timeout:B.transitions.duration.shorter},r,F),i.createElement("div",{className:(0,vs.A)(a.tooltip,a["tooltipPlacement".concat((0,Fs.A)(t.split("-")[0]))],G.current&&a.touch,o&&a.tooltipArrow)},M,o?i.createElement("span",{className:a.arrow,ref:q}):null))})))}));const yz=(0,ys.A)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,bs.X4)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(mz(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,bs.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(mz(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,Bj.A)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,Bj.A)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,Bj.A)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,Bj.A)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(bz);var xz=r(97),wz=r(2870),_z=r(3536),Sz=r.n(_z),Az=function(e,t){return Az=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Az(e,t)};function Cz(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Az(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function kz(e){return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",viewBox:"0 0 512 512"},i.createElement("path",{fill:e.color,d:"M504.1 256C504.1 119 393 7.9 256 7.9S7.9 119 7.9 256 119 504.1 256 504.1 504.1 393 504.1 256z"}),i.createElement("path",{fill:"#FFF",d:"M285 256l72.5-84.2c7.9-9.2 6.9-23-2.3-31-9.2-7.9-23-6.9-30.9 2.3L256 222.4l-68.2-79.2c-7.9-9.2-21.8-10.2-31-2.3-9.2 7.9-10.2 21.8-2.3 31L227 256l-72.5 84.2c-7.9 9.2-6.9 23 2.3 31 4.1 3.6 9.2 5.3 14.3 5.3 6.2 0 12.3-2.6 16.6-7.6l68.2-79.2 68.2 79.2c4.3 5 10.5 7.6 16.6 7.6 5.1 0 10.2-1.7 14.3-5.3 9.2-7.9 10.2-21.8 2.3-31L285 256z"}))}var Ez={progressBar:{borderRadius:3,boxShadow:"inset 0 1px 3px rgba(0, 0, 0, .2)",bottom:14,position:"absolute",width:"80%"},buttonProgressBar:{position:"inherit",width:"100%"},progressBarFill:{backgroundColor:"#659cef",borderRadius:3,height:10,transition:"width 500ms ease-in-out"}},Rz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cz(t,e),t.prototype.render=function(){var e=this.props,t=e.style,r=e.progressBar,n=e.displayProgressBarStatus,o=e.isButtonProgressBar;return i.createElement("div",{style:Object.assign({},Ez.progressBar,o&&Ez.buttonProgressBar)},i.createElement("span",{style:Object.assign({},Ez.progressBarFill,t,{width:"".concat(r,"%"),display:n})}))},t}(i.Component),jz={dropArea:{alignItems:"center",borderStyle:"dashed",borderWidth:2,borderRadius:20,borderColor:"#CCC",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",padding:20},dropAreaDefaultBorderColor:{borderColor:"#CCC"},inputFile:{display:"none"},highlight:{borderColor:"#686868"},unhighlight:{borderColor:"#CCC"},dropFile:{background:"linear-gradient(to bottom, #EEE, #DDD)",borderRadius:20,display:"block",height:120,width:100,paddingLeft:10,paddingRight:10,position:"relative",zIndex:10},column:{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},fileSizeInfo:{backgroundColor:"rgba(255, 255, 255, 0.4)",borderRadius:3,lineHeight:1,marginBottom:"0.5em",padding:"0 0.4em"},fileNameInfo:{backgroundColor:"rgba(255, 255, 255, 0.4)",borderRadius:3,fontSize:14,lineHeight:1,padding:"0 0.4em"},defaultCursor:{cursor:"default"},pointerCursor:{cursor:"pointer"},dropFileRemoveButton:{height:23,position:"absolute",right:6,top:6,width:23}};(function(e){function t(){var t,r,n,o,s,a,l,u,c,d=e.apply(this,arguments)||this;return d.inputFileRef=i.createRef(),d.dropAreaRef=i.createRef(),d.fileSizeInfoRef=i.createRef(),d.fileNameInfoRef=i.createRef(),d.REMOVE_ICON_COLOR=d.props.removeButtonColor||(null===(o=null===(n=null===(r=null===(t=d.props.style)||void 0===t?void 0:t.dropArea)||void 0===r?void 0:r.dropFile)||void 0===n?void 0:n.removeButton)||void 0===o?void 0:o.color)||(null===(l=null===(a=null===(s=d.props.style)||void 0===s?void 0:s.dropFile)||void 0===a?void 0:a.removeButton)||void 0===l?void 0:l.color)||(null===(c=null===(u=d.props.style)||void 0===u?void 0:u.removeButton)||void 0===c?void 0:c.color)||"#A01919",d.REMOVE_ICON_COLOR_LIGHT=function(e,t){var r=!1;"#"==e[0]&&(e=e.slice(1),r=!0);var n=parseInt(e,16),o=(n>>16)+t;o>255?o=255:o<0&&(o=0);var i=(n>>8&255)+t;i>255?i=255:i<0&&(i=0);var s=(255&n)+t;return s>255?s=255:s<0&&(s=0),(r?"#":"")+(s|i<<8|o<<16).toString(16)}(d.REMOVE_ICON_COLOR,40),d.state={dropAreaCustom:{},progressBar:0,displayProgressBarStatus:"none",file:null,timeout:null,files:null,removeIconColor:d.REMOVE_ICON_COLOR,isCanceled:!1},d.componentDidUpdate=function(e){d.props.isReset!==e.isReset&&d.removeFile()},d.componentDidMount=function(){var e=d.dropAreaRef.current;e&&(["dragenter","dragover","dragleave","drop"].forEach((function(t){e.addEventListener(t,d.preventDefaults,!1)})),d.props.noDrag||(["dragenter","dragover"].forEach((function(t){e.addEventListener(t,d.highlight,!1)})),e.addEventListener("dragleave",d.unhighlight,!1),e.addEventListener("drop",d.unhighlight,!1),e.addEventListener("drop",d.visibleProgressBar,!1),e.addEventListener("drop",d.handleDrop,!1)))},d.componentWillUnmount=function(){var e=d.dropAreaRef.current;["dragenter","dragover","dragleave","drop"].forEach((function(t){e.removeEventListener(t,d.preventDefaults,!1)})),d.props.noDrag||(["dragenter","dragover"].forEach((function(t){e.removeEventListener(t,d.highlight,!1)})),e.removeEventListener("dragleave",d.unhighlight,!1),e.removeEventListener("drop",d.unhighlight,!1),e.removeEventListener("drop",d.visibleProgressBar,!1),e.removeEventListener("drop",d.handleDrop,!1))},d.preventDefaults=function(e){e.preventDefault(),e.stopPropagation()},d.highlight=function(){var e,t,r,n,o=d.props.style;d.setState({dropAreaCustom:Object.assign({},(null==o?void 0:o.dropAreaActive)?(null==o?void 0:o.dropAreaActive.borderColor)?null==o?void 0:o.dropAreaActive:Object.assign({},null==o?void 0:o.dropAreaActive,jz.highlight):(null===(e=null==o?void 0:o.dropArea)||void 0===e?void 0:e.dropAreaActive)?(null===(t=null==o?void 0:o.dropArea)||void 0===t?void 0:t.dropAreaActive.borderColor)?null===(r=null==o?void 0:o.dropArea)||void 0===r?void 0:r.dropAreaActive:Object.assign({},null===(n=null==o?void 0:o.dropArea)||void 0===n?void 0:n.dropAreaActive,jz.highlight):jz.highlight)}),d.setState({progressBar:0})},d.unhighlight=function(){var e,t;d.setState({dropAreaCustom:Object.assign({},(null===(t=null===(e=d.props.style)||void 0===e?void 0:e.dropArea)||void 0===t?void 0:t.borderColor)?{}:jz.dropAreaDefaultBorderColor)})},d.visibleProgressBar=function(){d.props.noProgressBar||d.setState({displayProgressBarStatus:"block"})},d.handleDrop=function(e){var t=null,r=!1;0===(t=void 0===e.files?e.dataTransfer.files:e.files).length&&(t=d.state.files,r=!0),d.setState({files:t,isCanceled:r},(function(){d.handleFiles()}))},d.handleFiles=function(){d.setState({progressBar:0}),function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}([],d.state.files).forEach(d.uploadFile)},d.uploadFile=function(e){d.displayFileInfo(e),d.setState({file:e});var t=d.props,r=t.onDrop,n=t.onFileLoad,o=t.onError,i=t.config,s=void 0===i?{}:i,a=new window.FileReader,l={},u=e.size,c=[],p=0;if(r||n){var h=d;l=Object.assign({complete:(null==s?void 0:s.complete)||(null==s?void 0:s.step)?s.complete:function(){!r&&n?n(c,e):r&&!n&&r(c,e)},step:(null==s?void 0:s.step)?s.step:function(t){if(c.push(t),s&&s.preview)p=Math.round(c.length/s.preview*100),h.setState({progressBar:p}),c.length===s.preview&&(!r&&n?n(c,e):r&&!n&&r(c,e));else{var o=t.meta.cursor,i=Math.round(o/u*100);if(i===p)return;p=i}h.setState({progressBar:p})}},l)}o&&(l=Object.assign({error:o},l)),s&&(l=Object.assign({},s,l)),a.onload=function(e){KM().parse(e.target.result,l)},d.props.noProgressBar||(a.onloadend=function(){clearTimeout(d.state.timeout),d.setState({timeout:setTimeout((function(){d.disableProgressBar()}),2e3)})}),a.readAsText(e,s.encoding||"utf-8")},d.displayFileInfo=function(e){d.childrenIsFunction()||(d.fileSizeInfoRef.current.innerHTML=function(e){var t=1048576,r=1073741824;if(e<t){var n=Number((e/1024).toFixed(0));return n<=0?e+" B":n+" KB"}return e<r?(e/t).toFixed(0)+" MB":e<1099511627776?(e/r).toFixed(0)+" GB":""}(e.size),d.fileNameInfoRef.current.innerHTML=e.name)},d.disableProgressBar=function(){d.props.noProgressBar||d.setState({displayProgressBarStatus:"none"})},d.childrenIsFunction=function(){return"function"==typeof d.props.children},d.fileChange=function(e){var t=e.target;d.props.noProgressBar?d.handleDrop(t):d.setState({displayProgressBarStatus:"block"},(function(){d.handleDrop(t)}))},d.open=function(e){var t=d.state.displayProgressBarStatus;e&&"none"===t&&(d.preventDefaults(e),d.inputFileRef.current.value=null,d.inputFileRef.current.click())},d.renderChildren=function(){var e=d.props.children,t=d.state,r=t.file,n=t.progressBar;return d.childrenIsFunction()?e({file:r,progressBar:n}):e},d.handleRemoveFile=function(e){e&&(e.stopPropagation(),d.removeFile())},d.removeFile=function(){d.setState({files:null,file:null});var e=d.props.onRemoveFile;e&&e(null),d.inputFileRef.current.value=null},d.changeRemoveIconColor=function(e){e&&d.setState({removeIconColor:e})},d.renderDropFileRemoveButton=function(){var e=d.props.addRemoveButton,t=d.state,r=t.removeIconColor,n=t.displayProgressBarStatus;return e&&"none"===n?i.createElement("div",{style:jz.dropFileRemoveButton,onClick:function(e){return d.handleRemoveFile(e)},onMouseOver:function(){return d.changeRemoveIconColor(d.REMOVE_ICON_COLOR_LIGHT)},onMouseOut:function(){return d.changeRemoveIconColor(d.REMOVE_ICON_COLOR)}},i.createElement(kz,{color:r})):e?i.createElement("div",{style:jz.dropFileRemoveButton},i.createElement(kz,{color:d.REMOVE_ICON_COLOR})):null},d}Cz(t,e),t.prototype.render=function(){var e,t,r,n,o,s,a,l,u,c,d,p,h,f=this,m=this.props,g=m.style,v=m.noClick,b=m.children,y=m.noProgressBar,x=m.progressBarColor,w=m.accept,_=this.state,S=_.dropAreaCustom,A=_.files,C=_.isCanceled,k=_.progressBar,E=_.displayProgressBarStatus;return i.createElement(i.Fragment,null,i.createElement("input",{type:"file",accept:w||"text/csv, .csv, application/vnd.ms-excel",ref:this.inputFileRef,style:jz.inputFile,onChange:function(e){return f.fileChange(e)}}),this.childrenIsFunction()?i.createElement("div",{ref:this.dropAreaRef},this.renderChildren(),A&&A.length>0&&!C&&!y&&i.createElement(Rz,{style:Object.assign({},x?{backgroundColor:x}:{},(null===(p=null===(d=null==g?void 0:g.dropArea)||void 0===d?void 0:d.dropFile)||void 0===p?void 0:p.progressBar)||(null===(h=null==g?void 0:g.dropFile)||void 0===h?void 0:h.progressBar)||(null==g?void 0:g.progressBar)),progressBar:k,displayProgressBarStatus:E,isButtonProgressBar:!0})):i.createElement("div",{ref:this.dropAreaRef,style:Object.assign({},jz.dropArea,null==g?void 0:g.dropArea,S,void 0!==v||"block"===E?jz.defaultCursor:jz.pointerCursor),onClick:function(e){v||f.open(e)}},A&&A.length>0?i.createElement("div",{style:Object.assign({},jz.dropFile,jz.column,(null===(e=null==g?void 0:g.dropArea)||void 0===e?void 0:e.dropFile)||(null==g?void 0:g.dropFile))},this.renderDropFileRemoveButton(),i.createElement("div",{style:jz.column},i.createElement("span",{style:Object.assign({},jz.fileSizeInfo,(null===(r=null===(t=null==g?void 0:g.dropArea)||void 0===t?void 0:t.dropFile)||void 0===r?void 0:r.fileSizeInfo)||(null===(n=null==g?void 0:g.dropArea)||void 0===n?void 0:n.fileSizeInfo)||(null==g?void 0:g.fileSizeInfo)),ref:this.fileSizeInfoRef}),i.createElement("span",{style:Object.assign({},jz.fileNameInfo,(null===(s=null===(o=null==g?void 0:g.dropArea)||void 0===o?void 0:o.dropFile)||void 0===s?void 0:s.fileNameInfo)||(null===(a=null==g?void 0:g.dropFile)||void 0===a?void 0:a.fileNameInfo)||(null==g?void 0:g.fileNameInfo)),ref:this.fileNameInfoRef})),A&&A.length>0&&!C&&!y&&i.createElement(Rz,{style:Object.assign({},x?{backgroundColor:x}:{},(null===(u=null===(l=null==g?void 0:g.dropArea)||void 0===l?void 0:l.dropFile)||void 0===u?void 0:u.progressBar)||(null===(c=null==g?void 0:g.dropFile)||void 0===c?void 0:c.progressBar)||(null==g?void 0:g.progressBar)),progressBar:k,displayProgressBarStatus:E})):b))},t.defaultProps={isReset:!1}})(i.Component),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.download=function(e,t,r,n){var o,i,s=r?"\ufeff":"";"function"==typeof e&&(e=e()),o="object"==typeof e?KM().unparse(e,n):e;var a=new Blob(["".concat(s).concat(o)],{type:"text/csv;charset=utf-8;"}),l=window.navigator;i=l.msSaveBlob?l.msSaveBlob(a,"".concat(t,".csv")):window.URL.createObjectURL(a);var u=document.createElement("a");u.href=i,u.setAttribute("download","".concat(t,".csv")),u.click(),u.remove()},t}Cz(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.children,n=t.data,o=t.filename,s=t.type,a=t.className,l=t.style,u=t.bom,c=void 0!==u&&u,d=t.config,p=void 0===d?{}:d;return"link"===s?i.createElement("a",{onClick:function(){return e.download(n,o,c,p)},className:a,style:l},r):i.createElement("button",{onClick:function(){return e.download(n,o,c,p)},className:a,style:l},r)},t.defaultProps={type:"link"}}(i.Component);KM().BAD_DELIMITERS,KM().RECORD_SEP,KM().UNIT_SEP,KM().WORKERS_SUPPORTED,KM().LocalChunkSize,KM().DefaultDelimiter;var Oz=r(2378);const Tz=ur({defaultClassName:(0,Vt.A)("MuiBox",["root"]).root,generateClassName:cr.A.generate});var Iz=i.forwardRef((function(e,t){var r=e.classes,n=e.className,o=e.color,s=void 0===o?"primary":o,a=e.component,l=void 0===a?"a":a,u=e.onBlur,c=e.onFocus,d=e.TypographyClasses,p=e.underline,h=void 0===p?"hover":p,f=e.variant,m=void 0===f?"inherit":f,g=(0,gs.A)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),v=(0,Os.A)(),b=v.isFocusVisible,y=v.onBlurVisible,x=v.ref,w=i.useState(!1),_=w[0],S=w[1],A=(0,Rs.A)(t,x);return i.createElement(RI,(0,Ft.A)({className:(0,vs.A)(r.root,r["underline".concat((0,Fs.A)(h))],n,_&&r.focusVisible,"button"===l&&r.button),classes:d,color:s,component:l,onBlur:function(e){_&&(y(),S(!1)),u&&u(e)},onFocus:function(e){b(e)&&S(!0),c&&c(e)},ref:A,variant:m},g))}));const Pz=(0,ys.A)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(Iz);class Nz extends i.Component{constructor(e){super(e),this.handleOnError=(e,t,r,n)=>{console.log(e)},this.handleErrorCompiling=e=>{var t,r=[];if(t=e.error&&e.error.response&&e.error.response.data?e.error.response.data.data:e.data?e.data:e)for(var[n,o]of Object.entries(t)){o.error&&(o=o.error),console.log("ROW __________________",`${n}: ${o}`);var i=o.toString(),s={};if(i.includes("Row Number")){var a=i.replace("Row Number: ",""),l=a.substr(0,a.indexOf("."));s.row=l;var u=i.slice(i.indexOf(".")+1);s.message=u,r.push(s)}else s.row="N/A",s.message=o,r.push(s)}console.debug("errors",r),this.setState({errorSet:r})},this.handleNext=()=>{var e=this.state.activeStep+1;this.setState({activeStep:e})},this.handleBack=()=>{var e=this.state.activeStep-1;this.setState({activeStep:e,error_status:!1,success_status:!1})},this.handleReset=()=>{window.location.reload()},this.handleGroupSelect=e=>{this.setState({group_uuid:e.target.value})},this.handleFileMake=e=>{var t=[];return"samples"===this.props.bulkType.toLowerCase()?t=["hubmap_id","lab_tissue_sample_id","sample_category","organ_type","protocol_url","description"]:"donors"===this.props.bulkType.toLowerCase()&&(t=["hubmap_id","label","lab_donor_id","protocol_url","description"]),(0,Ne.jsx)(Oz.CSVLink,{style:{float:"right",padding:"12px"},headers:t,data:this.state.uploadedSources,children:(0,Ne.jsx)(HE,{variant:"outlined",startIcon:(0,Ne.jsx)(UL.A,{}),children:"Download These Results"})})},this.handleFileGrab=e=>{var t=e.target.files[0],r=t.name.replace(/ /g,"_"),n=new File([t],r);n&&n.name.length>0?this.setState({tsvFile:n},(()=>{this.handleNext()})):console.debug("No Data??")},this.handleUpload=()=>{if(this.setState({loading:!0,uploadTimer:"00:00"}),(!this.state.group_uuid||this.state.group_uuid.length<=0)&&this.setState({group_uuid:this.state.groups[0].uuid}),null!==localStorage.getItem("info")){(new FormData).append("file",this.state.tsvFile),function(e,t){console.debug("Starting Data: ",t),console.debug("Going to : ",e);var r=new(Lc());r.append("file",t);const n={headers:{Authorization:"Bearer "+Fc,"Content-Type":"multipart/form-data"},onUploadProgress:e=>{const t=e.loaded/e.total*100;console.debug("prog",Math.round(t))}};let o=`https://ingest.api.hubmapconsortium.org/${e.toLowerCase()}/bulk-upload`;return _u().post(o,r,n).then((e=>{console.debug("ingest_api_bulk_entities",e);let t=e.data;return console.debug("results",t),t[0]&&console.debug("results DATA ",t[0]),{status:e.status,results:t}})).catch((e=>({error:e})))}(this.props.bulkType,this.state.tsvFile,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{var t;(e.results&&e.results.temp_id,201===e.status)?(this.setState({success_status:!0,success_message:this.props.bulkType+"Uploaded Successfully",loading:!1,bulkFileID:e.results.temp_id}),this.parseUpload(),this.handleNext()):(t=e.results&&e.results.data?Oc(e.results.data):e,this.handleErrorCompiling(t),this.setState({error_status:!0,submit_error:!0,submitting:!1}),this.setState({loading:!1},(()=>{})))})).catch((e=>{console.debug("handleUpload ERROR",e),this.setState({submit_error:e,error_status:!0,error_message_detail:Oc(e),error_message:"Error"}),console.debug("SUBMIT error",e),this.setState({loading:!1})}))}else this.setState({submit_error:"TokenExpired",error_status:!0,error_message_detail:"Please log in again",error_message:"Token Expired"}),console.debug("SUBMIT error","Login Expired"),this.setState({loading:!1})},this.handleRegister=()=>{if(this.setState({loading:!0,uploadTimer:"00:00"}),null!==localStorage.getItem("info")){var e={temp_id:this.state.bulkFileID,group_uuid:this.state.group_uuid};try{(function(e,t){console.debug("Starting Data: ",t);const r={headers:{Authorization:"Bearer "+Fc,"Content-Type":"application/json"},onUploadProgress:e=>{const t=e.loaded/e.total*100;console.debug("prog",Math.round(t))}};let n=`https://ingest.api.hubmapconsortium.org/${e.toLowerCase()}/bulk`;return console.debug("URL: ",n,"\n DATA",t,"\n OPTS",r),_u().post(n,t,r).then((e=>{console.debug("%c\u2b57 INGESTAPI BULK RES: ","color:#FF00FF",e);let t=e.data;return{status:e.status,results:t}})).catch((e=>e))})(this.props.bulkType,e,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{var t;if(t=e.response?e.response:e.error&&e.error.response?e.error.response:e,e.status&&201===e.status&&e.results){var r=e.results.data;console.debug("respData",r);var n=[];for(var[o,i]of Object.entries(r))console.debug("value",i),n.push(i);let t=Sz().map(r,((e,t)=>({prop:t,value:e})));this.setState({error_status:!1,loading:!1,uploadedSources:n,complete:!0,registeredStatus:!0},(()=>{console.debug("%c\u2299Shoukd be good to map?: ","color:#00ff7b",t)}))}else if(e.response&&e.response.status&&504===e.response.status||e.error&&e.error.response&&504===e.error.response.status)console.debug("%c\u2299504","color:#ff005d"),this.parseRegErrorFrame(e);else if(e.response&&e.response.status&&500===e.response.status||e.error&&e.error.response&&500===e.error.response.status){console.debug("%c\u2299500","color:#ff005d");var s={status:t.data.status,data:t.data.data};this.setState({error_status:!0,alertStatus:"error",error_message:"Regsitsration Faiure",error_message_detail:s.status,loading:!1,uploadedSources:s.data,complete:!1,registeredStatus:!1},(()=>{this.handleErrorCompiling(s)}))}else if(e.results&&e.results.data&&207===e.status){console.debug("%c\u2299207","color:#f4d006");var a=Object.values(e.results.data),l=a.filter((e=>e.error)),u=a.filter((e=>!e.error));this.setState({mixed_status:!0,alertStatus:"mixed",mixed_message:"Partial Regsitsration Success",loading:!1,uploadedSources:u,errorSet:l,complete:!0,registeredStatus:!0},(()=>{}))}else this.props.reportError(e)})).catch((e=>{console.debug(e.stack),this.setState({submit_error:e,error_status:!0,error_message_detail:Oc(e),loading:!1,error_message:"Error"})}))}catch(t){this.setState({submit_error:t,error_status:!0,error_message_detail:Oc(t),error_message:"Error"}),console.debug("SUBMIT error",t),this.setState({loading:!1})}}},this.parseRegErrorFrame=e=>{var t;if(e.results&&e.results.data&&e.results.data.data)t=Oc(e.results.data.data);else if(e.results&&e.results.data)t=Oc(e.results.data);else if(e.results&&e.results.data)t=Oc(e.results.data);else if(e.status&&e.data)t=Oc(e.data);else{let n={};n=e.err&&e.err.response.data?e.err.response.data:e.error&&e.error.response.data?e.error.response.data:(e.data,e);n.map((e=>e.message));var r=n.status;t=e}this.handleErrorCompiling(t),this.setState({error_status:!0,submit_error:!0,error_message:r,success_message:null,submitting:!1,response_status:e.Error}),console.debug("DEBUG",this.state.error_message_detail),this.setState({loading:!1},(()=>{}))},this.parseUpload=()=>{var e,t,r={header:!0,skipEmptyLines:!0,complete:this.parseResults},n=(e=this.state.tsvFile,t=r,KM().parse(e,t));this.setState({parsedData:n})},this.parseResults=e=>{console.debug("results",e.data);var t=e.data.length,r=Math.ceil(t/40);console.debug("rowCount",t),t>40?this.setState({rowLimitClass:"rowLimitError",submit_error:"Row Limit Exceeded",loading:!1,error_status:!0,error_message_detail:"Row Limit Exceeded",error_message:"40 row limit exceeded (total rows:"+t+"). Please split your data across multiple files (est "+r+" files)",error_message_extended:"40 row limit exceeded (total rows:"+t+"). Please split your data across multiple files (est "+r+" files) "}):this.setState({uploadedSources:e.data,finalTableReady:!0})},this.getStepContent=e=>{switch(e){case 0:return this.renderFileGrabber();case 1:return this.renderUploadSlide();case 2:return this.renderRegisterSlide();default:return"Unknown step"}},this.renderStatusButon=e=>this.state.loading?(0,Ne.jsx)(bo,{icon:Bo,className:"m-1",spin:!0}):e,this.renderErrorNuance=()=>{if(this.state.mixed_status)return(0,Ne.jsx)("strong",{className:"text-dange",children:"Some"})},this.renderFileGrabber=()=>(0,Ne.jsx)("div",{className:"text-center",children:(0,Ne.jsx)("label",{children:(0,Ne.jsx)("input",{accept:".tsv, .csv",type:"file",id:"FileUploader",name:"file",onChange:this.handleFileGrab})})}),this.makeRegistered=()=>{this.setState({validation:!0})},this.renderUploadSlide=()=>(0,Ne.jsxs)("div",{className:"d-flex upload-slide-results flex-row justify-content-center",children:[!1===this.state.error_status&&(0,Ne.jsx)("div",{className:"",children:(0,Ne.jsxs)("div",{className:"text-left",children:[(0,Ne.jsxs)("h4",{children:[" ",(0,Ne.jsx)(xz.A,{style:{fontSize:"4em"}})," ",this.state.tsvFile.name," ",(0,Ne.jsx)("small",{children:(0,Ne.jsxs)("em",{children:["(",wz(this.state.tsvFile.size),")"]})})]}),this.renderGroupSelect()]})}),this.state.error_status&&!this.state.loading&&(0,Ne.jsx)("div",{className:"col-7",children:this.renderInvalidTable()}),(0,Ne.jsxs)("div",{className:"col-3",children:[!1===this.state.error_status&&(0,Ne.jsx)(HE,{onClick:()=>this.handleUpload(),className:"btn-lg btn-block",style:{padding:"12px"},variant:"contained",color:"primary",children:this.renderStatusButon("Upload")}),this.state.tsvFile.size>0&&!this.state.error_status&&!this.state.loading&&(0,Ne.jsx)(HE,{onClick:()=>this.handleBack(),className:"btn-lg btn-block",style:{padding:"12px"},variant:"text",color:"primary",children:"Replace"}),!0===this.state.loading&&this.state.tsvFile.size>0&&(0,Ne.jsx)("div",{className:"mt-1",children:(0,Ne.jsx)(RI,{children:" Process may take a few minutes. Do not leave or refresh this page. "})}),!0===this.state.error_status&&(0,Ne.jsxs)("div",{className:"mx-2",children:[(0,Ne.jsx)(RI,{color:"error",children:this.state.error_message_detail}),(0,Ne.jsxs)(RI,{variant:"caption",color:"error",children:["There were some problems Registering your data. ",(0,Ne.jsx)("br",{}),"Please review & resubmit."]}),(0,Ne.jsx)("div",{className:"row",children:(0,Ne.jsx)(HE,{onClick:()=>this.handleReset(),className:"btn-lg btn-block m-0",style:{padding:"12px",float:"right"},variant:"contained",color:"error",children:"Restart"})})]})]})]}),this.renderRegisterSlide=()=>(0,Ne.jsxs)("div",{children:[(0,Ne.jsxs)("div",{className:"row",children:[this.state.error_status&&!this.state.loading&&(0,Ne.jsx)("div",{children:this.renderInvalidTable()}),this.state.mixed_status&&!this.state.loading&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsxs)("div",{className:"mb-5",children:[(0,Ne.jsxs)(RI,{variant:"h5",gutterBottom:!0,children:[(0,Ne.jsx)(bo,{icon:Uo,sx:{padding:1}}),"  Some Rows Failed to Register!"]}),(0,Ne.jsx)(RI,{variant:"body1",className:"",children:" Some rows failed to process. Please Review the table below & resubmit these entries."}),this.renderMixedSuccess()]}),(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(RI,{variant:"h5",gutterBottom:!0,children:"The following rows were registered successfully!"}),this.renderPreviewTable(),this.state.complete&&(0,Ne.jsx)(Ne.Fragment,{children:this.handleFileMake()})]})]}),!this.state.error_status&&!this.state.mixed_status&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(RI,{variant:"h5",gutterBottom:!0,children:"The following rows were registered successfully!"}),this.renderPreviewTable(),this.state.complete&&(0,Ne.jsx)(Ne.Fragment,{children:this.handleFileMake()})]})]}),(0,Ne.jsxs)("div",{className:"d-flex flex-row align-content-end align-items-end flex-row-reverse mt-2",children:[!this.state.error_status&&!this.state.complete&&(0,Ne.jsx)("span",{children:(0,Ne.jsx)(HE,{onClick:()=>this.handleRegister(),className:"btn-lg",style:{padding:"12px"},variant:"contained",color:"primary",children:this.renderStatusButon("Register")})}),!this.state.error_status&&!this.state.loading&&!0===this.state.complete&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)(HE,{onClick:()=>this.handleReset(),className:"btn-lg mt-2 align-self-end",style:{padding:"12px"},variant:"contained",color:"primary",children:"Close"})}),this.state.error_message&&(0,Ne.jsxs)("div",{style:{marginBottom:"10px",width:"100%",display:"inline-block"},children:[(0,Ne.jsx)(RI,{variant:"h6",color:"error"}),(0,Ne.jsx)(RI,{variant:"caption",style:{marginBottom:"10px",width:"100%",display:"inline-block"},color:"error",children:this.state.error_message_extended}),(0,Ne.jsxs)(RI,{variant:"caption",color:"error",children:["There were some problems Registering your data. ",(0,Ne.jsx)("br",{}),"Please review & resubmit."]}),(0,Ne.jsx)(HE,{onClick:()=>this.handleReset(),className:"btn-lg btn-block m-0",style:{padding:"12px",float:"right"},variant:"contained",color:"error",children:"Restart"})]}),!this.state.complete&&!this.state.loading&&!this.state.error_status&&(0,Ne.jsx)(RI,{className:"text-right p-2",children:"File successfully Uploaded "}),!this.state.complete&&!0===this.state.loading&&!this.state.error_status&&(0,Ne.jsx)(RI,{className:"text-right p-2",children:" Process may take a few minutes. Do not leave or refresh this page. "}),!0===this.state.complete&&!this.state.loading&&!this.state.error_status&&(0,Ne.jsx)("div",{children:(0,Ne.jsxs)(RI,{className:"text-right p-2",children:[this.renderErrorNuance()," Data Submitted Successfully!"]})})]})]}),this.renderTableBody=()=>"samples"===this.props.bulkType.toLowerCase()&&this.state.uploadedSources?(0,Ne.jsx)(LI,{children:this.state.uploadedSources&&this.state.uploadedSources.map(((e,t)=>(0,Ne.jsxs)(GI,{children:[!0===this.state.registeredStatus&&(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",e.hubmap_id]}),(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",e.lab_id?e.lab_id:e.lab_tissue_sample_id]}),(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",e.sample_category?e.sample_category:e.specimen_type]}),(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",e.organ_type?e.organ_type:""]}),(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",e.sample_protocol?e.sample_protocol:e.protocol_url]}),(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",this.renderTrimDescription(e.description)]})]},e.id+""+t)))}):"donors"===this.props.bulkType.toLowerCase()&&this.state.uploadedSources?(0,Ne.jsx)(LI,{children:this.state.uploadedSources.map(((e,t)=>(0,Ne.jsxs)(GI,{children:[!0===this.state.registeredStatus&&(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",e.hubmap_id]}),(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",e.lab_id?e.lab_id:e.lab_donor_id]}),(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",e.lab_name?e.lab_name:e.label]}),(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",e.selection_protocol?e.selection_protocol:e.protocol_url]}),(0,Ne.jsxs)(zI,{className:"",scope:"row",children:[" ",this.renderTrimDescription(e.description)]})]},e.hubmap_id+""+t)))}):void 0,this.renderPreviewTable=()=>{var e=[];return"samples"===this.props.bulkType.toLowerCase()?e=[{id:"lab_id",label:"Lab Id "},{id:"sample_category",label:"Type"},{id:"organ_type",label:"Organ "},{id:"sample_protocol",label:"Protocol "},{id:"description",label:"Description "}]:"donors"===this.props.bulkType.toLowerCase()&&(e=[{id:"lab_id",label:"Lab ID "},{id:"lab_name",label:"Lab Name "},{id:"selection_protocol",label:"Protocol ",width:"40%"},{id:"description",label:"Description "}]),!0===this.state.registeredStatus&&e.unshift({id:"hubmap_id",disablePadding:!0,label:"Hubmap ID ",width:""}),(0,Ne.jsx)($I,{component:ws,style:{maxHeight:450},children:(0,Ne.jsxs)(II,{"aria-label":"Uploaded "+this.props.bulkType,size:"small",padding:"none",stickyHeader:!0,className:"table table-striped table-hover mb-0 uploadedTable uploadedStuff-",children:[(0,Ne.jsx)(VI,{className:"thead-dark font-size-sm",children:(0,Ne.jsx)(GI,{children:e.map(((e,t)=>(0,Ne.jsx)(zI,{component:"th",variant:"head",width:e.width,style:{},padding:e.disablePadding?"none":"normal",children:e.label},e.id+""+t)))})}),this.renderTableBody()]})})},this.renderInvalidTable=()=>(0,Ne.jsx)($I,{component:ws,style:{maxHeight:450},children:(0,Ne.jsxs)(II,{"aria-label":"Uploaded Errors"+this.props.bulkType,size:"small",stickyHeader:!0,className:"table table-striped table-hover mb-0 uploadedTable ",children:[(0,Ne.jsx)(VI,{className:"thead-dark font-size-sm",children:(0,Ne.jsxs)(GI,{children:[(0,Ne.jsx)(zI,{component:"th",variant:"head",width:"7%",children:"Row"}),(0,Ne.jsx)(zI,{component:"th",variant:"head",children:"Error"})]})}),(0,Ne.jsx)(LI,{children:this.state.errorSet.map(((e,t)=>(0,Ne.jsxs)(GI,{children:[(0,Ne.jsx)(zI,{className:"",scope:"row",children:e.row}),(0,Ne.jsx)(zI,{className:"",scope:"row",children:e.message})]},"rowitem_"+t)))})]})}),this.renderMixedSuccess=()=>(0,Ne.jsx)("div",{children:(0,Ne.jsx)($I,{component:ws,style:{maxHeight:450,marginBottom:4},children:(0,Ne.jsxs)(II,{"aria-label":"Uploaded Errors"+this.props.bulkType,size:"small",stickyHeader:!0,className:"error-table table table-striped table-hover mb-0 uploadedTable ",children:[(0,Ne.jsx)(VI,{className:"font-size-sm",children:(0,Ne.jsxs)(GI,{className:"tableRowError",children:[(0,Ne.jsx)(zI,{component:"th",variant:"head",width:"7%",children:"Row"}),(0,Ne.jsx)(zI,{component:"th",variant:"head",children:"Error"})]})}),(0,Ne.jsx)(LI,{children:this.state.errorSet.map(((e,t)=>(0,Ne.jsxs)(GI,{className:e.error?"error":"ssuccess",children:[(0,Ne.jsx)(zI,{className:"",scope:"row",children:e.row}),(0,Ne.jsx)(zI,{className:"",scope:"row",children:e.error?e.error:"Successfully Registered as "+e.hubmap_id})]},"rowitem_"+t)))})]})})}),this.renderInvalidMark=e=>(0,Ne.jsx)(yz,{title:"Error:"+e,"aria-label":"error message",children:(0,Ne.jsx)(WL.A,{className:"invalid"})}),this.renderTrimDescription=e=>{console.log("desc",e);var t=e;return e&&e.length>=22?(0,Ne.jsx)(yz,{title:e,"aria-label":"Full Description",children:(0,Ne.jsx)("span",{children:t})}):(0,Ne.jsx)("span",{children:t})},this.renderLoadingBar=()=>{if(this.state.loading)return(0,Ne.jsx)("div",{className:"row mb-2",children:(0,Ne.jsx)("div",{className:"col-12",children:(0,Ne.jsx)(Gl,{})})})},this.renderResponsePane=()=>(0,Ne.jsxs)("div",{className:"alert col-sm-12 text-left alert-"+this.state.alertStatus,role:"alert",children:[this.state.error_message&&(0,Ne.jsx)("div",{children:(0,Ne.jsxs)(Tz,{sx:{textAlign:"left",padding:"0.5rem"},children:[(0,Ne.jsx)("h6",{children:this.state.error_message_detail}),this.state.error_message_detail]})}),!this.state.error_message&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)("h6",{children:this.state.success_message}),(0,Ne.jsx)(HE,{onClick:()=>this.resetSteps(),className:"btn-lg btn-block m-0 align-self-end",style:{padding:"12px"},variant:"contained",color:"primary",children:"Restart"})]})]}),this.renderStepper=()=>(0,Ne.jsxs)("div",{className:"",children:[(0,Ne.jsx)(KL,{activeStep:this.state.activeStep,children:this.state.steps.map(((e,t)=>(0,Ne.jsx)(XL,{children:(0,Ne.jsx)(iF,{children:e})},e)))}),(0,Ne.jsx)("div",{className:"p-2 mt-3",id:"stepContainer",children:this.getStepContent(this.state.activeStep)})]}),this.render=()=>{const e="https://raw.githubusercontent.com/hubmapconsortium/ingest-ui/main/src/src/assets/Documents/example-"+this.props.bulkType.slice(0,-1).toLowerCase()+"-registrations.tsv",t="https://docs.hubmapconsortium.org/bulk-registration/"+this.props.bulkType.toLowerCase().slice(0,-1)+"-bulk-reg.html";return(0,Ne.jsx)(Ne.Fragment,{children:(0,Ne.jsxs)("div",{className:"col-sm-12",children:[(0,Ne.jsxs)("div",{className:" d-flex ",children:[(0,Ne.jsx)(RI,{className:"mr-3 d-inline-block",children:(0,Ne.jsxs)(HE,{href:e,download:!0,target:"_blank ",className:"btn-lg btn-block",style:{padding:"12px",marginRight:"10px"},variant:"contained",color:"primary",children:[(0,Ne.jsx)(bo,{icon:To,className:"m-1",style:{fontSize:50}}),"Example.tsv"]})}),(0,Ne.jsxs)("div",{className:"",children:[(0,Ne.jsxs)("h4",{children:[Tc(this.props.bulkType).slice(0,-1)," Information Upload"]}),(0,Ne.jsxs)(RI,{className:"d-inline-block ",style:{display:"inline-block"},children:["To bulk register multiple ",this.props.bulkType.toLowerCase()," at one time, upload a tsv file here in the format specified by this example file. ",(0,Ne.jsx)("br",{})," Include one line per ",this.props.bulkType.toLowerCase().slice(0,-1)," to register. ",Tc(this.props.bulkType).slice(0,-1)," metadata must be provided separately. ",(0,Ne.jsx)("br",{}),(0,Ne.jsxs)(RI,{className:this.state.rowLimitClass,children:[" ",(0,Ne.jsx)("strong",{children:" There is a 40 row limit on uploaded files."})," ",(0,Ne.jsx)("br",{})]}),"See the ",(0,Ne.jsxs)(Pz,{href:t,target:"new",children:[Tc(this.props.bulkType).slice(0,-1)," Bulk Registration"]})," page for further details."]})]})]}),this.renderStepper()]})})},this.state={alertStatus:"danger",bulkLength:0,activeStep:0,loading:!1,steps:["Upload Your File","Review Validation","Register","Complete"],currentDateTime:Date().toLocaleString(),headers:["Source Id","Lab Id","Sample Type","Organ Type","Sample Protocol","Description","Rui Location"],error_message_detail:"",response_status:"",error_status:!1,mixed_status:!1,error_message:"",error_message_extended:"",errorSet:[],rowLimitClass:"",success_status:!1,success_message:"",validation:!0,validated:[],showTable:!1,tsvFile:"",registeredStatus:!1,uploadTimer:"",uploadedSources:[],finalTableReady:!1,complete:!1}}componentDidMount(){console.debug("BULK MOUNTED");this.getUserGroups()}getUserGroups(){var e=localStorage.getItem("info");console.debug("GT",e),zc(JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{if(200===e.status){const t=e.results.filter((e=>"5777527e-ec11-11e8-ab41-0af86edb4424"!==e.uuid));this.setState({groups:t,inputValue_group_uuid:t[0].uuid})}else 401===e.status?(localStorage.setItem("isAuthenticated",!1),window.location.reload()):this.setState({groups:["NA"]})}))}errorClass(e){return"valid"===e?"is-valid":0===e.length?"":"is-invalid"}resetSteps(){window.location.reload()}renderGroupSelect(){return(0,Ne.jsxs)("div",{className:"col3",children:[(0,Ne.jsx)("p",{children:" Select the data provider group that this data belongs to "}),(0,Ne.jsx)("select",{name:"Submission_Group",id:"Submission_Group",label:"Group",onChange:this.handleGroupSelect,size:"small",margin:"dense",children:this.state.groups.map((e=>(0,Ne.jsx)("option",{value:e.uuid,children:e.displayname},e.uuid)))})]})}showUploadedStuff(){this.setState({showTable:!0})}renderLoadingSpinner(e){return this.state.loading?(0,Ne.jsx)("div",{className:"text-center",children:(0,Ne.jsx)(bo,{icon:Bo,spin:!0})}):this.state.loading||e?void 0:this.state.error_status?(0,Ne.jsx)("div",{className:"text-center",children:(0,Ne.jsx)(bo,{icon:Uo})}):(0,Ne.jsx)("div",{className:"text-center",children:(0,Ne.jsx)(bo,{icon:Bo,className:"invisible"})})}}const Mz=Nz,Dz=e=>(0,Ne.jsx)("div",{children:(0,Ne.jsx)(Mz,{bulkType:e.bulkType,reportError:e.reportError,handleCancel:function(){this.props.handleCancel?this.props.handleCancel():window.history.back()}})}),Lz=["className","children","classes","IconComponent","input","inputProps","variant"],Fz=["root"],zz=(0,Ne.jsx)(xS,{}),Bz=i.forwardRef((function(e,t){const r=(0,Ut.b)({name:"MuiNativeSelect",props:e}),{className:n,children:o,classes:s={},IconComponent:a=kv,input:l=zz,inputProps:u}=r,c=(0,Lt.A)(r,Lz),d=Xf({props:r,muiFormControl:Zf(),states:["variant"]}),p=(e=>{const{classes:t}=e;return(0,$t.A)({root:["root"]},J_,t)})((0,Ft.A)({},r,{classes:s})),h=(0,Lt.A)(s,Fz);return(0,Ne.jsx)(i.Fragment,{children:i.cloneElement(l,(0,Ft.A)({inputComponent:nS,inputProps:(0,Ft.A)({children:o,classes:h,IconComponent:a,variant:d.variant,type:void 0},u,l?l.props.inputProps:{}),ref:t},c,{className:(0,zt.A)(p.root,l.props.className,n)}))})}));Bz.muiName="Select";const $z=Bz,Hz=e=>{let[t,r]=(0,i.useState)({lab_donor_id:"",label:"",protocol_url:"",description:"",group_uuid:""}),[n,o]=(0,i.useState)(!1),[s,a]=(0,i.useState)(!0),[l,u]=(0,i.useState)(!1),[c,d]=(0,i.useState)({has_admin_priv:!1,has_publish_priv:!1,has_submit_priv:!1,has_write_priv:!1}),[p,h]=(0,i.useState)(null),[f,m]=(0,i.useState)({lab_donor_id:"",label:"",protocol_url:"",description:""});const g=JSON.parse(localStorage.getItem("userGroups")),v=g[0].uuid;var[b,y]=(0,i.useState)({lab_donor_id:"",label:"",protocol_url:"",description:""});const{uuid:x}=re();function w(e){const{id:t,value:r}=e.target;y((e=>({...e,[t]:r})))}function _(){let e=0,t=["label","protocol_url"];for(let n of t)gT(b[n])||(m((e=>({...e,field:"required"}))),e++);var r;return e+=vT(r=b.protocol_url)?bT(r)?(m((e=>({...e,protocol_url:""}))),0):(m((e=>({...e,protocol_url:"Please enter only one valid protocols.io URL"}))),1):(m((e=>({...e,protocol_url:"Please enter a valid protocols.io URL"}))),1),0===e}function S(e){h(e),u(!1)}return(0,i.useEffect)((()=>{x&&""!==x?yd(x).then((e=>{if(200===e.status){const t=e.results.entity_type;if("Donor"!==t)window.location.replace(`https://ingest.hubmapconsortium.org/${t}/${x}`);else{const t=e.results;r(t),y({lab_donor_id:t.lab_donor_id,label:t.label,protocol_url:t.protocol_url,description:t.description,group_uuid:t.group_uuid,group_name:t.group_name}),Uc(x,JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{"public"===t.data_access_level&&d({has_write_priv:!1}),d(e.results)})).catch((e=>{console.error("ingest_api_allowable_edit_states ERROR",e),h(e)})),document.title=`HuBMAP Ingest Portal | Donor: ${t.hubmap_id}`}}else console.error("entity_api_get_entity RESP NOT 200",e.status,e),h(e)})).catch((e=>{console.debug("entity_api_get_entity ERROR",e),h(e)})):d({has_write_priv:!0}),a(!1)}),[x]),s||!t&&!b&&x?(0,Ne.jsx)(ms,{}):(0,Ne.jsxs)(mr,{children:[(0,Ne.jsxs)(Rr,{container:!0,className:"p-2",children:[!s&&x&&""!==x&&(0,Ne.jsxs)(i.Fragment,{children:[(0,Ne.jsx)(Rr,{item:!0,xs:12,className:"",children:(0,Ne.jsx)("h3",{style:{marginLeft:"-2px"},children:"Donor Information"})}),(0,Ne.jsxs)(Rr,{item:!0,xs:6,className:"",children:[(0,Ne.jsxs)(Yt,{children:["HuBMAP ID: ",t.hubmap_id]}),(0,Ne.jsxs)(Yt,{children:["Entered by: ",t.created_by_user_email]}),(0,Ne.jsxs)(Yt,{children:["Submission ID: ",t.submission_id]}),(0,Ne.jsxs)(Yt,{children:["Entry Date: ",jc(t.created_timestamp)]})]})]}),!s&&!x&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsx)(Rr,{item:!0,xs:6,className:"",children:(0,Ne.jsx)("h3",{style:{marginLeft:"-2px"},children:"Registering a Donor"})})}),(0,Ne.jsxs)(Rr,{item:!0,xs:6,className:"",children:[c.has_write_priv&&(0,Ne.jsx)(VT,{}),t&&"public"===t.data_access_level&&(0,Ne.jsx)(pu,{severity:"warning",sx:{minHeight:"100%",minWidth:"100%",padding:"10px"},children:"This entity is no longer editable. It was locked when it became publicly acessible when data associated with it was published."})]})]}),(0,Ne.jsxs)("form",{onSubmit:t=>function(t){if(t.preventDefault(),u(!0),_()){let t={lab_donor_id:b.lab_donor_id,label:b.label,protocol_url:b.protocol_url,description:b.description};if(x)xd(x,JSON.stringify(t)).then((t=>{200===t.status?e.onUpdated(t.results):S(t)})).catch((e=>{S(e)}));else{let r=document.getElementById("group_uuid");null!==r&&void 0!==r&&r.value&&(t={...t,group_uuid:r.value}),wd("donor",JSON.stringify(t)).then((t=>{200===t.status?e.onCreated(t.results):S(t.error?t.error:t)})).catch((e=>{S(e)}))}}else u(!1),console.debug("%c\u25c9 Invalid ","color:#00ff7b")}(t),children:[(0,Ne.jsx)(kE,{id:"lab_donor_id",label:"Lab's Donor Non-PHI ID ",helperText:"A non-PHI id used by the lab when referring to the donor",value:b?b.lab_donor_id:"",error:""!==f.lab_donor_id,InputLabelProps:{shrink:!!(x||null!==b&&void 0!==b&&b.lab_donor_id)},onChange:e=>w(e),fullWidth:!0,disabled:!c.has_write_priv,variant:"filled",className:"my-3"}),(0,Ne.jsx)(kE,{id:"label",label:"Deidentified Name ",helperText:f.label&&f.label.length>0?f.label:"A deidentified name used by the lab to identify the donor (e.g. HuBMAP Donor 1)",value:b?b.label:"",error:""!==f.label,required:!0,InputLabelProps:{shrink:!!(x||null!==b&&void 0!==b&&b.label)},onChange:e=>w(e),fullWidth:!0,disabled:!c.has_write_priv,variant:"filled",className:"my-3"}),(0,Ne.jsx)(kE,{id:"protocol_url",label:"Case Selection Protocol ",helperText:f.protocol_url&&f.protocol_url.length>0?f.protocol_url:"The protocol used when choosing and acquiring the donor. This can be supplied a DOI from http://protocols.io",value:b?b.protocol_url:"",error:""!==f.protocol_url,required:!0,InputLabelProps:{shrink:!!(x||null!==b&&void 0!==b&&b.protocol_url)},onChange:e=>w(e),fullWidth:!0,disabled:!c.has_write_priv,variant:"filled",className:"my-3"}),(0,Ne.jsx)(kE,{id:"description",label:"Description ",helperText:"Free text field to enter a description of the donor",value:b?b.description:"",error:""!==f.description,InputLabelProps:{shrink:!!(x||null!==b&&void 0!==b&&b.description)},onChange:e=>w(e),fullWidth:!0,disabled:!c.has_write_priv,variant:"filled",className:"my-3",multiline:!0,rows:4}),(0,Ne.jsxs)(mr,{className:"my-3",children:[(0,Ne.jsx)(cE,{sx:{color:"rgba(0, 0, 0, 0.38)"},htmlFor:"group",children:"Group"}),(0,Ne.jsx)($z,{id:"group_uuid",label:"Group",onChange:e=>w(e),fullWidth:!0,variant:"filled",disabled:!!x,value:b.group_uuid?b.group_uuid:v,children:function(){if(b.group_name)return(0,Ne.jsx)("option",{value:b.group_uuid,children:b.group_name});{let e=[];for(let t of g)e.push((0,Ne.jsx)("option",{value:t.uuid,children:t.shortname},t.uuid));return e}}()})]}),(0,Ne.jsxs)(mr,{sx:{textAlign:"right"},children:[(0,Ne.jsx)(HE,{variant:"contained",className:"m-2",onClick:()=>window.history.back(),children:"Cancel"}),!x&&(0,Ne.jsx)(sI,{variant:"contained",loading:l,className:"m-2",type:"submit",children:"Generate ID"}),x&&x.length>0&&c.has_write_priv&&(0,Ne.jsx)(sI,{loading:l,variant:"contained",className:"m-2",type:"submit",children:"Update"})]})]}),p&&(0,Ne.jsxs)(pu,{variant:"filled",severity:"error",children:[(0,Ne.jsx)("strong",{children:"Error:"})," ",JSON.stringify(p)]})]})};const Uz=function(e){let t=te();var[r,n]=(0,i.useState)(!1),[o,s]=(0,i.useState)(""),[a,l]=(0,i.useState)(!1),[u,c]=(0,i.useState)(""),[d,p]=(0,i.useState)(!1),[h,f]=(0,i.useState)(null),[m,g]=(0,i.useState)(!1),[v,b]=(0,i.useState)(!1),[y,x]=(0,i.useState)(null),[w,_]=(0,i.useState)(null),[S,A]=(0,i.useState)(!0),[C,k]=(0,i.useState)({}),[E,R]=(0,i.useState)({}),[j,O]=(0,i.useState)(),[T,I]=(0,i.useState)(!0),[P,N]=(0,i.useState)(!1),[M,D]=(0,i.useState)(!1),[L,F]=(0,i.useState)(!0),[z,B]=(0,i.useState)(),[$,H]=(0,i.useState)(),[U,W]=(0,i.useState)(!1),[V]=(0,i.useState)({Datasets:["Registering individual datasets is currently disabled.","/new/upload"]});function q(e){D(!0),localStorage.removeItem("info"),localStorage.removeItem("organs"),localStorage.removeItem("datatypes"),localStorage.removeItem("allGroups"),localStorage.removeItem("userGroups"),window.location.replace("https://ingest.api.hubmapconsortium.org/logout")}function G(){t("/")}window.onstorage=()=>{console.log("onstorage Storage Event")},(0,i.useEffect)((()=>{var e=0;let t=new URL(window.location.href).searchParams.get("info");var r;null!==t&&(localStorage.setItem("info",t),window.location.replace("https://ingest.hubmapconsortium.org")),localStorage.getItem("organs")?o():Ic().then((e=>{o(),void 0!==e?(localStorage.setItem("organs",JSON.stringify(e)),O(e)):(N(["UBKG API : Organ","No local ORGAN data was found. Please try again later, or contact help@hubmapconsortium.org",e]),fe(e))})).catch((e=>{N("UBKG API Error: Organ Type Set","No local ORGAN data was found. Please try again later, or contact help@hubmapconsortium.org",e),fe(e)})),localStorage.getItem("datatypes")?((!(r=localStorage.getItem("datatypes"))||r.includes("[object Object]"))&&localStorage.removeItem("datatypes"),o()):(Pc().then((e=>{o(),void 0!==e?(localStorage.setItem("datasetTypes",JSON.stringify(e)),k(e),R(e)):(N(["UBKG API : Dataset Types","No local DATASET TYPE definitions were found and none could be fetched  Please try again later, or contact help@hubmapconsortium.org",e]),fe(e))})).catch((e=>{N("UBKG API Error: Dataset Types","No local DATASET TYPE definitions were found and none could be fetched. Please try again later, or contact help@hubmapconsortium.org ",e),fe(e)})),o());try{localStorage.getItem("info")?(console.debug("%c\u25c9 LocalStore Found ","color:#00ff7b",JSON.parse(localStorage.getItem("info"))),function(e){const t={headers:{Authorization:"Bearer "+e,"Content-Type":"application/json"}};let r=Mj("test",1,1);return _u().post("https://search.api.hubmapconsortium.org/v3/search",r,t).then((e=>({status:e.status}))).catch((e=>({error:e})))}(JSON.parse(localStorage.getItem("info")).groups_token).then((e=>{var t;if(console.debug("%c\u25c9 results  ","color:#b300ff",e),o(),null!==(t=e.error)&&void 0!==t&&t.response&&e.error.response.status)n(!0),401===e.error.response.status?s("Your login credentials are invalid or have expired.  Please try logging out and and back in."):e.error.response.data.error&&401!==e.error.response.status?s(e.error.response.data.error):s("API Key Error");else if(e.error)n(!0);else{console.debug("%c\u25c9 API Key OK ","color:#00ff7b",e),g(!0);try{localStorage.getItem("userGroups")&&void 0!==localStorage.getItem("userGroups")&&"Non-active login"!==localStorage.getItem("userGroups")||!localStorage.getItem("info")||zc().then((e=>{e&&403===e.status&&"User is not a member of group HuBMAP-read"===e.results?(console.log("User is not a member of group HuBMAP-read"),g(!0),b(!0)):"Non-active login"===e.results||401===e.status?(console.log("Non-active login"),n(!0),i(e)):200===e.status?localStorage.setItem("userGroups",JSON.stringify(e.results)):(N(["User Group Data Error","No local User Group data could be found and attempts to fetch this data have failed. Please try again later, or contact help@hubmapconsortium.org",e]),i(e))})).catch((e=>{i(e)}))}catch(r){i(r)}o();try{if(!localStorage.getItem("allGroups"))try{Hc().then((e=>{var t=GM(e.results);localStorage.setItem("allGroups",JSON.stringify(t)),_(t)})).catch((e=>{i(e)}))}catch(r){i(r)}}catch(r){i(r)}o()}})).catch((e=>{console.debug("%c\u2b57","color:#ff005d","API Key Validity ERR",e),fe(e)}))):(console.debug("%c\u25c9 No INFO found ","color:#ff005d"),F(!1))}catch(a){N(["User Group Data Error","No local User Group data could be found and attempts to fetch this data have failed. Please try again later, or contact help@hubmapconsortium.org",a])}function o(){e++,console.debug("%c\u2299","color:#00ff7b","APP loadCounter",e),e>=5&&(F(!1),console.log("Loading Complete"))}function i(t){console.debug("%c\u2b57 APP loadFailed","color:#ff005d","",e,t),fe(t)}window.hasOwnProperty("REACT_APP_BANNER_DETAILS")&&""!==window.REACT_APP_BANNER_DETAILS&&(B(window.REACT_APP_BANNER_TITLE?window.REACT_APP_BANNER_TITLE:""),H(window.REACT_APP_BANNER_DETAILS),W(!0))}),[]);const Q=(e,r)=>{t("/")};function K(e){if(e&&void 0!==e){var r=e.toLowerCase();t(r,{replace:!0})}}function J(e){console.debug("%c\u2299","color:#00ff7b","APP creationSuccess",e),f(e),l(!0)}function X(e){console.debug("%c\u2299","color:#00ff7b","APP creationSuccess",e),c("Entity Updated Successfully!"),p(!0),Q()}console.debug("%c\u25c9 Stored Info:","color:#00ff7b",JSON.parse(localStorage.getItem("info")));const{search:Y}=Z(),ee=new URLSearchParams(Y),re=ee.has("entity_type")?ee.get("entity_type"):null,ne=ee.has("keywords")?ee.get("keywords"):null,oe=ee.has("group_uuid")?ee.get("group_uuid"):null;var[ie]=(0,i.useState)({entity_type:re,keywords:ne,group_uuid:oe}),[se,ae]=(0,i.useState)(!1),[le,ue]=(0,i.useState)(""),[ce,de]=(0,i.useState)(!1),[pe,he]=(0,i.useState)({});function fe(e,t){console.debug("%c\u2b57","color:#ff005d","APP reportError",e,t),t&&he(t),ue("string"===typeof e?e:JSON.stringify(e));var r=JSON.stringify(OM(e),Object.getOwnPropertyNames(OM(e)));throw e.results&&(r=JSON.stringify(OM(e.results),Object.getOwnPropertyNames(OM(e.results)))),ue(r),ae(!0),e}return(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsxs)("div",{className:"App env-"+{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND_URL:"https://ingest.api.hubmapconsortium.org",REACT_APP_DATAINGEST_API_URL:"https://ingest.api.hubmapconsortium.org",REACT_APP_SPECIMEN_API_URL:"https://ingest.api.hubmapconsortium.org",REACT_APP_METADATA_API_URL:"https://ingest.api.hubmapconsortium.org",REACT_APP_ENTITY_API_URL:"https://entity.api.hubmapconsortium.org",REACT_APP_SEARCH_API_URL:"https://search.api.hubmapconsortium.org/v3",REACT_APP_PORTAL_URL:"https://portal.hubmapconsortium.org/",REACT_APP_UBKG_API_URL:"https://ontology.api.hubmapconsortium.org",REACT_APP_INGEST_BOARD_URL:"https://ingest.board.hubmapconsortium.org/",REACT_APP_URL:"https://ingest.hubmapconsortium.org",REACT_APP_PROFILE_URL:"https://profile.hubmapconsortium.org",REACT_APP_READ_ONLY_GROUP_ID:"5777527e-ec11-11e8-ab41-0af86edb4424",REACT_APP_DATA_ADMIN:"89a69625-99d7-11ea-9366-0e98982705c1",REACT_APP_DATA_CURATOR:"75804b96-d4a8-11e9-9da9-0ad4acb67ed4",REACT_APP_HUBMAP_DATA_ADMIN_GROUP:"HuBMAP-data-admin",REACT_APP_RUI_BASE_URL:"https://cdn.humanatlas.io/ui/ccf-rui/"}.REACT_APP_NODE_ENV,children:[(0,Ne.jsx)(Bl,{open:r,anchorOrigin:{vertical:"top",horizontal:"center"},onClose:()=>(n(!1),void window.location.reload()),children:(0,Ne.jsx)(Ws,{variant:"filled",severity:"error",children:o})}),(0,Ne.jsx)(WM,{login:m,isLoggingOut:M,logout:q,userDataGroups:JSON.parse(localStorage.getItem("userGroups")?localStorage.getItem("userGroups"):null),appInfo:JSON.parse(localStorage.getItem("info"))}),!T&&(0,Ne.jsx)(Mt,{logout:q}),(0,Ne.jsx)("div",{id:"content",className:"container",children:(0,Ne.jsxs)(Ki,{FallbackComponent:Qi,onError:(e,t)=>{console.log("Error caught!"),console.error(e),console.error(t)},children:[(0,Ne.jsxs)(xl,{sx:{color:"white",height:150,flexShrink:0,"& .MuiDrawer-paper":{height:150,boxSizing:"border-box"}},variant:"temporary",className:"alert-danger",anchor:"bottom",open:se,children:[(0,Ne.jsxs)(mr,{sx:{width:"100%",padding:1,backgroundColor:"#dc3545",color:"#fff","& span, h5":{display:"inline-block",padding:"0 5px 0 0 "}},children:[(0,Ne.jsxs)(Yt,{variant:"h5",align:"left",children:[(0,Ne.jsx)(bo,{icon:Uo,sx:{padding:1}}),"  Sorry!  "]}),(0,Ne.jsx)(Yt,{align:"left",variant:"caption",children:"Something's gone wrong..."}),(0,Ne.jsx)(Gi,{sx:{position:"absolute",right:8,top:4,color:"white"},"aria-label":"close drawer",onClick:()=>ae(!1),edge:"start",children:(0,Ne.jsx)($l.A,{})})]}),(0,Ne.jsx)(mr,{sx:{width:"100%",height:"100%",padding:1,backgroundColor:"white",color:"#dc3545"},children:(0,Ne.jsxs)(Rr,{container:!0,children:[(0,Ne.jsx)(Rr,{item:!0,xs:7,children:(0,Ne.jsxs)(Yt,{variant:"body2",gutterBottom:!0,children:["There's been an error handling the current task. Please try again later. ",(0,Ne.jsx)("br",{}),"If the problem persists, please contact the HuBMAP Help Desk at ",(0,Ne.jsx)("a",{href:"mailto:help@hubmapconsortium.org",children:"help@hubmapconsortium.org"})]})}),(0,Ne.jsxs)(Rr,{item:!0,xs:5,children:[(0,Ne.jsxs)(Yt,{variant:"body2",gutterBottom:!0,children:["Error Details: ",(0,Ne.jsxs)(Gi,{color:"error",size:"small",onClick:()=>de(!ce),children:[" ",(0,Ne.jsx)(Hl.A,{})]})]}),pe&&pe.length>0&&(0,Ne.jsx)(Yt,{variant:"caption",children:pe}),(0,Ne.jsx)(pi,{in:ce,children:(0,Ne.jsx)(Yt,{variant:"caption",children:le})})]})]})})]}),!L&&U&&(0,Ne.jsxs)("div",{className:"alert alert-info",role:"alert",children:[(0,Ne.jsx)("h2",{children:z}),(0,Ne.jsx)("div",{dangerouslySetInnerHTML:{__html:$}})]}),L&&(0,Ne.jsx)(ms,{}),!m&&!L&&(0,Ne.jsx)(i.Fragment,{children:(0,Ne.jsxs)(ye,{children:[(0,Ne.jsx)(ve,{path:"/",element:(0,Ne.jsx)(Dt,{})}),(0,Ne.jsx)(ve,{path:"/*",element:(0,Ne.jsx)(Dt,{})}),(0,Ne.jsx)(ve,{path:"*",element:(0,Ne.jsx)(Dt,{})}),(0,Ne.jsx)(ve,{path:"/login",element:(0,Ne.jsx)(Dt,{})})]})}),P.length>0&&(0,Ne.jsxs)(Ws,{variant:"filled",severity:"error",children:["There was an error populating from datasource ",P[0],P[1],P[2]]}),!0===v&&(0,Ne.jsx)(ye,{children:(0,Ne.jsx)(ve,{index:!0,element:(0,Ne.jsxs)(Ws,{variant:"filled",severity:"error",children:['You do not have access to the HuBMAP Ingest Registration System.  You can request access by checking the "HuBMAP Data Via Globus" system in your profile. If you continue to have issues and have selected the "HuBMAP Data Via Globus" option make sure you have accepted the invitation to the Globus Group "HuBMAP-Read" or contact the help desk at ',(0,Ne.jsx)("a",{href:"mailto:help@hubmapconsortium.org",children:"help@hubmapconsortium.org"})]})})}),m&&!L&&!v&&(0,Ne.jsx)(Pe.Provider,{value:{allGroups:w},children:(0,Ne.jsxs)(Ba,{className:"px-5 py-4",children:[(0,Ne.jsxs)(ye,{children:[(0,Ne.jsx)(ve,{index:!0,element:(0,Ne.jsx)(zj,{organList:j,entity_type:"",reportError:fe,packagedQuery:ie,urlChange:K,handleCancel:G})}),(0,Ne.jsx)(ve,{path:"/",element:(0,Ne.jsx)(zj,{entity_type:" ",reportError:fe,packagedQuery:ie,urlChange:K,handleCancel:G})}),(0,Ne.jsx)(ve,{path:"/login",element:(0,Ne.jsx)(Dt,{})}),(0,Ne.jsxs)(ve,{path:"/new",children:[(0,Ne.jsx)(ve,{index:!0,element:(0,Ne.jsx)(zj,{reportError:fe})}),(0,Ne.jsx)(ve,{path:"donor",element:(0,Ne.jsx)(Hz,{onCreated:e=>J(e)})}),(0,Ne.jsx)(ve,{path:"sample",element:(0,Ne.jsx)(jM,{reportError:fe,formType:"sample",onReturn:Q,handleCancel:G})}),(0,Ne.jsx)(ve,{path:"publication",element:(0,Ne.jsx)(jM,{formType:"publication",reportError:fe,onReturn:Q,handleCancel:G})}),(0,Ne.jsx)(ve,{path:"collection",element:(0,Ne.jsx)(kD,{dataGroups:JSON.parse(localStorage.getItem("userGroups")),dtl_all:C,newForm:!0,reportError:fe,groupsToken:y,onCreated:e=>J(e),onReturn:()=>Q(),handleCancel:()=>G()})}),(0,Ne.jsx)(ve,{path:"epicollection",element:(0,Ne.jsx)(jD,{dataGroups:JSON.parse(localStorage.getItem("userGroups")),dtl_all:C,newForm:!0,reportError:fe,groupsToken:y,onCreated:e=>J(e),onReturn:()=>Q(),handleCancel:()=>G()})}),(0,Ne.jsx)(ve,{path:"dataset",element:(0,Ne.jsx)(zj,{reportError:fe,filter_type:"Dataset",urlChange:K,routingMessage:V.Datasets})}),(0,Ne.jsx)(ve,{path:"datasetAdmin",element:(0,Ne.jsx)(jM,{reportError:fe,formType:"dataset",dataTypeList:C,dtl_all:C,dtl_primary:C,new:"true",onReturn:Q,handleCancel:G})}),(0,Ne.jsx)(ve,{path:"upload",element:(0,Ne.jsx)(zj,{reportError:fe})})]}),(0,Ne.jsx)(ve,{path:"/donors",element:(0,Ne.jsx)(Hz,{})}),(0,Ne.jsx)(ve,{path:"/samples",element:(0,Ne.jsx)(zj,{reportError:fe,filter_type:"Sample",urlChange:K})}),(0,Ne.jsx)(ve,{path:"/datasets",element:(0,Ne.jsx)(zj,{reportError:fe,filter_type:"Dataset",urlChange:K})}),(0,Ne.jsx)(ve,{path:"/uploads",element:(0,Ne.jsx)(zj,{reportError:fe,filter_type:"uploads",urlChange:K})}),(0,Ne.jsx)(ve,{path:"/collections",element:(0,Ne.jsx)(zj,{reportError:fe,filter_type:"collections",urlChange:K})}),(0,Ne.jsx)(ve,{path:"/donor/:uuid",element:(0,Ne.jsx)(Hz,{onUpdated:e=>X(e)})}),(0,Ne.jsx)(ve,{path:"/sample/:uuid",element:(0,Ne.jsx)(zL,{reportError:fe,handleCancel:G,status:"view"})}),(0,Ne.jsx)(ve,{path:"/dataset/:uuid",element:(0,Ne.jsx)(OD,{reportError:fe,dataTypeList:C,handleCancel:G,allGroups:w,status:"view"})}),(0,Ne.jsx)(ve,{path:"/upload/:uuid",element:(0,Ne.jsx)(HL,{reportError:fe,handleCancel:G,status:"view",allGroups:w})}),(0,Ne.jsx)(ve,{path:"/publication/:uuid",element:(0,Ne.jsx)(FL,{reportError:fe,handleCancel:G,status:"view"})}),(0,Ne.jsx)(ve,{path:"/collection/:uuid",element:(0,Ne.jsx)(kD,{groupsToken:y,dataGroups:JSON.parse(localStorage.getItem("userGroups")),dtl_all:E,onUpdated:e=>X(e),reportError:fe,handleCancel:G,status:"view"})}),(0,Ne.jsx)(ve,{path:"/epicollection/:uuid",element:(0,Ne.jsx)(jD,{groupsToken:y,dataGroups:JSON.parse(localStorage.getItem("userGroups")),dtl_all:E,onUpdated:e=>X(e),reportError:fe,handleCancel:G,status:"view"})}),(0,Ne.jsx)(ve,{path:"/bulk/donors",exact:!0,element:(0,Ne.jsx)(Dz,{reportError:fe,bulkType:"donors"})}),(0,Ne.jsx)(ve,{path:"/bulk/samples",exact:!0,element:(0,Ne.jsx)(Dz,{reportError:fe,bulkType:"samples"})}),(0,Ne.jsxs)(ve,{path:"/metadata",children:[(0,Ne.jsx)(ve,{index:!0,element:(0,Ne.jsx)(LL,{reportError:fe,type:"block"})}),(0,Ne.jsx)(ve,{path:"block",element:(0,Ne.jsx)(LL,{reportError:fe,type:"block"})}),(0,Ne.jsx)(ve,{path:"section",element:(0,Ne.jsx)(LL,{reportError:fe,type:"section"})}),(0,Ne.jsx)(ve,{path:"suspension",element:(0,Ne.jsx)(LL,{reportError:fe,type:"suspension"})})]})]}),(0,Ne.jsxs)(Ka,{"aria-labelledby":"result-dialog",open:a,sx:{margin:"auto"},children:[(0,Ne.jsx)(ol,{sx:{background:"rgb(209, 231, 221)",marginBottom:"0.5em"},children:"Success!"}),(0,Ne.jsx)(tl,{sx:{maxWidth:"500px"},children:h&&(0,Ne.jsx)(qM,{result:{entity:h},onReturn:()=>(l(!1),void Q()),onCreateNext:()=>{return e=h,console.debug("%c\u2299","color:#00ff7b","APP creationSuccess",e),void window.location.replace(`https://ingest.hubmapconsortium.org/new/sample/?source=${JSON.stringify(e)}`);var e},entity:h})})]}),(0,Ne.jsx)(Bl,{open:d,onClose:()=>p(!1),anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:6e3,action:(0,Ne.jsx)(Gi,{size:"small","aria-label":"close",color:"inherit",onClick:()=>p(!1),children:(0,Ne.jsx)(bo,{icon:zo,size:"1x"})}),children:(0,Ne.jsx)(Ws,{severity:"success",children:u})})]})})]})})]})})};n.render((0,Ne.jsx)(Ce,{forceRefresh:!0,children:(0,Ne.jsx)(Uz,{})}),document.getElementById("root"))})()})();
//# sourceMappingURL=main.ecda0d8a.js.map