@nebula.js/stardust 6.0.0-alpha.2 → 6.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stardust.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/stardust v6.0.0-alpha.2
2
+ * @nebula.js/stardust v6.0.0-alpha.3
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stardust={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o,i={exports:{}};function a(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new s(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function s(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return s=function(e){this.s=e,this.n=e.next},s.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new s(e)}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e){return!!globalThis.process?.argv?Promise.resolve().then((function(){return bO})):Promise.resolve().then((function(){return vO})).then((t=>t.importRuntimeModule("auth@v1",e)))}o||(o=1,function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:R(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function b(){}function v(){}function y(){}var S={};c(S,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(I([])));x&&x!==n&&r.call(x,a)&&(S=x);var k=y.prototype=b.prototype=Object.create(S);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function R(e,n,r){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=L(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return v.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},C(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=I,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(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(i));var h,m,g={registerAuthModule:function(e,t){f().then((n=>n.registerAuthModule(e,t)))},setDefaultHostConfig:function(e){f(e).then((t=>t.setDefaultHostConfig(e)))},registerHostConfig:function(e,t){f(t).then((n=>n.registerHostConfig(e,t)))},unregisterHostConfig:function(e){f().then((t=>t.unregisterHostConfig(e)))},getAccessToken:async function({hostConfig:e}){return f(e).then((t=>t.getAccessToken({hostConfig:e})))},getWebResourceAuthParams:async function({hostConfig:e}){return f(e).then((t=>t.getWebResourceAuthParams({hostConfig:e})))}},b={exports:{}},v={};function y(){if(h)return v;h=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var S=y.prototype=new b;S.constructor=y,f(S,g.prototype),S.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,k={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)x.call(n,o)&&!C.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:k.current}}function R(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var L=/\/+/g;function O(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 T(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+O(l,0):i,w(a)?(o="",null!=n&&(o=n.replace(L,"$&/")+"/"),T(a,r,o,"",(function(e){return e}))):null!=a&&(R(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(L,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",w(n))for(var c=0;c<n.length;c++){var u=i+O(s=n[c],c);l+=T(s,r,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),c=0;!(s=n.next()).done;)l+=T(s=s.value,r,o,u=i+O(s,c++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var _={current:null},M={transition:null},N={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};function q(){throw Error("act(...) is not supported in production builds of React.")}return v.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},v.Component=g,v.Fragment=n,v.Profiler=o,v.PureComponent=y,v.StrictMode=r,v.Suspense=l,v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,v.act=q,v.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=f({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=k.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in n)x.call(n,c)&&!C.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==l?l[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},v.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},v.createElement=E,v.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},v.createRef=function(){return{current:null}},v.forwardRef=function(e){return{$$typeof:s,render:e}},v.isValidElement=R,v.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:I}},v.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},v.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},v.unstable_act=q,v.useCallback=function(e,t){return _.current.useCallback(e,t)},v.useContext=function(e){return _.current.useContext(e)},v.useDebugValue=function(){},v.useDeferredValue=function(e){return _.current.useDeferredValue(e)},v.useEffect=function(e,t){return _.current.useEffect(e,t)},v.useId=function(){return _.current.useId()},v.useImperativeHandle=function(e,t,n){return _.current.useImperativeHandle(e,t,n)},v.useInsertionEffect=function(e,t){return _.current.useInsertionEffect(e,t)},v.useLayoutEffect=function(e,t){return _.current.useLayoutEffect(e,t)},v.useMemo=function(e,t){return _.current.useMemo(e,t)},v.useReducer=function(e,t,n){return _.current.useReducer(e,t,n)},v.useRef=function(e){return _.current.useRef(e)},v.useState=function(e){return _.current.useState(e)},v.useSyncExternalStore=function(e,t,n){return _.current.useSyncExternalStore(e,t,n)},v.useTransition=function(){return _.current.useTransition()},v.version="18.3.1",v}function S(){return m||(m=1,b.exports=y()),b.exports}var w=S(),x=n(w),k=t({__proto__:null,default:x},[w]);const C=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var E,R,L={Accessibility_Object_NoTitle:{id:"Accessibility.Object.NoTitle",locale:{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_ActionButton:{id:"Object.ActionButton",locale:{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},Object_AutoChart:{id:"Object.AutoChart",locale:{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},Object_BarChart:{id:"Object.BarChart",locale:{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},Object_BoxPlot:{id:"Object.BoxPlot",locale:{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},Object_BulletChart:{id:"Object.BulletChart",locale:{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},Object_ComboChart:{id:"Object.ComboChart",locale:{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},Object_Container:{id:"Object.Container",locale:{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},Object_DistributionPlot:{id:"Object.DistributionPlot",locale:{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},Object_FilterLabel_All:{id:"Object.FilterLabel.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},Object_FilterLabel_Exclude:{id:"Object.FilterLabel.Exclude",locale:{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},Object_FilterLabel_Unknown:{id:"Object.FilterLabel.Unknown",locale:{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},Object_FilterPane:{id:"Object.FilterPane",locale:{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},Object_FiltersApplied:{id:"Object.FiltersApplied",locale:{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},Object_FunnelChart:{id:"Object.FunnelChart",locale:{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},Object_Gauge:{id:"Object.Gauge",locale:{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},Object_GridChart:{id:"Object.GridChart",locale:{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},Object_Histogram:{id:"Object.Histogram",locale:{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},Object_Kpi:{id:"Object.Kpi",locale:{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},Object_LayoutContainer:{id:"Object.LayoutContainer",locale:{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},Object_LineChart:{id:"Object.LineChart",locale:{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},Object_Listbox:{id:"Object.Listbox",locale:{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","zh-CN":"列表框","zh-TW":"清單方塊"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Map:{id:"Object.Map",locale:{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},Object_MekkoChart:{id:"Object.MekkoChart",locale:{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},Object_NavMenu:{id:"Object.NavMenu",locale:{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},Object_NlgChart:{id:"Object.NlgChart",locale:{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},Object_PieChart:{id:"Object.PieChart",locale:{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},Object_PivotTable:{id:"Object.PivotTable",locale:{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},Object_RadarChart:{id:"Object.RadarChart",locale:{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},Object_SankeyChart:{id:"Object.SankeyChart",locale:{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},Object_ScatterPlot:{id:"Object.ScatterPlot",locale:{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},Object_StraightTable:{id:"Object.StraightTable",locale:{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},Object_TabContainer:{id:"Object.TabContainer",locale:{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ付きコンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},Object_Table:{id:"Object.Table",locale:{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Table_Deprecated:{id:"Object.Table.Deprecated",locale:{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Text:{id:"Object.Text",locale:{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},Object_TextImage:{id:"Object.TextImage",locale:{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},Object_Treemap:{id:"Object.Treemap",locale:{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","zh-CN":"树形图","zh-TW":"樹狀圖"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Object_WaterfallChart:{id:"Object.WaterfallChart",locale:{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","zh-CN":"瀑布图","zh-TW":"瀑布圖"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function O(e){const t=C({initial:e});return Object.keys(L).forEach((e=>{t.translator.add(L[e])})),{translator:t.translator}}var T=function(){if(R)return E;R=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},E=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},E}(),P=n(T);function I(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function M(){}var N,q,D=.7,A=1/D,z="\\s*([+-]?\\d+)\\s*",j="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",F="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$=/^#([0-9a-f]{3,8})$/,B=new RegExp(`^rgb\\(${z},${z},${z}\\)$`),W=new RegExp(`^rgb\\(${F},${F},${F}\\)$`),U=new RegExp(`^rgba\\(${z},${z},${z},${j}\\)$`),H=new RegExp(`^rgba\\(${F},${F},${F},${j}\\)$`),V=new RegExp(`^hsl\\(${j},${F},${F}\\)$`),G=new RegExp(`^hsla\\(${j},${F},${F},${j}\\)$`),K={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function J(){return this.rgb().formatHex()}function Z(){return this.rgb().formatRgb()}function X(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Q(t):3===n?new te(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Y(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Y(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=B.exec(e))?new te(t[1],t[2],t[3],1):(t=W.exec(e))?new te(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=U.exec(e))?Y(t[1],t[2],t[3],t[4]):(t=H.exec(e))?Y(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=V.exec(e))?se(t[1],t[2]/100,t[3]/100,1):(t=G.exec(e))?se(t[1],t[2]/100,t[3]/100,t[4]):K.hasOwnProperty(e)?Q(K[e]):"transparent"===e?new te(NaN,NaN,NaN,0):null}function Q(e){return new te(e>>16&255,e>>8&255,255&e,1)}function Y(e,t,n,r){return r<=0&&(e=t=n=NaN),new te(e,t,n,r)}function ee(e,t,n,r){return 1===arguments.length?function(e){return e instanceof M||(e=X(e)),e?new te((e=e.rgb()).r,e.g,e.b,e.opacity):new te}(e):new te(e,t,n,null==r?1:r)}function te(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ne(){return`#${ae(this.r)}${ae(this.g)}${ae(this.b)}`}function re(){const e=oe(this.opacity);return`${1===e?"rgb(":"rgba("}${ie(this.r)}, ${ie(this.g)}, ${ie(this.b)}${1===e?")":`, ${e})`}`}function oe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ie(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ae(e){return((e=ie(e))<16?"0":"")+e.toString(16)}function se(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ce(e,t,n,r)}function le(e){if(e instanceof ce)return new ce(e.h,e.s,e.l,e.opacity);if(e instanceof M||(e=X(e)),!e)return new ce;if(e instanceof ce)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new ce(a,s,l,e.opacity)}function ce(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ue(e){return(e=(e||0)%360)<0?e+360:e}function de(e){return Math.max(0,Math.min(1,e||0))}function pe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}I(M,X,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:J,formatHex:J,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return le(this).formatHsl()},formatRgb:Z,toString:Z}),I(te,ee,_(M,{brighter(e){return e=null==e?A:Math.pow(A,e),new te(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?D:Math.pow(D,e),new te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new te(ie(this.r),ie(this.g),ie(this.b),oe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ne,formatHex:ne,formatHex8:function(){return`#${ae(this.r)}${ae(this.g)}${ae(this.b)}${ae(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:re,toString:re})),I(ce,(function(e,t,n,r){return 1===arguments.length?le(e):new ce(e,t,n,null==r?1:r)}),_(M,{brighter(e){return e=null==e?A:Math.pow(A,e),new ce(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?D:Math.pow(D,e),new ce(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new te(pe(e>=240?e-240:e+120,o,r),pe(e,o,r),pe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ce(ue(this.h),de(this.s),de(this.l),oe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=oe(this.opacity);return`${1===e?"hsl(":"hsla("}${ue(this.h)}, ${100*de(this.s)}%, ${100*de(this.l)}%${1===e?")":`, ${e})`}`}}));var fe=function(){if(q)return N;q=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return N=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},N}(),he=n(fe),me={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px",backgroundColor:"transparent"},subTitle:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},be={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},ve={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const ye={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Se=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,we=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,xe=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,ke=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,Ce=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Ee=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Re}=Math,{round:Le}=Math;class Oe{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,i,a,s,l,c,u,d,p,f,h,m=0,g=0,b=0,v=1;if(this._invalid=!1,t[0]instanceof Oe)m=t[0]._r,g=t[0]._g,b=t[0]._b,v=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),b=parseInt(f[3],10);else if(f=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),b=parseInt(f[3],10),v=parseFloat(f[4]);else if(f=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))v=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),b=parseInt(f[4],10);else if(f=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(f[1],16),g=parseInt(f[2],16),b=parseInt(f[3],16),v=1;else if(f=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(f[1]+f[1],16),g=parseInt(f[2]+f[2],16),b=parseInt(f[3]+f[3],16),v=1;else if(f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),a=parseFloat(f[5]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=Le(255*m),g=Le(255*g),b=Le(255*b),v=1}else if(f=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),a=parseFloat(f[5]),v=parseFloat(f[7]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=Le(255*m),g=Le(255*g),b=Le(255*b)}else if(f=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),s=parseFloat(f[5]),r%=360,o/=100,s/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,s=s<0?0:s>1?1:s,l=s*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=s-l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=Le(255*m),g=Le(255*g),b=Le(255*b),v=1}else ye[h.toLowerCase()]?(i=h.toLowerCase(),m=ye[i].r,g=ye[i].g,b=ye[i].b,v="number"==typeof ye[i].a?ye[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(v=(4278190080&t[0])>>>24,v/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],v=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+v)&&(this._invalid=!0),this._r=Re(m),this._g=Re(g),this._b=Re(b),this._a=v,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Oe.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Oe.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Oe.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Oe.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Oe.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Oe.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Oe.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Oe.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let i=parseFloat(n[5]);const a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}isEqual(e){return e instanceof Oe||(e=new Oe(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=Re(this._r+(e._r-this._r)*t),r=Re(this._g+(e._g-this._g)*t),o=Re(this._b+(e._b-this._b)*t),i=Re(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Oe(r)}static toRGB(e){if(e instanceof Oe)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=Oe.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof Oe)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=Oe.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof Oe?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=Oe.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Oe(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),u=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+u)/2,c===u)n=0,i=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Oe(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,u=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new Oe(e));const o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(n=s-l,t=0===n?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof Oe)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,i=0,a=0,s=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(i=parseInt(r[1],10),a=parseInt(r[2],10),s=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(i=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(i=parseInt(r[1]+r[1],16),a=parseInt(r[2]+r[2],16),s=parseInt(r[3]+r[3],16))),(i<<16)+(a<<8)+s}static blend(e,t,n){const r=(16711680&(e=Oe.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Oe.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new Oe(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Se.test(e)||we.test(e)||xe.test(e)||ke.test(e)||Ce.test(e)||Ee.test(e)||ye[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Oe(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class Te{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=X(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([X(e),X(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const i=this.colorParts[t][o],a=i[0],s=i[1];if(e===this.min)return s;if(e===this.max)return a;const l=function(e,t,n){return ee(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(a,s,r-o);return l}}function Pe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ie(e,t,n){const r=[],o=new Te(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);r.push(e[i]),n||r.push(e[i]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function _e(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=Pe(1/t*o,t,n);i=e.getColor(r);break}}r.push(X(i).formatHex())}return r}function Me(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=Ie(e,n,!0),o=Ie(_e(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(_e(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function Ne(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function qe(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function De(e,t,n,r){let o;if(""===e)o=Ne(null,n);else{o=Ne(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=qe(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Ae(e,t){const n=e.split(".");return{getStyle:(e,r)=>De(e,r,n.concat(),t)}}function ze(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ze(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function je(e){const t=X(e);if(!t)return 0;const{r:n,g:r,b:o}=t.rgb(),[i,a,s]=[n,r,o].map((e=>e/255)),[l,c,u]=[i,a,s].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*u).toFixed(5)}Ae.resolveRawTheme=e=>{const t=he(!0,{},e);return ze(t,t._variables),t.scales&&Me(t.scales,t.dataColors&&t.dataColors.nullColor),t};const Fe=1e3;function $e(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(je);return{getBestContrastColor(o){if(!t[o]){n>Fe&&(t={},n=0);const i=je(o),a=r.map((e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}function Be(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=Ae(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=X(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?be:ge;let r=ve;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=he(!0,{},me,r,n),i=he(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,Ae.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){const n="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),r="string"==typeof(null==e?void 0:e.color);if(!n&&!r)return;const o=(()=>(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return o;const i=new Oe(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const s=o.getStyle("","","color"),l=je(s);n=$e([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(P.prototype).forEach((e=>{o[e]=P.prototype[e]})),P.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const We=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),Ue=5e3;function He(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var Ve,Ge,Ke,Je,Ze,Xe={},Qe={exports:{}},Ye={},et={exports:{}},tt={};function nt(){return Ge||(Ge=1,et.exports=(Ve||(Ve=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function S(e){if(m=!1,y(e),!h)if(null!==n(l))h=!0,_(w);else{var t=n(c);null!==t&&M(S,t.startTime-e)}}function w(t,o){h=!1,m&&(m=!1,b(E),E=-1),f=!0;var i=p;try{for(y(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!O());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),y(o)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&M(S,g.startTime-o),u=!1}return u}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,k=!1,C=null,E=-1,R=5,L=-1;function O(){return!(e.unstable_now()-L<R)}function T(){if(null!==C){var t=e.unstable_now();L=t;var n=!0;try{n=C(!0,t)}finally{n?x():(k=!1,C=null)}}else k=!1}if("function"==typeof v)x=function(){v(T)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,I=P.port2;P.port1.onmessage=T,x=function(){I.postMessage(null)}}else x=function(){g(T,0)};function _(e){C=e,k||(k=!0,x())}function M(t,n){E=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,_(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(m?(b(E),E=-1):m=!0,M(S,i-a))):(r.sortIndex=s,t(l,r),h||f||(h=!0,_(w))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(tt)),tt)),et.exports}
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stardust={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,o={exports:{}};function i(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new a(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function a(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return a=function(e){this.s=e,this.n=e.next},a.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new a(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e){return!!globalThis.process?.argv?Promise.resolve().then((function(){return uL})):Promise.resolve().then((function(){return dL})).then((t=>t.importRuntimeModule("auth@v1",e)))}r||(r=1,function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:R(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function b(){}function y(){}function v(){}var S={};c(S,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(I([])));x&&x!==n&&r.call(x,a)&&(S=x);var k=v.prototype=b.prototype=Object.create(S);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function R(e,n,r){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=L(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,o(k,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},C(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=I,O.prototype={constructor:O,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(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(o));var f,h,m={registerAuthModule:function(e,t){p().then((n=>n.registerAuthModule(e,t)))},setDefaultHostConfig:function(e){p(e).then((t=>t.setDefaultHostConfig(e)))},registerHostConfig:function(e,t){p(t).then((n=>n.registerHostConfig(e,t)))},unregisterHostConfig:function(e){p().then((t=>t.unregisterHostConfig(e)))},getAccessToken:async function({hostConfig:e}){return p(e).then((t=>t.getAccessToken({hostConfig:e})))},getWebResourceAuthParams:async function({hostConfig:e}){return p(e).then((t=>t.getWebResourceAuthParams({hostConfig:e})))}},g={exports:{}},b={};function y(){if(f)return b;f=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var S=v.prototype=new y;S.constructor=v,h(S,g.prototype),S.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,k={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)x.call(n,o)&&!C.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:k.current}}function R(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var L=/\/+/g;function P(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 T(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+P(l,0):i,w(a)?(o="",null!=n&&(o=n.replace(L,"$&/")+"/"),T(a,r,o,"",(function(e){return e}))):null!=a&&(R(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(L,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",w(n))for(var c=0;c<n.length;c++){var u=i+P(s=n[c],c);l+=T(s,r,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),c=0;!(s=n.next()).done;)l+=T(s=s.value,r,o,u=i+P(s,c++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var _={current:null},M={transition:null},q={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};function D(){throw Error("act(...) is not supported in production builds of React.")}return b.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},b.Component=g,b.Fragment=n,b.Profiler=o,b.PureComponent=v,b.StrictMode=r,b.Suspense=l,b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,b.act=D,b.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=h({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=k.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in n)x.call(n,c)&&!C.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==l?l[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},b.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},b.createElement=E,b.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},b.createRef=function(){return{current:null}},b.forwardRef=function(e){return{$$typeof:s,render:e}},b.isValidElement=R,b.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:I}},b.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},b.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},b.unstable_act=D,b.useCallback=function(e,t){return _.current.useCallback(e,t)},b.useContext=function(e){return _.current.useContext(e)},b.useDebugValue=function(){},b.useDeferredValue=function(e){return _.current.useDeferredValue(e)},b.useEffect=function(e,t){return _.current.useEffect(e,t)},b.useId=function(){return _.current.useId()},b.useImperativeHandle=function(e,t,n){return _.current.useImperativeHandle(e,t,n)},b.useInsertionEffect=function(e,t){return _.current.useInsertionEffect(e,t)},b.useLayoutEffect=function(e,t){return _.current.useLayoutEffect(e,t)},b.useMemo=function(e,t){return _.current.useMemo(e,t)},b.useReducer=function(e,t,n){return _.current.useReducer(e,t,n)},b.useRef=function(e){return _.current.useRef(e)},b.useState=function(e){return _.current.useState(e)},b.useSyncExternalStore=function(e,t,n){return _.current.useSyncExternalStore(e,t,n)},b.useTransition=function(){return _.current.useTransition()},b.version="18.3.1",b}function v(){return h||(h=1,g.exports=y()),g.exports}var S=v(),w=n(S),x=t({__proto__:null,default:w},[S]);const k=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var C,E,R={Accessibility_Object_NoTitle:{id:"Accessibility.Object.NoTitle",locale:{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_ActionButton:{id:"Object.ActionButton",locale:{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},Object_AutoChart:{id:"Object.AutoChart",locale:{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},Object_BarChart:{id:"Object.BarChart",locale:{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},Object_BoxPlot:{id:"Object.BoxPlot",locale:{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},Object_BulletChart:{id:"Object.BulletChart",locale:{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},Object_ComboChart:{id:"Object.ComboChart",locale:{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},Object_Container:{id:"Object.Container",locale:{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},Object_DistributionPlot:{id:"Object.DistributionPlot",locale:{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},Object_FilterLabel_All:{id:"Object.FilterLabel.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},Object_FilterLabel_Exclude:{id:"Object.FilterLabel.Exclude",locale:{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},Object_FilterLabel_Unknown:{id:"Object.FilterLabel.Unknown",locale:{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},Object_FilterPane:{id:"Object.FilterPane",locale:{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},Object_FiltersApplied:{id:"Object.FiltersApplied",locale:{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},Object_FunnelChart:{id:"Object.FunnelChart",locale:{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},Object_Gauge:{id:"Object.Gauge",locale:{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},Object_GridChart:{id:"Object.GridChart",locale:{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},Object_Histogram:{id:"Object.Histogram",locale:{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},Object_Kpi:{id:"Object.Kpi",locale:{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},Object_LayoutContainer:{id:"Object.LayoutContainer",locale:{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},Object_LineChart:{id:"Object.LineChart",locale:{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},Object_Listbox:{id:"Object.Listbox",locale:{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","zh-CN":"列表框","zh-TW":"清單方塊"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Map:{id:"Object.Map",locale:{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},Object_MekkoChart:{id:"Object.MekkoChart",locale:{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},Object_NavMenu:{id:"Object.NavMenu",locale:{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},Object_NlgChart:{id:"Object.NlgChart",locale:{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},Object_PieChart:{id:"Object.PieChart",locale:{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},Object_PivotTable:{id:"Object.PivotTable",locale:{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},Object_RadarChart:{id:"Object.RadarChart",locale:{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},Object_SankeyChart:{id:"Object.SankeyChart",locale:{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},Object_ScatterPlot:{id:"Object.ScatterPlot",locale:{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},Object_StraightTable:{id:"Object.StraightTable",locale:{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},Object_TabContainer:{id:"Object.TabContainer",locale:{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ付きコンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},Object_Table:{id:"Object.Table",locale:{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Table_Deprecated:{id:"Object.Table.Deprecated",locale:{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Text:{id:"Object.Text",locale:{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},Object_TextImage:{id:"Object.TextImage",locale:{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},Object_Treemap:{id:"Object.Treemap",locale:{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","zh-CN":"树形图","zh-TW":"樹狀圖"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Object_WaterfallChart:{id:"Object.WaterfallChart",locale:{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","zh-CN":"瀑布图","zh-TW":"瀑布圖"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function L(e){const t=k({initial:e});return Object.keys(R).forEach((e=>{t.translator.add(R[e])})),{translator:t.translator}}var P=function(){if(E)return C;E=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},C=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},C}(),T=n(P);function O(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function I(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function _(){}var M,q,D=.7,N=1/D,A="\\s*([+-]?\\d+)\\s*",z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",j="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",F=/^#([0-9a-f]{3,8})$/,$=new RegExp(`^rgb\\(${A},${A},${A}\\)$`),B=new RegExp(`^rgb\\(${j},${j},${j}\\)$`),W=new RegExp(`^rgba\\(${A},${A},${A},${z}\\)$`),H=new RegExp(`^rgba\\(${j},${j},${j},${z}\\)$`),U=new RegExp(`^hsl\\(${z},${j},${j}\\)$`),V=new RegExp(`^hsla\\(${z},${j},${j},${z}\\)$`),G={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function K(){return this.rgb().formatHex()}function J(){return this.rgb().formatRgb()}function Z(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=F.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?X(t):3===n?new ee(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Q(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Q(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=$.exec(e))?new ee(t[1],t[2],t[3],1):(t=B.exec(e))?new ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=W.exec(e))?Q(t[1],t[2],t[3],t[4]):(t=H.exec(e))?Q(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=U.exec(e))?ae(t[1],t[2]/100,t[3]/100,1):(t=V.exec(e))?ae(t[1],t[2]/100,t[3]/100,t[4]):G.hasOwnProperty(e)?X(G[e]):"transparent"===e?new ee(NaN,NaN,NaN,0):null}function X(e){return new ee(e>>16&255,e>>8&255,255&e,1)}function Q(e,t,n,r){return r<=0&&(e=t=n=NaN),new ee(e,t,n,r)}function Y(e,t,n,r){return 1===arguments.length?function(e){return e instanceof _||(e=Z(e)),e?new ee((e=e.rgb()).r,e.g,e.b,e.opacity):new ee}(e):new ee(e,t,n,null==r?1:r)}function ee(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function te(){return`#${ie(this.r)}${ie(this.g)}${ie(this.b)}`}function ne(){const e=re(this.opacity);return`${1===e?"rgb(":"rgba("}${oe(this.r)}, ${oe(this.g)}, ${oe(this.b)}${1===e?")":`, ${e})`}`}function re(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ie(e){return((e=oe(e))<16?"0":"")+e.toString(16)}function ae(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new le(e,t,n,r)}function se(e){if(e instanceof le)return new le(e.h,e.s,e.l,e.opacity);if(e instanceof _||(e=Z(e)),!e)return new le;if(e instanceof le)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new le(a,s,l,e.opacity)}function le(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ce(e){return(e=(e||0)%360)<0?e+360:e}function ue(e){return Math.max(0,Math.min(1,e||0))}function de(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}O(_,Z,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:K,formatHex:K,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return se(this).formatHsl()},formatRgb:J,toString:J}),O(ee,Y,I(_,{brighter(e){return e=null==e?N:Math.pow(N,e),new ee(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?D:Math.pow(D,e),new ee(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ee(oe(this.r),oe(this.g),oe(this.b),re(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:te,formatHex:te,formatHex8:function(){return`#${ie(this.r)}${ie(this.g)}${ie(this.b)}${ie(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ne,toString:ne})),O(le,(function(e,t,n,r){return 1===arguments.length?se(e):new le(e,t,n,null==r?1:r)}),I(_,{brighter(e){return e=null==e?N:Math.pow(N,e),new le(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?D:Math.pow(D,e),new le(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ee(de(e>=240?e-240:e+120,o,r),de(e,o,r),de(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new le(ce(this.h),ue(this.s),ue(this.l),re(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=re(this.opacity);return`${1===e?"hsl(":"hsla("}${ce(this.h)}, ${100*ue(this.s)}%, ${100*ue(this.l)}%${1===e?")":`, ${e})`}`}}));var pe=function(){if(q)return M;q=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return M=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},M}(),fe=n(pe),he={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px",backgroundColor:"transparent"},subTitle:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},me={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},be={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const ye={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ve=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Se=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,we=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,xe=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,ke=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Ce=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Ee}=Math,{round:Re}=Math;class Le{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,i,a,s,l,c,u,d,p,f,h,m=0,g=0,b=0,y=1;if(this._invalid=!1,t[0]instanceof Le)m=t[0]._r,g=t[0]._g,b=t[0]._b,y=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),b=parseInt(f[3],10);else if(f=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),b=parseInt(f[3],10),y=parseFloat(f[4]);else if(f=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))y=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),b=parseInt(f[4],10);else if(f=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(f[1],16),g=parseInt(f[2],16),b=parseInt(f[3],16),y=1;else if(f=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(f[1]+f[1],16),g=parseInt(f[2]+f[2],16),b=parseInt(f[3]+f[3],16),y=1;else if(f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),a=parseFloat(f[5]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=Re(255*m),g=Re(255*g),b=Re(255*b),y=1}else if(f=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),a=parseFloat(f[5]),y=parseFloat(f[7]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=Re(255*m),g=Re(255*g),b=Re(255*b)}else if(f=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),s=parseFloat(f[5]),r%=360,o/=100,s/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,s=s<0?0:s>1?1:s,l=s*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=s-l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=Re(255*m),g=Re(255*g),b=Re(255*b),y=1}else ye[h.toLowerCase()]?(i=h.toLowerCase(),m=ye[i].r,g=ye[i].g,b=ye[i].b,y="number"==typeof ye[i].a?ye[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(y=(4278190080&t[0])>>>24,y/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],y=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+y)&&(this._invalid=!0),this._r=Ee(m),this._g=Ee(g),this._b=Ee(b),this._a=y,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Le.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Le.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Le.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Le.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Le.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Le.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Le.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Le.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let i=parseFloat(n[5]);const a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}isEqual(e){return e instanceof Le||(e=new Le(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=Ee(this._r+(e._r-this._r)*t),r=Ee(this._g+(e._g-this._g)*t),o=Ee(this._b+(e._b-this._b)*t),i=Ee(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Le(r)}static toRGB(e){if(e instanceof Le)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=Le.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof Le)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=Le.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof Le?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=Le.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Le(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),u=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+u)/2,c===u)n=0,i=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Le(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,u=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new Le(e));const o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(n=s-l,t=0===n?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof Le)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,i=0,a=0,s=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(i=parseInt(r[1],10),a=parseInt(r[2],10),s=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(i=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(i=parseInt(r[1]+r[1],16),a=parseInt(r[2]+r[2],16),s=parseInt(r[3]+r[3],16))),(i<<16)+(a<<8)+s}static blend(e,t,n){const r=(16711680&(e=Le.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Le.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new Le(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(ve.test(e)||Se.test(e)||we.test(e)||xe.test(e)||ke.test(e)||Ce.test(e)||ye[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Le(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class Pe{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Z(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([Z(e),Z(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const i=this.colorParts[t][o],a=i[0],s=i[1];if(e===this.min)return s;if(e===this.max)return a;const l=function(e,t,n){return Y(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(a,s,r-o);return l}}function Te(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Oe(e,t,n){const r=[],o=new Pe(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);r.push(e[i]),n||r.push(e[i]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function Ie(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=Te(1/t*o,t,n);i=e.getColor(r);break}}r.push(Z(i).formatHex())}return r}function _e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=Oe(e,n,!0),o=Oe(Ie(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(Ie(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function Me(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function qe(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function De(e,t,n,r){let o;if(""===e)o=Me(null,n);else{o=Me(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=qe(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Ne(e,t){const n=e.split(".");return{getStyle:(e,r)=>De(e,r,n.concat(),t)}}function Ae(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?Ae(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function ze(e){const t=Z(e);if(!t)return 0;const{r:n,g:r,b:o}=t.rgb(),[i,a,s]=[n,r,o].map((e=>e/255)),[l,c,u]=[i,a,s].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*u).toFixed(5)}Ne.resolveRawTheme=e=>{const t=fe(!0,{},e);return Ae(t,t._variables),t.scales&&_e(t.scales,t.dataColors&&t.dataColors.nullColor),t};const je=1e3;function Fe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(ze);return{getBestContrastColor(o){if(!t[o]){n>je&&(t={},n=0);const i=ze(o),a=r.map((e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}function $e(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=Ne(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=Z(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?ge:me;let r=be;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=fe(!0,{},he,r,n),i=fe(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,Ne.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){const n="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),r="string"==typeof(null==e?void 0:e.color);if(!n&&!r)return;const o=(()=>(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return o;const i=new Le(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const s=o.getStyle("","","color"),l=ze(s);n=Fe([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(T.prototype).forEach((e=>{o[e]=T.prototype[e]})),T.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const Be=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),We=5e3;function He(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var Ue,Ve,Ge,Ke,Je,Ze={},Xe={exports:{}},Qe={},Ye={exports:{}},et={};function tt(){return Ve||(Ve=1,Ye.exports=(Ue||(Ue=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function v(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function S(e){if(m=!1,v(e),!h)if(null!==n(l))h=!0,_(w);else{var t=n(c);null!==t&&M(S,t.startTime-e)}}function w(t,o){h=!1,m&&(m=!1,b(E),E=-1),f=!0;var i=p;try{for(v(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!P());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),v(o)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&M(S,g.startTime-o),u=!1}return u}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,k=!1,C=null,E=-1,R=5,L=-1;function P(){return!(e.unstable_now()-L<R)}function T(){if(null!==C){var t=e.unstable_now();L=t;var n=!0;try{n=C(!0,t)}finally{n?x():(k=!1,C=null)}}else k=!1}if("function"==typeof y)x=function(){y(T)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,I=O.port2;O.port1.onmessage=T,x=function(){I.postMessage(null)}}else x=function(){g(T,0)};function _(e){C=e,k||(k=!0,x())}function M(t,n){E=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,_(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(m?(b(E),E=-1):m=!0,M(S,i-a))):(r.sortIndex=s,t(l,r),h||f||(h=!0,_(w))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(et)),et)),Ye.exports}
8
8
  /**
9
9
  * @license React
10
10
  * react-dom.production.min.js
@@ -13,14 +13,14 @@
13
13
  *
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
- */function rt(){if(Ke)return Ye;Ke=1;var e=S(),t=nt();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},d={};function p(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){f[e]=new p(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];f[t]=new p(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){f[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){f[e]=new p(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){f[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){f[e]=new p(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){f[e]=new p(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){f[e]=new p(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){f[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=f.hasOwnProperty(t)?f[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!l.call(d,e)||!l.call(u,e)&&(c.test(e)?d[e]=!0:(u[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);f[t]=new p(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(h,m);f[t]=new p(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(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)})),f.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.element"),y=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),_=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=_&&e[_]||e["@@iterator"])?e:null}var N,q=Object.assign;function D(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var A=!1;function z(e,t){if(!e||A)return"";A=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function j(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(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 w:return"Fragment";case y:return"Portal";case k:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function H(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function Z(e,t){J(e,t);var n=B(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Q(e,t.type,n):t.hasOwnProperty("defaultValue")&&Q(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Q(e,t,n){"number"===t&&V(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Y=Array.isArray;function ee(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+B(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ne(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Y(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function re(e,t){var n=B(t.value),r=B(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(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 ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,le=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ce(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ue={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];function pe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ue.hasOwnProperty(e)&&ue[e]?(""+t).trim():t+"px"}function fe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=pe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ue).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ue[t]=ue[e]}))}));var he=q({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 me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ge(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ye=null,Se=null,we=null;function xe(e){if(e=So(e)){if("function"!=typeof ye)throw Error(n(280));var t=e.stateNode;t&&(t=xo(t),ye(e.stateNode,e.type,t))}}function ke(e){Se?we?we.push(e):we=[e]:Se=e}function Ce(){if(Se){var e=Se,t=we;if(we=Se=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Ee(e,t){return e(t)}function Re(){}var Le=!1;function Oe(e,t,n){if(Le)return e(t,n);Le=!0;try{return Ee(e,t,n)}finally{Le=!1,(null!==Se||null!==we)&&(Re(),Ce())}}function Te(e,t){var r=e.stateNode;if(null===r)return null;var o=xo(r);if(null===o)return null;r=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Pe=!1;if(s)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Pe=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(e){Pe=!1}function _e(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Me=!1,Ne=null,qe=!1,De=null,Ae={onError:function(e){Me=!0,Ne=e}};function ze(e,t,n,r,o,i,a,s,l){Me=!1,Ne=null,_e.apply(Ae,arguments)}function je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(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 $e(e){if(je(e)!==e)throw Error(n(188))}function Be(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return $e(i),e;if(a===o)return $e(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,He=t.unstable_cancelCallback,Ve=t.unstable_shouldYield,Ge=t.unstable_requestPaint,Je=t.unstable_now,Ze=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Qe=t.unstable_UserBlockingPriority,et=t.unstable_NormalPriority,tt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function St(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,xt,kt,Ct,Et,Rt=!1,Lt=[],Ot=null,Tt=null,Pt=null,It=new Map,_t=new Map,Mt=[],Nt="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 qt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_t.delete(t.pointerId)}}function Dt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=So(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function At(e){var t=yo(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Et(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=So(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function jt(e,t,n){zt(e)&&n.delete(t)}function Ft(){Rt=!1,null!==Ot&&zt(Ot)&&(Ot=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==Pt&&zt(Pt)&&(Pt=null),It.forEach(jt),_t.forEach(jt)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Rt||(Rt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ft)))}function Bt(e){function t(t){return $t(t,e)}if(0<Lt.length){$t(Lt[0],e);for(var n=1;n<Lt.length;n++){var r=Lt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&$t(Ot,e),null!==Tt&&$t(Tt,e),null!==Pt&&$t(Pt,e),It.forEach(t),_t.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)At(n),null===n.blockedOn&&Mt.shift()}var Wt=b.ReactCurrentBatchConfig,Ut=!0;function Ht(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,Gt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Vt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,Gt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Gt(e,t,n,r){if(Ut){var o=Jt(e,t,n,r);if(null===o)Ur(e,t,r,Kt,n),qt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=Dt(Ot,e,t,n,r,o),!0;case"dragenter":return Tt=Dt(Tt,e,t,n,r,o),!0;case"mouseover":return Pt=Dt(Pt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Dt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,_t.set(i,Dt(_t.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(qt(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var i=So(o);if(null!==i&&wt(i),null===(i=Jt(e,t,n,r))&&Ur(e,t,r,Kt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Kt=null;function Jt(e,t,n,r){if(Kt=null,null!==(e=yo(e=ve(r))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Xe:return 1;case Qe:return 4;case et:case tt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Qt=null,Yt=null;function en(){if(Yt)return Yt;var e,t,n=Qt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return q(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=q({},cn,{view:0,detail:0}),pn=on(dn),fn=q({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,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!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(fn),mn=on(q({},fn,{dataTransfer:0})),gn=on(q({},dn,{relatedTarget:0})),bn=on(q({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=q({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(vn),Sn=on(q({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return Cn}var Rn=q({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ln=on(Rn),On=on(q({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(q({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Pn=on(q({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=q({},fn,{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}),_n=on(In),Mn=[9,13,27,32],Nn=s&&"CompositionEvent"in window,qn=null;s&&"documentMode"in document&&(qn=document.documentMode);var Dn=s&&"TextEvent"in window&&!qn,An=s&&(!Nn||qn&&8<qn&&11>=qn),zn=String.fromCharCode(32),jn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){ke(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Gn=null;function Kn(e){zr(e,0)}function Jn(e){if(H(wo(e)))return e}function Zn(e,t){if("change"===e)return t}var Xn=!1;if(s){var Qn;if(s){var Yn="oninput"in document;if(!Yn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Yn="function"==typeof er.oninput}Qn=Yn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Gn=Vn=null)}function nr(e){if("value"===e.propertyName&&Jn(Gn)){var t=[];Hn(t,Gn,e,ve(e)),Oe(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Gn)}function ir(e,t){if("click"===e)return Jn(t)}function ar(e,t){if("input"===e||"change"===e)return Jn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!l.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=s&&"documentMode"in document&&11>=document.documentMode,gr=null,br=null,vr=null,yr=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==V(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Vr(br,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},kr={},Cr={};function Er(e){if(kr[e])return kr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return kr[e]=n[t];return e}s&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Rr=Er("animationend"),Lr=Er("animationiteration"),Or=Er("animationstart"),Tr=Er("transitionend"),Pr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _r(e,t){Pr.set(e,t),i(t,[e])}for(var Mr=0;Mr<Ir.length;Mr++){var Nr=Ir[Mr];_r(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}_r(Rr,"onAnimationEnd"),_r(Lr,"onAnimationIteration"),_r(Or,"onAnimationStart"),_r("dblclick","onDoubleClick"),_r("focusin","onFocus"),_r("focusout","onBlur"),_r(Tr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(qr));function Ar(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,c){if(ze.apply(this,arguments),Me){if(!Me)throw Error(n(198));var u=Ne;Me=!1,Ne=null,qe||(qe=!0,De=u)}}(o,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ar(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ar(o,s,c),i=l}}}if(qe)throw e=De,qe=!1,De=null,e}function jr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[$r]){e[$r]=!0,r.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Fr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Zt(t)){case 1:var o=Ht;break;case 4:o=Vt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Pe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=yo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Oe((function(){var r=i,o=ve(n),a=[];e:{var s=Pr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Ln;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Rr:case Lr:case Or:l=bn;break;case Tr:l=Pn;break;case"scroll":l=pn;break;case"wheel":l=_n;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Te(h,p))&&u.push(Hr(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yo(c):null)&&(c!==(d=je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=On,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:wo(l),f=null==c?s:wo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,yo(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Gr(f))h++;for(f=0,m=p;m;m=Gr(m))f++;for(;0<h-f;)u=Gr(u),h--;for(;0<f-h;)p=Gr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Gr(u),p=Gr(p)}u=null}else u=null;null!==l&&Kr(a,s,l,u,!1),null!==c&&null!==d&&Kr(a,d,c,u,!0)}if("select"===(l=(s=r?wo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Zn;else if(Un(s))if(Xn)g=ar;else{g=or;var b=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Hn(a,g,n,o):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&Q(s,"number",s.value)),b=r?wo(r):window,e){case"focusin":(Un(b)||"true"===b.contentEditable)&&(gr=b,br=r,vr=null);break;case"focusout":vr=br=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,Sr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":Sr(a,n,o)}var v;if(Nn)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 Bn?Fn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(An&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Bn&&(v=en()):(Qt="value"in(Xt=o)?Xt.value:Xt.textContent,Bn=!0)),0<(b=Vr(r,y)).length&&(y=new Sn(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=$n(n))&&(y.data=v))),(v=Dn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(jn=!0,zn);case"textInput":return(e=t.data)===zn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Nn&&Fn(e,t)?(e=en(),Yt=Qt=Xt=null,Bn=!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 An&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new Sn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}zr(a,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Te(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Te(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Te(n,i))&&a.unshift(Hr(n,l,s)):o||null!=(l=Te(n,i))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Jr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Jr,"\n").replace(Zr,"")}function Qr(e,t,r){if(t=Xr(t),Xr(e)!==t&&r)throw Error(n(425))}function Yr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,bo="__reactListeners$"+po,vo="__reactHandles$"+po;function yo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function So(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function xo(e){return e[ho]||null}var ko=[],Co=-1;function Eo(e){return{current:e}}function Ro(e){0>Co||(e.current=ko[Co],ko[Co]=null,Co--)}function Lo(e,t){Co++,ko[Co]=e.current,e.current=t}var Oo={},To=Eo(Oo),Po=Eo(!1),Io=Oo;function _o(e,t){var n=e.type.contextTypes;if(!n)return Oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!=(e=e.childContextTypes)}function No(){Ro(Po),Ro(To)}function qo(e,t,r){if(To.current!==Oo)throw Error(n(168));Lo(To,t),Lo(Po,r)}function Do(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,$(e)||"Unknown",i));return q({},r,o)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Io=To.current,Lo(To,e),Lo(Po,Po.current),!0}function zo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Do(e,t,Io),o.__reactInternalMemoizedMergedChildContext=e,Ro(Po),Ro(To),Lo(To,e)):Ro(Po),Lo(Po,r)}var jo=null,Fo=!1,$o=!1;function Bo(e){null===jo?jo=[e]:jo.push(e)}function Wo(){if(!$o&&null!==jo){$o=!0;var e=0,t=yt;try{var n=jo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}jo=null,Fo=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),Ue(Xe,Wo),t}finally{yt=t,$o=!1}}return null}var Uo=[],Ho=0,Vo=null,Go=0,Ko=[],Jo=0,Zo=null,Xo=1,Qo="";function Yo(e,t){Uo[Ho++]=Go,Uo[Ho++]=Vo,Vo=e,Go=t}function ei(e,t,n){Ko[Jo++]=Xo,Ko[Jo++]=Qo,Ko[Jo++]=Zo,Zo=e;var r=Xo;e=Qo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Qo=i+e}else Xo=1<<i|n<<o|r,Qo=e}function ti(e){null!==e.return&&(Yo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Uo[--Ho],Uo[Ho]=null,Go=Uo[--Ho],Uo[Ho]=null;for(;e===Zo;)Zo=Ko[--Jo],Ko[Jo]=null,Qo=Ko[--Jo],Ko[Jo]=null,Xo=Ko[--Jo],Ko[Jo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zo?{id:Xo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ci(e))throw Error(n(418));t=co(r.nextSibling);var o=ri;t&&li(e,t)?si(o,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw fi(),Error(n(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function fi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=b.ReactCurrentBatchConfig;function bi(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(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function Si(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(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 i(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ac(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===w?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===P&&yi(o)===t.type)?((r=i(t,n.props)).ref=bi(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=bi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=qc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ac(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case v:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=bi(e,null,t),n.return=e,n;case y:return(t=zc(t,e.mode,n)).return=e,t;case P:return p(e,(0,t._init)(t._payload),n)}if(Y(t)||M(t))return(t=qc(t,e.mode,n,null)).return=e,t;vi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case v:return n.key===o?c(e,t,n,r):null;case y:return n.key===o?u(e,t,n,r):null;case P:return f(e,t,(o=n._init)(n._payload),r)}if(Y(n)||M(n))return null!==o?null:d(e,t,n,r,null);vi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case v:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(Y(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);vi(t,r)}return null}function m(n,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=f(n,d,s[m],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(n,d),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,d=g}if(m===s.length)return r(n,d),ii&&Yo(n,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(n,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Yo(n,m),c}for(d=o(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(n,e)})),ii&&Yo(n,m),c}function g(i,s,l,c){var u=M(l);if("function"!=typeof u)throw Error(n(150));if(null==(l=u.call(l)))throw Error(n(151));for(var d=u=null,m=s,g=s=0,b=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=f(i,m,v.value,c);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(i,m),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y,m=b}if(v.done)return r(i,m),ii&&Yo(i,g),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(i,v.value,c))&&(s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return ii&&Yo(i,g),u}for(m=o(i,m);!v.done;g++,v=l.next())null!==(v=h(m,i,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(i,e)})),ii&&Yo(i,g),u}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===w&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case v:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===w){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===P&&yi(c)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=bi(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===w?((o=qc(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Nc(a.type,a.key,a.props,null,n.mode,l)).ref=bi(n,o,a),l.return=n,n=l)}return s(n);case y:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=zc(a,n.mode,l)).return=n,n=o}return s(n);case P:return e(n,o,(u=a._init)(a._payload),l)}if(Y(a))return m(n,o,a,l);if(M(a))return g(n,o,a,l);vi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Ac(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var wi=Si(!0),xi=Si(!1),ki=Eo(null),Ci=null,Ei=null,Ri=null;function Li(){Ri=Ei=Ci=null}function Oi(e){var t=ki.current;Ro(ki),e._currentValue=t}function Ti(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Pi(e,t){Ci=e,Ri=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(Ri!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Ci)throw Error(n(308));Ei=e,Ci.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var _i=null;function Mi(e){null===_i?_i=[e]:_i.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,qi(e,r)}function qi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Di=!1;function Ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(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 ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ol)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,qi(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,qi(e,n)}function $i(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Bi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Di=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=q({},d,p);break e;case 2:Di=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function Ui(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Hi={},Vi=Eo(Hi),Gi=Eo(Hi),Ki=Eo(Hi);function Ji(e){if(e===Hi)throw Error(n(174));return e}function Zi(e,t){switch(Lo(Ki,t),Lo(Gi,e),Lo(Vi,Hi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ro(Vi),Lo(Vi,t)}function Xi(){Ro(Vi),Ro(Gi),Ro(Ki)}function Qi(e){Ji(Ki.current);var t=Ji(Vi.current),n=ae(t,e.type);t!==n&&(Lo(Gi,e),Lo(Vi,n))}function Yi(e){Gi.current===e&&(Ro(Vi),Ro(Gi))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=b.ReactCurrentDispatcher,ia=b.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,pa=0,fa=0;function ha(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,r,o,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ya:es,e=r(o,i),da){a=0;do{if(da=!1,pa=0,25<=a)throw Error(n(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=r(o,i)}while(da)}if(oa.current=Qa,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(n(300));return e}function ba(){var e=0!==pa;return pa=0,e}function va(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ya(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(n(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function Sa(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=ya(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=la,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),o=u.hasEagerState?u.eagerState:e(o,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=o):c=c.next=p,sa.lanes|=d,Dl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=o:c.next=l,sr(o,t.memoizedState)||(ys=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=c,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Dl|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function xa(e){var t=ya(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(ys=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function ka(){}function Ca(e,t){var r=sa,o=ya(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,ys=!0),o=o.queue,Da(La.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Ia(9,Ra.bind(null,r,o,i,t),void 0,null),null===Tl)throw Error(n(349));0!=(30&aa)||Ea(r,t,i)}return i}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ra(e,t,n,r){t.value=n,t.getSnapshot=r,Oa(t)&&Ta(e)}function La(e,t,n){return n((function(){Oa(t)&&Ta(e)}))}function Oa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ta(e){var t=qi(e,1);null!==t&&nc(t,e,1,-1)}function Pa(e){var t=va();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function _a(){return ya().memoizedState}function Ma(e,t,n,r){var o=va();sa.flags|=e,o.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Na(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ia(t,n,i,r))}sa.flags|=e,o.memoizedState=Ia(1|t,n,i,r)}function qa(e,t){return Ma(8390656,8,e,t)}function Da(e,t){return Na(2048,8,e,t)}function Aa(e,t){return Na(4,2,e,t)}function za(e,t){return Na(4,4,e,t)}function ja(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fa(e,t,n){return n=null!=n?n.concat([e]):null,Na(4,4,ja.bind(null,t,e),n)}function $a(){}function Ba(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 0==(21&aa)?(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Dl|=n,e.baseState=!0),t)}function Ha(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Va(){return ya().memoizedState}function Ga(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ja(e))Za(t,n);else if(null!==(n=Ni(e,t,n,r))){nc(n,e,r,ec()),Xa(n,t,r)}}function Ka(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ja(e))Za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Mi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ni(e,t,o,r))&&(nc(n,e,r,o=ec()),Xa(n,t,r))}}function Ja(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Za(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Qa={readContext:Ii,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ya={readContext:Ii,useCallback:function(e,t){return va().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:qa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=va();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=va();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},va().memoizedState=e},useState:Pa,useDebugValue:$a,useDeferredValue:function(e){return va().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Ha.bind(null,e[1]),va().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=va();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Tl)throw Error(n(349));0!=(30&aa)||Ea(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,qa(La.bind(null,o,a,e),[e]),o.flags|=2048,Ia(9,Ra.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=va(),t=Tl.identifierPrefix;if(ii){var n=Qo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ii,useCallback:Ba,useContext:Ii,useEffect:Da,useImperativeHandle:Fa,useInsertionEffect:Aa,useLayoutEffect:za,useMemo:Wa,useReducer:wa,useRef:_a,useState:function(){return wa(Sa)},useDebugValue:$a,useDeferredValue:function(e){return Ua(ya(),la.memoizedState,e)},useTransition:function(){return[wa(Sa)[0],ya().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ca,useId:Va,unstable_isNewReconciler:!1},ts={readContext:Ii,useCallback:Ba,useContext:Ii,useEffect:Da,useImperativeHandle:Fa,useInsertionEffect:Aa,useLayoutEffect:za,useMemo:Wa,useReducer:xa,useRef:_a,useState:function(){return xa(Sa)},useDebugValue:$a,useDeferredValue:function(e){var t=ya();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[xa(Sa)[0],ya().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ca,useId:Va,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=q({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:q({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=ji(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(nc(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=ji(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(nc(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=ji(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Fi(e,o,r))&&(nc(t,e,r,n),$i(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=Oo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ii(i):(o=Mo(t)?Io:To.current,i=(r=null!=(r=t.contextTypes))?_o(e,o):Oo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ii(i):(i=Mo(t)?Io:To.current,o.context=_o(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=ji(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Hl=r),ds(0,t)},n}function hs(e,t,n){(n=ji(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ji(-1,1)).tag=2,Fi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var vs=b.ReactCurrentOwner,ys=!1;function Ss(e,t,n,r){t.child=null===e?xi(t,null,n,r):wi(t,e.child,n,r)}function ws(e,t,n,r,o){n=n.render;var i=t.ref;return Pi(t,o),r=ga(e,t,n,r,i,o),n=ba(),null===e||ys?(ii&&n&&ti(t),t.flags|=1,Ss(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function xs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||_c(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=Mc(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);0!=(131072&e.flags)&&(ys=!0)}}return Rs(e,t,n,r,o)}function Cs(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lo(Ml,_l),_l|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Lo(Ml,_l),_l|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Lo(Ml,_l),_l|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Lo(Ml,_l),_l|=r;return Ss(e,t,o,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rs(e,t,n,r,o){var i=Mo(n)?Io:To.current;return i=_o(t,i),Pi(t,o),n=ga(e,t,n,r,i,o),r=ba(),null===e||ys?(ii&&r&&ti(t),t.flags|=1,Ss(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Ls(e,t,n,r,o){if(Mo(n)){var i=!0;Ao(t)}else i=!1;if(Pi(t,o),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Ii(c):c=_o(t,c=Mo(n)?Io:To.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Di=!1;var p=t.memoizedState;a.state=p,Wi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||Po.current||Di?("function"==typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Di||is(t,n,s,r,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ii(l):l=_o(t,l=Mo(n)?Io:To.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&ss(t,a,r,l),Di=!1,p=t.memoizedState,a.state=p,Wi(t,r,a,o);var h=t.memoizedState;s!==d||p!==h||Po.current||Di?("function"==typeof f&&(rs(t,n,f,r),h=t.memoizedState),(c=Di||is(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,i,o)}function Os(e,t,n,r,o,i){Es(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Us(e,t,i);r=t.stateNode,vs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,s,i)):Ss(e,t,s,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?qo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&qo(0,t.context,!1),Zi(e,t.containerInfo)}function Ps(e,t,n,r,o){return hi(),mi(o),t.flags|=256,Ss(e,t,n,r),t.child}var Is,_s,Ms,Ns,qs={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function As(e,t,r){var o,i=t.pendingProps,a=ea.current,s=!1,l=0!=(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&0!=(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Lo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Dc(l,i,0,null),e=qc(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(r),t.memoizedState=qs,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,js(e,t,s,o=us(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=Dc({mode:"visible",children:o.children},i,0,null),(a=qc(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,0!=(1&t.mode)&&wi(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=qs,a);if(0==(1&t.mode))return js(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,js(e,t,s,o=us(a=Error(n(419)),o,void 0))}if(l=0!=(s&e.childLanes),ys||l){if(null!==(o=Tl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,qi(e,i),nc(o,e,i,-1))}return mc(),js(e,t,s,o=us(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Lc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,oi=co(i.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Ko[Jo++]=Xo,Ko[Jo++]=Qo,Ko[Jo++]=Zo,Xo=e.id,Qo=e.overflow,Zo=t),t=zs(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0==(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==o?s=Mc(o,s):(s=qc(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=qs,i}return e=(s=e.child).sibling,i=Mc(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function js(e,t,n,r){return null!==r&&mi(r),wi(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ti(e.return,t,n)}function $s(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Bs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ss(e,t,r.children,n),0!=(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,n,t);else if(19===e.tag)Fs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Lo(ea,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$s(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$s(t,!0,n,null,i);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Mc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Hs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gs(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Mo(t.type)&&No(),Vs(t),null;case 3:return i=t.stateNode,Xi(),Ro(Po),Ro(To),ra(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),_s(e,t),Vs(t),null;case 5:Yi(t);var a=Ji(Ki.current);if(r=t.type,null!==e&&null!=t.stateNode)Ms(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Vs(t),null}if(e=Ji(Vi.current),pi(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[fo]=t,i[ho]=s,e=0!=(1&t.mode),r){case"dialog":jr("cancel",i),jr("close",i);break;case"iframe":case"object":case"embed":jr("load",i);break;case"video":case"audio":for(a=0;a<qr.length;a++)jr(qr[a],i);break;case"source":jr("error",i);break;case"img":case"image":case"link":jr("error",i),jr("load",i);break;case"details":jr("toggle",i);break;case"input":K(i,s),jr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},jr("invalid",i);break;case"textarea":ne(i,s),jr("invalid",i)}for(var l in me(r,s),a=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?i.textContent!==c&&(!0!==s.suppressHydrationWarning&&Qr(i.textContent,c,e),a=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Qr(i.textContent,c,e),a=["children",""+c]):o.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&jr("scroll",i)}switch(r){case"input":U(i),X(i,s,!0);break;case"textarea":U(i),oe(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Yr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[fo]=t,e[ho]=i,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=ge(r,i),r){case"dialog":jr("cancel",e),jr("close",e),a=i;break;case"iframe":case"object":case"embed":jr("load",e),a=i;break;case"video":case"audio":for(a=0;a<qr.length;a++)jr(qr[a],e);a=i;break;case"source":jr("error",e),a=i;break;case"img":case"image":case"link":jr("error",e),jr("load",e),a=i;break;case"details":jr("toggle",e),a=i;break;case"input":K(e,i),a=G(e,i),jr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=q({},i,{value:void 0}),jr("invalid",e);break;case"textarea":ne(e,i),a=te(e,i),jr("invalid",e)}for(s in me(r,a),c=a)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?fe(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&le(e,u):"children"===s?"string"==typeof u?("textarea"!==r||""!==u)&&ce(e,u):"number"==typeof u&&ce(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=u&&"onScroll"===s&&jr("scroll",e):null!=u&&g(e,s,u,l))}switch(r){case"input":U(e),X(e,i,!1);break;case"textarea":U(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+B(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?ee(e,!!i.multiple,s,!1):null!=i.defaultValue&&ee(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Yr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=Ji(Ki.current),Ji(Vi.current),pi(t)){if(i=t.stateNode,r=t.memoizedProps,i[fo]=t,(s=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Qr(i.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(i.nodeValue,r,0!=(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[fo]=t,t.stateNode=i}return Vs(t),null;case 13:if(Ro(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))fi(),hi(),t.flags|=98560,s=!1;else if(s=pi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[fo]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),s=!1}else null!==ai&&(ac(ai),ai=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ea.current)?0===Nl&&(Nl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Xi(),_s(e,t),null===e&&Br(t.stateNode.containerInfo),Vs(t),null;case 10:return Oi(t.type._context),Vs(t),null;case 19:if(Ro(ea),null===(s=t.memoizedState))return Vs(t),null;if(i=0!=(128&t.flags),null===(l=s.rendering))if(i)Hs(s,!1);else{if(0!==Nl||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Hs(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Lo(ea,1&ea.current|2),t.child}e=e.sibling}null!==s.tail&&Je()>Bl&&(t.flags|=128,i=!0,Hs(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Hs(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Vs(t),null}else 2*Je()-s.renderingStartTime>Bl&&1073741824!==r&&(t.flags|=128,i=!0,Hs(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Je(),t.sibling=null,r=ea.current,Lo(ea,i?1&r|2:1&r),t):(Vs(t),null);case 22:case 23:return dc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&0!=(1&t.mode)?0!=(1073741824&_l)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ks(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),Ro(Po),Ro(To),ra(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Yi(t),null;case 13:if(Ro(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ro(ea),null;case 4:return Xi(),null;case 10:return Oi(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},_s=function(){},Ms=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ji(Vi.current);var a,s=null;switch(n){case"input":i=G(e,i),r=G(e,r),s=[];break;case"select":i=q({},i,{value:void 0}),r=q({},r,{value:void 0}),s=[];break;case"textarea":i=te(e,i),r=te(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(u in me(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Js=!1,Zs=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Qs=null;function Ys(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cc(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Cc(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[bo],delete t[vo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Zs||Ys(n,t);case 6:var r=ul,o=dl;ul=null,pl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Bt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&el(n,t,a),o=o.next}while(o!==r)}pl(e,t,n);break;case 1:if(!Zs&&(Ys(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cc(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,pl(e,t,n),Zs=r):pl(e,t,n);break;default:pl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Oc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(n(160));fl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){Cc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),bl(e),4&o){try{nl(3,e,e.return),rl(3,e)}catch(t){Cc(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Cc(e,e.return,t)}}break;case 1:ml(t,e),bl(e),512&o&&null!==r&&Ys(r,r.return);break;case 5:if(ml(t,e),bl(e),512&o&&null!==r&&Ys(r,r.return),32&e.flags){var i=e.stateNode;try{ce(i,"")}catch(t){Cc(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&J(i,a),ge(l,s);var u=ge(l,a);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?fe(i,p):"dangerouslySetInnerHTML"===d?le(i,p):"children"===d?ce(i,p):g(i,d,p,u)}switch(l){case"input":Z(i,a);break;case"textarea":re(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ee(i,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?ee(i,!!a.multiple,a.defaultValue,!0):ee(i,!!a.multiple,a.multiple?[]:"",!1))}i[ho]=a}catch(t){Cc(e,e.return,t)}}break;case 6:if(ml(t,e),bl(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Cc(e,e.return,t)}}break;case 3:if(ml(t,e),bl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){Cc(e,e.return,t)}break;case 4:default:ml(t,e),bl(e);break;case 13:ml(t,e),bl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||($l=Je())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Zs=(u=Zs)||d,ml(t,e),Zs=u):ml(t,e),bl(e),8192&o){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Qs=e,d=e.child;null!==d;){for(p=Qs=d;null!==Qs;){switch(h=(f=Qs).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Ys(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){o=f,r=f.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cc(o,r,e)}}break;case 5:Ys(f,f.return);break;case 22:if(null!==f.memoizedState){wl(p);continue}}null!==h?(h.return=f,Qs=h):wl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{i=p.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=pe("display",s))}catch(t){Cc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Cc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),bl(e),4&o&&hl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(ce(i,""),o.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(n(161))}}catch(t){Cc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Qs=e,yl(e)}function yl(e,t,n){for(var r=0!=(1&e.mode);null!==Qs;){var o=Qs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Js;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Js;var c=Zs;if(Js=a,(Zs=l)&&!c)for(Qs=o;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Qs=l):xl(o);for(;null!==i;)Qs=i,yl(i),i=i.sibling;Qs=o,Js=s,Zs=c}Sl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Qs=i):Sl(e)}}function Sl(e){for(;null!==Qs;){var t=Qs;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Zs)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:ns(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ui(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Bt(p)}}}break;default:throw Error(n(163))}Zs||512&t.flags&&ol(t)}catch(e){Cc(t,t.return,e)}}if(t===e){Qs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Qs=r;break}Qs=t.return}}function wl(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function xl(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Cc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cc(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Cc(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Cc(t,a,e)}}}catch(e){Cc(t,t.return,e)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var kl,Cl=Math.ceil,El=b.ReactCurrentDispatcher,Rl=b.ReactCurrentOwner,Ll=b.ReactCurrentBatchConfig,Ol=0,Tl=null,Pl=null,Il=0,_l=0,Ml=Eo(0),Nl=0,ql=null,Dl=0,Al=0,zl=0,jl=null,Fl=null,$l=0,Bl=1/0,Wl=null,Ul=!1,Hl=null,Vl=null,Gl=!1,Kl=null,Jl=0,Zl=0,Xl=null,Ql=-1,Yl=0;function ec(){return 0!=(6&Ol)?Je():-1!==Ql?Ql:Ql=Je()}function tc(e){return 0==(1&e.mode)?1:0!=(2&Ol)&&0!==Il?Il&-Il:null!==gi.transition?(0===Yl&&(Yl=mt()),Yl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function nc(e,t,r,o){if(50<Zl)throw Zl=0,Xl=null,Error(n(185));bt(e,r,o),0!=(2&Ol)&&e===Tl||(e===Tl&&(0==(2&Ol)&&(Al|=r),4===Nl&&sc(e,Il)),rc(e,o),1===r&&0===Ol&&0==(1&t.mode)&&(Bl=Je()+500,Fo&&Wo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!=(s&n)&&0==(s&r)||(o[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=pt(e,e===Tl?Il:0);if(0===r)null!==n&&He(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&He(n),1===t)0===e.tag?function(e){Fo=!0,Bo(e)}(lc.bind(null,e)):Bo(lc.bind(null,e)),ao((function(){0==(6&Ol)&&Wo()})),n=null;else{switch(St(r)){case 1:n=Xe;break;case 4:n=Qe;break;case 16:default:n=et;break;case 536870912:n=rt}n=Tc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Ql=-1,Yl=0,0!=(6&Ol))throw Error(n(327));var r=e.callbackNode;if(xc()&&e.callbackNode!==r)return null;var o=pt(e,e===Tl?Il:0);if(0===o)return null;if(0!=(30&o)||0!=(o&e.expiredLanes)||t)t=gc(e,o);else{t=o;var i=Ol;Ol|=2;var a=hc();for(Tl===e&&Il===t||(Wl=null,Bl=Je()+500,pc(e,t));;)try{vc();break}catch(t){fc(e,t)}Li(),El.current=a,Ol=i,null!==Pl?t=0:(Tl=null,Il=0,t=Nl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=ic(e,i))),1===t)throw r=ql,pc(e,0),sc(e,o),rc(e,Je()),r;if(6===t)sc(e,o);else{if(i=e.current.alternate,0==(30&o)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,o))&&(0!==(a=ht(e))&&(o=a,t=ic(e,a))),1===t))throw r=ql,pc(e,0),sc(e,o),rc(e,Je()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:wc(e,Fl,Wl);break;case 3:if(sc(e,o),(130023424&o)===o&&10<(t=$l+500-Je())){if(0!==pt(e,0))break;if(((i=e.suspendedLanes)&o)!==o){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(wc.bind(null,e,Fl,Wl),t);break}wc(e,Fl,Wl);break;case 4:if(sc(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-at(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Je()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Cl(o/1960))-o)){e.timeoutHandle=ro(wc.bind(null,e,Fl,Wl),o);break}wc(e,Fl,Wl);break;default:throw Error(n(329))}}}return rc(e,Je()),e.callbackNode===r?oc.bind(null,e):null}function ic(e,t){var n=jl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Fl,Fl=n,null!==t&&ac(t)),e}function ac(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function sc(e,t){for(t&=~zl,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!=(6&Ol))throw Error(n(327));xc();var t=pt(e,0);if(0==(1&t))return rc(e,Je()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=ic(e,o))}if(1===r)throw r=ql,pc(e,0),sc(e,t),rc(e,Je()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Fl,Wl),rc(e,Je()),null}function cc(e,t){var n=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=n)&&(Bl=Je()+500,Fo&&Wo())}}function uc(e){null!==Kl&&0===Kl.tag&&0==(6&Ol)&&xc();var t=Ol;Ol|=1;var n=Ll.transition,r=yt;try{if(Ll.transition=null,yt=1,e)return e()}finally{yt=r,Ll.transition=n,0==(6&(Ol=t))&&Wo()}}function dc(){_l=Ml.current,Ro(Ml)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Pl)for(n=Pl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&No();break;case 3:Xi(),Ro(Po),Ro(To),ra();break;case 5:Yi(r);break;case 4:Xi();break;case 13:case 19:Ro(ea);break;case 10:Oi(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Pl=e=Mc(e.current,null),Il=_l=t,Nl=0,ql=null,zl=Al=Dl=0,Fl=jl=null,null!==_i){for(t=0;t<_i.length;t++)if(null!==(r=(n=_i[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}_i=null}return e}function fc(e,t){for(;;){var r=Pl;try{if(Li(),oa.current=Qa,ua){for(var o=sa.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,pa=0,Rl.current=null,null===r||null===r.return){Nl=1,ql=t,Pl=null;break}e:{var a=e,s=r.return,l=r,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,bs(h,s,l,0,t),1&h.mode&&ms(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){ms(a,u,t),mc();break e}c=Error(n(426))}else if(ii&&1&l.mode){var b=gs(s);if(null!==b){0==(65536&b.flags)&&(b.flags|=256),bs(b,s,l,0,t),mi(cs(c,l));break e}}a=c=cs(c,l),4!==Nl&&(Nl=2),null===jl?jl=[a]:jl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,fs(0,c,t));break e;case 1:l=c;var v=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Vl||!Vl.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}Sc(r)}catch(e){t=e,Pl===r&&null!==r&&(Pl=r=r.return);continue}break}}function hc(){var e=El.current;return El.current=Qa,null===e?Qa:e}function mc(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Tl||0==(268435455&Dl)&&0==(268435455&Al)||sc(Tl,Il)}function gc(e,t){var r=Ol;Ol|=2;var o=hc();for(Tl===e&&Il===t||(Wl=null,pc(e,t));;)try{bc();break}catch(t){fc(e,t)}if(Li(),Ol=r,El.current=o,null!==Pl)throw Error(n(261));return Tl=null,Il=0,Nl}function bc(){for(;null!==Pl;)yc(Pl)}function vc(){for(;null!==Pl&&!Ve();)yc(Pl)}function yc(e){var t=kl(e.alternate,e,_l);e.memoizedProps=e.pendingProps,null===t?Sc(e):Pl=t,Rl.current=null}function Sc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Gs(n,t,_l)))return void(Pl=n)}else{if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return Nl=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Nl&&(Nl=5)}function wc(e,t,r){var o=yt,i=Ll.transition;try{Ll.transition=null,yt=1,function(e,t,r,o){do{xc()}while(null!==Kl);if(0!=(6&Ol))throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Tl&&(Pl=Tl=null,Il=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Gl||(Gl=!0,Tc(et,(function(){return xc(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=Ll.transition,Ll.transition=null;var s=yt;yt=1;var l=Ol;Ol|=4,Rl.current=null,function(e,t){if(eo=Ut,fr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==i&&3!==p.nodeType||(l=s+i),p!==a||0!==o&&3!==p.nodeType||(c=s+o),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++u===i&&(l=s),f===a&&++d===o&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ut=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;1===S.nodeType?S.textContent="":9===S.nodeType&&S.documentElement&&S.removeChild(S.documentElement);break;default:throw Error(n(163))}}catch(e){Cc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=tl,tl=!1}(e,r),gl(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,vl(r),Ge(),Ol=l,yt=s,Ll.transition=a}else e.current=r;if(Gl&&(Gl=!1,Kl=e,Jl=i),a=e.pendingLanes,0===a&&(Vl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),rc(e,Je()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,e=Hl,Hl=null,e;0!=(1&Jl)&&0!==e.tag&&xc(),a=e.pendingLanes,0!=(1&a)?e===Xl?Zl++:(Zl=0,Xl=e):Zl=0,Wo()}(e,t,r,o)}finally{Ll.transition=i,yt=o}return null}function xc(){if(null!==Kl){var e=St(Jl),t=Ll.transition,r=yt;try{if(Ll.transition=null,yt=16>e?16:e,null===Kl)var o=!1;else{if(e=Kl,Kl=null,Jl=0,0!=(6&Ol))throw Error(n(331));var i=Ol;for(Ol|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!=(16&Qs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Qs=u;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var p=d.child;if(null!==p)p.return=d,Qs=p;else for(;null!==Qs;){var f=(d=Qs).sibling,h=d.return;if(il(d),d===u){Qs=null;break}if(null!==f){f.return=h,Qs=f;break}Qs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Qs=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(0!=(2048&(a=Qs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Qs=v;break e}Qs=a.return}}var y=e.current;for(Qs=y;null!==Qs;){var S=(s=Qs).child;if(0!=(2064&s.subtreeFlags)&&null!==S)S.return=s,Qs=S;else e:for(s=y;null!==Qs;){if(0!=(2048&(l=Qs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Cc(l,l.return,e)}if(l===s){Qs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Qs=w;break e}Qs=l.return}}if(Ol=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=r,Ll.transition=t}}return!1}function kc(e,t,n){e=Fi(e,t=fs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(bt(e,1,t),rc(e,t))}function Cc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Fi(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(bt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Il&n)===n&&(4===Nl||3===Nl&&(130023424&Il)===Il&&500>Je()-$l?pc(e,0):zl|=n),rc(e,t)}function Rc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=qi(e,t))&&(bt(e,t,n),rc(e,n))}function Lc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Rc(e,n)}function Oc(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Rc(e,r)}function Tc(e,t){return Ue(e,t)}function Pc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Pc(e,t,n,r)}function _c(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nc(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)_c(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case w:return qc(r.children,i,a,t);case x:s=8,i|=8;break;case k:return(e=Ic(12,r,t,2|i)).elementType=k,e.lanes=a,e;case L:return(e=Ic(13,r,t,i)).elementType=L,e.lanes=a,e;case O:return(e=Ic(19,r,t,i)).elementType=O,e.lanes=a,e;case I:return Dc(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case E:s=9;break e;case R:s=11;break e;case T:s=14;break e;case P:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ic(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function qc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Ac(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,o,i,a,s,l){return e=new jc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ic(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ai(i),e}function $c(e){if(!e)return Oo;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Mo(r))return Do(e,r,t)}return t}function Bc(e,t,n,r,o,i,a,s,l){return(e=Fc(n,r,!0,e,0,i,0,s,l)).context=$c(null),n=e.current,(i=ji(r=ec(),o=tc(n))).callback=null!=t?t:null,Fi(n,i,o),e.current.lanes=o,bt(e,o,r),rc(e,r),e}function Wc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=ji(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fi(o,t,a))&&(nc(e,o,a,i),$i(e,o,a)),a}function Uc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Po.current)ys=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),hi();break;case 5:Qi(t);break;case 1:Mo(t.type)&&Ao(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Lo(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Lo(ea,1&ea.current),t.flags|=128,null):0!=(n&t.child.childLanes)?As(e,t,n):(Lo(ea,1&ea.current),null!==(e=Us(e,t,n))?e.sibling:null);Lo(ea,1&ea.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Lo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Us(e,t,n)}(e,t,r);ys=0!=(131072&e.flags)}else ys=!1,ii&&0!=(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ws(e,t),e=t.pendingProps;var i=_o(t,To.current);Pi(t,r),i=ga(null,t,o,e,i,r);var a=ba();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(o)?(a=!0,Ao(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ai(t),i.updater=os,t.stateNode=i,i._reactInternals=t,ls(t,o,e,r),t=Os(null,t,o,!0,a,r)):(t.tag=0,ii&&a&&ti(t),Ss(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return _c(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===T)return 14}return 2}(o),e=ns(o,e),i){case 0:t=Rs(null,t,o,e,r);break e;case 1:t=Ls(null,t,o,e,r);break e;case 11:t=ws(null,t,o,e,r);break e;case 14:t=xs(null,t,o,ns(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Rs(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 1:return o=t.type,i=t.pendingProps,Ls(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 3:e:{if(Ts(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,zi(e,t),Wi(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,o,r,i=cs(Error(n(423)),t));break e}if(o!==i){t=Ps(e,t,o,r,i=cs(Error(n(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,r=xi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),o===i){t=Us(e,t,r);break e}Ss(e,t,o,r)}t=t.child}return t;case 5:return Qi(t),null===e&&ui(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,no(o,i)?s=null:null!==a&&no(o,a)&&(t.flags|=32),Es(e,t),Ss(e,t,s,r),t.child;case 6:return null===e&&ui(t),null;case 13:return As(e,t,r);case 4:return Zi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=wi(t,null,o,r):Ss(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,ws(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 7:return Ss(e,t,t.pendingProps,r),t.child;case 8:case 12:return Ss(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Lo(ki,o._currentValue),o._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Po.current){t=Us(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===o){if(1===a.tag){(c=ji(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),Ti(a.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ti(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}Ss(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Pi(t,r),o=o(i=Ii(i)),t.flags|=1,Ss(e,t,o,r),t.child;case 14:return i=ns(o=t.type,t.pendingProps),xs(e,t,o,i=ns(o.type,i),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ns(o,i),Ws(e,t),t.tag=1,Mo(o)?(e=!0,Ao(t)):e=!1,Pi(t,r),as(t,o,i),ls(t,o,i,r),Os(null,t,o,!0,e,r);case 19:return Bs(e,t,r);case 22:return Cs(e,t,r)}throw Error(n(156,t.tag))};var Gc="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Jc(e){this._internalRoot=e}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function Yc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Uc(a);s.call(e)}}Wc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uc(a);i.call(e)}}var a=Bc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[mo]=a.current,Br(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Uc(l);s.call(e)}}var l=Fc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=l,e[mo]=l.current,Br(8===e.nodeType?e.parentNode:e),uc((function(){Wc(t,l,n,r)})),l}(n,t,e,o,r);return Uc(a)}Jc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wc(e,t,null,null)},Jc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Wc(null,e,null,null)})),t[mo]=null}},Jc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&At(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),rc(t,Je()),0==(6&Ol)&&(Bl=Je()+500,Wo()))}break;case 13:uc((function(){var t=qi(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},xt=function(e){if(13===e.tag){var t=qi(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},kt=function(e){if(13===e.tag){var t=tc(e),n=qi(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},Ct=function(){return yt},Et=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ye=function(e,t,r){switch(t){case"input":if(Z(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 o=r[t];if(o!==e&&o.form===e.form){var i=xo(o);if(!i)throw Error(n(90));H(o),Z(o,i)}}}break;case"textarea":re(e,r);break;case"select":null!=(t=r.value)&&ee(e,!!r.multiple,t,!1)}},Ee=cc,Re=uc;var eu={usingClientEntryPoint:!1,Events:[So,wo,xo,ke,Ce,cc]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(e){}}return Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,Ye.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:y,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},Ye.createRoot=function(e,t){if(!Zc(e))throw Error(n(299));var r=!1,o="",i=Gc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Fc(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Kc(t)},Ye.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(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Be(t))?null:e.stateNode},Ye.flushSync=function(e){return uc(e)},Ye.hydrate=function(e,t,r){if(!Xc(t))throw Error(n(200));return Yc(null,e,t,!0,r)},Ye.hydrateRoot=function(e,t,r){if(!Zc(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Gc;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Bc(t,null,e,1,null!=r?r:null,i,0,a,s),e[mo]=t.current,Br(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Jc(t)},Ye.render=function(e,t,r){if(!Xc(t))throw Error(n(200));return Yc(null,e,t,!1,r)},Ye.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(n(40));return!!e._reactRootContainer&&(uc((function(){Yc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},Ye.unstable_batchedUpdates=cc,Ye.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Xc(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Yc(e,t,r,!1,o)},Ye.version="18.3.1-next-f1338f8080-20240426",Ye}function ot(){if(Je)return Qe.exports;return Je=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Qe.exports=rt(),Qe.exports}var it=function(){if(Ze)return Xe;Ze=1;var e=ot();return Xe.createRoot=e.createRoot,Xe.hydrateRoot=e.hydrateRoot,Xe}(),at=n(it);function st(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var lt=Object.freeze({__proto__:null,default:st}),ct="$$material";function ut(){return ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ut.apply(null,arguments)}function dt(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var pt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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 n=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{n.insertRule(e,n.cssRules.length)}catch(e){}}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}(),ft="-ms-",ht="-moz-",mt="-webkit-",gt="comm",bt="rule",vt="decl",yt="@keyframes",St=Math.abs,wt=String.fromCharCode,xt=Object.assign;function kt(e,t){return 45^Ot(e,0)?(((t<<2^Ot(e,0))<<2^Ot(e,1))<<2^Ot(e,2))<<2^Ot(e,3):0}function Ct(e){return e.trim()}function Et(e,t){return(e=t.exec(e))?e[0]:e}function Rt(e,t,n){return e.replace(t,n)}function Lt(e,t){return e.indexOf(t)}function Ot(e,t){return 0|e.charCodeAt(t)}function Tt(e,t,n){return e.slice(t,n)}function Pt(e){return e.length}function It(e){return e.length}function _t(e,t){return t.push(e),e}function Mt(e,t){return e.map(t).join("")}var Nt=1,qt=1,Dt=0,At=0,zt=0,jt="";function Ft(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Nt,column:qt,length:a,return:""}}function $t(e,t){return xt(Ft("",null,null,"",null,null,0),e,{length:-e.length},t)}function Bt(){return zt=At>0?Ot(jt,--At):0,qt--,10===zt&&(qt=1,Nt--),zt}function Wt(){return zt=At<Dt?Ot(jt,At++):0,qt++,10===zt&&(qt=1,Nt++),zt}function Ut(){return Ot(jt,At)}function Ht(){return At}function Vt(e,t){return Tt(jt,e,t)}function Gt(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 Kt(e){return Nt=qt=1,Dt=Pt(jt=e),At=0,[]}function Jt(e){return jt="",e}function Zt(e){return Ct(Vt(At-1,Yt(91===e?e+2:40===e?e+1:e)))}function Xt(e){for(;(zt=Ut())&&zt<33;)Wt();return Gt(e)>2||Gt(zt)>3?"":" "}function Qt(e,t){for(;--t&&Wt()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return Vt(e,Ht()+(t<6&&32==Ut()&&32==Wt()))}function Yt(e){for(;Wt();)switch(zt){case e:return At;case 34:case 39:34!==e&&39!==e&&Yt(zt);break;case 40:41===e&&Yt(e);break;case 92:Wt()}return At}function en(e,t){for(;Wt()&&e+zt!==57&&(e+zt!==84||47!==Ut()););return"/*"+Vt(t,At-1)+"*"+wt(47===e?e:Wt())}function tn(e){for(;!Gt(Ut());)Wt();return Vt(e,At)}function nn(e){return Jt(rn("",null,null,null,[""],e=Kt(e),0,[0],e))}function rn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",S=o,w=i,x=r,k=y;g;)switch(h=v,v=Wt()){case 40:if(108!=h&&58==Ot(k,d-1)){-1!=Lt(k+=Rt(Zt(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=Zt(v);break;case 9:case 10:case 13:case 32:k+=Xt(h);break;case 92:k+=Qt(Ht()-1,7);continue;case 47:switch(Ut()){case 42:case 47:_t(an(en(Wt(),Ht()),t,n),l);break;default:k+="/"}break;case 123*m:s[c++]=Pt(k)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(k=Rt(k,/\f/g,"")),f>0&&Pt(k)-d&&_t(f>32?sn(k+";",r,n,d-1):sn(Rt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(_t(x=on(k,t,n,c,u,o,s,y,S=[],w=[],d),i),123===v)if(0===u)rn(k,t,x,x,S,i,d,s,w);else switch(99===p&&110===Ot(k,3)?100:p){case 100:case 108:case 109:case 115:rn(e,x,x,r&&_t(on(e,x,x,0,0,o,s,y,o,S=[],d),w),o,w,d,s,r?S:w);break;default:rn(k,x,x,x,[""],w,0,s,w)}}c=u=f=0,m=b=1,y=k="",d=a;break;case 58:d=1+Pt(k),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Bt())continue;switch(k+=wt(v),v*m){case 38:b=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Pt(k)-1)*b,b=1;break;case 64:45===Ut()&&(k+=Zt(Wt())),p=Ut(),u=d=Pt(y=k+=tn(Ht())),v++;break;case 45:45===h&&2==Pt(k)&&(m=0)}}return i}function on(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=It(p),h=0,m=0,g=0;h<r;++h)for(var b=0,v=Tt(e,d+1,d=St(m=a[h])),y=e;b<f;++b)(y=Ct(m>0?p[b]+" "+v:Rt(v,/&\f/g,p[b])))&&(l[g++]=y);return Ft(e,t,n,0===o?bt:s,l,c,u)}function an(e,t,n){return Ft(e,t,n,gt,wt(zt),Tt(e,2,-2),0)}function sn(e,t,n,r){return Ft(e,t,n,vt,Tt(e,0,r),Tt(e,r+1,-1),r)}function ln(e,t){for(var n="",r=It(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function cn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case vt:return e.return=e.return||e.value;case gt:return"";case yt:return e.return=e.value+"{"+ln(e.children,r)+"}";case bt:e.value=e.props.join(",")}return Pt(n=ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function un(e){var t=It(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function dn(e){return function(t){t.root||(t=t.return)&&e(t)}}function pn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var fn=function(e,t,n){for(var r=0,o=0;r=o,o=Ut(),38===r&&12===o&&(t[n]=1),!Gt(o);)Wt();return Vt(e,At)},hn=function(e,t){return Jt(function(e,t){var n=-1,r=44;do{switch(Gt(r)){case 0:38===r&&12===Ut()&&(t[n]=1),e[n]+=fn(At-1,t,n);break;case 2:e[n]+=Zt(r);break;case 4:if(44===r){e[++n]=58===Ut()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=wt(r)}}while(r=Wt());return e}(Kt(e),t))},mn=new WeakMap,gn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||mn.get(n))&&!r){mn.set(e,!0);for(var o=[],i=hn(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},bn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function vn(e,t){switch(kt(e,t)){case 5103:return mt+"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 mt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mt+e+ht+e+ft+e+e;case 6828:case 4268:return mt+e+ft+e+e;case 6165:return mt+e+ft+"flex-"+e+e;case 5187:return mt+e+Rt(e,/(\w+).+(:[^]+)/,mt+"box-$1$2"+ft+"flex-$1$2")+e;case 5443:return mt+e+ft+"flex-item-"+Rt(e,/flex-|-self/,"")+e;case 4675:return mt+e+ft+"flex-line-pack"+Rt(e,/align-content|flex-|-self/,"")+e;case 5548:return mt+e+ft+Rt(e,"shrink","negative")+e;case 5292:return mt+e+ft+Rt(e,"basis","preferred-size")+e;case 6060:return mt+"box-"+Rt(e,"-grow","")+mt+e+ft+Rt(e,"grow","positive")+e;case 4554:return mt+Rt(e,/([^-])(transform)/g,"$1"+mt+"$2")+e;case 6187:return Rt(Rt(Rt(e,/(zoom-|grab)/,mt+"$1"),/(image-set)/,mt+"$1"),e,"")+e;case 5495:case 3959:return Rt(e,/(image-set\([^]*)/,mt+"$1$`$1");case 4968:return Rt(Rt(e,/(.+:)(flex-)?(.*)/,mt+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mt+e+e;case 4095:case 3583:case 4068:case 2532:return Rt(e,/(.+)-inline(.+)/,mt+"$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(Pt(e)-1-t>6)switch(Ot(e,t+1)){case 109:if(45!==Ot(e,t+4))break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+mt+"$2-$3$1"+ht+(108==Ot(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Lt(e,"stretch")?vn(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ot(e,t+1))break;case 6444:switch(Ot(e,Pt(e)-3-(~Lt(e,"!important")&&10))){case 107:return Rt(e,":",":"+mt)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mt+(45===Ot(e,14)?"inline-":"")+"box$3$1"+mt+"$2$3$1"+ft+"$2box$3")+e}break;case 5936:switch(Ot(e,t+11)){case 114:return mt+e+ft+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mt+e+ft+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mt+e+ft+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mt+e+ft+e+e}return e}var yn,Sn,wn,xn,kn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vt:e.return=vn(e.value,e.length);break;case yt:return ln([$t(e,{value:Rt(e.value,"@","@"+mt)})],r);case bt:if(e.length)return Mt(e.props,(function(t){switch(Et(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([$t(e,{props:[Rt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ln([$t(e,{props:[Rt(t,/:(plac\w+)/,":"+mt+"input-$1")]}),$t(e,{props:[Rt(t,/:(plac\w+)/,":-moz-$1")]}),$t(e,{props:[Rt(t,/:(plac\w+)/,ft+"input-$1")]})],r)}return""}))}}],Cn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||kn,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c=[gn,bn],u=[cn,dn((function(e){l.insert(e)}))],d=un(c.concat(i,u));o=function(e,t,n,r){l=n,function(e){ln(nn(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new pt({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p},En={exports:{}},Rn={};function Ln(){return Sn||(Sn=1,En.exports=function(){if(yn)return Rn;yn=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case p:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Rn.ContextConsumer=s,Rn.ContextProvider=a,Rn.Element=t,Rn.ForwardRef=c,Rn.Fragment=r,Rn.Lazy=f,Rn.Memo=p,Rn.Portal=n,Rn.Profiler=i,Rn.StrictMode=o,Rn.Suspense=u,Rn.SuspenseList=d,Rn.isAsyncMode=function(){return!1},Rn.isConcurrentMode=function(){return!1},Rn.isContextConsumer=function(e){return m(e)===s},Rn.isContextProvider=function(e){return m(e)===a},Rn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Rn.isForwardRef=function(e){return m(e)===c},Rn.isFragment=function(e){return m(e)===r},Rn.isLazy=function(e){return m(e)===f},Rn.isMemo=function(e){return m(e)===p},Rn.isPortal=function(e){return m(e)===n},Rn.isProfiler=function(e){return m(e)===i},Rn.isStrictMode=function(e){return m(e)===o},Rn.isSuspense=function(e){return m(e)===u},Rn.isSuspenseList=function(e){return m(e)===d},Rn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Rn.typeOf=m,Rn}()),En.exports}!function(){if(xn)return wn;xn=1;var e=Ln(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;wn=function e(t,r,o){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,o)}var f=s(r);l&&(f=f.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var b=f[g];if(!(n[b]||o&&o[b]||m&&m[b]||h&&h[b])){var v=c(r,b);try{a(t,b,v)}catch(e){}}}}return t}}();function On(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Tn=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Pn=function(e,t,n){Tn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var In={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},_n=/[A-Z]|^ms/g,Mn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nn=function(e){return 45===e.charCodeAt(1)},qn=function(e){return null!=e&&"boolean"!=typeof e},Dn=pn((function(e){return Nn(e)?e:e.replace(_n,"-$&").toLowerCase()})),An=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Mn,(function(e,t,n){return jn={name:t,styles:n,next:jn},t}))}return 1===In[e]||Nn(e)||"number"!=typeof t||0===t?t:t+"px"};function zn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return jn={name:o.name,styles:o.styles,next:jn},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)jn={name:a.name,styles:a.styles,next:jn},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zn(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":qn(s)&&(r+=Dn(i)+":"+An(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=zn(e,t,a);switch(i){case"animation":case"animationName":r+=Dn(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)qn(a[c])&&(r+=Dn(i)+":"+An(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=jn,l=n(e);return jn=s,zn(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var jn,Fn=/label:\s*([^\s;{]+)\s*(;|$)/g;function $n(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";jn=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=zn(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=zn(n,t,e[a]),r)o+=i[a]}Fn.lastIndex=0;for(var s,l="";null!==(s=Fn.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:jn}}var Bn,Wn,Un=!!k.useInsertionEffect&&k.useInsertionEffect,Hn=Un||function(e){return e()},Vn=Un||w.useLayoutEffect,Gn=w.createContext("undefined"!=typeof HTMLElement?Cn({key:"css"}):null),Kn=Gn.Provider,Jn=function(e){return w.forwardRef((function(t,n){var r=w.useContext(Gn);return e(t,r,n)}))},Zn=w.createContext({}),Xn={}.hasOwnProperty,Qn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Tn(t,n,r),Hn((function(){return Pn(t,n,r)})),null},er=Jn((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Qn],i=[r],a="";"string"==typeof e.className?a=On(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=$n(i,void 0,w.useContext(Zn));a+=t.key+"-"+s.name;var l={};for(var c in e)Xn.call(e,c)&&"css"!==c&&c!==Qn&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),w.createElement(w.Fragment,null,w.createElement(Yn,{cache:t,serialized:s,isStringTag:"string"==typeof o}),w.createElement(o,l))})),tr=er,nr=function(e,t){var n=arguments;if(null==t||!Xn.call(t,"css"))return w.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=tr,o[1]=function(e,t){var n={};for(var r in t)Xn.call(t,r)&&(n[r]=t[r]);return n[Qn]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return w.createElement.apply(null,o)};Bn=nr||(nr={}),Wn||(Wn=Bn.JSX||(Bn.JSX={}));var rr=Jn((function(e,t){var n=$n([e.styles],void 0,w.useContext(Zn)),r=w.useRef();return Vn((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),Vn((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Pn(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function or(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $n(t)}function ir(){var e=or.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_"}}}var ar=/^((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|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)-.*))$/,sr=pn((function(e){return ar.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),lr=function(e){return"theme"!==e},cr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?sr:lr},ur=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},dr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Tn(t,n,r),Hn((function(){return Pn(t,n,r)})),null},pr=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=ur(t,n,i),l=s||cr(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],p[h])}var m=Jn((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=w.useContext(Zn)}"string"==typeof e.className?i=On(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=$n(d.concat(u),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?cr(r):l,g={};for(var b in e)c&&"as"===b||m(b)&&(g[b]=e[b]);return g.className=i,n&&(g.ref=n),w.createElement(w.Fragment,null,w.createElement(dr,{cache:t,serialized:h,isStringTag:"string"==typeof r}),w.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,ut({},n,r,{shouldForwardProp:ur(m,r,!0)})).apply(void 0,d)},m}}.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){pr[e]=pr(e)}));var fr=function(e,t,n){for(var r=0,o=0;r=o,o=Ut(),38===r&&12===o&&(t[n]=1),!Gt(o);)Wt();return Vt(e,At)},hr=function(e,t){return Jt(function(e,t){var n=-1,r=44;do{switch(Gt(r)){case 0:38===r&&12===Ut()&&(t[n]=1),e[n]+=fr(At-1,t,n);break;case 2:e[n]+=Zt(r);break;case 4:if(44===r){e[++n]=58===Ut()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=wt(r)}}while(r=Wt());return e}(Kt(e),t))},mr=new WeakMap,gr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||mr.get(n))&&!r){mr.set(e,!0);for(var o=[],i=hr(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},br=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function vr(e,t){switch(kt(e,t)){case 5103:return mt+"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 mt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mt+e+ht+e+ft+e+e;case 6828:case 4268:return mt+e+ft+e+e;case 6165:return mt+e+ft+"flex-"+e+e;case 5187:return mt+e+Rt(e,/(\w+).+(:[^]+)/,mt+"box-$1$2"+ft+"flex-$1$2")+e;case 5443:return mt+e+ft+"flex-item-"+Rt(e,/flex-|-self/,"")+e;case 4675:return mt+e+ft+"flex-line-pack"+Rt(e,/align-content|flex-|-self/,"")+e;case 5548:return mt+e+ft+Rt(e,"shrink","negative")+e;case 5292:return mt+e+ft+Rt(e,"basis","preferred-size")+e;case 6060:return mt+"box-"+Rt(e,"-grow","")+mt+e+ft+Rt(e,"grow","positive")+e;case 4554:return mt+Rt(e,/([^-])(transform)/g,"$1"+mt+"$2")+e;case 6187:return Rt(Rt(Rt(e,/(zoom-|grab)/,mt+"$1"),/(image-set)/,mt+"$1"),e,"")+e;case 5495:case 3959:return Rt(e,/(image-set\([^]*)/,mt+"$1$`$1");case 4968:return Rt(Rt(e,/(.+:)(flex-)?(.*)/,mt+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mt+e+e;case 4095:case 3583:case 4068:case 2532:return Rt(e,/(.+)-inline(.+)/,mt+"$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(Pt(e)-1-t>6)switch(Ot(e,t+1)){case 109:if(45!==Ot(e,t+4))break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+mt+"$2-$3$1"+ht+(108==Ot(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Lt(e,"stretch")?vr(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ot(e,t+1))break;case 6444:switch(Ot(e,Pt(e)-3-(~Lt(e,"!important")&&10))){case 107:return Rt(e,":",":"+mt)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mt+(45===Ot(e,14)?"inline-":"")+"box$3$1"+mt+"$2$3$1"+ft+"$2box$3")+e}break;case 5936:switch(Ot(e,t+11)){case 114:return mt+e+ft+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mt+e+ft+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mt+e+ft+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mt+e+ft+e+e}return e}var yr,Sr,wr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vt:e.return=vr(e.value,e.length);break;case yt:return ln([$t(e,{value:Rt(e.value,"@","@"+mt)})],r);case bt:if(e.length)return Mt(e.props,(function(t){switch(Et(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([$t(e,{props:[Rt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ln([$t(e,{props:[Rt(t,/:(plac\w+)/,":"+mt+"input-$1")]}),$t(e,{props:[Rt(t,/:(plac\w+)/,":-moz-$1")]}),$t(e,{props:[Rt(t,/:(plac\w+)/,ft+"input-$1")]})],r)}return""}))}}],xr=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||wr,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c=[gr,br],u=[cn,dn((function(e){l.insert(e)}))],d=un(c.concat(i,u));o=function(e,t,n,r){l=n,function(e){ln(nn(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new pt({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p},kr={exports:{}},Cr={};function Er(){return Sr||(Sr=1,kr.exports=function(){if(yr)return Cr;yr=1;var e=S(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Cr.Fragment=n,Cr.jsx=a,Cr.jsxs=a,Cr}()),kr.exports}var Rr=Er();const Lr=new Map;function Or(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=w.useMemo((()=>{const e=`${t}-${n}`;if("object"==typeof document&&Lr.has(e))return Lr.get(e);const r=function(e,t){const n=xr({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return Lr.set(e,r),r}),[t,n]);return t||n?Rr.jsx(Kn,{value:o,children:r}):r}function Tr(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Rr.jsx(rr,{styles:r})}
16
+ */function nt(){if(Ge)return Qe;Ge=1;var e=v(),t=tt();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},d={};function p(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){f[e]=new p(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];f[t]=new p(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){f[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){f[e]=new p(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){f[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){f[e]=new p(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){f[e]=new p(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){f[e]=new p(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){f[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=f.hasOwnProperty(t)?f[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!l.call(d,e)||!l.call(u,e)&&(c.test(e)?d[e]=!0:(u[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);f[t]=new p(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(h,m);f[t]=new p(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(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)})),f.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),_=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=_&&e[_]||e["@@iterator"])?e:null}var q,D=Object.assign;function N(e){if(void 0===q)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||""}return"\n"+q+e}var A=!1;function z(e,t){if(!e||A)return"";A=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function j(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(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 w:return"Fragment";case S:return"Portal";case k:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function H(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function Z(e,t){J(e,t);var n=B(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Q(e,t.type,n):t.hasOwnProperty("defaultValue")&&Q(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Q(e,t,n){"number"===t&&V(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Y=Array.isArray;function ee(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+B(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ne(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Y(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function re(e,t){var n=B(t.value),r=B(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(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 ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,le=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ce(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ue={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];function pe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ue.hasOwnProperty(e)&&ue[e]?(""+t).trim():t+"px"}function fe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=pe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ue).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ue[t]=ue[e]}))}));var he=D({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 me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ge(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ve=null,Se=null,we=null;function xe(e){if(e=So(e)){if("function"!=typeof ve)throw Error(n(280));var t=e.stateNode;t&&(t=xo(t),ve(e.stateNode,e.type,t))}}function ke(e){Se?we?we.push(e):we=[e]:Se=e}function Ce(){if(Se){var e=Se,t=we;if(we=Se=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Ee(e,t){return e(t)}function Re(){}var Le=!1;function Pe(e,t,n){if(Le)return e(t,n);Le=!0;try{return Ee(e,t,n)}finally{Le=!1,(null!==Se||null!==we)&&(Re(),Ce())}}function Te(e,t){var r=e.stateNode;if(null===r)return null;var o=xo(r);if(null===o)return null;r=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(s)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(e){Oe=!1}function _e(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Me=!1,qe=null,De=!1,Ne=null,Ae={onError:function(e){Me=!0,qe=e}};function ze(e,t,n,r,o,i,a,s,l){Me=!1,qe=null,_e.apply(Ae,arguments)}function je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(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 $e(e){if(je(e)!==e)throw Error(n(188))}function Be(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return $e(i),e;if(a===o)return $e(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var He=t.unstable_scheduleCallback,Ue=t.unstable_cancelCallback,Ve=t.unstable_shouldYield,Ke=t.unstable_requestPaint,Je=t.unstable_now,Ze=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Ye=t.unstable_UserBlockingPriority,et=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function St(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,xt,kt,Ct,Et,Rt=!1,Lt=[],Pt=null,Tt=null,Ot=null,It=new Map,_t=new Map,Mt=[],qt="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 Dt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_t.delete(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=So(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function At(e){var t=vo(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Et(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=So(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function jt(e,t,n){zt(e)&&n.delete(t)}function Ft(){Rt=!1,null!==Pt&&zt(Pt)&&(Pt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==Ot&&zt(Ot)&&(Ot=null),It.forEach(jt),_t.forEach(jt)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Rt||(Rt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ft)))}function Bt(e){function t(t){return $t(t,e)}if(0<Lt.length){$t(Lt[0],e);for(var n=1;n<Lt.length;n++){var r=Lt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&$t(Pt,e),null!==Tt&&$t(Tt,e),null!==Ot&&$t(Ot,e),It.forEach(t),_t.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)At(n),null===n.blockedOn&&Mt.shift()}var Wt=b.ReactCurrentBatchConfig,Ht=!0;function Ut(e,t,n,r){var o=vt,i=Wt.transition;Wt.transition=null;try{vt=1,Gt(e,t,n,r)}finally{vt=o,Wt.transition=i}}function Vt(e,t,n,r){var o=vt,i=Wt.transition;Wt.transition=null;try{vt=4,Gt(e,t,n,r)}finally{vt=o,Wt.transition=i}}function Gt(e,t,n,r){if(Ht){var o=Jt(e,t,n,r);if(null===o)Hr(e,t,r,Kt,n),Dt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Pt=Nt(Pt,e,t,n,r,o),!0;case"dragenter":return Tt=Nt(Tt,e,t,n,r,o),!0;case"mouseover":return Ot=Nt(Ot,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Nt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,_t.set(i,Nt(_t.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<qt.indexOf(e)){for(;null!==o;){var i=So(o);if(null!==i&&wt(i),null===(i=Jt(e,t,n,r))&&Hr(e,t,r,Kt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Kt=null;function Jt(e,t,n,r){if(Kt=null,null!==(e=vo(e=ye(r))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Xe:return 1;case Ye:return 4;case et:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Qt=null,Yt=null;function en(){if(Yt)return Yt;var e,t,n=Qt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=D({},cn,{view:0,detail:0}),pn=on(dn),fn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,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!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(fn),mn=on(D({},fn,{dataTransfer:0})),gn=on(D({},dn,{relatedTarget:0})),bn=on(D({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=D({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=on(yn),Sn=on(D({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return Cn}var Rn=D({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ln=on(Rn),Pn=on(D({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),On=on(D({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=D({},fn,{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}),_n=on(In),Mn=[9,13,27,32],qn=s&&"CompositionEvent"in window,Dn=null;s&&"documentMode"in document&&(Dn=document.documentMode);var Nn=s&&"TextEvent"in window&&!Dn,An=s&&(!qn||Dn&&8<Dn&&11>=Dn),zn=String.fromCharCode(32),jn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Un(e,t,n,r){ke(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Gn=null;function Kn(e){zr(e,0)}function Jn(e){if(U(wo(e)))return e}function Zn(e,t){if("change"===e)return t}var Xn=!1;if(s){var Qn;if(s){var Yn="oninput"in document;if(!Yn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Yn="function"==typeof er.oninput}Qn=Yn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Gn=Vn=null)}function nr(e){if("value"===e.propertyName&&Jn(Gn)){var t=[];Un(t,Gn,e,ye(e)),Pe(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Gn)}function ir(e,t){if("click"===e)return Jn(t)}function ar(e,t){if("input"===e||"change"===e)return Jn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!l.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=s&&"documentMode"in document&&11>=document.documentMode,gr=null,br=null,yr=null,vr=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==V(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Vr(br,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},kr={},Cr={};function Er(e){if(kr[e])return kr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return kr[e]=n[t];return e}s&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Rr=Er("animationend"),Lr=Er("animationiteration"),Pr=Er("animationstart"),Tr=Er("transitionend"),Or=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _r(e,t){Or.set(e,t),i(t,[e])}for(var Mr=0;Mr<Ir.length;Mr++){var qr=Ir[Mr];_r(qr.toLowerCase(),"on"+(qr[0].toUpperCase()+qr.slice(1)))}_r(Rr,"onAnimationEnd"),_r(Lr,"onAnimationIteration"),_r(Pr,"onAnimationStart"),_r("dblclick","onDoubleClick"),_r("focusin","onFocus"),_r("focusout","onBlur"),_r(Tr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ar(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,c){if(ze.apply(this,arguments),Me){if(!Me)throw Error(n(198));var u=qe;Me=!1,qe=null,De||(De=!0,Ne=u)}}(o,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ar(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ar(o,s,c),i=l}}}if(De)throw e=Ne,De=!1,Ne=null,e}function jr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[$r]){e[$r]=!0,r.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Fr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Zt(t)){case 1:var o=Ut;break;case 4:o=Vt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=vo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=i,o=ye(n),a=[];e:{var s=Or.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Ln;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Rr:case Lr:case Pr:l=bn;break;case Tr:l=On;break;case"scroll":l=pn;break;case"wheel":l=_n;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Te(h,p))&&u.push(Ur(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(c=n.relatedTarget||n.fromElement)||!vo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?vo(c):null)&&(c!==(d=je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Pn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:wo(l),f=null==c?s:wo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,vo(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Gr(f))h++;for(f=0,m=p;m;m=Gr(m))f++;for(;0<h-f;)u=Gr(u),h--;for(;0<f-h;)p=Gr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Gr(u),p=Gr(p)}u=null}else u=null;null!==l&&Kr(a,s,l,u,!1),null!==c&&null!==d&&Kr(a,d,c,u,!0)}if("select"===(l=(s=r?wo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Zn;else if(Hn(s))if(Xn)g=ar;else{g=or;var b=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Un(a,g,n,o):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&Q(s,"number",s.value)),b=r?wo(r):window,e){case"focusin":(Hn(b)||"true"===b.contentEditable)&&(gr=b,br=r,yr=null);break;case"focusout":yr=br=gr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,Sr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":Sr(a,n,o)}var y;if(qn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Bn?Fn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(An&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Bn&&(y=en()):(Qt="value"in(Xt=o)?Xt.value:Xt.textContent,Bn=!0)),0<(b=Vr(r,v)).length&&(v=new Sn(v,e,null,n,o),a.push({event:v,listeners:b}),y?v.data=y:null!==(y=$n(n))&&(v.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(jn=!0,zn);case"textInput":return(e=t.data)===zn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!qn&&Fn(e,t)?(e=en(),Yt=Qt=Xt=null,Bn=!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 An&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new Sn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}zr(a,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Te(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=Te(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Te(n,i))&&a.unshift(Ur(n,l,s)):o||null!=(l=Te(n,i))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Jr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Jr,"\n").replace(Zr,"")}function Qr(e,t,r){if(t=Xr(t),Xr(e)!==t&&r)throw Error(n(425))}function Yr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,bo="__reactListeners$"+po,yo="__reactHandles$"+po;function vo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function So(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function xo(e){return e[ho]||null}var ko=[],Co=-1;function Eo(e){return{current:e}}function Ro(e){0>Co||(e.current=ko[Co],ko[Co]=null,Co--)}function Lo(e,t){Co++,ko[Co]=e.current,e.current=t}var Po={},To=Eo(Po),Oo=Eo(!1),Io=Po;function _o(e,t){var n=e.type.contextTypes;if(!n)return Po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!=(e=e.childContextTypes)}function qo(){Ro(Oo),Ro(To)}function Do(e,t,r){if(To.current!==Po)throw Error(n(168));Lo(To,t),Lo(Oo,r)}function No(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,$(e)||"Unknown",i));return D({},r,o)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Po,Io=To.current,Lo(To,e),Lo(Oo,Oo.current),!0}function zo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=No(e,t,Io),o.__reactInternalMemoizedMergedChildContext=e,Ro(Oo),Ro(To),Lo(To,e)):Ro(Oo),Lo(Oo,r)}var jo=null,Fo=!1,$o=!1;function Bo(e){null===jo?jo=[e]:jo.push(e)}function Wo(){if(!$o&&null!==jo){$o=!0;var e=0,t=vt;try{var n=jo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}jo=null,Fo=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),He(Xe,Wo),t}finally{vt=t,$o=!1}}return null}var Ho=[],Uo=0,Vo=null,Go=0,Ko=[],Jo=0,Zo=null,Xo=1,Qo="";function Yo(e,t){Ho[Uo++]=Go,Ho[Uo++]=Vo,Vo=e,Go=t}function ei(e,t,n){Ko[Jo++]=Xo,Ko[Jo++]=Qo,Ko[Jo++]=Zo,Zo=e;var r=Xo;e=Qo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Qo=i+e}else Xo=1<<i|n<<o|r,Qo=e}function ti(e){null!==e.return&&(Yo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Ho[--Uo],Ho[Uo]=null,Go=Ho[--Uo],Ho[Uo]=null;for(;e===Zo;)Zo=Ko[--Jo],Ko[Jo]=null,Qo=Ko[--Jo],Ko[Jo]=null,Xo=Ko[--Jo],Ko[Jo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zo?{id:Xo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ci(e))throw Error(n(418));t=co(r.nextSibling);var o=ri;t&&li(e,t)?si(o,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw fi(),Error(n(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function fi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=b.ReactCurrentBatchConfig;function bi(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(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vi(e){return(0,e._init)(e._payload)}function Si(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(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 i(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ac(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===w?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&vi(o)===t.type)?((r=i(t,n.props)).ref=bi(e,t,n),r.return=e,r):((r=qc(n.type,n.key,n.props,null,e.mode,r)).ref=bi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Dc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ac(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=qc(t.type,t.key,t.props,null,e.mode,n)).ref=bi(e,null,t),n.return=e,n;case S:return(t=zc(t,e.mode,n)).return=e,t;case O:return p(e,(0,t._init)(t._payload),n)}if(Y(t)||M(t))return(t=Dc(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case O:return f(e,t,(o=n._init)(n._payload),r)}if(Y(n)||M(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case O:return h(e,t,n,(0,r._init)(r._payload),o)}if(Y(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(n,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=f(n,d,s[m],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(n,d),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,d=g}if(m===s.length)return r(n,d),ii&&Yo(n,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(n,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Yo(n,m),c}for(d=o(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(n,e)})),ii&&Yo(n,m),c}function g(i,s,l,c){var u=M(l);if("function"!=typeof u)throw Error(n(150));if(null==(l=u.call(l)))throw Error(n(151));for(var d=u=null,m=s,g=s=0,b=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var v=f(i,m,y.value,c);if(null===v){null===m&&(m=b);break}e&&m&&null===v.alternate&&t(i,m),s=a(v,s,g),null===d?u=v:d.sibling=v,d=v,m=b}if(y.done)return r(i,m),ii&&Yo(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(i,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return ii&&Yo(i,g),u}for(m=o(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),ii&&Yo(i,g),u}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===w&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case y:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===w){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===O&&vi(c)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=bi(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===w?((o=Dc(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=qc(a.type,a.key,a.props,null,n.mode,l)).ref=bi(n,o,a),l.return=n,n=l)}return s(n);case S:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=zc(a,n.mode,l)).return=n,n=o}return s(n);case O:return e(n,o,(u=a._init)(a._payload),l)}if(Y(a))return m(n,o,a,l);if(M(a))return g(n,o,a,l);yi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Ac(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var wi=Si(!0),xi=Si(!1),ki=Eo(null),Ci=null,Ei=null,Ri=null;function Li(){Ri=Ei=Ci=null}function Pi(e){var t=ki.current;Ro(ki),e._currentValue=t}function Ti(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){Ci=e,Ri=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(vs=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(Ri!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Ci)throw Error(n(308));Ei=e,Ci.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var _i=null;function Mi(e){null===_i?_i=[e]:_i.push(e)}function qi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Di(e,r)}function Di(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ni=!1;function Ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(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 ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Pl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Di(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Di(e,n)}function $i(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Bi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Ni=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=D({},d,p);break e;case 2:Ni=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Nl|=a,e.lanes=a,e.memoizedState=d}}function Hi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Ui={},Vi=Eo(Ui),Gi=Eo(Ui),Ki=Eo(Ui);function Ji(e){if(e===Ui)throw Error(n(174));return e}function Zi(e,t){switch(Lo(Ki,t),Lo(Gi,e),Lo(Vi,Ui),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ro(Vi),Lo(Vi,t)}function Xi(){Ro(Vi),Ro(Gi),Ro(Ki)}function Qi(e){Ji(Ki.current);var t=Ji(Vi.current),n=ae(t,e.type);t!==n&&(Lo(Gi,e),Lo(Vi,n))}function Yi(e){Gi.current===e&&(Ro(Vi),Ro(Gi))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=b.ReactCurrentDispatcher,ia=b.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,pa=0,fa=0;function ha(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,r,o,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ya:es,e=r(o,i),da){a=0;do{if(da=!1,pa=0,25<=a)throw Error(n(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=r(o,i)}while(da)}if(oa.current=Qa,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(n(300));return e}function ba(){var e=0!==pa;return pa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function va(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(n(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function Sa(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=va(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=la,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),o=u.hasEagerState?u.eagerState:e(o,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=o):c=c.next=p,sa.lanes|=d,Nl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=o:c.next=l,sr(o,t.memoizedState)||(vs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=c,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Nl|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function xa(e){var t=va(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(vs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function ka(){}function Ca(e,t){var r=sa,o=va(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,vs=!0),o=o.queue,Na(La.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Ia(9,Ra.bind(null,r,o,i,t),void 0,null),null===Tl)throw Error(n(349));0!=(30&aa)||Ea(r,t,i)}return i}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ra(e,t,n,r){t.value=n,t.getSnapshot=r,Pa(t)&&Ta(e)}function La(e,t,n){return n((function(){Pa(t)&&Ta(e)}))}function Pa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ta(e){var t=Di(e,1);null!==t&&nc(t,e,1,-1)}function Oa(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function _a(){return va().memoizedState}function Ma(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function qa(e,t,n,r){var o=va();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ia(t,n,i,r))}sa.flags|=e,o.memoizedState=Ia(1|t,n,i,r)}function Da(e,t){return Ma(8390656,8,e,t)}function Na(e,t){return qa(2048,8,e,t)}function Aa(e,t){return qa(4,2,e,t)}function za(e,t){return qa(4,4,e,t)}function ja(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fa(e,t,n){return n=null!=n?n.concat([e]):null,qa(4,4,ja.bind(null,t,e),n)}function $a(){}function Ba(e,t){var n=va();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=va();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0==(21&aa)?(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Nl|=n,e.baseState=!0),t)}function Ua(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{vt=n,ia.transition=r}}function Va(){return va().memoizedState}function Ga(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ja(e))Za(t,n);else if(null!==(n=qi(e,t,n,r))){nc(n,e,r,ec()),Xa(n,t,r)}}function Ka(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ja(e))Za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Mi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=qi(e,t,o,r))&&(nc(n,e,r,o=ec()),Xa(n,t,r))}}function Ja(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Za(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Qa={readContext:Ii,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ya={readContext:Ii,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:Da,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Oa,useDebugValue:$a,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Ua.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ya();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Tl)throw Error(n(349));0!=(30&aa)||Ea(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Da(La.bind(null,o,a,e),[e]),o.flags|=2048,Ia(9,Ra.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Tl.identifierPrefix;if(ii){var n=Qo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ii,useCallback:Ba,useContext:Ii,useEffect:Na,useImperativeHandle:Fa,useInsertionEffect:Aa,useLayoutEffect:za,useMemo:Wa,useReducer:wa,useRef:_a,useState:function(){return wa(Sa)},useDebugValue:$a,useDeferredValue:function(e){return Ha(va(),la.memoizedState,e)},useTransition:function(){return[wa(Sa)[0],va().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ca,useId:Va,unstable_isNewReconciler:!1},ts={readContext:Ii,useCallback:Ba,useContext:Ii,useEffect:Na,useImperativeHandle:Fa,useInsertionEffect:Aa,useLayoutEffect:za,useMemo:Wa,useReducer:xa,useRef:_a,useState:function(){return xa(Sa)},useDebugValue:$a,useDeferredValue:function(e){var t=va();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[xa(Sa)[0],va().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ca,useId:Va,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=ji(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(nc(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=ji(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,o))&&(nc(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=ji(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Fi(e,o,r))&&(nc(t,e,r,n),$i(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=Po,i=t.contextType;return"object"==typeof i&&null!==i?i=Ii(i):(o=Mo(t)?Io:To.current,i=(r=null!=(r=t.contextTypes))?_o(e,o):Po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ii(i):(i=Mo(t)?Io:To.current,o.context=_o(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=ji(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Ul=r),ds(0,t)},n}function hs(e,t,n){(n=ji(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ji(-1,1)).tag=2,Fi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=b.ReactCurrentOwner,vs=!1;function Ss(e,t,n,r){t.child=null===e?xi(t,null,n,r):wi(t,e.child,n,r)}function ws(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ga(e,t,n,r,i,o),n=ba(),null===e||vs?(ii&&n&&ti(t),t.flags|=1,Ss(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function xs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||_c(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=qc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Mc(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(vs=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!=(131072&e.flags)&&(vs=!0)}}return Rs(e,t,n,r,o)}function Cs(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lo(Ml,_l),_l|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Lo(Ml,_l),_l|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Lo(Ml,_l),_l|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Lo(Ml,_l),_l|=r;return Ss(e,t,o,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rs(e,t,n,r,o){var i=Mo(n)?Io:To.current;return i=_o(t,i),Oi(t,o),n=ga(e,t,n,r,i,o),r=ba(),null===e||vs?(ii&&r&&ti(t),t.flags|=1,Ss(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ls(e,t,n,r,o){if(Mo(n)){var i=!0;Ao(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Ii(c):c=_o(t,c=Mo(n)?Io:To.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Ni=!1;var p=t.memoizedState;a.state=p,Wi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||Oo.current||Ni?("function"==typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Ni||is(t,n,s,r,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ii(l):l=_o(t,l=Mo(n)?Io:To.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&ss(t,a,r,l),Ni=!1,p=t.memoizedState,a.state=p,Wi(t,r,a,o);var h=t.memoizedState;s!==d||p!==h||Oo.current||Ni?("function"==typeof f&&(rs(t,n,f,r),h=t.memoizedState),(c=Ni||is(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,i,o)}function Ps(e,t,n,r,o,i){Es(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Hs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,s,i)):Ss(e,t,s,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(0,t.context,!1),Zi(e,t.containerInfo)}function Os(e,t,n,r,o){return hi(),mi(o),t.flags|=256,Ss(e,t,n,r),t.child}var Is,_s,Ms,qs,Ds={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function As(e,t,r){var o,i=t.pendingProps,a=ea.current,s=!1,l=0!=(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&0!=(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Lo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Nc(l,i,0,null),e=Dc(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(r),t.memoizedState=Ds,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,js(e,t,s,o=us(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=Nc({mode:"visible",children:o.children},i,0,null),(a=Dc(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,0!=(1&t.mode)&&wi(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Ds,a);if(0==(1&t.mode))return js(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,js(e,t,s,o=us(a=Error(n(419)),o,void 0))}if(l=0!=(s&e.childLanes),vs||l){if(null!==(o=Tl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Di(e,i),nc(o,e,i,-1))}return mc(),js(e,t,s,o=us(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Lc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,oi=co(i.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Ko[Jo++]=Xo,Ko[Jo++]=Qo,Ko[Jo++]=Zo,Xo=e.id,Qo=e.overflow,Zo=t),t=zs(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0==(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==o?s=Mc(o,s):(s=Dc(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ns(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ds,i}return e=(s=e.child).sibling,i=Mc(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Nc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function js(e,t,n,r){return null!==r&&mi(r),wi(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ti(e.return,t,n)}function $s(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Bs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ss(e,t,r.children,n),0!=(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,n,t);else if(19===e.tag)Fs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Lo(ea,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$s(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$s(t,!0,n,null,i);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Mc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Us(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gs(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Mo(t.type)&&qo(),Vs(t),null;case 3:return i=t.stateNode,Xi(),Ro(Oo),Ro(To),ra(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),_s(e,t),Vs(t),null;case 5:Yi(t);var a=Ji(Ki.current);if(r=t.type,null!==e&&null!=t.stateNode)Ms(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Vs(t),null}if(e=Ji(Vi.current),pi(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[fo]=t,i[ho]=s,e=0!=(1&t.mode),r){case"dialog":jr("cancel",i),jr("close",i);break;case"iframe":case"object":case"embed":jr("load",i);break;case"video":case"audio":for(a=0;a<Dr.length;a++)jr(Dr[a],i);break;case"source":jr("error",i);break;case"img":case"image":case"link":jr("error",i),jr("load",i);break;case"details":jr("toggle",i);break;case"input":K(i,s),jr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},jr("invalid",i);break;case"textarea":ne(i,s),jr("invalid",i)}for(var l in me(r,s),a=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?i.textContent!==c&&(!0!==s.suppressHydrationWarning&&Qr(i.textContent,c,e),a=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Qr(i.textContent,c,e),a=["children",""+c]):o.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&jr("scroll",i)}switch(r){case"input":H(i),X(i,s,!0);break;case"textarea":H(i),oe(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Yr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[fo]=t,e[ho]=i,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=ge(r,i),r){case"dialog":jr("cancel",e),jr("close",e),a=i;break;case"iframe":case"object":case"embed":jr("load",e),a=i;break;case"video":case"audio":for(a=0;a<Dr.length;a++)jr(Dr[a],e);a=i;break;case"source":jr("error",e),a=i;break;case"img":case"image":case"link":jr("error",e),jr("load",e),a=i;break;case"details":jr("toggle",e),a=i;break;case"input":K(e,i),a=G(e,i),jr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=D({},i,{value:void 0}),jr("invalid",e);break;case"textarea":ne(e,i),a=te(e,i),jr("invalid",e)}for(s in me(r,a),c=a)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?fe(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&le(e,u):"children"===s?"string"==typeof u?("textarea"!==r||""!==u)&&ce(e,u):"number"==typeof u&&ce(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=u&&"onScroll"===s&&jr("scroll",e):null!=u&&g(e,s,u,l))}switch(r){case"input":H(e),X(e,i,!1);break;case"textarea":H(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+B(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?ee(e,!!i.multiple,s,!1):null!=i.defaultValue&&ee(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Yr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)qs(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=Ji(Ki.current),Ji(Vi.current),pi(t)){if(i=t.stateNode,r=t.memoizedProps,i[fo]=t,(s=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Qr(i.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(i.nodeValue,r,0!=(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[fo]=t,t.stateNode=i}return Vs(t),null;case 13:if(Ro(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))fi(),hi(),t.flags|=98560,s=!1;else if(s=pi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[fo]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),s=!1}else null!==ai&&(ac(ai),ai=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ea.current)?0===ql&&(ql=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Xi(),_s(e,t),null===e&&Br(t.stateNode.containerInfo),Vs(t),null;case 10:return Pi(t.type._context),Vs(t),null;case 19:if(Ro(ea),null===(s=t.memoizedState))return Vs(t),null;if(i=0!=(128&t.flags),null===(l=s.rendering))if(i)Us(s,!1);else{if(0!==ql||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Us(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Lo(ea,1&ea.current|2),t.child}e=e.sibling}null!==s.tail&&Je()>Bl&&(t.flags|=128,i=!0,Us(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Us(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Vs(t),null}else 2*Je()-s.renderingStartTime>Bl&&1073741824!==r&&(t.flags|=128,i=!0,Us(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Je(),t.sibling=null,r=ea.current,Lo(ea,i?1&r|2:1&r),t):(Vs(t),null);case 22:case 23:return dc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&0!=(1&t.mode)?0!=(1073741824&_l)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ks(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&qo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),Ro(Oo),Ro(To),ra(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Yi(t),null;case 13:if(Ro(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ro(ea),null;case 4:return Xi(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},_s=function(){},Ms=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ji(Vi.current);var a,s=null;switch(n){case"input":i=G(e,i),r=G(e,r),s=[];break;case"select":i=D({},i,{value:void 0}),r=D({},r,{value:void 0}),s=[];break;case"textarea":i=te(e,i),r=te(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(u in me(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},qs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Js=!1,Zs=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Qs=null;function Ys(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cc(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Cc(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[bo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Zs||Ys(n,t);case 6:var r=ul,o=dl;ul=null,pl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Bt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&el(n,t,a),o=o.next}while(o!==r)}pl(e,t,n);break;case 1:if(!Zs&&(Ys(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cc(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,pl(e,t,n),Zs=r):pl(e,t,n);break;default:pl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Pc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(n(160));fl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){Cc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),bl(e),4&o){try{nl(3,e,e.return),rl(3,e)}catch(t){Cc(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Cc(e,e.return,t)}}break;case 1:ml(t,e),bl(e),512&o&&null!==r&&Ys(r,r.return);break;case 5:if(ml(t,e),bl(e),512&o&&null!==r&&Ys(r,r.return),32&e.flags){var i=e.stateNode;try{ce(i,"")}catch(t){Cc(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&J(i,a),ge(l,s);var u=ge(l,a);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?fe(i,p):"dangerouslySetInnerHTML"===d?le(i,p):"children"===d?ce(i,p):g(i,d,p,u)}switch(l){case"input":Z(i,a);break;case"textarea":re(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ee(i,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?ee(i,!!a.multiple,a.defaultValue,!0):ee(i,!!a.multiple,a.multiple?[]:"",!1))}i[ho]=a}catch(t){Cc(e,e.return,t)}}break;case 6:if(ml(t,e),bl(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Cc(e,e.return,t)}}break;case 3:if(ml(t,e),bl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){Cc(e,e.return,t)}break;case 4:default:ml(t,e),bl(e);break;case 13:ml(t,e),bl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||($l=Je())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Zs=(u=Zs)||d,ml(t,e),Zs=u):ml(t,e),bl(e),8192&o){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Qs=e,d=e.child;null!==d;){for(p=Qs=d;null!==Qs;){switch(h=(f=Qs).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Ys(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){o=f,r=f.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cc(o,r,e)}}break;case 5:Ys(f,f.return);break;case 22:if(null!==f.memoizedState){wl(p);continue}}null!==h?(h.return=f,Qs=h):wl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{i=p.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=pe("display",s))}catch(t){Cc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Cc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),bl(e),4&o&&hl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(ce(i,""),o.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(n(161))}}catch(t){Cc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Qs=e,vl(e)}function vl(e,t,n){for(var r=0!=(1&e.mode);null!==Qs;){var o=Qs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Js;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Js;var c=Zs;if(Js=a,(Zs=l)&&!c)for(Qs=o;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Qs=l):xl(o);for(;null!==i;)Qs=i,vl(i),i=i.sibling;Qs=o,Js=s,Zs=c}Sl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Qs=i):Sl(e)}}function Sl(e){for(;null!==Qs;){var t=Qs;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Zs)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:ns(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Hi(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Bt(p)}}}break;default:throw Error(n(163))}Zs||512&t.flags&&ol(t)}catch(e){Cc(t,t.return,e)}}if(t===e){Qs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Qs=r;break}Qs=t.return}}function wl(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function xl(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Cc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cc(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Cc(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Cc(t,a,e)}}}catch(e){Cc(t,t.return,e)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var kl,Cl=Math.ceil,El=b.ReactCurrentDispatcher,Rl=b.ReactCurrentOwner,Ll=b.ReactCurrentBatchConfig,Pl=0,Tl=null,Ol=null,Il=0,_l=0,Ml=Eo(0),ql=0,Dl=null,Nl=0,Al=0,zl=0,jl=null,Fl=null,$l=0,Bl=1/0,Wl=null,Hl=!1,Ul=null,Vl=null,Gl=!1,Kl=null,Jl=0,Zl=0,Xl=null,Ql=-1,Yl=0;function ec(){return 0!=(6&Pl)?Je():-1!==Ql?Ql:Ql=Je()}function tc(e){return 0==(1&e.mode)?1:0!=(2&Pl)&&0!==Il?Il&-Il:null!==gi.transition?(0===Yl&&(Yl=mt()),Yl):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function nc(e,t,r,o){if(50<Zl)throw Zl=0,Xl=null,Error(n(185));bt(e,r,o),0!=(2&Pl)&&e===Tl||(e===Tl&&(0==(2&Pl)&&(Al|=r),4===ql&&sc(e,Il)),rc(e,o),1===r&&0===Pl&&0==(1&t.mode)&&(Bl=Je()+500,Fo&&Wo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!=(s&n)&&0==(s&r)||(o[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=pt(e,e===Tl?Il:0);if(0===r)null!==n&&Ue(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ue(n),1===t)0===e.tag?function(e){Fo=!0,Bo(e)}(lc.bind(null,e)):Bo(lc.bind(null,e)),ao((function(){0==(6&Pl)&&Wo()})),n=null;else{switch(St(r)){case 1:n=Xe;break;case 4:n=Ye;break;case 16:default:n=et;break;case 536870912:n=rt}n=Tc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Ql=-1,Yl=0,0!=(6&Pl))throw Error(n(327));var r=e.callbackNode;if(xc()&&e.callbackNode!==r)return null;var o=pt(e,e===Tl?Il:0);if(0===o)return null;if(0!=(30&o)||0!=(o&e.expiredLanes)||t)t=gc(e,o);else{t=o;var i=Pl;Pl|=2;var a=hc();for(Tl===e&&Il===t||(Wl=null,Bl=Je()+500,pc(e,t));;)try{yc();break}catch(t){fc(e,t)}Li(),El.current=a,Pl=i,null!==Ol?t=0:(Tl=null,Il=0,t=ql)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=ic(e,i))),1===t)throw r=Dl,pc(e,0),sc(e,o),rc(e,Je()),r;if(6===t)sc(e,o);else{if(i=e.current.alternate,0==(30&o)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,o))&&(0!==(a=ht(e))&&(o=a,t=ic(e,a))),1===t))throw r=Dl,pc(e,0),sc(e,o),rc(e,Je()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:wc(e,Fl,Wl);break;case 3:if(sc(e,o),(130023424&o)===o&&10<(t=$l+500-Je())){if(0!==pt(e,0))break;if(((i=e.suspendedLanes)&o)!==o){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(wc.bind(null,e,Fl,Wl),t);break}wc(e,Fl,Wl);break;case 4:if(sc(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-at(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Je()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Cl(o/1960))-o)){e.timeoutHandle=ro(wc.bind(null,e,Fl,Wl),o);break}wc(e,Fl,Wl);break;default:throw Error(n(329))}}}return rc(e,Je()),e.callbackNode===r?oc.bind(null,e):null}function ic(e,t){var n=jl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Fl,Fl=n,null!==t&&ac(t)),e}function ac(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function sc(e,t){for(t&=~zl,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!=(6&Pl))throw Error(n(327));xc();var t=pt(e,0);if(0==(1&t))return rc(e,Je()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=ic(e,o))}if(1===r)throw r=Dl,pc(e,0),sc(e,t),rc(e,Je()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Fl,Wl),rc(e,Je()),null}function cc(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Bl=Je()+500,Fo&&Wo())}}function uc(e){null!==Kl&&0===Kl.tag&&0==(6&Pl)&&xc();var t=Pl;Pl|=1;var n=Ll.transition,r=vt;try{if(Ll.transition=null,vt=1,e)return e()}finally{vt=r,Ll.transition=n,0==(6&(Pl=t))&&Wo()}}function dc(){_l=Ml.current,Ro(Ml)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&qo();break;case 3:Xi(),Ro(Oo),Ro(To),ra();break;case 5:Yi(r);break;case 4:Xi();break;case 13:case 19:Ro(ea);break;case 10:Pi(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Ol=e=Mc(e.current,null),Il=_l=t,ql=0,Dl=null,zl=Al=Nl=0,Fl=jl=null,null!==_i){for(t=0;t<_i.length;t++)if(null!==(r=(n=_i[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}_i=null}return e}function fc(e,t){for(;;){var r=Ol;try{if(Li(),oa.current=Qa,ua){for(var o=sa.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,pa=0,Rl.current=null,null===r||null===r.return){ql=1,Dl=t,Ol=null;break}e:{var a=e,s=r.return,l=r,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,bs(h,s,l,0,t),1&h.mode&&ms(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){ms(a,u,t),mc();break e}c=Error(n(426))}else if(ii&&1&l.mode){var b=gs(s);if(null!==b){0==(65536&b.flags)&&(b.flags|=256),bs(b,s,l,0,t),mi(cs(c,l));break e}}a=c=cs(c,l),4!==ql&&(ql=2),null===jl?jl=[a]:jl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,fs(0,c,t));break e;case 1:l=c;var y=a.type,v=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Vl||!Vl.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}Sc(r)}catch(e){t=e,Ol===r&&null!==r&&(Ol=r=r.return);continue}break}}function hc(){var e=El.current;return El.current=Qa,null===e?Qa:e}function mc(){0!==ql&&3!==ql&&2!==ql||(ql=4),null===Tl||0==(268435455&Nl)&&0==(268435455&Al)||sc(Tl,Il)}function gc(e,t){var r=Pl;Pl|=2;var o=hc();for(Tl===e&&Il===t||(Wl=null,pc(e,t));;)try{bc();break}catch(t){fc(e,t)}if(Li(),Pl=r,El.current=o,null!==Ol)throw Error(n(261));return Tl=null,Il=0,ql}function bc(){for(;null!==Ol;)vc(Ol)}function yc(){for(;null!==Ol&&!Ve();)vc(Ol)}function vc(e){var t=kl(e.alternate,e,_l);e.memoizedProps=e.pendingProps,null===t?Sc(e):Ol=t,Rl.current=null}function Sc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Gs(n,t,_l)))return void(Ol=n)}else{if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Ol=n);if(null===e)return ql=6,void(Ol=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===ql&&(ql=5)}function wc(e,t,r){var o=vt,i=Ll.transition;try{Ll.transition=null,vt=1,function(e,t,r,o){do{xc()}while(null!==Kl);if(0!=(6&Pl))throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Tl&&(Ol=Tl=null,Il=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Gl||(Gl=!0,Tc(et,(function(){return xc(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=Ll.transition,Ll.transition=null;var s=vt;vt=1;var l=Pl;Pl|=4,Rl.current=null,function(e,t){if(eo=Ht,fr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==i&&3!==p.nodeType||(l=s+i),p!==a||0!==o&&3!==p.nodeType||(c=s+o),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++u===i&&(l=s),f===a&&++d===o&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ht=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;1===S.nodeType?S.textContent="":9===S.nodeType&&S.documentElement&&S.removeChild(S.documentElement);break;default:throw Error(n(163))}}catch(e){Cc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=tl,tl=!1}(e,r),gl(r,e),hr(to),Ht=!!eo,to=eo=null,e.current=r,yl(r),Ke(),Pl=l,vt=s,Ll.transition=a}else e.current=r;if(Gl&&(Gl=!1,Kl=e,Jl=i),a=e.pendingLanes,0===a&&(Vl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),rc(e,Je()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=Ul,Ul=null,e;0!=(1&Jl)&&0!==e.tag&&xc(),a=e.pendingLanes,0!=(1&a)?e===Xl?Zl++:(Zl=0,Xl=e):Zl=0,Wo()}(e,t,r,o)}finally{Ll.transition=i,vt=o}return null}function xc(){if(null!==Kl){var e=St(Jl),t=Ll.transition,r=vt;try{if(Ll.transition=null,vt=16>e?16:e,null===Kl)var o=!1;else{if(e=Kl,Kl=null,Jl=0,0!=(6&Pl))throw Error(n(331));var i=Pl;for(Pl|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!=(16&Qs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Qs=u;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var p=d.child;if(null!==p)p.return=d,Qs=p;else for(;null!==Qs;){var f=(d=Qs).sibling,h=d.return;if(il(d),d===u){Qs=null;break}if(null!==f){f.return=h,Qs=f;break}Qs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Qs=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(0!=(2048&(a=Qs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Qs=y;break e}Qs=a.return}}var v=e.current;for(Qs=v;null!==Qs;){var S=(s=Qs).child;if(0!=(2064&s.subtreeFlags)&&null!==S)S.return=s,Qs=S;else e:for(s=v;null!==Qs;){if(0!=(2048&(l=Qs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Cc(l,l.return,e)}if(l===s){Qs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Qs=w;break e}Qs=l.return}}if(Pl=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{vt=r,Ll.transition=t}}return!1}function kc(e,t,n){e=Fi(e,t=fs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(bt(e,1,t),rc(e,t))}function Cc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Fi(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(bt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Il&n)===n&&(4===ql||3===ql&&(130023424&Il)===Il&&500>Je()-$l?pc(e,0):zl|=n),rc(e,t)}function Rc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Di(e,t))&&(bt(e,t,n),rc(e,n))}function Lc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Rc(e,n)}function Pc(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Rc(e,r)}function Tc(e,t){return He(e,t)}function Oc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Oc(e,t,n,r)}function _c(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qc(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)_c(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case w:return Dc(r.children,i,a,t);case x:s=8,i|=8;break;case k:return(e=Ic(12,r,t,2|i)).elementType=k,e.lanes=a,e;case L:return(e=Ic(13,r,t,i)).elementType=L,e.lanes=a,e;case P:return(e=Ic(19,r,t,i)).elementType=P,e.lanes=a,e;case I:return Nc(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case E:s=9;break e;case R:s=11;break e;case T:s=14;break e;case O:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ic(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Dc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Nc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Ac(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,o,i,a,s,l){return e=new jc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ic(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ai(i),e}function $c(e){if(!e)return Po;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Mo(r))return No(e,r,t)}return t}function Bc(e,t,n,r,o,i,a,s,l){return(e=Fc(n,r,!0,e,0,i,0,s,l)).context=$c(null),n=e.current,(i=ji(r=ec(),o=tc(n))).callback=null!=t?t:null,Fi(n,i,o),e.current.lanes=o,bt(e,o,r),rc(e,r),e}function Wc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=ji(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fi(o,t,a))&&(nc(e,o,a,i),$i(e,o,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)vs=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return vs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),hi();break;case 5:Qi(t);break;case 1:Mo(t.type)&&Ao(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Lo(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Lo(ea,1&ea.current),t.flags|=128,null):0!=(n&t.child.childLanes)?As(e,t,n):(Lo(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);Lo(ea,1&ea.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Lo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Hs(e,t,n)}(e,t,r);vs=0!=(131072&e.flags)}else vs=!1,ii&&0!=(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ws(e,t),e=t.pendingProps;var i=_o(t,To.current);Oi(t,r),i=ga(null,t,o,e,i,r);var a=ba();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(o)?(a=!0,Ao(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ai(t),i.updater=os,t.stateNode=i,i._reactInternals=t,ls(t,o,e,r),t=Ps(null,t,o,!0,a,r)):(t.tag=0,ii&&a&&ti(t),Ss(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return _c(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===T)return 14}return 2}(o),e=ns(o,e),i){case 0:t=Rs(null,t,o,e,r);break e;case 1:t=Ls(null,t,o,e,r);break e;case 11:t=ws(null,t,o,e,r);break e;case 14:t=xs(null,t,o,ns(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Rs(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 1:return o=t.type,i=t.pendingProps,Ls(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 3:e:{if(Ts(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,zi(e,t),Wi(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Os(e,t,o,r,i=cs(Error(n(423)),t));break e}if(o!==i){t=Os(e,t,o,r,i=cs(Error(n(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,r=xi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),o===i){t=Hs(e,t,r);break e}Ss(e,t,o,r)}t=t.child}return t;case 5:return Qi(t),null===e&&ui(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,no(o,i)?s=null:null!==a&&no(o,a)&&(t.flags|=32),Es(e,t),Ss(e,t,s,r),t.child;case 6:return null===e&&ui(t),null;case 13:return As(e,t,r);case 4:return Zi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=wi(t,null,o,r):Ss(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,ws(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 7:return Ss(e,t,t.pendingProps,r),t.child;case 8:case 12:return Ss(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Lo(ki,o._currentValue),o._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Oo.current){t=Hs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===o){if(1===a.tag){(c=ji(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),Ti(a.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ti(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}Ss(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Oi(t,r),o=o(i=Ii(i)),t.flags|=1,Ss(e,t,o,r),t.child;case 14:return i=ns(o=t.type,t.pendingProps),xs(e,t,o,i=ns(o.type,i),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ns(o,i),Ws(e,t),t.tag=1,Mo(o)?(e=!0,Ao(t)):e=!1,Oi(t,r),as(t,o,i),ls(t,o,i,r),Ps(null,t,o,!0,e,r);case 19:return Bs(e,t,r);case 22:return Cs(e,t,r)}throw Error(n(156,t.tag))};var Gc="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Jc(e){this._internalRoot=e}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function Yc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Hc(a);s.call(e)}}Wc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Hc(a);i.call(e)}}var a=Bc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[mo]=a.current,Br(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Fc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=l,e[mo]=l.current,Br(8===e.nodeType?e.parentNode:e),uc((function(){Wc(t,l,n,r)})),l}(n,t,e,o,r);return Hc(a)}Jc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wc(e,t,null,null)},Jc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Wc(null,e,null,null)})),t[mo]=null}},Jc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&At(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Je()),0==(6&Pl)&&(Bl=Je()+500,Wo()))}break;case 13:uc((function(){var t=Di(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},xt=function(e){if(13===e.tag){var t=Di(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},kt=function(e){if(13===e.tag){var t=tc(e),n=Di(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},Ct=function(){return vt},Et=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ve=function(e,t,r){switch(t){case"input":if(Z(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 o=r[t];if(o!==e&&o.form===e.form){var i=xo(o);if(!i)throw Error(n(90));U(o),Z(o,i)}}}break;case"textarea":re(e,r);break;case"select":null!=(t=r.value)&&ee(e,!!r.multiple,t,!1)}},Ee=cc,Re=uc;var eu={usingClientEntryPoint:!1,Events:[So,wo,xo,ke,Ce,cc]},tu={findFiberByHostInstance:vo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(e){}}return Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,Qe.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},Qe.createRoot=function(e,t){if(!Zc(e))throw Error(n(299));var r=!1,o="",i=Gc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Fc(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Kc(t)},Qe.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(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Be(t))?null:e.stateNode},Qe.flushSync=function(e){return uc(e)},Qe.hydrate=function(e,t,r){if(!Xc(t))throw Error(n(200));return Yc(null,e,t,!0,r)},Qe.hydrateRoot=function(e,t,r){if(!Zc(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Gc;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Bc(t,null,e,1,null!=r?r:null,i,0,a,s),e[mo]=t.current,Br(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Jc(t)},Qe.render=function(e,t,r){if(!Xc(t))throw Error(n(200));return Yc(null,e,t,!1,r)},Qe.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(n(40));return!!e._reactRootContainer&&(uc((function(){Yc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},Qe.unstable_batchedUpdates=cc,Qe.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Xc(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Yc(e,t,r,!1,o)},Qe.version="18.3.1-next-f1338f8080-20240426",Qe}function rt(){if(Ke)return Xe.exports;return Ke=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Xe.exports=nt(),Xe.exports}var ot=function(){if(Je)return Ze;Je=1;var e=rt();return Ze.createRoot=e.createRoot,Ze.hydrateRoot=e.hydrateRoot,Ze}(),it=n(ot);function at(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>n.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${n} for the full message.`}var st="$$material";function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lt.apply(null,arguments)}var ct=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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 n=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{n.insertRule(e,n.cssRules.length)}catch(e){}}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}(),ut="-ms-",dt="-moz-",pt="-webkit-",ft="comm",ht="rule",mt="decl",gt="@keyframes",bt=Math.abs,yt=String.fromCharCode,vt=Object.assign;function St(e,t){return 45^Et(e,0)?(((t<<2^Et(e,0))<<2^Et(e,1))<<2^Et(e,2))<<2^Et(e,3):0}function wt(e){return e.trim()}function xt(e,t){return(e=t.exec(e))?e[0]:e}function kt(e,t,n){return e.replace(t,n)}function Ct(e,t){return e.indexOf(t)}function Et(e,t){return 0|e.charCodeAt(t)}function Rt(e,t,n){return e.slice(t,n)}function Lt(e){return e.length}function Pt(e){return e.length}function Tt(e,t){return t.push(e),e}function Ot(e,t){return e.map(t).join("")}var It=1,_t=1,Mt=0,qt=0,Dt=0,Nt="";function At(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:It,column:_t,length:a,return:""}}function zt(e,t){return vt(At("",null,null,"",null,null,0),e,{length:-e.length},t)}function jt(){return Dt=qt>0?Et(Nt,--qt):0,_t--,10===Dt&&(_t=1,It--),Dt}function Ft(){return Dt=qt<Mt?Et(Nt,qt++):0,_t++,10===Dt&&(_t=1,It++),Dt}function $t(){return Et(Nt,qt)}function Bt(){return qt}function Wt(e,t){return Rt(Nt,e,t)}function Ht(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 Ut(e){return It=_t=1,Mt=Lt(Nt=e),qt=0,[]}function Vt(e){return Nt="",e}function Gt(e){return wt(Wt(qt-1,Zt(91===e?e+2:40===e?e+1:e)))}function Kt(e){for(;(Dt=$t())&&Dt<33;)Ft();return Ht(e)>2||Ht(Dt)>3?"":" "}function Jt(e,t){for(;--t&&Ft()&&!(Dt<48||Dt>102||Dt>57&&Dt<65||Dt>70&&Dt<97););return Wt(e,Bt()+(t<6&&32==$t()&&32==Ft()))}function Zt(e){for(;Ft();)switch(Dt){case e:return qt;case 34:case 39:34!==e&&39!==e&&Zt(Dt);break;case 40:41===e&&Zt(e);break;case 92:Ft()}return qt}function Xt(e,t){for(;Ft()&&e+Dt!==57&&(e+Dt!==84||47!==$t()););return"/*"+Wt(t,qt-1)+"*"+yt(47===e?e:Ft())}function Qt(e){for(;!Ht($t());)Ft();return Wt(e,qt)}function Yt(e){return Vt(en("",null,null,null,[""],e=Ut(e),0,[0],e))}function en(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,y=0,v="",S=o,w=i,x=r,k=v;g;)switch(h=y,y=Ft()){case 40:if(108!=h&&58==Et(k,d-1)){-1!=Ct(k+=kt(Gt(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=Gt(y);break;case 9:case 10:case 13:case 32:k+=Kt(h);break;case 92:k+=Jt(Bt()-1,7);continue;case 47:switch($t()){case 42:case 47:Tt(nn(Xt(Ft(),Bt()),t,n),l);break;default:k+="/"}break;case 123*m:s[c++]=Lt(k)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(k=kt(k,/\f/g,"")),f>0&&Lt(k)-d&&Tt(f>32?rn(k+";",r,n,d-1):rn(kt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Tt(x=tn(k,t,n,c,u,o,s,v,S=[],w=[],d),i),123===y)if(0===u)en(k,t,x,x,S,i,d,s,w);else switch(99===p&&110===Et(k,3)?100:p){case 100:case 108:case 109:case 115:en(e,x,x,r&&Tt(tn(e,x,x,0,0,o,s,v,o,S=[],d),w),o,w,d,s,r?S:w);break;default:en(k,x,x,x,[""],w,0,s,w)}}c=u=f=0,m=b=1,v=k="",d=a;break;case 58:d=1+Lt(k),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==jt())continue;switch(k+=yt(y),y*m){case 38:b=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Lt(k)-1)*b,b=1;break;case 64:45===$t()&&(k+=Gt(Ft())),p=$t(),u=d=Lt(v=k+=Qt(Bt())),y++;break;case 45:45===h&&2==Lt(k)&&(m=0)}}return i}function tn(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Pt(p),h=0,m=0,g=0;h<r;++h)for(var b=0,y=Rt(e,d+1,d=bt(m=a[h])),v=e;b<f;++b)(v=wt(m>0?p[b]+" "+y:kt(y,/&\f/g,p[b])))&&(l[g++]=v);return At(e,t,n,0===o?ht:s,l,c,u)}function nn(e,t,n){return At(e,t,n,ft,yt(Dt),Rt(e,2,-2),0)}function rn(e,t,n,r){return At(e,t,n,mt,Rt(e,0,r),Rt(e,r+1,-1),r)}function on(e,t){for(var n="",r=Pt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function an(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case mt:return e.return=e.return||e.value;case ft:return"";case gt:return e.return=e.value+"{"+on(e.children,r)+"}";case ht:e.value=e.props.join(",")}return Lt(n=on(e.children,r))?e.return=e.value+"{"+n+"}":""}function sn(e){var t=Pt(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function ln(e){return function(t){t.root||(t=t.return)&&e(t)}}function cn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var un=function(e,t,n){for(var r=0,o=0;r=o,o=$t(),38===r&&12===o&&(t[n]=1),!Ht(o);)Ft();return Wt(e,qt)},dn=function(e,t){return Vt(function(e,t){var n=-1,r=44;do{switch(Ht(r)){case 0:38===r&&12===$t()&&(t[n]=1),e[n]+=un(qt-1,t,n);break;case 2:e[n]+=Gt(r);break;case 4:if(44===r){e[++n]=58===$t()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=yt(r)}}while(r=Ft());return e}(Ut(e),t))},pn=new WeakMap,fn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pn.get(n))&&!r){pn.set(e,!0);for(var o=[],i=dn(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},hn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function mn(e,t){switch(St(e,t)){case 5103:return pt+"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 pt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pt+e+dt+e+ut+e+e;case 6828:case 4268:return pt+e+ut+e+e;case 6165:return pt+e+ut+"flex-"+e+e;case 5187:return pt+e+kt(e,/(\w+).+(:[^]+)/,pt+"box-$1$2"+ut+"flex-$1$2")+e;case 5443:return pt+e+ut+"flex-item-"+kt(e,/flex-|-self/,"")+e;case 4675:return pt+e+ut+"flex-line-pack"+kt(e,/align-content|flex-|-self/,"")+e;case 5548:return pt+e+ut+kt(e,"shrink","negative")+e;case 5292:return pt+e+ut+kt(e,"basis","preferred-size")+e;case 6060:return pt+"box-"+kt(e,"-grow","")+pt+e+ut+kt(e,"grow","positive")+e;case 4554:return pt+kt(e,/([^-])(transform)/g,"$1"+pt+"$2")+e;case 6187:return kt(kt(kt(e,/(zoom-|grab)/,pt+"$1"),/(image-set)/,pt+"$1"),e,"")+e;case 5495:case 3959:return kt(e,/(image-set\([^]*)/,pt+"$1$`$1");case 4968:return kt(kt(e,/(.+:)(flex-)?(.*)/,pt+"box-pack:$3"+ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pt+e+e;case 4095:case 3583:case 4068:case 2532:return kt(e,/(.+)-inline(.+)/,pt+"$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(Lt(e)-1-t>6)switch(Et(e,t+1)){case 109:if(45!==Et(e,t+4))break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+dt+(108==Et(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ct(e,"stretch")?mn(kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Et(e,t+1))break;case 6444:switch(Et(e,Lt(e)-3-(~Ct(e,"!important")&&10))){case 107:return kt(e,":",":"+pt)+e;case 101:return kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pt+(45===Et(e,14)?"inline-":"")+"box$3$1"+pt+"$2$3$1"+ut+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return pt+e+ut+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+ut+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+ut+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pt+e+ut+e+e}return e}var gn,bn,yn,vn,Sn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mt:e.return=mn(e.value,e.length);break;case gt:return on([zt(e,{value:kt(e.value,"@","@"+pt)})],r);case ht:if(e.length)return Ot(e.props,(function(t){switch(xt(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return on([zt(e,{props:[kt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return on([zt(e,{props:[kt(t,/:(plac\w+)/,":"+pt+"input-$1")]}),zt(e,{props:[kt(t,/:(plac\w+)/,":-moz-$1")]}),zt(e,{props:[kt(t,/:(plac\w+)/,ut+"input-$1")]})],r)}return""}))}}],wn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Sn,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c=[fn,hn],u=[an,ln((function(e){l.insert(e)}))],d=sn(c.concat(i,u));o=function(e,t,n,r){l=n,function(e){on(Yt(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new ct({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p},xn={exports:{}},kn={};function Cn(){return bn||(bn=1,xn.exports=function(){if(gn)return kn;gn=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case p:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),kn.ContextConsumer=s,kn.ContextProvider=a,kn.Element=t,kn.ForwardRef=c,kn.Fragment=r,kn.Lazy=f,kn.Memo=p,kn.Portal=n,kn.Profiler=i,kn.StrictMode=o,kn.Suspense=u,kn.SuspenseList=d,kn.isAsyncMode=function(){return!1},kn.isConcurrentMode=function(){return!1},kn.isContextConsumer=function(e){return m(e)===s},kn.isContextProvider=function(e){return m(e)===a},kn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},kn.isForwardRef=function(e){return m(e)===c},kn.isFragment=function(e){return m(e)===r},kn.isLazy=function(e){return m(e)===f},kn.isMemo=function(e){return m(e)===p},kn.isPortal=function(e){return m(e)===n},kn.isProfiler=function(e){return m(e)===i},kn.isStrictMode=function(e){return m(e)===o},kn.isSuspense=function(e){return m(e)===u},kn.isSuspenseList=function(e){return m(e)===d},kn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},kn.typeOf=m,kn}()),xn.exports}!function(){if(vn)return yn;vn=1;var e=Cn(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;yn=function e(t,r,o){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,o)}var f=s(r);l&&(f=f.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var b=f[g];if(!(n[b]||o&&o[b]||m&&m[b]||h&&h[b])){var y=c(r,b);try{a(t,b,y)}catch(e){}}}}return t}}();function En(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Rn=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ln=function(e,t,n){Rn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Pn={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},Tn=/[A-Z]|^ms/g,On=/_EMO_([^_]+?)_([^]*?)_EMO_/g,In=function(e){return 45===e.charCodeAt(1)},_n=function(e){return null!=e&&"boolean"!=typeof e},Mn=cn((function(e){return In(e)?e:e.replace(Tn,"-$&").toLowerCase()})),qn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(On,(function(e,t,n){return Nn={name:t,styles:n,next:Nn},t}))}return 1===Pn[e]||In(e)||"number"!=typeof t||0===t?t:t+"px"};function Dn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Nn={name:o.name,styles:o.styles,next:Nn},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Nn={name:a.name,styles:a.styles,next:Nn},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Dn(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":_n(s)&&(r+=Mn(i)+":"+qn(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Dn(e,t,a);switch(i){case"animation":case"animationName":r+=Mn(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)_n(a[c])&&(r+=Mn(i)+":"+qn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Nn,l=n(e);return Nn=s,Dn(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Nn,An=/label:\s*([^\s;{]+)\s*(;|$)/g;function zn(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Nn=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Dn(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Dn(n,t,e[a]),r)o+=i[a]}An.lastIndex=0;for(var s,l="";null!==(s=An.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Nn}}var jn,Fn,$n=!!x.useInsertionEffect&&x.useInsertionEffect,Bn=$n||function(e){return e()},Wn=$n||S.useLayoutEffect,Hn=S.createContext("undefined"!=typeof HTMLElement?wn({key:"css"}):null),Un=Hn.Provider,Vn=function(e){return S.forwardRef((function(t,n){var r=S.useContext(Hn);return e(t,r,n)}))},Gn=S.createContext({}),Kn={}.hasOwnProperty,Jn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Rn(t,n,r),Bn((function(){return Ln(t,n,r)})),null},Xn=Vn((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Jn],i=[r],a="";"string"==typeof e.className?a=En(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=zn(i,void 0,S.useContext(Gn));a+=t.key+"-"+s.name;var l={};for(var c in e)Kn.call(e,c)&&"css"!==c&&c!==Jn&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),S.createElement(S.Fragment,null,S.createElement(Zn,{cache:t,serialized:s,isStringTag:"string"==typeof o}),S.createElement(o,l))})),Qn=Xn,Yn=function(e,t){var n=arguments;if(null==t||!Kn.call(t,"css"))return S.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Qn,o[1]=function(e,t){var n={};for(var r in t)Kn.call(t,r)&&(n[r]=t[r]);return n[Jn]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return S.createElement.apply(null,o)};jn=Yn||(Yn={}),Fn||(Fn=jn.JSX||(jn.JSX={}));var er=Vn((function(e,t){var n=zn([e.styles],void 0,S.useContext(Gn)),r=S.useRef();return Wn((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),Wn((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ln(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function tr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return zn(t)}function nr(){var e=tr.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_"}}}var rr=/^((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|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)-.*))$/,or=cn((function(e){return rr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ir=function(e){return"theme"!==e},ar=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?or:ir},sr=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},lr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Rn(t,n,r),Bn((function(){return Ln(t,n,r)})),null},cr=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=sr(t,n,i),l=s||ar(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],p[h])}var m=Vn((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=S.useContext(Gn)}"string"==typeof e.className?i=En(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=zn(d.concat(u),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?ar(r):l,g={};for(var b in e)c&&"as"===b||m(b)&&(g[b]=e[b]);return g.className=i,n&&(g.ref=n),S.createElement(S.Fragment,null,S.createElement(lr,{cache:t,serialized:h,isStringTag:"string"==typeof r}),S.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,lt({},n,r,{shouldForwardProp:sr(m,r,!0)})).apply(void 0,d)},m}}.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){cr[e]=cr(e)}));var ur=function(e,t,n){for(var r=0,o=0;r=o,o=$t(),38===r&&12===o&&(t[n]=1),!Ht(o);)Ft();return Wt(e,qt)},dr=function(e,t){return Vt(function(e,t){var n=-1,r=44;do{switch(Ht(r)){case 0:38===r&&12===$t()&&(t[n]=1),e[n]+=ur(qt-1,t,n);break;case 2:e[n]+=Gt(r);break;case 4:if(44===r){e[++n]=58===$t()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=yt(r)}}while(r=Ft());return e}(Ut(e),t))},pr=new WeakMap,fr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pr.get(n))&&!r){pr.set(e,!0);for(var o=[],i=dr(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},hr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function mr(e,t){switch(St(e,t)){case 5103:return pt+"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 pt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pt+e+dt+e+ut+e+e;case 6828:case 4268:return pt+e+ut+e+e;case 6165:return pt+e+ut+"flex-"+e+e;case 5187:return pt+e+kt(e,/(\w+).+(:[^]+)/,pt+"box-$1$2"+ut+"flex-$1$2")+e;case 5443:return pt+e+ut+"flex-item-"+kt(e,/flex-|-self/,"")+e;case 4675:return pt+e+ut+"flex-line-pack"+kt(e,/align-content|flex-|-self/,"")+e;case 5548:return pt+e+ut+kt(e,"shrink","negative")+e;case 5292:return pt+e+ut+kt(e,"basis","preferred-size")+e;case 6060:return pt+"box-"+kt(e,"-grow","")+pt+e+ut+kt(e,"grow","positive")+e;case 4554:return pt+kt(e,/([^-])(transform)/g,"$1"+pt+"$2")+e;case 6187:return kt(kt(kt(e,/(zoom-|grab)/,pt+"$1"),/(image-set)/,pt+"$1"),e,"")+e;case 5495:case 3959:return kt(e,/(image-set\([^]*)/,pt+"$1$`$1");case 4968:return kt(kt(e,/(.+:)(flex-)?(.*)/,pt+"box-pack:$3"+ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pt+e+e;case 4095:case 3583:case 4068:case 2532:return kt(e,/(.+)-inline(.+)/,pt+"$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(Lt(e)-1-t>6)switch(Et(e,t+1)){case 109:if(45!==Et(e,t+4))break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+dt+(108==Et(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ct(e,"stretch")?mr(kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Et(e,t+1))break;case 6444:switch(Et(e,Lt(e)-3-(~Ct(e,"!important")&&10))){case 107:return kt(e,":",":"+pt)+e;case 101:return kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pt+(45===Et(e,14)?"inline-":"")+"box$3$1"+pt+"$2$3$1"+ut+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return pt+e+ut+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+ut+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+ut+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pt+e+ut+e+e}return e}var gr,br,yr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mt:e.return=mr(e.value,e.length);break;case gt:return on([zt(e,{value:kt(e.value,"@","@"+pt)})],r);case ht:if(e.length)return Ot(e.props,(function(t){switch(xt(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return on([zt(e,{props:[kt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return on([zt(e,{props:[kt(t,/:(plac\w+)/,":"+pt+"input-$1")]}),zt(e,{props:[kt(t,/:(plac\w+)/,":-moz-$1")]}),zt(e,{props:[kt(t,/:(plac\w+)/,ut+"input-$1")]})],r)}return""}))}}],vr=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||yr,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c=[fr,hr],u=[an,ln((function(e){l.insert(e)}))],d=sn(c.concat(i,u));o=function(e,t,n,r){l=n,function(e){on(Yt(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new ct({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p},Sr={exports:{}},wr={};var xr=(br||(br=1,Sr.exports=function(){if(gr)return wr;gr=1;var e=v(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return wr.Fragment=n,wr.jsx=a,wr.jsxs=a,wr}()),Sr.exports);const kr=new Map,Cr=(e,t)=>{const n=vr(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n};let Er;if("object"==typeof document&&(Er=document.querySelector('[name="emotion-insertion-point"]'),!Er)){Er=document.createElement("meta"),Er.setAttribute("name","emotion-insertion-point"),Er.setAttribute("content","");const e=document.querySelector("head");e&&e.prepend(Er)}function Rr(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=S.useMemo((()=>{const e=`${t}-${n}`;if("object"==typeof document&&kr.has(e))return kr.get(e);const r=function(e,t){if(e||t){class n extends ct{insert(e,t){return this.key&&this.key.endsWith("global")&&(this.before=Er),super.insert(e,t)}}const r=Cr({key:"css",insertionPoint:e?Er:void 0},n);if(t){const e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}(t,n);return kr.set(e,r),r}),[t,n]);return o?xr.jsx(Un,{value:o,children:r}):r}function Lr(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return xr.jsx(er,{styles:r})}
17
17
  /**
18
- * @mui/styled-engine v5.18.0
18
+ * @mui/styled-engine v6.5.0
19
19
  *
20
20
  * @license MIT
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */function Pr(e,t){return pr(e,t)}const Ir=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},_r=[];function Mr(e){return _r[0]=e,$n(_r)}var Nr=Object.freeze({__proto__:null,GlobalStyles:Tr,StyledEngineProvider:Or,ThemeContext:Zn,css:or,default:Pr,internal_processStyles:Ir,internal_serializeStyles:Mr,keyframes:ir});function qr(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 Dr(e){if(w.isValidElement(e)||!qr(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Dr(e[n])})),t}function Ar(e,t,n={clone:!0}){const r=n.clone?ut({},e):e;return qr(e)&&qr(t)&&Object.keys(t).forEach((o=>{w.isValidElement(t[o])?r[o]=t[o]:qr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&qr(e[o])?r[o]=Ar(e[o],t[o],n):n.clone?r[o]=qr(t[o])?Dr(t[o]):t[o]:r[o]=t[o]})),r}var zr=Object.freeze({__proto__:null,default:Ar,isPlainObject:qr});const jr=["values","unit","step"],Fr=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)=>ut({},e,{[t.key]:t.val})),{})};function $r(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=dt(e,jr),i=Fr(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return ut({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Br={borderRadius:4};function Wr(e,t){return t?Ar(e,t,{clone:!1}):e}const Ur={xs:0,sm:600,md:900,lg:1200,xl:1536},Hr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ur[e]}px)`};function Vr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Hr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Hr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Ur).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Gr(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Kr(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Jr({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function Zr(e){if("string"!=typeof e)throw new Error(st(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Xr=Object.freeze({__proto__:null,default:Zr});function Qr(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Yr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Qr(e,n)||r,t&&(o=t(o,r,e)),o}function eo(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Qr(e.theme,r)||{};return Vr(e,i,(e=>{let r=Yr(a,o,e);return e===r&&"string"==typeof e&&(r=Yr(a,o,`${t}${"default"===e?"":Zr(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const to={m:"margin",p:"padding"},no={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ro={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oo=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ro[e])return[e];e=ro[e]}const[t,n]=e.split(""),r=to[t],o=no[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),io=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ao=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function so(e,t,n,r){var o;const i=null!=(o=Qr(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function lo(e){return so(e,"spacing",8)}function co(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function uo(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=co(t,n),e)),{})}(oo(n),r);return Vr(e,e[n],o)}function po(e,t){const n=lo(e.theme);return Object.keys(e).map((r=>uo(e,t,r,n))).reduce(Wr,{})}function fo(e){return po(e,io)}function ho(e){return po(e,ao)}function mo(e=8){if(e.mui)return e;const t=lo({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function go(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Wr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function bo(e){return"number"!=typeof e?e:`${e}px solid`}function vo(e,t){return eo({prop:e,themeKey:"borders",transform:t})}fo.propTypes={},fo.filterProps=io,ho.propTypes={},ho.filterProps=ao;const yo=vo("border",bo),So=vo("borderTop",bo),wo=vo("borderRight",bo),xo=vo("borderBottom",bo),ko=vo("borderLeft",bo),Co=vo("borderColor"),Eo=vo("borderTopColor"),Ro=vo("borderRightColor"),Lo=vo("borderBottomColor"),Oo=vo("borderLeftColor"),To=vo("outline",bo),Po=vo("outlineColor"),Io=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=so(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:co(t,e)});return Vr(e,e.borderRadius,n)}return null};Io.propTypes={},Io.filterProps=["borderRadius"],go(yo,So,wo,xo,ko,Co,Eo,Ro,Lo,Oo,Io,To,Po);const _o=e=>{if(void 0!==e.gap&&null!==e.gap){const t=so(e.theme,"spacing",8),n=e=>({gap:co(t,e)});return Vr(e,e.gap,n)}return null};_o.propTypes={},_o.filterProps=["gap"];const Mo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=so(e.theme,"spacing",8),n=e=>({columnGap:co(t,e)});return Vr(e,e.columnGap,n)}return null};Mo.propTypes={},Mo.filterProps=["columnGap"];const No=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=so(e.theme,"spacing",8),n=e=>({rowGap:co(t,e)});return Vr(e,e.rowGap,n)}return null};No.propTypes={},No.filterProps=["rowGap"];function qo(e,t){return"grey"===t?t:e}go(_o,Mo,No,eo({prop:"gridColumn"}),eo({prop:"gridRow"}),eo({prop:"gridAutoFlow"}),eo({prop:"gridAutoColumns"}),eo({prop:"gridAutoRows"}),eo({prop:"gridTemplateColumns"}),eo({prop:"gridTemplateRows"}),eo({prop:"gridTemplateAreas"}),eo({prop:"gridArea"}));function Do(e){return e<=1&&0!==e?100*e+"%":e}go(eo({prop:"color",themeKey:"palette",transform:qo}),eo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qo}),eo({prop:"backgroundColor",themeKey:"palette",transform:qo}));const Ao=eo({prop:"width",transform:Do}),zo=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Ur[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Do(t)}};return Vr(e,e.maxWidth,t)}return null};zo.filterProps=["maxWidth"];const jo=eo({prop:"minWidth",transform:Do}),Fo=eo({prop:"height",transform:Do}),$o=eo({prop:"maxHeight",transform:Do}),Bo=eo({prop:"minHeight",transform:Do});eo({prop:"size",cssProperty:"width",transform:Do}),eo({prop:"size",cssProperty:"height",transform:Do});go(Ao,zo,jo,Fo,$o,Bo,eo({prop:"boxSizing"}));const Wo={border:{themeKey:"borders",transform:bo},borderTop:{themeKey:"borders",transform:bo},borderRight:{themeKey:"borders",transform:bo},borderBottom:{themeKey:"borders",transform:bo},borderLeft:{themeKey:"borders",transform:bo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:bo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Io},color:{themeKey:"palette",transform:qo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qo},backgroundColor:{themeKey:"palette",transform:qo},p:{style:ho},pt:{style:ho},pr:{style:ho},pb:{style:ho},pl:{style:ho},px:{style:ho},py:{style:ho},padding:{style:ho},paddingTop:{style:ho},paddingRight:{style:ho},paddingBottom:{style:ho},paddingLeft:{style:ho},paddingX:{style:ho},paddingY:{style:ho},paddingInline:{style:ho},paddingInlineStart:{style:ho},paddingInlineEnd:{style:ho},paddingBlock:{style:ho},paddingBlockStart:{style:ho},paddingBlockEnd:{style:ho},m:{style:fo},mt:{style:fo},mr:{style:fo},mb:{style:fo},ml:{style:fo},mx:{style:fo},my:{style:fo},margin:{style:fo},marginTop:{style:fo},marginRight:{style:fo},marginBottom:{style:fo},marginLeft:{style:fo},marginX:{style:fo},marginY:{style:fo},marginInline:{style:fo},marginInlineStart:{style:fo},marginInlineEnd:{style:fo},marginBlock:{style:fo},marginBlockStart:{style:fo},marginBlockEnd:{style:fo},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:_o},rowGap:{style:No},columnGap:{style:Mo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Do},maxWidth:{style:zo},minWidth:{transform:Do},height:{transform:Do},maxHeight:{transform:Do},minHeight:{transform:Do},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Uo(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Qr(n,s)||{};if(c)return c(o);return Vr(o,t,(t=>{let n=Yr(u,l,t);return t===n&&"string"==typeof t&&(n=Yr(u,l,`${e}${"default"===t?"":Zr(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:Wo;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=Gr(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=Wr(c,e(n,o,i,s));else{const e=Vr({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?c=Wr(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=Wr(c,e(n,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":Kr(l,c)}:Kr(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const Ho=Uo();function Vo(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}Ho.filterProps=["sx"];const Go=["breakpoints","palette","spacing","shape"];function Ko(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=dt(e,Go),s=$r(n),l=mo(o);let c=Ar({breakpoints:s,direction:"ltr",components:{},palette:ut({mode:"light"},r),spacing:l,shape:ut({},Br,i)},a);return c.applyStyles=Vo,c=t.reduce(((e,t)=>Ar(e,t)),c),c.unstable_sxConfig=ut({},Wo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Ho({sx:e,theme:this})},c}var Jo=Object.freeze({__proto__:null,default:Ko,private_createBreakpoints:$r,unstable_applyStyles:Vo});function Zo(e=null){const t=w.useContext(Zn);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Xo=Ko();function Qo(e=Xo){return Zo(e)}function Yo(e){const t=Mr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ei({styles:e,themeId:t,defaultTheme:n={}}){const r=Qo(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>Yo("function"==typeof e?e(o):e))):Yo(i)),Rr.jsx(Tr,{styles:i})}const ti=["sx"],ni=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Wo;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function ri(e){const{sx:t}=e,n=dt(e,ti),{systemProps:r,otherProps:o}=ni(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return qr(n)?ut({},r,n):r}:ut({},r,t),ut({},o,{sx:i})}var oi=Object.freeze({__proto__:null,default:Ho,extendSxProp:ri,unstable_createStyleFunctionSx:Uo,unstable_defaultSxConfig:Wo});const ii=e=>e,ai=(()=>{let e=ii;return{configure(t){e=t},generate:t=>e(t),reset(){e=ii}}})();function si(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=si(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function li(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=si(e))&&(r&&(r+=" "),r+=t);return r}const ci=["className","component"];const ui={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 di(e,t,n="Mui"){const r=ui[t];return r?`${n}-${r}`:`${ai.generate(e)}-${t}`}function pi(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=di(e,t,n)})),r}var fi=Ln();const hi=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function mi(e){const t=`${e}`.match(hi);return t&&t[1]||""}function gi(e,t=""){return e.displayName||e.name||mi(e)||t}function bi(e,t,n){const r=gi(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var vi=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return gi(e,"Component");if("object"==typeof e)switch(e.$$typeof){case fi.ForwardRef:return bi(e,e.render,"ForwardRef");case fi.Memo:return bi(e,e.type,"memo");default:return}}},getFunctionName:mi});const yi=["ownerState"],Si=["variants"],wi=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xi(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function ki(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Ci=Ko(),Ei=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ri({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Li(e){return e?(t,n)=>n[e]:null}function Oi(e,t,n){let{ownerState:r}=t,o=dt(t,yi);const i="function"==typeof e?e(ut({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>Oi(e,ut({ownerState:r},o),n)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=dt(i,Si);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props(ut({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style(ut({ownerState:r},o,r)):e.style;t.push(n?ki(Mr(i),n):i)}})),t}return n?ki(Mr(i),n):i}const Ti=function(e={}){const{themeId:t,defaultTheme:n=Ci,rootShouldForwardProp:r=xi,slotShouldForwardProp:o=xi}=e,i=e=>Ho(ut({},e,{theme:Ri(ut({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Ir(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Li(Ei(l))}=a,p=dt(a,wi),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let g=xi;"Root"===l||"root"===l?g=r:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=Pr(e,ut({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||qr(e)?r=>{const o=Ri({theme:r.theme,defaultTheme:n,themeId:t});return Oi(e,ut({},r,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(r,...o)=>{let a=v(r);const l=o?o.map(v):[];s&&d&&l.push((e=>{const r=Ri(ut({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Oi(n,ut({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var r;const o=Ri(ut({},e,{defaultTheme:n,themeId:t}));return Oi({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},ut({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=b(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return b.withConfig&&(y.withConfig=b.withConfig),y}}();function Pi(e,t){const n=ut({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ut({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=ut({},i),Object.keys(o).forEach((e=>{n[r][e]=Pi(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Ii({props:e,name:t,defaultTheme:n,themeId:r}){let o=Qo(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Pi(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const _i="undefined"!=typeof window?w.useLayoutEffect:w.useEffect;var Mi=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function Ni(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function qi(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Di(e,t){var n,r;return w.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function Ai(e){return e&&e.ownerDocument||document}function zi(e){return Ai(e).defaultView||window}function ji(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Fi=0;const $i=k["useId".toString()];function Bi(e){if(void 0!==$i){const t=$i();return null!=e?e:t}return function(e){const[t,n]=w.useState(e),r=e||t;return w.useEffect((()=>{null==t&&(Fi+=1,n(`mui-${Fi}`))}),[t]),r}(e)}function Wi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=w.useRef(void 0!==e),[i,a]=w.useState(t);return[o?e:i,w.useCallback((e=>{o||a(e)}),[])]}function Ui(e){const t=w.useRef(e);return _i((()=>{t.current=e})),w.useRef(((...e)=>(0,t.current)(...e))).current}function Hi(...e){return w.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ji(e,t)}))}),e)}const Vi={};const Gi=[];class Ki{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ki}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Ji(){const e=function(e,t){const n=w.useRef(Vi);return n.current===Vi&&(n.current=e(t)),n}(Ki.create).current;return function(e){w.useEffect(e,Gi)}(e.disposeEffect),e}let Zi=!0,Xi=!1;const Qi=new Ki,Yi={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 ea(e){e.metaKey||e.altKey||e.ctrlKey||(Zi=!0)}function ta(){Zi=!1}function na(){"hidden"===this.visibilityState&&Xi&&(Zi=!0)}function ra(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Zi||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Yi[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function oa(){const e=w.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ea,!0),t.addEventListener("mousedown",ta,!0),t.addEventListener("pointerdown",ta,!0),t.addEventListener("touchstart",ta,!0),t.addEventListener("visibilitychange",na,!0))}),[]),t=w.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ra(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Xi=!0,Qi.start(100,(()=>{Xi=!1})),t.current=!1,!0)},ref:e}}function ia(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const aa=e=>{const t=w.useRef({});return w.useEffect((()=>{t.current=e})),t.current};function sa(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}function la(e){return"string"==typeof e}function ca(e,t,n){return void 0===e||la(e)?t:ut({},t,{ownerState:ut({},t.ownerState,n)})}function ua(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ua(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function da(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ua(e))&&(r&&(r+=" "),r+=t);return r}function pa(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function fa(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const ha=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ma(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=dt(e,ha),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=da(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=ut({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=ut({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=pa(ut({},o,r)),s=fa(r),l=fa(o),c=t(a),u=da(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=ut({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=ut({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(ut({},a,{externalSlotProps:s}));return ca(n,ut({},l,{ref:Hi(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function ga(e){var t;return parseInt(w.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const ba=w.createContext(null);function va(){return w.useContext(ba)}var ya="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Sa(e){const{children:t,theme:n}=e,r=va(),o=w.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ut({},e,t)}(r,n);return null!=e&&(e[ya]=null!==r),e}),[n,r]);return Rr.jsx(ba.Provider,{value:o,children:t})}const wa=["value"],xa=w.createContext();function ka(e){let{value:t}=e,n=dt(e,wa);return Rr.jsx(xa.Provider,ut({value:null==t||t},n))}const Ca=w.createContext(void 0);function Ea({value:e,children:t}){return Rr.jsx(Ca.Provider,{value:e,children:t})}function Ra({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Pi(o.defaultProps,r):o.styleOverrides||o.variants?r:Pi(o,r)}({props:e,name:t,theme:{components:w.useContext(Ca)}})}const La={};function Oa(e,t,n,r=!1){return w.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?ut({},t,{[e]:i}):i;return r?()=>a:a}return ut({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Ta(e){const{children:t,theme:n,themeId:r}=e,o=Zo(La),i=va()||La,a=Oa(r,o,n),s=Oa(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=Zo(),n=Bi()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",_i((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}}),[o,n]),o?Rr.jsx(ei,{styles:o}):null}(a);return Rr.jsx(Sa,{theme:s,children:Rr.jsx(Zn.Provider,{value:a,children:Rr.jsx(ka,{value:l,children:Rr.jsxs(Ea,{value:null==a?void 0:a.components,children:[c,t]})})})})}const Pa=["component","direction","spacing","divider","children","className","useFlexGap"],Ia=Ko(),_a=Ti("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ma(e){return Ii({props:e,name:"MuiStack",defaultTheme:Ia})}function Na(e,t){const n=w.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(w.cloneElement(t,{key:`separator-${o}`})),e)),[])}const qa=({ownerState:e,theme:t})=>{let n=ut({display:"flex",flexDirection:"column"},Vr({theme:t},Jr({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=lo(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=Jr({values:e.direction,base:o}),a=Jr({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));n=Ar(n,Vr({theme:t},a,((t,n)=>{return e.useFlexGap?{gap:co(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:co(r,t)}};var o})))}return n=function(e,...t){const n=Gr(e),r=[n,...t].reduce(((e,t)=>Ar(e,t)),{});return Kr(Object.keys(n),r)}(t.breakpoints,n),n};const Da=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Aa=["type","mode"];var za,ja={},Fa={exports:{}};function $a(){return za||(za=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Fa)),Fa.exports}var Ba,Wa=r(lt),Ua=r(Mi);function Ha(){if(Ba)return ja;Ba=1;var e=$a();Object.defineProperty(ja,"__esModule",{value:!0}),ja.alpha=u,ja.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},ja.colorChannel=void 0,ja.darken=d,ja.decomposeColor=i,ja.emphasize=f,ja.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},ja.getLuminance=c,ja.hexToRgb=o,ja.hslToRgb=l,ja.lighten=p,ja.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},ja.private_safeColorChannel=void 0,ja.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},ja.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},ja.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},ja.recomposeColor=s,ja.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(Wa),n=e(Ua);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};ja.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function f(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return ja.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},ja}var Va=Ha();const Ga={black:"#000",white:"#fff"},Ka={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"},Ja={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Za={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xa={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Qa={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ya={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},es={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ts=["mode","contrastThreshold","tonalOffset"],ns={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:Ga.white,default:Ga.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}},rs={text:{primary:Ga.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:Ga.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 os(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Va.lighten(e.main,o):"dark"===t&&(e.dark=Va.darken(e.main,i)))}function is(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=dt(e,ts),i=e.primary||function(e="light"){return"dark"===e?{main:Qa[200],light:Qa[50],dark:Qa[400]}:{main:Qa[700],light:Qa[400],dark:Qa[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ja[200],light:Ja[50],dark:Ja[400]}:{main:Ja[500],light:Ja[300],dark:Ja[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Za[500],light:Za[300],dark:Za[700]}:{main:Za[700],light:Za[400],dark:Za[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Ya[400],light:Ya[300],dark:Ya[700]}:{main:Ya[700],light:Ya[500],dark:Ya[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:es[400],light:es[300],dark:es[700]}:{main:es[800],light:es[500],dark:es[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Xa[400],light:Xa[300],dark:Xa[700]}:{main:"#ed6c02",light:Xa[500],dark:Xa[900]}}(t);function d(e){return Va.getContrastRatio(e,rs.text.primary)>=n?rs.text.primary:ns.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ut({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(st(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(st(12,t?` (${t})`:"",JSON.stringify(e.main)));return os(e,"light",o,r),os(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:rs,light:ns};return Ar(ut({common:ut({},Ga),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Ka,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const as=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ss={textTransform:"uppercase"},ls='"Roboto", "Helvetica", "Arial", sans-serif';function cs(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=ls,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=dt(n,as),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return ut({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===ls?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,ss),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ss),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ar(ut({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function us(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ds=["none",us(0,2,1,-1,0,1,1,0,0,1,3,0),us(0,3,1,-2,0,2,2,0,0,1,5,0),us(0,3,3,-2,0,3,4,0,0,1,8,0),us(0,2,4,-1,0,4,5,0,0,1,10,0),us(0,3,5,-1,0,5,8,0,0,1,14,0),us(0,3,5,-1,0,6,10,0,0,1,18,0),us(0,4,5,-2,0,7,10,1,0,2,16,1),us(0,5,5,-3,0,8,10,1,0,3,14,2),us(0,5,6,-3,0,9,12,1,0,3,16,2),us(0,6,6,-3,0,10,14,1,0,4,18,3),us(0,6,7,-4,0,11,15,1,0,4,20,3),us(0,7,8,-4,0,12,17,2,0,5,22,4),us(0,7,8,-4,0,13,19,2,0,5,24,4),us(0,7,9,-4,0,14,21,2,0,5,26,4),us(0,8,9,-5,0,15,22,2,0,6,28,5),us(0,8,10,-5,0,16,24,2,0,6,30,5),us(0,8,11,-5,0,17,26,2,0,6,32,5),us(0,9,11,-5,0,18,28,2,0,7,34,6),us(0,9,12,-6,0,19,29,2,0,7,36,6),us(0,10,13,-6,0,20,31,3,0,8,38,7),us(0,10,13,-6,0,21,33,3,0,8,40,7),us(0,10,14,-6,0,22,35,3,0,8,42,7),us(0,11,14,-7,0,23,36,3,0,9,44,8),us(0,11,15,-7,0,24,38,3,0,9,46,8)],ps=["duration","easing","delay"],fs={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},hs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ms(e){return`${Math.round(e)}ms`}function gs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function bs(e){const t=ut({},fs,e.easing),n=ut({},hs,e.duration);return ut({getAutoHeightDuration:gs,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return dt(r,ps),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ms(o)} ${i} ${"string"==typeof a?a:ms(a)}`)).join(",")}},e,{easing:t,duration:n})}const vs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ys=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ss(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=dt(e,ys);if(e.vars&&void 0===e.generateCssVars)throw new Error(st(18));const s=is(r),l=Ko(e);let c=Ar(l,{mixins:(u=l.breakpoints,d=n,ut({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:ds.slice(),typography:cs(s,i),transitions:bs(o),zIndex:ut({},vs)});var u,d;return c=Ar(c,a),c=t.reduce(((e,t)=>Ar(e,t)),c),c.unstable_sxConfig=ut({},Wo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Ho({sx:e,theme:this})},c}const ws=Ss();function xs(){const e=Qo(ws);return e[ct]||e}var ks,Cs={},Es={exports:{}};var Rs,Ls={exports:{}};var Os,Ts=r(Nr),Ps=r(zr),Is=r(Xr),_s=r(vi),Ms=r(Jo),Ns=r(oi);function qs(){if(Os)return Cs;Os=1;var e=$a();Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=function(e={}){const{themeId:i,defaultTheme:s=f,rootShouldForwardProp:l=d,slotShouldForwardProp:u=d}=e,p=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return p.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:f,slot:v,skipVariantsResolver:y,skipSx:S,overridesResolver:w=g(h(v))}=a,x=(0,n.default)(a,c),k=f&&f.startsWith("Mui")||v?"components":"custom",C=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,E=S||!1;let R=d;"Root"===v||"root"===v?R=l:v?R=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(R=void 0);const L=(0,r.default)(e,(0,t.default)({shouldForwardProp:R,label:undefined},x)),O=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:s,themeId:i});return b(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?k:void 0)}:e,T=(n,...r)=>{let o=O(n);const a=r?r.map(O):[];f&&w&&a.push((e=>{const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const r=n.components[f].styleOverrides,o={};return Object.entries(r).forEach((([r,i])=>{o[r]=b(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),w(e,o)})),f&&!C&&a.push((e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return b({variants:null==r||null==(n=r.components)||null==(n=n[f])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),E||a.push(p);const l=a.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const c=L(o,...a);return e.muiName&&(c.muiName=e.muiName),c};return L.withConfig&&(T.withConfig=L.withConfig),T}},Cs.shouldForwardProp=d,Cs.systemDefaultTheme=void 0;var t=e((ks||(ks=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Es)),Es.exports)),n=e((Rs||(Rs=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Ls)),Ls.exports)),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ts),o=Ps;e(Is),e(_s);var i=e(Ms),a=e(Ns);const s=["ownerState"],l=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=Cs.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function b(e,o,i){let{ownerState:a}=o,c=(0,n.default)(o,s);const u="function"==typeof e?e((0,t.default)({ownerState:a},c)):e;if(Array.isArray(u))return u.flatMap((e=>b(e,(0,t.default)({ownerState:a},c),i)));if(u&&"object"==typeof u&&Array.isArray(u.variants)){const{variants:e=[]}=u;let o=(0,n.default)(u,l);return e.forEach((e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},c,a)):Object.keys(e.props).forEach((t=>{(null==a?void 0:a[t])!==e.props[t]&&c[t]!==e.props[t]&&(n=!1)})),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},c,a)):e.style;o.push(i?p((0,r.internal_serializeStyles)(n),i):n)}})),o}return i?p((0,r.internal_serializeStyles)(u),i):u}return Cs}const Ds=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,As=n(qs())({themeId:ct,defaultTheme:ws,rootShouldForwardProp:Ds}),zs=["theme"];function js(e){let{theme:t}=e,n=dt(e,zs);const r=t[ct];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=ut({},r,{vars:null}):t&&!t.vars&&(o=ut({},t,{vars:null}))),Rr.jsx(Ta,ut({},n,{themeId:r?ct:void 0,theme:o}))}const Fs=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function $s(e){return Ra(e)}function Bs(e,t){return Bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bs(e,t)}function Ws(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bs(e,t)}var Us=ot(),Hs=n(Us),Vs=!1,Gs=x.createContext(null),Ks="unmounted",Js="exited",Zs="entering",Xs="entered",Qs="exiting",Ys=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Js,r.appearStatus=Zs):o=Xs:o=t.unmountOnExit||t.mountOnEnter?Ks:Js,r.state={status:o},r.nextCallback=null,r}Ws(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ks?{status:Js}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Zs&&n!==Xs&&(t=Zs):n!==Zs&&n!==Xs||(t=Qs)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Zs){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Hs.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Js&&this.setState({status:Ks})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Hs.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Vs?this.safeSetState({status:Xs},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Zs},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Xs},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Hs.findDOMNode(this);t&&!Vs?(this.props.onExit(r),this.safeSetState({status:Qs},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Js},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Js},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Hs.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ks)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=dt(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Gs.Provider,{value:null},"function"==typeof n?n(e,r):x.cloneElement(x.Children.only(n),r))},t}(x.Component);function el(){}function tl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nl(e,t){var n=Object.create(null);return e&&w.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&w.isValidElement(e)?t(e):e}(e)})),n}function rl(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ol(e,t,n){var r=nl(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(w.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=w.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&w.isValidElement(c)&&(o[i]=w.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:rl(a,"exit",e),enter:rl(a,"enter",e)})):o[i]=w.cloneElement(a,{in:!1}):o[i]=w.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:rl(a,"exit",e),enter:rl(a,"enter",e)})}})),o}Ys.contextType=Gs,Ys.propTypes={},Ys.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:el,onEntering:el,onEntered:el,onExit:el,onExiting:el,onExited:el},Ys.UNMOUNTED=Ks,Ys.EXITED=Js,Ys.ENTERING=Zs,Ys.ENTERED=Xs,Ys.EXITING=Qs;var il=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},al=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(tl(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ws(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,nl(n.children,(function(e){return w.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:rl(e,"appear",n),enter:rl(e,"enter",n),exit:rl(e,"exit",n)})}))):ol(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=nl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ut({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=dt(e,["component","childFactory"]),o=this.state.contextValue,i=il(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?x.createElement(Gs.Provider,{value:o},i):x.createElement(Gs.Provider,{value:o},x.createElement(t,r,i))},t}(x.Component);al.propTypes={},al.defaultProps={component:"div",childFactory:function(e){return e}};const sl=pi("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ll=["center","classes","className"];let cl,ul,dl,pl,fl=e=>e;const hl=ir(cl||(cl=fl`
23
+ */function Pr(e,t){return cr(e,t)}const Tr=[];function Or(e){return Tr[0]=e,zn(Tr)}var Ir=Cn();function _r(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 Mr(e){if(S.isValidElement(e)||Ir.isValidElementType(e)||!_r(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Mr(e[n])})),t}function qr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return _r(e)&&_r(t)&&Object.keys(t).forEach((o=>{S.isValidElement(t[o])||Ir.isValidElementType(t[o])?r[o]=t[o]:_r(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&_r(e[o])?r[o]=qr(e[o],t[o],n):n.clone?r[o]=_r(t[o])?Mr(t[o]):t[o]:r[o]=t[o]})),r}const Dr=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)=>({...e,[t.key]:t.val})),{})};function Nr(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e}),{...t}):t}const Ar={borderRadius:4};function zr(e,t){return t?qr(e,t,{clone:!1}):e}const jr={xs:0,sm:600,md:900,lg:1200,xl:1536},Fr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jr[e]}px)`},$r={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:jr[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Br(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Fr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Fr;return Object.keys(t).reduce(((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some((e=>s.startsWith(`@${e}`)))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:$r,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||jr).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o}),{})}return n(t)}function Wr(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Hr({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function Ur(e){if("string"!=typeof e)throw new Error(at(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Vr(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Gr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Vr(e,n)||r,t&&(o=t(o,r,e)),o}function Kr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Vr(e.theme,r)||{};return Br(e,i,(e=>{let r=Gr(a,o,e);return e===r&&"string"==typeof e&&(r=Gr(a,o,`${t}${"default"===e?"":Ur(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Jr={m:"margin",p:"padding"},Zr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Xr[e])return[e];e=Xr[e]}const[t,n]=e.split(""),r=Jr[t],o=Zr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Yr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],eo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function to(e,t,n,r){const o=Vr(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof o?o:()=>{}}function no(e){return to(e,"spacing",8)}function ro(e,t){return"string"==typeof t||null==t?t:e(t)}function oo(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=ro(t,n),e)),{})}(Qr(n),r);return Br(e,e[n],o)}function io(e,t){const n=no(e.theme);return Object.keys(e).map((r=>oo(e,t,r,n))).reduce(zr,{})}function ao(e){return io(e,Yr)}function so(e){return io(e,eo)}function lo(e=8,t=no({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function co(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?zr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function uo(e){return"number"!=typeof e?e:`${e}px solid`}function po(e,t){return Kr({prop:e,themeKey:"borders",transform:t})}ao.propTypes={},ao.filterProps=Yr,so.propTypes={},so.filterProps=eo;const fo=po("border",uo),ho=po("borderTop",uo),mo=po("borderRight",uo),go=po("borderBottom",uo),bo=po("borderLeft",uo),yo=po("borderColor"),vo=po("borderTopColor"),So=po("borderRightColor"),wo=po("borderBottomColor"),xo=po("borderLeftColor"),ko=po("outline",uo),Co=po("outlineColor"),Eo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=to(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:ro(t,e)});return Br(e,e.borderRadius,n)}return null};Eo.propTypes={},Eo.filterProps=["borderRadius"],co(fo,ho,mo,go,bo,yo,vo,So,wo,xo,Eo,ko,Co);const Ro=e=>{if(void 0!==e.gap&&null!==e.gap){const t=to(e.theme,"spacing",8),n=e=>({gap:ro(t,e)});return Br(e,e.gap,n)}return null};Ro.propTypes={},Ro.filterProps=["gap"];const Lo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=to(e.theme,"spacing",8),n=e=>({columnGap:ro(t,e)});return Br(e,e.columnGap,n)}return null};Lo.propTypes={},Lo.filterProps=["columnGap"];const Po=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=to(e.theme,"spacing",8),n=e=>({rowGap:ro(t,e)});return Br(e,e.rowGap,n)}return null};Po.propTypes={},Po.filterProps=["rowGap"];function To(e,t){return"grey"===t?t:e}co(Ro,Lo,Po,Kr({prop:"gridColumn"}),Kr({prop:"gridRow"}),Kr({prop:"gridAutoFlow"}),Kr({prop:"gridAutoColumns"}),Kr({prop:"gridAutoRows"}),Kr({prop:"gridTemplateColumns"}),Kr({prop:"gridTemplateRows"}),Kr({prop:"gridTemplateAreas"}),Kr({prop:"gridArea"}));function Oo(e){return e<=1&&0!==e?100*e+"%":e}co(Kr({prop:"color",themeKey:"palette",transform:To}),Kr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:To}),Kr({prop:"backgroundColor",themeKey:"palette",transform:To}));const Io=Kr({prop:"width",transform:Oo}),_o=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||jr[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Oo(t)}};return Br(e,e.maxWidth,t)}return null};_o.filterProps=["maxWidth"];const Mo=Kr({prop:"minWidth",transform:Oo}),qo=Kr({prop:"height",transform:Oo}),Do=Kr({prop:"maxHeight",transform:Oo}),No=Kr({prop:"minHeight",transform:Oo});Kr({prop:"size",cssProperty:"width",transform:Oo}),Kr({prop:"size",cssProperty:"height",transform:Oo});co(Io,_o,Mo,qo,Do,No,Kr({prop:"boxSizing"}));const Ao={border:{themeKey:"borders",transform:uo},borderTop:{themeKey:"borders",transform:uo},borderRight:{themeKey:"borders",transform:uo},borderBottom:{themeKey:"borders",transform:uo},borderLeft:{themeKey:"borders",transform:uo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:uo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Eo},color:{themeKey:"palette",transform:To},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:To},backgroundColor:{themeKey:"palette",transform:To},p:{style:so},pt:{style:so},pr:{style:so},pb:{style:so},pl:{style:so},px:{style:so},py:{style:so},padding:{style:so},paddingTop:{style:so},paddingRight:{style:so},paddingBottom:{style:so},paddingLeft:{style:so},paddingX:{style:so},paddingY:{style:so},paddingInline:{style:so},paddingInlineStart:{style:so},paddingInlineEnd:{style:so},paddingBlock:{style:so},paddingBlockStart:{style:so},paddingBlockEnd:{style:so},m:{style:ao},mt:{style:ao},mr:{style:ao},mb:{style:ao},ml:{style:ao},mx:{style:ao},my:{style:ao},margin:{style:ao},marginTop:{style:ao},marginRight:{style:ao},marginBottom:{style:ao},marginLeft:{style:ao},marginX:{style:ao},marginY:{style:ao},marginInline:{style:ao},marginInlineStart:{style:ao},marginInlineEnd:{style:ao},marginBlock:{style:ao},marginBlockStart:{style:ao},marginBlockEnd:{style:ao},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:Ro},rowGap:{style:Po},columnGap:{style:Lo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Oo},maxWidth:{style:_o},minWidth:{transform:Oo},height:{transform:Oo},maxHeight:{transform:Oo},minHeight:{transform:Oo},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const zo=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Vr(n,s)||{};if(c)return c(o);return Br(o,t,(t=>{let n=Gr(u,l,t);return t===n&&"string"==typeof t&&(n=Gr(u,l,`${e}${"default"===t?"":Ur(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ao;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}(o.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach((n=>{const i=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=i)if("object"==typeof i)if(a[n])c=zr(c,e(n,i,o,a));else{const e=Br({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?c=zr(c,e):c[n]=t({sx:i,theme:o,nested:!0})}else c=zr(c,e(n,i,o,a))})),!i&&o.modularCssLayers?{"@layer sx":Nr(o,Wr(l,c))}:Nr(o,Wr(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();function jo(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Fo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Dr(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}(n);let l=qr({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:lo(o),shape:{...Ar,...i}},a);return l=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(l),l.applyStyles=jo,l=t.reduce(((e,t)=>qr(e,t)),l),l.unstable_sxConfig={...Ao,...a?.unstable_sxConfig},l.unstable_sx=function(e){return zo({sx:e,theme:this})},l}function $o(e=null){const t=S.useContext(Gn);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}zo.filterProps=["sx"];const Bo=Fo();function Wo(e=Bo){return $o(e)}function Ho(e){const t=Or(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Uo({styles:e,themeId:t,defaultTheme:n={}}){const r=Wo(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>Ho("function"==typeof e?e(o):e))):Ho(i)),xr.jsx(Lr,{styles:i})}const Vo=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ao;return Object.keys(e).forEach((r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]})),t};function Go(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Vo(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return _r(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}const Ko=e=>e,Jo=(()=>{let e=Ko;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ko}}})();function Zo(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Xo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zo(e))&&(r&&(r+=" "),r+=t);return r}const Qo={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 Yo(e,t,n="Mui"){const r=Qo[t];return r?`${n}-${r}`:`${Jo.generate(e)}-${t}`}function ei(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Yo(e,t,n)})),r}function ti(e){const{variants:t,...n}=e,r={variants:t,style:Or(n),isProcessed:!0};return r.style===n||t&&t.forEach((e=>{"function"!=typeof e.style&&(e.style=Or(e.style))})),r}const ni=Fo();function ri(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function oi(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ii(e){return e?(t,n)=>n[e]:null}function ai(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap((t=>ai(e,t,n)));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?oi(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?oi(Or(o),n):o}return si(e,r.variants,[t],n)}return r?.isProcessed?n?oi(Or(r.style),n):r.style:n?oi(Or(r),n):r}function si(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if("function"==typeof a.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"==typeof a.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?oi(Or(a.style(o)),r):a.style(o))):n.push(r?oi(Or(a.style),r):a.style)}return n}function li(e,t){}function ci(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function ui(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if("components"===o||"slots"===o)n[o]={...e[o],...n[o]};else if("componentsProps"===o||"slotProps"===o){const r=e[o],i=t[o];if(i)if(r){n[o]={...i};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[o][t]=ui(r[t],i[t])}}else n[o]=i;else n[o]=r||{}}else void 0===n[o]&&(n[o]=e[o])}return n}const di="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;function pi(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function fi(e){if(e.type)return e;if("#"===e.charAt(0))return fi(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(at(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(at(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const hi=(e,t)=>{try{return(e=>{const t=fi(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(t){return e}};function mi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function gi(e){e=fi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mi({type:s,values:l})}function bi(e){let t="hsl"===(e=fi(e)).type||"hsla"===e.type?fi(gi(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 yi(e,t){return e=fi(e),t=pi(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,mi(e)}function vi(e,t,n){try{return yi(e,t)}catch(t){return e}}function Si(e,t){if(e=fi(e),t=pi(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mi(e)}function wi(e,t,n){try{return Si(e,t)}catch(t){return e}}function xi(e,t){if(e=fi(e),t=pi(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mi(e)}function ki(e,t,n){try{return xi(e,t)}catch(t){return e}}function Ci(e,t,n){try{return function(e,t=.15){return bi(e)>.5?Si(e,t):xi(e,t)}(e,t)}catch(t){return e}}function Ei(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Ri(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Li(e){return e&&e.ownerDocument||document}function Pi(e){return Li(e).defaultView||window}function Ti(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Oi=0;const Ii={...x}.useId;function _i(e){if(void 0!==Ii){const t=Ii();return e??t}return function(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect((()=>{null==t&&(Oi+=1,n(`mui-${Oi}`))}),[t]),r}(e)}function Mi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=S.useRef(void 0!==e),[i,a]=S.useState(t);return[o?e:i,S.useCallback((e=>{o||a(e)}),[])]}function qi(e){const t=S.useRef(e);return di((()=>{t.current=e})),S.useRef(((...e)=>(0,t.current)(...e))).current}function Di(...e){const t=S.useRef(void 0),n=S.useCallback((t=>{const n=e.map((e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}));return()=>{n.forEach((e=>e?.()))}}),e);return S.useMemo((()=>e.every((e=>null==e))?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))}),e)}const Ni={};function Ai(e,t){const n=S.useRef(Ni);return n.current===Ni&&(n.current=e(t)),n}const zi=[];class ji{static create(){return new ji}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Fi(){const e=Ai(ji.create).current;return function(e){S.useEffect(e,zi)}(e.disposeEffect),e}function $i(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function Bi(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Wi=e=>{const t=S.useRef({});return S.useEffect((()=>{t.current=e})),t.current};function Hi(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}function Ui(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}function Vi(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Gi(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Ki(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Xo(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Vi({...o,...r}),s=Gi(r),l=Gi(o),c=t(a),u=Xo(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},p={...c,...n,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function Ji(e,t,n){return"function"==typeof e?e(t,n):e}function Zi(e){return parseInt(S.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Xi=S.createContext(null);function Qi(){return S.useContext(Xi)}var Yi="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ea(e){const{children:t,theme:n}=e,r=Qi(),o=S.useMemo((()=>{const e=null===r?{...n}:function(e,t){if("function"==typeof t)return t(e);return{...e,...t}}(r,n);return null!=e&&(e[Yi]=null!==r),e}),[n,r]);return xr.jsx(Xi.Provider,{value:o,children:t})}const ta=S.createContext();function na({value:e,...t}){return xr.jsx(ta.Provider,{value:e??!0,...t})}const ra=()=>S.useContext(ta)??!1,oa=S.createContext(void 0);function ia({value:e,children:t}){return xr.jsx(oa.Provider,{value:e,children:t})}function aa({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?ui(o.defaultProps,r):o.styleOverrides||o.variants?r:ui(o,r)}({props:e,name:t,theme:{components:S.useContext(oa)}})}const sa={};function la(e,t,n,r=!1){return S.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}}),[e,t,n,r])}function ca(e){const{children:t,theme:n,themeId:r}=e,o=$o(sa),i=Qi()||sa,a=la(r,o,n),s=la(r,i,n,!0),l="rtl"===(r?a[r]:a).direction,c=function(e){const t=$o(),n=_i()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",di((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){if(t&&t.hasAttribute?.("data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const r=document.createElement("style");r.setAttribute("data-mui-layer-order",n),r.textContent=o,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()}),[o,n]),o?xr.jsx(Uo,{styles:o}):null}(a);return xr.jsx(ea,{theme:s,children:xr.jsx(Gn.Provider,{value:a,children:xr.jsx(na,{value:l,children:xr.jsxs(ia,{value:r?a[r].components:a.components,children:[c,t]})})})})}const ua={theme:void 0};const da="mode",pa="color-scheme",fa="data-color-scheme";function ha(){}const ma=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(n){if("undefined"==typeof window)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return ha;const r=t=>{const r=t.newValue;t.key===e&&n(r)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function ga(){}function ba(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function ya(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function va(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=da,colorSchemeStorageKey:a=pa,storageWindow:s=("undefined"==typeof window?void 0:window),storageManager:l=ma,noSsr:c=!1}=e,u=o.join(","),d=o.length>1,p=S.useMemo((()=>l?.({key:i,storageWindow:s})),[l,i,s]),f=S.useMemo((()=>l?.({key:`${a}-light`,storageWindow:s})),[l,a,s]),h=S.useMemo((()=>l?.({key:`${a}-dark`,storageWindow:s})),[l,a,s]),[m,g]=S.useState((()=>{const e=p?.get(t)||t,o=f?.get(n)||n,i=h?.get(r)||r;return{mode:e,systemMode:ba(e),lightColorScheme:o,darkColorScheme:i}})),[b,y]=S.useState(c||!d);S.useEffect((()=>{y(!0)}),[]);const v=function(e){return ya(e,(t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0))}(m),w=S.useCallback((e=>{g((n=>{if(e===n.mode)return n;const r=e??t;return p?.set(r),{...n,mode:r,systemMode:ba(r)}}))}),[p,t]),x=S.useCallback((e=>{e?"string"==typeof e?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g((t=>{const n={...t};return ya(t,(t=>{"light"===t&&(f?.set(e),n.lightColorScheme=e),"dark"===t&&(h?.set(e),n.darkColorScheme=e)})),n})):g((t=>{const o={...t},i=null===e.light?n:e.light,a=null===e.dark?r:e.dark;return i&&(u.includes(i)?(o.lightColorScheme=i,f?.set(i)):console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`)),a&&(u.includes(a)?(o.darkColorScheme=a,h?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o})):g((e=>(f?.set(n),h?.set(r),{...e,lightColorScheme:n,darkColorScheme:r})))}),[u,f,h,n,r]),k=S.useCallback((e=>{"system"===m.mode&&g((t=>{const n=e?.matches?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}}))}),[m.mode]),C=S.useRef(k);return C.current=k,S.useEffect((()=>{if("function"!=typeof window.matchMedia||!d)return;const e=(...e)=>C.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}}),[d]),S.useEffect((()=>{if(d){const e=p?.subscribe((e=>{e&&!["light","dark","system"].includes(e)||w(e||t)}))||ga,n=f?.subscribe((e=>{e&&!u.match(e)||x({light:e})}))||ga,r=h?.subscribe((e=>{e&&!u.match(e)||x({dark:e})}))||ga;return()=>{e(),n(),r()}}}),[x,w,u,t,s,d,p,f,h]),{...m,mode:b?m.mode:void 0,systemMode:b?m.systemMode:void 0,colorScheme:b?v:void 0,setMode:w,setColorScheme:x}}function Sa(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const wa=(e,t,n,r=[])=>{let o=e;t.forEach(((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])}))},xa=(e,t,n)=>{!function e(r,o=[],i=[]){Object.entries(r).forEach((([r,a])=>{(!n||n&&!n([...o,r]))&&null!=a&&("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,r],Array.isArray(a)?[...i,r]:i):t([...o,r],a,i))}))}(e)},ka=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t))))return t;return e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`}return t};function Ca(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return xa(e,((e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=ka(e,t);Object.assign(o,{[r]:l}),wa(i,e,`var(${r})`,s),wa(a,e,`var(${r}, ${l})`,s)}}),(e=>"vars"===e[0])),{css:o,vars:i,varsWithDefaults:a}}const Ea={black:"#000",white:"#fff"},Ra={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"},La={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Pa={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ta={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Oa={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ia={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},_a={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ma(){return{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:Ea.white,default:Ea.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}}}const qa=Ma();function Da(){return{text:{primary:Ea.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:Ea.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}}}const Na=Da();function Aa(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=xi(e.main,o):"dark"===t&&(e.dark=Si(e.main,i)))}function za(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||function(e="light"){return"dark"===e?{main:Oa[200],light:Oa[50],dark:Oa[400]}:{main:Oa[700],light:Oa[400],dark:Oa[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:La[200],light:La[50],dark:La[400]}:{main:La[500],light:La[300],dark:La[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Pa[500],light:Pa[300],dark:Pa[700]}:{main:Pa[700],light:Pa[400],dark:Pa[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Ia[400],light:Ia[300],dark:Ia[700]}:{main:Ia[700],light:Ia[500],dark:Ia[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:_a[400],light:_a[300],dark:_a[700]}:{main:_a[800],light:_a[500],dark:_a[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Ta[400],light:Ta[300],dark:Ta[700]}:{main:"#ed6c02",light:Ta[500],dark:Ta[900]}}(t);function d(e){const t=function(e,t){const n=bi(e),r=bi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Na.text.primary)>=n?Na.text.primary:qa.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(at(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(at(12,t?` (${t})`:"",JSON.stringify(e.main)));return Aa(e,"light",o,r),Aa(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e};let f;"light"===t?f=Ma():"dark"===t&&(f=Da());return qr({common:{...Ea},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Ra,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r,...f},o)}function ja(e){const t={};return Object.entries(e).forEach((e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)})),t}const Fa={textTransform:"uppercase"},$a='"Roboto", "Helvetica", "Arial", sans-serif';function Ba(e,t){const{fontFamily:n=$a,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,p=r/14,f=u||(e=>e/l*p+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r,...n===$a?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,Fa),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,Fa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qr({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function Wa(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Ha=["none",Wa(0,2,1,-1,0,1,1,0,0,1,3,0),Wa(0,3,1,-2,0,2,2,0,0,1,5,0),Wa(0,3,3,-2,0,3,4,0,0,1,8,0),Wa(0,2,4,-1,0,4,5,0,0,1,10,0),Wa(0,3,5,-1,0,5,8,0,0,1,14,0),Wa(0,3,5,-1,0,6,10,0,0,1,18,0),Wa(0,4,5,-2,0,7,10,1,0,2,16,1),Wa(0,5,5,-3,0,8,10,1,0,3,14,2),Wa(0,5,6,-3,0,9,12,1,0,3,16,2),Wa(0,6,6,-3,0,10,14,1,0,4,18,3),Wa(0,6,7,-4,0,11,15,1,0,4,20,3),Wa(0,7,8,-4,0,12,17,2,0,5,22,4),Wa(0,7,8,-4,0,13,19,2,0,5,24,4),Wa(0,7,9,-4,0,14,21,2,0,5,26,4),Wa(0,8,9,-5,0,15,22,2,0,6,28,5),Wa(0,8,10,-5,0,16,24,2,0,6,30,5),Wa(0,8,11,-5,0,17,26,2,0,6,32,5),Wa(0,9,11,-5,0,18,28,2,0,7,34,6),Wa(0,9,12,-6,0,19,29,2,0,7,36,6),Wa(0,10,13,-6,0,20,31,3,0,8,38,7),Wa(0,10,13,-6,0,21,33,3,0,8,40,7),Wa(0,10,14,-6,0,22,35,3,0,8,42,7),Wa(0,11,14,-7,0,23,36,3,0,9,44,8),Wa(0,11,15,-7,0,24,38,3,0,9,46,8)],Ua={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)"},Va={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ga(e){return`${Math.round(e)}ms`}function Ka(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Ja(e){const t={...Ua,...e.easing},n={...Va,...e.duration};return{getAutoHeightDuration:Ka,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ga(o)} ${i} ${"string"==typeof a?a:Ga(a)}`)).join(",")},...e,easing:t,duration:n}}const Za={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Xa(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[i,a]=n[o];!_r(r=a)&&void 0!==r&&"string"!=typeof r&&"boolean"!=typeof r&&"number"!=typeof r&&!Array.isArray(r)||i.startsWith("unstable_")?delete t[i]:_r(a)&&(t[i]={...a},e(t[i]))}var r}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function Qa(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(at(20));const u=za(i),d=Fo(e);let p=qr(d,{mixins:(f=d.breakpoints,h=r,{toolbar:{minHeight:56,[f.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[f.up("sm")]:{minHeight:64}},...h}),palette:u,shadows:Ha.slice(),typography:Ba(u,s),transitions:Ja(a),zIndex:{...Za}});var f,h;return p=qr(p,c),p=t.reduce(((e,t)=>qr(e,t)),p),p.unstable_sxConfig={...Ao,...c?.unstable_sxConfig},p.unstable_sx=function(e){return zo({sx:e,theme:this})},p.toRuntimeSource=Xa,p}function Ya(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const es=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const n=Ya(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function ts(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function ns(e){return"dark"===e?es:[]}function rs(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var os=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map(((e,t)=>`--${a?`${a}-`:""}overlays-${t}`)),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach((e=>{o[e]=n[e],delete n[e]})),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function is(e,t,n){!e[t]&&n&&(e[t]=n)}function as(e){return"string"==typeof e&&e.startsWith("hsl")?gi(e):e}function ss(e,t){`${t}Channel`in e||(e[`${t}Channel`]=hi(as(e[t])))}const ls=e=>{try{return e()}catch(e){}},cs=(e="mui")=>Sa(e);function us(e,t,n,r){if(!t)return;t=!0===t?{}:t;const o="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=za(t);return{palette:i,opacity:{...ts(i.mode),...n},overlays:r||ns(i.mode),...o}}({...t,palette:{mode:o,...t?.palette}}));const{palette:i,...a}=Qa({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:i,opacity:{...ts(o),...t?.opacity},overlays:t?.overlays||ns(o)},a}function ds(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=rs,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&"light"!==u?"light":u),p=cs(i),{[d]:f,light:h,dark:m,...g}=n,b={...g};let y=f;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(y=!0),!y)throw new Error(at(21,d));const v=us(b,y,c,d);h&&!b.light&&us(b,h,void 0,"light"),m&&!b.dark&&us(b,m,void 0,"dark");let S={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:p,colorSchemes:b,font:{...ja(v.typography),...v.font},spacing:(w=c.spacing,"number"==typeof w?`${w}px`:"string"==typeof w||"function"==typeof w||Array.isArray(w)?w:"8px")};var w;Object.keys(S.colorSchemes).forEach((e=>{const t=S.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};var r;if("light"===t.mode&&(is(t.common,"background","#fff"),is(t.common,"onBackground","#000")),"dark"===t.mode&&(is(t.common,"background","#000"),is(t.common,"onBackground","#fff")),r=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{r[e]||(r[e]={})})),"light"===t.mode){is(t.Alert,"errorColor",wi(t.error.light,.6)),is(t.Alert,"infoColor",wi(t.info.light,.6)),is(t.Alert,"successColor",wi(t.success.light,.6)),is(t.Alert,"warningColor",wi(t.warning.light,.6)),is(t.Alert,"errorFilledBg",n("palette-error-main")),is(t.Alert,"infoFilledBg",n("palette-info-main")),is(t.Alert,"successFilledBg",n("palette-success-main")),is(t.Alert,"warningFilledBg",n("palette-warning-main")),is(t.Alert,"errorFilledColor",ls((()=>t.getContrastText(t.error.main)))),is(t.Alert,"infoFilledColor",ls((()=>t.getContrastText(t.info.main)))),is(t.Alert,"successFilledColor",ls((()=>t.getContrastText(t.success.main)))),is(t.Alert,"warningFilledColor",ls((()=>t.getContrastText(t.warning.main)))),is(t.Alert,"errorStandardBg",ki(t.error.light,.9)),is(t.Alert,"infoStandardBg",ki(t.info.light,.9)),is(t.Alert,"successStandardBg",ki(t.success.light,.9)),is(t.Alert,"warningStandardBg",ki(t.warning.light,.9)),is(t.Alert,"errorIconColor",n("palette-error-main")),is(t.Alert,"infoIconColor",n("palette-info-main")),is(t.Alert,"successIconColor",n("palette-success-main")),is(t.Alert,"warningIconColor",n("palette-warning-main")),is(t.AppBar,"defaultBg",n("palette-grey-100")),is(t.Avatar,"defaultBg",n("palette-grey-400")),is(t.Button,"inheritContainedBg",n("palette-grey-300")),is(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),is(t.Chip,"defaultBorder",n("palette-grey-400")),is(t.Chip,"defaultAvatarColor",n("palette-grey-700")),is(t.Chip,"defaultIconColor",n("palette-grey-700")),is(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),is(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),is(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),is(t.LinearProgress,"primaryBg",ki(t.primary.main,.62)),is(t.LinearProgress,"secondaryBg",ki(t.secondary.main,.62)),is(t.LinearProgress,"errorBg",ki(t.error.main,.62)),is(t.LinearProgress,"infoBg",ki(t.info.main,.62)),is(t.LinearProgress,"successBg",ki(t.success.main,.62)),is(t.LinearProgress,"warningBg",ki(t.warning.main,.62)),is(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),is(t.Slider,"primaryTrack",ki(t.primary.main,.62)),is(t.Slider,"secondaryTrack",ki(t.secondary.main,.62)),is(t.Slider,"errorTrack",ki(t.error.main,.62)),is(t.Slider,"infoTrack",ki(t.info.main,.62)),is(t.Slider,"successTrack",ki(t.success.main,.62)),is(t.Slider,"warningTrack",ki(t.warning.main,.62));const e=Ci(t.background.default,.8);is(t.SnackbarContent,"bg",e),is(t.SnackbarContent,"color",ls((()=>t.getContrastText(e)))),is(t.SpeedDialAction,"fabHoverBg",Ci(t.background.paper,.15)),is(t.StepConnector,"border",n("palette-grey-400")),is(t.StepContent,"border",n("palette-grey-400")),is(t.Switch,"defaultColor",n("palette-common-white")),is(t.Switch,"defaultDisabledColor",n("palette-grey-100")),is(t.Switch,"primaryDisabledColor",ki(t.primary.main,.62)),is(t.Switch,"secondaryDisabledColor",ki(t.secondary.main,.62)),is(t.Switch,"errorDisabledColor",ki(t.error.main,.62)),is(t.Switch,"infoDisabledColor",ki(t.info.main,.62)),is(t.Switch,"successDisabledColor",ki(t.success.main,.62)),is(t.Switch,"warningDisabledColor",ki(t.warning.main,.62)),is(t.TableCell,"border",ki(vi(t.divider,1),.88)),is(t.Tooltip,"bg",vi(t.grey[700],.92))}if("dark"===t.mode){is(t.Alert,"errorColor",ki(t.error.light,.6)),is(t.Alert,"infoColor",ki(t.info.light,.6)),is(t.Alert,"successColor",ki(t.success.light,.6)),is(t.Alert,"warningColor",ki(t.warning.light,.6)),is(t.Alert,"errorFilledBg",n("palette-error-dark")),is(t.Alert,"infoFilledBg",n("palette-info-dark")),is(t.Alert,"successFilledBg",n("palette-success-dark")),is(t.Alert,"warningFilledBg",n("palette-warning-dark")),is(t.Alert,"errorFilledColor",ls((()=>t.getContrastText(t.error.dark)))),is(t.Alert,"infoFilledColor",ls((()=>t.getContrastText(t.info.dark)))),is(t.Alert,"successFilledColor",ls((()=>t.getContrastText(t.success.dark)))),is(t.Alert,"warningFilledColor",ls((()=>t.getContrastText(t.warning.dark)))),is(t.Alert,"errorStandardBg",wi(t.error.light,.9)),is(t.Alert,"infoStandardBg",wi(t.info.light,.9)),is(t.Alert,"successStandardBg",wi(t.success.light,.9)),is(t.Alert,"warningStandardBg",wi(t.warning.light,.9)),is(t.Alert,"errorIconColor",n("palette-error-main")),is(t.Alert,"infoIconColor",n("palette-info-main")),is(t.Alert,"successIconColor",n("palette-success-main")),is(t.Alert,"warningIconColor",n("palette-warning-main")),is(t.AppBar,"defaultBg",n("palette-grey-900")),is(t.AppBar,"darkBg",n("palette-background-paper")),is(t.AppBar,"darkColor",n("palette-text-primary")),is(t.Avatar,"defaultBg",n("palette-grey-600")),is(t.Button,"inheritContainedBg",n("palette-grey-800")),is(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),is(t.Chip,"defaultBorder",n("palette-grey-700")),is(t.Chip,"defaultAvatarColor",n("palette-grey-300")),is(t.Chip,"defaultIconColor",n("palette-grey-300")),is(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),is(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),is(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),is(t.LinearProgress,"primaryBg",wi(t.primary.main,.5)),is(t.LinearProgress,"secondaryBg",wi(t.secondary.main,.5)),is(t.LinearProgress,"errorBg",wi(t.error.main,.5)),is(t.LinearProgress,"infoBg",wi(t.info.main,.5)),is(t.LinearProgress,"successBg",wi(t.success.main,.5)),is(t.LinearProgress,"warningBg",wi(t.warning.main,.5)),is(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),is(t.Slider,"primaryTrack",wi(t.primary.main,.5)),is(t.Slider,"secondaryTrack",wi(t.secondary.main,.5)),is(t.Slider,"errorTrack",wi(t.error.main,.5)),is(t.Slider,"infoTrack",wi(t.info.main,.5)),is(t.Slider,"successTrack",wi(t.success.main,.5)),is(t.Slider,"warningTrack",wi(t.warning.main,.5));const e=Ci(t.background.default,.98);is(t.SnackbarContent,"bg",e),is(t.SnackbarContent,"color",ls((()=>t.getContrastText(e)))),is(t.SpeedDialAction,"fabHoverBg",Ci(t.background.paper,.15)),is(t.StepConnector,"border",n("palette-grey-600")),is(t.StepContent,"border",n("palette-grey-600")),is(t.Switch,"defaultColor",n("palette-grey-300")),is(t.Switch,"defaultDisabledColor",n("palette-grey-600")),is(t.Switch,"primaryDisabledColor",wi(t.primary.main,.55)),is(t.Switch,"secondaryDisabledColor",wi(t.secondary.main,.55)),is(t.Switch,"errorDisabledColor",wi(t.error.main,.55)),is(t.Switch,"infoDisabledColor",wi(t.info.main,.55)),is(t.Switch,"successDisabledColor",wi(t.success.main,.55)),is(t.Switch,"warningDisabledColor",wi(t.warning.main,.55)),is(t.TableCell,"border",wi(vi(t.divider,1),.68)),is(t.Tooltip,"bg",vi(t.grey[700],.92))}ss(t.background,"default"),ss(t.background,"paper"),ss(t.common,"background"),ss(t.common,"onBackground"),ss(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&is(t[e],"mainChannel",hi(as(n.main))),n.light&&is(t[e],"lightChannel",hi(as(n.light))),n.dark&&is(t[e],"darkChannel",hi(as(n.dark))),n.contrastText&&is(t[e],"contrastTextChannel",hi(as(n.contrastText))),"text"===e&&(ss(t[e],"primary"),ss(t[e],"secondary")),"action"===e&&(n.active&&ss(t[e],"active"),n.selected&&ss(t[e],"selected")))}))})),S=t.reduce(((e,t)=>qr(e,t)),S);const x={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:os(S)},{vars:k,generateThemeVars:C,generateStyleSheets:E}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=Ca(l,t);let p=d;const f={},{[s]:h,...m}=i;if(Object.entries(m||{}).forEach((([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=Ca(n,t);p=qr(p,i),f[e]={css:o,vars:r}})),h){const{css:e,vars:n,varsWithDefaults:r}=Ca(h,t);p=qr(p,r),f[s]={css:e,vars:n}}function g(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r)return e.defaultColorScheme===t?":root":{[`@media (prefers-color-scheme: ${i[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(f).forEach((([,{vars:t}])=>{e=qr(e,t)})),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function a(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}a(n(void 0,{...u}),u);const{[o]:s,...l}=f;if(s){const{css:e}=s,t=i[o]?.palette?.mode,l=!r&&t?{colorScheme:t,...e}:{...e};a(n(o,{...l}),l)}return Object.entries(l).forEach((([e,{css:t}])=>{const o=i[e]?.palette?.mode,s=!r&&o?{colorScheme:o,...t}:{...t};a(n(e,{...s}),s)})),t}}}(S,x);return S.vars=k,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach((([e,t])=>{S[e]=t})),S.generateThemeVars=C,S.generateStyleSheets=E,S.generateSpacing=function(){return lo(c.spacing,no(this))},S.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...Ao,...c?.unstable_sxConfig},S.unstable_sx=function(e){return zo({sx:e,theme:this})},S.toRuntimeSource=Xa,S}function ps(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:za({...!0===n?{}:n.palette,mode:t})})}function fs(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return Qa(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=Qa({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},ps(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},ps(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),ds({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const hs=fs();function ms(){const e=Wo(hs);return e[st]||e}const gs=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,bs=function(e={}){const{themeId:t,defaultTheme:n=ni,rootShouldForwardProp:r=ri,slotShouldForwardProp:o=ri}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,(e=>e.filter((e=>e!==zo))));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=ii(ci(a)),...u}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",p=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,f=l||!1;let h=ri;"Root"===a||"root"===a?h=r:a?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=Pr(e,{shouldForwardProp:h,label:li(),...u}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return ai(t,e,t.theme.modularCssLayers?d:void 0)};if(_r(e)){const t=ti(e);return function(e){return t.variants?ai(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?oi(t.style,d):t.style}}return e},b=(...t)=>{const r=[],o=t.map(g),a=[];if(r.push(i),n&&c&&a.push((function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=ai(e,r[t],e.theme.modularCssLayers?"theme":void 0);return c(e,o)})),n&&!p&&a.push((function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?si(e,r,[],e.theme.modularCssLayers?"theme":void 0):null})),f||a.push(zo),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const s=[...r,...o,...a],l=m(...s);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(b.withConfig=m.withConfig),b}}({themeId:st,defaultTheme:hs,rootShouldForwardProp:gs});function ys({theme:e,...t}){const n=st in e?e[st]:void 0;return xr.jsx(ca,{...t,themeId:n?st:void 0,theme:n||e})}const vs="mui-color-scheme",Ss="light",ws="dark",xs="mui-mode",{CssVarsProvider:ks}=function(e){const{themeId:t,theme:n={},modeStorageKey:r=da,colorSchemeStorageKey:o=pa,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=S.createContext(void 0),u={},d={},p="string"==typeof a?a:a.light,f="string"==typeof a?a:a.dark;return{CssVarsProvider:function(e){const{children:l,theme:p,modeStorageKey:f=r,colorSchemeStorageKey:h=o,disableTransitionOnChange:m=i,storageManager:g,storageWindow:b=("undefined"==typeof window?void 0:window),documentNode:y=("undefined"==typeof document?void 0:document),colorSchemeNode:v=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:w=!1,disableStyleSheetGeneration:x=!1,defaultMode:k="system",noSsr:C}=e,E=S.useRef(!1),R=Qi(),L=S.useContext(c),P=!!L&&!w,T=S.useMemo((()=>p||("function"==typeof n?n():n)),[p]),O=T[t],I=O||T,{colorSchemes:_=u,components:M=d,cssVarPrefix:q}=I,D=Object.keys(_).filter((e=>!!_[e])).join(","),N=S.useMemo((()=>D.split(",")),[D]),A="string"==typeof a?a:a.light,z="string"==typeof a?a:a.dark,j=_[A]&&_[z]?k:_[I.defaultColorScheme]?.palette?.mode||I.palette?.mode,{mode:F,setMode:$,systemMode:B,lightColorScheme:W,darkColorScheme:H,colorScheme:U,setColorScheme:V}=va({supportedColorSchemes:N,defaultLightColorScheme:A,defaultDarkColorScheme:z,modeStorageKey:f,colorSchemeStorageKey:h,defaultMode:j,storageManager:g,storageWindow:b,noSsr:C});let G=F,K=U;P&&(G=L.mode,K=L.colorScheme);const J=S.useMemo((()=>{const e=K||I.defaultColorScheme,t=I.generateThemeVars?.()||I.vars,n={...I,components:M,colorSchemes:_,cssVarPrefix:q,vars:t};if("function"==typeof n.generateSpacing&&(n.spacing=n.generateSpacing()),e){const t=_[e];t&&"object"==typeof t&&Object.keys(t).forEach((e=>{t[e]&&"object"==typeof t[e]?n[e]={...n[e],...t[e]}:n[e]=t[e]}))}return s?s(n):n}),[I,K,M,_,q]),Z=I.colorSchemeSelector;di((()=>{if(K&&v&&Z&&"media"!==Z){const e=Z;let t=Z;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))v.classList.remove(...N.map((e=>t.substring(1).replace("%s",e)))),v.classList.add(t.substring(1).replace("%s",K));else{const e=t.replace("%s",K).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||N.forEach((e=>{v.removeAttribute(t.replace(K,e))})),v.setAttribute(t,n?n.replace(/"|'/g,""):"")}else v.setAttribute(t,K)}}}),[K,Z,v,N]),S.useEffect((()=>{let e;if(m&&E.current&&y){const t=y.createElement("style");t.appendChild(y.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),y.head.appendChild(t),window.getComputedStyle(y.body),e=setTimeout((()=>{y.head.removeChild(t)}),1)}return()=>{clearTimeout(e)}}),[K,m,y]),S.useEffect((()=>(E.current=!0,()=>{E.current=!1})),[]);const X=S.useMemo((()=>({allColorSchemes:N,colorScheme:K,darkColorScheme:H,lightColorScheme:W,mode:G,setColorScheme:V,setMode:$,systemMode:B})),[N,K,H,W,G,V,$,B,J.colorSchemeSelector]);let Q=!0;(x||!1===I.cssVariables||P&&R?.cssVarPrefix===q)&&(Q=!1);const Y=xr.jsxs(S.Fragment,{children:[xr.jsx(ca,{themeId:O?t:void 0,theme:J,children:l}),Q&&xr.jsx(Lr,{styles:J.generateStyleSheets?.()||[]})]});return P?Y:xr.jsx(c.Provider,{value:X,children:Y})},useColorScheme:()=>S.useContext(c)||l,getInitColorSchemeScript:e=>function(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=da,colorSchemeStorageKey:i=pa,attribute:a=fa,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if("class"===a&&(u=".%s"),"data"===a&&(u="[data-%s]"),u.startsWith(".")){const e=u.substring(1);c+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${s}.classList.add('${e}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[e,t]=d[1].split("=");t||(c+=`${s}.removeAttribute('${e}'.replace('%s', light));\n ${s}.removeAttribute('${e}'.replace('%s', dark));`),c+=`\n ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return xr.jsx("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?l:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${o}') || '${t}';\n const dark = localStorage.getItem('${i}-dark') || '${r}';\n const light = localStorage.getItem('${i}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${c}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:o,defaultLightColorScheme:p,defaultDarkColorScheme:f,modeStorageKey:r,...e})}}({themeId:st,theme:()=>fs({cssVariables:!0}),colorSchemeStorageKey:vs,modeStorageKey:xs,defaultColorScheme:{light:Ss,dark:ws},resolveTheme:e=>{const t={...e,typography:Ba(e.palette,e.typography)};return t.unstable_sx=function(e){return zo({sx:e,theme:this})},t}}),Cs=ks;function Es({theme:e,...t}){const n=S.useMemo((()=>{if("function"==typeof e)return e;const t=st in e?e[st]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}}),[e]);return n?xr.jsx(ys,{theme:n,...t}):xr.jsx(Cs,{theme:e,...t})}function Rs(e){return xr.jsx(Uo,{...e,defaultTheme:hs,themeId:st})}const Ls=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(ua.theme=r.theme,o=ti(e(ua)),t=o,n=r.theme),o}};function Ps(e){return aa(e)}function Ts(e){return Yo("MuiSvgIcon",e)}ei("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Os=bs("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Ur(n.color)}`],t[`fontSize${Ur(n.fontSize)}`]]}})(Ls((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}}))),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),Is=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24",...p}=n,f=S.isValidElement(r)&&"svg"===r.type,h={...n,color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f},m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Hi({root:["root","inherit"!==t&&`color${Ur(t)}`,`fontSize${Ur(n)}`]},Ts,r)})(h);return xr.jsxs(Os,{as:a,className:Xo(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...m,...p,...f&&r.props,ownerState:h,children:[f?r.props.children:r,u?xr.jsx("title",{children:u}):null]})}));function _s(e,t){function n(n,r){return xr.jsx(Is,{"data-testid":`${t}Icon`,ref:r,...n,children:e})}return n.muiName=Is.muiName,S.memo(S.forwardRef(n))}function Ms(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return n=>{const r="function"==typeof t?t(n):t,o="function"==typeof e?e({...n,...r}):e,i=Xo(n?.className,r?.className,o?.className);return{...r,...o,...!!i&&{className:i},...r?.style&&o?.style&&{style:{...r.style,...o.style}},...r?.sx&&o?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const n=t,r=Xo(n?.className,e?.className);return{...t,...e,...!!r&&{className:r},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}Is.muiName="SvgIcon";class qs{static create(){return new qs}static use(){const e=Ai(qs.create).current,[t,n]=S.useState(!1);return e.shouldMount=t,e.setShouldMount=n,S.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then((()=>this.ref.current?.start(...e)))}stop(...e){this.mount().then((()=>this.ref.current?.stop(...e)))}pulsate(...e){this.mount().then((()=>this.ref.current?.pulsate(...e)))}}function Ds(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Ns(e,t){return Ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ns(e,t)}function As(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ns(e,t)}var zs=rt(),js=n(zs),Fs=!1,$s=w.createContext(null),Bs="unmounted",Ws="exited",Hs="entering",Us="entered",Vs="exiting",Gs=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Ws,r.appearStatus=Hs):o=Us:o=t.unmountOnExit||t.mountOnEnter?Bs:Ws,r.state={status:o},r.nextCallback=null,r}As(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Bs?{status:Ws}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Hs&&n!==Us&&(t=Hs):n!==Hs&&n!==Us||(t=Vs)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Hs){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:js.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ws&&this.setState({status:Bs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[js.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Fs?this.safeSetState({status:Us},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Hs},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Us},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:js.findDOMNode(this);t&&!Fs?(this.props.onExit(r),this.safeSetState({status:Vs},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ws},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ws},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:js.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Bs)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Ds(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return w.createElement($s.Provider,{value:null},"function"==typeof n?n(e,r):w.cloneElement(w.Children.only(n),r))},t}(w.Component);function Ks(){}function Js(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zs(e,t){var n=Object.create(null);return e&&S.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&S.isValidElement(e)?t(e):e}(e)})),n}function Xs(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Qs(e,t,n){var r=Zs(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(S.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=S.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&S.isValidElement(c)&&(o[i]=S.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:Xs(a,"exit",e),enter:Xs(a,"enter",e)})):o[i]=S.cloneElement(a,{in:!1}):o[i]=S.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Xs(a,"exit",e),enter:Xs(a,"enter",e)})}})),o}Gs.contextType=$s,Gs.propTypes={},Gs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ks,onEntering:Ks,onEntered:Ks,onExit:Ks,onExiting:Ks,onExited:Ks},Gs.UNMOUNTED=Bs,Gs.EXITED=Ws,Gs.ENTERING=Hs,Gs.ENTERED=Us,Gs.EXITING=Vs;var Ys=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},el=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Js(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}As(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Zs(n.children,(function(e){return S.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Xs(e,"appear",n),enter:Xs(e,"enter",n),exit:Xs(e,"exit",n)})}))):Qs(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Zs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=lt({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ds(e,["component","childFactory"]),o=this.state.contextValue,i=Ys(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?w.createElement($s.Provider,{value:o},i):w.createElement($s.Provider,{value:o},w.createElement(t,r,i))},t}(w.Component);el.propTypes={},el.defaultProps={component:"div",childFactory:function(e){return e}};const tl=ei("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),nl=nr`
24
24
  0% {
25
25
  transform: scale(0);
26
26
  opacity: 0.1;
@@ -30,7 +30,7 @@
30
30
  transform: scale(1);
31
31
  opacity: 0.3;
32
32
  }
33
- `)),ml=ir(ul||(ul=fl`
33
+ `,rl=nr`
34
34
  0% {
35
35
  opacity: 1;
36
36
  }
@@ -38,7 +38,7 @@
38
38
  100% {
39
39
  opacity: 0;
40
40
  }
41
- `)),gl=ir(dl||(dl=fl`
41
+ `,ol=nr`
42
42
  0% {
43
43
  transform: scale(1);
44
44
  }
@@ -50,23 +50,23 @@
50
50
  100% {
51
51
  transform: scale(1);
52
52
  }
53
- `)),bl=As("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),vl=As((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=w.useState(!1),p=li(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=li(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),w.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),Rr.jsx("span",{className:p,style:f,children:Rr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(pl||(pl=fl`
53
+ `,il=bs("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),al=bs((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=S.useState(!1),p=Xo(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Xo(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),S.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),xr.jsx("span",{className:p,style:f,children:xr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})`
54
54
  opacity: 0;
55
55
  position: absolute;
56
56
 
57
- &.${0} {
57
+ &.${tl.rippleVisible} {
58
58
  opacity: 0.3;
59
59
  transform: scale(1);
60
- animation-name: ${0};
61
- animation-duration: ${0}ms;
62
- animation-timing-function: ${0};
60
+ animation-name: ${nl};
61
+ animation-duration: ${550}ms;
62
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
63
63
  }
64
64
 
65
- &.${0} {
66
- animation-duration: ${0}ms;
65
+ &.${tl.ripplePulsate} {
66
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
67
67
  }
68
68
 
69
- & .${0} {
69
+ & .${tl.child} {
70
70
  opacity: 1;
71
71
  display: block;
72
72
  width: 100%;
@@ -75,25 +75,25 @@
75
75
  background-color: currentColor;
76
76
  }
77
77
 
78
- & .${0} {
78
+ & .${tl.childLeaving} {
79
79
  opacity: 0;
80
- animation-name: ${0};
81
- animation-duration: ${0}ms;
82
- animation-timing-function: ${0};
80
+ animation-name: ${rl};
81
+ animation-duration: ${550}ms;
82
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
83
83
  }
84
84
 
85
- & .${0} {
85
+ & .${tl.childPulsate} {
86
86
  position: absolute;
87
87
  /* @noflip */
88
88
  left: 0px;
89
89
  top: 0;
90
- animation-name: ${0};
90
+ animation-name: ${ol};
91
91
  animation-duration: 2500ms;
92
- animation-timing-function: ${0};
92
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
93
93
  animation-iteration-count: infinite;
94
94
  animation-delay: 200ms;
95
95
  }
96
- `),sl.rippleVisible,hl,550,(({theme:e})=>e.transitions.easing.easeInOut),sl.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),sl.child,sl.childLeaving,ml,550,(({theme:e})=>e.transitions.easing.easeInOut),sl.childPulsate,gl,(({theme:e})=>e.transitions.easing.easeInOut)),yl=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=dt(n,ll),[s,l]=w.useState([]),c=w.useRef(0),u=w.useRef(null);w.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=w.useRef(!1),p=Ji(),f=w.useRef(null),h=w.useRef(null),m=w.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,Rr.jsx(vl,{classes:{ripple:li(o.ripple,sl.ripple),rippleVisible:li(o.rippleVisible,sl.rippleVisible),ripplePulsate:li(o.ripplePulsate,sl.ripplePulsate),child:li(o.child,sl.child),childLeaving:li(o.childLeaving,sl.childLeaving),childPulsate:li(o.childPulsate,sl.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=w.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),b=w.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=w.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return w.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Rr.jsx(bl,ut({className:li(sl.root,o.root,i),ref:h},a,{children:Rr.jsx(al,{component:null,exit:!0,children:s})}))}));function Sl(e){return di("MuiButtonBase",e)}const wl=pi("MuiButtonBase",["root","disabled","focusVisible"]),xl=["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"],kl=As("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"},[`&.${wl.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Cl=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:x,onMouseLeave:k,onMouseUp:C,onTouchEnd:E,onTouchMove:R,onTouchStart:L,tabIndex:O=0,TouchRippleProps:T,touchRippleRef:P,type:I}=n,_=dt(n,xl),M=w.useRef(null),N=w.useRef(null),q=Hi(N,P),{isFocusVisibleRef:D,onFocus:A,onBlur:z,ref:j}=oa(),[F,$]=w.useState(!1);l&&F&&$(!1),w.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),M.current.focus()}})),[]);const[B,W]=w.useState(!1);w.useEffect((()=>{W(!0)}),[]);const U=B&&!c&&!l;function H(e,t,n=u){return Ui((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}w.useEffect((()=>{F&&d&&!c&&B&&N.current.pulsate()}),[c,d,F,B]);const V=H("start",x),G=H("stop",m),K=H("stop",g),J=H("stop",C),Z=H("stop",(e=>{F&&e.preventDefault(),k&&k(e)})),X=H("start",L),Q=H("stop",E),Y=H("stop",R),ee=H("stop",(e=>{z(e),!1===D.current&&$(!1),f&&f(e)}),!1),te=Ui((e=>{M.current||(M.current=e.currentTarget),A(e),!0===D.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=w.useRef(!1),oe=Ui((e=>{d&&!re.current&&F&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=Ui((e=>{d&&" "===e.key&&N.current&&F&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(_.href||_.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===I?"button":I,se.disabled=l):(_.href||_.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Hi(t,j,M),ce=ut({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=sa({root:["root",t&&"disabled",n&&"focusVisible"]},Sl,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Rr.jsxs(kl,ut({as:ae,className:li(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:Z,onMouseUp:J,onDragLeave:K,onTouchEnd:Q,onTouchMove:Y,onTouchStart:X,ref:le,tabIndex:l?-1:O,type:I},se,_,{children:[i,U?Rr.jsx(yl,ut({ref:q,center:o},T)):null]}))}));function El(e){return di("MuiButton",e)}const Rl=pi("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"]),Ll=w.createContext({}),Ol=w.createContext(void 0),Tl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Pl=e=>ut({},"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}}),Il=As(Cl,{shouldForwardProp:e=>Ds(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Zr(n.color)}`],t[`size${Zr(n.size)}`],t[`${n.variant}Size${Zr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return ut({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ut({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Va.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Va.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Va.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ut({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Rl.focusVisible}`]:ut({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Rl.disabled}`]:ut({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Va.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Rl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Rl.disabled}`]:{boxShadow:"none"}})),_l=As("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Zr(n.size)}`]]}})((({ownerState:e})=>ut({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Pl(e)))),Ml=As("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Zr(n.size)}`]]}})((({ownerState:e})=>ut({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Pl(e)))),Nl=w.forwardRef((function(e,t){const n=w.useContext(Ll),r=w.useContext(Ol),o=$s({props:Pi(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=dt(o,Tl),S=ut({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return ut({},a,sa({root:["root",i,`${i}${Zr(t)}`,`size${Zr(o)}`,`${i}Size${Zr(o)}`,`color${Zr(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Zr(o)}`],endIcon:["icon","endIcon",`iconSize${Zr(o)}`]},El,a))})(S),k=g&&Rr.jsx(_l,{className:x.startIcon,ownerState:S,children:g}),C=p&&Rr.jsx(Ml,{className:x.endIcon,ownerState:S,children:p}),E=r||"";return Rr.jsxs(Il,ut({ownerState:S,className:li(n.className,x.root,l,E),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:li(x.focusVisible,f),ref:t,type:b},y,{classes:x,children:[k,i,C]}))}));var ql={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const Dl={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},Al={mode:"light",palette:{primary:{main:Dl.grey25,contrastText:Dl.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Dl.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Dl.grey100,dark:Dl.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Dl.grey100,default:Dl.grey100,lightest:Dl.grey100,lighter:Dl.grey98,darker:Dl.grey95,darkest:Dl.grey90},custom:{focusBorder:Dl.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Dl.grey45,disabledContrastText:Dl.grey100},selected:{main:Dl.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Dl.grey100,selectedContrastText:Dl.grey100,mainContrastText:Dl.grey100,alternativeContrastText:Dl.grey25,excludedContrastText:Dl.grey25,selectedExcludedContrastText:Dl.grey100,possibleContrastText:Dl.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},zl={mode:"dark",palette:{primary:{main:Dl.grey20,contrastText:Dl.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Dl.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Dl.grey100,dark:Dl.grey0},action:{active:Dl.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Dl.grey25,lighter:Dl.grey20,darker:Dl.grey15,darkest:Dl.grey10},custom:{focusBorder:Dl.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Dl.grey45,disabledContrastText:Dl.grey100},selected:{main:Dl.green,alternative:Dl.grey20,excluded:Dl.grey10,selectedExcluded:Dl.grey10,possible:Dl.grey80,selectedContrastText:Dl.grey100,mainContrastText:Dl.grey100,alternativeContrastText:Dl.grey100,excludedContrastText:Dl.grey100,selectedExcludedContrastText:Dl.grey100,possibleContrastText:Dl.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},jl={},Fl=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(Rl.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(Rl.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(Rl.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Rl.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function $l(e){let t=Al,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=zl));const r=JSON.stringify(t);if(jl[r])return jl[r];const o={palette:d(d({type:t.mode},ql.palette),t.palette),typography:d({},ql.typography),shadows:ql.shadows,props:d({},ql.props),shape:d({},ql.shape)};return jl[r]=Ss(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=ut({},dt(e,Da),{components:{}});Object.keys(t).forEach((e=>{const n=s.components[e]||{};n.defaultProps=t[e],s.components[e]=n})),Object.keys(i).forEach((e=>{const t=s.components[e]||{};t.defaultProps=i[e],s.components[e]=t})),Object.keys(a).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=a[e],s.components[e]=t})),Object.keys(r).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=r[e],s.components[e]=t})),s.spacing=mo(e.spacing);const l=$r(e.breakpoints||{}),c=s.spacing;s.mixins=ut({gutters:(e={})=>ut({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:ut({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,p=dt(o,Aa),f=d||u||"light";return s.palette=ut({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),s}(d(d({},o),{},{overrides:Fl(o)}))),jl[r].name=n,jl[r]}ai.configure((e=>"njs-".concat("3efc","-").concat(e.replace("Mui",""))));var Bl=x.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null});const Wl={active:!0,select:!0,passive:!0,edit:!1};function Ul(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(Wl).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Wl[e],n[e]=!Wl[e])})),e.constraints=n,e.interactions=t}var Hl=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={},o={get:e=>t[e],set:(n,o)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=o,r[n]=e({type:"SET",value:o}),o},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))},destroy:()=>{Object.keys(r).forEach((e=>{r[e]&&r[e]()}))}};return[()=>{const[,e]=w.useState(t);return w.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[o]},o]};const Vl=w.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:i}=e;const[a,s]=w.useState(n),[l,c]=w.useState(),{theme:u}=w.useMemo((()=>({theme:$l(l)})),[l]),[d,p]=w.useState([]);return w.useEffect((()=>{r&&r()}),[]),w.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>s((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),a&&(a.modelStore=o,a.selectionStore=i),x.createElement(Or,{injectFirst:!0},x.createElement(js,{theme:u},x.createElement(Bl.Provider,{value:a},d)))}));function Gl(e){let t,{app:n,context:r}=e,o=!1;const i=new Promise((e=>{t=e})),a=x.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","6.0.0-alpha.2"),s.setAttribute("data-app-id",n.id),document.body.appendChild(s),r&&Ul(r);const l=function(e){const[t,n]=Hl({}),[r,o]=Hl({}),[i,a]=Hl({}),[s,l]=Hl({}),[c,u]=Hl({}),[,d]=Hl({}),p=e=>{let{type:t,value:r}=e;const i=d.get(r.id);d.set(r.id,{});const s=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("closed",c),r.removeListener("changed",s),n.clear(r.id),o.clear(r.id),a.clear(r.id),l.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(i||(r.on("changed",s),r.once("closed",c))),c},[f,h]=Hl({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:s,rpcRequestModelStore:l,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(n.id),c=function(e){const[t,n]=Hl({}),[r,o]=Hl({}),[i,a]=Hl({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(n.id),u=at.createRoot(s);u.render(x.createElement(Vl,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:c}));const d={},p=[],f=[];return[{toggleFocusOfCells(e){Object.keys(d).forEach((t=>{var n;null===(n=d[t].current)||void 0===n||n.toggleFocus(t===e)}))},cells:d,addCell(e,t){d[e]=t},removeCell(e){delete d[e]},add:(e,t)=>(async()=>{await i,f.push(e),p.push(t),a.current.setComps(f)})(),remove(e){o||(async t=>{await i;const n=f.indexOf(e);var r;-1!==n&&(null===(r=p[n])||void 0===r||r.call(p),f.splice(n,1),p.splice(n,1));null==a||null===(t=a.current)||void 0===t||t.setComps(f)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,e&&Ul(e),a.current.setContext(e)})()},destroy(){o=!0,p.forEach((e=>{e&&e()})),l.destroy(),u.unmount(),document.body.removeChild(s)}},l,c,a,i]}function Kl(e){return di("MuiSvgIcon",e)}pi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Jl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Zl=As("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Zr(n.color)}`],t[`fontSize${Zr(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Xl=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=dt(n,Jl),f=w.isValidElement(r)&&"svg"===r.type,h=ut({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return sa({root:["root","inherit"!==t&&`color${Zr(t)}`,`fontSize${Zr(n)}`]},Kl,r)})(h);return Rr.jsxs(Zl,ut({as:a,className:li(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?Rr.jsx("title",{children:u}):null]}))}));function Ql(e,t){function n(n,r){return Rr.jsx(Xl,ut({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Xl.muiName,w.memo(w.forwardRef(n))}Xl.muiName="SvgIcon";const Yl={configure:e=>{ai.configure(e)}};var ec=Object.freeze({__proto__:null,capitalize:Zr,createChainedFunction:Ni,createSvgIcon:Ql,debounce:qi,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Di,ownerDocument:Ai,ownerWindow:zi,requirePropFactory:function(e,t){return()=>null},setRef:ji,unstable_ClassNameGenerator:Yl,unstable_useEnhancedEffect:_i,unstable_useId:Bi,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Wi,useEventCallback:Ui,useForkRef:Hi,useIsFocusVisible:oa});const tc=e=>e.scrollTop;function nc(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function rc(e){return di("MuiPaper",e)}pi("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 oc=["className","component","elevation","square","variant"],ic=As("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return ut({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&ut({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Va.alpha("#fff",Fs(t.elevation))}, ${Va.alpha("#fff",Fs(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),ac=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=dt(n,oc),c=ut({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return sa({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},rc,o)})(c);return Rr.jsx(ic,ut({as:o,ownerState:c,className:li(u.root,r),ref:t},l))}));function sc(e){return di("MuiIconButton",e)}const lc=pi("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),cc=["edge","children","className","color","disabled","disableFocusRipple","size"],uc=As(Cl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Zr(n.color)}`],n.edge&&t[`edge${Zr(n.edge)}`],t[`size${Zr(n.size)}`]]}})((({theme:e,ownerState:t})=>ut({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Va.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return ut({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&ut({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":ut({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Va.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${lc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),dc=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=dt(n,cc),d=ut({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return sa({root:["root",n&&"disabled","default"!==r&&`color${Zr(r)}`,o&&`edge${Zr(o)}`,`size${Zr(i)}`]},sc,t)})(d);return Rr.jsx(uc,ut({className:li(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))}));function pc(e){return di("MuiTypography",e)}pi("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],hc=As("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Zr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ut({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),mc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bc=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiTypography"}),r=(e=>gc[e]||e)(n.color),o=ri(ut({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=mc}=o,f=dt(o,fc),h=ut({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||mc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return sa({root:["root",i,"inherit"!==e.align&&`align${Zr(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},pc,a)})(h);return Rr.jsx(hc,ut({as:m,ref:t,ownerState:h,className:li(g.root,a)},f))}));var vc,yc={};function Sc(){if(vc)return yc;vc=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(S()),t=Ts;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return yc.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},yc}var wc=n(Sc()),xc="top",kc="bottom",Cc="right",Ec="left",Rc="auto",Lc=[xc,kc,Cc,Ec],Oc="start",Tc="end",Pc="clippingParents",Ic="viewport",_c="popper",Mc="reference",Nc=Lc.reduce((function(e,t){return e.concat([t+"-"+Oc,t+"-"+Tc])}),[]),qc=[].concat(Lc,[Rc]).reduce((function(e,t){return e.concat([t,t+"-"+Oc,t+"-"+Tc])}),[]),Dc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ac(e){return e?(e.nodeName||"").toLowerCase():null}function zc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function jc(e){return e instanceof zc(e).Element||e instanceof Element}function Fc(e){return e instanceof zc(e).HTMLElement||e instanceof HTMLElement}function $c(e){return"undefined"!=typeof ShadowRoot&&(e instanceof zc(e).ShadowRoot||e instanceof ShadowRoot)}var Bc={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Fc(o)&&Ac(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Fc(r)&&Ac(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Wc(e){return e.split("-")[0]}var Uc=Math.max,Hc=Math.min,Vc=Math.round;function Gc(){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 Kc(){return!/^((?!chrome|android).)*safari/i.test(Gc())}function Jc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Fc(e)&&(o=e.offsetWidth>0&&Vc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Vc(r.height)/e.offsetHeight||1);var a=(jc(e)?zc(e):window).visualViewport,s=!Kc()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Zc(e){var t=Jc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Xc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$c(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qc(e){return zc(e).getComputedStyle(e)}function Yc(e){return["table","td","th"].indexOf(Ac(e))>=0}function eu(e){return((jc(e)?e.ownerDocument:e.document)||window.document).documentElement}function tu(e){return"html"===Ac(e)?e:e.assignedSlot||e.parentNode||($c(e)?e.host:null)||eu(e)}function nu(e){return Fc(e)&&"fixed"!==Qc(e).position?e.offsetParent:null}function ru(e){for(var t=zc(e),n=nu(e);n&&Yc(n)&&"static"===Qc(n).position;)n=nu(n);return n&&("html"===Ac(n)||"body"===Ac(n)&&"static"===Qc(n).position)?t:n||function(e){var t=/firefox/i.test(Gc());if(/Trident/i.test(Gc())&&Fc(e)&&"fixed"===Qc(e).position)return null;var n=tu(e);for($c(n)&&(n=n.host);Fc(n)&&["html","body"].indexOf(Ac(n))<0;){var r=Qc(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function ou(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function iu(e,t,n){return Uc(e,Hc(t,n))}function au(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function su(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var lu={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Wc(n.placement),l=ou(s),c=[Ec,Cc].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return au("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:su(e,Lc))}(o.padding,n),d=Zc(i),p="y"===l?xc:Ec,f="y"===l?kc:Cc,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=ru(i),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=u[p],S=b-d[c]-u[f],w=b/2-d[c]/2+v,x=iu(y,w,S),k=l;n.modifiersData[r]=((t={})[k]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Xc(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cu(e){return e.split("-")[1]}var uu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function du(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),y=Ec,S=xc,w=window;if(c){var x=ru(n),k="clientHeight",C="clientWidth";if(x===zc(n)&&"static"!==Qc(x=eu(n)).position&&"absolute"===s&&(k="scrollHeight",C="scrollWidth"),o===xc||(o===Ec||o===Cc)&&i===Tc)S=kc,m-=(d&&x===w&&w.visualViewport?w.visualViewport.height:x[k])-r.height,m*=l?1:-1;if(o===Ec||(o===xc||o===kc)&&i===Tc)y=Cc,f-=(d&&x===w&&w.visualViewport?w.visualViewport.width:x[C])-r.width,f*=l?1:-1}var E,R=Object.assign({position:s},c&&uu),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Vc(n*o)/o||0,y:Vc(r*o)/o||0}}({x:f,y:m},zc(n)):{x:f,y:m};return f=L.x,m=L.y,l?Object.assign({},R,((E={})[S]=v?"0":"",E[y]=b?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},R,((t={})[S]=v?m+"px":"",t[y]=b?f+"px":"",t.transform="",t))}var pu={passive:!0};var fu={left:"right",right:"left",bottom:"top",top:"bottom"};function hu(e){return e.replace(/left|right|bottom|top/g,(function(e){return fu[e]}))}var mu={start:"end",end:"start"};function gu(e){return e.replace(/start|end/g,(function(e){return mu[e]}))}function bu(e){var t=zc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vu(e){return Jc(eu(e)).left+bu(e).scrollLeft}function yu(e){var t=Qc(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Su(e){return["html","body","#document"].indexOf(Ac(e))>=0?e.ownerDocument.body:Fc(e)&&yu(e)?e:Su(tu(e))}function wu(e,t){var n;void 0===t&&(t=[]);var r=Su(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=zc(r),a=o?[i].concat(i.visualViewport||[],yu(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(wu(tu(a)))}function xu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ku(e,t,n){return t===Ic?xu(function(e,t){var n=zc(e),r=eu(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Kc();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+vu(e),y:l}}(e,n)):jc(t)?function(e,t){var n=Jc(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):xu(function(e){var t,n=eu(e),r=bu(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Uc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Uc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+vu(e),l=-r.scrollTop;return"rtl"===Qc(o||n).direction&&(s+=Uc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(eu(e)))}function Cu(e,t,n,r){var o="clippingParents"===t?function(e){var t=wu(tu(e)),n=["absolute","fixed"].indexOf(Qc(e).position)>=0&&Fc(e)?ru(e):e;return jc(n)?t.filter((function(e){return jc(e)&&Xc(e,n)&&"body"!==Ac(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=ku(e,n,r);return t.top=Uc(o.top,t.top),t.right=Hc(o.right,t.right),t.bottom=Hc(o.bottom,t.bottom),t.left=Uc(o.left,t.left),t}),ku(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Eu(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Wc(o):null,a=o?cu(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case xc:t={x:s,y:n.y-r.height};break;case kc:t={x:s,y:n.y+n.height};break;case Cc:t={x:n.x+n.width,y:l};break;case Ec:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?ou(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Oc:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Tc:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Ru(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?Pc:s,c=n.rootBoundary,u=void 0===c?Ic:c,d=n.elementContext,p=void 0===d?_c:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=au("number"!=typeof g?g:su(g,Lc)),v=p===_c?Mc:_c,y=e.rects.popper,S=e.elements[h?v:p],w=Cu(jc(S)?S:S.contextElement||eu(e.elements.popper),l,u,a),x=Jc(e.elements.reference),k=Eu({reference:x,element:y,placement:o}),C=xu(Object.assign({},y,k)),E=p===_c?C:x,R={top:w.top-E.top+b.top,bottom:E.bottom-w.bottom+b.bottom,left:w.left-E.left+b.left,right:E.right-w.right+b.right},L=e.modifiersData.offset;if(p===_c&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[Cc,kc].indexOf(e)>=0?1:-1,n=[xc,kc].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function Lu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?qc:l,u=cu(r),d=u?s?Nc:Nc.filter((function(e){return cu(e)===u})):Lc,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Ru(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Wc(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Ou={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=Wc(g),v=l||(b===g||!h?[hu(g)]:function(e){if(Wc(e)===Rc)return[];var t=hu(e);return[gu(e),t,gu(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(Wc(n)===Rc?Lu(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),S=t.rects.reference,w=t.rects.popper,x=new Map,k=!0,C=y[0],E=0;E<y.length;E++){var R=y[E],L=Wc(R),O=cu(R)===Oc,T=[xc,kc].indexOf(L)>=0,P=T?"width":"height",I=Ru(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),_=T?O?Cc:Ec:O?kc:xc;S[P]>w[P]&&(_=hu(_));var M=hu(_),N=[];if(i&&N.push(I[L]<=0),s&&N.push(I[_]<=0,I[M]<=0),N.every((function(e){return e}))){C=R,k=!1;break}x.set(R,N)}if(k)for(var q=function(e){var t=y.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},D=h?3:1;D>0;D--){if("break"===q(D))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Tu(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pu(e){return[xc,Cc,kc,Ec].some((function(t){return e[t]>=0}))}var Iu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=qc.reduce((function(e,n){return e[n]=function(e,t,n){var r=Wc(e),o=[Ec,xc].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ec,Cc].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var _u={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Ru(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=Wc(t.placement),v=cu(t.placement),y=!v,S=ou(b),w="x"===S?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(x){if(i){var T,P="y"===S?xc:Ec,I="y"===S?kc:Cc,_="y"===S?"height":"width",M=x[S],N=M+g[P],q=M-g[I],D=f?-C[_]/2:0,A=v===Oc?k[_]:C[_],z=v===Oc?-C[_]:-k[_],j=t.elements.arrow,F=f&&j?Zc(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[P],W=$[I],U=iu(0,k[_],F[_]),H=y?k[_]/2-D-U-B-R.mainAxis:A-U-B-R.mainAxis,V=y?-k[_]/2+D+U+W+R.mainAxis:z+U+W+R.mainAxis,G=t.elements.arrow&&ru(t.elements.arrow),K=G?"y"===S?G.clientTop||0:G.clientLeft||0:0,J=null!=(T=null==L?void 0:L[S])?T:0,Z=M+V-J,X=iu(f?Hc(N,M+H-J-K):N,M,f?Uc(q,Z):q);x[S]=X,O[S]=X-M}if(s){var Q,Y="x"===S?xc:Ec,ee="x"===S?kc:Cc,te=x[w],ne="y"===w?"height":"width",re=te+g[Y],oe=te-g[ee],ie=-1!==[xc,Ec].indexOf(b),ae=null!=(Q=null==L?void 0:L[w])?Q:0,se=ie?re:te-k[ne]-C[ne]-ae+R.altAxis,le=ie?te+k[ne]+C[ne]-ae-R.altAxis:oe,ce=f&&ie?function(e,t,n){var r=iu(e,t,n);return r>n?n:r}(se,te,le):iu(f?se:re,te,f?le:oe);x[w]=ce,O[w]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Mu(e,t,n){void 0===n&&(n=!1);var r=Fc(t),o=Fc(t)&&function(e){var t=e.getBoundingClientRect(),n=Vc(t.width)/e.offsetWidth||1,r=Vc(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=eu(t),a=Jc(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ac(t)||yu(i))&&(s=function(e){return e!==zc(e)&&Fc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:bu(e);var t}(t)),Fc(t)?((l=Jc(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=vu(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Nu(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function qu(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Du={placement:"bottom",modifiers:[],strategy:"absolute"};function Au(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function zu(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Du:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Du,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:jc(e)?wu(e):e.contextElement?wu(e.contextElement):[],popper:wu(t)};var u,d,p=function(e){var t=Nu(e);return Dc.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((u=[].concat(r,o.options.modifiers),d=u.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=p.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(Au(t,n)){o.rects={reference:Mu(t,ru(n),"fixed"===o.options.strategy),popper:Zc(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof a&&(o=a({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:qu((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!Au(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var ju=zu({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=zc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,pu)})),s&&l.addEventListener("resize",n.update,pu),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,pu)})),s&&l.removeEventListener("resize",n.update,pu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Eu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:Wc(t.placement),variation:cu(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,du(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,du(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Bc,Iu,Ou,_u,lu,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ru(t,{elementContext:"reference"}),s=Ru(t,{altBoundary:!0}),l=Tu(a,r),c=Tu(s,o,i),u=Pu(l),d=Pu(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Fu=w.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=w.useState(null),s=Hi(w.isValidElement(n)?ga(n):null,t);if(_i((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),_i((()=>{if(i&&!o)return ji(t,i),()=>{ji(t,null)}}),[t,i,o]),o){if(w.isValidElement(n)){const e={ref:s};return w.cloneElement(n,e)}return Rr.jsx(w.Fragment,{children:n})}return Rr.jsx(w.Fragment,{children:i?Us.createPortal(n,i):i})}));function $u(e){return di("MuiPopper",e)}pi("MuiPopper",["root"]);const Bu=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Wu=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Uu(e){return"function"==typeof e?e():e}const Hu={},Vu=w.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=dt(e,Bu),g=w.useRef(null),b=Hi(g,t),v=w.useRef(null),y=Hi(v,d),S=w.useRef(y);_i((()=>{S.current=y}),[y]),w.useImperativeHandle(d,(()=>v.current),[]);const x=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,i),[k,C]=w.useState(x),[E,R]=w.useState(Uu(r));w.useEffect((()=>{v.current&&v.current.forceUpdate()})),w.useEffect((()=>{r&&R(Uu(r))}),[r]),_i((()=>{if(!E||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=s&&(e=e.concat(s)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=ju(E,g.current,ut({placement:x},u,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[E,a,s,l,u,x]);const L={placement:k};null!==h&&(L.TransitionProps=h);const O=(e=>{const{classes:t}=e;return sa({root:["root"]},$u,t)})(e),T=null!=(n=f.root)?n:"div",P=ma({elementType:T,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:O.root});return Rr.jsx(T,ut({},P,{children:"function"==typeof o?o(L):o}))})),Gu=w.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:c,placement:u="bottom",popperOptions:d=Hu,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,b=dt(e,Wu),[v,y]=w.useState(!0);if(!s&&!c&&(!h||v))return null;let S;if(o)S=o;else if(n){const e=Uu(n);S=e&&void 0!==e.nodeType?Ai(e).body:Ai(null).body}const x=c||!s||h&&!v?void 0:"none",k=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Rr.jsx(Fu,{disablePortal:a,container:S,children:Rr.jsx(Vu,ut({anchorEl:n,direction:i,disablePortal:a,modifiers:l,ref:t,open:h?!v:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},b,{style:ut({position:"fixed",top:0,left:0,display:x},f),TransitionProps:k,children:r}))})})),Ku=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Ju=As(Gu,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zu=w.forwardRef((function(e,t){var n;const r=wc(),o=$s({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b,slots:v,slotProps:y}=o,S=dt(o,Ku),w=null!=(n=null==v?void 0:v.root)?n:null==s?void 0:s.Root,x=ut({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b},S);return Rr.jsx(Ju,ut({as:a,direction:null==r?void 0:r.direction,slots:{root:w},slotProps:null!=y?y:l},x,{ref:t}))})),Xu=["onChange","maxRows","minRows","style","value"];function Qu(e){return parseInt(e,10)||0}const Yu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ed(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const td=w.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=dt(e,Xu),{current:l}=w.useRef(null!=a),c=w.useRef(null),u=Hi(t,c),d=w.useRef(null),p=w.useRef(null),f=w.useCallback((()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=zi(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Qu(i.paddingBottom)+Qu(i.paddingTop),l=Qu(i.borderBottomWidth)+Qu(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),h=Ui((()=>{const e=c.current,t=f();if(!e||!t||ed(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n})),m=w.useCallback((()=>{const e=c.current,t=f();if(!e||!t||ed(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),g=w.useRef(-1);_i((()=>{const e=qi(m),t=null==c?void 0:c.current;if(!t)return;const n=zi(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[f,m,h]),_i((()=>{m()}));return Rr.jsxs(w.Fragment,{children:[Rr.jsx("textarea",ut({value:a,onChange:e=>{l||m(),n&&n(e)},ref:u,rows:o,style:i},s)),Rr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:ut({},Yu,i,{paddingTop:0,paddingBottom:0})})]})}));function nd({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const rd=w.createContext(void 0);function od(){return w.useContext(rd)}function id(e){return Rr.jsx(ei,ut({},e,{defaultTheme:ws,themeId:ct}))}function ad(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function sd(e){return di("MuiInputBase",e)}const ld=pi("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),cd=["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"],ud=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Zr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},dd=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},pd=As("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ud})((({theme:e,ownerState:t})=>ut({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ld.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ut({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),fd=As("input",{name:"MuiInputBase",slot:"Input",overridesResolver:dd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=ut({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return ut({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ld.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ld.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),hd=Rr.jsx(id,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),md=w.forwardRef((function(e,t){var n;const r=$s({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:x=!1,name:k,onBlur:C,onChange:E,onClick:R,onFocus:L,onKeyDown:O,onKeyUp:T,placeholder:P,readOnly:I,renderSuffix:_,rows:M,slotProps:N={},slots:q={},startAdornment:D,type:A="text",value:z}=r,j=dt(r,cd),F=null!=b.value?b.value:z,{current:$}=w.useRef(null!=F),B=w.useRef(),W=w.useCallback((e=>{}),[]),U=Hi(B,v,b.ref,W),[H,V]=w.useState(!1),G=od(),K=nd({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:H,w.useEffect((()=>{!G&&d&&H&&(V(!1),C&&C())}),[G,d,H,C]);const J=G&&G.onFilled,Z=G&&G.onEmpty,X=w.useCallback((e=>{!function(e,t=!1){return e&&(ad(e.value)&&""!==e.value||t&&ad(e.defaultValue)&&""!==e.defaultValue)}(e)?Z&&Z():J&&J()}),[J,Z]);_i((()=>{$&&X({value:F})}),[F,X,$]);w.useEffect((()=>{X(B.current)}),[]);let Q=g,Y=b;x&&"input"===Q&&(Y=ut(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:y,minRows:S},Y),Q=td);w.useEffect((()=>{G&&G.setAdornedStart(Boolean(D))}),[G,D]);const ee=ut({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:x,size:K.size,startAdornment:D,type:A}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return sa({root:["root",`color${Zr(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Zr(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},sd,t)})(ee),ne=q.root||l.Root||pd,re=N.root||c.root||{},oe=q.input||l.Input||fd;return Y=ut({},Y,null!=(n=N.input)?n:c.input),Rr.jsxs(w.Fragment,{children:[!p&&hd,Rr.jsxs(ne,ut({},re,!la(ne)&&{ownerState:ut({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),R&&R(e)}},j,{className:li(te.root,re.className,s,I&&"MuiInputBase-readOnly"),children:[D,Rr.jsx(rd.Provider,{value:null,children:Rr.jsx(oe,ut({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:k,placeholder:P,readOnly:I,required:K.required,rows:M,value:F,onKeyDown:O,onKeyUp:T,type:A},Y,!la(oe)&&{as:Q,ownerState:ut({},ee,Y.ownerState)},{ref:U,className:li(te.input,Y.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(st(1));X({value:t.value})}b.onChange&&b.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(L&&L(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,_?_(ut({},K,{startAdornment:D})):null]}))]})}));function gd(e){return di("MuiOutlinedInput",e)}const bd=ut({},ld,pi("MuiOutlinedInput",["root","notchedOutline","input"])),vd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yd={entering:{opacity:1},entered:{opacity:1}},Sd=w.forwardRef((function(e,t){const n=xs(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Ys}=e,v=dt(e,vd),y=w.useRef(null),S=Hi(y,ga(a),t),x=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},k=x(d),C=x(((e,t)=>{tc(e);const r=nc({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),E=x(u),R=x(h),L=x((e=>{const t=nc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),O=x(f);return Rr.jsx(b,ut({appear:i,in:l,nodeRef:y,onEnter:C,onEntered:E,onEntering:k,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>w.cloneElement(a,ut({style:ut({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},yd[e],m,a.props.style),ref:S},t))}))}));function wd(e){return di("MuiBackdrop",e)}pi("MuiBackdrop",["root","invisible"]);const xd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],kd=As("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>ut({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Cd=w.forwardRef((function(e,t){var n,r,o;const i=$s({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Sd,transitionDuration:g}=i,b=dt(i,xd),v=ut({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return sa({root:["root",n&&"invisible"]},wd,t)})(v),S=null!=(n=f.root)?n:u.root;return Rr.jsx(m,ut({in:p,timeout:g},b,{children:Rr.jsx(kd,ut({"aria-hidden":!0},S,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:l,className:li(y.root,s,null==S?void 0:S.className),ownerState:ut({},v,null==S?void 0:S.ownerState),classes:y,ref:t,children:a}))}))}));function Ed(e){return di("MuiBadge",e)}const Rd=pi("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"]),Ld=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Od=As("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Td=As("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Zr(n.anchorOrigin.vertical)}${Zr(n.anchorOrigin.horizontal)}${Zr(n.overlap)}`],"default"!==n.color&&t[`color${Zr(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Rd.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Rd.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Rd.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Rd.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Rd.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Rd.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Rd.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Rd.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),Pd=w.forwardRef((function(e,t){var n,r,o,i,a,s;const l=$s({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:b=!1,max:v=99,badgeContent:y,slots:S,slotProps:w,showZero:x=!1,variant:k="standard"}=l,C=dt(l,Ld),{badgeContent:E,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=aa({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:s,max:l=r}=a?i:e;return{badgeContent:s,invisible:a,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}}({max:v,invisible:b,badgeContent:y,showZero:x}),T=aa({anchorOrigin:c,color:g,overlap:m,variant:k,badgeContent:y}),P=R||null==E&&"dot"!==k,{color:I=g,overlap:_=m,anchorOrigin:M=c,variant:N=k}=P?T:l,q="dot"!==N?O:void 0,D=ut({},l,{badgeContent:E,invisible:P,max:L,displayValue:q,showZero:x,anchorOrigin:M,color:I,overlap:_,variant:N}),A=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return sa({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Zr(n.vertical)}${Zr(n.horizontal)}`,`anchorOrigin${Zr(n.vertical)}${Zr(n.horizontal)}${Zr(o)}`,`overlap${Zr(o)}`,"default"!==t&&`color${Zr(t)}`]},Ed,a)})(D),z=null!=(n=null!=(r=null==S?void 0:S.root)?r:p.Root)?n:Od,j=null!=(o=null!=(i=null==S?void 0:S.badge)?i:p.Badge)?o:Td,F=null!=(a=null==w?void 0:w.root)?a:f.root,$=null!=(s=null==w?void 0:w.badge)?s:f.badge,B=ma({elementType:z,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:D,className:li(null==F?void 0:F.className,A.root,u)}),W=ma({elementType:j,externalSlotProps:$,ownerState:D,className:li(A.badge,null==$?void 0:$.className)});return Rr.jsxs(z,ut({},B,{children:[h,Rr.jsx(j,ut({},W,{children:q}))]}))})),Id=pi("MuiBox",["root"]),_d=Ss(),Md=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Pr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ho),a=w.forwardRef((function(e,a){const s=Qo(n),l=ri(e),{className:c,component:u="div"}=l,d=dt(l,ci);return Rr.jsx(i,ut({as:u,ref:a,className:li(c,o?o(r):r),theme:t&&s[t]||s},d))}));return a}({themeId:ct,defaultTheme:_d,defaultClassName:Id.root,generateClassName:ai.generate});function Nd(e){return di("PrivateSwitchBase",e)}pi("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qd=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Dd=As(Cl,{name:"MuiSwitchBase"})((({ownerState:e})=>ut({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Ad=As("input",{name:"MuiSwitchBase",shouldForwardProp:Ds})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),zd=w.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:S,type:w,value:x}=e,k=dt(e,qd),[C,E]=Wi({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),R=od();let L=s;R&&void 0===L&&(L=R.disabled);const O="checkbox"===w||"radio"===w,T=ut({},e,{checked:C,disabled:L,disableFocusRipple:l,edge:c}),P=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return sa({root:["root",n&&"checked",r&&"disabled",o&&`edge${Zr(o)}`],input:["input"]},Nd,t)})(T);return Rr.jsxs(Dd,ut({component:"span",className:li(P.root,i),centerRipple:!0,focusRipple:!l,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:T,ref:t},k,{children:[Rr.jsx(Ad,ut({autoFocus:n,checked:r,defaultChecked:a,className:P.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:T,tabIndex:S,type:w},"checkbox"===w&&void 0===x?{}:{value:x},p)),C?o:u]}))}));var jd=Ql(Rr.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"),Fd=Ql(Rr.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"),$d=Ql(Rr.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 Bd(e){return di("MuiCheckbox",e)}const Wd=pi("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ud=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Hd=As(zd,{shouldForwardProp:e=>Ds(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Zr(n.size)}`],"default"!==n.color&&t[`color${Zr(n.color)}`]]}})((({theme:e,ownerState:t})=>ut({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Va.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Wd.checked}, &.${Wd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Wd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Vd=Rr.jsx(Fd,{}),Gd=Rr.jsx(jd,{}),Kd=Rr.jsx($d,{}),Jd=w.forwardRef((function(e,t){var n,r;const o=$s({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Vd,color:a="primary",icon:s=Gd,indeterminate:l=!1,indeterminateIcon:c=Kd,inputProps:u,size:d="medium",className:p}=o,f=dt(o,Ud),h=l?c:s,m=l?c:i,g=ut({},o,{color:a,indeterminate:l,size:d}),b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return ut({},t,sa({root:["root",n&&"indeterminate",`color${Zr(r)}`,`size${Zr(o)}`]},Bd,t))})(g);return Rr.jsx(Hd,ut({type:"checkbox",inputProps:ut({"data-indeterminate":l},u),icon:w.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:w.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:li(b.root,p)},f,{classes:b}))}));function Zd(e){return di("MuiCircularProgress",e)}pi("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Xd=["className","color","disableShrink","size","style","thickness","value","variant"];let Qd,Yd,ep,tp,np=e=>e;const rp=44,op=ir(Qd||(Qd=np`
96
+ `,sl=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[s,l]=S.useState([]),c=S.useRef(0),u=S.useRef(null);S.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=S.useRef(!1),p=Fi(),f=S.useRef(null),h=S.useRef(null),m=S.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,xr.jsx(al,{classes:{ripple:Xo(o.ripple,tl.ripple),rippleVisible:Xo(o.rippleVisible,tl.rippleVisible),ripplePulsate:Xo(o.ripplePulsate,tl.ripplePulsate),child:Xo(o.child,tl.child),childLeaving:Xo(o.childLeaving,tl.childLeaving),childPulsate:Xo(o.childPulsate,tl.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=S.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&d.current)return void(d.current=!1);"touchstart"===e?.type&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}e?.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),b=S.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=S.useCallback(((e,t)=>{if(p.clear(),"touchend"===e?.type&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{y(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return S.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:y})),[b,g,y]),xr.jsx(il,{className:Xo(tl.root,o.root,i),ref:h,...a,children:xr.jsx(el,{component:null,exit:!0,children:s})})}));function ll(e){return Yo("MuiButtonBase",e)}const cl=ei("MuiButtonBase",["root","disabled","focusVisible"]),ul=bs("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"},[`&.${cl.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dl=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:p,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:b,onFocus:y,onFocusVisible:v,onKeyDown:w,onKeyUp:x,onMouseDown:k,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:L,onTouchStart:P,tabIndex:T=0,TouchRippleProps:O,touchRippleRef:I,type:_,...M}=n,q=S.useRef(null),D=qs.use(),N=Di(D.ref,I),[A,z]=S.useState(!1);l&&A&&z(!1),S.useImperativeHandle(r,(()=>({focusVisible:()=>{z(!0),q.current.focus()}})),[]);const j=D.shouldMount&&!c&&!l;S.useEffect((()=>{A&&d&&!c&&D.pulsate()}),[c,d,A,D]);const F=pl(D,"start",k,u),$=pl(D,"stop",g,u),B=pl(D,"stop",b,u),W=pl(D,"stop",E,u),H=pl(D,"stop",(e=>{A&&e.preventDefault(),C&&C(e)}),u),U=pl(D,"start",P,u),V=pl(D,"stop",R,u),G=pl(D,"stop",L,u),K=pl(D,"stop",(e=>{$i(e.target)||z(!1),h&&h(e)}),!1),J=qi((e=>{q.current||(q.current=e.currentTarget),$i(e.target)&&(z(!0),v&&v(e)),y&&y(e)})),Z=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},X=qi((e=>{d&&!e.repeat&&A&&" "===e.key&&D.stop(e,(()=>{D.start(e)})),e.target===e.currentTarget&&Z()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&Z()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),Q=qi((e=>{d&&" "===e.key&&A&&!e.defaultPrevented&&D.stop(e,(()=>{D.pulsate(e)})),x&&x(e),m&&e.target===e.currentTarget&&Z()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let Y=s;"button"===Y&&(M.href||M.to)&&(Y=f);const ee={};"button"===Y?(ee.type=void 0===_?"button":_,ee.disabled=l):(M.href||M.to||(ee.role="button"),l&&(ee["aria-disabled"]=l));const te=Di(t,q),ne={...n,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:T,focusVisible:A},re=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Hi({root:["root",t&&"disabled",n&&"focusVisible"]},ll,o);return n&&r&&(i.root+=` ${r}`),i})(ne);return xr.jsxs(ul,{as:Y,className:Xo(re.root,a),ownerState:ne,onBlur:K,onClick:m,onContextMenu:$,onFocus:J,onKeyDown:X,onKeyUp:Q,onMouseDown:F,onMouseLeave:H,onMouseUp:W,onDragLeave:B,onTouchEnd:V,onTouchMove:G,onTouchStart:U,ref:te,tabIndex:l?-1:T,type:_,...ee,...M,children:[i,j?xr.jsx(sl,{ref:N,center:o,...O}):null]})}));function pl(e,t,n,r=!1){return qi((o=>(n&&n(o),r||e[t](o),!0)))}function fl(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function hl(e){return Yo("MuiCircularProgress",e)}ei("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ml=44,gl=nr`
97
97
  0% {
98
98
  transform: rotate(0deg);
99
99
  }
@@ -101,7 +101,7 @@
101
101
  100% {
102
102
  transform: rotate(360deg);
103
103
  }
104
- `)),ip=ir(Yd||(Yd=np`
104
+ `,bl=nr`
105
105
  0% {
106
106
  stroke-dasharray: 1px, 200px;
107
107
  stroke-dashoffset: 0;
@@ -113,14 +113,14 @@
113
113
  }
114
114
 
115
115
  100% {
116
- stroke-dasharray: 100px, 200px;
117
- stroke-dashoffset: -125px;
116
+ stroke-dasharray: 1px, 200px;
117
+ stroke-dashoffset: -126px;
118
118
  }
119
- `)),ap=As("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Zr(n.color)}`]]}})((({ownerState:e,theme:t})=>ut({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&or(ep||(ep=np`
120
- animation: ${0} 1.4s linear infinite;
121
- `),op))),sp=As("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),lp=As("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Zr(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>ut({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&or(tp||(tp=np`
122
- animation: ${0} 1.4s ease-in-out infinite;
123
- `),ip))),cp=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=n,d=dt(n,Xd),p=ut({},n,{color:o,disableShrink:i,size:a,thickness:l,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return sa({root:["root",n,`color${Zr(r)}`],svg:["svg"],circle:["circle",`circle${Zr(n)}`,o&&"circleDisableShrink"]},Zd,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((rp-l)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return Rr.jsx(ap,ut({className:li(f.root,r),style:ut({width:a,height:a},m,s),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Rr.jsx(sp,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Rr.jsx(lp,{className:f.circle,style:h,ownerState:p,cx:rp,cy:rp,r:(rp-l)/2,fill:"none",strokeWidth:l})})}))}));function up(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dp(e){return parseInt(zi(e).getComputedStyle(e).paddingRight,10)||0}function pp(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&up(e,o)}))}function fp(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function hp(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ai(e);return t.body===e?zi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=ia(Ai(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${dp(r)+e}px`;const t=Ai(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${dp(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ai(r).body;else{const t=r.parentElement,n=zi(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const mp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gp(e){const t=[],n=[];return Array.from(e.querySelectorAll(mp)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function bp(){return!0}function vp(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=gp,isEnabled:a=bp,open:s}=e,l=w.useRef(!1),c=w.useRef(null),u=w.useRef(null),d=w.useRef(null),p=w.useRef(null),f=w.useRef(!1),h=w.useRef(null),m=Hi(ga(t),h),g=w.useRef(null);w.useEffect((()=>{s&&h.current&&(f.current=!n)}),[n,s]),w.useEffect((()=>{if(!s||!h.current)return;const e=Ai(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),w.useEffect((()=>{if(!s||!h.current)return;const e=Ai(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(h.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Rr.jsxs(w.Fragment,{children:[Rr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Rr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const yp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&up(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);pp(t,e.mount,e.modalRef,r,!0);const o=fp(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=fp(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=hp(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=fp(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&up(e.modalRef,t),pp(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&up(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Sp(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=yp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=w.useRef({}),f=w.useRef(null),h=w.useRef(null),m=Hi(h,d),[g,b]=w.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),x=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},k=Ui((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ai(f.current).body;o.add(S(),e),h.current&&x()})),C=w.useCallback((()=>o.isTopModal(S())),[o]),E=Ui((e=>{f.current=e,e&&(u&&C()?x():h.current&&up(h.current,y))})),R=w.useCallback((()=>{o.remove(S(),y)}),[y,o]);w.useEffect((()=>()=>{R()}),[R]),w.useEffect((()=>{u?k():v&&i||R()}),[u,R,v,i,k]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},O=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=pa(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=ut({},n,t);return ut({role:"presentation"},r,{onKeyDown:L(r),ref:m})},getBackdropProps:(e={})=>ut({"aria-hidden":!0},e,{onClick:O(e),open:u}),getTransitionProps:()=>({onEnter:Ni((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Ni((()=>{b(!0),s&&s(),i&&R()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:E,isTopModal:C,exited:g,hasTransition:v}}function wp(e){return di("MuiModal",e)}pi("MuiModal",["root","hidden","backdrop"]);const xp=["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"],kp=As("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>ut({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Cp=As(Cd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ep=w.forwardRef((function(e,t){var n,r,o,i,a,s;const l=$s({name:"MuiModal",props:e}),{BackdropComponent:c=Cp,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:x=!1,disableRestoreFocus:k=!1,disableScrollLock:C=!1,hideBackdrop:E=!1,keepMounted:R=!1,onBackdropClick:L,open:O,slotProps:T,slots:P}=l,I=dt(l,xp),_=ut({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:x,disableRestoreFocus:k,disableScrollLock:C,hideBackdrop:E,keepMounted:R}),{getRootProps:M,getBackdropProps:N,getTransitionProps:q,portalRef:D,isTopModal:A,exited:z,hasTransition:j}=Sp(ut({},_,{rootRef:t})),F=ut({},_,{exited:z}),$=(e=>{const{open:t,exited:n,classes:r}=e;return sa({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},wp,r)})(F),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=q();B.onEnter=e,B.onExited=t}const W=null!=(n=null!=(r=null==P?void 0:P.root)?r:g.Root)?n:kp,U=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:g.Backdrop)?o:c,H=null!=(a=null==T?void 0:T.root)?a:b.root,V=null!=(s=null==T?void 0:T.backdrop)?s:b.backdrop,G=ma({elementType:W,externalSlotProps:H,externalForwardedProps:I,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:F,className:li(d,null==H?void 0:H.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=ma({elementType:U,externalSlotProps:V,additionalProps:u,getSlotProps:e=>N(ut({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:li(null==V?void 0:V.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return R||O||j&&!z?Rr.jsx(Fu,{ref:D,container:h,disablePortal:x,children:Rr.jsxs(W,ut({},G,{children:[!E&&c?Rr.jsx(U,ut({},K)):null,Rr.jsx(vp,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:k,isEnabled:A,open:O,children:w.cloneElement(f,B)})]}))}):null}));function Rp(e){return di("MuiDivider",e)}const Lp=pi("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Op=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Tp=As("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>ut({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Va.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>ut({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>ut({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>ut({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>ut({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Pp=As("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>ut({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Ip=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=dt(n,Op),h=ut({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return sa({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Rp,r)})(h);return Rr.jsx(Tp,ut({as:a,className:li(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?Rr.jsx(Pp,{className:m.wrapper,ownerState:h,children:o}):null}))}));Ip.muiSkipListHighlight=!0;const _p=function(e={}){const{createStyledComponent:t=_a,useThemeProps:n=Ma,componentName:r="MuiStack"}=e,o=t(qa),i=w.forwardRef((function(e,t){const i=ri(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:c,children:u,className:d,useFlexGap:p=!1}=i,f=dt(i,Pa),h={direction:s,spacing:l,useFlexGap:p},m=sa({root:["root"]},(e=>di(r,e)),{});return Rr.jsx(o,ut({as:a,ownerState:h,ref:t,className:li(m.root,d)},f,{children:c?Na(u,c):u}))}));return i}({createStyledComponent:As("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$s({props:e,name:"MuiStack"})});function Mp(e){return di("MuiFormControlLabel",e)}const Np=pi("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),qp=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Dp=As("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Np.label}`]:t.label},t.root,t[`labelPlacement${Zr(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>ut({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Np.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Np.label}`]:{[`&.${Np.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Ap=As("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Np.error}`]:{color:(e.vars||e).palette.error.main}}))),zp=w.forwardRef((function(e,t){var n,r;const o=$s({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:s,disabled:l,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=dt(o,qp),m=od(),g=null!=(n=null!=l?l:s.props.disabled)?n:null==m?void 0:m.disabled,b=null!=p?p:s.props.required,v={disabled:g,required:b};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===s.props[e]&&void 0!==o[e]&&(v[e]=o[e])}));const y=nd({props:o,muiFormControl:m,states:["error"]}),S=ut({},o,{disabled:g,labelPlacement:d,required:b,error:y.error}),x=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return sa({root:["root",n&&"disabled",`labelPlacement${Zr(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Mp,t)})(S),k=null!=(r=f.typography)?r:a.typography;let C=u;return null==C||C.type===bc||c||(C=Rr.jsx(bc,ut({component:"span"},k,{className:li(x.label,null==k?void 0:k.className),children:C}))),Rr.jsxs(Dp,ut({className:li(x.root,i),ownerState:S,ref:t},h,{children:[w.cloneElement(s,v),b?Rr.jsxs(_p,{display:"block",children:[C,Rr.jsxs(Ap,{ownerState:S,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):C]}))})),jp=w.createContext();function Fp(e){return di("MuiGrid",e)}const $p=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Bp=pi("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}`)),...$p.map((e=>`grid-xs-${e}`)),...$p.map((e=>`grid-sm-${e}`)),...$p.map((e=>`grid-md-${e}`)),...$p.map((e=>`grid-lg-${e}`)),...$p.map((e=>`grid-xl-${e}`))]),Wp=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Up(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Hp({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const Vp=As("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>ut({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return Vr({theme:e},Jr({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Bp.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Jr({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Hp({breakpoints:e.breakpoints.values,values:t})),o=Vr({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${Up(i)}`,[`& > .${Bp.item}`]:{paddingTop:Up(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${Bp.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Jr({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Hp({breakpoints:e.breakpoints.values,values:t})),o=Vr({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${Up(i)})`,marginLeft:`-${Up(i)}`,[`& > .${Bp.item}`]:{paddingLeft:Up(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Bp.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Jr({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return r;const l=Math.round(n/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${l} + ${Up(n)})`;c={flexBasis:e,maxWidth:e}}}i=ut({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r}),{})}));const Gp=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=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 n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(i,l));const u=[];l.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return sa({root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},Fp,t)},Kp=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiGrid"}),{breakpoints:r}=xs(),o=ri(n),{className:i,columns:a,columnSpacing:s,component:l="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=dt(o,Wp),b=p||f,v=s||f,y=w.useContext(jp),S=c?a||12:y,x={},k=ut({},g);r.keys.forEach((e=>{null!=g[e]&&(x[e]=g[e],delete k[e])}));const C=ut({},o,{columns:S,container:c,direction:u,item:d,rowSpacing:b,columnSpacing:v,wrap:h,zeroMinWidth:m,spacing:f},x,{breakpoints:r.keys}),E=Gp(C);return Rr.jsx(jp.Provider,{value:S,children:Rr.jsx(Vp,ut({ownerState:C,className:li(E.root,i),as:l,ref:t},k))})})),Jp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Zp(e){return`scale(${e}, ${e**2})`}const Xp={entering:{opacity:1,transform:Zp(1)},entered:{opacity:1,transform:"none"}},Qp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Yp=w.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Ys}=e,g=dt(e,Jp),b=Ji(),v=w.useRef(),y=xs(),S=w.useRef(null),x=Hi(S,ga(o),t),k=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},C=k(c),E=k(((e,t)=>{tc(e);const{duration:n,delay:r,easing:o}=nc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Qp?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),R=k(l),L=k(p),O=k((e=>{const{duration:t,delay:n,easing:r}=nc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Qp?o:.666*o,delay:Qp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Zp(.75),u&&u(e)})),T=k(d);return Rr.jsx(m,ut({appear:r,in:a,nodeRef:S,onEnter:E,onEntered:R,onEntering:C,onExit:O,onExited:T,onExiting:L,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>w.cloneElement(o,ut({style:ut({opacity:0,transform:Zp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Xp[e],f,o.props.style),ref:x},t))}))}));function ef(e){return di("MuiIcon",e)}Yp.muiSupportAuto=!0,pi("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tf=["baseClassName","className","color","component","fontSize"],nf=As("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Zr(n.color)}`],t[`fontSize${Zr(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),rf=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:s="medium"}=n,l=dt(n,tf),c=ut({},n,{baseClassName:r,color:i,component:a,fontSize:s}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return sa({root:["root","inherit"!==t&&`color${Zr(t)}`,`fontSize${Zr(n)}`]},ef,r)})(c);return Rr.jsx(nf,ut({as:a,className:li(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));function of(e){return di("MuiInputAdornment",e)}rf.muiName="Icon";const af=pi("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var sf;const lf=["children","className","component","disablePointerEvents","disableTypography","position","variant"],cf=As("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Zr(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>ut({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${af.positionStart}&:not(.${af.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),uf=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,u=dt(n,lf),d=od()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=ut({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return sa({root:["root",n&&"disablePointerEvents",o&&`position${Zr(o)}`,a,r&&"hiddenLabel",i&&`size${Zr(i)}`]},of,t)})(f);return Rr.jsx(rd.Provider,{value:null,children:Rr.jsx(cf,ut({as:i,ownerState:f,className:li(h.root,o),ref:t},u,{children:"string"!=typeof r||s?Rr.jsxs(w.Fragment,{children:["start"===l?sf||(sf=Rr.jsx("span",{className:"notranslate",children:"​"})):null,r]}):Rr.jsx(bc,{color:"text.secondary",children:r})}))})})),df=w.createContext({});function pf(e){return di("MuiList",e)}pi("MuiList",["root","padding","dense","subheader"]);const ff=["children","className","component","dense","disablePadding","subheader"],hf=As("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>ut({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),mf=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=dt(n,ff),u=w.useMemo((()=>({dense:a})),[a]),d=ut({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return sa({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},pf,t)})(d);return Rr.jsx(df.Provider,{value:u,children:Rr.jsxs(hf,ut({as:i,className:li(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));function gf(e){return di("MuiListItem",e)}const bf=pi("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),vf=pi("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function yf(e){return di("MuiListItemSecondaryAction",e)}pi("MuiListItemSecondaryAction",["root","disableGutters"]);const Sf=["className"],wf=As("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>ut({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),xf=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=dt(n,Sf),i=ut({},n,{disableGutters:w.useContext(df).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return sa({root:["root",t&&"disableGutters"]},yf,n)})(i);return Rr.jsx(wf,ut({className:li(a.root,r),ownerState:i,ref:t},o))}));xf.muiName="ListItemSecondaryAction";const kf=["className"],Cf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Ef=As("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>ut({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&ut({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${vf.root}`]:{paddingRight:48}},{[`&.${bf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Rf=As("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Lf=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:y,selected:S=!1,slotProps:x={},slots:k={}}=n,C=dt(n.ContainerProps,kf),E=dt(n,Cf),R=w.useContext(df),L=w.useMemo((()=>({dense:f||R.dense||!1,alignItems:r,disableGutters:m})),[r,R.dense,f,m]),O=w.useRef(null);_i((()=>{o&&O.current&&O.current.focus()}),[o]);const T=w.Children.toArray(a),P=T.length&&Di(T[T.length-1],["ListItemSecondaryAction"]),I=ut({},n,{alignItems:r,autoFocus:o,button:i,dense:L.dense,disabled:h,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:P,selected:S}),_=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return sa({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},gf,r)})(I),M=Hi(O,t),N=k.root||c.Root||Ef,q=x.root||u.root||{},D=ut({className:li(_.root,q.className,s),disabled:h},E);let A=l||"li";return i&&(D.component=l||"div",D.focusVisibleClassName=li(bf.focusVisible,v),A=Cl),P?(A=D.component||l?A:"div","li"===d&&("li"===A?A="div":"li"===D.component&&(D.component="div")),Rr.jsx(df.Provider,{value:L,children:Rr.jsxs(Rf,ut({as:d,className:li(_.container,p),ref:M,ownerState:I},C,{children:[Rr.jsx(N,ut({},q,!la(N)&&{as:A,ownerState:ut({},I,q.ownerState)},D,{children:T})),T.pop()]}))})):Rr.jsx(df.Provider,{value:L,children:Rr.jsxs(N,ut({},q,{as:A,ref:M},!la(N)&&{ownerState:ut({},I,q.ownerState)},D,{children:[T,y&&Rr.jsx(xf,{children:y})]}))})}));function Of(e){return di("MuiListItemIcon",e)}const Tf=pi("MuiListItemIcon",["root","alignItemsFlexStart"]),Pf=["className"],If=As("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>ut({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),_f=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=dt(n,Pf),i=ut({},n,{alignItems:w.useContext(df).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return sa({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Of,n)})(i);return Rr.jsx(If,ut({className:li(a.root,r),ownerState:i,ref:t},o))})),Mf=pi("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Nf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function qf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Df(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Af(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function zf(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Af(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const jf=w.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=dt(e,Nf),p=w.useRef(null),f=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});_i((()=>{r&&p.current.focus()}),[r]),w.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${ia(Ai(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Hi(p,t);let m=-1;w.Children.forEach(i,((e,t)=>{w.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=w.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),w.cloneElement(e,t)}return e}));return Rr.jsx(mf,ut({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Ai(t).activeElement;if("ArrowDown"===n)e.preventDefault(),zf(t,r,l,s,qf);else if("ArrowUp"===n)e.preventDefault(),zf(t,r,l,s,Df);else if("Home"===n)e.preventDefault(),zf(t,null,l,s,qf);else if("End"===n)e.preventDefault(),zf(t,null,l,s,Df);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&Af(r,o);o.previousKeyMatched&&(l||zf(t,r,!1,s,qf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function Ff(e){return di("MuiPopover",e)}pi("MuiPopover",["root","paper"]);const $f=["onEntering"],Bf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Wf=["slotProps"];function Uf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Hf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Vf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Gf(e){return"function"==typeof e?e():e}const Kf=As(Ep,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jf=As(ac,{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}),Zf=w.forwardRef((function(e,t){var n,r,o;const i=$s({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:x=Yp,transitionDuration:k="auto",TransitionProps:{onEntering:C}={},disableScrollLock:E=!1}=i,R=dt(i.TransitionProps,$f),L=dt(i,Bf),O=null!=(n=null==y?void 0:y.paper)?n:b,T=w.useRef(),P=Hi(T,O.ref),I=ut({},i,{anchorOrigin:l,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:O,transformOrigin:S,TransitionComponent:x,transitionDuration:k,TransitionProps:R}),_=(e=>{const{classes:t}=e;return sa({root:["root"],paper:["paper"]},Ff,t)})(I),M=w.useCallback((()=>{if("anchorPosition"===u)return c;const e=Gf(s),t=(e&&1===e.nodeType?e:Ai(T.current).body).getBoundingClientRect();return{top:t.top+Uf(t,l.vertical),left:t.left+Hf(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),N=w.useCallback((e=>({vertical:Uf(e,S.vertical),horizontal:Hf(e,S.horizontal)})),[S.horizontal,S.vertical]),q=w.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=N(t);if("none"===u)return{top:null,left:null,transformOrigin:Vf(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=zi(Gf(s)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Vf(n)}}),[s,u,M,N,m]),[D,A]=w.useState(g),z=w.useCallback((()=>{const e=T.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[q]);w.useEffect((()=>(E&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[s,E,z]);w.useEffect((()=>{g&&z()})),w.useImperativeHandle(a,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),w.useEffect((()=>{if(!g)return;const e=qi((()=>{z()})),t=zi(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,z]);let j=k;"auto"!==k||x.muiSupportAuto||(j=void 0);const F=f||(s?Ai(Gf(s)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:Kf,B=null!=(o=null==v?void 0:v.paper)?o:Jf,W=ma({elementType:B,externalSlotProps:ut({},O,{style:D?O.style:ut({},O.style,{opacity:0})}),additionalProps:{elevation:h,ref:P},ownerState:I,className:li(_.paper,null==O?void 0:O.className)}),U=ma({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:I,className:li(_.root,p)}),{slotProps:H}=U,V=dt(U,Wf);return Rr.jsx($,ut({},V,!la($)&&{slotProps:H,disableScrollLock:E},{children:Rr.jsx(x,ut({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),z()},onExited:()=>{A(!1)},timeout:j},R,{children:Rr.jsx(B,ut({},W,{children:d}))}))}))}));function Xf(e){return di("MuiMenuItem",e)}const Qf=pi("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Yf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],eh=As(Cl,{shouldForwardProp:e=>Ds(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>ut({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Lp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Lp.inset}`]:{marginLeft:52},[`& .${Mf.root}`]:{marginTop:0,marginBottom:0},[`& .${Mf.inset}`]:{paddingLeft:36},[`& .${Tf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ut({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Tf.root} svg`]:{fontSize:"1.25rem"}})))),th=w.forwardRef((function(e,t){const n=$s({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=n,p=dt(n,Yf),f=w.useContext(df),h=w.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=w.useRef(null);_i((()=>{r&&m.current&&m.current.focus()}),[r]);const g=ut({},n,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return ut({},a,sa({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Xf,a))})(n),v=Hi(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),Rr.jsx(df.Provider,{value:h,children:Rr.jsx(eh,ut({ref:v,role:c,tabIndex:y,component:o,focusVisibleClassName:li(b.focusVisible,l),className:li(b.root,d)},p,{ownerState:g,classes:b}))})}));var nh;const rh=["children","classes","className","label","notched"],oh=As("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ds})({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%"}),ih=As("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ds})((({ownerState:e,theme:t})=>ut({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&ut({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const ah=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],sh=As(pd,{shouldForwardProp:e=>Ds(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:ud})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ut({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${bd.focused} .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${bd.error} .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bd.disabled} .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ut({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),lh=As((function(e){const{className:t,label:n,notched:r}=e,o=dt(e,rh),i=null!=n&&""!==n,a=ut({},e,{notched:r,withLabel:i});return Rr.jsx(oh,ut({"aria-hidden":!0,className:t,ownerState:a},o,{children:Rr.jsx(ih,{ownerState:a,children:i?Rr.jsx("span",{children:n}):nh||(nh=Rr.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),ch=As(fd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:dd})((({theme:e,ownerState:t})=>ut({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),uh=w.forwardRef((function(e,t){var n,r,o,i,a;const s=$s({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=dt(s,ah),b=(e=>{const{classes:t}=e;return ut({},t,sa({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gd,t))})(s),v=od(),y=nd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ut({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),x=null!=(n=null!=(r=h.root)?r:l.Root)?n:sh,k=null!=(o=null!=(i=h.input)?i:l.Input)?o:ch;return Rr.jsx(md,ut({slots:{root:x,input:k},renderSuffix:e=>Rr.jsx(lh,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Rr.jsxs(w.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:ut({},b,{notchedOutline:null})}))}));uh.muiName="Input";var dh=Ql(Rr.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"),ph=Ql(Rr.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");const fh=As("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ds})({position:"relative",display:"flex"}),hh=As(dh,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),mh=As(ph,{name:"MuiRadioButtonIcon"})((({theme:e,ownerState:t})=>ut({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function gh(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=ut({},e,{checked:t});return Rr.jsxs(fh,{className:n.root,ownerState:o,children:[Rr.jsx(hh,{fontSize:r,className:n.background,ownerState:o}),Rr.jsx(mh,{fontSize:r,className:n.dot,ownerState:o})]})}const bh=w.createContext(void 0);function vh(e){return di("MuiRadio",e)}const yh=pi("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Sh=["checked","checkedIcon","color","icon","name","onChange","size","className"],wh=As(zd,{shouldForwardProp:e=>Ds(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Zr(n.size)}`],t[`color${Zr(n.color)}`]]}})((({theme:e,ownerState:t})=>ut({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Va.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${yh.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${yh.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const xh=Rr.jsx(gh,{checked:!0}),kh=Rr.jsx(gh,{}),Ch=w.forwardRef((function(e,t){var n,r;const o=$s({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:a=xh,color:s="primary",icon:l=kh,name:c,onChange:u,size:d="medium",className:p}=o,f=dt(o,Sh),h=ut({},o,{color:s,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return ut({},t,sa({root:["root",`color${Zr(n)}`,"medium"!==r&&`size${Zr(r)}`]},vh,t))})(h),g=w.useContext(bh);let b=i;const v=Ni(u,g&&g.onChange);let y=c;return g&&(void 0===b&&(b=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===y&&(y=g.name)),Rr.jsx(wh,ut({type:"radio",icon:w.cloneElement(l,{fontSize:null!=(n=kh.props.fontSize)?n:d}),checkedIcon:w.cloneElement(a,{fontSize:null!=(r=xh.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:b,onChange:v,ref:t,className:li(m.root,p)},f))}));function Eh(e){return di("MuiTooltip",e)}const Rh=pi("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Lh=["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 Oh=As(Zu,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>ut({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Rh.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Rh.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Rh.arrow}`]:ut({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Rh.arrow}`]:ut({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Th=As("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Zr(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return ut({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Va.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${Rh.popper}[data-popper-placement*="left"] &`]:ut({transformOrigin:"right center"},t.isRtl?ut({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ut({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Rh.popper}[data-popper-placement*="right"] &`]:ut({transformOrigin:"left center"},t.isRtl?ut({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ut({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Rh.popper}[data-popper-placement*="top"] &`]:ut({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Rh.popper}[data-popper-placement*="bottom"] &`]:ut({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Ph=As("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Va.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ih=!1;const _h=new Ki;let Mh={x:0,y:0};function Nh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const qh=w.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,v,y,S;const x=$s({props:e,name:"MuiTooltip"}),{arrow:k=!1,children:C,components:E={},componentsProps:R={},describeChild:L=!1,disableFocusListener:O=!1,disableHoverListener:T=!1,disableInteractive:P=!1,disableTouchListener:I=!1,enterDelay:_=100,enterNextDelay:M=0,enterTouchDelay:N=700,followCursor:q=!1,id:D,leaveDelay:A=0,leaveTouchDelay:z=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:U={},slotProps:H={},slots:V={},title:G,TransitionComponent:K=Yp,TransitionProps:J}=x,Z=dt(x,Lh),X=w.isValidElement(C)?C:Rr.jsx("span",{children:C}),Q=xs(),Y=(()=>{const e=w.useContext(xa);return null!=e&&e})(),[ee,te]=w.useState(),[ne,re]=w.useState(null),oe=w.useRef(!1),ie=P||q,ae=Ji(),se=Ji(),le=Ji(),ce=Ji(),[ue,de]=Wi({controlled:$,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=Bi(D),he=w.useRef(),me=Ui((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));w.useEffect((()=>me),[me]);const ge=e=>{_h.clear(),Ih=!0,de(!0),F&&!pe&&F(e)},be=Ui((e=>{_h.start(800+A,(()=>{Ih=!1})),de(!1),j&&pe&&j(e),ae.start(Q.transitions.duration.shortest,(()=>{oe.current=!1}))})),ve=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),_||Ih&&M?se.start(Ih?M:_,(()=>{ge(e)})):ge(e))},ye=e=>{se.clear(),le.start(A,(()=>{be(e)}))},{isFocusVisibleRef:Se,onBlur:we,onFocus:xe,ref:ke}=oa(),[,Ce]=w.useState(!1),Ee=e=>{we(e),!1===Se.current&&(Ce(!1),ye(e))},Re=e=>{ee||te(e.currentTarget),xe(e),!0===Se.current&&(Ce(!0),ve(e))},Le=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Oe=e=>{Le(e),le.clear(),ae.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(N,(()=>{document.body.style.WebkitUserSelect=he.current,ve(e)}))},Te=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),le.start(z,(()=>{be(e)}))};w.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||be(e)}}),[be,pe]);const Pe=Hi(ga(X),ke,te,t);G||0===G||(pe=!1);const Ie=w.useRef(),_e={},Me="string"==typeof G;L?(_e.title=pe||!Me||T?null:G,_e["aria-describedby"]=pe?fe:null):(_e["aria-label"]=Me?G:null,_e["aria-labelledby"]=pe&&!Me?fe:null);const Ne=ut({},_e,Z,X.props,{className:li(Z.className,X.props.className),onTouchStart:Le,ref:Pe},q?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),Mh={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()}}:{}),qe={};I||(Ne.onTouchStart=Oe,Ne.onTouchEnd=Te),T||(Ne.onMouseOver=Nh(ve,Ne.onMouseOver),Ne.onMouseLeave=Nh(ye,Ne.onMouseLeave),ie||(qe.onMouseOver=ve,qe.onMouseLeave=ye)),O||(Ne.onFocus=Nh(Re,Ne.onFocus),Ne.onBlur=Nh(Ee,Ne.onBlur),ie||(qe.onFocus=Re,qe.onBlur=Ee));const De=w.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=U.popperOptions)&&e.modifiers&&(t=t.concat(U.popperOptions.modifiers)),ut({},U.popperOptions,{modifiers:t})}),[ne,U]),Ae=ut({},x,{isRtl:Y,arrow:k,disableInteractive:ie,placement:B,PopperComponentProp:W,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return sa({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Zr(i.split("-")[0])}`],arrow:["arrow"]},Eh,t)})(Ae),je=null!=(n=null!=(r=V.popper)?r:E.Popper)?n:Oh,Fe=null!=(o=null!=(i=null!=(a=V.transition)?a:E.Transition)?i:K)?o:Yp,$e=null!=(s=null!=(l=V.tooltip)?l:E.Tooltip)?s:Th,Be=null!=(c=null!=(u=V.arrow)?u:E.Arrow)?c:Ph,We=ca(je,ut({},U,null!=(d=H.popper)?d:R.popper,{className:li(ze.popper,null==U?void 0:U.className,null==(p=null!=(f=H.popper)?f:R.popper)?void 0:p.className)}),Ae),Ue=ca(Fe,ut({},J,null!=(h=H.transition)?h:R.transition),Ae),He=ca($e,ut({},null!=(m=H.tooltip)?m:R.tooltip,{className:li(ze.tooltip,null==(g=null!=(b=H.tooltip)?b:R.tooltip)?void 0:g.className)}),Ae),Ve=ca(Be,ut({},null!=(v=H.arrow)?v:R.arrow,{className:li(ze.arrow,null==(y=null!=(S=H.arrow)?S:R.arrow)?void 0:y.className)}),Ae);return Rr.jsxs(w.Fragment,{children:[w.cloneElement(X,Ne),Rr.jsx(je,ut({as:null!=W?W:Zu,placement:B,anchorEl:q?{getBoundingClientRect:()=>({top:Mh.y,left:Mh.x,right:Mh.x,bottom:Mh.y,width:0,height:0})}:ee,popperRef:Ie,open:!!ee&&pe,id:fe,transition:!0},qe,We,{popperOptions:De,children:({TransitionProps:e})=>Rr.jsx(Fe,ut({timeout:Q.transitions.duration.shorter},e,Ue,{children:Rr.jsxs($e,ut({},He,{children:[G,k?Rr.jsx(Be,ut({},Ve,{ref:re})):null]}))}))}))]})}));function Dh(){const{useModelStore:e}=w.useContext(Bl).modelStore;return e()}function Ah(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=Dh(),[o]=function(){const{useRpcRequestSessionModelStore:e}=w.useContext(Bl).modelStore;return e()}(),[i,a]=w.useState();for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];return w.useEffect((()=>{if(!t)return;(async()=>{let i=o.get(n);i||(i=t.createSessionObject(e),o.set(n,i));const s=await i;r.set(n,s),a(s)})()}),[t,...l]),[i]}const zh={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function jh(e){return Ah(zh,e)}const Fh=e=>new Promise((t=>{setTimeout(t,e)})),$h=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=d(d({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:d({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=d(d({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let a=n.get(r);return a||(a={}),a[o]=i,n.set(r,a),i};function Bh(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=w.useContext(Bl).modelStore;return e()}(),[o,i]=w.useReducer($h,n?r.get(n):null),[a]=function(){const{useModelChangedStore:e}=w.useContext(Bl).modelStore;return e()}(),[s]=function(){const{useRpcRequestStore:e}=w.useContext(Bl).modelStore;return e()}();let l;n&&(l=s.get(n),l||(l={},s.set(n,l)));const c=async o=>{let a=l[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},l[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await Fh(0);const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(l[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{l[t].rpcRetry=!0,c()}};return w.useEffect((()=>{e&&c()}),[e,a.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function Wh(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=Bh(e,"getLayout");return null!=e&&e.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:r,canRetry:o},i]:[t,{validating:n,canCancel:r,canRetry:o},i]}function Uh(e){return Bh(e,"getAppLayout")}function Hh(){const[e,t]=w.useState(),[n,r]=w.useState(),o=w.useCallback((e=>{e&&t(e)}),[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return w.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}}),[e]),[o,n,e]}function Vh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Gh(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=d({fontSize:Vh(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return x.createElement("i",{style:i},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return x.createElement(n,c({key:t},r))}))))}var Kh=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var Jh=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const Zh=e=>d(d({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var Xh=e=>Gh(Zh(e));var Qh=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Yh=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},em=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Yh(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},Yh(r,n)}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),Qh(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,s=n.threshold,l=void 0===s?15:s,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],s=null,l=null,c=o;c<=i;c++)t(c)?null!==l&&(a.push(s,l),s=l=null):(l=c,null===s&&(s=c));if(null!==l){for(var u=Math.min(Math.max(l,s+r-1),n-1),d=l+1;d<=u&&!t(d);d++)l=d;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(w.PureComponent);const tm=["S","XS"],nm=e=>e.reduce(((e,t)=>e.concat(t)));function rm(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!tm.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return nm(t)}async function om(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}const im="RowColumn",am={row:"".concat(im,"-row"),rowBorderBottom:"".concat(im,"-rowBorderBottom"),column:"".concat(im,"-column"),fieldRoot:"".concat(im,"-fieldRoot"),cell:"".concat(im,"-cell"),labelText:"".concat(im,"-labelText"),labelDense:"".concat(im,"-labelDense"),highlighted:"".concat(im,"-highlighted"),checkboxLabel:"".concat(im,"-checkboxLabel"),icon:"".concat(im,"-icon"),S:"".concat(im,"-S"),XS:"".concat(im,"-XS"),A:"".concat(im,"-A"),X:"".concat(im,"-X"),frequencyCount:"".concat(im,"-frequencyCount"),barContainer:"".concat(im,"-barContainer"),bar:"".concat(im,"-bar"),barSelected:"".concat(im,"-barSelected"),barWithCheckbox:"".concat(im,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(im,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(im,"-excludedTextWithCheckbox")},sm=".".concat(am.fieldRoot),lm=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function cm(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:i=document,loaderRef:a}=e;const s=w.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});w.useEffect((()=>{var e;if(null===(e=a.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=a.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=a.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const l=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),om({selections:r,elemNumbers:s.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:s.current.toggle}))},c=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return nm(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=s.current;if(t===e)return;const r=c(s.current.startElemNumber,e);n.updateItems(r,!0,s.current.elemNumbers)},d=w.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&lm(e.nativeEvent);s.current.elemNumbers=[t],s.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),s.current.active=!1,l()}),[]),p=w.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&lm(e);s.current.isRange=!1,s.current.startElemNumber=t,s.current.elemNumbers=[t],s.current.toggle=r,s.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(s.current.active=!1,l()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),f=w.useCallback((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}l()}}),[]),h=w.useCallback((e=>{0===e.button&&s.current.active&&(s.current.active=!1,l())}),[]),m=w.useCallback((e=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,n.isSelected(s.current.startElemNumber)||(n.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=w.useCallback((e=>{var t,r;if(s.current.active||s.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void l();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(sm))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(sm))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void l();s.current.active=!0;c(o,i).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[o,i]}),[]),b=w.useCallback((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,u(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,l()}),[]);w.useEffect((()=>(i.addEventListener("mouseup",h),()=>{i.removeEventListener("mouseup",h)})),[h]),w.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const v={};return o?Object.assign(v,{onChange:d}):Object.assign(v,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:b}),{interactionEvents:v,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const a=!n.isSingleSelect&&lm(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const s=[];return n.updateItems(t,o,s),n.setSelectableValuesUpdating(),om({selections:r,elemNumbers:o?s:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const um=e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var dm=e=>Gh(um(e));const pm=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,fm=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||pm(t))&&n};const hm=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const i=[t?am.column:am.row];n||i.push(am.rowBorderBottom);const a=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?am.XS:am.S;break;case"S":case"L":t=am.S;break;case"A":t=!!r&&am.A;break;case"X":case"XL":t=!!r&&am.X;break;default:t=!1}return t}({cell:r,showGray:o});return a&&i.push(a),i},mm=9,gm=4,bm=7,vm=12+2*(bm+1),ym=80,Sm=10,wm=150,xm=56,km=20,Cm="-",Em=32,Rm=29,Lm=20,Om=4,Tm=e=>e.filter((e=>!!e)).join(" ").trim(),Pm=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")},Im=e=>e||Cm,_m=["backgroundColor"],Mm=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},Nm=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},qm=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(am.labelText)]:{color:r.selections.selected}}:{};const i=r.selections,a=i[o],s=i["".concat(o,"Contrast")];return{background:a,color:s,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(am.labelText)]:{color:s},["& .".concat(am.icon)]:{color:s}}},Dm={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Am=As("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:a,sizes:s,frequencyMode:l,freqHitsValue:c,styles:u}=e;const f=u.content,{backgroundColor:h}=f,m=p(f,_m),g=qm({theme:t,styles:u,checkboxes:n,selectionState:"selected"}),b=qm({theme:t,styles:u,checkboxes:n,selectionState:"excluded"}),v={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},y={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(am.row)]:d({flexWrap:"nowrap"},u.content),["& .".concat(am.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(am.column)]:d({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(am.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(mm,"px"),paddingRight:0},["& .".concat(am.labelText)]:d(d({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},Dm),m),["& .".concat(am.labelDense)]:{lineHeight:"18px"},["& .".concat(am.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(am.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":d(d({},Dm),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(am.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:m.color},["& .".concat(am.S)]:d(d({},g),{},{border:r?"none":void 0}),["& .".concat(am.XS)]:d(d({},qm({theme:t,styles:u,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(am.A)]:d(d({},qm({theme:t,styles:u,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(am.X)]:d(d({},b),{},{border:r?"none":void 0}),["& .".concat(am.X,", & .").concat(am.XS)]:{border:r?"none":void 0,["& .".concat(am.barSelected," .bar-filled")]:d({},v)},["& .".concat(am.frequencyCount)]:d(d({zIndex:3,justifyContent:"flex-end"},Dm),{},{flex:"0 0 ".concat(Mm({sizes:s,frequencyMode:l,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==l&&c?s.freqMinWidth:"max-content",maxWidth:Nm({sizes:s,frequencyMode:l,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(am.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(am.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":d({},v)},["& .".concat(am.barSelected)]:{"& .bar-filled":d({},y)},["& .".concat(am.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(am.barSelectedWithCheckbox)]:{"& .bar-filled":d(d({},y),{},{backgroundColor:u.selections.selected||"#BFE5D0",borderColor:u.selections.selected})},["& .".concat(am.excludedTextWithCheckbox)]:{color:u.content.color,fontStyle:"italic"}}}));var zm=x.memo(Am);const jm="ListBoxCheckbox",Fm={cbIcon:"".concat(jm,"-cbIcon"),cbIconChecked:"".concat(jm,"-cbIconChecked"),cbIconExcluded:"".concat(jm,"-cbIconExcluded"),cbIconAlternative:"".concat(jm,"-cbIconAlternative"),checkbox:"".concat(jm,"-checkbox"),dense:"".concat(jm,"-dense")},$m=As(Jd,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(Fm.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(Fm.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(Fm.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(Fm.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(Fm.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Fm.dense)]:{padding:"4px 8px"}}})),Bm=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x.createElement("span",{className:e.cbIcon},n&&x.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function Wm(e){let{onChange:t,checked:n,label:r,dense:o,excluded:i,styles:a,showGray:s=!0,dataN:l}=e;return x.createElement($m,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[Fm.checkbox,o&&Fm.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:Bm(Fm,s,i),checkedIcon:x.createElement("span",{className:Fm.cbIconChecked}),styles:a})}const Um={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Hm=As(Ch,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Um.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Vm(e){let{onChange:t,checked:n,label:r,dense:o,dataN:i,styles:a}=e;return x.createElement(Hm,{checked:n,onChange:t,value:r,name:r,className:Um.radioButton,inputProps:{"data-n":i},disableRipple:!0,size:o?"small":"medium",dense:o,styles:a})}function Gm(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:i,valueTextAlign:a}=e;return x.createElement(bc,{component:"span",variant:"body2",className:Tm([am.labelText,n&&am.labelDense,r&&fm({cell:i,checkboxes:o})&&am.excludedTextWithCheckbox]),align:a,dir:"auto"},x.createElement("span",null,t))}function Km(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:s}=e;return"string"==typeof t?x.createElement(Gm,{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:s}):t}function Jm(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:s,showGray:l,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;const f=x.createElement(Wm,{onChange:t,label:n,checked:o,dense:i,excluded:pm(a),isGridCol:s,showGray:l,dataN:r,styles:p}),h=x.createElement(Vm,{onChange:t,label:n,checked:o,dense:i,dataN:r,styles:p});return x.createElement(zp,{control:c?h:f,className:am.checkboxLabel,label:x.createElement(Km,{label:n,dense:i,showGray:l,checkboxes:u,cell:a,valueTextAlign:d}),key:r})}function Zm(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const i=t.map(((e,t)=>{let[n,r]=e;return x.createElement("span",{id:t,className:r?am.highlighted:""},n)}));return x.createElement(Gm,{label:i,dense:n,showGray:r,checkboxes:o})}function Xm(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:i,qElemNumber:a,isSelected:s,cell:l,isGridCol:c,isSingleSelect:u,valueTextAlign:d,styles:p}=e;const f=x.createElement(Zm,{labels:n,dense:o,showGray:i,checkboxes:r});return r?x.createElement(Jm,{onChange:t,label:f,qElemNumber:a,isSelected:s,dense:o,cell:l,isGridCol:c,showGray:i,isSingleSelect:u,checkboxes:r,valueTextAlign:d,styles:p}):f}var Qm=x.memo((function(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:s,showGray:l,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;return u?x.createElement(Jm,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:s,showGray:l,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}):x.createElement(Gm,{label:n,dense:i,showGray:!0,checkboxes:u,cell:a,valueTextAlign:d})}));function Ym(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:i}=e;if(!(t&&n&&Im(t)!==Cm))return;const a=Pm({qFrequency:t,frequencyMax:i});return x.createElement(Md,{className:Tm([am.bar,r&&am.barWithCheckbox,o&&(r?am.barSelectedWithCheckbox:am.barSelected)])},x.createElement(Md,{className:"bar-filled",width:a}))}function eg(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const i=Im(null==t?void 0:t.qFrequency);return x.createElement(Kp,{item:!0,style:{display:"flex",alignItems:"center"},className:am.frequencyCount,"aria-label":i,title:i},x.createElement(bc,{noWrap:!0,color:"inherit",variant:"body2",className:Tm([r&&am.labelDense,am.labelText,o&&fm({cell:t,checkboxes:n})&&am.excludedTextWithCheckbox])},i))}function tg(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const ng=As(Kp,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:a}=e;const s="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(am.fieldRoot)]:d(d({},tg({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[s]:o?"8px":void 0})}}));const rg=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===rg.ARROW_UP||e===rg.ARROW_DOWN||e===rg.ARROW_LEFT||e===rg.ARROW_RIGHT});function og(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function ig(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function ag(e){let{containerRef:t,enabled:n}=e;const[r,o]=w.useState(!1),i={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const i=ig(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),og(t.current),e&&i&&(i.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),i.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),i=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),s=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||r||i||a||l||s;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return i}const sg=e=>+e.getAttribute("data-n"),lg=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},cg=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),og(e),o},ug=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},dg=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=ig(i),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||s)t.blur(!0);else{og(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},pg=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:s}=e;const l=e=>{let t;return"row"===i?(t=s%o,e<t?r:r-1):(t=s%r,e<o-1?r:t)};let c=t,u=n;if(a===rg.ARROW_DOWN)if(t>=l(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=l(n-1)-1,u=n-1}else c=t-1;if("row"===i)return c*o+u;const d=s%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};const fg={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function hg(e){var t,n;let{index:r,rowIndex:o,columnIndex:i,style:a,data:s}=e;const{onChange:l,onClick:c,onMouseDown:u,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:b,column:v=!1,checkboxes:y=!1,textAlign:S,direction:k,layoutOptions:C={},freqIsAllowed:E,isSingleSelect:R,actions:L,frequencyMax:O="",histogram:T=!1,keyboard:P,showGray:I=!0,showTick:_=!0,columnCount:M=1,rowCount:N=1,dataOffset:q,deducedFrequencyMode:D,focusListItems:A,listCount:z,sizes:j,translator:F,showSearch:$,isModal:B,contentFontStyle:W,styles:U,fillHeight:H}=s,{dense:V=!1,dataLayout:G="singleColumn",layoutOrder:K}=C,{itemPadding:J}=j;let Z,X;const Q={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof i){"row"===K?(Z=o*M+i,Q.max=N,Q.currentIndex=o):(Z=i*N+o,Q.max=M,Q.currentIndex=i);const e=0;X=d(d({},a),{},{height:H?"100%":a.height,left:e+(0===i?a.left:Number(a.left)+i*e),top:0===o?a.top:Number(a.top)+o*e})}else Z=r,Q.max=z,Q.currentIndex=r,X=d({},a);Z+=q;const[Y,ee]=w.useState(null);w.useEffect((()=>{null!==Y&&(0===Q.currentIndex&&A.first&&(Y.focus(),A.setFirst(!1)),Q.currentIndex===Q.max-1&&A.last&&(Y.focus(),A.setLast(!1)))}),[Y,A.first,A.last]);const te=w.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,focusListItems:s,keyboard:l,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===rg.ARROW_LEFT||e===rg.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof f){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=pg({rowIndex:p,columnIndex:f,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:v=!1,metaKey:y=!1}=p;switch(f){case rg.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==l||!l.enabled){if(!n)return;return l.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){lg(t)||ug(t)||(n?l.focusSelection():dg(e,l));break}l.focusSelection()||ug(t)||lg(t)||(d.blur(),dg(e,l));break}case rg.SHIFT:b(!0);break;case rg.SPACE:t([sg(d)],!1,e);break;case rg.ARROW_DOWN:case rg.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([sg(d)],!0),b(!1)),t([sg(u)],!0));break;case rg.ARROW_UP:case rg.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([sg(d)],!0),b(!1)),t([sg(u)],!0));break;case rg.ENTER:if(o(),void 0===c)return;break;case rg.ESCAPE:if(void 0===c)return void i();if(!c())return;i();break;case rg.HOME:if(s.setFirst(!0),v){null==a||a("overflowStart");break}null==a||a("start");break;case rg.END:if(s.setLast(!0),v){null==a||a("overflowEnd");break}null==a||a("end");break;case rg.A:if(v||y){n();break}return;case rg.F:if(v||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(d(d({},L),{},{focusListItems:A,keyboard:P,isModal:B,rowCount:N,columnCount:M,rowIndex:o,columnIndex:i,layoutOrder:K})),[L,null==P?void 0:P.innerTabStops,N,M,o,i,K]),ne=w.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:Z})),[g,Z]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=w.useMemo((()=>hm({column:v,histogram:T,cell:ne,showGray:I})),[null==ne?void 0:ne.qState,T,V]),ie=w.useCallback((e=>{e.preventDefault()}),[y]),ae=w.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:k,cell:ne,textAlign:S})),[k,ne,S]);if(!ne)return null;const se="grid"===G&&"column"===K,le=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,s=t[o].qCharPos+t[o].qCharCount;return a&&s<e.length&&n.push([e.slice(s),!1]),n}),[]);return n}(le,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===k,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ae,textAlign:ae},fe=0===r,he=re&&b,me=!y&&re&&!b,ge=!y&&_,be=y||!_,ve=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=fg[r],c=t.get(l),u=[];if(o){const e=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:F,label:le,qState:ne.qState,currentIndex:Q.currentIndex,maxIndex:Q.max,showSearch:$}),ye=!de&&"right"===ae||de&&"left"===ae;return x.createElement(zm,{className:am.barContainer,checkboxes:y,style:X,styles:U,isGridCol:se,isGridMode:"grid"===G,dense:V,direction:k,sizes:j,frequencyMode:D,freqHitsValue:ye,contentFontStyle:W,"data-testid":"listbox.item"},x.createElement(ng,{role:"row","aria-label":ve,"aria-selected":re,"aria-setsize":Q.max,"aria-rowindex":Q.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:be,layoutOrder:K,itemPadding:J,gap:0,className:Tm(["value",...oe]),classes:{root:am.fieldRoot},onClick:c,onMouseDown:u,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ie,tabIndex:fe&&P.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:k,fillHeight:H},(null==ne?void 0:ne.qFrequency)&&x.createElement(Ym,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:T,checkboxes:y,isSelected:re,frequencyMax:O}),x.createElement(Kp,{item:!0,style:pe,className:Tm([am.cell,am.selectedCell]),title:"".concat(le)},ce?x.createElement(Xm,{onChange:l,labels:ce,checkboxes:y,dense:V,showGray:I,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:se,isSingleSelect:R,valueTextAlign:ae,styles:U}):x.createElement(Qm,{onChange:l,label:le,qElemNumber:ne.qElemNumber,isSelected:re,dense:V,cell:ne,isGridCol:se,showGray:I,isSingleSelect:R,checkboxes:y,valueTextAlign:ae,styles:U})),E&&x.createElement(eg,{cell:ne,checkboxes:y,dense:V,showGray:I}),ge&&x.createElement(Kp,{item:!0,className:am.icon},he&&x.createElement(Jh,{style:ue,size:"small"}),me&&x.createElement(dm,{style:ue,size:"small"}))))}var mg=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||mg(r)&&mg(o)))return!1;var r,o;return!0}function bg(e,t){var n;void 0===t&&(t=gg);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var vg="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function yg(e){cancelAnimationFrame(e.id)}function Sg(e,t){var n=vg();var r={id:requestAnimationFrame((function o(){vg()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var wg=-1;function xg(e){if(void 0===e&&(e=!1),-1===wg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),wg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return wg}var kg=null;function Cg(e){if(void 0===e&&(e=!1),null===kg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?kg="positive-descending":(t.scrollLeft=1,kg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),kg}return kg}var Eg=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Rg(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,tl(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:tl(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=bg((function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=bg((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=bg((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(Cg()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&yg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Sg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Ws(t,e),t.getDerivedStateFromProps=function(e,t){return Lg(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=xg();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,S=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Cg()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&yg(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?Eg:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,S=this.state.isScrolling,x=this._getHorizontalRangeToRender(),k=x[0],C=x[1],E=this._getVerticalRangeToRender(),R=E[0],L=E[1],O=[];if(r>0&&g)for(var T=R;T<=L;T++)for(var P=k;P<=C;P++)O.push(w.createElement(t,{columnIndex:P,data:d,isScrolling:v?S:void 0,key:f({columnIndex:P,data:d,rowIndex:T}),rowIndex:T,style:this._getItemStyle(T,P)}));var I=a(this.props,this._instanceProps),_=s(this.props,this._instanceProps);return w.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ut({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w.createElement(c||u||"div",{children:O,ref:l,style:{height:I,pointerEvents:S?"none":void 0,width:_}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,v,g,S,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(w.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Lg=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Og=function(e,t){return e};function Tg(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,tl(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:tl(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=bg((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=bg((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=bg((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(Cg()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&yg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Sg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Ws(t,e),t.getDerivedStateFromProps=function(e,t){return Pg(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?xg():0:l.scrollHeight>l.clientHeight?xg():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(Cg()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&yg(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?Og:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,S="horizontal"===o||"horizontal"===f,x=S?this._onScrollHorizontal:this._onScrollVertical,k=this._getRangeToRender(),C=k[0],E=k[1],R=[];if(c>0)for(var L=C;L<=E;L++)R.push(w.createElement(t,{data:u,key:p(L,u),index:L,isScrolling:b?y:void 0,style:this._getItemStyle(L)}));var O=r(this.props,this._instanceProps);return w.createElement(h||m||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:ut({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w.createElement(s||l||"div",{children:R,ref:a,style:{height:S?"100%":O,pointerEvents:y?"none":void 0,width:S?O:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(w.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Pg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Ig=Rg({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,s=e.columnWidth,l=e.width,c=Math.max(0,a*s-l),u=Math.min(c,t*s),d=Math.max(0,t*s-l+i+s);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,s=e.height,l=e.rowCount,c=Math.max(0,l*a-s),u=Math.min(c,t*a),d=Math.max(0,t*a-s+i+a);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),_g=Tg({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:s,f=Math.max(0,l*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const Mg="#BBB",Ng="#f1f1f1",qg={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const Dg=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Ag=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,zg=(e,t,n,r)=>e===t*n+r+n;function jg(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:s,dataOffset:l}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=Dg(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,f=zg(s,u,c?i:o,l),h=!!l&&Ag(t,c),m=p&&!f&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:Fg,StyledFixedSizeGrid:$g}=function(){const e=e=>({scrollbarColor:"".concat(Mg," ").concat(Ng),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Ng},"&::-webkit-scrollbar-thumb":{backgroundColor:Mg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:pr(_g,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(qg.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:pr(Ig,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(qg.styledScrollbars)]:e(n)}}))}}();const Bg=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},Wg=e=>{const t=w.useMemo((()=>"text"in e?e:{}),[e]);return w.useMemo((()=>Bg(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Ug(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Hg(e){let{isGridMode:t,dense:n}=e;let r=n?Lm:t?Em:Rm;return t&&(r+=Om),r}function Vg(e){let{layout:t,width:n,height:r,listCount:o,count:i,freqIsAllowed:a,checkboxes:s,styles:l}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==l?void 0:l.content)||{},b="".concat(m," ").concat(g),v=Wg({text:Ug(t),font:b}),y=Wg({text:Ug(5),font:b}),S=Wg({text:Ug(8),font:b}),w=a?y:0,x=s?km:0;let k=xm+w+x;!s&&k>=ym&&(k+=km);let C,E,R,L,O=v+18+w+x;!s&&O>=ym&&(O+=km),O=Math.min(wm,Math.max(O,k));const T=Hg({isGridMode:"grid"===h,dense:f}),P=null!=r?r:8*T;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*Om,({rowCount:L,columnWidth:R,columnCount:E}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,s=r-Sm;let l;const c=Math.min(n,Math.max(1,Math.round(s/Math.max(i,o))));l=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c),l=Math.max(l,1);const u=s/l;return{rowCount:Math.ceil(n/l),columnWidth:u,columnCount:l}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:O,itemMinWidth:k}))):(C={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:E}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:s,itemMinWidth:l}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,s/d,l),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:T,listCount:o,listHeight:P,columnAutoWidth:O,containerWidth:e,itemMinWidth:k})))}E=("singleColumn"===h?1:E)||1,L=("singleColumn"===h?i:L)||o;const I=c.dense?838e3:577e3;L=Math.min(L,I);const _=Math.floor(3355e4/R);E=Math.min(E,_)||1;const M=L*E,N=Math.min(o,M);return{columnCount:E,columnWidth:R,rowCount:L,overflowStyling:C,itemHeight:T,listHeight:P,listWidth:n,scrollBarWidth:Sm,count:i,listCount:N,maxCount:{row:I,column:_},itemPadding:Om,textWidth:v,freqMinWidth:y,freqMaxWidth:S}}const Gg=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[Kg,Jg]=Hl({});function Zg(e){const t="".concat(e.id),[n]=Kg();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const Xg=As(bc,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return d({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px"),whiteSpace:"normal"},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function Qg(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:i}=w.useContext(Bl);return x.createElement(qh,{title:o?i.get(n):""},x.createElement(Xg,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},i.get(n)))}var Yg,eb,tb={},nb={},rb=r(ec);function ob(){return Yg||(Yg=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=rb}(nb)),nb}function ib(){if(eb)return tb;eb=1;var e=$a();Object.defineProperty(tb,"__esModule",{value:!0}),tb.default=void 0;var t=e(ob()),n=Er();return tb.default=(0,t.default)((0,n.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"),tb}var ab=n(ib());const sb=As(ac)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),lb=As("div")((()=>({paddingLeft:"6px",flexGrow:1}))),cb=As("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),ub=As(ab)((()=>({fontSize:"14px"})));function db(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const i="function"==typeof n,a=r?370:282,s=Math.max(o/2-a/2,0),l=Math.min(a,o)-42,c=r&&o<a;return x.createElement(sb,{left:s,style:{maxWidth:a}},x.createElement(lb,null,x.createElement(Qg,{text:t,dense:r,width:l,tooltip:c})),x.createElement(cb,{dense:r},i&&x.createElement(dc,{"aria-label":"close",onClick:()=>n()},x.createElement(ub,null))))}const pb=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const fb=80;function hb(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>fb,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const mb=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e,gb=e=>{const t=mb(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},bb=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=w.useState(),[i,a]=w.useState(n);return w.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=gb(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}};const vb=["isLoadingData"],yb=100,Sb=As("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function wb(e){var t,n;let{model:r,app:o,constraints:i,layout:a,selections:s,selectionState:l,direction:u,checkboxes:f,height:h,width:m,frequencyMode:g,update:b,fetchStart:v,postProcessPages:y,calculatePagesHeight:S=!1,keyboard:k={},showGray:C=!0,scrollState:E,keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:L={set:()=>{}},renderedCallback:O,onCtrlF:T,showSearch:P,isModal:I,styles:_}=e;const{translator:M}=w.useContext(Bl),[N,q]=w.useState(!1),D=!(!a||!a.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=f,histogram:z}=null!=a?a:{},j=w.useRef(null),F=w.useRef({queue:[],validPages:!1,dataOffset:0}),$=w.useRef({pages:[]}),{frequencyMax:B,awaitingFrequencyMax:W}=bb(o,a),U=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:i,postProcessPages:a,listData:s}=e;const[l,c]=w.useState(!1),[u,d]=w.useState([]);let[p]=w.useState(0);const f=(e,l)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:l+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],i=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=a?a(n):n;t.current.validPages=!0,s.current.pages=r,d(r),c(!1),e()}));o&&o(i)}),f?i:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:l}}({local:F,loaderRef:j,model:r,fetchStart:v,scrollTimeout:0,postProcessPages:y,listData:$}),{isLoadingData:H}=U,V=p(U,vb),{getStoreValue:G,setStoreValue:K}=Zg(r),J=w.useCallback(V.loadMoreItems,[a]),[Z,X]=w.useState({show:!1,dismissed:!1}),[Q,Y]=w.useState([]);null!=V&&V.pages&&l.update({setPages:Y,pages:V.pages,isSingleSelect:D,layout:a});const ee=null==a?void 0:a.qListObject.qDimensionInfo.qCardinal;(null!=V&&V.pages.length&&!W||0===ee)&&(null==O||O());const te=w.useCallback((e=>{if(null==Q||!Q.length||!F.current.validPages)return!1;F.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Q.filter((e=>t(e)))[0];return n&&t(n)}),[a,Q]),{interactionEvents:ne,select:re}=cm({selectionState:l,selections:s,checkboxes:A,doc:document,loaderRef:j}),{layoutOptions:oe={}}=a||{};let ie=!0;oe.dataLayout&&(ie="singleColumn"===oe.dataLayout||"row"===(null==oe?void 0:oe.layoutOrder));const ae="grid"===(null==oe?void 0:oe.dataLayout),se=e=>{const t=d({},ie?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;j.current._listRef.scrollToItem(n)},le=()=>{if(F.current.queue=[],F.current.validPages=!1,j.current){j.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(a&&a.qSelectionInfo.qInSelections||e)return void(e&&R.reset());F.current.dataOffset=0,se(0)}};b&&b.call(null,le),w.useEffect((()=>{E&&!N&&j.current&&(j.current._listRef.scrollToItem(E.initScrollPos),q(!0))}),[j.current]),w.useEffect((()=>{le()}),[a,F.current.dataOffset]);let ce=yb;const ue="grid"!==oe.dataLayout,de=null==a||null===(t=a.qListObject.qSize)||void 0===t?void 0:t.qcy,pe=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?Gg({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:ce,count:de,calculatePagesHeight:S});let fe=hb({itemWidth:m,layout:a,frequencyMode:g});const he=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(Q),me=Vg({layout:a,width:m,height:h,listCount:pe,count:de,freqIsAllowed:fe,checkboxes:A,styles:_});me.columnWidth&&(fe=hb({itemWidth:me.columnWidth,layout:a,frequencyMode:g}));const{listCount:ge}=me;K("listCount",ge);const be=G("inputText"),ve=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=w.useContext(Bl),i=[];if(null!=n&&n.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(r),t=o.get(e,[r]);i.push(t)}const a=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},i=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let a;switch(i){case 0:a="ScreenReader.ZeroSelected";break;case 1:a="ScreenReader.OneSelected";break;default:a="ScreenReader.ManySelected"}return r.get(a,[i])}({layout:t,translatorDynamic:o});i.push(a);const s=i.filter((e=>!(null==e||!e.length))).join(". ");return s}({layout:a,searchInputText:be,listCount:ge}),ye=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,s=!1,l=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":l=0,t=0,s=!0;break;case"overflowEnd":l=pb(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ie,sizes:me,layout:a,offset:F.current.dataOffset});F.current.dataOffset=n,r&&l.triggerStateChanged(),se(t)};w.useEffect((()=>{const e=R.state;e.up?se(L.state.start-e.up):e.down?se(L.state.stop+e.down):e.scrollPosition&&ye(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:Se}=(null==a?void 0:a.qListObject.qDimensionInfo)||{},[we,xe]=w.useState({first:!1,last:!1}),{List:ke,Grid:Ce}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:a,selectionState:s,interactionEvents:l,deducedFrequencyMode:u,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:b,selections:v,keyboard:y,showGray:S,scrollState:w,direction:k,sizes:C,listCount:E,overflowDisclaimer:R,setScrollPosition:L,focusListItems:O,setCurrentScrollIndex:T,constraints:P,frequencyMax:I,freqIsAllowed:_,translator:M,showSearch:N,isModal:q,styles:D}=e;const{layoutOptions:A={}}=t||{},{columnWidth:z,listHeight:j,itemHeight:F,rowCount:$,columnCount:B}=C||{},W=("grid"===A.dataLayout?z:n)>ym,U={direction:"rtl"===k?"rtl":"ltr",useIsScrolling:!0,className:qg.styledScrollbars},H=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,V=j<=F,G=d(d({isLocked:H,column:!i,pages:a},H||s.selectDisabled()?{}:l),{},{checkboxes:r,layoutOptions:A,deducedFrequencyMode:u,freqIsAllowed:_,isSingleSelect:f,textAlign:b,sizes:C,actions:{select:h,confirm:()=>null==v?void 0:v.confirm.call(v),cancel:()=>null==v?void 0:v.cancel.call(v),setScrollPosition:L,selectAll:m,onCtrlF:g},frequencyMax:I,histogram:p,keyboard:y,showGray:S,showTick:W,dataOffset:o.current.dataOffset,focusListItems:O,direction:k,translator:M,showSearch:N,isModal:q,styles:D,fillHeight:V});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,x.createElement(Fg,c({},U,{dataTestid:"fixed-size-list",scrollDisabled:null==P?void 0:P.active,height:j,width:n,itemCount:E,itemData:d(d({},G),{},{listCount:E}),itemSize:F,onItemsRendered:e=>{var n;T({start:e.visibleStartIndex,stop:e.visibleStopIndex}),w&&w.setScrollPos(e.visibleStopIndex),jg({renderProps:e,layoutOptions:A,maxCount:C.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:R,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(d({},e))},ref:i}),hg)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:a,scrollBarWidth:s}=C,{layoutOrder:l}=A||{},u=Math.min(j,$*F+s);return o.current.listRef=i,x.createElement($g,c({},U,{dataTestid:"fixed-size-grid",scrollDisabled:null==P?void 0:P.active,height:u,width:n,columnCount:B,columnWidth:z,rowCount:$,rowHeight:F,style:d({},a),itemData:d(d({},G),{},{column:void 0,columnCount:B,rowCount:$}),onItemsRendered:e=>{var n;const i="row"===l;T({start:i?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:i?e.visibleRowStopIndex:e.visibleColumnStopIndex});const a=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:s,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=l*o,p=a,f=c*o,h=s):(d=l,p=a*i,f=c,h=s*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:w,layoutOrder:l,rowCount:$,columnCount:B});jg({renderProps:e,layoutOptions:A,maxCount:C.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:R,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(a)},ref:i}),hg)}}}({direction:u,layout:a,width:m,checkboxes:A,deducedFrequencyMode:he,histogram:z,keyboard:k,showGray:C,interactionEvents:ne,select:re,selectAll:()=>{l.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:T,textAlign:Se,isVertical:ue,pages:Q,selectionState:l,isSingleSelect:D,selections:s,scrollState:E,local:F,sizes:me,listCount:ge,overflowDisclaimer:{state:Z,set:e=>X((t=>d(d({},t),{},{show:e})))},setScrollPosition:ye,focusListItems:{first:we.first,setFirst:e=>xe((t=>d(d({},t),{},{first:e}))),last:we.last,setLast:e=>xe((t=>d(d({},t),{},{last:e})))},setCurrentScrollIndex:L.set,constraints:i,frequencyMax:B,freqIsAllowed:fe,translator:M,showSearch:P,isModal:I,styles:_}),{columnWidth:Ee,listHeight:Re,itemHeight:Le}=me||{};return ue||(ce=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:m,columnWidth:Ee,listHeight:Re,itemHeight:Le})),x.createElement(Sb,null,x.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},ve),!ge&&ee>0&&x.createElement(Qg,{width:m,text:"Listbox.NoMatchesForYourTerms"}),x.createElement(em,{isItemLoaded:te,itemCount:ge||1,loadMoreItems:J.with({minimumBatchSize:ce}),threshold:0,minimumBatchSize:ce,ref:j,role:"grid"},ue?ke:Ce),Z.show&&!Z.dismissed&&x.createElement(db,{text:"Listbox.ItemsOverflow",dismiss:()=>X((e=>d(d({},e),{},{dismissed:!0}))),parentWidth:null==j||null===(n=j.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==oe?void 0:oe.dense}))}const xb=e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),kb=e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Cb=e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Eb=e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var Rb=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1,selections:a}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const s="/qListObjectDef",l=()=>{a.isActive()||a.begin(s)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:xb,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectAll(s)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:Cb,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectPossible(s)}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:kb,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectAlternative(s)}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Eb,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectExcluded(s)}}].filter(Boolean)};const Lb=e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function Ob(e){const t=xs(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const Tb={className:"njs-cell-action"},Pb=x.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const i=xs(),{hidden:a,disabled:s,style:l,hasSvgIconShape:c}=Ob(r);if(a)return null;const u=Number.parseInt(i.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return x.createElement(dc,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:s,style:l,className:[Tb.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&Gh(r.getSvgIconShape()),o&&x.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),Ib=e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var _b=e=>Gh(Ib(e));const Mb=e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var Nb=e=>Gh(Mb(e));const qb="njs-action-toolbar-more",Db={icon:"".concat("More","-icon")},Ab=As(Zf)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Db.icon," *")]:{color:t.palette.text.primary}}}));function zb(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=Ob(t);return o?null:x.createElement(th,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:i,tabindex:"0"},a&&x.createElement(_f,{className:Db.icon},Gh(t.getSvgIconShape())),x.createElement(bc,{noWrap:!0},t.label))}const jb=x.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:a={},onCloseOrActionClick:s=(()=>{}),disablePortal:l=!0}=e;const u=n.length>0,p=n.findIndex((e=>!e.disabled));return u&&x.createElement(Ab,c({},i,{onClose:s,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:l?null:void 0,container:l?o.current:void 0,disablePortal:l,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:qb},paper:{style:d({pointerEvents:"auto",maxWidth:"250px"},a)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),x.createElement(jf,{id:"moreMenuList"},n.map(((e,t)=>x.createElement(zb,{key:t,item:e,autoFocus:t===p,onActionClick:s})))))})),Fb=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},$b=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const Bb="ActionsToolbar",Wb={item:"".concat(Bb,"-item"),itemSpacing:"".concat(Bb,"-itemSpacing")},Ub=As(Zf)((e=>{let{theme:t}=e;return{["& .".concat(Wb.itemSpacing)]:{padding:t.spacing(0,.25)}}})),Hb={className:"njs-action-toolbar-popover"},Vb=x.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:i=!1,isRtl:a=!1}=e;return o.length>0?x.createElement(Kp,{item:!0,container:!0,gap:0,flexDirection:a?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>x.createElement(Kp,{item:!0,key:e.key,className:"".concat(Wb.itemSpacing," ").concat(Wb.item)},x.createElement(Pb,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:i}))))):null})),Gb={pointerEvents:"none"};function Kb(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:a={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:l={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:c={show:!1,anchorEl:null},focusHandler:u=null,actionsRefMock:p=null,isRtl:f,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=w.useContext(Bl);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:Mb},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:Ib},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:um}]}(d(d({},a),{},{layout:m})),{translator:b,keyboardNavigation:v}=w.useContext(Bl),[y,S]=w.useState(!1),k={vertical:12,horizontal:f?0:(null!==(t=null===(n=c.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},C={vertical:"bottom",horizontal:f?-7:"right"},E=w.useRef(),R=w.useRef(),L=xs(),O=w.useMemo((()=>({margin:L.spacing(.5,0)}))),T=e=>{const t=E.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},P=w.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:i}=e;return e=>{const{target:a,nativeEvent:s}=e,{keyCode:l}=s;switch(l){case rg.ARROW_LEFT:case rg.ARROW_DOWN:case rg.ARROW_RIGHT:case rg.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=Fb(a);let t=[rg.ARROW_LEFT,rg.ARROW_DOWN].includes(l);t=i?!t:t,$b(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case rg.SPACE:e.preventDefault();break;case rg.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case rg.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:v,focusHandler:u,getEnabledButton:T,selections:a,isRtl:f})),[v,u,T,a,f]);if(w.useEffect((()=>()=>{S(!1)}),[c.show,r,a.show]),w.useEffect((()=>{if(!u)return;u.on("focus_toolbar_first",(()=>{const e=T(!1);null==e||e.focus()})),u.on("focus_toolbar_last",(()=>{const e=T(!0);null==e||e.focus()}))}),[]),h)return;let I=l.enabled,_=l.actions;const M=l.alignTo||R,N=o.filter((e=>!e.hidden));if(N.length>i){const e=N.splice(-(N.length-i)-1);I=!0,_=[...e,...l.actions]}if(!a.show&&0===N.length&&!I)return null;const q={key:"more",label:b.get("Menu.More"),getSvgIconShape:Lb,hidden:!1,active:y,enabled:()=>I,action:()=>S(!y)},D=N.length>0,A=_.length>0,z=D&&a.show||A&&a.show,j=x.createElement(Kp,{ref:E,onKeyDown:P,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==s?void 0:s.length)&&x.createElement(Vb,{className:"actions-toolbar-extra-actions",actions:s,isRtl:f}),D&&x.createElement(Vb,{actions:N}),A&&x.createElement(Vb,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:R,ariaExpanded:y,actions:[q],addAnchor:!0}),z&&x.createElement(Kp,{item:!0,className:Wb.itemSpacing,style:O},x.createElement(Ip,{orientation:"vertical"})),a.show&&x.createElement(Vb,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),y&&x.createElement(jb,{show:y,actions:_,alignTo:M,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{S(!1)},disablePortal:l.disablePortal}));return c.show?x.createElement(Ub,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:c.show,anchorEl:c.anchorEl,anchorOrigin:k,transformOrigin:C,hideBackdrop:!0,style:Gb,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Hb.className,style:{pointerEvents:"auto",padding:L.spacing(.5,.25)}}}},j):r&&j}var Jb=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const Zb="/qListObjectDef",Xb=e=>null==e?void 0:e.substring(0,64e3),Qb=As(uh,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),d({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":d({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),Yb=As(dc)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));var ev=w.forwardRef((function(e,t){let{popoverOpen:n,selections:r,selectionState:o,model:i,keyboard:a,dense:s=!1,visible:l=!0,autoFocus:c=!0,beginSelectionOnFocus:u=!0,wildCardSearch:d=!1,searchEnabled:p,direction:f,hide:h,styles:m}=e;const{translator:g}=w.useContext(Bl),[b,v]=w.useState(""),[y,S]=w.useState(!1),k=w.useRef(),C=w.useRef(),E=g.get("Listbox.Clear.Search"),{getStoreValue:R,setStoreValue:L}=Zg(i),O="rtl"===f,T=async()=>{try{await i.abortListObjectSearch(Zb)}finally{v("")}};w.useEffect((()=>l?()=>T():()=>{}),[l]),w.useEffect((()=>(r.on("deactivated",T),()=>{r.removeListener&&r.removeListener("deactivated",T)})),[]),w.useEffect((()=>{if(y&&k.current){const e=b.length-1;k.current.setSelectionRange(e,e),S(!1)}}),[y,k.current]),w.useEffect((()=>{L("inputText",b)}),[b]);const P=async()=>{let e;const t=Xb(b),n=await i.searchListObjectFor(Zb,t);return o.selectDisabled()?n:(n&&t.length&&R("listCount")>0&&(e=i.acceptListObjectSearch(Zb,!0),r.selectionsMade=!0,o.clearItemStates(!1),v("")),e)},I=()=>{var e;null===(e=k.current)||void 0===e||e.focus()},_=()=>{T(),I()};return w.useImperativeHandle(t,(()=>({focus(){I()}}))),l&&!1!==p?x.createElement(Qb,{styles:m,dense:s,isRtl:O,startAdornment:x.createElement(uf,{position:"start",sx:{marginLeft:s?"8px":"".concat(mm,"px")}},x.createElement(Jb,{size:s?"small":"normal"})),endAdornment:x.createElement(uf,{position:"end",sx:{marginLeft:0}},""!==b&&x.createElement(Yb,{tabIndex:0,ref:C,title:E,"aria-label":E,onClick:_,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":_();break;case"Tab":e.shiftKey?I():cg(t);break;default:return}e.preventDefault(),e.stopPropagation()}},x.createElement(_b,{size:s?"small":"normal"}))),className:"search",inputRef:k,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:b,onFocus:()=>{d&&(v("**"),S(!0)),u&&!o.selectDisabled()&&!r.isModal()&&r.begin("/qListObjectDef")},onChange:async e=>{const t=Xb(e.target.value);return v(t),t.length?i.searchListObjectFor(Zb,t):T()},onKeyDown:async e=>{const{currentTarget:t}=e,o=t.closest(".listbox-container");switch(e.key){case"Enter":P();break;case"Escape":if(cg(o),r.cancel(),n)return;break;case"Tab":e.shiftKey?ug(o)||a.focusSelection():C.current?C.current.focus():cg(o);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;h&&(h(),cg(o));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:c,inputProps:{tabIndex:a.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function tv(e){if(!e.session)return[];const{selectionStore:t}=w.useContext(Bl),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return w.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:i}=n,a=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},s={begin:async e=>{var n;let{model:i,paths:s,accept:l=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;a(l),o.set(r,{model:i,objectSelections:c});const u=Array.isArray(s)?s:[s],d=async e=>{try{await i.beginSelections(u),o.set(r,{model:i,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(l),d(!0))}};await d()},end:a};i.set(r,s);const l={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>s.end().then((()=>t.forward())),back:()=>s.end().then((()=>t.back())),clear:()=>s.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return s.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return l}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function nv(e){return Object.keys(P.prototype).forEach((t=>{e[t]=P.prototype[t]})),P.init(e),e}const rv=e=>{let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const s={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin({model:o,paths:e,accept:!0,objectSelections:s}))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>i,isModal:()=>n.isModal(s),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:s}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return nv(s),s},ov=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function iv(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=tv(e),[a]=Wh(t),{appModalStore:s}=w.useContext(Bl).selectionStore,l=s.get(e.id),[c,u]=w.useState();return w.useEffect((()=>{i&&t&&!c&&u(rv({appSelections:i,appModal:l,model:t}))}),[i,t]),w.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=ov({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),w.useEffect((()=>{c&&c.setLayout(a)}),[c,a]),[c]}function av(){const e=d(d({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:i,isSingleSelect:a,selectDisabled:s,layout:l}=t;this.setPages=o;const c=this.lastRowCount===l.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===l.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=l.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=l.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=rm(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=a,e.selectDisabled=s||e.selectDisabled,e.isDimCalculated=null!==(n=null==l||null===(r=l.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[d(d({},n),{},{qState:r}),...t.slice(1)]}));return d(d({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}});return e}const sv=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function lv(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return sv(t,"qSelected",0)+sv(t,"qSelectedExcluded",0)+sv(t,"qLocked",0)+sv(t,"qLockedExcluded",0)>0}function cv(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function uv(e){if("object"==typeof e&&cv(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const dv={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function pv(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(cv(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in dv}(e)){const t=dv[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function fv(e){let t,n,r;if(cv(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?uv(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function hv(e){let t,n,r=0;const o="string"==typeof e?pv(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function mv(e){let t,n,r=0;const o="string"==typeof e?pv(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function gv(e){if(cv(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?uv(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function bv(e,t){return cv(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:bv(pv(e))}function vv(e){return cv(e)?1===e.a?gv(e):bv(e):vv(pv(e))}const yv=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Sv(e){return.2126*yv(e.r)+.7152*yv(e.g)+.0722*yv(e.b)}function wv(...e){const t=pv(...e);return t.invalid||Sv(t)<.4}function xv(...e){const t=pv(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=hv(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=pv(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>wv(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=gv(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=bv(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=vv(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=fv(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?pv(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=hv(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=mv(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=mv(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>xv(o(18*e)),getDarkenedColor:(e=1)=>xv(o(18*-e))}}function kv(e,t){if(!e||!t)return;const n=Sv(e),r=Sv(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Cv(e,t){const n=xv("#FFFFFF"),r=xv(e),o=xv(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=kv(n,r),a=kv(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}function Ev(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rv,Lv,Ov,Tv="top",Pv="top-right",Iv="right",_v="bottom-right",Mv="bottom",Nv="bottom-left",qv="left",Dv="top-left";Ev(Ev(Ev(Ev(Ev(Ev(Ev(Ev(Ev(Ev(Rv={},"equal-equal",[Tv,Mv]),"equal-higher",[Mv,_v]),"equal-lower",[Tv,Pv]),"equal-void",[Tv,Mv]),"higher-equal",[qv,Nv,Tv,Pv]),"higher-higher-acute",[Mv,Nv,qv,Pv]),"higher-higher-obtuse",[Mv,Tv]),"higher-lower-negative",[Tv,Pv,Iv]),"higher-lower-positive",[Mv,Nv,qv]),"higher-void",[Tv]),Ev(Ev(Ev(Ev(Ev(Ev(Ev(Ev(Ev(Ev(Rv,"lower-equal",[Tv]),"lower-higher-negative",[Tv,Dv]),"lower-higher-positive",[_v]),"lower-lower-acute",[Tv,Dv,qv,Pv,Iv]),"lower-lower-obtuse",[Tv,Mv]),"lower-void",[Tv]),"void-equal",[Tv]),"void-higher",[Tv,Mv]),"void-lower",[Tv,Mv,qv]),"void-void",[Tv]),Ev(Rv,"unclassified",[Tv,Mv,Iv,qv,Pv,_v,Nv,Dv]);var Av=function(){if(Ov)return Lv;Ov=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Lv=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Lv}();function zv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function jv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Fv(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Av);var $v=1/.7,Bv="\\s*([+-]?\\d+)\\s*",Wv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hv=/^#([0-9a-f]{3,8})$/,Vv=new RegExp(`^rgb\\(${Bv},${Bv},${Bv}\\)$`),Gv=new RegExp(`^rgb\\(${Uv},${Uv},${Uv}\\)$`),Kv=new RegExp(`^rgba\\(${Bv},${Bv},${Bv},${Wv}\\)$`),Jv=new RegExp(`^rgba\\(${Uv},${Uv},${Uv},${Wv}\\)$`),Zv=new RegExp(`^hsl\\(${Wv},${Uv},${Uv}\\)$`),Xv=new RegExp(`^hsla\\(${Wv},${Uv},${Uv},${Wv}\\)$`),Qv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Yv(){return this.rgb().formatHex()}function ey(){return this.rgb().formatRgb()}function ty(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Hv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ny(t):3===n?new ay(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ry(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ry(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Vv.exec(e))?new ay(t[1],t[2],t[3],1):(t=Gv.exec(e))?new ay(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Kv.exec(e))?ry(t[1],t[2],t[3],t[4]):(t=Jv.exec(e))?ry(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Zv.exec(e))?py(t[1],t[2]/100,t[3]/100,1):(t=Xv.exec(e))?py(t[1],t[2]/100,t[3]/100,t[4]):Qv.hasOwnProperty(e)?ny(Qv[e]):"transparent"===e?new ay(NaN,NaN,NaN,0):null}function ny(e){return new ay(e>>16&255,e>>8&255,255&e,1)}function ry(e,t,n,r){return r<=0&&(e=t=n=NaN),new ay(e,t,n,r)}function oy(e){return e instanceof Fv||(e=ty(e)),e?new ay((e=e.rgb()).r,e.g,e.b,e.opacity):new ay}function iy(e,t,n,r){return 1===arguments.length?oy(e):new ay(e,t,n,null==r?1:r)}function ay(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function sy(){return`#${dy(this.r)}${dy(this.g)}${dy(this.b)}`}function ly(){const e=cy(this.opacity);return`${1===e?"rgb(":"rgba("}${uy(this.r)}, ${uy(this.g)}, ${uy(this.b)}${1===e?")":`, ${e})`}`}function cy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function uy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dy(e){return((e=uy(e))<16?"0":"")+e.toString(16)}function py(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new hy(e,t,n,r)}function fy(e){if(e instanceof hy)return new hy(e.h,e.s,e.l,e.opacity);if(e instanceof Fv||(e=ty(e)),!e)return new hy;if(e instanceof hy)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new hy(a,s,l,e.opacity)}function hy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function my(e){return(e=(e||0)%360)<0?e+360:e}function gy(e){return Math.max(0,Math.min(1,e||0))}function by(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}zv(Fv,ty,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Yv,formatHex:Yv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return fy(this).formatHsl()},formatRgb:ey,toString:ey}),zv(ay,iy,jv(Fv,{brighter(e){return e=null==e?$v:Math.pow($v,e),new ay(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ay(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ay(uy(this.r),uy(this.g),uy(this.b),cy(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sy,formatHex:sy,formatHex8:function(){return`#${dy(this.r)}${dy(this.g)}${dy(this.b)}${dy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ly,toString:ly})),zv(hy,(function(e,t,n,r){return 1===arguments.length?fy(e):new hy(e,t,n,null==r?1:r)}),jv(Fv,{brighter(e){return e=null==e?$v:Math.pow($v,e),new hy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new hy(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ay(by(e>=240?e-240:e+120,o,r),by(e,o,r),by(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new hy(my(this.h),gy(this.s),gy(this.l),cy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=cy(this.opacity);return`${1===e?"hsl(":"hsla("}${my(this.h)}, ${100*gy(this.s)}%, ${100*gy(this.l)}%${1===e?")":`, ${e})`}`}}));const vy=Math.PI/180,yy=180/Math.PI,Sy=4/29,wy=6/29,xy=3*wy*wy;function ky(e){if(e instanceof Cy)return new Cy(e.l,e.a,e.b,e.opacity);if(e instanceof Ty)return Py(e);e instanceof ay||(e=oy(e));var t,n,r=Oy(e.r),o=Oy(e.g),i=Oy(e.b),a=Ey((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Ey((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Ey((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Cy(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Cy(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ey(e){return e>.008856451679035631?Math.pow(e,1/3):e/xy+Sy}function Ry(e){return e>wy?e*e*e:xy*(e-Sy)}function Ly(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Oy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ty(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Py(e){if(isNaN(e.h))return new Cy(e.l,0,0,e.opacity);var t=e.h*vy;return new Cy(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}zv(Cy,(function(e,t,n,r){return 1===arguments.length?ky(e):new Cy(e,t,n,null==r?1:r)}),jv(Fv,{brighter(e){return new Cy(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Cy(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new ay(Ly(3.1338561*(t=.96422*Ry(t))-1.6168667*(e=1*Ry(e))-.4906146*(n=.82521*Ry(n))),Ly(-.9787684*t+1.9161415*e+.033454*n),Ly(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),zv(Ty,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ty)return new Ty(e.h,e.c,e.l,e.opacity);if(e instanceof Cy||(e=ky(e)),0===e.a&&0===e.b)return new Ty(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yy;return new Ty(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ty(e,t,n,null==r?1:r)}),jv(Fv,{brighter(e){return new Ty(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ty(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Py(this).rgb()}}));var Iy=e=>()=>e;function _y(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Iy(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?_y:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Iy(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=iy(e)).r,(t=iy(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=_y(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var My,Ny="center",qy="bottom";function Dy(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ay(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=jy)):void 0===t&&(t=zy);for(var n,r,o,i,a,s=new By(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new By(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore($y)}function zy(e){return e.children}function jy(e){return Array.isArray(e)?e[1]:null}function Fy(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function $y(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function By(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Ny,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ny,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ny,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ny},{key:"DataRangeIncludingZero",alignment:qy},{key:"LimitedData",alignment:qy},{key:"NegativeOrZeroValues",alignment:qy}].reduce((function(e,t){return e[t.key]=t,e}),{}),By.prototype=Ay.prototype={constructor:By,count:function(){return this.eachAfter(Dy)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ay(this).eachBefore(Fy)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},My=function(e){
119
+ `,yl="string"!=typeof gl?tr`
120
+ animation: ${gl} 1.4s linear infinite;
121
+ `:null,vl="string"!=typeof bl?tr`
122
+ animation: ${bl} 1.4s ease-in-out infinite;
123
+ `:null,Sl=bs("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Ur(n.color)}`]]}})(Ls((({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:yl||{animation:`${gl} 1.4s linear infinite`}},...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})))]})))),wl=bs("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),xl=bs("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ur(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ls((({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:vl||{animation:`${bl} 1.4s ease-in-out infinite`}}]})))),kl=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate",...d}=n,p={...n,color:o,disableShrink:i,size:a,thickness:l,value:c,variant:u},f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Hi({root:["root",n,`color${Ur(r)}`],svg:["svg"],circle:["circle",`circle${Ur(n)}`,o&&"circleDisableShrink"]},hl,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((ml-l)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return xr.jsx(Sl,{className:Xo(f.root,r),style:{width:a,height:a,...m,...s},ownerState:p,ref:t,role:"progressbar",...g,...d,children:xr.jsx(wl,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:xr.jsx(xl,{className:f.circle,style:h,ownerState:p,cx:ml,cy:ml,r:(ml-l)/2,fill:"none",strokeWidth:l})})})}));function Cl(e){return Yo("MuiButton",e)}const El=ei("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","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Rl=S.createContext({}),Ll=S.createContext(void 0),Pl=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Tl=bs(dl,{shouldForwardProp:e=>gs(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ur(n.color)}`],t[`size${Ur(n.size)}`],t[`${n.variant}Size${Ur(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ls((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${El.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${El.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${El.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${El.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:yi(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yi(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yi(e.palette[t].main,e.palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yi(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yi(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${El.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${El.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${El.loading}`]:{color:"transparent"}}}]}}))),Ol=bs("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Ur(n.size)}`]]}})((({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Pl]}))),Il=bs("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Ur(n.size)}`]]}})((({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Pl]}))),_l=bs("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})((({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]}))),Ml=bs("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),ql=S.forwardRef((function(e,t){const n=S.useContext(Rl),r=S.useContext(Ll),o=Ps({props:ui(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,id:m,loading:g=null,loadingIndicator:b,loadingPosition:y="center",size:v="medium",startIcon:w,type:x,variant:k="text",...C}=o,E=_i(m),R=b??xr.jsx(kl,{"aria-labelledby":E,color:"inherit",size:16}),L={...o,color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,loading:g,loadingIndicator:R,loadingPosition:y,size:v,type:x,variant:k},P=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c=Hi({root:["root",a&&"loading",i,`${i}${Ur(t)}`,`size${Ur(o)}`,`${i}Size${Ur(o)}`,`color${Ur(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Ur(s)}`],startIcon:["icon","startIcon",`iconSize${Ur(o)}`],endIcon:["icon","endIcon",`iconSize${Ur(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Cl,l);return{...l,...c}})(L),T=(w||g&&"start"===y)&&xr.jsx(Ol,{className:P.startIcon,ownerState:L,children:w||xr.jsx(Ml,{className:P.loadingIconPlaceholder,ownerState:L})}),O=(p||g&&"end"===y)&&xr.jsx(Il,{className:P.endIcon,ownerState:L,children:p||xr.jsx(Ml,{className:P.loadingIconPlaceholder,ownerState:L})}),I=r||"",_="boolean"==typeof g?xr.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:g&&xr.jsx(_l,{className:P.loadingIndicator,ownerState:L,children:R})}):null;return xr.jsxs(Tl,{ownerState:L,className:Xo(n.className,P.root,l,I),component:s,disabled:c||g,focusRipple:!d,focusVisibleClassName:Xo(P.focusVisible,f),ref:t,type:x,id:g?E:m,...C,classes:P,children:[T,"end"!==y&&_,i,"end"===y&&_,O]})}));var Dl={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"]};const Nl={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},Al={mode:"light",palette:{primary:{main:Nl.grey25,contrastText:Nl.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Nl.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Nl.grey100,dark:Nl.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Nl.grey100,default:Nl.grey100,lightest:Nl.grey100,lighter:Nl.grey98,darker:Nl.grey95,darkest:Nl.grey90},custom:{focusBorder:Nl.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Nl.grey45,disabledContrastText:Nl.grey100},selected:{main:Nl.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Nl.grey100,selectedContrastText:Nl.grey100,mainContrastText:Nl.grey100,alternativeContrastText:Nl.grey25,excludedContrastText:Nl.grey25,selectedExcludedContrastText:Nl.grey100,possibleContrastText:Nl.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},zl={mode:"dark",palette:{primary:{main:Nl.grey20,contrastText:Nl.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Nl.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Nl.grey100,dark:Nl.grey0},action:{active:Nl.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Nl.grey25,lighter:Nl.grey20,darker:Nl.grey15,darkest:Nl.grey10},custom:{focusBorder:Nl.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Nl.grey45,disabledContrastText:Nl.grey100},selected:{main:Nl.green,alternative:Nl.grey20,excluded:Nl.grey10,selectedExcluded:Nl.grey10,possible:Nl.grey80,selectedContrastText:Nl.grey100,mainContrastText:Nl.grey100,alternativeContrastText:Nl.grey100,excludedContrastText:Nl.grey100,selectedExcludedContrastText:Nl.grey100,possibleContrastText:Nl.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},jl={},Fl=e=>({MuiCheckbox:{defaultProps:{color:"secondary"}},MuiRadio:{defaultProps:{color:"secondary"}},MuiTabs:{defaultProps:{indicatorColor:"secondary"}},MuiTypography:{styleOverrides:{root:{color:e.palette.text.primary}}},MuiGrid:{styleOverrides:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},styleOverrides:{root:{borderRadius:2,border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}}},MuiIconButton:{styleOverrides:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&.Mui-focusVisible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&.Mui-active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(.Mui-active):not(.Mui-focusVisible)":{borderColor:"transparent",boxShadow:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}}},MuiButton:{styleOverrides:{outlined:{padding:"3px 11px",["&.".concat(El.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(El.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(El.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&.Mui-active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(El.disabled)]:{backgroundColor:e.palette.btn.disabled}}}},MuiAccordionSummary:{styleOverrides:{content:{margin:"8px 0"}}}});function $l(e){let t=Al,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=zl));const r=JSON.stringify(t);if(jl[r])return jl[r];const o={palette:u(u({type:t.mode},Dl.palette),t.palette),typography:u({},Dl.typography),shadows:Dl.shadows,shape:u({},Dl.shape)},i=u(u({},o),{},{components:Fl(o)});return jl[r]=fs(i),jl[r].name=n,jl[r]}Jo.configure((e=>"njs-".concat("e972","-").concat(e.replace("Mui",""))));var Bl=w.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null});const Wl={active:!0,select:!0,passive:!0,edit:!1};function Hl(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(Wl).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Wl[e],n[e]=!Wl[e])})),e.constraints=n,e.interactions=t}var Ul=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={},o={get:e=>t[e],set:(n,o)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=o,r[n]=e({type:"SET",value:o}),o},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))},destroy:()=>{Object.keys(r).forEach((e=>{r[e]&&r[e]()}))}};return[()=>{const[,e]=S.useState(t);return S.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[o]},o]};const Vl=S.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:i}=e;const[a,s]=S.useState(n),[l,c]=S.useState(),{theme:u}=S.useMemo((()=>({theme:$l(l)})),[l]),[d,p]=S.useState([]);return S.useEffect((()=>{r&&r()}),[]),S.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>s((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),a&&(a.modelStore=o,a.selectionStore=i),w.createElement(Rr,{injectFirst:!0},w.createElement(Es,{theme:u},w.createElement(Bl.Provider,{value:a},d)))}));function Gl(e){let t,{app:n,context:r}=e,o=!1;const i=new Promise((e=>{t=e})),a=w.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","6.0.0-alpha.3"),s.setAttribute("data-app-id",n.id),document.body.appendChild(s),r&&Hl(r);const l=function(e){const[t,n]=Ul({}),[r,o]=Ul({}),[i,a]=Ul({}),[s,l]=Ul({}),[c,u]=Ul({}),[,d]=Ul({}),p=e=>{let{type:t,value:r}=e;const i=d.get(r.id);d.set(r.id,{});const s=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("closed",c),r.removeListener("changed",s),n.clear(r.id),o.clear(r.id),a.clear(r.id),l.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(i||(r.on("changed",s),r.once("closed",c))),c},[f,h]=Ul({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:s,rpcRequestModelStore:l,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(n.id),c=function(e){const[t,n]=Ul({}),[r,o]=Ul({}),[i,a]=Ul({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(n.id),u=it.createRoot(s);u.render(w.createElement(Vl,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:c}));const d={},p=[],f=[];return[{toggleFocusOfCells(e){Object.keys(d).forEach((t=>{var n;null===(n=d[t].current)||void 0===n||n.toggleFocus(t===e)}))},cells:d,addCell(e,t){d[e]=t},removeCell(e){delete d[e]},add:(e,t)=>(async()=>{await i,f.push(e),p.push(t),a.current.setComps(f)})(),remove(e){o||(async t=>{await i;const n=f.indexOf(e);var r;-1!==n&&(null===(r=p[n])||void 0===r||r.call(p),f.splice(n,1),p.splice(n,1));null==a||null===(t=a.current)||void 0===t||t.setComps(f)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,e&&Hl(e),a.current.setContext(e)})()},destroy(){o=!0,p.forEach((e=>{e&&e()})),l.destroy(),u.unmount(),document.body.removeChild(s)}},l,c,a,i]}const Kl=e=>e.scrollTop;function Jl(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function Zl(e){return Yo("MuiPaper",e)}ei("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 Xl=bs("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Ls((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]})))),Ql=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiPaper"}),r=ms(),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation",...c}=n,u={...n,component:i,elevation:a,square:s,variant:l},d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Hi({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Zl,o)})(u);return xr.jsx(Xl,{as:i,ownerState:u,className:Xo(d.root,o),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${yi("#fff",Ya(a))}, ${yi("#fff",Ya(a))})`}},...c.style}})}));function Yl(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=i,f=u[e]||r,h=Ji(d[e],o),{props:{component:m,...g},internalRef:b}=Ki({className:n,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),y=Di(b,h?.ref,t.ref),v="root"===e?m||c:m;return[f,Ui(f,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...v&&!s&&{as:v},...v&&s&&{component:v},ref:y},o)]}function ec(e){return Yo("MuiIconButton",e)}const tc=ei("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),nc=bs(dl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${Ur(n.color)}`],n.edge&&t[`edge${Ur(n.edge)}`],t[`size${Ur(n.size)}`]]}})(Ls((({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:yi(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]}))),Ls((({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yi((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}}))),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${tc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${tc.loading}`]:{color:"transparent"}})))),rc=bs("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})((({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]}))),oc=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium",id:u,loading:d=null,loadingIndicator:p,...f}=n,h=_i(u),m=p??xr.jsx(kl,{"aria-labelledby":h,color:"inherit",size:16}),g={...n,edge:r,color:a,disabled:s,disableFocusRipple:l,loading:d,loadingIndicator:m,size:c},b=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e;return Hi({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${Ur(r)}`,o&&`edge${Ur(o)}`,`size${Ur(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},ec,t)})(g);return xr.jsxs(nc,{id:d?h:u,className:Xo(b.root,i),centerRipple:!0,focusRipple:!l,disabled:s||d,ref:t,...f,ownerState:g,children:["boolean"==typeof d&&xr.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:xr.jsx(rc,{className:b.loadingIndicator,ownerState:g,children:d&&m})}),o]})}));function ic(e){return Yo("MuiTypography",e)}ei("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ac={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},sc=Go,lc=bs("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Ur(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ls((({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter((([e,t])=>"inherit"!==e&&t&&"object"==typeof t)).map((([e,t])=>({props:{variant:e},style:t}))),...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette?.text||{}).filter((([,e])=>"string"==typeof e)).map((([t])=>({props:{color:`text${Ur(t)}`},style:{color:(e.vars||e).palette.text[t]}}))),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]})))),cc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},uc=S.forwardRef((function(e,t){const{color:n,...r}=Ps({props:e,name:"MuiTypography"}),o=sc({...r,...!ac[n]&&{color:n}}),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=cc,...f}=o,h={...o,align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p},m=s||(u?"p":p[d]||cc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Hi({root:["root",i,"inherit"!==e.align&&`align${Ur(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ic,a)})(h);return xr.jsx(lc,{as:m,ref:t,className:Xo(g.root,a),...f,ownerState:h,style:{..."inherit"!==i&&{"--Typography-textAlign":i},...f.style}})}));var dc="top",pc="bottom",fc="right",hc="left",mc="auto",gc=[dc,pc,fc,hc],bc="start",yc="end",vc="clippingParents",Sc="viewport",wc="popper",xc="reference",kc=gc.reduce((function(e,t){return e.concat([t+"-"+bc,t+"-"+yc])}),[]),Cc=[].concat(gc,[mc]).reduce((function(e,t){return e.concat([t,t+"-"+bc,t+"-"+yc])}),[]),Ec=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Rc(e){return e?(e.nodeName||"").toLowerCase():null}function Lc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pc(e){return e instanceof Lc(e).Element||e instanceof Element}function Tc(e){return e instanceof Lc(e).HTMLElement||e instanceof HTMLElement}function Oc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Lc(e).ShadowRoot||e instanceof ShadowRoot)}var Ic={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Tc(o)&&Rc(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Tc(r)&&Rc(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function _c(e){return e.split("-")[0]}var Mc=Math.max,qc=Math.min,Dc=Math.round;function Nc(){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 Ac(){return!/^((?!chrome|android).)*safari/i.test(Nc())}function zc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Tc(e)&&(o=e.offsetWidth>0&&Dc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Dc(r.height)/e.offsetHeight||1);var a=(Pc(e)?Lc(e):window).visualViewport,s=!Ac()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function jc(e){var t=zc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Fc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Oc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $c(e){return Lc(e).getComputedStyle(e)}function Bc(e){return["table","td","th"].indexOf(Rc(e))>=0}function Wc(e){return((Pc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hc(e){return"html"===Rc(e)?e:e.assignedSlot||e.parentNode||(Oc(e)?e.host:null)||Wc(e)}function Uc(e){return Tc(e)&&"fixed"!==$c(e).position?e.offsetParent:null}function Vc(e){for(var t=Lc(e),n=Uc(e);n&&Bc(n)&&"static"===$c(n).position;)n=Uc(n);return n&&("html"===Rc(n)||"body"===Rc(n)&&"static"===$c(n).position)?t:n||function(e){var t=/firefox/i.test(Nc());if(/Trident/i.test(Nc())&&Tc(e)&&"fixed"===$c(e).position)return null;var n=Hc(e);for(Oc(n)&&(n=n.host);Tc(n)&&["html","body"].indexOf(Rc(n))<0;){var r=$c(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Gc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Kc(e,t,n){return Mc(e,qc(t,n))}function Jc(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Zc(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Xc={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=_c(n.placement),l=Gc(s),c=[hc,fc].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Jc("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Zc(e,gc))}(o.padding,n),d=jc(i),p="y"===l?dc:hc,f="y"===l?pc:fc,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=Vc(i),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,v=u[p],S=b-d[c]-u[f],w=b/2-d[c]/2+y,x=Kc(v,w,S),k=l;n.modifiersData[r]=((t={})[k]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Fc(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qc(e){return e.split("-")[1]}var Yc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eu(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),v=hc,S=dc,w=window;if(c){var x=Vc(n),k="clientHeight",C="clientWidth";if(x===Lc(n)&&"static"!==$c(x=Wc(n)).position&&"absolute"===s&&(k="scrollHeight",C="scrollWidth"),o===dc||(o===hc||o===fc)&&i===yc)S=pc,m-=(d&&x===w&&w.visualViewport?w.visualViewport.height:x[k])-r.height,m*=l?1:-1;if(o===hc||(o===dc||o===pc)&&i===yc)v=fc,f-=(d&&x===w&&w.visualViewport?w.visualViewport.width:x[C])-r.width,f*=l?1:-1}var E,R=Object.assign({position:s},c&&Yc),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Dc(n*o)/o||0,y:Dc(r*o)/o||0}}({x:f,y:m},Lc(n)):{x:f,y:m};return f=L.x,m=L.y,l?Object.assign({},R,((E={})[S]=y?"0":"",E[v]=b?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},R,((t={})[S]=y?m+"px":"",t[v]=b?f+"px":"",t.transform="",t))}var tu={passive:!0};var nu={left:"right",right:"left",bottom:"top",top:"bottom"};function ru(e){return e.replace(/left|right|bottom|top/g,(function(e){return nu[e]}))}var ou={start:"end",end:"start"};function iu(e){return e.replace(/start|end/g,(function(e){return ou[e]}))}function au(e){var t=Lc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function su(e){return zc(Wc(e)).left+au(e).scrollLeft}function lu(e){var t=$c(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function cu(e){return["html","body","#document"].indexOf(Rc(e))>=0?e.ownerDocument.body:Tc(e)&&lu(e)?e:cu(Hc(e))}function uu(e,t){var n;void 0===t&&(t=[]);var r=cu(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Lc(r),a=o?[i].concat(i.visualViewport||[],lu(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(uu(Hc(a)))}function du(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pu(e,t,n){return t===Sc?du(function(e,t){var n=Lc(e),r=Wc(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Ac();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+su(e),y:l}}(e,n)):Pc(t)?function(e,t){var n=zc(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):du(function(e){var t,n=Wc(e),r=au(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Mc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Mc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+su(e),l=-r.scrollTop;return"rtl"===$c(o||n).direction&&(s+=Mc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Wc(e)))}function fu(e,t,n,r){var o="clippingParents"===t?function(e){var t=uu(Hc(e)),n=["absolute","fixed"].indexOf($c(e).position)>=0&&Tc(e)?Vc(e):e;return Pc(n)?t.filter((function(e){return Pc(e)&&Fc(e,n)&&"body"!==Rc(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=pu(e,n,r);return t.top=Mc(o.top,t.top),t.right=qc(o.right,t.right),t.bottom=qc(o.bottom,t.bottom),t.left=Mc(o.left,t.left),t}),pu(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function hu(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?_c(o):null,a=o?Qc(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case dc:t={x:s,y:n.y-r.height};break;case pc:t={x:s,y:n.y+n.height};break;case fc:t={x:n.x+n.width,y:l};break;case hc:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Gc(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case bc:t[c]=t[c]-(n[u]/2-r[u]/2);break;case yc:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function mu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?vc:s,c=n.rootBoundary,u=void 0===c?Sc:c,d=n.elementContext,p=void 0===d?wc:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=Jc("number"!=typeof g?g:Zc(g,gc)),y=p===wc?xc:wc,v=e.rects.popper,S=e.elements[h?y:p],w=fu(Pc(S)?S:S.contextElement||Wc(e.elements.popper),l,u,a),x=zc(e.elements.reference),k=hu({reference:x,element:v,placement:o}),C=du(Object.assign({},v,k)),E=p===wc?C:x,R={top:w.top-E.top+b.top,bottom:E.bottom-w.bottom+b.bottom,left:w.left-E.left+b.left,right:E.right-w.right+b.right},L=e.modifiersData.offset;if(p===wc&&L){var P=L[o];Object.keys(R).forEach((function(e){var t=[fc,pc].indexOf(e)>=0?1:-1,n=[dc,pc].indexOf(e)>=0?"y":"x";R[e]+=P[n]*t}))}return R}function gu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Cc:l,u=Qc(r),d=u?s?kc:kc.filter((function(e){return Qc(e)===u})):gc,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=mu(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[_c(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var bu={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=_c(g),y=l||(b===g||!h?[ru(g)]:function(e){if(_c(e)===mc)return[];var t=ru(e);return[iu(e),t,iu(t)]}(g)),v=[g].concat(y).reduce((function(e,n){return e.concat(_c(n)===mc?gu(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),S=t.rects.reference,w=t.rects.popper,x=new Map,k=!0,C=v[0],E=0;E<v.length;E++){var R=v[E],L=_c(R),P=Qc(R)===bc,T=[dc,pc].indexOf(L)>=0,O=T?"width":"height",I=mu(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),_=T?P?fc:hc:P?pc:dc;S[O]>w[O]&&(_=ru(_));var M=ru(_),q=[];if(i&&q.push(I[L]<=0),s&&q.push(I[_]<=0,I[M]<=0),q.every((function(e){return e}))){C=R,k=!1;break}x.set(R,q)}if(k)for(var D=function(e){var t=v.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},N=h?3:1;N>0;N--){if("break"===D(N))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function yu(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function vu(e){return[dc,fc,pc,hc].some((function(t){return e[t]>=0}))}var Su={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Cc.reduce((function(e,n){return e[n]=function(e,t,n){var r=_c(e),o=[hc,dc].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[hc,fc].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var wu={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=mu(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=_c(t.placement),y=Qc(t.placement),v=!y,S=Gc(b),w="x"===S?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(x){if(i){var T,O="y"===S?dc:hc,I="y"===S?pc:fc,_="y"===S?"height":"width",M=x[S],q=M+g[O],D=M-g[I],N=f?-C[_]/2:0,A=y===bc?k[_]:C[_],z=y===bc?-C[_]:-k[_],j=t.elements.arrow,F=f&&j?jc(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[O],W=$[I],H=Kc(0,k[_],F[_]),U=v?k[_]/2-N-H-B-R.mainAxis:A-H-B-R.mainAxis,V=v?-k[_]/2+N+H+W+R.mainAxis:z+H+W+R.mainAxis,G=t.elements.arrow&&Vc(t.elements.arrow),K=G?"y"===S?G.clientTop||0:G.clientLeft||0:0,J=null!=(T=null==L?void 0:L[S])?T:0,Z=M+V-J,X=Kc(f?qc(q,M+U-J-K):q,M,f?Mc(D,Z):D);x[S]=X,P[S]=X-M}if(s){var Q,Y="x"===S?dc:hc,ee="x"===S?pc:fc,te=x[w],ne="y"===w?"height":"width",re=te+g[Y],oe=te-g[ee],ie=-1!==[dc,hc].indexOf(b),ae=null!=(Q=null==L?void 0:L[w])?Q:0,se=ie?re:te-k[ne]-C[ne]-ae+R.altAxis,le=ie?te+k[ne]+C[ne]-ae-R.altAxis:oe,ce=f&&ie?function(e,t,n){var r=Kc(e,t,n);return r>n?n:r}(se,te,le):Kc(f?se:re,te,f?le:oe);x[w]=ce,P[w]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function xu(e,t,n){void 0===n&&(n=!1);var r=Tc(t),o=Tc(t)&&function(e){var t=e.getBoundingClientRect(),n=Dc(t.width)/e.offsetWidth||1,r=Dc(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Wc(t),a=zc(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Rc(t)||lu(i))&&(s=function(e){return e!==Lc(e)&&Tc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:au(e);var t}(t)),Tc(t)?((l=zc(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=su(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ku(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Cu(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Eu={placement:"bottom",modifiers:[],strategy:"absolute"};function Ru(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Lu(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Eu:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Eu,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:Pc(e)?uu(e):e.contextElement?uu(e.contextElement):[],popper:uu(t)};var u,d,p=function(e){var t=ku(e);return Ec.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((u=[].concat(r,o.options.modifiers),d=u.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=p.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(Ru(t,n)){o.rects={reference:xu(t,Vc(n),"fixed"===o.options.strategy),popper:jc(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof a&&(o=a({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:Cu((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!Ru(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var Pu=Lu({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=Lc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,tu)})),s&&l.addEventListener("resize",n.update,tu),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,tu)})),s&&l.removeEventListener("resize",n.update,tu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=hu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:_c(t.placement),variation:Qc(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,eu(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,eu(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ic,Su,bu,wu,Xc,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=mu(t,{elementContext:"reference"}),s=mu(t,{altBoundary:!0}),l=yu(a,r),c=yu(s,o,i),u=vu(l),d=vu(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Tu=S.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=S.useState(null),s=Di(S.isValidElement(n)?Zi(n):null,t);if(di((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),di((()=>{if(i&&!o)return Ti(t,i),()=>{Ti(t,null)}}),[t,i,o]),o){if(S.isValidElement(n)){const e={ref:s};return S.cloneElement(n,e)}return n}return i?zs.createPortal(n,i):i}));function Ou(e){return Yo("MuiPopper",e)}function Iu(e){return"function"==typeof e?e():e}ei("MuiPopper",["root"]);const _u={},Mu=S.forwardRef((function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:a,open:s,placement:l,popperOptions:c,popperRef:u,slotProps:d={},slots:p={},TransitionProps:f,ownerState:h,...m}=e,g=S.useRef(null),b=Di(g,t),y=S.useRef(null),v=Di(y,u),w=S.useRef(v);di((()=>{w.current=v}),[v]),S.useImperativeHandle(u,(()=>y.current),[]);const x=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}}(l,o),[k,C]=S.useState(x),[E,R]=S.useState(Iu(n));S.useEffect((()=>{y.current&&y.current.forceUpdate()})),S.useEffect((()=>{n&&R(Iu(n))}),[n]),di((()=>{if(!E||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=a&&(e=e.concat(a)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=Pu(E,g.current,{placement:x,...c,modifiers:e});return w.current(t),()=>{t.destroy(),w.current(null)}}),[E,i,a,s,c,x]);const L={placement:k};null!==f&&(L.TransitionProps=f);const P=(e=>{const{classes:t}=e;return Hi({root:["root"]},Ou,t)})(e),T=p.root??"div",O=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Ji(n,r),{props:s,internalRef:l}=Ki({...i,externalSlotProps:a});return Ui(t,{...s,ref:Di(l,a?.ref,e.additionalProps?.ref)},r)}({elementType:T,externalSlotProps:d.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:P.root});return xr.jsx(T,{...O,children:"function"==typeof r?r(L):r})})),qu=S.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:c,placement:u="bottom",popperOptions:d=_u,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={},...b}=e,[y,v]=S.useState(!0);if(!s&&!c&&(!h||y))return null;let w;if(o)w=o;else if(n){const e=Iu(n);w=e&&void 0!==e.nodeType?Li(e).body:Li(null).body}const x=c||!s||h&&!y?void 0:"none",k=h?{in:c,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:void 0;return xr.jsx(Tu,{disablePortal:a,container:w,children:xr.jsx(Mu,{anchorEl:n,direction:i,disablePortal:a,modifiers:l,ref:t,open:h?!y:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g,...b,style:{position:"fixed",top:0,left:0,display:x,...f},TransitionProps:k,children:r})})})),Du=bs(qu,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nu=S.forwardRef((function(e,t){const n=ra(),r=Ps({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:s,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,slots:b,slotProps:y,...v}=r,S=b?.root??a?.Root,w={anchorEl:o,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,...v};return xr.jsx(Du,{as:i,direction:n?"rtl":"ltr",slots:{root:S},slotProps:y??s,...w,ref:t})}));function Au(e){return parseInt(e,10)||0}const zu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ju(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Fu=S.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a,...s}=e,{current:l}=S.useRef(null!=a),c=S.useRef(null),u=Di(t,c),d=S.useRef(null),p=S.useRef(null),f=S.useCallback((()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=Pi(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Au(i.paddingBottom)+Au(i.paddingTop),l=Au(i.borderBottomWidth)+Au(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),h=qi((()=>{const e=c.current,t=f();if(!e||!t||ju(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n})),m=S.useCallback((()=>{const e=c.current,t=f();if(!e||!t||ju(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),g=S.useRef(-1);di((()=>{const e=Ri(m),t=c?.current;if(!t)return;const n=Pi(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[f,m,h]),di((()=>{m()}));return xr.jsxs(S.Fragment,{children:[xr.jsx("textarea",{value:a,onChange:e=>{l||m(),n&&n(e)},ref:u,rows:o,style:i,...s}),xr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...zu,...i,paddingTop:0,paddingBottom:0}})]})}));function $u(e){return"string"==typeof e}function Bu({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const Wu=S.createContext(void 0);function Hu(){return S.useContext(Wu)}function Uu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Vu(e){return Yo("MuiInputBase",e)}const Gu=ei("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Ku;const Ju=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ur(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Zu=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Xu=bs("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ju})(Ls((({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Gu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]})))),Qu=bs("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Zu})(Ls((({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Gu.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Gu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}}))),Yu=function(e){return function(t){return xr.jsx(Rs,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ed=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,color:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,error:h,fullWidth:m=!1,id:g,inputComponent:b="input",inputProps:y={},inputRef:v,margin:w,maxRows:x,minRows:k,multiline:C=!1,name:E,onBlur:R,onChange:L,onClick:P,onFocus:T,onKeyDown:O,onKeyUp:I,placeholder:_,readOnly:M,renderSuffix:q,rows:D,size:N,slotProps:A={},slots:z={},startAdornment:j,type:F="text",value:$,...B}=n,W=null!=y.value?y.value:$,{current:H}=S.useRef(null!=W),U=S.useRef(),V=S.useCallback((e=>{}),[]),G=Di(U,v,y.ref,V),[K,J]=S.useState(!1),Z=Hu(),X=Bu({props:n,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});X.focused=Z?Z.focused:K,S.useEffect((()=>{!Z&&d&&K&&(J(!1),R&&R())}),[Z,d,K,R]);const Q=Z&&Z.onFilled,Y=Z&&Z.onEmpty,ee=S.useCallback((e=>{!function(e,t=!1){return e&&(Uu(e.value)&&""!==e.value||t&&Uu(e.defaultValue)&&""!==e.defaultValue)}(e)?Y&&Y():Q&&Q()}),[Q,Y]);di((()=>{H&&ee({value:W})}),[W,ee,H]);S.useEffect((()=>{ee(U.current)}),[]);let te=b,ne=y;C&&"input"===te&&(ne=D?{type:void 0,minRows:D,maxRows:D,...ne}:{type:void 0,maxRows:x,minRows:k,...ne},te=Fu);S.useEffect((()=>{Z&&Z.setAdornedStart(Boolean(j))}),[Z,j]);const re={...n,color:X.color||"primary",disabled:X.disabled,endAdornment:f,error:X.error,focused:X.focused,formControl:Z,fullWidth:m,hiddenLabel:X.hiddenLabel,multiline:C,size:X.size,startAdornment:j,type:F},oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Hi({root:["root",`color${Ur(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Ur(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Vu,t)})(re),ie=z.root||l.Root||Xu,ae=A.root||c.root||{},se=z.input||l.Input||Qu;return ne={...ne,...A.input??c.input},xr.jsxs(S.Fragment,{children:[!p&&"function"==typeof Yu&&(Ku||(Ku=xr.jsx(Yu,{}))),xr.jsxs(ie,{...ae,ref:t,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),P&&P(e)},...B,...!$u(ie)&&{ownerState:{...re,...ae.ownerState}},className:Xo(oe.root,ae.className,a,M&&"MuiInputBase-readOnly"),children:[j,xr.jsx(Wu.Provider,{value:null,children:xr.jsx(se,{"aria-invalid":X.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:u,disabled:X.disabled,id:g,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:E,placeholder:_,readOnly:M,required:X.required,rows:D,value:W,onKeyDown:O,onKeyUp:I,type:F,...ne,...!$u(se)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:G,className:Xo(oe.input,ne.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{R&&R(e),y.onBlur&&y.onBlur(e),Z&&Z.onBlur?Z.onBlur(e):J(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||U.current;if(null==t)throw new Error(at(1));ee({value:t.value})}y.onChange&&y.onChange(e,...t),L&&L(e,...t)},onFocus:e=>{T&&T(e),y.onFocus&&y.onFocus(e),Z&&Z.onFocus?Z.onFocus(e):J(!0)}})}),f,q?q({...X,startAdornment:j}):null]})]})}));function td(e){return Yo("MuiOutlinedInput",e)}const nd={...Gu,...ei("MuiOutlinedInput",["root","notchedOutline","input"])},rd={entering:{opacity:1},entered:{opacity:1}},od=S.forwardRef((function(e,t){const n=ms(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Gs,...y}=e,v=S.useRef(null),w=Di(v,Zi(a),t),x=e=>t=>{if(e){const n=v.current;void 0===t?e(n):e(n,t)}},k=x(d),C=x(((e,t)=>{Kl(e);const r=Jl({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),E=x(u),R=x(h),L=x((e=>{const t=Jl({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),P=x(f);return xr.jsx(b,{appear:i,in:l,nodeRef:v,onEnter:C,onEntered:E,onEntering:k,onExit:L,onExited:P,onExiting:R,addEndListener:e=>{o&&o(v.current,e)},timeout:g,...y,children:(e,{ownerState:t,...n})=>S.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...rd[e],...m,...a.props.style},ref:w,...n})})}));function id(e){return Yo("MuiBackdrop",e)}ei("MuiBackdrop",["root","invisible"]);const ad=bs("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),sd=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:s,components:l={},componentsProps:c={},slotProps:u={},slots:d={},TransitionComponent:p,transitionDuration:f,...h}=n,m={...n,component:i,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return Hi({root:["root",n&&"invisible"]},id,t)})(m),b={slots:{transition:p,root:l.Root,...d},slotProps:{...c,...u}},[y,v]=Yl("root",{elementType:ad,externalForwardedProps:b,className:Xo(g.root,o),ownerState:m}),[S,w]=Yl("transition",{elementType:od,externalForwardedProps:b,ownerState:m});return xr.jsx(S,{in:s,timeout:f,...h,...w,children:xr.jsx(y,{"aria-hidden":!0,...v,classes:g,ref:t,children:r})})}));function ld(e){return Yo("MuiBadge",e)}const cd=ei("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"]),ud=bs("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),dd=bs("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Ur(n.anchorOrigin.vertical)}${Ur(n.anchorOrigin.horizontal)}${Ur(n.overlap)}`],"default"!==n.color&&t[`color${Ur(n.color)}`],n.invisible&&t.invisible]}})(Ls((({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(fl(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${cd.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${cd.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${cd.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${cd.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${cd.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${cd.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${cd.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${cd.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}))));function pd(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const fd=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:o,classes:i,component:a,components:s={},componentsProps:l={},children:c,overlap:u="rectangular",color:d="default",invisible:p=!1,max:f=99,badgeContent:h,slots:m,slotProps:g,showZero:b=!1,variant:y="standard",...v}=n,{badgeContent:S,invisible:w,max:x,displayValue:k}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=Wi({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:s,max:l=r}=a?i:e;return{badgeContent:s,invisible:a,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}}({max:f,invisible:p,badgeContent:h,showZero:b}),C=Wi({anchorOrigin:pd(r),color:d,overlap:u,variant:y,badgeContent:h}),E=w||null==S&&"dot"!==y,{color:R=d,overlap:L=u,anchorOrigin:P,variant:T=y}=E?C:n,O=pd(P),I="dot"!==T?k:void 0,_={...n,badgeContent:S,invisible:E,max:x,displayValue:I,showZero:b,anchorOrigin:O,color:R,overlap:L,variant:T},M=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return Hi({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Ur(n.vertical)}${Ur(n.horizontal)}`,`anchorOrigin${Ur(n.vertical)}${Ur(n.horizontal)}${Ur(o)}`,`overlap${Ur(o)}`,"default"!==t&&`color${Ur(t)}`]},ld,a)})(_),q={slots:{root:m?.root??s.Root,badge:m?.badge??s.Badge},slotProps:{root:g?.root??l.root,badge:g?.badge??l.badge}},[D,N]=Yl("root",{elementType:ud,externalForwardedProps:{...q,...v},ownerState:_,className:Xo(M.root,o),ref:t,additionalProps:{as:a}}),[A,z]=Yl("badge",{elementType:dd,externalForwardedProps:q,ownerState:_,className:M.badge});return xr.jsxs(D,{...N,children:[c,xr.jsx(A,{...z,children:I})]})})),hd=ei("MuiBox",["root"]),md=fs(),gd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Pr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(zo),a=S.forwardRef((function(e,a){const s=Wo(n),{className:l,component:c="div",...u}=Go(e);return xr.jsx(i,{as:c,ref:a,className:Xo(l,o?o(r):r),theme:t&&s[t]||s,...u})}));return a}({themeId:st,defaultTheme:md,defaultClassName:hd.root,generateClassName:Jo.generate});function bd(e){return Yo("PrivateSwitchBase",e)}ei("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const yd=bs(dl,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),vd=bs("input",{name:"MuiSwitchBase",shouldForwardProp:gs})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Sd=S.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:s=!1,edge:l=!1,icon:c,id:u,inputProps:d,inputRef:p,name:f,onBlur:h,onChange:m,onFocus:g,readOnly:b,required:y=!1,tabIndex:v,type:S,value:w,slots:x={},slotProps:k={},...C}=e,[E,R]=Mi({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),L=Hu();let P=a;L&&void 0===P&&(P=L.disabled);const T="checkbox"===S||"radio"===S,O={...e,checked:E,disabled:P,disableFocusRipple:s,edge:l},I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Hi({root:["root",n&&"checked",r&&"disabled",o&&`edge${Ur(o)}`],input:["input"]},bd,t)})(O),_={slots:x,slotProps:{input:d,...k}},[M,q]=Yl("root",{ref:t,elementType:yd,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{..._,component:"span",...C},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{g&&g(e),L&&L.onFocus&&L.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{h&&h(e),L&&L.onBlur&&L.onBlur(e)})(t)}}),ownerState:O,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:P,role:void 0,tabIndex:null}}),[D,N]=Yl("input",{ref:p,elementType:vd,className:I.input,externalForwardedProps:_,getSlotProps:e=>({onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),m&&m(e,t)})(t)}}),ownerState:O,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:P,id:T?u:void 0,name:f,readOnly:b,required:y,tabIndex:v,type:S,..."checkbox"===S&&void 0===w?{}:{value:w}}});return xr.jsxs(M,{...q,children:[xr.jsx(D,{...N}),E?o:c]})}));var wd=_s(xr.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"),xd=_s(xr.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"),kd=_s(xr.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 Cd(e){return Yo("MuiCheckbox",e)}const Ed=ei("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Rd=bs(Sd,{shouldForwardProp:e=>gs(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Ur(n.size)}`],"default"!==n.color&&t[`color${Ur(n.color)}`]]}})(Ls((({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:yi(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yi(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t},style:{[`&.${Ed.checked}, &.${Ed.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ed.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),Ld=xr.jsx(xd,{}),Pd=xr.jsx(wd,{}),Td=xr.jsx(kd,{}),Od=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Ld,color:o="primary",icon:i=Pd,indeterminate:a=!1,indeterminateIcon:s=Td,inputProps:l,size:c="medium",disableRipple:u=!1,className:d,slots:p={},slotProps:f={},...h}=n,m=a?s:i,g=a?s:r,b={...n,disableRipple:u,color:o,indeterminate:a,size:c},y=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=Hi({root:["root",n&&"indeterminate",`color${Ur(r)}`,`size${Ur(o)}`]},Cd,t);return{...t,...i}})(b),v=f.input??l,[w,x]=Yl("root",{ref:t,elementType:Rd,className:Xo(y.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:f,...h},ownerState:b,additionalProps:{type:"checkbox",icon:S.cloneElement(m,{fontSize:m.props.fontSize??c}),checkedIcon:S.cloneElement(g,{fontSize:g.props.fontSize??c}),disableRipple:u,slots:p,slotProps:{input:Ms("function"==typeof v?v(b):v,{"data-indeterminate":a})}}});return xr.jsx(w,{...x,classes:y})}));function Id(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _d(e){return parseInt(Pi(e).getComputedStyle(e).paddingRight,10)||0}function Md(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=!i.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Id(e,o)}))}function qd(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Dd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Li(e);return t.body===e?Pi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Bi(Pi(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${_d(r)+e}px`;const t=Li(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${_d(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Li(r).body;else{const t=r.parentElement,n=Pi(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Nd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ad(e){const t=[],n=[];return Array.from(e.querySelectorAll(Nd)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function zd(){return!0}function jd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Ad,isEnabled:a=zd,open:s}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),d=S.useRef(null),p=S.useRef(null),f=S.useRef(!1),h=S.useRef(null),m=Di(Zi(t),h),g=S.useRef(null);S.useEffect((()=>{s&&h.current&&(f.current=!n)}),[n,s]),S.useEffect((()=>{if(!s||!h.current)return;const e=Li(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),S.useEffect((()=>{if(!s||!h.current)return;const e=Li(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(h.current)),n.length>0){const e=Boolean(g.current?.shiftKey&&"Tab"===g.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return xr.jsxs(S.Fragment,{children:[xr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),xr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const Fd=()=>{},$d=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Id(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Md(t,e.mount,e.modalRef,r,!0);const o=qd(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=qd(this.containers,(t=>t.modals.includes(e))),r=this.containers[n];r.restore||(r.restore=Dd(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=qd(this.containers,(t=>t.modals.includes(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Id(e.modalRef,t),Md(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Id(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Bd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=S.useRef({}),p=S.useRef(null),f=S.useRef(null),h=Di(f,u),[m,g]=S.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const v=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),w=()=>{$d.mount(v(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},x=qi((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Li(p.current).body;$d.add(v(),e),f.current&&w()})),k=()=>$d.isTopModal(v()),C=qi((e=>{p.current=e,e&&(c&&k()?w():f.current&&Id(f.current,y))})),E=S.useCallback((()=>{$d.remove(v(),y)}),[y]);S.useEffect((()=>()=>{E()}),[E]),S.useEffect((()=>{c?x():b&&o||E()}),[c,E,b,o,x]);const R=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},L=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Vi(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:R(r),ref:h}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:L(t),open:c}},getTransitionProps:()=>({onEnter:Ei((()=>{g(!1),i&&i()}),s?.props.onEnter??Fd),onExited:Ei((()=>{g(!0),a&&a(),o&&E()}),s?.props.onExited??Fd)}),rootRef:h,portalRef:C,isTopModal:k,exited:m,hasTransition:b}}function Wd(e){return Yo("MuiModal",e)}ei("MuiModal",["root","hidden","backdrop"]);const Hd=bs("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ls((({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]})))),Ud=bs(sd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Vd=S.forwardRef((function(e,t){const n=Ps({name:"MuiModal",props:e}),{BackdropComponent:r=Ud,BackdropProps:o,classes:i,className:a,closeAfterTransition:s=!1,children:l,container:c,component:u,components:d={},componentsProps:p={},disableAutoFocus:f=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:g=!1,disableRestoreFocus:b=!1,disableScrollLock:y=!1,hideBackdrop:v=!1,keepMounted:w=!1,onBackdropClick:x,onClose:k,onTransitionEnter:C,onTransitionExited:E,open:R,slotProps:L={},slots:P={},theme:T,...O}=n,I={...n,closeAfterTransition:s,disableAutoFocus:f,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:g,disableRestoreFocus:b,disableScrollLock:y,hideBackdrop:v,keepMounted:w},{getRootProps:_,getBackdropProps:M,getTransitionProps:q,portalRef:D,isTopModal:N,exited:A,hasTransition:z}=Bd({...I,rootRef:t}),j={...I,exited:A},F=(e=>{const{open:t,exited:n,classes:r}=e;return Hi({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Wd,r)})(j),$={};if(void 0===l.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();$.onEnter=e,$.onExited=t}const B={slots:{root:d.Root,backdrop:d.Backdrop,...P},slotProps:{...p,...L}},[W,H]=Yl("root",{ref:t,elementType:Hd,externalForwardedProps:{...B,...O,component:u},getSlotProps:_,ownerState:j,className:Xo(a,F?.root,!j.open&&j.exited&&F?.hidden)}),[U,V]=Yl("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>M({...e,onClick:t=>{x&&x(t),e?.onClick&&e.onClick(t)}}),className:Xo(o?.className,F?.backdrop),ownerState:j});return w||R||z&&!A?xr.jsx(Tu,{ref:D,container:c,disablePortal:g,children:xr.jsxs(W,{...H,children:[!v&&r?xr.jsx(U,{...V}):null,xr.jsx(jd,{disableEnforceFocus:h,disableAutoFocus:f,disableRestoreFocus:b,isEnabled:N,open:R,children:S.cloneElement(l,$)})]})}):null}));function Gd(e){return Yo("MuiDivider",e)}const Kd=ei("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Jd=bs("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(Ls((({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:yi(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]})))),Zd=bs("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Ls((({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]})))),Xd=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,orientation:a="horizontal",component:s=(o||"vertical"===a?"div":"hr"),flexItem:l=!1,light:c=!1,role:u=("hr"!==s?"separator":void 0),textAlign:d="center",variant:p="fullWidth",...f}=n,h={...n,absolute:r,component:s,flexItem:l,light:c,orientation:a,role:u,textAlign:d,variant:p},m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Hi({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Gd,r)})(h);return xr.jsx(Jd,{as:s,className:Xo(m.root,i),role:u,ref:t,ownerState:h,"aria-orientation":"separator"!==u||"hr"===s&&"vertical"!==a?void 0:a,...f,children:o?xr.jsx(Zd,{className:m.wrapper,ownerState:h,children:o}):null})}));function Qd(e){return Yo("MuiFormControlLabel",e)}Xd&&(Xd.muiSkipListHighlight=!0);const Yd=ei("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ep=bs("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Yd.label}`]:t.label},t.root,t[`labelPlacement${Ur(n.labelPlacement)}`]]}})(Ls((({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Yd.disabled}`]:{cursor:"default"},[`& .${Yd.label}`]:{[`&.${Yd.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]})))),tp=bs("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ls((({theme:e})=>({[`&.${Yd.error}`]:{color:(e.vars||e).palette.error.main}})))),np=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:i={},control:a,disabled:s,disableTypography:l,inputRef:c,label:u,labelPlacement:d="end",name:p,onChange:f,required:h,slots:m={},slotProps:g={},value:b,...y}=n,v=Hu(),w=s??a.props.disabled??v?.disabled,x=h??a.props.required,k={disabled:w,required:x};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===a.props[e]&&void 0!==n[e]&&(k[e]=n[e])}));const C=Bu({props:n,muiFormControl:v,states:["error"]}),E={...n,disabled:w,labelPlacement:d,required:x,error:C.error},R=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return Hi({root:["root",n&&"disabled",`labelPlacement${Ur(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Qd,t)})(E),L={slots:m,slotProps:{...i,...g}},[P,T]=Yl("typography",{elementType:uc,externalForwardedProps:L,ownerState:E});let O=u;return null==O||O.type===uc||l||(O=xr.jsx(P,{component:"span",...T,className:Xo(R.label,T?.className),children:O})),xr.jsxs(ep,{className:Xo(R.root,o),ownerState:E,ref:t,...y,children:[S.cloneElement(a,k),x?xr.jsxs("div",{children:[O,xr.jsxs(tp,{ownerState:E,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):O]})})),rp=S.createContext();function op(e){return Yo("MuiGrid",e)}const ip=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ap=ei("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}`)),...ip.map((e=>`grid-xs-${e}`)),...ip.map((e=>`grid-sm-${e}`)),...ip.map((e=>`grid-md-${e}`)),...ip.map((e=>`grid-lg-${e}`)),...ip.map((e=>`grid-xl-${e}`))]);function sp({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const lp=bs("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},..."wrap"!==e.wrap&&{flexWrap:e.wrap}})),(function({theme:e,ownerState:t}){return Br({theme:e},Hr({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return e.startsWith("column")&&(t[`& > .${ap.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Hr({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=sp({breakpoints:e.breakpoints.values,values:t})),o=Br({theme:e},t,((t,r)=>{const o=e.spacing(t);return"0px"!==o?{marginTop:`calc(-1 * ${o})`,[`& > .${ap.item}`]:{paddingTop:o}}:n?.includes(r)?{}:{marginTop:0,[`& > .${ap.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Hr({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=sp({breakpoints:e.breakpoints.values,values:t})),o=Br({theme:e},t,((t,r)=>{const o=e.spacing(t);if("0px"!==o){return{width:`calc(100% + ${o})`,marginLeft:`calc(-1 * ${o})`,[`& > .${ap.item}`]:{paddingLeft:o}}}return n?.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${ap.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Hr({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return r;const l=Math.round(n/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${l} + ${n})`;c={flexBasis:e,maxWidth:e}}}i={flexBasis:l,flexGrow:0,maxWidth:l,...c}}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r}),{})}));const cp=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=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 n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(i,l));const u=[];l.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Hi({root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},op,t)},up=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiGrid"}),{breakpoints:r}=ms(),o=Go(n),{className:i,columns:a,columnSpacing:s,component:l="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1,...g}=o,b=p||f,y=s||f,v=S.useContext(rp),w=c?a||12:v,x={},k={...g};r.keys.forEach((e=>{null!=g[e]&&(x[e]=g[e],delete k[e])}));const C={...o,columns:w,container:c,direction:u,item:d,rowSpacing:b,columnSpacing:y,wrap:h,zeroMinWidth:m,spacing:f,...x,breakpoints:r.keys},E=cp(C);return xr.jsx(rp.Provider,{value:w,children:xr.jsx(lp,{ownerState:C,className:Xo(E.root,i),as:l,ref:t,...k})})}));function dp(e){return`scale(${e}, ${e**2})`}const pp={entering:{opacity:1,transform:dp(1)},entered:{opacity:1,transform:"none"}},fp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),hp=S.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Gs,...g}=e,b=Fi(),y=S.useRef(),v=ms(),w=S.useRef(null),x=Di(w,Zi(o),t),k=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},C=k(c),E=k(((e,t)=>{Kl(e);const{duration:n,delay:r,easing:o}=Jl({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=v.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[v.transitions.create("opacity",{duration:a,delay:r}),v.transitions.create("transform",{duration:fp?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),R=k(l),L=k(p),P=k((e=>{const{duration:t,delay:n,easing:r}=Jl({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=v.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[v.transitions.create("opacity",{duration:o,delay:n}),v.transitions.create("transform",{duration:fp?o:.666*o,delay:fp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=dp(.75),u&&u(e)})),T=k(d);return xr.jsx(m,{appear:r,in:a,nodeRef:w,onEnter:E,onEntered:R,onEntering:C,onExit:P,onExited:T,onExiting:L,addEndListener:e=>{"auto"===h&&b.start(y.current||0,e),n&&n(w.current,e)},timeout:"auto"===h?null:h,...g,children:(e,{ownerState:t,...n})=>S.cloneElement(o,{style:{opacity:0,transform:dp(.75),visibility:"exited"!==e||a?void 0:"hidden",...pp[e],...f,...o.props.style},ref:x,...n})})}));function mp(e){return Yo("MuiIcon",e)}hp&&(hp.muiSupportAuto=!0),ei("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const gp=bs("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Ur(n.color)}`],t[`fontSize${Ur(n.fontSize)}`]]}})(Ls((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:e.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:e.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(e.vars||e).palette.action.active}},{props:{color:"disabled"},style:{color:(e.vars||e).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})))]})))),bp=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:s="medium",...l}=n,c={...n,baseClassName:r,color:i,component:a,fontSize:s},u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Hi({root:["root","inherit"!==t&&`color${Ur(t)}`,`fontSize${Ur(n)}`]},mp,r)})(c);return xr.jsx(gp,{as:a,className:Xo(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t,...l})}));function yp(e){return Yo("MuiInputAdornment",e)}bp.muiName="Icon";const vp=ei("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Sp;const wp=bs("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ur(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Ls((({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${vp.positionStart}&:not(.${vp.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]})))),xp=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c,...u}=n,d=Hu()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p},h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Hi({root:["root",n&&"disablePointerEvents",o&&`position${Ur(o)}`,a,r&&"hiddenLabel",i&&`size${Ur(i)}`]},yp,t)})(f);return xr.jsx(Wu.Provider,{value:null,children:xr.jsx(wp,{as:i,ownerState:f,className:Xo(h.root,o),ref:t,...u,children:"string"!=typeof r||s?xr.jsxs(S.Fragment,{children:["start"===l?Sp||(Sp=xr.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]}):xr.jsx(uc,{color:"textSecondary",children:r})})})})),kp=S.createContext({});function Cp(e){return Yo("MuiList",e)}ei("MuiList",["root","padding","dense","subheader"]);const Ep=bs("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Rp=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l,...c}=n,u=S.useMemo((()=>({dense:a})),[a]),d={...n,component:i,dense:a,disablePadding:s},p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Hi({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Cp,t)})(d);return xr.jsx(kp.Provider,{value:u,children:xr.jsxs(Ep,{as:i,className:Xo(p.root,o),ref:t,ownerState:d,...c,children:[l,r]})})}));function Lp(e){return Yo("MuiListItem",e)}ei("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Pp=ei("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Tp(e){return Yo("MuiListItemSecondaryAction",e)}ei("MuiListItemSecondaryAction",["root","disableGutters"]);const Op=bs("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Ip=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,i=S.useContext(kp),a={...n,disableGutters:i.disableGutters},s=(e=>{const{disableGutters:t,classes:n}=e;return Hi({root:["root",t&&"disableGutters"]},Tp,n)})(a);return xr.jsx(Op,{className:Xo(s.root,r),ownerState:a,ref:t,...o})}));Ip.muiName="ListItemSecondaryAction";const _p=bs("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(Ls((({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${Pp.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]})))),Mp=bs("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),qp=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:i,component:a,components:s={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:u,...d}={},dense:p=!1,disableGutters:f=!1,disablePadding:h=!1,divider:m=!1,secondaryAction:g,slotProps:b={},slots:y={},...v}=n,w=S.useContext(kp),x=S.useMemo((()=>({dense:p||w.dense||!1,alignItems:r,disableGutters:f})),[r,w.dense,p,f]),k=S.useRef(null),C=S.Children.toArray(o),E=C.length&&(R=C[C.length-1],L=["ListItemSecondaryAction"],S.isValidElement(R)&&-1!==L.indexOf(R.type.muiName??R.type?._payload?.value?.muiName));var R,L;const P={...n,alignItems:r,dense:x.dense,disableGutters:f,disablePadding:h,divider:m,hasSecondaryAction:E},T=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return Hi({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},Lp,n)})(P),O=Di(k,t),I=y.root||s.Root||_p,_=b.root||l.root||{},M={className:Xo(T.root,_.className,i),...v};let q=a||"li";return E?(q=M.component||a?q:"div","li"===c&&("li"===q?q="div":"li"===M.component&&(M.component="div")),xr.jsx(kp.Provider,{value:x,children:xr.jsxs(Mp,{as:c,className:Xo(T.container,u),ref:O,ownerState:P,...d,children:[xr.jsx(I,{..._,...!$u(I)&&{as:q,ownerState:{...P,..._.ownerState}},...M,children:C}),C.pop()]})})):xr.jsx(kp.Provider,{value:x,children:xr.jsxs(I,{..._,as:q,ref:O,...!$u(I)&&{ownerState:{...P,..._.ownerState}},...M,children:[C,g&&xr.jsx(Ip,{children:g})]})})}));function Dp(e){return Yo("MuiListItemIcon",e)}const Np=ei("MuiListItemIcon",["root","alignItemsFlexStart"]),Ap=bs("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(Ls((({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]})))),zp=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,i=S.useContext(kp),a={...n,alignItems:i.alignItems},s=(e=>{const{alignItems:t,classes:n}=e;return Hi({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Dp,n)})(a);return xr.jsx(Ap,{className:Xo(s.root,r),ownerState:a,ref:t,...o})})),jp=ei("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Fp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $p(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function Wp(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Bp(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Hp=S.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu",...d}=e,p=S.useRef(null),f=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});di((()=>{r&&p.current.focus()}),[r]),S.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Bi(Pi(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Di(p,t);let m=-1;S.Children.forEach(i,((e,t)=>{S.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=S.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),S.cloneElement(e,t)}return e}));return xr.jsx(Rp,{role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(c&&c(e));const r=Li(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Wp(t,r,l,s,Fp);else if("ArrowUp"===n)e.preventDefault(),Wp(t,r,l,s,$p);else if("Home"===n)e.preventDefault(),Wp(t,null,l,s,Fp);else if("End"===n)e.preventDefault(),Wp(t,null,l,s,$p);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&Bp(r,o);o.previousKeyMatched&&(l||Wp(t,r,!1,s,Fp,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1,...d,children:g})}));function Up(e){return Yo("MuiPopover",e)}function Vp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Gp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Kp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Jp(e){return"function"==typeof e?e():e}ei("MuiPopover",["root","paper"]);const Zp=bs(Vd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xp=bs(Ql,{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}),Qp=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:c,container:u,elevation:d=8,marginThreshold:p=16,open:f,PaperProps:h={},slots:m={},slotProps:g={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:y,transitionDuration:v="auto",TransitionProps:w={},disableScrollLock:x=!1,...k}=n,C=S.useRef(),E={...n,anchorOrigin:i,anchorReference:s,elevation:d,marginThreshold:p,transformOrigin:b,TransitionComponent:y,transitionDuration:v,TransitionProps:w},R=(e=>{const{classes:t}=e;return Hi({root:["root"],paper:["paper"]},Up,t)})(E),L=S.useCallback((()=>{if("anchorPosition"===s)return a;const e=Jp(o),t=(e&&1===e.nodeType?e:Li(C.current).body).getBoundingClientRect();return{top:t.top+Vp(t,i.vertical),left:t.left+Gp(t,i.horizontal)}}),[o,i.horizontal,i.vertical,a,s]),P=S.useCallback((e=>({vertical:Vp(e,b.vertical),horizontal:Gp(e,b.horizontal)})),[b.horizontal,b.vertical]),T=S.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===s)return{top:null,left:null,transformOrigin:Kp(n)};const r=L();let i=r.top-n.vertical,a=r.left-n.horizontal;const l=i+t.height,c=a+t.width,u=Pi(Jp(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(null!==p&&i<p){const e=i-p;i-=e,n.vertical+=e}else if(null!==p&&l>d){const e=l-d;i-=e,n.vertical+=e}if(null!==p&&a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:Kp(n)}}),[o,s,L,P,p]),[O,I]=S.useState(f),_=S.useCallback((()=>{const e=C.current;if(!e)return;const t=T(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[T]);S.useEffect((()=>(x&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[o,x,_]);S.useEffect((()=>{f&&_()})),S.useImperativeHandle(r,(()=>f?{updatePosition:()=>{_()}}:null),[f,_]),S.useEffect((()=>{if(!f)return;const e=Ri((()=>{_()})),t=Pi(Jp(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,f,_]);let M=v;const q={slots:{transition:y,...m},slotProps:{transition:w,paper:h,...g}},[D,N]=Yl("transition",{elementType:hp,externalForwardedProps:q,ownerState:E,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),_()},onExited:t=>{e.onExited?.(t),I(!1)}}),additionalProps:{appear:!0,in:f}});"auto"!==v||D.muiSupportAuto||(M=void 0);const A=u||(o?Li(Jp(o)).body:void 0),[z,{slots:j,slotProps:F,...$}]=Yl("root",{ref:t,elementType:Zp,externalForwardedProps:{...q,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Ms("function"==typeof g.backdrop?g.backdrop(E):g.backdrop,{invisible:!0})},container:A,open:f},ownerState:E,className:Xo(R.root,c)}),[B,W]=Yl("paper",{ref:C,className:R.paper,elementType:Xp,externalForwardedProps:q,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:O?void 0:{opacity:0}},ownerState:E});return xr.jsx(z,{...$,...!$u(z)&&{slots:j,slotProps:F,disableScrollLock:x},children:xr.jsx(D,{...N,timeout:M,children:xr.jsx(B,{...W,children:l})})})}));function Yp(e){return Yo("MuiMenuItem",e)}const ef=ei("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),tf=bs(dl,{shouldForwardProp:e=>gs(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(Ls((({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ef.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ef.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ef.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ef.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ef.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Kd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Kd.inset}`]:{marginLeft:52},[`& .${jp.root}`]:{marginTop:0,marginBottom:0},[`& .${jp.inset}`]:{paddingLeft:36},[`& .${Np.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Np.root} svg`]:{fontSize:"1.25rem"}}}]})))),nf=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d,...p}=n,f=S.useContext(kp),h=S.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=S.useRef(null);di((()=>{r&&m.current&&m.current.focus()}),[r]);const g={...n,dense:h.dense,divider:a,disableGutters:s},b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=Hi({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Yp,a);return{...a,...s}})(n),y=Di(m,t);let v;return n.disabled||(v=void 0!==u?u:-1),xr.jsx(kp.Provider,{value:h,children:xr.jsx(tf,{ref:y,role:c,tabIndex:v,component:o,focusVisibleClassName:Xo(b.focusVisible,l),className:Xo(b.root,d),...p,ownerState:g,classes:b})})}));var rf;const of=bs("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:gs})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),af=bs("legend",{name:"MuiNotchedOutlined",shouldForwardProp:gs})(Ls((({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}))));const sf=bs(Xu,{shouldForwardProp:e=>gs(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ju})(Ls((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${nd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${nd.focused} .${nd.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t},style:{[`&.${nd.focused} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${nd.error} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${nd.disabled} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}}))),lf=bs((function(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=null!=o&&""!==o,l={...e,notched:i,withLabel:s};return xr.jsx(of,{"aria-hidden":!0,className:r,ownerState:l,...a,children:xr.jsx(af,{ownerState:l,children:s?xr.jsx("span",{children:o}):rf||(rf=xr.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Ls((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}))),cf=bs(Qu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Zu})(Ls((({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]})))),uf=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:i="input",label:a,multiline:s=!1,notched:l,slots:c={},slotProps:u={},type:d="text",...p}=n,f=(e=>{const{classes:t}=e,n=Hi({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},td,t);return{...t,...n}})(n),h=Hu(),m=Bu({props:n,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),g={...n,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:h,fullWidth:o,hiddenLabel:m.hiddenLabel,multiline:s,size:m.size,type:d},b=c.root??r.Root??sf,y=c.input??r.Input??cf,[v,w]=Yl("notchedOutline",{elementType:lf,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:c,slotProps:u},additionalProps:{label:null!=a&&""!==a&&m.required?xr.jsxs(S.Fragment,{children:[a," ","*"]}):a}});return xr.jsx(ed,{slots:{root:b,input:y},slotProps:u,renderSuffix:e=>xr.jsx(v,{...w,notched:void 0!==l?l:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:i,multiline:s,ref:t,type:d,...p,classes:{...f,notchedOutline:null}})}));uf.muiName="Input";var df=_s(xr.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"),pf=_s(xr.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");const ff=bs("span",{name:"MuiRadioButtonIcon",shouldForwardProp:gs})({position:"relative",display:"flex"}),hf=bs(df,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),mf=bs(pf,{name:"MuiRadioButtonIcon"})(Ls((({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]}))));function gf(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return xr.jsxs(ff,{className:n.root,ownerState:o,children:[xr.jsx(hf,{fontSize:r,className:n.background,ownerState:o}),xr.jsx(mf,{fontSize:r,className:n.dot,ownerState:o})]})}const bf=S.createContext(void 0);function yf(e){return Yo("MuiRadio",e)}const vf=ei("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Sf=bs(Sd,{shouldForwardProp:e=>gs(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Ur(n.size)}`],t[`color${Ur(n.color)}`]]}})(Ls((({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${vf.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:yi(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yi(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter(fl()).map((([t])=>({props:{color:t,disabled:!1},style:{[`&.${vf.checked}`]:{color:(e.vars||e).palette[t].main}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))));const wf=xr.jsx(gf,{checked:!0}),xf=xr.jsx(gf,{}),kf=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiRadio"}),{checked:r,checkedIcon:o=wf,color:i="primary",icon:a=xf,name:s,onChange:l,size:c="medium",className:u,disabled:d,disableRipple:p=!1,slots:f={},slotProps:h={},inputProps:m,...g}=n,b=Hu();let y=d;b&&void 0===y&&(y=b.disabled),y??=!1;const v={...n,disabled:y,disableRipple:p,color:i,size:c},w=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Ur(n)}`,"medium"!==r&&`size${Ur(r)}`]};return{...t,...Hi(o,yf,t)}})(v),x=S.useContext(bf);let k=r;const C=Ei(l,x&&x.onChange);let E=s;x&&(void 0===k&&(k=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(x.value,n.value)),void 0===E&&(E=x.name));const R=h.input??m,[L,P]=Yl("root",{ref:t,elementType:Sf,className:Xo(w.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:h,...g},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),C(t,...n)}}),ownerState:v,additionalProps:{type:"radio",icon:S.cloneElement(a,{fontSize:a.props.fontSize??c}),checkedIcon:S.cloneElement(o,{fontSize:o.props.fontSize??c}),disabled:y,name:E,checked:k,slots:f,slotProps:{input:"function"==typeof R?R(v):R}}});return xr.jsx(L,{...P,classes:w})}));function Cf(e){return Yo("MuiTooltip",e)}const Ef=ei("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const Rf=bs(Nu,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ls((({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ef.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ef.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ef.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ef.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Ef.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Ef.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Ef.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Ef.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]})))),Lf=bs("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ur(n.placement.split("-")[0])}`]]}})(Ls((({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:yi(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ef.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ef.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ef.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ef.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5)+"em",fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Ef.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ef.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Ef.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ef.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Ef.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ef.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Ef.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ef.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Ef.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Ef.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t}))),Pf=bs("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Ls((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:yi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))));let Tf=!1;const Of=new ji;let If={x:0,y:0};function _f(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Mf=S.forwardRef((function(e,t){const n=Ps({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:a={},componentsProps:s={},describeChild:l=!1,disableFocusListener:c=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:p=!1,enterDelay:f=100,enterNextDelay:h=0,enterTouchDelay:m=700,followCursor:g=!1,id:b,leaveDelay:y=0,leaveTouchDelay:v=1500,onClose:w,onOpen:x,open:k,placement:C="bottom",PopperComponent:E,PopperProps:R={},slotProps:L={},slots:P={},title:T,TransitionComponent:O,TransitionProps:I,..._}=n,M=S.isValidElement(o)?o:xr.jsx("span",{children:o}),q=ms(),D=ra(),[N,A]=S.useState(),[z,j]=S.useState(null),F=S.useRef(!1),$=d||g,B=Fi(),W=Fi(),H=Fi(),U=Fi(),[V,G]=Mi({controlled:k,default:!1,name:"Tooltip",state:"open"});let K=V;const J=_i(b),Z=S.useRef(),X=qi((()=>{void 0!==Z.current&&(document.body.style.WebkitUserSelect=Z.current,Z.current=void 0),U.clear()}));S.useEffect((()=>X),[X]);const Q=e=>{Of.clear(),Tf=!0,G(!0),x&&!K&&x(e)},Y=qi((e=>{Of.start(800+y,(()=>{Tf=!1})),G(!1),w&&K&&w(e),B.start(q.transitions.duration.shortest,(()=>{F.current=!1}))})),ee=e=>{F.current&&"touchstart"!==e.type||(N&&N.removeAttribute("title"),W.clear(),H.clear(),f||Tf&&h?W.start(Tf?h:f,(()=>{Q(e)})):Q(e))},te=e=>{W.clear(),H.start(y,(()=>{Y(e)}))},[,ne]=S.useState(!1),re=e=>{$i(e.target)||(ne(!1),te(e))},oe=e=>{N||A(e.currentTarget),$i(e.target)&&(ne(!0),ee(e))},ie=e=>{F.current=!0;const t=M.props;t.onTouchStart&&t.onTouchStart(e)},ae=e=>{ie(e),H.clear(),B.clear(),X(),Z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(m,(()=>{document.body.style.WebkitUserSelect=Z.current,ee(e)}))},se=e=>{M.props.onTouchEnd&&M.props.onTouchEnd(e),X(),H.start(v,(()=>{Y(e)}))};S.useEffect((()=>{if(K)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&Y(e)}}),[Y,K]);const le=Di(Zi(M),A,t);T||0===T||(K=!1);const ce=S.useRef(),ue={},de="string"==typeof T;l?(ue.title=K||!de||u?null:T,ue["aria-describedby"]=K?J:null):(ue["aria-label"]=de?T:null,ue["aria-labelledby"]=K&&!de?J:null);const pe={...ue,..._,...M.props,className:Xo(_.className,M.props.className),onTouchStart:ie,ref:le,...g?{onMouseMove:e=>{const t=M.props;t.onMouseMove&&t.onMouseMove(e),If={x:e.clientX,y:e.clientY},ce.current&&ce.current.update()}}:{}},fe={};p||(pe.onTouchStart=ae,pe.onTouchEnd=se),u||(pe.onMouseOver=_f(ee,pe.onMouseOver),pe.onMouseLeave=_f(te,pe.onMouseLeave),$||(fe.onMouseOver=ee,fe.onMouseLeave=te)),c||(pe.onFocus=_f(oe,pe.onFocus),pe.onBlur=_f(re,pe.onBlur),$||(fe.onFocus=oe,fe.onBlur=re));const he={...n,isRtl:D,arrow:r,disableInteractive:$,placement:C,PopperComponentProp:E,touch:F.current},me="function"==typeof L.popper?L.popper(he):L.popper,ge=S.useMemo((()=>{let e=[{name:"arrow",enabled:Boolean(z),options:{element:z,padding:4}}];return R.popperOptions?.modifiers&&(e=e.concat(R.popperOptions.modifiers)),me?.popperOptions?.modifiers&&(e=e.concat(me.popperOptions.modifiers)),{...R.popperOptions,...me?.popperOptions,modifiers:e}}),[z,R.popperOptions,me?.popperOptions]),be=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Hi({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ur(i.split("-")[0])}`],arrow:["arrow"]},Cf,t)})(he),ye="function"==typeof L.transition?L.transition(he):L.transition,ve={slots:{popper:a.Popper,transition:a.Transition??O,tooltip:a.Tooltip,arrow:a.Arrow,...P},slotProps:{arrow:L.arrow??s.arrow,popper:{...R,...me??s.popper},tooltip:L.tooltip??s.tooltip,transition:{...I,...ye??s.transition}}},[Se,we]=Yl("popper",{elementType:Rf,externalForwardedProps:ve,ownerState:he,className:Xo(be.popper,R?.className)}),[xe,ke]=Yl("transition",{elementType:hp,externalForwardedProps:ve,ownerState:he}),[Ce,Ee]=Yl("tooltip",{elementType:Lf,className:be.tooltip,externalForwardedProps:ve,ownerState:he}),[Re,Le]=Yl("arrow",{elementType:Pf,className:be.arrow,externalForwardedProps:ve,ownerState:he,ref:j});return xr.jsxs(S.Fragment,{children:[S.cloneElement(M,pe),xr.jsx(Se,{as:E??Nu,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:If.y,left:If.x,right:If.x,bottom:If.y,width:0,height:0})}:N,popperRef:ce,open:!!N&&K,id:J,transition:!0,...fe,...we,popperOptions:ge,children:({TransitionProps:e})=>xr.jsx(xe,{timeout:q.transitions.duration.shorter,...e,...ke,children:xr.jsxs(Ce,{...Ee,children:[T,r?xr.jsx(Re,{...Le}):null]})})})]})}));function qf(){const{useModelStore:e}=S.useContext(Bl).modelStore;return e()}function Df(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=qf(),[o]=function(){const{useRpcRequestSessionModelStore:e}=S.useContext(Bl).modelStore;return e()}(),[i,a]=S.useState();for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];return S.useEffect((()=>{if(!t)return;(async()=>{let i=o.get(n);i||(i=t.createSessionObject(e),o.set(n,i));const s=await i;r.set(n,s),a(s)})()}),[t,...l]),[i]}const Nf={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Af(e){return Df(Nf,e)}const zf=e=>new Promise((t=>{setTimeout(t,e)})),jf=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=u(u({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:u({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=u(u({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let a=n.get(r);return a||(a={}),a[o]=i,n.set(r,a),i};function Ff(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=S.useContext(Bl).modelStore;return e()}(),[o,i]=S.useReducer(jf,n?r.get(n):null),[a]=function(){const{useModelChangedStore:e}=S.useContext(Bl).modelStore;return e()}(),[s]=function(){const{useRpcRequestStore:e}=S.useContext(Bl).modelStore;return e()}();let l;n&&(l=s.get(n),l||(l={},s.set(n,l)));const c=async o=>{let a=l[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},l[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await zf(0);const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(l[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{l[t].rpcRetry=!0,c()}};return S.useEffect((()=>{e&&c()}),[e,a.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function $f(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=Ff(e,"getLayout");return null!=e&&e.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:r,canRetry:o},i]:[t,{validating:n,canCancel:r,canRetry:o},i]}function Bf(e){return Ff(e,"getAppLayout")}function Wf(){const[e,t]=S.useState(),[n,r]=S.useState(),o=S.useCallback((e=>{e&&t(e)}),[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return S.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}}),[e]),[o,n,e]}function Hf(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Uf(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=u({fontSize:Hf(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return w.createElement("i",{style:i},w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return w.createElement(n,l({key:t},r))}))))}var Vf=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var Gf=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const Kf=e=>u(u({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var Jf=e=>Uf(Kf(e));var Zf=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Xf=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},Qf=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Xf(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},Xf(r,n)}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),Zf(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,s=n.threshold,l=void 0===s?15:s,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],s=null,l=null,c=o;c<=i;c++)t(c)?null!==l&&(a.push(s,l),s=l=null):(l=c,null===s&&(s=c));if(null!==l){for(var u=Math.min(Math.max(l,s+r-1),n-1),d=l+1;d<=u&&!t(d);d++)l=d;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(S.PureComponent);const Yf=["S","XS"],eh=e=>e.reduce(((e,t)=>e.concat(t)));function th(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!Yf.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return eh(t)}async function nh(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}const rh="RowColumn",oh={row:"".concat(rh,"-row"),rowBorderBottom:"".concat(rh,"-rowBorderBottom"),column:"".concat(rh,"-column"),fieldRoot:"".concat(rh,"-fieldRoot"),cell:"".concat(rh,"-cell"),labelText:"".concat(rh,"-labelText"),labelDense:"".concat(rh,"-labelDense"),highlighted:"".concat(rh,"-highlighted"),checkboxLabel:"".concat(rh,"-checkboxLabel"),icon:"".concat(rh,"-icon"),S:"".concat(rh,"-S"),XS:"".concat(rh,"-XS"),A:"".concat(rh,"-A"),X:"".concat(rh,"-X"),frequencyCount:"".concat(rh,"-frequencyCount"),barContainer:"".concat(rh,"-barContainer"),bar:"".concat(rh,"-bar"),barSelected:"".concat(rh,"-barSelected"),barWithCheckbox:"".concat(rh,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(rh,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(rh,"-excludedTextWithCheckbox")},ih=".".concat(oh.fieldRoot),ah=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function sh(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:i=document,loaderRef:a}=e;const s=S.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});S.useEffect((()=>{var e;if(null===(e=a.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=a.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=a.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const l=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),nh({selections:r,elemNumbers:s.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:s.current.toggle}))},c=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return eh(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=s.current;if(t===e)return;const r=c(s.current.startElemNumber,e);n.updateItems(r,!0,s.current.elemNumbers)},d=S.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&ah(e.nativeEvent);s.current.elemNumbers=[t],s.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),s.current.active=!1,l()}),[]),p=S.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&ah(e);s.current.isRange=!1,s.current.startElemNumber=t,s.current.elemNumbers=[t],s.current.toggle=r,s.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(s.current.active=!1,l()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),f=S.useCallback((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}l()}}),[]),h=S.useCallback((e=>{0===e.button&&s.current.active&&(s.current.active=!1,l())}),[]),m=S.useCallback((e=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,n.isSelected(s.current.startElemNumber)||(n.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=S.useCallback((e=>{var t,r;if(s.current.active||s.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void l();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(ih))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(ih))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void l();s.current.active=!0;c(o,i).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[o,i]}),[]),b=S.useCallback((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,u(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,l()}),[]);S.useEffect((()=>(i.addEventListener("mouseup",h),()=>{i.removeEventListener("mouseup",h)})),[h]),S.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const y={};return o?Object.assign(y,{onChange:d}):Object.assign(y,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:b}),{interactionEvents:y,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const a=!n.isSingleSelect&&ah(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const s=[];return n.updateItems(t,o,s),n.setSelectableValuesUpdating(),nh({selections:r,elemNumbers:o?s:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const lh=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var ch=e=>Uf(lh(e));const uh=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,dh=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||uh(t))&&n};const ph=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const i=[t?oh.column:oh.row];n||i.push(oh.rowBorderBottom);const a=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?oh.XS:oh.S;break;case"S":case"L":t=oh.S;break;case"A":t=!!r&&oh.A;break;case"X":case"XL":t=!!r&&oh.X;break;default:t=!1}return t}({cell:r,showGray:o});return a&&i.push(a),i},fh=9,hh=4,mh=7,gh=12+2*(mh+1),bh=80,yh=10,vh=150,Sh=56,wh=20,xh="-",kh=32,Ch=29,Eh=20,Rh=4,Lh=e=>e.filter((e=>!!e)).join(" ").trim(),Ph=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")},Th=e=>e||xh,Oh=["backgroundColor"],Ih=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},_h=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},Mh=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(oh.labelText)]:{color:r.selections.selected}}:{};const i=r.selections,a=i[o],s=i["".concat(o,"Contrast")];return{background:a,color:s,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(oh.labelText)]:{color:s},["& .".concat(oh.icon)]:{color:s}}},qh={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Dh=bs("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:a,sizes:s,frequencyMode:l,freqHitsValue:c,styles:p}=e;const f=p.content,{backgroundColor:h}=f,m=d(f,Oh),g=Mh({theme:t,styles:p,checkboxes:n,selectionState:"selected"}),b=Mh({theme:t,styles:p,checkboxes:n,selectionState:"excluded"}),y={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},v={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(oh.row)]:u({flexWrap:"nowrap"},p.content),["& .".concat(oh.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(oh.column)]:u({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(oh.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(fh,"px"),paddingRight:0},["& .".concat(oh.labelText)]:u(u({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},qh),m),["& .".concat(oh.labelDense)]:{lineHeight:"18px"},["& .".concat(oh.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(oh.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":u(u({},qh),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(oh.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:m.color},["& .".concat(oh.S)]:u(u({},g),{},{border:r?"none":void 0}),["& .".concat(oh.XS)]:u(u({},Mh({theme:t,styles:p,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(oh.A)]:u(u({},Mh({theme:t,styles:p,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(oh.X)]:u(u({},b),{},{border:r?"none":void 0}),["& .".concat(oh.X,", & .").concat(oh.XS)]:{border:r?"none":void 0,["& .".concat(oh.barSelected," .bar-filled")]:u({},y)},["& .".concat(oh.frequencyCount)]:u(u({zIndex:3,justifyContent:"flex-end"},qh),{},{flex:"0 0 ".concat(Ih({sizes:s,frequencyMode:l,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==l&&c?s.freqMinWidth:"max-content",maxWidth:_h({sizes:s,frequencyMode:l,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(oh.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(oh.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":u({},y)},["& .".concat(oh.barSelected)]:{"& .bar-filled":u({},v)},["& .".concat(oh.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(oh.barSelectedWithCheckbox)]:{"& .bar-filled":u(u({},v),{},{backgroundColor:p.selections.selected||"#BFE5D0",borderColor:p.selections.selected})},["& .".concat(oh.excludedTextWithCheckbox)]:{color:p.content.color,fontStyle:"italic"}}}));var Nh=w.memo(Dh);const Ah="ListBoxCheckbox",zh={cbIcon:"".concat(Ah,"-cbIcon"),cbIconChecked:"".concat(Ah,"-cbIconChecked"),cbIconExcluded:"".concat(Ah,"-cbIconExcluded"),cbIconAlternative:"".concat(Ah,"-cbIconAlternative"),checkbox:"".concat(Ah,"-checkbox"),dense:"".concat(Ah,"-dense")},jh=bs(Od,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(zh.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(zh.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(zh.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(zh.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(zh.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(zh.dense)]:{padding:"4px 8px"}}})),Fh=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return w.createElement("span",{className:e.cbIcon},n&&w.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function $h(e){let{onChange:t,checked:n,label:r,dense:o,excluded:i,styles:a,showGray:s=!0,dataN:l}=e;return w.createElement(jh,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[zh.checkbox,o&&zh.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:Fh(zh,s,i),checkedIcon:w.createElement("span",{className:zh.cbIconChecked}),styles:a})}const Bh={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Wh=bs(kf,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Bh.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Hh(e){let{onChange:t,checked:n,label:r,dense:o,dataN:i,styles:a}=e;return w.createElement(Wh,{checked:n,onChange:t,value:r,name:r,className:Bh.radioButton,inputProps:{"data-n":i},disableRipple:!0,size:o?"small":"medium",dense:o,styles:a})}function Uh(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:i,valueTextAlign:a}=e;return w.createElement(uc,{component:"span",variant:"body2",className:Lh([oh.labelText,n&&oh.labelDense,r&&dh({cell:i,checkboxes:o})&&oh.excludedTextWithCheckbox]),align:a,dir:"auto"},w.createElement("span",null,t))}function Vh(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:s}=e;return"string"==typeof t?w.createElement(Uh,{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:s}):t}function Gh(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:s,showGray:l,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;const f=w.createElement($h,{onChange:t,label:n,checked:o,dense:i,excluded:uh(a),isGridCol:s,showGray:l,dataN:r,styles:p}),h=w.createElement(Hh,{onChange:t,label:n,checked:o,dense:i,dataN:r,styles:p});return w.createElement(np,{control:c?h:f,className:oh.checkboxLabel,label:w.createElement(Vh,{label:n,dense:i,showGray:l,checkboxes:u,cell:a,valueTextAlign:d}),key:r})}function Kh(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const i=t.map(((e,t)=>{let[n,r]=e;return w.createElement("span",{id:t,className:r?oh.highlighted:""},n)}));return w.createElement(Uh,{label:i,dense:n,showGray:r,checkboxes:o})}function Jh(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:i,qElemNumber:a,isSelected:s,cell:l,isGridCol:c,isSingleSelect:u,valueTextAlign:d,styles:p}=e;const f=w.createElement(Kh,{labels:n,dense:o,showGray:i,checkboxes:r});return r?w.createElement(Gh,{onChange:t,label:f,qElemNumber:a,isSelected:s,dense:o,cell:l,isGridCol:c,showGray:i,isSingleSelect:u,checkboxes:r,valueTextAlign:d,styles:p}):f}var Zh=w.memo((function(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:s,showGray:l,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;return u?w.createElement(Gh,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:i,cell:a,isGridCol:s,showGray:l,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}):w.createElement(Uh,{label:n,dense:i,showGray:!0,checkboxes:u,cell:a,valueTextAlign:d})}));function Xh(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:i}=e;if(!(t&&n&&Th(t)!==xh))return;const a=Ph({qFrequency:t,frequencyMax:i});return w.createElement(gd,{className:Lh([oh.bar,r&&oh.barWithCheckbox,o&&(r?oh.barSelectedWithCheckbox:oh.barSelected)])},w.createElement(gd,{className:"bar-filled",width:a}))}function Qh(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const i=Th(null==t?void 0:t.qFrequency);return w.createElement(up,{item:!0,style:{display:"flex",alignItems:"center"},className:oh.frequencyCount,"aria-label":i,title:i},w.createElement(uc,{noWrap:!0,color:"inherit",variant:"body2",className:Lh([r&&oh.labelDense,oh.labelText,o&&dh({cell:t,checkboxes:n})&&oh.excludedTextWithCheckbox])},i))}function Yh(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const em=bs(up,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:a}=e;const s="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(oh.fieldRoot)]:u(u({},Yh({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[s]:o?"8px":void 0})}}));const tm=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===tm.ARROW_UP||e===tm.ARROW_DOWN||e===tm.ARROW_LEFT||e===tm.ARROW_RIGHT});function nm(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function rm(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function om(e){let{containerRef:t,enabled:n}=e;const[r,o]=S.useState(!1),i={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const i=rm(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),nm(t.current),e&&i&&(i.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),i.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),i=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),s=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||r||i||a||l||s;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return i}const im=e=>+e.getAttribute("data-n"),am=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},sm=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),nm(e),o},lm=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},cm=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=rm(i),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||s)t.blur(!0);else{nm(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},um=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:s}=e;const l=e=>{let t;return"row"===i?(t=s%o,e<t?r:r-1):(t=s%r,e<o-1?r:t)};let c=t,u=n;if(a===tm.ARROW_DOWN)if(t>=l(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=l(n-1)-1,u=n-1}else c=t-1;if("row"===i)return c*o+u;const d=s%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};const dm={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function pm(e){var t,n;let{index:r,rowIndex:o,columnIndex:i,style:a,data:s}=e;const{onChange:l,onClick:c,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:b,column:y=!1,checkboxes:v=!1,textAlign:x,direction:k,layoutOptions:C={},freqIsAllowed:E,isSingleSelect:R,actions:L,frequencyMax:P="",histogram:T=!1,keyboard:O,showGray:I=!0,showTick:_=!0,columnCount:M=1,rowCount:q=1,dataOffset:D,deducedFrequencyMode:N,focusListItems:A,listCount:z,sizes:j,translator:F,showSearch:$,isModal:B,contentFontStyle:W,styles:H,fillHeight:U}=s,{dense:V=!1,dataLayout:G="singleColumn",layoutOrder:K}=C,{itemPadding:J}=j;let Z,X;const Q={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof i){"row"===K?(Z=o*M+i,Q.max=q,Q.currentIndex=o):(Z=i*q+o,Q.max=M,Q.currentIndex=i);const e=0;X=u(u({},a),{},{height:U?"100%":a.height,left:e+(0===i?a.left:Number(a.left)+i*e),top:0===o?a.top:Number(a.top)+o*e})}else Z=r,Q.max=z,Q.currentIndex=r,X=u({},a);Z+=D;const[Y,ee]=S.useState(null);S.useEffect((()=>{null!==Y&&(0===Q.currentIndex&&A.first&&(Y.focus(),A.setFirst(!1)),Q.currentIndex===Q.max-1&&A.last&&(Y.focus(),A.setLast(!1)))}),[Y,A.first,A.last]);const te=S.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,focusListItems:s,keyboard:l,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===tm.ARROW_LEFT||e===tm.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof f){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=um({rowIndex:p,columnIndex:f,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:y=!1,metaKey:v=!1}=p;switch(f){case tm.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==l||!l.enabled){if(!n)return;return l.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){am(t)||lm(t)||(n?l.focusSelection():cm(e,l));break}l.focusSelection()||lm(t)||am(t)||(d.blur(),cm(e,l));break}case tm.SHIFT:b(!0);break;case tm.SPACE:t([im(d)],!1,e);break;case tm.ARROW_DOWN:case tm.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([im(d)],!0),b(!1)),t([im(u)],!0));break;case tm.ARROW_UP:case tm.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([im(d)],!0),b(!1)),t([im(u)],!0));break;case tm.ENTER:if(o(),void 0===c)return;break;case tm.ESCAPE:if(void 0===c)return void i();if(!c())return;i();break;case tm.HOME:if(s.setFirst(!0),y){null==a||a("overflowStart");break}null==a||a("start");break;case tm.END:if(s.setLast(!0),y){null==a||a("overflowEnd");break}null==a||a("end");break;case tm.A:if(y||v){n();break}return;case tm.F:if(y||v){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(u(u({},L),{},{focusListItems:A,keyboard:O,isModal:B,rowCount:q,columnCount:M,rowIndex:o,columnIndex:i,layoutOrder:K})),[L,null==O?void 0:O.innerTabStops,q,M,o,i,K]),ne=S.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:Z})),[g,Z]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=S.useMemo((()=>ph({column:y,histogram:T,cell:ne,showGray:I})),[null==ne?void 0:ne.qState,T,V]),ie=S.useCallback((e=>{e.preventDefault()}),[v]),ae=S.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:k,cell:ne,textAlign:x})),[k,ne,x]);if(!ne)return null;const se="grid"===G&&"column"===K,le=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,s=t[o].qCharPos+t[o].qCharCount;return a&&s<e.length&&n.push([e.slice(s),!1]),n}),[]);return n}(le,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===k,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:v?0:void 0,paddingRight:v?0:de?8:0,justifyContent:ae,textAlign:ae},fe=0===r,he=re&&b,me=!v&&re&&!b,ge=!v&&_,be=v||!_,ye=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=dm[r],c=t.get(l),u=[];if(o){const e=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:F,label:le,qState:ne.qState,currentIndex:Q.currentIndex,maxIndex:Q.max,showSearch:$}),ve=!de&&"right"===ae||de&&"left"===ae;return w.createElement(Nh,{className:oh.barContainer,checkboxes:v,style:X,styles:H,isGridCol:se,isGridMode:"grid"===G,dense:V,direction:k,sizes:j,frequencyMode:N,freqHitsValue:ve,contentFontStyle:W,"data-testid":"listbox.item"},w.createElement(em,{role:"row","aria-label":ye,"aria-selected":re,"aria-setsize":Q.max,"aria-rowindex":Q.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:be,layoutOrder:K,itemPadding:J,gap:0,className:Lh(["value",...oe]),classes:{root:oh.fieldRoot},onClick:c,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ie,tabIndex:fe&&O.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:k,fillHeight:U},(null==ne?void 0:ne.qFrequency)&&w.createElement(Xh,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:T,checkboxes:v,isSelected:re,frequencyMax:P}),w.createElement(up,{item:!0,style:pe,className:Lh([oh.cell,oh.selectedCell]),title:"".concat(le)},ce?w.createElement(Jh,{onChange:l,labels:ce,checkboxes:v,dense:V,showGray:I,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:se,isSingleSelect:R,valueTextAlign:ae,styles:H}):w.createElement(Zh,{onChange:l,label:le,qElemNumber:ne.qElemNumber,isSelected:re,dense:V,cell:ne,isGridCol:se,showGray:I,isSingleSelect:R,checkboxes:v,valueTextAlign:ae,styles:H})),E&&w.createElement(Qh,{cell:ne,checkboxes:v,dense:V,showGray:I}),ge&&w.createElement(up,{item:!0,className:oh.icon},he&&w.createElement(Gf,{style:ue,size:"small"}),me&&w.createElement(ch,{style:ue,size:"small"}))))}var fm=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function hm(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||fm(r)&&fm(o)))return!1;var r,o;return!0}function mm(e,t){var n;void 0===t&&(t=hm);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var gm="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function bm(e){cancelAnimationFrame(e.id)}function ym(e,t){var n=gm();var r={id:requestAnimationFrame((function o(){gm()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var vm=-1;function Sm(e){if(void 0===e&&(e=!1),-1===vm||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),vm=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return vm}var wm=null;function xm(e){if(void 0===e&&(e=!1),null===wm||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?wm="positive-descending":(t.scrollLeft=1,wm=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),wm}return wm}var km=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Cm(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Js(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Js(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=mm((function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=mm((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=mm((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(xm()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&bm(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=ym(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}As(t,e),t.getDerivedStateFromProps=function(e,t){return Em(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=Sm();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=a(this.props,this._instanceProps),v=s(this.props,this._instanceProps)>f?b:0,S=y>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,v):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(xm()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&bm(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?km:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,y=e.useIsScrolling,v=e.width,w=this.state.isScrolling,x=this._getHorizontalRangeToRender(),k=x[0],C=x[1],E=this._getVerticalRangeToRender(),R=E[0],L=E[1],P=[];if(r>0&&g)for(var T=R;T<=L;T++)for(var O=k;O<=C;O++)P.push(S.createElement(t,{columnIndex:O,data:d,isScrolling:y?w:void 0,key:f({columnIndex:O,data:d,rowIndex:T}),rowIndex:T,style:this._getItemStyle(T,O)}));var I=a(this.props,this._instanceProps),_=s(this.props,this._instanceProps);return S.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:lt({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},S.createElement(c||u||"div",{children:P,ref:l,style:{height:I,pointerEvents:w?"none":void 0,width:_}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,y=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,y,g,S,v)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(S.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Em=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Rm=function(e,t){return e};function Lm(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Js(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Js(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=mm((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=mm((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=mm((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(xm()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&bm(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=ym(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}As(t,e),t.getDerivedStateFromProps=function(e,t){return Pm(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?Sm():0:l.scrollHeight>l.clientHeight?Sm():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(xm()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&bm(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?Rm:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,y=e.width,v=this.state.isScrolling,w="horizontal"===o||"horizontal"===f,x=w?this._onScrollHorizontal:this._onScrollVertical,k=this._getRangeToRender(),C=k[0],E=k[1],R=[];if(c>0)for(var L=C;L<=E;L++)R.push(S.createElement(t,{data:u,key:p(L,u),index:L,isScrolling:b?v:void 0,style:this._getItemStyle(L)}));var P=r(this.props,this._instanceProps);return S.createElement(h||m||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:lt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},S.createElement(s||l||"div",{children:R,ref:a,style:{height:w?"100%":P,pointerEvents:v?"none":void 0,width:w?P:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(S.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Pm=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Tm=Cm({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,s=e.columnWidth,l=e.width,c=Math.max(0,a*s-l),u=Math.min(c,t*s),d=Math.max(0,t*s-l+i+s);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,s=e.height,l=e.rowCount,c=Math.max(0,l*a-s),u=Math.min(c,t*a),d=Math.max(0,t*a-s+i+a);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),Om=Lm({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:s,f=Math.max(0,l*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const Im="#BBB",_m="#f1f1f1",Mm={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const qm=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Dm=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,Nm=(e,t,n,r)=>e===t*n+r+n;function Am(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:s,dataOffset:l}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=qm(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,f=Nm(s,u,c?i:o,l),h=!!l&&Dm(t,c),m=p&&!f&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:zm,StyledFixedSizeGrid:jm}=function(){const e=e=>({scrollbarColor:"".concat(Im," ").concat(_m),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:_m},"&::-webkit-scrollbar-thumb":{backgroundColor:Im,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:cr(Om,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Mm.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:cr(Tm,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Mm.styledScrollbars)]:e(n)}}))}}();const Fm=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},$m=e=>{const t=S.useMemo((()=>"text"in e?e:{}),[e]);return S.useMemo((()=>Fm(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Bm(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Wm(e){let{isGridMode:t,dense:n}=e;let r=n?Eh:t?kh:Ch;return t&&(r+=Rh),r}function Hm(e){let{layout:t,width:n,height:r,listCount:o,count:i,freqIsAllowed:a,checkboxes:s,styles:l}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==l?void 0:l.content)||{},b="".concat(m," ").concat(g),y=$m({text:Bm(t),font:b}),v=$m({text:Bm(5),font:b}),S=$m({text:Bm(8),font:b}),w=a?v:0,x=s?wh:0;let k=Sh+w+x;!s&&k>=bh&&(k+=wh);let C,E,R,L,P=y+18+w+x;!s&&P>=bh&&(P+=wh),P=Math.min(vh,Math.max(P,k));const T=Wm({isGridMode:"grid"===h,dense:f}),O=null!=r?r:8*T;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*Rh,({rowCount:L,columnWidth:R,columnCount:E}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,s=r-yh;let l;const c=Math.min(n,Math.max(1,Math.round(s/Math.max(i,o))));l=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c),l=Math.max(l,1);const u=s/l;return{rowCount:Math.ceil(n/l),columnWidth:u,columnCount:l}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:P,itemMinWidth:k}))):(C={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:E}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:s,itemMinWidth:l}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,s/d,l),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:T,listCount:o,listHeight:O,columnAutoWidth:P,containerWidth:e,itemMinWidth:k})))}E=("singleColumn"===h?1:E)||1,L=("singleColumn"===h?i:L)||o;const I=c.dense?838e3:577e3;L=Math.min(L,I);const _=Math.floor(3355e4/R);E=Math.min(E,_)||1;const M=L*E,q=Math.min(o,M);return{columnCount:E,columnWidth:R,rowCount:L,overflowStyling:C,itemHeight:T,listHeight:O,listWidth:n,scrollBarWidth:yh,count:i,listCount:q,maxCount:{row:I,column:_},itemPadding:Rh,textWidth:y,freqMinWidth:v,freqMaxWidth:S}}const Um=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[Vm,Gm]=Ul({});function Km(e){const t="".concat(e.id),[n]=Vm();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const Jm=bs(uc,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return u({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px"),whiteSpace:"normal"},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function Zm(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:i}=S.useContext(Bl);return w.createElement(Mf,{title:o?i.get(n):""},w.createElement(Jm,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},i.get(n)))}var Xm=_s(xr.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");const Qm=bs(Ql)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),Ym=bs("div")((()=>({paddingLeft:"6px",flexGrow:1}))),eg=bs("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),tg=bs(Xm)((()=>({fontSize:"14px"})));function ng(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const i="function"==typeof n,a=r?370:282,s=Math.max(o/2-a/2,0),l=Math.min(a,o)-42,c=r&&o<a;return w.createElement(Qm,{left:s,style:{maxWidth:a}},w.createElement(Ym,null,w.createElement(Zm,{text:t,dense:r,width:l,tooltip:c})),w.createElement(eg,{dense:r},i&&w.createElement(oc,{"aria-label":"close",onClick:()=>n()},w.createElement(tg,null))))}const rg=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const og=80;function ig(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>og,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const ag=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e,sg=e=>{const t=ag(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},lg=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=S.useState(),[i,a]=S.useState(n);return S.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=sg(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}};const cg=["isLoadingData"],ug=100,dg=bs("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function pg(e){var t,n;let{model:r,app:o,constraints:i,layout:a,selections:s,selectionState:c,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:b,fetchStart:y,postProcessPages:v,calculatePagesHeight:x=!1,keyboard:k={},showGray:C=!0,scrollState:E,keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:L={set:()=>{}},renderedCallback:P,onCtrlF:T,showSearch:O,isModal:I,styles:_}=e;const{translator:M}=S.useContext(Bl),[q,D]=S.useState(!1),N=!(!a||!a.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=f,histogram:z}=null!=a?a:{},j=S.useRef(null),F=S.useRef({queue:[],validPages:!1,dataOffset:0}),$=S.useRef({pages:[]}),{frequencyMax:B,awaitingFrequencyMax:W}=lg(o,a),H=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:i,postProcessPages:a,listData:s}=e;const[l,c]=S.useState(!1),[u,d]=S.useState([]);let[p]=S.useState(0);const f=(e,l)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:l+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],i=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=a?a(n):n;t.current.validPages=!0,s.current.pages=r,d(r),c(!1),e()}));o&&o(i)}),f?i:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:l}}({local:F,loaderRef:j,model:r,fetchStart:y,scrollTimeout:0,postProcessPages:v,listData:$}),{isLoadingData:U}=H,V=d(H,cg),{getStoreValue:G,setStoreValue:K}=Km(r),J=S.useCallback(V.loadMoreItems,[a]),[Z,X]=S.useState({show:!1,dismissed:!1}),[Q,Y]=S.useState([]);null!=V&&V.pages&&c.update({setPages:Y,pages:V.pages,isSingleSelect:N,layout:a});const ee=null==a?void 0:a.qListObject.qDimensionInfo.qCardinal;(null!=V&&V.pages.length&&!W||0===ee)&&(null==P||P());const te=S.useCallback((e=>{if(null==Q||!Q.length||!F.current.validPages)return!1;F.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Q.filter((e=>t(e)))[0];return n&&t(n)}),[a,Q]),{interactionEvents:ne,select:re}=sh({selectionState:c,selections:s,checkboxes:A,doc:document,loaderRef:j}),{layoutOptions:oe={}}=a||{};let ie=!0;oe.dataLayout&&(ie="singleColumn"===oe.dataLayout||"row"===(null==oe?void 0:oe.layoutOrder));const ae="grid"===(null==oe?void 0:oe.dataLayout),se=e=>{const t=u({},ie?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;j.current._listRef.scrollToItem(n)},le=()=>{if(F.current.queue=[],F.current.validPages=!1,j.current){j.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(a&&a.qSelectionInfo.qInSelections||e)return void(e&&R.reset());F.current.dataOffset=0,se(0)}};b&&b.call(null,le),S.useEffect((()=>{E&&!q&&j.current&&(j.current._listRef.scrollToItem(E.initScrollPos),D(!0))}),[j.current]),S.useEffect((()=>{le()}),[a,F.current.dataOffset]);let ce=ug;const ue="grid"!==oe.dataLayout,de=null==a||null===(t=a.qListObject.qSize)||void 0===t?void 0:t.qcy,pe=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?Um({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:ce,count:de,calculatePagesHeight:x});let fe=ig({itemWidth:m,layout:a,frequencyMode:g});const he=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(Q),me=Hm({layout:a,width:m,height:h,listCount:pe,count:de,freqIsAllowed:fe,checkboxes:A,styles:_});me.columnWidth&&(fe=ig({itemWidth:me.columnWidth,layout:a,frequencyMode:g}));const{listCount:ge}=me;K("listCount",ge);const be=G("inputText"),ye=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=S.useContext(Bl),i=[];if(null!=n&&n.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(r),t=o.get(e,[r]);i.push(t)}const a=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},i=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let a;switch(i){case 0:a="ScreenReader.ZeroSelected";break;case 1:a="ScreenReader.OneSelected";break;default:a="ScreenReader.ManySelected"}return r.get(a,[i])}({layout:t,translatorDynamic:o});i.push(a);const s=i.filter((e=>!(null==e||!e.length))).join(". ");return s}({layout:a,searchInputText:be,listCount:ge}),ve=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,s=!1,l=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":l=0,t=0,s=!0;break;case"overflowEnd":l=rg(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ie,sizes:me,layout:a,offset:F.current.dataOffset});F.current.dataOffset=n,r&&c.triggerStateChanged(),se(t)};S.useEffect((()=>{const e=R.state;e.up?se(L.state.start-e.up):e.down?se(L.state.stop+e.down):e.scrollPosition&&ve(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:Se}=(null==a?void 0:a.qListObject.qDimensionInfo)||{},[we,xe]=S.useState({first:!1,last:!1}),{List:ke,Grid:Ce}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:a,selectionState:s,interactionEvents:c,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:b,selections:y,keyboard:v,showGray:S,scrollState:x,direction:k,sizes:C,listCount:E,overflowDisclaimer:R,setScrollPosition:L,focusListItems:P,setCurrentScrollIndex:T,constraints:O,frequencyMax:I,freqIsAllowed:_,translator:M,showSearch:q,isModal:D,styles:N}=e;const{layoutOptions:A={}}=t||{},{columnWidth:z,listHeight:j,itemHeight:F,rowCount:$,columnCount:B}=C||{},W=("grid"===A.dataLayout?z:n)>bh,H={direction:"rtl"===k?"rtl":"ltr",useIsScrolling:!0,className:Mm.styledScrollbars},U=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,V=j<=F,G=u(u({isLocked:U,column:!i,pages:a},U||s.selectDisabled()?{}:c),{},{checkboxes:r,layoutOptions:A,deducedFrequencyMode:d,freqIsAllowed:_,isSingleSelect:f,textAlign:b,sizes:C,actions:{select:h,confirm:()=>null==y?void 0:y.confirm.call(y),cancel:()=>null==y?void 0:y.cancel.call(y),setScrollPosition:L,selectAll:m,onCtrlF:g},frequencyMax:I,histogram:p,keyboard:v,showGray:S,showTick:W,dataOffset:o.current.dataOffset,focusListItems:P,direction:k,translator:M,showSearch:q,isModal:D,styles:N,fillHeight:V});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,w.createElement(zm,l({},H,{dataTestid:"fixed-size-list",scrollDisabled:null==O?void 0:O.active,height:j,width:n,itemCount:E,itemData:u(u({},G),{},{listCount:E}),itemSize:F,onItemsRendered:e=>{var n;T({start:e.visibleStartIndex,stop:e.visibleStopIndex}),x&&x.setScrollPos(e.visibleStopIndex),Am({renderProps:e,layoutOptions:A,maxCount:C.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:R,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(u({},e))},ref:i}),pm)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:a,scrollBarWidth:s}=C,{layoutOrder:c}=A||{},d=Math.min(j,$*F+s);return o.current.listRef=i,w.createElement(jm,l({},H,{dataTestid:"fixed-size-grid",scrollDisabled:null==O?void 0:O.active,height:d,width:n,columnCount:B,columnWidth:z,rowCount:$,rowHeight:F,style:u({},a),itemData:u(u({},G),{},{column:void 0,columnCount:B,rowCount:$}),onItemsRendered:e=>{var n;const i="row"===c;T({start:i?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:i?e.visibleRowStopIndex:e.visibleColumnStopIndex});const a=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:s,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=l*o,p=a,f=c*o,h=s):(d=l,p=a*i,f=c,h=s*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:x,layoutOrder:c,rowCount:$,columnCount:B});Am({renderProps:e,layoutOptions:A,maxCount:C.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:R,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(a)},ref:i}),pm)}}}({direction:p,layout:a,width:m,checkboxes:A,deducedFrequencyMode:he,histogram:z,keyboard:k,showGray:C,interactionEvents:ne,select:re,selectAll:()=>{c.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:T,textAlign:Se,isVertical:ue,pages:Q,selectionState:c,isSingleSelect:N,selections:s,scrollState:E,local:F,sizes:me,listCount:ge,overflowDisclaimer:{state:Z,set:e=>X((t=>u(u({},t),{},{show:e})))},setScrollPosition:ve,focusListItems:{first:we.first,setFirst:e=>xe((t=>u(u({},t),{},{first:e}))),last:we.last,setLast:e=>xe((t=>u(u({},t),{},{last:e})))},setCurrentScrollIndex:L.set,constraints:i,frequencyMax:B,freqIsAllowed:fe,translator:M,showSearch:O,isModal:I,styles:_}),{columnWidth:Ee,listHeight:Re,itemHeight:Le}=me||{};return ue||(ce=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:m,columnWidth:Ee,listHeight:Re,itemHeight:Le})),w.createElement(dg,null,w.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},ye),!ge&&ee>0&&w.createElement(Zm,{width:m,text:"Listbox.NoMatchesForYourTerms"}),w.createElement(Qf,{isItemLoaded:te,itemCount:ge||1,loadMoreItems:J.with({minimumBatchSize:ce}),threshold:0,minimumBatchSize:ce,ref:j,role:"grid"},ue?ke:Ce),Z.show&&!Z.dismissed&&w.createElement(ng,{text:"Listbox.ItemsOverflow",dismiss:()=>X((e=>u(u({},e),{},{dismissed:!0}))),parentWidth:null==j||null===(n=j.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==oe?void 0:oe.dense}))}const fg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),hg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),mg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),gg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var bg=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1,selections:a}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const s="/qListObjectDef",l=()=>{a.isActive()||a.begin(s)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:fg,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectAll(s)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:mg,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectPossible(s)}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:hg,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectAlternative(s)}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:gg,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectExcluded(s)}}].filter(Boolean)};const yg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function vg(e){const t=ms(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const Sg={className:"njs-cell-action"},wg=w.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const i=ms(),{hidden:a,disabled:s,style:l,hasSvgIconShape:c}=vg(r);if(a)return null;const u=Number.parseInt(i.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return w.createElement(oc,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:s,style:l,className:[Sg.className,h].join(" "),size:"large",disableRipple:!0,"aria-label":r.label,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&Uf(r.getSvgIconShape()),o&&w.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),xg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var kg=e=>Uf(xg(e));const Cg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var Eg=e=>Uf(Cg(e));const Rg="njs-action-toolbar-more",Lg={icon:"".concat("More","-icon")},Pg=bs(Qp)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Lg.icon," *")]:{color:t.palette.text.primary}}}));function Tg(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=vg(t);return o?null:w.createElement(nf,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:i,tabindex:"0"},a&&w.createElement(zp,{className:Lg.icon},Uf(t.getSvgIconShape())),w.createElement(uc,{noWrap:!0},t.label))}const Og=w.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:a={},onCloseOrActionClick:s=(()=>{}),disablePortal:c=!0}=e;const d=n.length>0,p=n.findIndex((e=>!e.disabled));return d&&w.createElement(Pg,l({},i,{onClose:s,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:c?null:void 0,container:c?o.current:void 0,disablePortal:c,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:Rg},paper:{style:u({pointerEvents:"auto",maxWidth:"250px"},a)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),w.createElement(Hp,{id:"moreMenuList"},n.map(((e,t)=>w.createElement(Tg,{key:t,item:e,autoFocus:t===p,onActionClick:s})))))})),Ig=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},_g=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const Mg="ActionsToolbar",qg={item:"".concat(Mg,"-item"),itemSpacing:"".concat(Mg,"-itemSpacing")},Dg=bs(Qp)((e=>{let{theme:t}=e;return{["& .".concat(qg.itemSpacing)]:{padding:t.spacing(0,.25)}}})),Ng={className:"njs-action-toolbar-popover"},Ag=w.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:i=!1,isRtl:a=!1}=e;return o.length>0?w.createElement(up,{item:!0,container:!0,gap:0,flexDirection:a?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>w.createElement(up,{item:!0,key:e.key,className:"".concat(qg.itemSpacing," ").concat(qg.item)},w.createElement(wg,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:i}))))):null})),zg={pointerEvents:"none"};function jg(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:a={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:l={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:c={show:!1,anchorEl:null},focusHandler:d=null,actionsRefMock:p=null,isRtl:f,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=S.useContext(Bl);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:Cg},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:xg},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:lh}]}(u(u({},a),{},{layout:m})),{translator:b,keyboardNavigation:y}=S.useContext(Bl),[v,x]=S.useState(!1),k={vertical:12,horizontal:f?0:(null!==(t=null===(n=c.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},C={vertical:"bottom",horizontal:f?-7:"right"},E=S.useRef(),R=S.useRef(),L=ms(),P=S.useMemo((()=>({margin:L.spacing(.5,0)}))),T=e=>{const t=E.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},O=S.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:i}=e;return e=>{const{target:a,nativeEvent:s}=e,{keyCode:l}=s;switch(l){case tm.ARROW_LEFT:case tm.ARROW_DOWN:case tm.ARROW_RIGHT:case tm.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=Ig(a);let t=[tm.ARROW_LEFT,tm.ARROW_DOWN].includes(l);t=i?!t:t,_g(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case tm.SPACE:e.preventDefault();break;case tm.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case tm.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:y,focusHandler:d,getEnabledButton:T,selections:a,isRtl:f})),[y,d,T,a,f]);if(S.useEffect((()=>()=>{x(!1)}),[c.show,r,a.show]),S.useEffect((()=>{if(!d)return;d.on("focus_toolbar_first",(()=>{const e=T(!1);null==e||e.focus()})),d.on("focus_toolbar_last",(()=>{const e=T(!0);null==e||e.focus()}))}),[]),h)return;let I=l.enabled,_=l.actions;const M=l.alignTo||R,q=o.filter((e=>!e.hidden));if(q.length>i){const e=q.splice(-(q.length-i)-1);I=!0,_=[...e,...l.actions]}if(!a.show&&0===q.length&&!I)return null;const D={key:"more",label:b.get("Menu.More"),getSvgIconShape:yg,hidden:!1,active:v,enabled:()=>I,action:()=>x(!v)},N=q.length>0,A=_.length>0,z=N&&a.show||A&&a.show,j=w.createElement(up,{ref:E,onKeyDown:O,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==s?void 0:s.length)&&w.createElement(Ag,{className:"actions-toolbar-extra-actions",actions:s,isRtl:f}),N&&w.createElement(Ag,{actions:q}),A&&w.createElement(Ag,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:R,ariaExpanded:v,actions:[D],addAnchor:!0}),z&&w.createElement(up,{item:!0,className:qg.itemSpacing,style:P},w.createElement(Xd,{orientation:"vertical"})),a.show&&w.createElement(Ag,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),v&&w.createElement(Og,{show:v,actions:_,alignTo:M,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{x(!1)},disablePortal:l.disablePortal}));return c.show?w.createElement(Dg,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:c.show,anchorEl:c.anchorEl,anchorOrigin:k,transformOrigin:C,hideBackdrop:!0,style:zg,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Ng.className,style:{pointerEvents:"auto",padding:L.spacing(.5,.25)}}}},j):r&&j}var Fg=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const $g="/qListObjectDef",Bg=e=>null==e?void 0:e.substring(0,64e3),Wg=bs(uf,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),u({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":u({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),Hg=bs(oc)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));var Ug=S.forwardRef((function(e,t){let{popoverOpen:n,selections:r,selectionState:o,model:i,keyboard:a,dense:s=!1,visible:l=!0,autoFocus:c=!0,beginSelectionOnFocus:u=!0,wildCardSearch:d=!1,searchEnabled:p,direction:f,hide:h,styles:m}=e;const{translator:g}=S.useContext(Bl),[b,y]=S.useState(""),[v,x]=S.useState(!1),k=S.useRef(),C=S.useRef(),E=g.get("Listbox.Clear.Search"),{getStoreValue:R,setStoreValue:L}=Km(i),P="rtl"===f,T=async()=>{try{await i.abortListObjectSearch($g)}finally{y("")}};S.useEffect((()=>l?()=>T():()=>{}),[l]),S.useEffect((()=>(r.on("deactivated",T),()=>{r.removeListener&&r.removeListener("deactivated",T)})),[]),S.useEffect((()=>{if(v&&k.current){const e=b.length-1;k.current.setSelectionRange(e,e),x(!1)}}),[v,k.current]),S.useEffect((()=>{L("inputText",b)}),[b]);const O=async()=>{let e;const t=Bg(b),n=await i.searchListObjectFor($g,t);return o.selectDisabled()?n:(n&&t.length&&R("listCount")>0&&(e=i.acceptListObjectSearch($g,!0),r.selectionsMade=!0,o.clearItemStates(!1),y("")),e)},I=()=>{var e;null===(e=k.current)||void 0===e||e.focus()},_=()=>{T(),I()};return S.useImperativeHandle(t,(()=>({focus(){I()}}))),l&&!1!==p?w.createElement(Wg,{styles:m,dense:s,isRtl:P,startAdornment:w.createElement(xp,{position:"start",sx:{marginLeft:s?"8px":"".concat(fh,"px")}},w.createElement(Fg,{size:s?"small":"normal"})),endAdornment:w.createElement(xp,{position:"end",sx:{marginLeft:0}},""!==b&&w.createElement(Hg,{tabIndex:0,ref:C,title:E,"aria-label":E,onClick:_,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":_();break;case"Tab":e.shiftKey?I():sm(t);break;default:return}e.preventDefault(),e.stopPropagation()}},w.createElement(kg,{size:s?"small":"normal"}))),className:"search",inputRef:k,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:b,onFocus:()=>{d&&(y("**"),x(!0)),u&&!o.selectDisabled()&&!r.isModal()&&r.begin("/qListObjectDef")},onChange:async e=>{const t=Bg(e.target.value);return y(t),t.length?i.searchListObjectFor($g,t):T()},onKeyDown:async e=>{const{currentTarget:t}=e,o=t.closest(".listbox-container");switch(e.key){case"Enter":O();break;case"Escape":if(sm(o),r.cancel(),n)return;break;case"Tab":e.shiftKey?lm(o)||a.focusSelection():C.current?C.current.focus():sm(o);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;h&&(h(),sm(o));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:c,inputProps:{tabIndex:a.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function Vg(e){if(!e.session)return[];const{selectionStore:t}=S.useContext(Bl),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return S.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:i}=n,a=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},s={begin:async e=>{var n;let{model:i,paths:s,accept:l=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;a(l),o.set(r,{model:i,objectSelections:c});const u=Array.isArray(s)?s:[s],d=async e=>{try{await i.beginSelections(u),o.set(r,{model:i,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(l),d(!0))}};await d()},end:a};i.set(r,s);const l={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>s.end().then((()=>t.forward())),back:()=>s.end().then((()=>t.back())),clear:()=>s.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return s.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return l}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function Gg(e){return Object.keys(T.prototype).forEach((t=>{e[t]=T.prototype[t]})),T.init(e),e}const Kg=e=>{let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const s={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin({model:o,paths:e,accept:!0,objectSelections:s}))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>i,isModal:()=>n.isModal(s),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:s}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return Gg(s),s},Jg=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function Zg(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=Vg(e),[a]=$f(t),{appModalStore:s}=S.useContext(Bl).selectionStore,l=s.get(e.id),[c,u]=S.useState();return S.useEffect((()=>{i&&t&&!c&&u(Kg({appSelections:i,appModal:l,model:t}))}),[i,t]),S.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Jg({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),S.useEffect((()=>{c&&c.setLayout(a)}),[c,a]),[c]}function Xg(){const e=u(u({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:i,isSingleSelect:a,selectDisabled:s,layout:l}=t;this.setPages=o;const c=this.lastRowCount===l.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===l.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=l.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=l.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=th(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=a,e.selectDisabled=s||e.selectDisabled,e.isDimCalculated=null!==(n=null==l||null===(r=l.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[u(u({},n),{},{qState:r}),...t.slice(1)]}));return u(u({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}});return e}const Qg=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function Yg(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return Qg(t,"qSelected",0)+Qg(t,"qSelectedExcluded",0)+Qg(t,"qLocked",0)+Qg(t,"qLockedExcluded",0)>0}function eb(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function tb(e){if("object"==typeof e&&eb(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const nb={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function rb(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(eb(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in nb}(e)){const t=nb[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function ob(e){let t,n,r;if(eb(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?tb(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function ib(e){let t,n,r=0;const o="string"==typeof e?rb(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function ab(e){let t,n,r=0;const o="string"==typeof e?rb(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function sb(e){if(eb(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?tb(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function lb(e,t){return eb(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:lb(rb(e))}function cb(e){return eb(e)?1===e.a?sb(e):lb(e):cb(rb(e))}const ub=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function db(e){return.2126*ub(e.r)+.7152*ub(e.g)+.0722*ub(e.b)}function pb(...e){const t=rb(...e);return t.invalid||db(t)<.4}function fb(...e){const t=rb(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=ib(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=rb(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>pb(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=sb(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=lb(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=cb(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=ob(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?rb(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=ib(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=ab(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=ab(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>fb(o(18*e)),getDarkenedColor:(e=1)=>fb(o(18*-e))}}function hb(e,t){if(!e||!t)return;const n=db(e),r=db(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function mb(e,t){const n=fb("#FFFFFF"),r=fb(e),o=fb(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=hb(n,r),a=hb(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}function gb(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bb,yb,vb,Sb="top",wb="top-right",xb="right",kb="bottom-right",Cb="bottom",Eb="bottom-left",Rb="left",Lb="top-left";gb(gb(gb(gb(gb(gb(gb(gb(gb(gb(bb={},"equal-equal",[Sb,Cb]),"equal-higher",[Cb,kb]),"equal-lower",[Sb,wb]),"equal-void",[Sb,Cb]),"higher-equal",[Rb,Eb,Sb,wb]),"higher-higher-acute",[Cb,Eb,Rb,wb]),"higher-higher-obtuse",[Cb,Sb]),"higher-lower-negative",[Sb,wb,xb]),"higher-lower-positive",[Cb,Eb,Rb]),"higher-void",[Sb]),gb(gb(gb(gb(gb(gb(gb(gb(gb(gb(bb,"lower-equal",[Sb]),"lower-higher-negative",[Sb,Lb]),"lower-higher-positive",[kb]),"lower-lower-acute",[Sb,Lb,Rb,wb,xb]),"lower-lower-obtuse",[Sb,Cb]),"lower-void",[Sb]),"void-equal",[Sb]),"void-higher",[Sb,Cb]),"void-lower",[Sb,Cb,Rb]),"void-void",[Sb]),gb(bb,"unclassified",[Sb,Cb,xb,Rb,wb,kb,Eb,Lb]);var Pb=function(){if(vb)return yb;vb=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return yb=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},yb}();function Tb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ob(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ib(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Pb);var _b=1/.7,Mb="\\s*([+-]?\\d+)\\s*",qb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Db="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nb=/^#([0-9a-f]{3,8})$/,Ab=new RegExp(`^rgb\\(${Mb},${Mb},${Mb}\\)$`),zb=new RegExp(`^rgb\\(${Db},${Db},${Db}\\)$`),jb=new RegExp(`^rgba\\(${Mb},${Mb},${Mb},${qb}\\)$`),Fb=new RegExp(`^rgba\\(${Db},${Db},${Db},${qb}\\)$`),$b=new RegExp(`^hsl\\(${qb},${Db},${Db}\\)$`),Bb=new RegExp(`^hsla\\(${qb},${Db},${Db},${qb}\\)$`),Wb={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Hb(){return this.rgb().formatHex()}function Ub(){return this.rgb().formatRgb()}function Vb(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Nb.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Gb(t):3===n?new Xb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Kb(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Kb(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Ab.exec(e))?new Xb(t[1],t[2],t[3],1):(t=zb.exec(e))?new Xb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jb.exec(e))?Kb(t[1],t[2],t[3],t[4]):(t=Fb.exec(e))?Kb(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$b.exec(e))?ry(t[1],t[2]/100,t[3]/100,1):(t=Bb.exec(e))?ry(t[1],t[2]/100,t[3]/100,t[4]):Wb.hasOwnProperty(e)?Gb(Wb[e]):"transparent"===e?new Xb(NaN,NaN,NaN,0):null}function Gb(e){return new Xb(e>>16&255,e>>8&255,255&e,1)}function Kb(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xb(e,t,n,r)}function Jb(e){return e instanceof Ib||(e=Vb(e)),e?new Xb((e=e.rgb()).r,e.g,e.b,e.opacity):new Xb}function Zb(e,t,n,r){return 1===arguments.length?Jb(e):new Xb(e,t,n,null==r?1:r)}function Xb(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Qb(){return`#${ny(this.r)}${ny(this.g)}${ny(this.b)}`}function Yb(){const e=ey(this.opacity);return`${1===e?"rgb(":"rgba("}${ty(this.r)}, ${ty(this.g)}, ${ty(this.b)}${1===e?")":`, ${e})`}`}function ey(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ty(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ny(e){return((e=ty(e))<16?"0":"")+e.toString(16)}function ry(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new iy(e,t,n,r)}function oy(e){if(e instanceof iy)return new iy(e.h,e.s,e.l,e.opacity);if(e instanceof Ib||(e=Vb(e)),!e)return new iy;if(e instanceof iy)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new iy(a,s,l,e.opacity)}function iy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ay(e){return(e=(e||0)%360)<0?e+360:e}function sy(e){return Math.max(0,Math.min(1,e||0))}function ly(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Tb(Ib,Vb,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hb,formatHex:Hb,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return oy(this).formatHsl()},formatRgb:Ub,toString:Ub}),Tb(Xb,Zb,Ob(Ib,{brighter(e){return e=null==e?_b:Math.pow(_b,e),new Xb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Xb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xb(ty(this.r),ty(this.g),ty(this.b),ey(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qb,formatHex:Qb,formatHex8:function(){return`#${ny(this.r)}${ny(this.g)}${ny(this.b)}${ny(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Yb,toString:Yb})),Tb(iy,(function(e,t,n,r){return 1===arguments.length?oy(e):new iy(e,t,n,null==r?1:r)}),Ob(Ib,{brighter(e){return e=null==e?_b:Math.pow(_b,e),new iy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new iy(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Xb(ly(e>=240?e-240:e+120,o,r),ly(e,o,r),ly(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new iy(ay(this.h),sy(this.s),sy(this.l),ey(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ey(this.opacity);return`${1===e?"hsl(":"hsla("}${ay(this.h)}, ${100*sy(this.s)}%, ${100*sy(this.l)}%${1===e?")":`, ${e})`}`}}));const cy=Math.PI/180,uy=180/Math.PI,dy=4/29,py=6/29,fy=3*py*py;function hy(e){if(e instanceof my)return new my(e.l,e.a,e.b,e.opacity);if(e instanceof Sy)return wy(e);e instanceof Xb||(e=Jb(e));var t,n,r=vy(e.r),o=vy(e.g),i=vy(e.b),a=gy((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=gy((.4360747*r+.3850649*o+.1430804*i)/.96422),n=gy((.0139322*r+.0971045*o+.7141733*i)/.82521)),new my(116*a-16,500*(t-a),200*(a-n),e.opacity)}function my(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function gy(e){return e>.008856451679035631?Math.pow(e,1/3):e/fy+dy}function by(e){return e>py?e*e*e:fy*(e-dy)}function yy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Sy(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function wy(e){if(isNaN(e.h))return new my(e.l,0,0,e.opacity);var t=e.h*cy;return new my(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Tb(my,(function(e,t,n,r){return 1===arguments.length?hy(e):new my(e,t,n,null==r?1:r)}),Ob(Ib,{brighter(e){return new my(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new my(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Xb(yy(3.1338561*(t=.96422*by(t))-1.6168667*(e=1*by(e))-.4906146*(n=.82521*by(n))),yy(-.9787684*t+1.9161415*e+.033454*n),yy(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Tb(Sy,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Sy)return new Sy(e.h,e.c,e.l,e.opacity);if(e instanceof my||(e=hy(e)),0===e.a&&0===e.b)return new Sy(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*uy;return new Sy(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Sy(e,t,n,null==r?1:r)}),Ob(Ib,{brighter(e){return new Sy(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Sy(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return wy(this).rgb()}}));var xy=e=>()=>e;function ky(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):xy(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?ky:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):xy(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Zb(e)).r,(t=Zb(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ky(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var Cy,Ey="center",Ry="bottom";function Ly(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Py(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Oy)):void 0===t&&(t=Ty);for(var n,r,o,i,a,s=new My(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new My(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_y)}function Ty(e){return e.children}function Oy(e){return Array.isArray(e)?e[1]:null}function Iy(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function _y(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function My(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Ey,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ey,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ey,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ey},{key:"DataRangeIncludingZero",alignment:Ry},{key:"LimitedData",alignment:Ry},{key:"NegativeOrZeroValues",alignment:Ry}].reduce((function(e,t){return e[t.key]=t,e}),{}),My.prototype=Py.prototype={constructor:My,count:function(){return this.eachAfter(Ly)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Py(this).eachBefore(Iy)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Cy=function(e){
124
124
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
125
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),S=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+S}},My({exports:{}});const Wy=/,(?![^(]*\))/,Uy=/\s(?![^(]*\))/,Hy=/^[0-9]+[a-zA-Z%]+?$/,Vy=["none","inset","initial","inherit"],Gy=e=>{if(!e)return;const t=e.split(Uy).filter((e=>!Vy.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||Hy.test(e))(t)||Vy.includes(t.toLowerCase())?void 0:t;return n},Ky=e=>e?e.split(Wy).map((e=>e.trim())):[];function Jy(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function Zy(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:Jy(t,n,r,o)}const Xy={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Qy={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function Yy(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function eS(e,t,n){const r=null==e?void 0:e.bgImage;if(r){let o="";if("media"===r.mode||"media"===e.useImage){let e;const i=null==r?void 0:r.mediaUrl,{qUrl:a}=(null==i?void 0:i.qStaticContentUrl)||{};o=a?decodeURIComponent(a):void 0,o=Yy(t,o),n&&(e=Object.entries(n).map((e=>{let[t,n]=e;return"&".concat(t,"=").concat(encodeURIComponent(n))})).join("&"),o="".concat(o,"?").concat(e))}"expression"===r.mode&&(o=r.expressionUrl?decodeURIComponent(r.expressionUrl):void 0);const i=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=Qy[e.bgImage.position]),n}(e),a=function(e){var t;let n=Xy.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=Xy[r]),n}(e);return o?{url:o,pos:i,size:a}:void 0}}function tS(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):Zy(null==r?void 0:r.color,"","backgroundColor",t,n)}function nS(e,t,n){var r,o;const i=Jy("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&Vy.includes(e.toLowerCase()))return e.toLowerCase();const r=Ky(e);if(1!==r.length)return e;let o=n;if(!o){const n=Ky(t);if(1!==n.length)return e;o=Gy(n[0])}if(!o)return e;const i=Gy(r[0]);return i?e.replace(i,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||i,i,Zy(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function rS(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:i.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color):n.getStyle("object.".concat(r),"title.".concat(t),"color"),backgroundColor:i.backgroundColor||n.getStyle("object.".concat(r),"title.".concat(t),"backgroundColor"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const oS={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},iS=["theme","selections"];function aS(e){var t,n,r,o,i,a,s,l;let{app:c,themeApi:u,theme:p,queryParams:f,components:h=[],checkboxes:m=!1}=e;const g=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;iS.includes(n)&&(e[n]=t)})),e}(h),b=(e,t)=>u.getStyle("object.listBox",e,t),v=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e):void 0,y=function(e){var t,n,r,o,i;let{getColorPickerColor:a,theme:s,getListboxStyle:l,overrides:c,checkboxes:u}=e;const p=null===(t=c.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,f=a(p)||l("content","color")||(null===(n=s.palette)||void 0===n?void 0:n.text.primary),h=!u&&(null===(r=null===(o=c.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),m=(null===(i=c.selections)||void 0===i?void 0:i.colors)||{},g=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),i=a(m[e])||l("","dataColors.".concat(e))||"possible"===e&&l("","backgroundColor")||(null===(t=s.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||oS[e];return{[e]:i,[o]:h?Cv(i,f):f||(null===(n=s.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return d(d(d(d(d({},g("selected")),g("alternative")),g("excluded")),g("selectedExcluded")),g("possible"))}({getColorPickerColor:v,theme:p,getListboxStyle:b,overrides:g,checkboxes:m}),S=g.theme||{},w=v(null===(t=S.header)||void 0===t?void 0:t.fontColor)||b("title.main","color"),x=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?tS({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color),t):t}({themeApi:u,themeOverrides:S}),k=null!==(n=S.background)&&void 0!==n&&n.image?eS({bgImage:S.background.image},c,f):void 0,C=x||b("","backgroundColor")||p.palette.background.default,E=function(e,t){const n=xv(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(C,b),R=function(e){return Cv("#fff",e("content","color"))}(b),L=(null===(r=S.header)||void 0===r?void 0:r.fontStyle)||{},O=(null===(o=S.content)||void 0===o?void 0:o.fontStyle)||{},T=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:C,backgroundImage:null==k||!k.url||null!=k&&k.url.startsWith("url(")?void 0:"url('".concat(k.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==k?void 0:k.size,backgroundPosition:null==k?void 0:k.pos},header:{color:w,fontSize:(null===(i=S.header)||void 0===i?void 0:i.fontSize)||b("title.main","fontSize"),fontFamily:(null===(a=S.header)||void 0===a?void 0:a.fontFamily)||b("title.main","fontFamily"),fontWeight:T(L.bold,"bold","normal")||b("title.main","fontWeight")||"bold",textDecoration:L.underline?"underline":"initial",fontStyle:T(L.italic,"italic","normal")||b("title.main","fontStyle")||"initial"},content:{backgroundColor:m?void 0:y.possible,color:y.possibleContrast||b("content","color"),fontSize:(null===(s=S.content)||void 0===s?void 0:s.fontSize)||b("content","fontSize"),fontFamily:(null===(l=S.content)||void 0===l?void 0:l.fontFamily)||b("content","fontFamily"),fontWeight:T(O.bold,"bold","normal")||b("content","fontWeight")||"normal",textDecoration:O.underline?"underline":"initial",fontStyle:T(O.italic,"italic","normal")||b("content","fontStyle")||"initial"},search:{color:R,borderColor:p.palette.divider,highlightBorderColor:p.palette.custom.focusBorder,backgroundColor:E,backdropFilter:"blur(8px)"},selections:y}}function sS(e){let{app:t,themeApi:n,theme:r,queryParams:o,components:i,checkboxes:a}=e;return aS({app:t,themeApi:n,theme:r,queryParams:o,components:i,checkboxes:a})}function lS(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:i,app:a,fieldName:s,stateName:l="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=(()=>!1),sortCriteria:f=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:h="ltr"}=e;const m=Boolean(null==s?void 0:s.qLibraryId),g=o&&Boolean(t.current),[b,v]=w.useState(0),y=xs(),S=w.useRef(),[k]=Ah({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:f,qFieldDefs:m?void 0:[s]},qLibraryId:m?s.qLibraryId:void 0}},a,s,l),C=w.useCallback((()=>{k.lock("/qListObjectDef")}),[k]),E=w.useCallback((()=>{k.unlock("/qListObjectDef")}),[k]),{translator:R,themeApi:L,keyboardNavigation:O,hostConfig:T}=w.useContext(Bl),P=w.useRef(),I=w.useRef(),[_]=iv(a,k,I),[M]=Wh(k),[N]=w.useState((()=>av({selectDisabled:p}))),q=ag({containerRef:I,enabled:O}),{checkboxes:D=d}=M||{},A=sS({themeApi:L,theme:y,components:u,checkboxes:D});if(w.useEffect((()=>{_&&g&&(_.isModal(k)||_.goModal("/qListObjectDef"))}),[_,g]),!(k&&M&&R&&A))return null;const z=!0===M.qListObject.qDimensionInfo.qLocked,j=(e,t)=>{const n="escapeKeyDown"!==t;_.noModal(n),i()},F=Rb({layout:M,model:k,translator:R,selectionState:N,selections:_}),$=lv(M);return x.createElement(Zf,{className:"listbox-container",open:g,onClose:j,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?j():void 0,direction:h},x.createElement(Kp,{container:!0,direction:"column",gap:0,ref:I},x.createElement(Kp,{item:!0,container:!0,style:{direction:h,padding:y.spacing(1)}},x.createElement(Kp,{item:!0},z?x.createElement(dc,{onClick:E,disabled:!z,size:"large"},x.createElement(Jh,{title:R.get("Listbox.Unlock")})):x.createElement(dc,{onClick:C,disabled:!$,size:"large"},x.createElement(Xh,{title:R.get("Listbox.Lock")}))),x.createElement(Kp,{item:!0,xs:!0}),x.createElement(Kp,{item:!0},x.createElement(Kb,{layout:M,more:{enabled:!z,actions:F,alignTo:P,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:_,onConfirm:j,onCancel:()=>j(0,"escapeKeyDown")}}))),x.createElement(Kp,{item:!0,xs:!0},x.createElement("div",{ref:P}),x.createElement(Kp,{item:!0},x.createElement(ev,{ref:S,popoverOpen:g,styles:A,visible:!0,model:k,listCount:b,selections:_,selectionState:N,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:q.focusSelection},autoFocus:null==c||c,direction:h})),x.createElement(wb,{model:k,app:a,layout:M,selections:_,selectionState:N,direction:h,onSetListCount:e=>v(e),onCtrlF:()=>{S.current.focus()},styles:A,keyboard:q}))))}function cS(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:s}=w.useContext(Bl),l=i||w.useRef(),c=xs(),[u,d]=w.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),a()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,b=m.qAlternative/h.qTotal,v=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,S=0===y&&0===h.qTotal;let k="";h.qTotal===y&&h.qTotal>1?k=s.get("CurrentSelections.All"):y>1&&h.qTotal?k=s.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(k=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(k="".concat(t.states[r],": ").concat(k));const C=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:b},{color:c.palette.selected.excluded,ratio:v}];C.forEach(((e,t)=>{e.offset=t?C[t-1].offset+C[t-1].ratio:0}));let E=null,R=null,L=null,O=null;return i||(E=x.createElement(Kp,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},x.createElement(bc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label),x.createElement(bc,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},k)),h.qLocked?R=x.createElement(Kp,{item:!0},x.createElement(dc,{size:"large"},x.createElement(Jh,null))):h.qOneAndOnlyOne||(R=x.createElement(Kp,{item:!0},x.createElement(dc,{title:s.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},x.createElement(Kh,null)))),L=x.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===S&&C.map((e=>x.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),O=x.createElement(Kp,{container:!0,gap:1,ref:l,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,R,L,u&&x.createElement(lS,{alignTo:l,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),i?x.createElement(lS,{alignTo:l,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):O}var uS=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const dS={item:"".concat("MultiState","-item")},pS=As(Kp)((e=>{let{theme:t}=e;return{["&.".concat(dS.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function fS(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[i,a]=w.useState(!!r),[s,l]=w.useState(-1),[c,u]=w.useState(r?r.current:null),d=r||w.useRef(),{translator:p}=w.useContext(Bl),f=p.get("Selection.ClearAllStates"),h=()=>{l(-1),o()};let m=null;r||(m=x.createElement(x.Fragment,null,x.createElement(Kp,{item:!0,xs:!0,zeroMinWidth:!0},x.createElement(Pd,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},x.createElement(bc,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label))),x.createElement(Kp,{item:!0},x.createElement("div",{style:{width:"12px"}})),x.createElement(Kp,{item:!0},x.createElement(dc,{size:"large"},x.createElement(uS,null)))));const g=x.createElement(mf,{dense:!0},x.createElement(Lf,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},x.createElement(Nl,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>x.createElement(Lf,{key:r,title:t.label,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,r)},x.createElement(Md,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},x.createElement(cS,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),b=x.createElement(Zf,{open:i,onClose:()=>{a(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),v=r?b:x.createElement(pS,{container:!0,gap:0,className:dS.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,a(!i))}},m,i&&b,s>-1&&x.createElement(lS,{alignTo:d,show:s>-1,close:h,app:n.model,fieldName:t.selections[s].qField,stateName:t.states[s]}));return r&&s>-1?x.createElement(lS,{alignTo:d,show:s>-1,close:h,app:n.model,fieldName:t.selections[s].qField,stateName:t.states[s]}):v}const hS="More",mS={item:"".concat(hS,"-item"),badge:"".concat(hS,"-badge")},gS=As(Kp)((e=>{let{theme:t}=e;return{["&.".concat(mS.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(mS.badge)]:{padding:t.spacing(0,1)}}}));function bS(e){let{items:t=[],api:n}=e;const r=xs(),[o,i]=w.useState(!1),[a,s]=w.useState(-1),[l,c]=w.useState(null),u=w.useRef(),d=()=>{s(-1)};let p=null;return a>-1&&(p=t[a].states.length>1?x.createElement(fS,{field:t[a],api:n,moreAlignTo:u,onClose:d}):x.createElement(cS,{field:t[a],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),x.createElement(gS,{container:!0,gap:0,className:mS.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))}},x.createElement(Kp,{item:!0},x.createElement(Md,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},x.createElement(bc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),x.createElement(Kp,{item:!0},x.createElement(dc,{size:"large"},x.createElement(uS,null))),o&&x.createElement(Zf,{open:o,onClose:()=>{i(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},x.createElement(mf,{dense:!0},t.map(((e,t)=>x.createElement(Lf,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,t)},x.createElement(Md,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?x.createElement(fS,{field:e,api:n}):x.createElement(cS,{field:e,api:n}))))))),p)}const vS=120,yS=72;function SS(e){let{api:t,app:n}=e;const r=xs(),[o]=jh(n),[i]=Wh(o),[a,s]=w.useState({items:[],more:[]}),{modalObjectStore:l}=w.useContext(Bl).selectionStore,[c,u]=Hh(),[d,p]=w.useState(0);return w.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-yS,n=Math.floor(t/vS);p(n)}),[u]),w.useEffect((()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach((e=>{const r=e.qField;let o=t[r];var i;void 0===o&&(o={name:r,label:(null===(i=e.qDimensionReferences)||void 0===i||null===(i=i.find((e=>e.qLabel)))||void 0===i?void 0:i.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)}))}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach((e=>n(e.qSelectionObject,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(i);s((t=>{const r=e;if((()=>{const{model:e}=l.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,i,t.isInModal(),d]),x.createElement(Kp,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},a.items.map((e=>x.createElement(Kp,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(vS,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?x.createElement(fS,{field:e,api:t}):x.createElement(cS,{field:e,api:t})))),a.more.length>0&&x.createElement(Kp,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(yS,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},x.createElement(bS,{items:a.more,api:t})))}var wS=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var xS=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const kS=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}}))),o=(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::"),i=(n.qStateNames||[]).map((e=>e)).join("::");o!==i&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function CS(e){let{api:t,app:n}=e;const{translator:r}=w.useContext(Bl),[o]=function(e){const[t]=jh(e),[n]=Wh(t),[r]=Uh(e),[o,i]=w.useState(null);return w.useEffect((()=>{r&&t&&n&&kS(t,n,r)}),[r,t,n]),w.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),i({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return x.createElement(Kp,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},x.createElement(Kp,{item:!0},x.createElement(dc,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},x.createElement(wS,null))),x.createElement(Kp,{item:!0},x.createElement(dc,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},x.createElement(xS,null))),x.createElement(Kp,{item:!0},x.createElement(dc,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},x.createElement(Nb,null))))}const ES=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function RS(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function LS(){return ES.map(RS).join("")}function OS(e){let{app:t}=e;const n=xs(),[r]=tv(t);return r?x.createElement(Kp,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},x.createElement(Kp,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},x.createElement(CS,{api:r,app:t})),x.createElement(Kp,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},x.createElement(SS,{api:r,app:t}))):null}let TS;TS="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let PS=null,IS=null;const _S=TS.clearTimeout,MS=TS.setTimeout,NS=TS.cancelAnimationFrame||TS.mozCancelAnimationFrame||TS.webkitCancelAnimationFrame,qS=TS.requestAnimationFrame||TS.mozRequestAnimationFrame||TS.webkitRequestAnimationFrame;function DS(e){let t,n,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&PS(this.__resizeRAF__),this.__resizeRAF__=IS((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=TS.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==NS||null==qS?(PS=_S,IS=function(e){return MS(e,20)}):(PS=function([e,t]){NS(e),_S(t)},IS=function(e){const t=qS((function(){_S(n),e()})),n=MS((function(){NS(t),e()}),20);return[t,n]});class AS extends w.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,p=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=DS(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:p,scaledWidth:f,width:h}=this.state,m={overflow:"visible"},g={};let b=!1;return r||(0===d&&(b=!0),m.height=0,g.height=d,g.scaledHeight=p),o||(0===h&&(b=!0),m.width=0,g.width=h,g.scaledWidth=f),i&&(b=!1),w.createElement(c,{ref:this._setRef,style:{...m,...l},...u},!b&&e(g))}}function zS(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:i,constraints:a,selections:s}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const a=e.currentTarget.closest(".listbox-container"),l=i();switch(n){case rg.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(r){cg(a)||lg(a)||dg(e,t)}else{if(!(ug(a)||lg(a)||cg(a)))break}o();break;case rg.ENTER:case rg.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case rg.ESCAPE:dg(e,t),s.isActive()&&s.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==a?void 0:a.select)||(null==a?void 0:a.active),t=i();return e||t})())return;const{keyCode:t,ctrlKey:s=!1,shiftKey:l=!1}=e;switch(t){case rg.ARROW_UP:r({up:1});break;case rg.ARROW_DOWN:r({down:1});break;case rg.PAGE_UP:r({up:o.stop-o.start});break;case rg.PAGE_DOWN:r({down:o.stop-o.start});break;case rg.HOME:r({scrollPosition:s&&l?"overflowStart":"start"});break;case rg.END:r({scrollPosition:s&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const jS=As("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function FS(e){let{text:t}=e;const{translator:n}=w.useContext(Bl);return x.createElement(jS,null,n.get(t))}const $S={fontSize:"12px"},BS=As(Cl)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(bm,"px")}}})),WS=As(Kp,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return d(d({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),US=As(bc)((e=>{let{styles:t}=e;return d(d({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function HS(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const i=t.get("SelectionToolbar.ClickToUnlock");return x.createElement(BS,{title:i,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?x.createElement(cp,{size:16,variant:"indeterminate",color:"primary"}):x.createElement(Jh,{disableRipple:!0,style:$S}),!o&&x.createElement(bc,{fontSize:"14px"},i))}var VS=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var GS=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var KS=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const JS="H",ZS="C";var XS={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:i,keyboard:a}=e;switch(t.qGrouping){case JS:return{icon:GS,tooltip:"Listbox.DrillDown",onClick:void 0};case ZS:{const e=n&&i,s=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?KS:VS,tooltip:"Listbox.Cyclic",onClick:e?s:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case rg.SPACE:case rg.ENTER:s();break;case rg.TAB:{if(!a.enabled)return;let n;n=e.shiftKey?a.focusSelection():lg(t)||cg(t),n||dg(e,a)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const QS=As(Nl)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function YS(e){let{iconData:t,translator:n,iconStyle:r,disabled:o,keyboard:i}=e;if(!t)return;const{icon:a,tooltip:s,onClick:l,onKeyDown:c}=t,u=a,p=n.get(s);return l?x.createElement(QS,{variant:"outlined",onClick:l,tabIndex:i.innerTabStops?0:-1,title:p,size:"large",disableRipple:!0,disabled:o,onKeyDown:c,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},x.createElement(u,{style:r})):x.createElement(u,{title:p,size:"large",style:d(d({},r),{},{padding:"".concat(bm,"px")})})}const ew=500;let tw=0;function nw(e){var t,n,r;let{layout:o,translator:i,styles:a,isRtl:s,showLock:l,showSearchIcon:u,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:b,showDetachedToolbarOnly:v,containerRef:y,model:S,selectionState:k,isDirectQuery:C,selections:E,keyboard:R,autoConfirm:L,app:O,disablePortal:T}=e;const[P,I]=w.useState(v),[_,M]=w.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[N,q]=w.useState(!1);w.useEffect((()=>{var e;M(null==o||null===(e=o.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==o||null===(n=o.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const D=w.useRef(null),A=XS.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:O,selections:E,isPopover:g,active:!(null!=p&&p.active),keyboard:R}),z=l&&_,j=!l&&_,F=u||j||A,$=mm-(F?bm:0),B=s?mm-(F?bm:0):gm,W=(u?vm:0)+(j?vm:0)+(A?vm:0),U=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-tw<ew)return Promise.resolve();if(r)return()=>{};i(!0),tw=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:_,setLocked:M,settingLockedState:N,setSettingLockedState:q,model:S}),H=Rb({layout:o,model:S,translator:i,selectionState:k,isDirectQuery:C,selections:E}),V=_||!l?void 0:[{key:"lock",type:void 0,label:i.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Zh,enabled:()=>!N&&!k.selectDisabled()&&lv(o),action:U}],G=null!=p&&p.active?x.createElement(Jb,{title:i.get("Listbox.Search"),size:"large",style:d(d({},$S),{},{padding:"".concat(bm,"px")})}):x.createElement(dc,{onClick:f,tabIndex:-1,title:i.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},x.createElement(Jb,{style:$S}));w.useEffect((()=>{if(!D.current||!m)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:s,paddingLeft:l,paddingRight:c}=e;const u=l+c,d=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+s+u+2+128,p=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:m,titleRef:D,iconsWidth:W,paddingLeft:$,paddingRight:B});I(v||e)}),[W,$,B,D.current,v,Object.entries(m||{}).sort().join(",")]);const K=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,extraItems:a,selections:s,keyboard:l,autoConfirm:c,disablePortal:u}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:a,more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:u},selections:{show:n,api:s,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!g&&P,showToolbar:b,containerRef:y,isLocked:_,extraItems:V,listboxSelectionToolbarItems:H,selections:E,keyboard:R,autoConfirm:L,disablePortal:T}),J=x.createElement(Kb,c({isRtl:s,layout:o},K));if(v)return J;const Z=j?x.createElement(Jh,{size:"large",style:d(d({},$S),{},{padding:"".concat(bm,"px")})}):void 0;return x.createElement(WS,{item:!0,container:!0,styles:a,isRtl:s,marginY:1,paddingLeft:"".concat($,"px"),paddingRight:"".concat(B,"px"),className:"header-container"},z&&x.createElement(HS,{isLoading:N,translator:i,toggleLock:U,keyboard:R}),F&&x.createElement(Kp,{item:!0,container:!0,alignItems:"center",width:W,className:"header-action-container"},Z||u&&G,x.createElement(YS,{iconData:A,iconStyle:$S,disabled:E.isActive()&&g,translator:i,keyboard:R})),x.createElement(Kp,{item:!0,xs:!0,minWidth:0,justifyContent:s?"flex-end":"flex-start",className:h.listBoxHeader},x.createElement(US,{variant:"h6",noWrap:!0,ref:D,title:o.title,styles:a},o.title)),x.createElement(Kp,{item:!0,display:"flex"},J))}const rw="ListBoxInline",ow={listBoxHeader:"".concat(rw,"-listBoxHeader"),screenReaderOnly:"".concat(rw,"-screenReaderOnly"),listboxWrapper:"".concat(rw,"-listboxWrapper")},iw=As(Kp,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return d(d({},o.background),{},{["& .".concat(ow.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(ow.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(ow.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const aw=x.memo((function(e){var t,n,r,o;let{options:i,layout:a}=e;const{app:s,direction:l,frequencyMode:c,checkboxes:u,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:b,fetchStart:v,postProcessPages:y,calculatePagesHeight:S,showGray:k=!0,scrollState:C,renderedCallback:E,toolbar:R=!0,isPopover:L=!1,showLock:O=!1,components:T,selectDisabled:P=(()=>!1),disablePortal:I=!0}=i,_=xs(),{translator:M,keyboardNavigation:N,themeApi:q,queryParams:D,constraints:A}=w.useContext(Bl),{checkboxes:z=u}=a||{},j=sS({app:s,themeApi:q,theme:_,queryParams:D,components:T,checkboxes:z}),F=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==s?void 0:s.layout}),$=w.useRef(),B=w.useRef(),[W,U]=Hh(),[H,V]=w.useState(!1),[G,K]=w.useState(!1),J=w.useRef(!1),[Z,X]=w.useState({down:0,up:0,scrollPosition:""}),Q=e=>X((t=>d(d({},t),e))),[Y,ee]=w.useState({start:0,stop:0}),[te]=tv(s),[ne]=w.useState((()=>av({selectDisabled:P}))),re=ag({containerRef:$,enabled:N}),oe=w.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:s,appSelections:te})),[s,te]),ie=null==a?void 0:a.qListObject.qDimensionInfo.qError,ae=ie&&A.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:se,handleOnMouseEnter:le,handleOnMouseLeave:ce,globalKeyDown:ue}=w.useMemo((()=>zS({keyboard:re,hovering:J,updateKeyScroll:Q,currentScrollIndex:Y,constraints:A,isModal:oe,selections:g})),[re,J,Q,$,Y,s,te,A,oe]);w.useEffect((()=>(document.addEventListener("keydown",ue),()=>{document.removeEventListener("keydown",ue)})),[ue]),w.useEffect((()=>{!0===p&&K(!0);const e=()=>{V(!0)},t=()=>{V(!1),"toggle"===p&&K(!1)};return L&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),V(L)),R&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),V(L||g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[R,g,L]);const{wildCardSearch:de,searchEnabled:pe,autoConfirm:fe=!1,layoutOptions:he={}}=null!=a?a:{},me=null==a||null===(t=a.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,ge=!1!==pe&&"toggle"===p&&!me,be=(null==a||null===(n=a.title)||void 0===n?void 0:n.length)&&!1!==(null==a?void 0:a.showTitle),ve=R&&!be&&!L,ye=R&&be||L,Se="rtl"===l;if(!(m&&a&&M&&j))return null;const we=!0===p||"toggle"===p&&G&&!1!==pe,xe=null!==(r=he.dense)&&void 0!==r&&r,ke=()=>{K(!G)},Ce=()=>{"toggle"===p?ke():B.current.focus()},Ee=we&&("toggle"===p||f),Re="grid"===(null==he?void 0:he.dataLayout),Le=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=Hg({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===i?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Re,dense:xe,height:null===(o=$.current)||void 0===o?void 0:o.clientHeight,layoutOrder:he.layoutOrder});ie&&(null==E||E());const Oe=ye?Lm+Sm:0,Te=x.createElement(nw,{app:s,showSearchIcon:ge,onShowSearch:ke,isPopover:L,showToolbar:H,isDirectQuery:F,autoConfirm:fe,showDetachedToolbarOnly:ve,layout:a,translator:M,styles:j,isRtl:Se,showLock:O,constraints:A,classes:ow,containerRect:U,containerRef:$,model:m,selectionState:ne,selections:g,keyboard:re,disablePortal:I});return x.createElement(x.Fragment,null,ve&&Te,x.createElement(iw,{className:"listbox-container",container:!0,tabIndex:re.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Le,styles:j,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:le,onMouseLeave:ce,ref:e=>{$.current=e,W(e)},isGridMode:Re,"aria-label":re.active?M.get("Listbox.ScreenReaderInstructions"):""},ye&&Te,x.createElement(Kp,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Oe,role:"region","aria-label":M.get("Listbox.ResultFilterLabel")},x.createElement(Kp,{item:!0},x.createElement(ev,{ref:B,selections:g,selectionState:ne,model:m,dense:xe,keyboard:re,visible:we,search:p,autoFocus:Ee,beginSelectionOnFocus:!L,wildCardSearch:de,searchEnabled:pe,direction:l,hide:ge&&ke,styles:j})),x.createElement(Kp,{item:!0,xs:!0,className:ow.listboxWrapper},ie?x.createElement(FS,{text:ae}):x.createElement(AS,null,(e=>{let{height:t,width:n}=e;return x.createElement(wb,{model:m,app:s,constraints:A,layout:a,selections:g,selectionState:ne,direction:l,frequencyMode:c,rangeSelect:h,checkboxes:z,height:t,width:n,update:b,fetchStart:v,postProcessPages:y,calculatePagesHeight:S,keyboard:re,showGray:k,scrollState:C,keyScroll:{state:Z,reset:()=>X({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Y,set:ee},renderedCallback:E,onCtrlF:Ce,isModal:oe,styles:j})}))))))}));function sw(e){let{options:t={}}=e;const{model:n}=t,[r]=Wh(n);return x.createElement(aw,{options:t,layout:r})}function lw(e){let{app:t,qId:n,options:r={}}=e;const[o,i]=w.useState(),[a]=Dh(),{sessionModel:s}=r,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>l.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return w.useEffect((()=>{let e=!1,r=()=>{};return async function(){const o=await Promise.resolve(s||async function(e){return a.get(e)||await t.getObject(e)}(n));if(!e){if(!a.get(o.id)){a.set(o.id,o);const e=()=>{a.clear(o.id)};o.once("closed",e),r=()=>{o.removeListener("closed",e)}}i(o)}}(),()=>{e=!0,r()}}),[]),o}const cw={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function uw(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const dw=["__DO_NOT_USE__"],pw=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return d(d(d({},p(e,dw)),n),t)},fw=w.forwardRef(((e,t)=>{let{app:n,fieldIdentifier:r,qId:o,stateName:i,element:a,initialOptions:s,renderedCallback:l}=e;const[c,u]=w.useState(s),{isExistingObject:p,hasExternalSelectionsApi:f}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:o,options:c});p||Object.assign(c,{frequencyMode:uw(c.frequencyMode)});const[h,m]=w.useState(0);w.useEffect((()=>{if(h)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(h+1)}),[p,f]);const g=p?lw({app:n,qId:o,options:c}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:i={}}=e;const[a,s]=w.useState(""),[l,c]=w.useState(!0),[u,d]=w.useState(),[p,f]=w.useState(),h=null!==(t=i.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=i;a&&a.failedToFetchFieldDef&&(m=!1,g="N"),w.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?s(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):s({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),s({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:b,checkboxes:v,listLayout:y,properties:S={}}=i,x={dense:b};"horizontal"===y&&(x.dataLayout="grid",x.layoutOrder="column",x.maxVisibleColumns={auto:!0},x.maxVisibleRows={auto:!1,maxRows:1});const k=w.useRef();k.current||(k.current=LS());const C=he(!0,{},cw,{qInfo:{qId:k.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:v,layoutOptions:x,title:h});let E;if(he(!0,C,S),r.qLibraryId?(C.qListObjectDef.qLibraryId=r.qLibraryId,E=r.qLibraryId):(C.qListObjectDef.qDef.qFieldDefs=[r],E=r),"P"!==g&&m)if(null!=a&&a.multiFieldDim)C.frequencyMax="fetch";else{const e=r.qLibraryId?a:E;C.frequencyMax={qValueExpression:gb(e)}}const[R]=Ah(C,l?null:n,E,o);return w.useEffect((()=>{R&&d(R)}),[R]),u}({app:n,fieldIdentifier:r,stateName:i,options:c}),b=w.useRef(a),v=f?c.selectionsApi:iv(n,g,[b,".njs-action-toolbar-more",".njs-action-toolbar-popover"],c)[0],y=w.useMemo((()=>d(d({},c),{},{selections:v,model:g,app:n,renderedCallback:l})),[c,v,g,n]);return w.useImperativeHandle(t,(()=>({setOptions:e=>u(e)})),[]),v&&g?x.createElement(sw,{options:y}):null}));const hw={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function mw(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i={}}=e;const[a,s]=w.useState(!!i.show);return x.createElement(lS,{show:a,app:t,alignTo:{current:o},anchorOrigin:i.anchorOrigin,transformOrigin:i.transformOrigin,close:()=>{s(!1),i.onPopoverClose&&i.onPopoverClose()},fieldName:n,stateName:r,autoFocus:i.autoFocus,components:i.components,sortCriteria:i.sortCriteria,direction:i.direction})}function gw(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function bw(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const vw=e=>({qDef:{qFieldDefs:[e]}}),yw=e=>({qDef:{qDef:e}});function Sw(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?vw(e):d(d({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||LS(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<i.maxDimensions()?(t.qDimensions.push(r),gw(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return bw(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?yw(e):d(d({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||LS(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),gw(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];bw(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const ww=e=>({qDef:{qFieldDefs:[e]}});function xw(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?ww(e):d(d({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||LS(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===i.dimensions().length,canAddMeasure:()=>!1};return i}const kw=e=>({qDef:{qFieldDefs:[e]}}),Cw=e=>{let t;return t="string"==typeof e?he(!0,{},cw,{qListObjectDef:kw(e)}):e.qListObjectDef?he(!0,{},cw,e):he(!0,{},cw,{qListObjectDef:e}),t};function Ew(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=Cw(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||LS(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function Rw(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function Lw(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:s}=a,l=s.split("/");let c=r;for(let e=0;e<l.length;e++){const t=l[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?xw:e.match("/qChildListDef")?Ew:Sw}(s),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===Rw(t)?await d.addMeasure(t):await d.addDimension(t)}}var Ow={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var Tw={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},move:function(e,t,n){if(n<0)throw Error("newIndex cannot be a negative value!");if(n>=e.length){let t=n-e.length+1;for(;t;)e.push(void 0),t--}const r=e.at(t);e.splice(t,1),e.splice(n,0,r)}};const Pw=2**53-1;function Iw(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function _w(e,t){const n=he(!0,{},t,e);return Ow.getValue(n,"qOtherTotalSpec.qOtherCounted")||Ow.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Ow.getValue(n,"qOtherTotalSpec.qOtherLimit")||Ow.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Mw(e,t){return he(!0,{},t,e)}function Nw(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var qw={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===Ow.getValue(e,t)&&Ow.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Iw,importCommonProperties:function(e,t,n){const r="masterobject"===Ow.getValue(t,"properties.qInfo.qType")?"masterobject":Ow.getValue(n,"qInfo.qType");Ow.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:_w,createDefaultMeasure:Mw,resolveValue:Nw,getHypercubePath:function(e){const t=Ow.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(Tw.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Tw.indexRemoved(n.qInterColumnSortOrder,i))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=he(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?Ow.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||Iw(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=he(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},i=n.measures||{max:0},a=Nw(i.max,r.dimensions.length,Pw),s=Nw(i.min,r.dimensions.length,0);return{maxDimensions:Nw(o.max,a,Pw),minDimensions:Nw(o.min,s,0),maxMeasures:a,minMeasures:s}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.dimensions.length;++s)o.qDimensions.length<n?o.qDimensions.push(_w(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(_w(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(_w(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(_w(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(_w(a.excludedDimensions[s],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.measures.length;++s)o.qMeasures.length<n?o.qMeasures.push(Mw(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Mw(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Mw(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(Mw(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Mw(a.excludedMeasures[s],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=Ow.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=Ow.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var Dw={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,i=Ow.getValue(o,n||""),a=i.qHyperCubeDef,s=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),s.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();Tw.isOrderedSubset(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(qw.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!Ow.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},s=qw.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=Ow.getValue(n,i||"").qHyperCubeDef,c=Ow.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=qw.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=qw.getDefaultDimension(),defaultMeasure:m=qw.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,qw.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&qw.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),qw.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),qw.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),qw.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),qw.copyPropertyIfExist("qMaxStackedCells",l,c),qw.copyPropertyIfExist("qNoOfLeftDims",l,c),qw.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),qw.copyPropertyOrSetDefault("qMode",l,c,"S"),qw.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),qw.copyPropertyOrSetDefault("qSortbyYValue",l,c),qw.copyPropertyOrSetDefault("qIndentMode",l,c),qw.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),qw.importCommonProperties(s,t,n),qw.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),qw.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const Aw=e=>Ow.getValue(e,"data.targets.0.propertyPath"),zw=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Dw.exportProperties})(Aw(e))},jw=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Dw.importProperties})(Aw(e))},Fw=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:a=!1}=e;const s=i?{qProperty:i}:await n.getFullPropertyTree(),l=r.current.getQae(),c=zw(l);if(!c)throw new Error("Source chart does not support conversion");const u=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),p=u.qae,f=jw(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:c({propertyTree:s,hypercubePath:qw.getHypercubePath(l),viewDataMode:a}),initialProperties:d({qInfo:{qType:o},visualization:o},Ow.getValue(p,"properties.initial",{})),dataDefinition:Ow.getValue(p,"data.targets.0.",{}),hypercubePath:qw.getHypercubePath(p),viewDataMode:a})},$w={hypercube:Dw};var Bw=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function Ww(e){let{d:t}=e;const n=xs();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const i={color:o},a=x.createElement(bc,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},x.createElement(rf,null,t.missing||t.error?x.createElement(Bw,{style:i}):x.createElement(dm,{style:i})));return x.createElement(Kp,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},x.createElement(Kp,{item:!0},a),x.createElement(Kp,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},x.createElement(bc,{noWrap:!0,component:"p"},x.createElement(bc,{component:"span",variant:"subtitle2",color:r},t.description),x.createElement(bc,{component:"span"}," "),x.createElement(bc,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function Uw(e){let{data:t}=e;const n=xs();return x.createElement(Kp,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>x.createElement(Ww,{d:e,key:t})));return r.length>0&&x.createElement(Kp,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},x.createElement(bc,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function Hw(e){let{title:t="Error",message:n="",data:r=[]}=e;return x.createElement(Kp,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},x.createElement(Kp,{item:!0},x.createElement(Bw,{style:{fontSize:"38px"}})),x.createElement(Kp,{item:!0},x.createElement(bc,{variant:"h6",align:"center","data-tid":"error-title"},t)),x.createElement(Kp,{item:!0},x.createElement(bc,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),x.createElement(Uw,{data:r}))}const Vw=["size"],Gw="Progress",Kw={root:"".concat(Gw,"-root"),front:"".concat(Gw,"-front"),back:"".concat(Gw,"-back")},Jw=As("div")((e=>{let{theme:t}=e;return{["&.".concat(Kw.root)]:{position:"relative",display:"inline-block"},["& .".concat(Kw.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(Kw.back)]:{color:t.palette.divider}}})),Zw={small:16,medium:32,large:64,xlarge:128};function Xw(e){let{size:t="medium"}=e,n=p(e,Vw);const r=Zw[t];return x.createElement(Jw,{className:Kw.root},x.createElement(cp,c({variant:"determinate",value:100,className:Kw.back,size:r,thickness:3},n)),x.createElement(cp,c({variant:"indeterminate",disableShrink:!0,className:Kw.front,size:r,thickness:3},n)))}const Qw=["cancel","translator"],Yw=["retry","translator"],ex={stripes:"".concat("LongRunningQuery","-stripes")},tx=As(Kp)((()=>({["& .".concat(ex.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function nx(e){let{cancel:t,translator:n}=e,r=p(e,Qw);return x.createElement(x.Fragment,null,x.createElement(tx,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},x.createElement(Kp,{item:!0},x.createElement(Xw,null)),x.createElement(Kp,{item:!0},x.createElement(bc,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),x.createElement(Kp,c({item:!0},r),x.createElement(Nl,{variant:"contained",onClick:t},n.get("Cancel"))))}function rx(e){let{retry:t,translator:n}=e,r=p(e,Yw);return x.createElement(x.Fragment,null,x.createElement(Kp,{item:!0},x.createElement(Bw,{style:{fontSize:"38px"}})),x.createElement(Kp,{item:!0},x.createElement(bc,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),x.createElement(Kp,{item:!0},x.createElement(Nl,c({variant:"contained",onClick:t},r),n.get("Retry"))))}function ox(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=w.useContext(Bl);return x.createElement(Kp,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:ex.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&x.createElement(nx,{cancel:r.cancel,translator:o,className:ex.cancel}),n&&x.createElement(rx,{retry:r.retry,translator:o,className:ex.retry}))}function ix(){return x.createElement(Kp,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},x.createElement(Xw,{size:"large"}))}const ax={width:0,height:0},sx="Header",lx={containerStyle:"".concat(sx,"-containerStyle"),containerTitleStyle:"".concat(sx,"-containerTitleStyle")},cx=As(Kp)((e=>{let{theme:t}=e;return{["&.".concat(lx.containerStyle)]:{flexGrow:0},["&.".concat(lx.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),ux="njs-cell-title",dx="njs-cell-sub-title";function px(e){let{id:t,layout:n,sn:r,anchorEl:o,hovering:i,focusHandler:a,titleStyles:s={},isRtl:l,translator:c}=e;const u=n.showTitles&&!!n.title,d=n.showTitles&&!!n.subtitle,p=n.qSelectionInfo&&n.qSelectionInfo.qInSelections,[f,h]=w.useState([]);w.useEffect((()=>{r&&r.component&&r.component.isHooked&&r.component.observeActions((e=>{h([...e,...r&&r.selectionToolbar&&r.selectionToolbar.items||[]])}))}),[r]);const m=[lx.containerStyle,...u||d?[lx.containerTitleStyle]:[]],g=i||p,b=x.createElement(Kb,{show:!1,selections:{show:p,api:r.component.selections,onKeyDeactivate:a.refocusContent},actions:f,popover:{show:g,anchorEl:o},focusHandler:a,layout:n,isRtl:l});return x.createElement(cx,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},x.createElement(Kp,{item:!0,zeroMinWidth:!0,xs:!0,dir:l?"rtl":"ltr"},x.createElement(Kp,{container:!0,wrap:"nowrap",direction:"column"},u?x.createElement(qh,{title:n.title},x.createElement(bc,{id:"".concat(t,"_title"),variant:"h6",noWrap:!0,className:ux,style:s.main},n.title)):x.createElement("div",{id:"".concat(t,"_title"),style:ax,"aria-label":c.get("Accessibility.Object.NoTitle")}),d&&x.createElement(qh,{title:n.subtitle},x.createElement(bc,{variant:"body2",noWrap:!0,className:dx,style:s.subTitle},n.subtitle)))),x.createElement(Kp,{item:!0},b))}const fx="condition",hx="search",mx="clear_selection",gx="matches_exactly",bx="starts_with",vx="ends_with",yx="beginning_of_word",Sx="general",wx="fixed_value",xx=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude"),r=e.filter((e=>!1!==e.showInFooter));return r.map((e=>{var r;let o="";switch(e.type){case hx:o+=(e=>{var t,n,r;let o="",i="";switch(null===(t=e.options)||void 0===t?void 0:t.mode){case yx:o="*^",i="*";break;case vx:o="*";break;case bx:i="*";break;case gx:break;default:o="*",i="*"}const a=null!==(n=null===(r=e.options.values)||void 0===r?void 0:r[0])&&void 0!==n?n:"";return""!==a?'"'.concat(o).concat(a).concat(i,'"'):""})(e);break;case fx:o+=(e=>{var t,n,r,o,i,a,s;const{options:l}=e,c=(null==l?void 0:l.mode)===Sx,u=(null==l||null===(t=l.modifier)||void 0===t?void 0:t.type)===wx,d=null!=l&&null!==(n=l.modifier)&&void 0!==n&&n.operator?l.modifier.operator.split(" "):[];if(0===d.length||!u&&(null===(r=l.firstValue)||void 0===r||!r.aggregator||null===(o=l.firstValue)||void 0===o||!o.field)||u&&(null===(i=l.firstValue)||void 0===i||!i.fixedValue)||c&&(null===(a=l.conditionField)||void 0===a||!a.aggregator||null===(s=l.conditionField)||void 0===s||!s.field))return"";let p,f,h="=";var m,g,b;if(c&&u)p="".concat(null===(m=l.conditionField)||void 0===m?void 0:m.aggregator,"(").concat(mb(null===(g=l.conditionField)||void 0===g?void 0:g.field),")"),f="".concat(null===(b=l.firstValue)||void 0===b?void 0:b.fixedValue);else if(!c&&u){var v;p="",f="".concat(null===(v=l.firstValue)||void 0===v?void 0:v.fixedValue),h=""}else if(c||u){var y,S,w,x;p="".concat(null===(y=l.conditionField)||void 0===y?void 0:y.aggregator,"(").concat(mb(null===(S=l.conditionField)||void 0===S?void 0:S.field),")"),f="".concat(null===(w=l.firstValue)||void 0===w?void 0:w.aggregator,"(").concat(mb(null===(x=l.firstValue)||void 0===x?void 0:x.field),")")}else{var k,C;p="".concat(mb(e.field)),f="".concat(null===(k=l.firstValue)||void 0===k?void 0:k.aggregator,"(total ").concat(mb(null===(C=l.firstValue)||void 0===C?void 0:C.field),")")}const E="".concat(h).concat(p).concat(d[0]).concat(f);let R="";if(d.length>1){var L,O,T;if(!u&&(null===(L=l.secondValue)||void 0===L||!L.aggregator||null===(O=l.secondValue)||void 0===O||!O.field)||u&&(null===(T=l.secondValue)||void 0===T||!T.fixedValue))return"";let e,t;var P;if(c&&u)e="".concat(null===(P=l.secondValue)||void 0===P?void 0:P.fixedValue),t=" and ".concat(p);else if(!c&&u){var I;e="".concat(null===(I=l.secondValue)||void 0===I?void 0:I.fixedValue),t=""}else if(c||u){var _,M;e="".concat(null===(_=l.secondValue)||void 0===_?void 0:_.aggregator,"(").concat(mb(null===(M=l.secondValue)||void 0===M?void 0:M.field),")"),t=" and ".concat(p)}else{var N,q;e="".concat(null===(N=l.secondValue)||void 0===N?void 0:N.aggregator,"(total ").concat(mb(null===(q=l.secondValue)||void 0===q?void 0:q.field),")"),t=" and ".concat(p)}R="".concat(t).concat(d[1]).concat(e)}return'"'.concat(E).concat(R,'"')})(e);break;case mx:o+=t.get("Object.FilterLabel.All");break;default:o+=null!==(r=e.options)&&void 0!==r&&r.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==o&&(o=o.replace(/^"|"$/g,""),e.exclude&&(o="".concat(n," ").concat(o))),{field:e.field,label:o}})).filter((e=>""!==e.label))},kx=(e,t)=>xx(e,t).map((e=>"".concat(e.field,": ").concat(e.label))).join("; ");var Cx=e=>Gh((e=>d(d({},e),{},{shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function Ex(e){let{styles:t,children:n}=e;return x.createElement(bc,{noWrap:!0,variant:"body2",style:d(d({},t),{},{fontStyle:"italic"})},n)}function Rx(e){var t;let{layout:n,translator:r,filtersFootnoteString:o,footerStyle:i,isRtl:a}=e;const s=xx(null!==(t=null==n?void 0:n.filters)&&void 0!==t?t:[],r),l={color:null==i?void 0:i.color,fontFamily:null==i?void 0:i.fontFamily,fontSize:null==i?void 0:i.fontSize,fontWeight:null==i?void 0:i.fontWeight};return x.createElement(qh,{title:o},x.createElement(Kp,{container:!0,wrap:"nowrap",sx:{backgroundColor:null==i?void 0:i.backgroundColor,padding:null==i?void 0:i.padding,borderTop:null==i?void 0:i.borderTop},"data-testid":"filters-footnote",justifyContent:a?"flex-end":"flex-start"},x.createElement(Kp,{item:!0,display:"flex"},x.createElement(Cx,{style:{fontSize:"12px",color:i.color,margin:"auto"}}),x.createElement(Ex,{styles:d(d({},l),{},{marginLeft:"2px"})},r.get("Object.FiltersApplied"),"  ")),x.createElement(Kp,{item:!0,display:"flex"},s.map((e=>x.createElement(Kp,{container:!0,wrap:"nowrap",key:"".concat(e.field,"-").concat(e.label)},x.createElement(Ex,{styles:d(d({},l),{},{fontWeight:"bold"})},"".concat(e.field,":")),x.createElement(Ex,{styles:l},"   ",e.label,"  ")))))))}const Lx={itemStyle:"".concat("Footer","-itemStyle")},Ox=As(Kp)((()=>({["& .".concat(Lx.itemStyle)]:{minWidth:0,width:"100%"}}))),Tx="njs-cell-footer";function Px(e){var t,n,r;let{layout:o,titleStyles:i={},translator:a,flags:s,isCardTheme:l,isRtl:c}=e;const u=i.footer,d=(null==o||null===(t=o.filters)||void 0===t?void 0:t.length)>0&&(null==o||null===(n=o.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.length)>0,p=kx(null!==(r=null==o?void 0:o.filters)&&void 0!==r?r:[],a),f=!(null!=o&&o.footnote)&&d&&p,h=null==s?void 0:s.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),m=l?"1px":"6px";return o&&o.showTitles&&(o.footnote||f)?x.createElement(Ox,{container:!0},x.createElement(Kp,{item:!0,className:Lx.itemStyle,"data-testid":Tx,sx:{paddingTop:e=>h?m:e.spacing(1)}},o.footnote&&x.createElement(qh,{title:o.footnote},x.createElement(bc,{noWrap:!0,variant:"body2",className:Tx,style:u,align:c?"right":"left"},o.footnote)),f&&x.createElement(Rx,{layout:o,translator:a,filtersFootnoteString:p,footerStyle:u,isRtl:c}))):null}class Ix{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout((()=>{this.doNext()}),10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const _x="njs-viz";function Mx(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:i,halo:a,cellId:s}=e;const{component:l}=t,{theme:c,language:u,constraints:p,interactions:f,keyboardNavigation:h}=w.useContext(Bl),[m]=w.useState((()=>new Ix)),[g,b]=w.useState(!1),[v,y]=w.useState(0),[S,k,C]=Hh(),[E,R]=w.useState(null),L=w.useCallback((e=>{e&&R(e)}),[]);return w.useEffect((()=>{if(E)return l.created({options:n}),l.mounted(E),b(!0),()=>{m.stop(),l.willUnmount()}}),[E,l]),w.useEffect((()=>{g&&E&&k&&(!l.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||m.schedule((()=>{const e=[];return p.passive||e.push("passive"),p.active||e.push("interact"),p.select||e.push("select"),p.edit||e.push("edit"),a.app&&a.app.session&&e.push("fetch"),Promise.resolve(l.render({layout:o,options:n,plugins:r,embed:a.public.nebbie,context:d({constraints:p,interactions:f,theme:a.public.theme,appLayout:i,keyboardNavigation:h},l.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(i||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),y(v+1))}))})))}),[k,n,r,E,C,o,i,c,u,p,f,g,h]),x.createElement("div",{ref:S,"data-render-count":v,style:{position:"relative",height:"100%"},className:_x},x.createElement("div",{ref:L,id:"".concat(s,"_content"),style:{position:"absolute",width:"100%",height:"100%"}}))}const Nx={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart"},qx=e=>{let{layout:t,theme:n,app:r,themeName:o,disableThemeBorder:i,queryParams:a}=e;const s=w.useMemo((()=>{if(t&&n){const o=t.components?t.components.find((e=>"general"===e.key)):null,s=(e=t.visualization,Nx[e.toLowerCase()]?Nx[e.toLowerCase()]:e),l={main:rS(o,"main",n,s),footer:rS(o,"footer",n,s),subTitle:rS(o,"subTitle",n,s)},c=tS(o,n,s),u=eS(o,r,a),d=function(e,t,n,r){const o=Zy(null==e?void 0:e.borderColor,"","borderColor",t,n);let i=null==e?void 0:e.borderWidth;return!i&&!r&&(i=Jy("","borderWidth",t,n)),i&&o?"".concat(i," solid ").concat(o):void 0}(o,n,s,i),p=function(e,t,n){return(null==e?void 0:e.borderRadius)||Jy("","borderRadius",t,n)}(o,n,s);return{titleStyles:l,bgColor:c,bgImage:u,border:d,borderRadius:p,boxShadow:nS(o,n,s)}}var e;return{}}),[t,n,r,o,i]);return s};class Dx extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const Ax=["action-button","sn-nav-menu","filterpane","sn-shape"],zx=[...Ax,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],jx=e=>-1===Ax.indexOf(e),Fx=e=>jx(e)?"10px 10px 0":"10px 0 0",$x=e=>{let{layout:t,isError:n,isCardTheme:r,titleStyles:o,translator:i}=e;if(r){var a,s,l;const e=(null==t?void 0:t.showTitles)&&!(null==t||!t.title),r=(null==t?void 0:t.showTitles)&&!(null==t||!t.subtitle),c=(null==t||null===(a=t.filters)||void 0===a?void 0:a.length)>0&&(null==t||null===(s=t.qHyperCube)||void 0===s||null===(s=s.qMeasureInfo)||void 0===s?void 0:s.length)>0,u=null==t?void 0:t.visualization,d=kx(null!==(l=null==t?void 0:t.filters)&&void 0!==l?l:[],i),p=!(null!=t&&t.footnote)&&c&&d,f=(null==t?void 0:t.showTitles)&&(!(null==t||!t.footnote)||p);let h;return e&&(o.main.padding=Fx(u)),r&&(o.subTitle.padding=((e,t)=>{const n=jx(e);return t?n?"0 10px":"0":Fx(e)})(u,e)),f&&(-1===Ax.indexOf(u)&&(o.footer.borderTop="1px solid #d9d9d9"),o.footer.padding="6px 10px"),(n||-1===zx.indexOf(u))&&(h="".concat(e||r?"0":"10px"," 10px ").concat(f?"0":"5px")),h}},Bx=new Map;[["auto-chart","Object.AutoChart"],["dummy-chart","Dummy"],["barchart","Object.BarChart"],["combochart","Object.ComboChart"],["container","Object.Container"],["distributionplot","Object.DistributionPlot"],["boxplot","Object.BoxPlot"],["filterpane","Object.FilterPane"],["gauge","Object.Gauge"],["histogram","Object.Histogram"],["kpi","Object.Kpi"],["linechart","Object.LineChart"],["listbox","Object.Listbox"],["piechart","Object.PieChart"],["pivot-table","Object.PivotTable"],["map","Object.Map"],["scatterplot","Object.ScatterPlot"],["sn-table","Object.StraightTable"],["text-image","Object.TextImage"],["treemap","Object.Treemap"],["waterfallchart","Object.WaterfallChart"],["mekkochart","Object.MekkoChart"],["action-button","Object.ActionButton"],["sn-nav-menu","Object.NavMenu"],["bulletchart","Object.BulletChart"],["sn-nlg-chart","Object.NlgChart"],["sn-analysis-autochart","Common.AnalysisTypes"],["sn-tabbed-container","Object.TabContainer"],["qlik-sankey-chart-ext","Object.SankeyChart"],["qlik-radar-chart","Object.RadarChart"],["qlik-funnel-chart-ext","Object.FunnelChart"],["sn-grid-chart","Object.GridChart"],["sn-layout-container","Object.LayoutContainer"]].forEach((e=>{let[t,n]=e;Bx.set(t,n)}));const Wx="njs-cell",Ux="njs-cell-body";const Hx=(e,t)=>{switch(t.type){case"LOADING":return d(d({},e),{},{loading:!0});case"LOADED":return d(d({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return d(d({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return d(d({},e),{},{longRunningQuery:!0});case"ERROR":return d(d({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Vx(e){let{delay:t=750}=e;const[n,r]=w.useState(!1);return w.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?x.createElement(ix,null):null}const Gx=e=>!e.qError||7005===e.qError.qErrorCode,Kx=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,s=i&&!a&&t[e].qError,l=a&&t[e].qCalcCondMsg,c="".concat(s?r:a?l||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!s&&e>=t.length||a,error:s}})),Jx=e=>e&&(Array.isArray(e)?e:[e])||[],Zx=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),s=Kx(o,Jx(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=Kx(i,Jx(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:s,reqMeasErrors:l}},Xx=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:s,hasLayoutErrors:l,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,s=!1;const l=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=Jx(f.qDimensionInfo||f.qItems).filter(Gx),m=Jx(f.qMeasureInfo).filter(Gx);if(o+=d,i+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){a=!0,s=7005===f.qError.qErrorCode;const t=s&&f.qCalcCondMsg?f.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=p||await r.getProperties();p=n;const o=Zx(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),b=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],v=l?c:b;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:v}]};function Qx(){return new P}const Yx=w.forwardRef(((e,t)=>{var n,r;let{halo:o,model:i,initialSnOptions:a,initialSnPlugins:s,initialError:l,onMount:c,currentId:u,emitter:p,navigation:f,onError:h}=e;const{app:m,types:g}=o,{nebbie:b}=o.public,{theme:v,translator:y,language:S,keyboardNavigation:k,externalFocusManagement:C,disableCellPadding:E=!1,navigation:R,queryParams:L}=w.useContext(Bl),[O]=w.useState(p||Qx),T=xs(),[P,I,_]=Hh(),[M,N]=w.useReducer(Hx,{loading:!1,loaded:!1,longRunningQuery:!1,error:(q=l)?{title:q.message}:null,sn:null,visualization:null});var q;const[D,A]=w.useState(i),[z,{validating:j,canCancel:F,canRetry:$},B]=Wh(D),[W]=Uh(m),[U,H,V]=Hh(),[G,K]=w.useState(a),[J,Z]=w.useState(s),X="njs-cell-".concat(u),[Q]=iv(m,D,["#".concat(X),".njs-action-toolbar-popover"]),[Y,ee]=w.useState(!1),te=w.useRef({enter:null,leave:null}),{titleStyles:ne,bgColor:re,bgImage:oe,border:ie,borderRadius:ae,boxShadow:se}=qx({layout:z,theme:o.public.theme,app:o.app,themeName:v,disableThemeBorder:null==G?void 0:G.disableThemeBorder,queryParams:L}),le=!("rtl"!==(null==G?void 0:G.direction)),ce=w.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});w.useEffect((()=>{nv(ce.current),ce.current.blurCallback=e=>{ce.current.onBlurHandler?ce.current.onBlurHandler(e):(o.root.toggleFocusOfCells(),e&&V&&V.focus())},ce.current.refocusContent=()=>{M.sn.component&&"function"==typeof M.sn.component.focus&&M.sn.component.focus()}}),[]);w.useEffect((()=>{if(l)return void c();if(!W||!z)return;if(M.visualization===z.visualization&&M.sn)return void(async e=>{const[t,n]=await Xx(y,z,e.generator.qae.data,D);N(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:M.sn,layout:z,model:D})})(M.sn);const e=g.getSupportedVersion(z.visualization,z.version);return(async(e,t)=>{N({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,onMount:d,navigation:p}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),f=e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,navigation:p});f&&(t({type:"LOADED",sn:f,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message,errorObject:e}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:N,types:g,visualization:e,version:t,model:D,app:m,selections:Q,nebbie:b,focusHandler:ce.current,emitter:O,onMount:c,navigation:null!=f?f:R})})(z.visualization,e),()=>{}}),[g,M.sn,D,Q,z,W,S]),w.useEffect((()=>{if(!j)return;const e=setTimeout((()=>N({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[j]),w.useImperativeHandle(t,(()=>({getQae:()=>M.sn.generator.qae,getExtensionDefinition:()=>M.sn.generator.definition.ext,support(e,t,n){if(z&&M.loaded&&!M.error){var r;const o=t||(null===(r=M.sn.generator.definition.ext)||void 0===r?void 0:r.support);if(o)return function(e,t,n){const r=t[e];return"function"==typeof r?r.call(null,n):"boolean"==typeof r&&r}(e,o,n||z)}return!1},toggleFocus(e){"function"==typeof M.sn.component.focus&&(e?M.sn.component.focus():M.sn.component.blur())},setOnBlurHandler(e){ce.current.onBlurHandler=e},setSnOptions:K,setSnPlugins:Z,setModel:A,getImperativeHandle(){var e;return null!==(e=M.sn)&&void 0!==e&&e.component&&"function"==typeof M.sn.component.getImperativeHandle?M.sn.component.getImperativeHandle():{}},onContextMenu(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=M.sn)||void 0===e?void 0:e.component.onContextMenu(...n)},async takeSnapshot(){const{width:e,height:t}=I;let n=JSON.parse(JSON.stringify(z));return"function"==typeof M.sn.component.setSnapshotData&&(n=await M.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:y.language(),theme:T.name,appLayout:W,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof o.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return o.config.snapshot.capture(e)}})),[M.sn,H,I,z,T.name,W]);let ue=null;if(M.loading&&!M.longRunningQuery)ue=x.createElement(Vx,null);else if(M.error){if(h){h(M.error.errorObject?M.error.errorObject:new Dx(M.error.title))}ue=x.createElement(Hw,M.error)}else M.loaded&&(ue=x.createElement(Mx,{key:z.visualization,sn:M.sn,halo:o,snOptions:G,snPlugins:J,layout:z,appLayout:W,cellId:u}));const de=!(null===(n=o.public.theme)||void 0===n||!n.getStyle("","","_cards")),pe=null===(r=o.public.galaxy)||void 0===r?void 0:r.flags;let fe,he;E?(fe=!1,he=void 0):null!=pe&&pe.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(fe=!1,he=$x({layout:z,isError:M.error,isCardTheme:de,titleStyles:ne,translator:y})):(fe=!0,he=void 0);const me=Bx.get(null==z?void 0:z.visualization),ge=y.get(me);return x.createElement(ac,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:re||"unset",backgroundImage:oe&&oe.url?"url(".concat(oe.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:oe&&oe.size,backgroundPosition:oe&&oe.pos,border:ie,borderRadius:ae,boxShadow:se,boxSizing:"border-box"},elevation:0,square:!0,className:Wx,ref:P,id:X,onMouseEnter:()=>{te.current.leave&&clearTimeout(te.current.leave),te.enter||(te.current.enter=setTimeout((()=>{ee(!0),te.current.enter=null}),250))},onMouseLeave:()=>{te.current.enter&&clearTimeout(te.current.enter),te.current.leave||(te.current.leave=setTimeout((()=>{ee(!1),te.current.leave=null}),750))}},x.createElement(Kp,{container:!0,direction:"column",gap:0,style:d(d({position:"relative",width:"100%",height:"100%"},fe?{padding:T.spacing(1)}:{}),M.longRunningQuery?{opacity:"0.3"}:{}),"aria-labelledby":"".concat(u,"_title ").concat(u,"_type ").concat(u,"_content")},z&&x.createElement("div",{id:"".concat(u,"_type"),style:ax,"aria-label":null!=ge?ge:z.visualization}),_&&z&&M.sn&&x.createElement(px,{layout:z,sn:M.sn,anchorEl:_,hovering:Y,focusHandler:ce.current,titleStyles:ne,isRtl:le,id:u,translator:y}," "),x.createElement(Kp,{tabIndex:k&&!C?0:-1,onKeyDown:k&&!C?e=>{["Enter"," ","Spacebar"].includes(e.key)&&o.root.toggleFocusOfCells(u)}:null,item:!0,xs:!0,className:Ux,style:d({height:"100%"},he?{padding:he}:{}),ref:U},ue),_&&z&&M.sn&&x.createElement(Px,{layout:z,titleStyles:ne,translator:y,flags:pe,isCardTheme:de,isRtl:le})),M.longRunningQuery&&x.createElement(ox,{canCancel:F,canRetry:$,api:B}))}));function ek(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function tk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return ek(e)&&ek(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...tk("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function nk(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))}))}const rk=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},ok=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t);function ik(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const ak=1e3,sk=1e3,lk=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],ck=(e,t)=>e&&e.find((e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t}))||null,uk=e=>{var t,n;return d(d({},e),{},{qDef:d(d({},e.qDef),{},{cId:null!==(t=null===(n=e.qDef)||void 0===n?void 0:n.cId)&&void 0!==t?t:LS()})})},dk=e=>{var t;return d(d({},uk(e)),{},{qOtherTotalSpec:null!==(t=e.qOtherTotalSpec)&&void 0!==t?t:{}})},pk=(e,t,n)=>{const r=t;e.forEach(((e,t)=>{const o=e.qTags,i={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(r,n.properties,o,i,n):(i.qSortByNumeric=1,i.qSortByAscii=1),r.qDef.qSortCriterias?r.qDef.qSortCriterias[t]=i:r.qDef.qSortCriterias=[i]}))},fk=new Error("Not supported in this object, need to implement in subclass."),hk=e=>{if(!e)return[];return[...e].map((e=>{var t;return null!==(t=e.qDef)&&void 0!==t&&t.autoSort&&void 0!==e.autoSort?d(d({},e),{},{qDef:d(d({},e.qDef),{},{autoSort:e.autoSort}),autoSort:void 0}):e}))},mk=(e,t)=>{if(e)return t&&Ow(e,t)?Ow(e,t).qHyperCube:e.qHyperCube};function gk(e,t){return e.filter(((e,n)=>t.includes(n)))}function bk(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.getAlternativeDimensions(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function vk(e,t,n){Tw.indexAdded(e.hcProperties.qInterColumnSortOrder,null!=n?n:t.length-1)}function yk(e,t){return"function"==typeof e.dimensionDefinition.move?Promise.resolve(e.dimensionDefinition.move.call(e,t,e.properties,e)).then((()=>t)):Promise.resolve(t)}function Sk(e,t){return e.getAlternativeDimensions().length+t.length>=ak}function wk(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<ak}async function xk(e,t,n,r,o,i){await e.autoSortDimension(t),Tw.indexAdded(e.hcProperties.qInterColumnSortOrder,n+i),r.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function kk(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.getAlternativeMeasures(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function Ck(e,t){Tw.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function Ek(e,t,n){return n||e.maxMeasures()<=t.length&&t.length<sk}function Rk(e,t,n,r){const o=e-n.length;let[i]=n.splice(n.length-1,1);return r.splice(0,0,i),[i]=r.splice(o+1,1),n.splice(t,0,i),Promise.resolve(i)}class Lk{constructor(e){var t,n;const r=e||{};this.dimensionDefinition=r.dimensionDefinition||{max:0},this.measureDefinition=r.measureDefinition||{max:0},this.dimensionProperties=null!==(t=r.dimensionProperties)&&void 0!==t?t:{},this.measureProperties=null!==(n=r.measureProperties)&&void 0!==n?n:{},this.globalChangeListeners=r.globalChangeListeners,this.app=r.app}setProperties(e){var t;this.properties=e,this.isAnalysisType=null===(t=this.properties)||void 0===t||null===(t=t.metaData)||void 0===t?void 0:t.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}static type(){throw new Error("Must override this method")}static getDimensions(){return[]}getDimension(e){var t;const n=this.getDimensions(),r=this.getAlternativeDimensions();return null!==(t=ck(n,e))&&void 0!==t?t:ck(r,e)}static getAlternativeDimensions(){throw new Error("Method not implemented.")}static addDimension(){throw fk}static addDimensions(){throw fk}static removeDimension(){throw fk}static removeDimensions(){throw fk}static autoSortDimension(){throw fk}static replaceDimension(){throw fk}static getSorting(){throw fk}createLibraryDimension(e,t){var n,r;const o=he(!0,{},this.dimensionProperties||{},t||{});return o.qDef=null!==(n=o.qDef)&&void 0!==n?n:{},o.qOtherTotalSpec=null!==(r=o.qOtherTotalSpec)&&void 0!==r?r:{},o.qLibraryId=e,o.qDef.autoSort=!0,o.qDef.qSortCriterias=lk,delete o.qDef.qFieldDefs,delete o.qDef.qFieldLabels,o}createFieldDimension(e,t,n){var r,o;const i=he(!0,{},this.dimensionProperties||{},n||{});return i.qDef=null!==(r=i.qDef)&&void 0!==r?r:{},i.qOtherTotalSpec=null!==(o=i.qOtherTotalSpec)&&void 0!==o?o:{},e||(i.qDef.qFieldDefs=[],i.qDef.qFieldLabels=[],i.qDef.qSortCriterias=[]),i.qDef.qFieldDefs=[e],i.qDef.qFieldLabels=t?[t]:[""],i.qDef.qSortCriterias=lk,i.qDef.autoSort=!0,i}addFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r)}addFieldDimensions(e){const t=e.map((e=>{let{field:t,label:n,defaults:r}=e;return this.createFieldDimension(t,n,r)}));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map((e=>{let{id:t,defaults:n}=e;return this.createLibraryDimension(t,n)}));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map((e=>{let{id:t}=e;return this.createLibraryDimension(t)}));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map((e=>{let{field:t}=e;return this.createFieldDimension(t)}));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){var n;const e=ik("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return null===(n=this.dimensionDefinition.max)||void 0===n?void 0:n.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasure(e){var t;const n=this.getMeasures(),r=this.getAlternativeMeasures();return null!==(t=ck(n,e))&&void 0!==t?t:ck(r,e)}static getMeasures(){return[]}static getAlternativeMeasures(){throw new Error("Method not implemented.")}static addMeasure(){throw fk}static addMeasures(){throw fk}static removeMeasure(){throw fk}static removeMeasures(){throw fk}static autoSortMeasure(){throw fk}static replaceMeasure(){throw fk}createExpressionMeasure(e,t,n){var r,o;const i=he(!0,{},this.measureProperties||{},n||{});return i.qDef=null!==(r=i.qDef)&&void 0!==r?r:{},i.qDef.qNumFormat=null!==(o=i.qDef.qNumFormat)&&void 0!==o?o:{},i.qDef.qDef=e,i.qDef.qLabel=t,i.qDef.autoSort=!0,i}addExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r)}addExpressionMeasures(e){const t=e.map((e=>{let{expression:t,label:n,defaults:r}=e;return this.createExpressionMeasure(t,n,r)}));return this.addMeasures(t)}createLibraryMeasure(e,t){var n,r;const o=he(!0,{},this.measureProperties||{},t||{});return o.qDef=null!==(n=o.qDef)&&void 0!==n?n:{},o.qDef.qNumFormat=null!==(r=o.qDef.qNumFormat)&&void 0!==r?r:{},ik("MASTER_measureURE_FORMAT")&&(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(o.qDef),o.qLibraryId=e,o.qDef.autoSort=!0,delete o.qDef.qDef,delete o.qDef.qLabel,o}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map((e=>{let{id:t,defaults:n}=e;return this.createLibraryMeasure(t,n)}));return this.addMeasures(t)}addAltLibraryMeasures(e){const t=e.map((e=>{let{id:t}=e;return this.createLibraryMeasure(t)}));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map((e=>{let{expression:t}=e;return this.createExpressionMeasure(t)}));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("function"==typeof this.measureDefinition.max){const t=this.getDimensions().length-e,n=ik("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return this.measureDefinition.max.apply(null,n)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach((t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})}))}}function Ok(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then((async()=>(vk(e,r,n),await function(e,t){return t&&"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)).then((()=>t)):Promise.resolve(t)}(e,t),t)))}function Tk(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),e.autoSortMeasure(t).then((()=>(Ck(e,r),function(e,t){return t&&"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):Promise.resolve()}(e,t).then((()=>t)))))):t}async function Pk(e,t){!function(e,t){Tw.indexRemoved(e.hcProperties.qInterColumnSortOrder,t)}(e,t),await function(e,t){const[n]=e.getDimensions().splice(t,1);return n&&"function"==typeof e.dimensionDefinition.remove?Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}async function Ik(e,t){!function(e,t){Tw.indexRemoved(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t)}(e,t),await function(e,t){const[n]=e.getMeasures().splice(t,1);return n&&"function"==typeof e.measureDefinition.remove?Promise.resolve(e.measureDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}function _k(e,t){const[n]=e.getAlternativeDimensions().splice(t,1);if(n&&"function"==typeof e.dimensionDefinition.remove)return n.isAlternative=!0,Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)).then((()=>{delete n.isAlternative}))}function Mk(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),Ck(e,r),function(e,t){return"function"==typeof e.measureDefinition.move?Promise.resolve(e.measureDefinition.move.call(null,t,e.properties,e,!0)).then((()=>t)):Promise.resolve(t)}(e,t)):Promise.resolve(t)}class Nk extends Lk{constructor(e){super(e),this.path=e.path}setProperties(e){return e?(super.setProperties(e),this.hcProperties=this.path?Ow.getValue(e,"".concat(this.path,".qHyperCubeDef")):e.qHyperCubeDef,this.hcProperties?(function(e){var t,n,r,o,i,a,s;const l=e;l.hcProperties.qDimensions=null!==(t=l.getDimensions())&&void 0!==t?t:[],l.hcProperties.qMeasures=null!==(n=l.getMeasures())&&void 0!==n?n:[],l.hcProperties.qInterColumnSortOrder=null!==(r=l.hcProperties.qInterColumnSortOrder)&&void 0!==r?r:[],l.hcProperties.qLayoutExclude=null!==(o=l.hcProperties.qLayoutExclude)&&void 0!==o?o:{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},l.hcProperties.qLayoutExclude.qHyperCubeDef=null!==(i=l.hcProperties.qLayoutExclude.qHyperCubeDef)&&void 0!==i?i:{qDimensions:[],qMeasures:[]},l.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=null!==(a=l.getAlternativeDimensions())&&void 0!==a?a:[],l.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=null!==(s=l.getAlternativeMeasures())&&void 0!==s?s:[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=hk(this.hcProperties.qDimensions),this.hcProperties.qMeasures=hk(this.hcProperties.qMeasures),{}):{}):{}}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qDimensions)&&void 0!==e?e:[]}getDimensionLayout(e){return this.getDimensionLayouts().filter((t=>e===t.cId))[0]}getDimensionLayouts(){const e=mk(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=dk(e);return wk(this,t)?bk(this,r,n):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?Ok(e,t,o):Promise.resolve(t)}(this,r,n)}async addDimensions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getDimensions(),r=n.length,o=[];let i=0;var s,l=!1,c=!1;try{for(var u,d=a(e);l=!(u=await d.next()).done;l=!1){const e=u.value;{if(Sk(this,n))return o;const a=dk(e);if(wk(this,t)){const e=await bk(this,a);o.push(e)}else n.length<this.maxDimensions()&&(await xk(this,a,r,n,o,i),i++)}}}catch(e){c=!0,s=e}finally{try{l&&null!=d.return&&await d.return()}finally{if(c)throw s}}return o}removeDimension(e,t){t&&_k(this,e),Pk(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),r=this.getDimensions();if(0===e.length)return[];let o=[];const i=[...e].sort(((e,t)=>t-e));if(t&&n.length>0){o=gk(n,e);var s,l=!1,c=!1;try{for(var u,d=a(i);l=!(u=await d.next()).done;l=!1){const e=u.value;await _k(this,e)}}catch(e){c=!0,s=e}finally{try{l&&null!=d.return&&await d.return()}finally{if(c)throw s}}}else if(r.length>0){o=gk(r,e);var p,f=!1,h=!1;try{for(var m,g=a(i);f=!(m=await g.next()).done;f=!1){const e=m.value;await Pk(this,e)}}catch(e){h=!0,p=e}finally{try{f&&null!=g.return&&await g.return()}finally{if(h)throw p}}}return o}replaceDimension(e,t){return this.autoSortDimension(t).then((()=>function(e,t,n){if(!n)return;const r=e.getDimensions(),o=r[t],i=d(d({},n),{},{qDef:d(d({},n.qDef),{},{cId:LS()})});return r[t]=i,i&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t)))}reinsertDimension(e,t,n){const r=uk(e);return wk(this,t)?bk(this,r,n).then((()=>{yk(this,r)})):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?(r.splice(o,0,t),vk(e,r),yk(e,t)):Promise.resolve(t)}(this,r,n)}moveDimension(e,t){const n=this.getDimensions(),r=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(Tw.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?Promise.resolve(Rk(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;Tw.move(r,o,i)}(e,t,n,r))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then((n=>{const r=(null==t?void 0:t.qLibraryId)&&(o=t.qLibraryId,(i=n)&&i.find((e=>e.qInfo.qId===o))||null);var o,i;return r&&pk(r.qData.info,t,e),t}))}(this,e):function(e,t){return e.app.getFieldList().then((n=>{var r;const o=(null==t||null===(r=t.qDef)||void 0===r?void 0:r.qFieldDefs)&&((e,t)=>{const n=(e=>{const t=[];return e.forEach((e=>{t.push((e=>{const t=e;return t.isDateField=(e=>{var t,n;return(null==e?void 0:e.qDerivedFieldData)&&((null==e||null===(t=e.qTags)||void 0===t?void 0:t.indexOf("$date"))>-1||(null==e||null===(n=e.qTags)||void 0===n?void 0:n.indexOf("$timestamp"))>-1)})(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach((n=>{n.qFieldDefs.forEach((r=>{var o;t.push({qName:r.qName,displayName:(o=r.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:r.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})}))})),t):t})(e);t.push(...n)})),t})(t.slice(0)),r=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find((t=>t.qName===e))||null)(r,n)||null})(t.qDef.qFieldDefs[0],n);return o&&pk([o],t,e),t}))}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)&&void 0!==e?e:[]}getMeasureLayouts(){const e=mk(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter((t=>e===t.cId))[0]}addMeasure(e,t,n){const r=this.getAlternativeMeasure(),o=uk(e);return Ek(this,r,t)?kk(this,o,n):Tk(this,o,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getMeasures(),r=[];let o=0;return e.forEach((async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=sk}(this,n))return!1;const i=uk(e);return Ek(this,n,t)?(kk(this,i),r.push(i)):n.length<this.maxMeasures()&&(await function(e,t,n,r,o){const i=e.getDimensions(),a=d({},t);return a.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Tw.indexAdded(e.hcProperties.qInterColumnSortOrder,i.length+n.length+o),n.push(a),r.push(a),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,a,e.properties,e),Promise.resolve(r)}(this,i,n,r,o),o++),!0})),r}removeMeasure(e,t){t&&function(e,t){e.getAlternativeMeasures().splice(t,1)}(this,e),Ik(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();if(0===e.length)return[];let o=[];if(t&&r.length>0)o=gk(r,e),function(e,t){const n=e,r=function(e,t){return e.filter(((e,n)=>!t.includes(n)))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=r}(this,e);else if(n.length>0){o=gk(n,e);const t=[...e].sort(((e,t)=>t-e));var i,s=!1,l=!1;try{for(var c,u=a(t);s=!(c=await u.next()).done;s=!1){const e=c.value;await Ik(this,e)}}catch(e){l=!0,i=e}finally{try{s&&null!=u.return&&await u.return()}finally{if(l)throw i}}}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then((()=>function(e,t,n){const r=e.getMeasures(),o=r[t],i=d(d({},n),{},{qDef:d(d({},n.qDef),{},{cId:LS()})});return r[t]=i,i&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t)))}reinsertMeasure(e,t,n){const r=this.getAlternativeMeasures(),o=uk(e);return Ek(this,r,t)?kk(this,o,n):Mk(this,o,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(Tw.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?Rk(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;Tw.move(r,o,i)}(e,t,n,r))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){Ow.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){var e;return(null===(e=this.hcProperties)||void 0===e?void 0:e.qDynamicScript)||[]}}const qk=he.bind(null,!0),Dk={},{isArray:Ak}=Array;function zk(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function jk(e){return void 0===e}function Fk(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function $k(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=jk(e[r||t])?i:e[t],e=e[r||t]})),e}function Bk(e,t){let n=!0;if(zk(e)&&zk(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Bk(e[r],t[r])||(n=!1)})),n);if(Ak(e)&&Ak(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Bk(e[n],t[n]))return!1;return!0}return e===t}Dk.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?qk({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Bk(i,a)||Fk(t,o)||(jk(a)?r.push({op:"add",path:s,value:i}):zk(i)&&zk(a)?r=r.concat(Dk.generate(a,i,s)):Ak(i)&&Ak(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&jk(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Bk(t,o))return r;if(!jk(t[0])&&jk(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(Dk.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{jk(t[o])&&!Fk(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},Dk.apply=function(e,t){t.forEach((t=>{let n=$k(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Ak(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Ak(o)&&Ak(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(zk(o)&&zk(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Fk(a,e)&&delete a[e]})),qk(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=$k(e,t.from);Ak(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Ak(n)?n.splice(+r,1):delete n[r]);var a}))},Dk.clone=function(e){return qk({},e)},Dk.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Dk.updateObject=function(e,t){Object.keys(e).length?Dk.apply(e,Dk.generate(e,t)):qk(e,t)};const Wk=e=>t=>{const n=(r=d(d({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(P.prototype).forEach((e=>{r[e]=P.prototype[e]})),P.init(r),r);var r;return n};let Uk,Hk;function Vk(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function Gk(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function Kk(e){Zk(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function Jk(e){if(e.__hooks.obsolete)return Promise.resolve();Hk=-1,Uk=e,Uk.__hooks.initiated&&Uk.__hooks.list.length;try{Uk.fn.call(null)}catch(e){console.error(e)}Uk.__hooks.initiated=!0;const t=Uk.__hooks;return eC(Uk),Hk=void 0,Uk=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){Zk(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){Zk(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)}))}(t),t.chain.promise}function Zk(e,t){try{e.forEach((e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())}))}catch(e){console.error(e)}e.length=0}function Xk(e,t){try{return Promise.all(e.__hooks.snaps.map((e=>Promise.resolve(e.fn(t))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Qk(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Yk(e){return e.__hooks.imperativeHandle}function eC(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function tC(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,eC(e))}function nC(e){if(void 0===Uk)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Uk.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function rC(e){nC(++Hk);return Uk.context[e]}function oC(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function iC(e){return{__hooked:!0,fn:e,initiate:Gk,run:Jk,teardown:Kk,runSnaps:Xk,runMenu:Qk,focus:dC,blur:pC,observeActions:tC,getImperativeHandle:Yk,updateRectOnNextRun:oC}}function aC(e){const t=nC(++Hk);if(!t.value){t.component=Uk;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout((()=>{r.__hooks.micro=null,Jk(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function sC(e,t){const n=nC(++Hk);Vk(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Uk.__hooks.pendingEffects.indexOf(n)&&Uk.__hooks.pendingEffects.push(n))}function lC(e,t){const n=nC(++Hk);Vk(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Uk.__hooks.pendingLayoutEffects.push(n))}function cC(e,t){const n=nC(++Hk);return Vk(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function uC(){return rC("element")}function dC(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function pC(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const fC={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},hC=Object.keys(fC),mC=e=>(Object.keys(P.prototype).forEach((t=>{e[t]=P.prototype[t]})),P.init(e),e);function gC(e,t){const n=d({},fC);mC(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==hC.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],i=Wk(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function bC(e,t,n){"function"==typeof e.component&&(e.component=iC(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},a=["appLayout","constraints","interactions"],s={},l={};t.model&&t.model.session||(s.select=!0,s.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:s,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}a.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(d(d({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(d(d({},r[e]),l))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?t.focus():e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return a.forEach((e=>{i[e]=JSON.stringify(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):gC(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=Dk.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Dk.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const s=Dk.generate(i,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,s,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const vC=()=>{};function yC(e,t){return void 0===e?()=>t:()=>e}function SC(e){const t=e||{};return{min:"function"==typeof t.min?t.min:yC(t.min,0),max:"function"==typeof t.max?t.max:yC(t.max,1e3),added:t.added||t.add||vC,description:t.description||vC,moved:t.moved||t.move||vC,removed:t.removed||t.remove||vC,replaced:t.replaced||t.replace||vC,isDefined:()=>!!e}}const wC=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function xC(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>wC(e,n,{}),dimensions:SC(e.dimensions),measures:SC(e.measures)}}function kC(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(xC)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function CC(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:kC(n.qae),component:n.component||{},create:e=>bC(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new Nk(e)}:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const EC=(e,t,n)=>{if(!e)return Promise.resolve();let r=Dk.generate(t,n);return he(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},RC=()=>{};function LC(){var e;let t,n,r,{model:o,halo:i,navigation:a,initialError:s,onDestroy:l=(async()=>{}),onRender:c=(()=>{}),onError:u=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=RC,f=null,h=null,m=null,g=null,b=!1;const v=new Promise((e=>{m=e})),y=new Promise((e=>{g=e})),S=e=>()=>{null==e||e(),g(),c(),b=!0};let w={},k=[];const C=new P;let E={};null!==(e=i.context)&&void 0!==e&&e.enablePrivateExperimental&&(E={support(e){var t;return!(!h||!b)&&f.current.support(e,null===(t=n)||void 0===t?void 0:t.support,r)},getPropertyPanelDefinition:()=>!(!h||!b)&&(n?n.definition:f.current.getExtensionDefinition().definition),toggleFocus(e){f.current.toggleFocus(e)},setOnBlurHandler(e){f.current.setOnBlurHandler(e)},onContextMenu(){return f.current.onContextMenu(...arguments)}});const R=d(d({id:o.id,model:o,async destroy(){await l(),p(),p=RC},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const n=await o.getLayout();if(rk(n)&&!t){const t=await Fw({halo:i,model:o,cellRef:f,newType:e});return await ok(o,t.qProperty),t}const r=await o.getEffectiveProperties(),a=await Fw({halo:i,model:o,cellRef:f,newType:e,properties:r}),s=a.qProperty;return await EC(o,r,s),a}return await Fw({halo:i,model:o,cellRef:f,newType:e})},async toggleDataView(e){let a;if(t||!1===e)t&&!0!==e&&(a=o,await i.app.destroySessionObject(t),t=void 0,n=void 0,r=void 0);else{let e=i.context.dataViewType;const s=await o.getEffectiveProperties();if(!i.types.getSupportedVersion(e)){if(!i.types.getSupportedVersion("table"))throw new Error("No data view type registered");e="table"}const l=await Fw({halo:i,model:o,cellRef:f,newType:e,properties:s,viewDataMode:!0});a=await i.app.createSessionObject(l.qProperty),t=a.id,n=f.current.getExtensionDefinition(),r=await o.getLayout()}a&&f.current.setModel(a)},get viewDataToggled(){return void 0!==t},addListener(e,t){C.addListener(e,t)},removeListener(e,t){C.removeListener(e,t)},getImperativeHandle:async()=>(await y,f.current.getImperativeHandle()),takeSnapshot:async()=>(await y,f.current.takeSnapshot())},E),{},{__DO_NOT_USE__:{mount(e){if(h)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return h=e,[p,f]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,emitter:s,initialError:l,navigation:c,onError:u}=e;const{root:d}=t,p=x.createRef(),f=LS(),h=Hs.createPortal(x.createElement(Yx,{ref:p,halo:t,model:r,currentId:f,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a,emitter:s,navigation:c,onError:u}),n,f),m=()=>{d.remove(h),r.removeListener("closed",m)};return r.on("closed",m),d.addCell(f,p),(async()=>{try{await d.add(h,m)}catch(e){m(),a(),u(e)}})(),[m,p]}({halo:i,element:e,model:o,initialSnOptions:w,initialSnPlugins:k,initialError:s,onMount:m,emitter:C,navigation:a,onError:u}),v},async applyProperties(e){const t=tk("/",e,await o.getEffectiveProperties());if(t.length)return o.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;h?(async()=>{await v,f.current.setSnOptions(d(d(d({},w),e),{onInitialRender:S(t)}))})():w=d(d(d({},w),e),{onInitialRender:S(t)})})(e)},plugins(e){(async e=>{nk(e),h?(async()=>{await v,f.current.setSnPlugins(e)})():k=e})(e)},exportImage:()=>f.current.exportImage(),takeSnapshot:()=>f.current.takeSnapshot(),getModel:()=>o,convert:{async toType(e){const t=await o.getEffectiveProperties(),n=await Fw({halo:i,model:o,cellRef:f,newType:e,properties:t}),r=n.qProperty;return await EC(o,t,r),n},async revert(){await o.clearSoftPatches()}}}});return R}async function OC(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=LC({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}async function TC(e,t,n,r){let{type:o,version:i,fields:a,properties:s,extendProperties:l}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:i});c=await e.initialProperties(s,l);const n=await e.supernova();a&&await Lw({sn:n,properties:c,fields:a,children:u},t),s&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const PC="njs-sheet";function IC(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const _C=w.forwardRef(((e,t)=>{var n;let{model:r,halo:o,initialSnOptions:i,initialSnPlugins:a,initialError:s,onMount:l,unmount:c,navigation:u,onError:p}=e;const{root:f}=o,[h,m]=w.useState(r),[g]=Wh(h),{theme:b,modelStore:v}=w.useContext(Bl),[y,S]=w.useState([]),[k,C]=w.useState(void 0),[E,R]=w.useState(void 0),[L,O]=w.useState(""),T=w.useRef({cellCount:0,cellsRendered:0,initialRender:!1});null==u||null===(n=u.setCurrentSheetId)||void 0===n||n.call(u,h.id),w.useEffect((()=>{if(g){const e=JSON.stringify(g.cells);if(e===L)return;O(e);const t=async()=>{y.forEach((e=>{f.removeCell(e.currentId)}));const e=g.cells;T.cellCount=e.length,T.cellsRendered=0;const t=()=>{T.cellsRendered++,T.cellsRendered!==T.cellCount||T.initialRender||(T.initialRender=!0,i.onInitialRender())},{columns:n,rows:r}=g,a=await Promise.all(e.map((async e=>{let a;const s=new Promise((e=>{a=e})),l=y.find((t=>t.id===e.name));if(l)return l.bounds=IC(e,n,r),delete l.mountedPromise,l;const c=await async function(e,t,n){let{id:r,options:o,plugins:i,element:a}=e;const{modelStore:s,rpcRequestModelStore:l}=n,c="".concat(r);let u=l.get(c);u||(u=t.app.getObject(r),l.set(c,u));const d=await u;return s.set(c,d),OC(d,{options:o,plugins:i,element:a},t)}({id:e.name},o,v);return{model:c.model,id:e.name,bounds:IC(e,n,r),cellRef:x.createRef(),currentId:LS(),mounted:a,mountedPromise:s,options:d(d({},i),{onInitialRender:t})}})));a.forEach((e=>f.addCell(e.currentId,e.cellRef))),S(a)};t()}}),[g]),w.useEffect((()=>{const e=()=>{h.removeListener("closed",e),c()};return h.on("closed",e),()=>h.removeListener("closed",e)}),[h]);const P=w.useMemo((()=>y?y.map((e=>function(e,t,n,r,o,i,a,s){var l;const{x:c,y:u,width:d,height:p}=e.bounds,f={left:"".concat(c,"%"),top:"".concat(u,"%"),width:"".concat(d,"%"),height:"".concat(p,"%"),position:"absolute"},h=null===(l=t.public.galaxy)||void 0===l?void 0:l.flags;return null!=h&&h.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(f.boxSizing="border-box",f.padding="4px"),x.createElement("div",{style:f,key:e.model.id},x.createElement(Yx,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,navigation:a,onError:s}))}(e,o,e.options,a,s,e.mounted,u,p))):[]),[y]);w.useEffect((()=>{const e=null!=g&&g.components?g.components.find((e=>"general"===e.key)):null;C(tS(e,o.public.theme)),R(eS(e,o.app))}),[g,o.public.theme,o.app,b]),w.useImperativeHandle(t,(()=>({setModel:m})),[]);const I=!g||void 0===g.height||Number.isNaN(g.height)?"100%":"".concat(Number(g.height),"%"),_=y.map((e=>e.mountedPromise)),M=_.filter((e=>!!e));return M.length&&Promise.all(_).then((()=>{l()})),x.createElement("div",{className:PC,style:{width:"100%",height:I,position:"relative",backgroundColor:k,backgroundImage:E&&E.url?"url(".concat(E.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:E&&E.size,backgroundPosition:E&&E.pos}},P)}));const MC=()=>{};function NC(){let{model:e,halo:t,navigation:n,initialError:r,onDestroy:o=(async()=>{}),onRender:i=(()=>{}),onError:a=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=MC,l=null,c=null,u=null,p=null;const f=new Promise((e=>{u=e})),h=new Promise((e=>{p=e})),m=e=>()=>{null==e||e(),p(),i()};let g={},b=[];const v={id:e.id,model:e,navigation:n,getImperativeHandle:async()=>(await h,l.current.getImperativeHandle()),async destroy(){await o(),s(),s=MC},__DO_NOT_USE__:{mount(o){if(c)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return c=o,[s,l]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:s,navigation:l,onError:c}=e;const{root:u}=t,d=x.createRef();let p;const f=()=>{u.remove(p)};return p=Hs.createPortal(x.createElement(_C,{ref:d,halo:t,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:s,onMount:a,unmount:f,navigation:l,onError:c}),n,r.id),l.setSheetRef(d),u.add(p,f),[f,d]}({halo:t,element:o,model:e,initialSnOptions:g,initialSnPlugins:b,initialError:r,onMount:u,navigation:n,onError:a}),f},async applyProperties(t){const n=tk("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;c?(async()=>{await f,l.current.setSnOptions(d(d(d({},g),e),{onInitialRender:m(t)}))})():g=d(d(d({},g),e),{onInitialRender:m(t)})})(e)},plugins(e){(async e=>{nk(e),c?(async()=>{await f,l.current.setSnPlugins(e)})():b=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return v}async function qC(e,t,n){let{id:r,options:o,plugins:i,element:a,onRender:s,onError:l,navigation:c}=e;const{modelStore:u,rpcRequestModelStore:d}=n,p="".concat(r);let f=d.get(p);f||(f=t.app.getObject(r),d.set(p,f));const h=await f;u.set(p,h);const m=c||("sheet"===h.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},s={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:l}=t,c="".concat(n);let u,d=l.get(c);d||(d=e.app.getObject(n),l.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,s.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return nv(s),s}(t,n,h):void 0);return"sheet"===h.genericType?async function(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=NC({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}(h,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m):OC(h,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m)}var DC,AC,zC,jC;function FC(){if(jC)return zC;jC=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return zC=n=>n?"object"!=typeof n?e:n:t}var $C,BC,WC,UC,HC,VC,GC,KC,JC,ZC,XC,QC,YC,eE,tE,nE,rE,oE,iE,aE,sE,lE,cE,uE,dE,pE,fE,hE,mE,gE,bE,vE={exports:{}};function yE(){if(BC)return $C;BC=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return $C={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function SE(){if(UC)return WC;UC=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};return WC=e}function wE(){return HC||(HC=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=yE(),i=SE(),a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[p,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=d++;i(e,o,t),u[e]=o,l[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(p,"*")),h("MAINVERSION","(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(l[u.NONNUMERICIDENTIFIER],"|").concat(l[u.NUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[u.NONNUMERICIDENTIFIER],"|").concat(l[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASE","(?:-(".concat(l[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(l[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(p,"+")),h("BUILD","(?:\\+(".concat(l[u.BUILDIDENTIFIER],"(?:\\.").concat(l[u.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(l[u.MAINVERSION]).concat(l[u.PRERELEASE],"?").concat(l[u.BUILD],"?")),h("FULL","^".concat(l[u.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(l[u.MAINVERSIONLOOSE]).concat(l[u.PRERELEASELOOSE],"?").concat(l[u.BUILD],"?")),h("LOOSE","^".concat(l[u.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(l[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(l[u.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:".concat(l[u.PRERELEASE],")?").concat(l[u.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[u.PRERELEASELOOSE],")?").concat(l[u.BUILD],"?")+")?)?"),h("XRANGE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAINLOOSE],"$")),h("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),h("COERCE","".concat(l[u.COERCEPLAIN],"(?:$|[^\\d])")),h("COERCEFULL",l[u.COERCEPLAIN]+"(?:".concat(l[u.PRERELEASE],")?")+"(?:".concat(l[u.BUILD],")?")+"(?:$|[^\\d])"),h("COERCERTL",l[u.COERCE],!0),h("COERCERTLFULL",l[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(l[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",h("TILDE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(l[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",h("CARET","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(l[u.GTLT],"\\s*(").concat(l[u.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],"|").concat(l[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(l[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(vE,vE.exports)),vE.exports}function xE(){if(JC)return KC;JC=1;const e=SE(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=yE(),{safeRe:r,t:o}=wE(),i=FC(),{compareIdentifiers:a}=function(){if(GC)return VC;GC=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};return VC={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},VC}();class s{constructor(a,l){if(l=i(l),a instanceof s){if(a.loose===!!l.loose&&a.includePrerelease===!!l.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof a,'".'));if(a.length>t)throw new TypeError("version is longer than ".concat(t," characters"));e("SemVer",a,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const c=a.trim().match(l.loose?r[o.LOOSE]:r[o.FULL]);if(!c)throw new TypeError("Invalid Version: ".concat(a));if(this.raw=a,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof s)){if("string"==typeof t&&t===this.version)return 0;t=new s(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof s||(e=new s(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch)}comparePre(t){if(t instanceof s||(t=new s(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return a(r,o)}while(++n)}compareBuild(t){t instanceof s||(t=new s(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return a(r,o)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e="-".concat(t).match(this.options.loose?r[o.PRERELEASELOOSE]:r[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===a(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}return KC=s}function kE(){if(XC)return ZC;XC=1;const e=xE();return ZC=(t,n,r)=>new e(t,r).compare(new e(n,r)),ZC}function CE(){if(dE)return uE;dE=1;const e=function(){if(YC)return QC;YC=1;const e=kE();return QC=(t,n,r)=>0===e(t,n,r),QC}(),t=function(){if(tE)return eE;tE=1;const e=kE();return eE=(t,n,r)=>0!==e(t,n,r),eE}(),n=function(){if(rE)return nE;rE=1;const e=kE();return nE=(t,n,r)=>e(t,n,r)>0,nE}(),r=function(){if(iE)return oE;iE=1;const e=kE();return oE=(t,n,r)=>e(t,n,r)>=0,oE}(),o=function(){if(sE)return aE;sE=1;const e=kE();return aE=(t,n,r)=>e(t,n,r)<0,aE}(),i=function(){if(cE)return lE;cE=1;const e=kE();return lE=(t,n,r)=>e(t,n,r)<=0,lE}();return uE=(a,s,l,c)=>{switch(s){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a===l;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a!==l;case"":case"=":case"==":return e(a,l,c);case"!=":return t(a,l,c);case">":return n(a,l,c);case">=":return r(a,l,c);case"<":return o(a,l,c);case"<=":return i(a,l,c);default:throw new TypeError("Invalid operator: ".concat(s))}},uE}function EE(){if(mE)return hE;mE=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(m,L(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),i("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),i("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),i("caret trim",e);let g=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));a&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),i("range list",g);const v=new Map,y=g.map((e=>new o(e,this.options)));for(const e of y){if(h(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const S=[...v.values()];return n.set(t,S),S}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}hE=t;const n=new(AC?DC:(AC=1,DC=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=FC(),o=function(){if(fE)return pE;fE=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new s(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}pE=t;const n=FC(),{safeRe:r,t:o}=wE(),i=CE(),a=SE(),s=xE(),l=EE();return pE}(),i=SE(),a=xE(),{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=wE(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=yE(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},b=(e,t)=>(i("comp",e,t),e=w(e,t),i("caret",e),e=y(e,t),i("tildes",e),e=k(e,t),i("xrange",e),e=E(e,t),i("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),v(n)?s="":v(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):v(o)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(i("replaceTilde pr",a),s=">=".concat(n,".").concat(r,".").concat(o,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),i("tilde return",s),s}))},w=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),v(n)?l="":v(o)?l=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):v(a)?l="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(i("replaceCaret pr",s),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(i("no pr"),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a," <").concat(+n+1,".0.0-0")),i("caret return",l),l}))},k=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=v(o),u=c||v(a),d=u||v(s),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),s=0,">"===r?(r=">=",u?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n="".concat(r+o,".").concat(a,".").concat(s).concat(l)):u?n=">=".concat(o,".0.0").concat(l," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(a,".0").concat(l," <").concat(o,".").concat(+a+1,".0-0")),i("xRange return",n),n}))},E=(e,t)=>(i("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),R=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),L=e=>(t,n,r,o,i,a,s,l,c,u,d,p)=>(n=v(r)?"":v(o)?">=".concat(r,".0.0").concat(e?"-0":""):v(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=v(c)?"":v(u)?"<".concat(+c+1,".0.0-0"):v(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()),O=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return hE}var RE=function(){if(bE)return gE;bE=1;const e=EE();return gE=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},gE}(),LE=n(RE);const OE={};function TE(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||LE(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!OE[i]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const a=(r||o.load)({name:e,version:t}),s=Promise.resolve(a);OE[i]=s.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Dx("Failed to load visualization: '".concat(n,"'"),e)}))}return OE[i]}(a.name,a.version,t,o.load).then((e=>(n=n||CC(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=d({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(he(!0,n,e),n):d(d({},n),e)}))}};return a}function PE(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=TE({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function IE(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=PE(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(OE).forEach((t=>{t.split("__")[0]===e&&(OE[t]=void 0)}))}(e)}}}const _E={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))}},ME={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};_E.context=ME;const NE=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(d({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},qE=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var DE=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=O(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=d(d({},t.context),{},{translator:n.translator,hostConfig:t.hostConfig});const[a,s]=Gl({app:e,context:i}),l=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=Be();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),We(Ue,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:a});i.themeApi=l.externalAPI;const c={galaxy:{translator:n.translator,theme:l.externalAPI,flags:ik(t.flags),deviceType:He(t.context.deviceType),hostConfig:t.hostConfig,anything:t.anything},theme:l.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:a,config:t,public:c,context:i,types:null},p=IE({halo:u});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=new Promise((e=>{(async()=>{if(await l.setTheme(t.context.theme),t.hostConfig&&g&&g.getWebResourceAuthParams){const{queryParams:e}=await g.getWebResourceAuthParams({hostConfig:t.hostConfig});i.queryParams=e,a.context(i)}})().then(e)})),h=null,m=null;const b={render:async e=>(await f,e.id?qC(e,u,s):async function(e,t,n){let{type:r,version:o,fields:i,properties:a,options:s,plugins:l,element:c,extendProperties:u,navigation:d,onRender:p,onError:f}=e,h={};const m=[],{modelStore:g,subscribe:b}=n;let v;try{const e=t.types.get({name:r,version:o});h=await e.initialProperties(a,u);const n=await e.supernova();i&&await Lw({sn:n,properties:h,fields:i,children:m},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},h)}catch(e){v=e,h={qInfo:{qType:r},visualization:r}}const y=await t.app.createSessionObject(h);m.length>0&&await y.setFullPropertyTree({qProperty:h,qChildren:m}),g.set(y.id,y);const S=b(y);return OC(y,{options:s,plugins:l,element:c,onRender:p,onError:f},t,d,v,(async()=>{await t.app.destroySessionObject(y.id),S()}))}(e,u,s)),destroy:async()=>{a.destroy()},create:async e=>TC(e,u,!1,s),generateProperties:async e=>TC(e,u,!0,s),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=d(d(d({},i),t),{},{translator:n.translator}),t.theme&&(await f,f=l.setTheme(t.theme),await f),t.language&&u.public.translator.language(t.language),a.context(i))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return Hs.createPortal(x.createElement(OS,{app:n}),t,LS())}({element:t,app:e}),a.add(m))},unmount(){m&&(a.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(i){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const l=()=>o.emit("selectionActivated"),c=()=>o.emit("selectionDeactivated");return new Promise((r=>{[this._instance,this._ref]=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:i="$",options:a={},renderedCallback:s}=e;const l=x.createRef();return[Hs.createPortal(x.createElement(fw,{ref:l,app:n,element:t,fieldIdentifier:r,qId:o,stateName:i,initialOptions:a,renderedCallback:s}),t,LS()),l]}({element:i,app:e,fieldIdentifier:t,qId:n,options:pw(d({onSelectionActivated:l,onSelectionDeactivated:c},s)),stateName:s.stateName||"$",renderedCallback:r}),a.add(this._instance)}))},unmount(){this._instance&&(a.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){var t;const n=()=>o.emit("selectionActivated"),r=()=>o.emit("selectionDeactivated");if(null!==(t=o._ref)&&void 0!==t&&t.current){const t=pw(d({onSelectionActivated:n,onSelectionDeactivated:r},e));o._ref.current.setOptions(t)}}}};return nv(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){b._popoverInstance&&(a.remove(b._popoverInstance),b._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=d({},hw);return he(!0,t,e),t}(d({onPopoverClose:()=>b.emit("fieldPopoverClose")},r));b._popoverInstance=x.createElement(mw,{element:t,key:LS(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),a.add(b._popoverInstance)}}};return u.public.nebbie=b,u.types=p,nv(b),b}return r.createConfiguration=n=>e(((e,t)=>({context:NE(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:d({},t.snapshot||e.snapshot),types:qE(e.types,t.types),themes:qE(e.themes,t.themes),flags:NE(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:NE(e.anything,t.anything)}))(t,n)),r.config=t,r}(_E);function AE(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const zE=globalThis.crypto||{getRandomValues:()=>123456};function jE(e){return t=>{const n=he({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^zE.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=he({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const FE=function(e){let{args:t=[],defaultValue:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?e(...t):void 0!==e?e:n},$E=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const s=FE(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},BE=["id","session"],WE=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function UE(e){return!WE.includes(e)}function HE(e){const t=FE(e.getLayout);return t.qInfo&&t.qInfo.qId}function VE(e,t){return e.reduce(((e,n)=>d(d({},e),function(e,t){let n=HE(e);const{delay:r}=t,{id:o,session:i}=e,a=p(e,BE);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:d(d({id:n,session:FE(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return d(d({},e),{},{[n]:$E(o,{async:UE(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function GE(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!HE(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function KE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(GE);const n=VE(e,t);return async e=>Promise.resolve(n[e])}function JE(){return()=>Promise.resolve({id:"app-layout"})}const ZE={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new AE,r=new jE(n),o=new KE(e,t),i=new JE,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i,getListObject:async e=>{var t;return o(null===(t=e.qInfo)||void 0===t?void 0:t.qId)}};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},XE={generator:CC,hook:iC,theme:Be,locale:C};function QE(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.self}function YE(){return!("undefined"==typeof process||!process.version||!process.versions.node)}function eR(e){if(Array.isArray(e))return e.map(eR);if("object"==typeof(t=e)&&null!==t&&t.constructor===Object){const t={};for(const n of Object.keys(e).sort())t[n]=eR(e[n]);return t}var t;return e}function tR(e){if(Array.isArray(e))return e.map((e=>"object"==typeof e&&null!==e?tR(e):e)).filter((e=>"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e&&""!==e));if("object"==typeof e&&null!==e){const t={};for(const n of Object.keys(e)){const r=e[n];switch(typeof r){case"undefined":break;case"boolean":r&&(t[n]=r);break;case"string":{const e=r.trim();""!==e&&(t[n]=e);break}case"object":{if(null===r)break;const e=tR(r);e&&(Array.isArray(e)&&e.length>0||"object"==typeof e&&Object.keys(e).length>0)&&(t[n]=e);break}case"function":case"number":t[n]=r;break;default:console.warn(`Unexpected type for key "${n}": ${typeof r}`),t[n]=r}}if(0===Object.keys(t).length)return;return t}return e}let nR;nR=function(){const e=[...nR?.getInterceptors()||[]];return{addInterceptor:t=>(e.push(t),t),removeInterceptor:t=>{const n=e.indexOf(t);let r;return-1!==n&&(r=e.splice(n,1)[0]),r||null},getInterceptors:()=>e}}();const rR=["authType","autoRedirect","authRedirectUserConfirmation","embedRuntimeUrl","host","onAuthFailed"],oR=["apikey","oauth2","cookie","windowscookie","reference","anonymous"];let iR=e=>crypto.getRandomValues(new Uint8Array(e)),aR=(e,t=21)=>((e,t,n)=>{let r=(2<<Math.log2(e.length-1))-1,o=-~(1.6*r*t/e.length);return(i=t)=>{let a="";for(;;){let t=n(o),s=0|o;for(;s--;)if(a+=e[t[s]&r]||"",a.length>=i)return a}}})(e,0|t,iR),sR=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};const lR=async(e={})=>{const t=hO(e.hostConfig),n="anonymous"===t?.authType||!!t.accessCode;if("undefined"==typeof window)return pR({isNodeEnv:!0,isAnonymous:n});const{data:r,status:o}=await uR(e);if(404===o)return pR({isUnknown:!0,isAnonymous:n});if(!r||o<=399&&o>=300)return pR({isQSE:!0,isWindows:!0,isAnonymous:n});const i=(r.composition?.deploymentType||"").toLowerCase(),a="controlcenter"===i;return"qliksenseserver"===i?pR({isQSE:!0,isWindows:!0,isAnonymous:n,meta:dR(r)}):"qliksensedesktop"===i?pR({isQSD:!0,isWindows:!0,isAnonymous:n,meta:dR(r)}):"qliksensemobile"===i?pR({isQSE:!0,isWindows:!0,isAnonymous:n,meta:dR(r)}):"cloud-console"===i?pR({isCloud:!0,isCloudConsole:!0,isAnonymous:n,meta:dR(r)}):"fedramp"===r.composition?.provider?pR({isCloud:!0,isQCG:!0,isControlCenter:a,isAnonymous:n,meta:dR(r)}):pR({isCloud:!0,isQCS:!0,isControlCenter:a,isAnonymous:n,meta:dR(r)})},cR={};const uR=async({hostConfig:e,noCache:t}={})=>{const n=eO(e),r=`${n}/resources/autogenerated/product-info.json`;try{if(!(r in cR)){const e={};globalThis.QlikMain&&globalThis.QlikMain.resourceNeedsCredentials(r)&&(e.credentials="include");const t=fetch(r,e).then((async e=>e.ok?{data:await e.json(),status:e.status}:{data:void 0,status:e.status}));cR[r]=t}const e=await cR[r];return(e.status>=400||!e.data)&&delete cR[r],e}catch{return delete cR[r],{data:void 0,status:500}}finally{t&&delete cR[r]}},dR=e=>{const t=e.externalUrls;if(!t)return;const n=e.composition?.productName??"Qlik",r=e.composition?.releaseLabel||"-",o="-"===r?n:`${n} (${r})`;return{productId:e.composition?.senseId??"qlik",productLabel:o,version:e.composition?.version,urls:{personalHelpBaseUrl:t.personalHelpBaseUrl,personalUpgradeBase:t.personalUpgradeBase,personalUpgradeUrl:t.personalUpgradeUrl,serverHelpBaseUrl:t.serverHelpBaseUrl,qlikWebPageUrl:t.qlikWebPageUrl}}},pR=e=>({isNodeEnv:!1,isCloud:!1,isQCS:!1,isQCG:!1,isCloudConsole:!1,isControlCenter:!1,isWindows:!1,isQSE:!1,isQSD:!1,isUnknown:!1,isAnonymous:!1,...e});function fR(e){return sR(e)}const hR="__QLIK_INTERNAL__DO_NOT_USE_OR_YOU_WILL_BE_FIRED";const mR="qlik-qmfe-api";function gR(e){let t=e.clientId+(e.scope?`_${e.scope}`:"_user_default");return e.subject&&(t+=`_${e.subject}`),e.userId&&(t+=`_${e.userId}`),t}function bR(e){return`${e.accessCode}_${e.clientId}`}const vR={};function yR(e,t,n){localStorage.setItem(`${mR}-${e}-${t}`,n)}function SR(e,t,n){sessionStorage.setItem(`${mR}-${e}-${t}`,n)}function wR(e,t){return localStorage.getItem(`${mR}-${e}-${t}`)||void 0}function xR(e,t){return sessionStorage.getItem(`${mR}-${e}-${t}`)||void 0}function kR(e,t){t.forEach((t=>localStorage.removeItem(`${mR}-${e}-${t}`)))}function CR(e,t){t.forEach((t=>sessionStorage.removeItem(`${mR}-${e}-${t}`)))}function ER(e,t){const n=`${mR}-${e}-${t}`,r=sessionStorage.getItem(n)||void 0;return sessionStorage.removeItem(n),r}async function RR(e,t){if(!e.clientId)throw new zL('A host config with authType set to "oauth2" has to also provide a clientId');return LR(gR(e),t,e.noCache,e.accessTokenStorage)}async function LR(e,t,n,r){if(n)return t();const o=QE(),i=vR[e]||(o?function(e,t){let n,r;if("local"===t?(n=wR(e,"access-token"),r=wR(e,"refresh-token")):"session"===t&&(n=xR(e,"access-token"),r=xR(e,"refresh-token")),n)return{accessToken:n,refreshToken:r}}(e,r):void 0);if(i)return vR[e]=i,Promise.resolve(i);const a=t();if(vR[e]=a,o){const t=await a;"local"===r&&t?(t.accessToken&&yR(e,"access-token",t.accessToken),t.refreshToken&&yR(e,"refresh-token",t.refreshToken)):"session"===r&&t&&(t.accessToken&&SR(e,"access-token",t.accessToken),t.refreshToken&&SR(e,"refresh-token",t.refreshToken))}return a}function OR(e){const t=gR(e);delete vR[t],QE()&&(kR(t,["access-token","refresh-token"]),CR(t,["access-token","refresh-token"]))}function TR(e){if("string"==typeof e){const t=globalThis[e];if(!t)throw new Error(`No such function: ${e}`);return t}return e}function PR(e){if(e.errors)throw new BL(e.errors)}function IR(e){const t=Object.keys(e);t.sort();return t.map((t=>`${t}=${e[t]}`)).join("&")}async function _R(e){const t=(new TextEncoder).encode(e),n=await globalThis.crypto.subtle.digest("SHA-256",t),r=function(e){let t="";if(QE()){const n=String.fromCharCode.apply(null,e);t=btoa(n)}else{if(!YE())throw new Error("Environment not supported for oauth2 authentication");t=Buffer.from(e).toString("base64")}return t}(Array.from(new Uint8Array(n)));return r.replaceAll(/\+/g,"-").replaceAll(/\//g,"_").replace(/=+$/,"")}async function MR(e){const t=e.clientId||"",n=eO(e),r=fR(128),o=fR(43),i=await _R(r),a=e.redirectUri||globalThis.location.href,s=gR(e);OR(e),SR(s,"state",o),SR(s,"verifier",r),SR(s,"href",globalThis.location.href),SR("","client-in-progress",s);const l=`${n}/oauth/authorize?${IR({response_type:"code",client_id:t,redirect_uri:a,scope:e.scope||"user_default",state:o,code_challenge:i,code_challenge_method:"S256"})}`;globalThis.location.replace(l)}async function NR(e,t,n,r){try{const o=await fetch(`${eO(e)}/oauth/token`,{method:"POST",credentials:"include",mode:"cors",headers:{"content-type":"application/json"},redirect:"follow",body:JSON.stringify({grant_type:"authorization_code",scope:e.scope||"user_default",...t?{code:t}:{},redirect_uri:r||globalThis.location.href,...n?{code_verifier:n}:{},client_id:e.clientId})}),i=await o.json();return PR(i),{accessToken:i.access_token,refreshToken:i.refresh_token,errors:i.errors}}catch(e){return console.error(e),new Promise((()=>{}))}}function qR(e,t,n,r,o){const i={client_id:e,client_secret:t,scope:n};return r?{...i,grant_type:"urn:qlik:oauth:user-impersonation",user_lookup:{field:"subject",value:r}}:o?{...i,grant_type:"urn:qlik:oauth:user-impersonation",user_lookup:{field:"userId",value:o}}:{...i,grant_type:"client_credentials"}}async function DR(e){const{clientId:t,clientSecret:n}=e;if(!t||!n)throw new zL('A host config with authType set to "oauth2" has to provide a clientId and a clientSecret');const r=await RR(e,(async()=>{if(!e.clientId||!e.clientSecret)throw new zL('A host config with authType set to "oauth2" has to provide a clientId and a clientSecret');return async function(e,t,n,r="user_default",o,i){const a=await fetch(`${e}/oauth/token`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify(qR(t,n,r,o,i))}),s=await a.json();return{accessToken:s.access_token,refreshToken:s.refresh_token,errors:s.errors}}(eO(e),e.clientId,e.clientSecret,e.scope,e.subject,e.userId)}));return r}async function AR(e){const{clientId:t}=e;if(!t)throw new zL('A host config with authType set to "oauth2" has to also provide a clientId');const n=await RR(e,(async()=>{if(e.getAccessToken)try{const t="string"==typeof e.getAccessToken?await function(e){return globalThis[e]}(e.getAccessToken)():await e.getAccessToken();return{accessToken:t,refreshToken:void 0,errors:void 0}}catch{return $R("Could not fetch access token using custom function")}if(e.performInteractiveLogin){let t;try{const n=fR(128),r=fR(43),{code:o,state:i}=function(e){if("string"==typeof e){const t=new URLSearchParams(new URL(e).search);return{code:t.get("code")||"",state:t.get("state")||""}}return e}(await TR(e.performInteractiveLogin)({getLoginUrl:async({redirectUri:o})=>(t=o,async function(e,t,n,r){const o=e.clientId||"",i=eO(e),a=await _R(r);return`${i}/oauth/authorize?${IR({response_type:"code",client_id:o,redirect_uri:t,scope:e.scope||"user_default",state:n,code_challenge:a,code_challenge_method:"S256"})}`}(e,o,r,n))}));if(!t)return $R("No redirect uri provided");if(r!==i)return $R("State returned by custom interactive login function does not match original");if(!o)return $R("No code found in response from custom interactive login function");return await NR(e,o,n,t)}catch(e){return{accessToken:void 0,refreshToken:void 0,errors:[{code:"",status:401,title:"Could not perform custom interactive login",detail:`${e}`}]}}}const t=gR(e),n=ER(t,"code"),r=ER(t,"verifier");if(n&&r){const t=await NR(e,n,r,e.redirectUri);if(t)return t}}));return n||(e.performInteractiveLogin||(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),MR(e)),new Promise((()=>{})))}!function(e,t){(globalThis.location?.origin.startsWith("https://localhost:")||globalThis.location?.origin?.endsWith("qlik-stage.com"))&&(void 0===globalThis[hR]&&(globalThis[hR]={}),globalThis[hR][e]=t)}("clearAllAccessTokens",(()=>{console.log("Clearing tokens",vR),Object.keys(vR).forEach((e=>{console.log("Clearing access tokens for",e),kR(e,["access-token","refresh-token"]),CR(e,["access-token","refresh-token"])})),function(){for(const e in vR)delete vR[e]}()}));let zR=Promise.resolve("");async function jR(e){if(YE()){const t=await DR(e);return t?(PR(t),t.accessToken||""):""}return QE()&&(zR=zR.then((async()=>{const t=await AR(e);return t?(PR(t),t.accessToken||""):""}))),zR}async function FR(e){const t=await async function(e){return vR[gR(e)]}(e);if(OR(e),t&&t.refreshToken&&e.clientSecret){const n=await RR(e,(async()=>{if(!t||!t.refreshToken||!e.clientSecret)throw new Error("Trying to refresh tokens without refreshToken or clientSecret");return async function(e,t,n){const r=await fetch(`${e}/oauth/token`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:"refresh_token",refresh_token:t,client_secret:n})}),o=await r.json();return{accessToken:o.access_token,refreshToken:o.refresh_token,errors:o.errors}}(eO(e),t.refreshToken,e.clientSecret)}));n&&PR(n)}}function $R(e){return{accessToken:void 0,refreshToken:void 0,errors:[{code:"",status:401,title:e,detail:""}]}}async function BR(e,t,n){const r=await fetch(`${eO(e)}/oauth/token`,{method:"POST",credentials:"include",mode:"cors",headers:{"content-type":"application/json"},redirect:"follow",body:JSON.stringify({subject_token:t,subject_token_type:"urn:ietf:params:oauth:token-type:access_token",grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",purpose:n,redirect_uri:globalThis.location?.href,client_id:e.clientId})});if(200!==r.status)throw await async function(e){const t=await e.text();try{const e=JSON.parse(t);return new BL(e.errors)}catch{return new BL([{code:"unknown",status:e.status,detail:t,title:"Unknown authentication error"}])}}(r);return(await r.json()).access_token}async function WR(e,t){try{return await t()}catch(n){const{retry:r}=await VR({hostConfig:e});if(r)return t();throw n}}function UR(){const e=Math.floor(Date.now()/1e3).toString(16);var t;return`${e}${t=40-e.length,aR("1234567890abcdef",t)()}`}async function HR(e){const{accessCode:t,clientId:n}=e;if(!t||!n)throw new zL('A host config with authType set to "anonymous" has to provide both an accessCode and clientId');const r=await async function(e,t){if(!e.accessCode)throw new zL('A host config with authType set to "anonymous" has to also provide an accessCode');return LR(bR(e),t,!1,void 0)}(e,(async()=>{const r=eO(e),o=await async function(e){let t;if(QE()){const n=bR(e);t=wR(n,"tracking-code"),t||(t=UR()),yR(n,"tracking-code",t)}else t=UR();return t}(e);return async function(e,t,n,r){const o=await fetch(`${e}/oauth/token/anonymous-embed`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify({eac:t,client_id:n,grant_type:"urn:qlik:oauth:anonymous-embed",tracking_code:r})}),i=await o.json();return{accessToken:i.access_token,refreshToken:i.refresh_token,errors:i.errors}}(r,t,n,o)}));if(!r)return"";if(r.errors)throw new BL(r.errors);return r.accessToken?r.accessToken:""}async function VR({hostConfig:e}){return function(e){const t=bR(e);delete vR[t],QE()&&(kR(t,["access-token","refresh-token"]),CR(t,["access-token","refresh-token"]))}(e),{preventDefault:!1,retry:!0}}var GR={requiredProps:["clientId","accessCode"],optionalProps:[],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{Authorization:`Bearer ${await HR(e)}`},queryParams:{},credentials:"omit"}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await WR(e,(async()=>{const t=await HR(e);return BR(e,t,"websocket")}))}}},getWebResourceAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await WR(e,(async()=>{const t=await HR(e);return BR(e,t,"websocket")}))}}},handleAuthenticationError:VR};var KR={requiredProps:["apiKey"],optionalProps:[],getRestCallAuthParams:function({hostConfig:e}){return Promise.resolve({headers:{Authorization:`Bearer ${e?.apiKey}`},queryParams:{},credentials:"omit"})},getWebSocketAuthParams:async function(){return{queryParams:{}}},handleAuthenticationError:function(){return Promise.resolve({})}},JR=class extends Error{status;headers;data;constructor(e,t,n,r){super(e),this.status=t,this.headers=n,this.data=r,this.stack=YR(this.stack)}},ZR=class extends Error{contentType;data;constructor(e,t,n){super(e),this.contentType=t,this.data=n,this.stack=YR(this.stack)}};const XR=/^.+\/qmfe-api(?:\.js)?:(\d+)(?::\d+)?$/gim,QR=e=>{const t=e.match(XR);return Boolean(t&&t.length>0)};function YR(e){if(!e)return e;const t=[],n=e.split("\n");n.reverse();for(const e of n){if(QR(e))break;t.unshift(e)}return t.join("\n")}function eL(e,t,n,r){let o=e;return""!==t&&(o=o.concat(`?${t}`)),r&&(o=o.concat(`+headers=${JSON.stringify(r)}`)),n&&(o=o.concat(`+host-config=${n}`)),o}const tL=e=>"get"===e||"GET"===e;function nL(e){return e&&(e instanceof Blob||e instanceof Object&&"[object Blob]"===e.toString())||e&&e instanceof ReadableStream||"string"==typeof e?e:JSON.parse(JSON.stringify(e))}function rL(e){return!("get"===e||"GET"===e)}function oL(e){const t=e.indexOf("?");if(t>=0)return e.substring(0,t);const n=e.indexOf("+headers=");if(n>=0)return e.substring(0,n);const r=e.indexOf("+host-config=");return r>=0?e.substring(0,r):e}function iL(e){return e.then((e=>{const t={data:nL(e.data),headers:e.headers,status:e.status};return e.next&&(t.next=e.next),e.prev&&(t.prev=e.prev),t}))}let aL=6e5;const sL={};function lL(e){return e instanceof Error?e.cause?e.message?`${e.message} - ${lL(e.cause)}`:lL(e.cause):e.message:String(e)}async function cL(e,t,n,r,o,i,a,s){const{body:l,contentTypeHeader:c,requestOptions:u}=function(e,t){if(!e)return{body:null,contentTypeHeader:{},requestOptions:{}};const n={},r={};let o=null;switch(t){case"":case"application/json":n["Content-Type"]="application/json",o=JSON.stringify(e);break;case"multipart/form-data":o=function(e){const t="multipart/form-data";if("object"!=typeof e)throw new ZR(`Cannot encode ${typeof e} as ${t}, body should be an object.`,t,e);if(Array.isArray(e))throw new ZR(`Cannot encode ${typeof e} as ${t}, body should be an object.`,t,e);if(e instanceof FormData)return e;const n=new FormData;return Object.entries(e).forEach((r=>{const[o,i]=r;switch(typeof i){case"boolean":case"number":case"string":n.set(o,`${i}`);break;case"object":if(i instanceof Blob)n.set(o,i);else if(i instanceof Uint8Array){const e=new Blob([i],{type:"application/octet-stream"});n.set(o,e)}else{const e=JSON.stringify(i),t=new Blob([e],{type:"application/json"});n.set(o,t,"")}break;default:throw new ZR(`Cannot encode multipart-field "${o}" with value of type ${typeof i}, values must be objects, strings, numbers or boolean.`,t,e)}})),n}(e);break;case"application/octet-stream":n["Content-Type"]=t,r.duplex="half",o=e;break;case"text/plain":if("string"!=typeof e)throw new ZR(`Cannot send ${typeof e} as ${t}, body should be a string.`,t,e);n["Content-Type"]=t,o=e;break;default:throw new ZR(`Unsupported content-type "${t}", supported are: application/json, multipart/form-data, application/octet-stream and text/plain`,t,e)}return{body:o,contentTypeHeader:n,requestOptions:r}}(n,r??""),d={...c,...i,...o?.headers,...hL()};!d["User-Agent"]&&s&&(d["User-Agent"]=s);const p={method:e,credentials:a,mode:"cors",headers:d,redirect:await YL(o?.hostConfig)?"manual":"follow",keepalive:o?.keepalive,progress:o?.progress,body:l,...u};let f,h;if(o?.signal)p.signal=o.signal;else if(o?.timeoutMs&&o.timeoutMs>0){const e=new AbortController;f=setTimeout((()=>{e.abort()}),o.timeoutMs),p.signal=e.signal}h=o?.progress?await async function(e,{method:t,headers:n,credentials:r,keepalive:o,body:i,signal:a,progress:s}){const l=new XMLHttpRequest;let c,u;const d=new Promise(((e,t)=>{c=e,u=t}));if(l.open(t||"GET",e),"object"!=typeof n)throw Error("malformed headers",n);for(const[e,t]of Object.entries(n))l.setRequestHeader(e,t);o&&l.setRequestHeader("Connection","keep-alive"),a&&a.addEventListener("abort",(()=>{l.abort(),u()})),l.withCredentials="include"===r,s?.onUpload&&(l.upload.onprogress=e=>{const{loaded:t,total:n,lengthComputable:r}=e;s.onUpload?.({loaded:t,total:r?n:void 0})}),s?.onDownload&&(l.onprogress=e=>{const{loaded:t,total:n,lengthComputable:r}=e;s.onDownload?.({loaded:t,total:r?n:void 0})}),l.onloadend=()=>{const{status:e}=l,t={};for(const e of l.getAllResponseHeaders().split("\r\n")){const[n,r]=e.split(":",2);n&&r&&(t[n]=r)}l.response?c(new Response(l.response,{status:e,headers:t})):c(new Response(void 0,{status:e,headers:t}))};try{const e=i;l.send(e)}catch(e){return Promise.reject(new JR(lL(e),0,new Headers,{}))}return d}(t,p):await async function(e,t){try{return await fetch(e,t)}catch(e){return Promise.reject(new JR(lL(e),0,new Headers,{}))}}(t,p),f&&clearTimeout(f);const m=await async function(e,t){let n;const r=e.headers.get("content-type")?.split(";")[0],o=e.headers.get("content-disposition")?.split(";");if(o&&"attachment"===o[0]){let t="";for(let e=1;e<o.length;e++){const n=o[e].trim();if(0===n.indexOf("filename")){const e=n.indexOf('"'),r=n.lastIndexOf('"');t=n.slice(e+1,r)}}n=mL(await e.blob(),t)}else switch(r){case"image/png":case"image/jpeg":case"image/x-icon":case"application/offset+octet-stream":case"application/octet-stream":case"application/zip":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":case"application/pdf":n=mL(await e.blob());break;case"text/event-stream":n=e.body;break;default:try{n=await e.text(),n=JSON.parse(n)}catch{}}const{status:i,statusText:a,headers:s}=e,l=`request to '${t}' failed with status ${i} ${a}.`;if(i>=300)throw new JR(l,i,s,n);if(0===i)throw new JR(l,302,s,n);const c={status:i,headers:s,data:n};return c}(h,t);return m}async function uL({method:e,pathTemplate:t,pathVariables:n,query:r,options:o}){const i=eO(o?.hostConfig),{headers:a,queryParams:s,credentials:l}=await iO({hostConfig:o?.hostConfig,method:e}),c=i+function(e,t){let n=e;return t&&Object.keys(t).forEach((e=>{n=n.replace(`{${e}}`,t[e])})),n}(t,n),u=function(e){return e?Object.entries(e).map((e=>{const[,t]=e;if(void 0!==t)return e.map((e=>encodeURIComponent(e))).join("=")})).filter(Boolean).join("&"):""}({...r,...s}),d=function(e,t){return""!==t?`${e}?${t}`:e}(c,u);return{completeUrl:d,cacheKey:eL(c,u,uO(o?.hostConfig),o?.headers),authHeaders:a,credentials:l}}function dL(e,t){return pL(e,t,(async()=>{const{cacheKey:n,authHeaders:r,credentials:o}=await uL(t);return pL(e,{...t,cacheKey:n,authHeaders:r,credentials:o,options:{...t.options,noCache:!0}},void 0)}))}function pL(e,{method:t,completeUrl:n,cacheKey:r,body:o,options:i,authHeaders:a,credentials:s,contentType:l,userAgent:c},u){sL[e]||(sL[e]={});const d=rL(t)?void 0:sL[e][r];if(rL(t)&&function(e,t){const n=oL(t);for(const t in e){const r=oL(t);(n.startsWith(r)||r.startsWith(n))&&delete e[t]}}(sL[e],r),d&&function(e,t,n){if(!t||void 0===t.value)return!1;if(e?.noCache)return!1;if(e?.useCacheIfAfter)return e.useCacheIfAfter.getTime()<=t.lastPulled;const r=Date.now()-t.lastPulled;return e?.maxCacheAge?r<=e?.maxCacheAge:r<n}(i,d,aL))return d.lastHit=new Date,d.hitCount+=1,d.accessedPaths.add(globalThis.location?globalThis.location.pathname:"node"),iL(d.value);const p=cL(t,n,o,l,i,a,s,c),f=async function(e,t,n){try{return await t}catch(t){const r=t,o=r.data;if(401===r.status||403===r.status&&"CSRF-TOKEN-2"===o?.code||(301===r.status||302===r.status)&&await YL(e)){if(globalThis.loggingOut)return fL();const{retry:t,preventDefault:i}=await oO({hostConfig:e,status:r.status,headers:r.headers,errorBody:o,canRetry:!!n});if(t&&n)return n();if(i)return fL()}throw t}}(i?.hostConfig,p,u),h=function(e,t,n,r,o,i,a){const s=uO(o?.hostConfig);return t.then((t=>{const l=t.data;if(!l)return t;const c=l.links?.prev?.href,u=l.links?.next?.href;return c&&(t.prev=t=>dL(e,{method:n,completeUrl:c,body:r,options:t||o,cacheKey:eL(c,"",s,o?.headers),authHeaders:i,credentials:a})),u&&(t.next=t=>dL(e,{method:n,completeUrl:u,body:r,options:t||o,cacheKey:eL(u,"",s,o?.headers),authHeaders:i,credentials:a})),t}))}(e,f,t,o,i,a,s),m=function(e,t,n){return n.catch((n=>(delete e[t],Promise.reject(n))))}(sL[e],r,h);if(tL(t)){if(Object.hasOwn&&!Object.hasOwn(sL,e)||"__proto__"===e)throw new Error(`Forbidden api name: ${e}`);sL[e][r]={lastPulled:Date.now(),value:m,lastHit:null,hitCount:0,accessedPaths:new Set}}return iL(m)}function fL(){return new Promise((()=>{}))}function hL(){if(!QE())return{};const e=localStorage.getItem("qmfe-api-service-overrides-header");return e?{"X-Qlik-Overrides":e}:{}}function mL(e,t){const n=e;return n.download=t?(n=t)=>gL(e,n):t=>gL(e,t),n}async function gL(e,t){if(QE()){const n=document.createElement("a"),r=window.URL.createObjectURL(e);n.href=r,n.download=t,n.click(),window.URL.revokeObjectURL(r)}else{const{writeFileSync:n}=await Promise.resolve().then((function(){return yO})),r=await e.arrayBuffer();n(t,new Uint8Array(r))}}globalThis.__API_CACHE__DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sL;const bL="qmfe-api/latest";async function vL(e,t,n){const r=(nR.getInterceptors()||[]).reduce(((e,t)=>n=>t(n,e)),(t=>async function(e,t){let n;(function(e){const t=hO(e);if(QL(t)){if(0===Object.keys(t).length)throw new zL("a host config must be provided when making a cross domain request");if(!t.host)throw new zL("A 'host' property must be set in host config when making a cross domain request")}})(t.options?.hostConfig),n=t?.userAgent?t.userAgent:QE()?`${window.navigator.userAgent} ${bL}`:bL;const{completeUrl:r,cacheKey:o,authHeaders:i,credentials:a}=await uL(t);return dL(e,{...t,method:t.method.toUpperCase(),completeUrl:r,cacheKey:o,authHeaders:i,credentials:a,userAgent:n})}(e,t)));return r(t)}const yL="qlik-csrf-token";async function SL(e,t){const n=eO(e);let r;r=await YL(e)?"/qps/csrftoken":"/api/v1/csrf-token";const o=async()=>{try{const t=(await vL("csrf-token",{method:"get",pathTemplate:r,options:{hostConfig:e,noCache:!0}})).headers.get(yL);return t||""}catch(e){if(404===e.status)return"";throw e}};return t?(wL[n]=o(),wL[n]):(wL[n]=wL[n]||o(),wL[n])}const wL={};function xL(e){return!1===e.crossSiteCookies?"same-origin":QL(e)?"include":"same-origin"}var kL={requiredProps:[],optionalProps:["webIntegrationId","crossSiteCookies","anonymousMode"],getRestCallAuthParams:async function({hostConfig:e,method:t}){const n={};var r;return"get"!==(r=t)&&"GET"!==r&&(n["qlik-csrf-token"]=await SL(e)),e.webIntegrationId&&(n["qlik-web-integration-id"]=e.webIntegrationId),{headers:n,queryParams:{},credentials:xL(e)}},getWebSocketAuthParams:async function({hostConfig:e}){const t={"qlik-csrf-token":await SL(e,!0)};return e.webIntegrationId&&(t["qlik-web-integration-id"]=e.webIntegrationId),{queryParams:t}},handleAuthenticationError:async function({hostConfig:e,status:t}){if(function(e){const t=eO(e);delete wL[t]}(e),403===t)return{preventDefault:!1,retry:!0};const n=e.webIntegrationId?`qlik-web-integration-id=${e?.webIntegrationId}&`:"",r=eO(e);return e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),globalThis.location.replace(`${r}/login?${n}returnto=${encodeURIComponent(globalThis.location.href)}`),{preventDefault:!0}}};var CL={requiredProps:[],optionalProps:[],getRestCallAuthParams:function(){return Promise.resolve({headers:{},queryParams:{},credentials:"same-origin"})},getWebSocketAuthParams:function(){return Promise.resolve({queryParams:{}})},handleAuthenticationError:function(){return Promise.resolve({})}};async function EL(e,t){try{return await t()}catch(n){const{retry:r}=await RL({hostConfig:e});if(r)return t();throw n}}async function RL({hostConfig:e}){return e.getAccessToken?(OR(e),{preventDefault:!1,retry:!0}):QE()?e.performInteractiveLogin?(OR(e),{retry:!0}):(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),MR(e),{preventDefault:!0}):(await FR(e),{preventDefault:!1,retry:!0})}QE()&&function(){const e=new URLSearchParams(globalThis.location.search),t=e.get("code")||void 0,n=e.get("state")||void 0;if(e.get("error")){const t=document.createElement("pre");t.innerText=`<code>${JSON.stringify({error:e.get("error"),error_code:e.get("error_code"),error_description:e.get("error_description"),error_detail:e.get("error_detail"),error_uri:e.get("error_uri")})}</code>`,document.body.prepend(t)}const r=ER("","client-in-progress");if(r&&t&&n){const e=ER(r,"state"),o=ER(r,"href");e&&e===n&&o&&(SR(r,"code",t),o!==globalThis.location.href&&globalThis.location.replace(o))}}();var LL={requiredProps:["clientId"],optionalProps:["clientSecret","redirectUri","accessTokenStorage","scope","subject","userId","noCache","getAccessToken","performInteractiveLogin"],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{Authorization:`Bearer ${await jR(e)}`},queryParams:{},credentials:"omit"}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await EL(e,(async()=>{const t=await jR(e);return BR(e,t,"websocket")}))}}},getWebResourceAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await EL(e,(async()=>{const t=await jR(e);return BR(e,t,"webresource")}))}}},handleAuthenticationError:RL};var OL={requiredProps:["reference"],optionalProps:[],getRestCallAuthParams:function(){throw new Error("getRestCallAuthParams should never be called for reference auth module")},getWebSocketAuthParams:function(){throw new Error("getWebSocketAuthParams should never be called for reference auth module")},handleAuthenticationError:function(){throw new Error("handleAuthenticationError should never be called for reference auth module")}};const TL={};function PL(e){const t=eO(e);return TL[t]=TL[t]||function(){let e="";for(let t=0;t<16;t+=1){const t=Math.floor(62*Math.random());e+=t<10?t:t>9&&t<36?String.fromCharCode(t+55):String.fromCharCode(t+61)}return e}(),TL[t]}var IL={requiredProps:[],optionalProps:["loginUri","crossSiteCookies"],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{"X-Qlik-XrfKey":PL(e)},queryParams:{xrfkey:PL(e)},credentials:xL(e)}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{xrfkey:PL(e),"qlik-csrf-token":await SL(e,!0)}}},handleAuthenticationError:async function({hostConfig:e}){return e.loginUri?(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),globalThis.location.replace(e.loginUri.replace("{location}",encodeURIComponent(globalThis.location.href))),{preventDefault:!0}):{}}};const _L={};let ML=Promise.resolve(),NL=!1;function qL(e,t){_L[e.toLowerCase()]=t}async function DL(e){const t=hO(e),n=await AL(t);ML&&await ML;let r=function(e){return _L[e.toLowerCase()]}(n);if(r||(ML=(async()=>{r=await async function(e){const t=globalThis[e];if(t){let n;if(n="function"==typeof t?await t():t,n&&n.getRestCallAuthParams&&n.getWebSocketAuthParams&&n.handleAuthenticationError)return n;throw console.error("Not a valid auth module",n),new FL(e)}return Promise.resolve(void 0)}(n),r&&qL(n,r)})(),await ML),!r)throw new FL(n);return r.validateHostConfig?r.validateHostConfig({authType:n,...t}):function(e,{requiredProps:t,optionalProps:n}){const r=[];for(const n of t)e[n]||r.push(n);if(r.length>0)throw new zL(`missing required properties in host config; '${r.join("', '")}'`);const o=[...rR,...t,...n],i=[];Object.keys(e).forEach((e=>{o.includes(e)||i.push(e)})),i.length>0&&console.warn(`WARNING: unknown properties in host config; '${i.join("', '")}'`)}({authType:n,...t},{requiredProps:r.requiredProps||[],optionalProps:r.optionalProps||[]}),r}async function AL(e){return e.authType?e.authType:e.apiKey?"apikey":e.accessCode?"anonymous":e.clientId?"oauth2":e.webIntegrationId?"cookie":e.reference?"reference":await YL(e)?"windowscookie":"cookie"}NL||(qL("apikey",KR),qL("cookie",kL),qL("none",CL),qL("oauth2",LL),qL("anonymous",GR),qL("windowscookie",IL),qL("reference",OL),NL=!0);var zL=class extends Error{constructor(e){super(`Invalid host config: ${e}`),this.name="InvalidHostConfigError"}},jL=class extends Error{constructor(...e){const t=e.map(((e,t)=>0===t?`"${e}"`:`or "${e}"`)).join(" ");super(`HostConfig is not properly configured. authType is expected to be ${t}`),this.name="UnexpectedAuthTypeError"}},FL=class extends Error{constructor(e){super(`Not a valid auth type: ${e}, valid auth types are; '${Object.keys(_L).filter((e=>"qmfeembedframerauthmodule"!==e.toLowerCase())).join("', '")}'`),this.name="InvalidAuthTypeError"}};function $L({title:e,detail:t,code:n,status:r}){return t?`${e} - ${t} (Status: ${r}, Code: ${n})`:`${e} (Status: ${r}, Code: ${n})`}var BL=class extends Error{errors;constructor(e){if("object"!=typeof e)return void super("Unknown error");const t=Array.isArray(e)?e:[e];super(t.map($L).join(", ")),this.errors=t}};function WL(e){const t=tR(e)||{};return t.host&&(t.host=eO(t)),QE()&&eO(t)===window.location.origin&&delete t.host,t.authType&&oR.includes(t.authType)&&delete t.authType,t}function UL(e,t){if("function"!=typeof t)return t}const HL=new Map;function VL(e,t){const n=t?.reference||null;if(n&&!HL.has(n))throw new zL(`Host config with reference "${n}" is not registered. Please register it before using it.`);HL.has(e)&&console.warn(`registerHostConfig: Host config with name "${e}" is already registered. Overwriting.`),HL.set(e,t)}function GL(e){return HL.get(e)}function KL(){return GL("default")||{}}globalThis.loggingOut=!1;let JL="";function ZL({message:e}){e!==JL&&(JL=e,console.error(e))}function XL(e){return AL(e)}function QL(e){if(!globalThis.location?.origin)return!0;const t=hO(e);if(0===Object.keys(t).length)return!1;try{return new URL(eO(t)).origin!==globalThis.location.origin}catch{}return!1}async function YL(e){const t=hO(e);return"boolean"==typeof t.forceIsWindows?t.forceIsWindows:"cookie"!==t.authType&&("windowscookie"===t.authType||(await lR({hostConfig:e})).isWindows)}function eO(e){const t=hO(e)?.host?.trim();let n;for(n=t?t.toLowerCase().startsWith("https://")||t.toLowerCase().startsWith("http://")?t:`https://${t}`:"";"/"===n[n.length-1];)n=n.substring(0,n.length-1);return n}function tO(e){const t=hO(e)?.host;let n;for(n=t?t.toLowerCase().startsWith("https://")||t.toLowerCase().startsWith("http://")?t:`https://${t}`:globalThis.location.origin;"/"===n[n.length-1];)n=n.substring(0,n.length-1);return n.replace(pO,"ws")}async function nO(e){const t=hO(e.hostConfig);try{const n=await DL(t);return await n.getWebSocketAuthParams({...e,hostConfig:t})}catch(e){throw(t.onAuthFailed||ZL)(fO(e)),e}}async function rO(e){const t=hO(e.hostConfig);try{const n=await DL(t);return await(n.getWebResourceAuthParams?.({...e,hostConfig:t}))||{queryParams:{}}}catch(e){throw(t.onAuthFailed||ZL)(fO(e)),e}}async function oO(e){const t=hO(e.hostConfig),n=await DL(t),r=await n.handleAuthenticationError({...e,hostConfig:t}),o=e.canRetry&&r.retry,i=r.preventDefault;if(!o&&!i){const{status:n,errorBody:r}=e;(t.onAuthFailed||ZL)(function({errorBody:e,status:t}){const n=e;if("object"==typeof n?.errors){return{message:new BL(n?.errors).message}}return{message:`HTTP ${t}`}}({status:n,errorBody:r}))}return r}async function iO(e){const t=hO(e.hostConfig);try{const n=await DL(t);return await n.getRestCallAuthParams({...e,hostConfig:t})}catch(e){throw(t.onAuthFailed||ZL)(fO(e)),e}}function aO(e,t){qL(e,t)}function sO(e){!function(e){VL("default",e||{})}(e)}function lO(e,t){VL(e,t)}function cO(e){!function(e){HL.has(e)?HL.delete(e):console.warn(`unregisterHostConfig: Host config with name "${e}" not found.`)}(e)}function uO(e){return function(e){const t=eR(WL(hO(e)));return JSON.stringify(t,UL)}(e)}const dO=()=>{globalThis.loggingOut=!0,globalThis.location.href="/logout"},pO=/^http/;function fO(e){return{message:e.message||"Unknown error"}}function hO(e){if(e?.reference){const t=GL(e.reference);if(!t)throw new zL(`Host config with name "${e.reference}" not found.`);return t}return e&&Object.keys(e).length>0?e:KL()}function mO(){return KL()}var gO={determineAuthType:XL,getDefaultHostConfig:mO,getRestCallAuthParams:iO,getWebResourceAuthParams:rO,getWebSocketAuthParams:nO,handleAuthenticationError:oO,isHostCrossOrigin:QL,isWindows:YL,logout:dO,registerAuthModule:aO,registerHostConfig:lO,serializeHostConfig:uO,setDefaultHostConfig:sO,toValidLocationUrl:eO,toValidWebsocketLocationUrl:tO,unregisterHostConfig:cO},bO=Object.freeze({__proto__:null,AuthorizationError:BL,InvalidAuthTypeError:FL,InvalidHostConfigError:zL,UnexpectedAuthTypeError:jL,default:gO,determineAuthType:XL,getAccessToken:async function(e){const t=await iO({method:"GET",...e}),n=t.headers?.Authorization;if(0===n.indexOf("Bearer "))return n.substring(7);throw new Error("Unknown format of authorization header returned by remote auth module")},getDefaultHostConfig:mO,getRestCallAuthParams:iO,getWebResourceAuthParams:rO,getWebSocketAuthParams:nO,handleAuthenticationError:oO,isHostCrossOrigin:QL,isWindows:YL,logout:dO,registerAuthModule:aO,registerHostConfig:lO,serializeHostConfig:uO,setDefaultHostConfig:sO,toValidLocationUrl:eO,toValidWebsocketLocationUrl:tO,unregisterHostConfig:cO});window.__qlikMainPrivateResolvers=window.__qlikMainPrivateResolvers||{},window.__qlikMainPrivateResolvers.mainUrlPromise=window.__qlikMainPrivateResolvers.mainUrlPromise||new Promise((e=>{window.__qlikMainPrivateResolvers.resolveMainJsUrl=t=>e(t)})),window.__qlikMainPrivateResolvers.qlikMainPromise=window.__qlikMainPrivateResolvers.qlikMainPromise||(async()=>{if(window.QlikMain)return window.QlikMain;const e=setTimeout((()=>{console.warn("Waiting for a host parameter pointing to a Qlik runtime system")}),5e3),t=await window.__qlikMainPrivateResolvers.mainUrlPromise;return clearTimeout(e),new Promise((e=>{if(window.QlikMain)e(window.QlikMain);else{const n=window.document.createElement("script");n.src=t,n.addEventListener("error",(()=>{console.error(`Qlik runtime system not found: ${t}`)})),n.addEventListener("load",(()=>{window.QlikMain&&e(window.QlikMain)})),window.document.head.appendChild(n)}}))})();var vO=Object.freeze({__proto__:null,importRuntimeModule:async function(e,t){return t?.runtimeModuleMocks?.[e]?t?.runtimeModuleMocks?.[e]:(function(e){const t=/\/+$/,n=function(e){const n=e?.embedRuntimeUrl||e?.url||e?.host;if(!n)return;let r;return r=n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")?n:`https://${n}`,r=r.replace(t,""),`${r}/qlik-embed/main.js`}(e);n&&window.__qlikMainPrivateResolvers.resolveMainJsUrl(n)}(t),async function(e){return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}}),yO=Object.freeze({__proto__:null});e.EnigmaMocker=ZE,e.__DO_NOT_USE__=XE,e.conversion=$w,e.embed=DE,e.onContextMenu=function(e){const t=nC(++Hk);t.value||(t.value=1,Uk.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=nC(++Hk);t.value||(t.value=1,Uk.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=aC({action(){n._config.action.call(null)}});return n.component||(n.component=Uk,Uk.__hooks.actions.list.push(n)),cC((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action},e.useApp=function(){const e=rC("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return rC("appLayout")},e.useConstraints=function(){return rC("constraints")},e.useDeviceType=function(){return rC("deviceType")},e.useEffect=sC,e.useElement=uC,e.useEmbed=function(){return rC("nebbie")},e.useEmitter=function(){return rC("emitter")},e.useGlobal=function(){const e=rC("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=nC(++Hk);if(n.imperative||(n.imperative=!0),Vk(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Uk.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return rC("interactions")},e.useKeyboard=function(){const e=rC("keyboardNavigation"),t=rC("focusHandler");if(!Uk.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(pC(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Uk);Uk.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),dC(this))}.bind(Uk);Uk.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Uk);Uk.__hooks.accessibility.focusSelectionFunction=r}const n=Uk.__hooks.accessibility.focusFunction,r=Uk.__hooks.accessibility.exitFunction,o=Uk.__hooks.accessibility.focusSelectionFunction,[i,a]=aC({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Uk.__hooks.accessibility.setter=a,Uk.__hooks.accessibility.enabled=e,sC((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i},e.useLayout=function(){return rC("layout")},e.useMemo=cC,e.useModel=function(){const e=rC("model");return e&&e.session?e:void 0},e.useNavigation=function(){return rC("navigation")},e.useOptions=function(){return rC("options")},e.usePlugins=function(){return rC("plugins")},e.usePromise=function(e,t){const[n,r]=aC((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=nC(++Hk);return o.component||(o.component=Uk),lC((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]},e.useRect=function(){const e=uC(),t=Uk.__hooks.resizer,[n,r]=aC((()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}}));return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),lC((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:i})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRef=function(e){return cC((()=>({current:e})),[])},e.useRenderState=function(){nC(++Hk);const e=Uk.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return rC("selections")},e.useStaleLayout=function(){const e=rC("layout"),[t]=aC({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=aC,e.useTheme=function(){return rC("theme")},e.useTranslator=function(){return rC("translator")}}));
125
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),S=g>0?e.substring(v,p):"";if(n=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,v=0;v<p;v++)m+=d.charAt(v),!((v-b+1)%l)&&v<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+S}},Cy({exports:{}});const qy=/,(?![^(]*\))/,Dy=/\s(?![^(]*\))/,Ny=/^[0-9]+[a-zA-Z%]+?$/,Ay=["none","inset","initial","inherit"],zy=e=>{if(!e)return;const t=e.split(Dy).filter((e=>!Ay.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||Ny.test(e))(t)||Ay.includes(t.toLowerCase())?void 0:t;return n},jy=e=>e?e.split(qy).map((e=>e.trim())):[];function Fy(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function $y(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:Fy(t,n,r,o)}const By={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Wy={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function Hy(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function Uy(e,t,n){const r=null==e?void 0:e.bgImage;if(r){let o="";if("media"===r.mode||"media"===e.useImage){let e;const i=null==r?void 0:r.mediaUrl,{qUrl:a}=(null==i?void 0:i.qStaticContentUrl)||{};o=a?decodeURIComponent(a):void 0,o=Hy(t,o),n&&(e=Object.entries(n).map((e=>{let[t,n]=e;return"&".concat(t,"=").concat(encodeURIComponent(n))})).join("&"),o="".concat(o,"?").concat(e))}"expression"===r.mode&&(o=r.expressionUrl?decodeURIComponent(r.expressionUrl):void 0);const i=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=Wy[e.bgImage.position]),n}(e),a=function(e){var t;let n=By.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=By[r]),n}(e);return o?{url:o,pos:i,size:a}:void 0}}function Vy(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):$y(null==r?void 0:r.color,"","backgroundColor",t,n)}function Gy(e,t,n){var r,o;const i=Fy("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&Ay.includes(e.toLowerCase()))return e.toLowerCase();const r=jy(e);if(1!==r.length)return e;let o=n;if(!o){const n=jy(t);if(1!==n.length)return e;o=zy(n[0])}if(!o)return e;const i=zy(r[0]);return i?e.replace(i,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||i,i,$y(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function Ky(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:i.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color):n.getStyle("object.".concat(r),"title.".concat(t),"color"),backgroundColor:i.backgroundColor||n.getStyle("object.".concat(r),"title.".concat(t),"backgroundColor"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const Jy={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},Zy=["theme","selections"];function Xy(e){var t,n,r,o,i,a,s,l;let{app:c,themeApi:d,theme:p,queryParams:f,components:h=[],checkboxes:m=!1}=e;const g=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;Zy.includes(n)&&(e[n]=t)})),e}(h),b=(e,t)=>d.getStyle("object.listBox",e,t),y=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?d.getColorPickerColor(e):void 0,v=function(e){var t,n,r,o,i;let{getColorPickerColor:a,theme:s,getListboxStyle:l,overrides:c,checkboxes:d}=e;const p=null===(t=c.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,f=a(p)||l("content","color")||(null===(n=s.palette)||void 0===n?void 0:n.text.primary),h=!d&&(null===(r=null===(o=c.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),m=(null===(i=c.selections)||void 0===i?void 0:i.colors)||{},g=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),i=a(m[e])||l("","dataColors.".concat(e))||"possible"===e&&l("","backgroundColor")||(null===(t=s.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||Jy[e];return{[e]:i,[o]:h?mb(i,f):f||(null===(n=s.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return u(u(u(u(u({},g("selected")),g("alternative")),g("excluded")),g("selectedExcluded")),g("possible"))}({getColorPickerColor:y,theme:p,getListboxStyle:b,overrides:g,checkboxes:m}),S=g.theme||{},w=y(null===(t=S.header)||void 0===t?void 0:t.fontColor)||b("title.main","color"),x=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?Vy({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color),t):t}({themeApi:d,themeOverrides:S}),k=null!==(n=S.background)&&void 0!==n&&n.image?Uy({bgImage:S.background.image},c,f):void 0,C=x||b("","backgroundColor")||p.palette.background.default,E=function(e,t){const n=fb(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(C,b),R=function(e){return mb("#fff",e("content","color"))}(b),L=(null===(r=S.header)||void 0===r?void 0:r.fontStyle)||{},P=(null===(o=S.content)||void 0===o?void 0:o.fontStyle)||{},T=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:C,backgroundImage:null==k||!k.url||null!=k&&k.url.startsWith("url(")?void 0:"url('".concat(k.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==k?void 0:k.size,backgroundPosition:null==k?void 0:k.pos},header:{color:w,fontSize:(null===(i=S.header)||void 0===i?void 0:i.fontSize)||b("title.main","fontSize"),fontFamily:(null===(a=S.header)||void 0===a?void 0:a.fontFamily)||b("title.main","fontFamily"),fontWeight:T(L.bold,"bold","normal")||b("title.main","fontWeight")||"bold",textDecoration:L.underline?"underline":"initial",fontStyle:T(L.italic,"italic","normal")||b("title.main","fontStyle")||"initial"},content:{backgroundColor:m?void 0:v.possible,color:v.possibleContrast||b("content","color"),fontSize:(null===(s=S.content)||void 0===s?void 0:s.fontSize)||b("content","fontSize"),fontFamily:(null===(l=S.content)||void 0===l?void 0:l.fontFamily)||b("content","fontFamily"),fontWeight:T(P.bold,"bold","normal")||b("content","fontWeight")||"normal",textDecoration:P.underline?"underline":"initial",fontStyle:T(P.italic,"italic","normal")||b("content","fontStyle")||"initial"},search:{color:R,borderColor:p.palette.divider,highlightBorderColor:p.palette.custom.focusBorder,backgroundColor:E,backdropFilter:"blur(8px)"},selections:v}}function Qy(e){let{app:t,themeApi:n,theme:r,queryParams:o,components:i,checkboxes:a}=e;return Xy({app:t,themeApi:n,theme:r,queryParams:o,components:i,checkboxes:a})}function Yy(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:i,app:a,fieldName:s,stateName:l="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=(()=>!1),sortCriteria:f=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:h="ltr"}=e;const m=Boolean(null==s?void 0:s.qLibraryId),g=o&&Boolean(t.current),[b,y]=S.useState(0),v=ms(),x=S.useRef(),[k]=Df({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:f,qFieldDefs:m?void 0:[s]},qLibraryId:m?s.qLibraryId:void 0}},a,s,l),C=S.useCallback((()=>{k.lock("/qListObjectDef")}),[k]),E=S.useCallback((()=>{k.unlock("/qListObjectDef")}),[k]),{translator:R,themeApi:L,keyboardNavigation:P,hostConfig:T}=S.useContext(Bl),O=S.useRef(),I=S.useRef(),[_]=Zg(a,k,I),[M]=$f(k),[q]=S.useState((()=>Xg({selectDisabled:p}))),D=om({containerRef:I,enabled:P}),{checkboxes:N=d}=M||{},A=Qy({themeApi:L,theme:v,components:u,checkboxes:N});if(S.useEffect((()=>{_&&g&&(_.isModal(k)||_.goModal("/qListObjectDef"))}),[_,g]),!(k&&M&&R&&A))return null;const z=!0===M.qListObject.qDimensionInfo.qLocked,j=(e,t)=>{const n="escapeKeyDown"!==t;_.noModal(n),i()},F=bg({layout:M,model:k,translator:R,selectionState:q,selections:_}),$=Yg(M);return w.createElement(Qp,{className:"listbox-container",open:g,onClose:j,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?j():void 0,direction:h},w.createElement(up,{container:!0,direction:"column",gap:0,ref:I},w.createElement(up,{item:!0,container:!0,style:{direction:h,padding:v.spacing(1)}},w.createElement(up,{item:!0},z?w.createElement(oc,{onClick:E,disabled:!z,size:"large"},w.createElement(Gf,{title:R.get("Listbox.Unlock")})):w.createElement(oc,{onClick:C,disabled:!$,size:"large"},w.createElement(Jf,{title:R.get("Listbox.Lock")}))),w.createElement(up,{item:!0,xs:!0}),w.createElement(up,{item:!0},w.createElement(jg,{layout:M,more:{enabled:!z,actions:F,alignTo:O,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:_,onConfirm:j,onCancel:()=>j(0,"escapeKeyDown")}}))),w.createElement(up,{item:!0,xs:!0},w.createElement("div",{ref:O}),w.createElement(up,{item:!0},w.createElement(Ug,{ref:x,popoverOpen:g,styles:A,visible:!0,model:k,listCount:b,selections:_,selectionState:q,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:D.focusSelection},autoFocus:null==c||c,direction:h})),w.createElement(pg,{model:k,app:a,layout:M,selections:_,selectionState:q,direction:h,onSetListCount:e=>y(e),onCtrlF:()=>{x.current.focus()},styles:A,keyboard:D}))))}function ev(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:s}=S.useContext(Bl),l=i||S.useRef(),c=ms(),[u,d]=S.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),a()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,b=m.qAlternative/h.qTotal,y=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,v=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===v&&0===h.qTotal;let k="";h.qTotal===v&&h.qTotal>1?k=s.get("CurrentSelections.All"):v>1&&h.qTotal?k=s.get("CurrentSelections.Of",[v,h.qTotal]):h.qSelectedFieldSelectionInfo&&(k=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(k="".concat(t.states[r],": ").concat(k));const C=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:b},{color:c.palette.selected.excluded,ratio:y}];C.forEach(((e,t)=>{e.offset=t?C[t-1].offset+C[t-1].ratio:0}));let E=null,R=null,L=null,P=null;return i||(E=w.createElement(up,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},w.createElement(uc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label),w.createElement(uc,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},k)),h.qLocked?R=w.createElement(up,{item:!0},w.createElement(oc,{size:"large"},w.createElement(Gf,null))):h.qOneAndOnlyOne||(R=w.createElement(up,{item:!0},w.createElement(oc,{title:s.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},w.createElement(Vf,null)))),L=w.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&C.map((e=>w.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),P=w.createElement(up,{container:!0,gap:1,ref:l,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,R,L,u&&w.createElement(Yy,{alignTo:l,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),i?w.createElement(Yy,{alignTo:l,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):P}var tv=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const nv={item:"".concat("MultiState","-item")},rv=bs(up)((e=>{let{theme:t}=e;return{["&.".concat(nv.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function ov(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[i,a]=S.useState(!!r),[s,l]=S.useState(-1),[c,u]=S.useState(r?r.current:null),d=r||S.useRef(),{translator:p}=S.useContext(Bl),f=p.get("Selection.ClearAllStates"),h=()=>{l(-1),o()};let m=null;r||(m=w.createElement(w.Fragment,null,w.createElement(up,{item:!0,xs:!0,zeroMinWidth:!0},w.createElement(fd,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},w.createElement(uc,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label))),w.createElement(up,{item:!0},w.createElement("div",{style:{width:"12px"}})),w.createElement(up,{item:!0},w.createElement(oc,{size:"large"},w.createElement(tv,null)))));const g=w.createElement(Rp,{dense:!0},w.createElement(qp,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},w.createElement(ql,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>w.createElement(qp,{key:r,title:t.label,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,r)},w.createElement(gd,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},w.createElement(ev,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),b=w.createElement(Qp,{open:i,onClose:()=>{a(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),y=r?b:w.createElement(rv,{container:!0,gap:0,className:nv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,a(!i))}},m,i&&b,s>-1&&w.createElement(Yy,{alignTo:d,show:s>-1,close:h,app:n.model,fieldName:t.selections[s].qField,stateName:t.states[s]}));return r&&s>-1?w.createElement(Yy,{alignTo:d,show:s>-1,close:h,app:n.model,fieldName:t.selections[s].qField,stateName:t.states[s]}):y}const iv="More",av={item:"".concat(iv,"-item"),badge:"".concat(iv,"-badge")},sv=bs(up)((e=>{let{theme:t}=e;return{["&.".concat(av.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(av.badge)]:{padding:t.spacing(0,1)}}}));function lv(e){let{items:t=[],api:n}=e;const r=ms(),[o,i]=S.useState(!1),[a,s]=S.useState(-1),[l,c]=S.useState(null),u=S.useRef(),d=()=>{s(-1)};let p=null;return a>-1&&(p=t[a].states.length>1?w.createElement(ov,{field:t[a],api:n,moreAlignTo:u,onClose:d}):w.createElement(ev,{field:t[a],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),w.createElement(sv,{container:!0,gap:0,className:av.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))}},w.createElement(up,{item:!0},w.createElement(gd,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},w.createElement(uc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),w.createElement(up,{item:!0},w.createElement(oc,{size:"large"},w.createElement(tv,null))),o&&w.createElement(Qp,{open:o,onClose:()=>{i(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},w.createElement(Rp,{dense:!0},t.map(((e,t)=>w.createElement(qp,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,t)},w.createElement(gd,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?w.createElement(ov,{field:e,api:n}):w.createElement(ev,{field:e,api:n}))))))),p)}const cv=120,uv=72;function dv(e){let{api:t,app:n}=e;const r=ms(),[o]=Af(n),[i]=$f(o),[a,s]=S.useState({items:[],more:[]}),{modalObjectStore:l}=S.useContext(Bl).selectionStore,[c,u]=Wf(),[d,p]=S.useState(0);return S.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-uv,n=Math.floor(t/cv);p(n)}),[u]),S.useEffect((()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach((e=>{const r=e.qField;let o=t[r];var i;void 0===o&&(o={name:r,label:(null===(i=e.qDimensionReferences)||void 0===i||null===(i=i.find((e=>e.qLabel)))||void 0===i?void 0:i.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)}))}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach((e=>n(e.qSelectionObject,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(i);s((t=>{const r=e;if((()=>{const{model:e}=l.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,i,t.isInModal(),d]),w.createElement(up,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},a.items.map((e=>w.createElement(up,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(cv,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?w.createElement(ov,{field:e,api:t}):w.createElement(ev,{field:e,api:t})))),a.more.length>0&&w.createElement(up,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(uv,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},w.createElement(lv,{items:a.more,api:t})))}var pv=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var fv=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const hv=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}}))),o=(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::"),i=(n.qStateNames||[]).map((e=>e)).join("::");o!==i&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function mv(e){let{api:t,app:n}=e;const{translator:r}=S.useContext(Bl),[o]=function(e){const[t]=Af(e),[n]=$f(t),[r]=Bf(e),[o,i]=S.useState(null);return S.useEffect((()=>{r&&t&&n&&hv(t,n,r)}),[r,t,n]),S.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),i({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return w.createElement(up,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},w.createElement(up,{item:!0},w.createElement(oc,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},w.createElement(pv,null))),w.createElement(up,{item:!0},w.createElement(oc,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},w.createElement(fv,null))),w.createElement(up,{item:!0},w.createElement(oc,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},w.createElement(Eg,null))))}const gv=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function bv(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function yv(){return gv.map(bv).join("")}function vv(e){let{app:t}=e;const n=ms(),[r]=Vg(t);return r?w.createElement(up,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},w.createElement(up,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},w.createElement(mv,{api:r,app:t})),w.createElement(up,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},w.createElement(dv,{api:r,app:t}))):null}let Sv;Sv="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let wv=null,xv=null;const kv=Sv.clearTimeout,Cv=Sv.setTimeout,Ev=Sv.cancelAnimationFrame||Sv.mozCancelAnimationFrame||Sv.webkitCancelAnimationFrame,Rv=Sv.requestAnimationFrame||Sv.mozRequestAnimationFrame||Sv.webkitRequestAnimationFrame;function Lv(e){let t,n,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&wv(this.__resizeRAF__),this.__resizeRAF__=xv((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=Sv.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==Ev||null==Rv?(wv=kv,xv=function(e){return Cv(e,20)}):(wv=function([e,t]){Ev(e),kv(t)},xv=function(e){const t=Rv((function(){kv(n),e()})),n=Cv((function(){Ev(t),e()}),20);return[t,n]});class Pv extends S.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,p=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Lv(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:p,scaledWidth:f,width:h}=this.state,m={overflow:"visible"},g={};let b=!1;return r||(0===d&&(b=!0),m.height=0,g.height=d,g.scaledHeight=p),o||(0===h&&(b=!0),m.width=0,g.width=h,g.scaledWidth=f),i&&(b=!1),S.createElement(c,{ref:this._setRef,style:{...m,...l},...u},!b&&e(g))}}function Tv(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:i,constraints:a,selections:s}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const a=e.currentTarget.closest(".listbox-container"),l=i();switch(n){case tm.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(r){sm(a)||am(a)||cm(e,t)}else{if(!(lm(a)||am(a)||sm(a)))break}o();break;case tm.ENTER:case tm.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case tm.ESCAPE:cm(e,t),s.isActive()&&s.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==a?void 0:a.select)||(null==a?void 0:a.active),t=i();return e||t})())return;const{keyCode:t,ctrlKey:s=!1,shiftKey:l=!1}=e;switch(t){case tm.ARROW_UP:r({up:1});break;case tm.ARROW_DOWN:r({down:1});break;case tm.PAGE_UP:r({up:o.stop-o.start});break;case tm.PAGE_DOWN:r({down:o.stop-o.start});break;case tm.HOME:r({scrollPosition:s&&l?"overflowStart":"start"});break;case tm.END:r({scrollPosition:s&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Ov=bs("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Iv(e){let{text:t}=e;const{translator:n}=S.useContext(Bl);return w.createElement(Ov,null,n.get(t))}const _v={fontSize:"12px"},Mv=bs(dl)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(mh,"px")}}})),qv=bs(up,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return u(u({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),Dv=bs(uc)((e=>{let{styles:t}=e;return u(u({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function Nv(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const i=t.get("SelectionToolbar.ClickToUnlock");return w.createElement(Mv,{title:i,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?w.createElement(kl,{size:16,variant:"indeterminate",color:"primary"}):w.createElement(Gf,{disableRipple:!0,style:_v}),!o&&w.createElement(uc,{fontSize:"14px"},i))}var Av=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var zv=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var jv=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const Fv="H",$v="C";var Bv={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:i,keyboard:a}=e;switch(t.qGrouping){case Fv:return{icon:zv,tooltip:"Listbox.DrillDown",onClick:void 0};case $v:{const e=n&&i,s=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?jv:Av,tooltip:"Listbox.Cyclic",onClick:e?s:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case tm.SPACE:case tm.ENTER:s();break;case tm.TAB:{if(!a.enabled)return;let n;n=e.shiftKey?a.focusSelection():am(t)||sm(t),n||cm(e,a)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const Wv=bs(ql)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function Hv(e){let{iconData:t,translator:n,iconStyle:r,disabled:o,keyboard:i}=e;if(!t)return;const{icon:a,tooltip:s,onClick:l,onKeyDown:c}=t,d=a,p=n.get(s);return l?w.createElement(Wv,{variant:"outlined",onClick:l,tabIndex:i.innerTabStops?0:-1,title:p,size:"large",disableRipple:!0,disabled:o,onKeyDown:c,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},w.createElement(d,{style:r})):w.createElement(d,{title:p,size:"large",style:u(u({},r),{},{padding:"".concat(mh,"px")})})}const Uv=500;let Vv=0;function Gv(e){var t,n,r;let{layout:o,translator:i,styles:a,isRtl:s,showLock:c,showSearchIcon:d,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:b,showDetachedToolbarOnly:y,containerRef:v,model:x,selectionState:k,isDirectQuery:C,selections:E,keyboard:R,autoConfirm:L,app:P,disablePortal:T}=e;const[O,I]=S.useState(y),[_,M]=S.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[q,D]=S.useState(!1);S.useEffect((()=>{var e;M(null==o||null===(e=o.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==o||null===(n=o.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const N=S.useRef(null),A=Bv.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:P,selections:E,isPopover:g,active:!(null!=p&&p.active),keyboard:R}),z=c&&_,j=!c&&_,F=d||j||A,$=fh-(F?mh:0),B=s?fh-(F?mh:0):hh,W=(d?gh:0)+(j?gh:0)+(A?gh:0),H=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-Vv<Uv)return Promise.resolve();if(r)return()=>{};i(!0),Vv=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:_,setLocked:M,settingLockedState:q,setSettingLockedState:D,model:x}),U=bg({layout:o,model:x,translator:i,selectionState:k,isDirectQuery:C,selections:E}),V=_||!c?void 0:[{key:"lock",type:void 0,label:i.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Kf,enabled:()=>!q&&!k.selectDisabled()&&Yg(o),action:H}],G=null!=p&&p.active?w.createElement(Fg,{title:i.get("Listbox.Search"),size:"large",style:u(u({},_v),{},{padding:"".concat(mh,"px")})}):w.createElement(oc,{onClick:f,tabIndex:-1,title:i.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},w.createElement(Fg,{style:_v}));S.useEffect((()=>{if(!N.current||!m)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:s,paddingLeft:l,paddingRight:c}=e;const u=l+c,d=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+s+u+2+128,p=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:m,titleRef:N,iconsWidth:W,paddingLeft:$,paddingRight:B});I(y||e)}),[W,$,B,N.current,y,Object.entries(m||{}).sort().join(",")]);const K=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,extraItems:a,selections:s,keyboard:l,autoConfirm:c,disablePortal:u}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:a,more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:u},selections:{show:n,api:s,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!g&&O,showToolbar:b,containerRef:v,isLocked:_,extraItems:V,listboxSelectionToolbarItems:U,selections:E,keyboard:R,autoConfirm:L,disablePortal:T}),J=w.createElement(jg,l({isRtl:s,layout:o},K));if(y)return J;const Z=j?w.createElement(Gf,{size:"large",style:u(u({},_v),{},{padding:"".concat(mh,"px")})}):void 0;return w.createElement(qv,{item:!0,container:!0,styles:a,isRtl:s,marginY:1,paddingLeft:"".concat($,"px"),paddingRight:"".concat(B,"px"),className:"header-container"},z&&w.createElement(Nv,{isLoading:q,translator:i,toggleLock:H,keyboard:R}),F&&w.createElement(up,{item:!0,container:!0,alignItems:"center",width:W,className:"header-action-container"},Z||d&&G,w.createElement(Hv,{iconData:A,iconStyle:_v,disabled:E.isActive()&&g,translator:i,keyboard:R})),w.createElement(up,{item:!0,xs:!0,minWidth:0,justifyContent:s?"flex-end":"flex-start",className:h.listBoxHeader},w.createElement(Dv,{variant:"h6",noWrap:!0,ref:N,title:o.title,styles:a},o.title)),w.createElement(up,{item:!0,display:"flex"},J))}const Kv="ListBoxInline",Jv={listBoxHeader:"".concat(Kv,"-listBoxHeader"),screenReaderOnly:"".concat(Kv,"-screenReaderOnly"),listboxWrapper:"".concat(Kv,"-listboxWrapper")},Zv=bs(up,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return u(u({},o.background),{},{["& .".concat(Jv.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Jv.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Jv.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const Xv=w.memo((function(e){var t,n,r,o;let{options:i,layout:a}=e;const{app:s,direction:l,frequencyMode:c,checkboxes:d,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:b,fetchStart:y,postProcessPages:v,calculatePagesHeight:x,showGray:k=!0,scrollState:C,renderedCallback:E,toolbar:R=!0,isPopover:L=!1,showLock:P=!1,components:T,selectDisabled:O=(()=>!1),disablePortal:I=!0}=i,_=ms(),{translator:M,keyboardNavigation:q,themeApi:D,queryParams:N,constraints:A}=S.useContext(Bl),{checkboxes:z=d}=a||{},j=Qy({app:s,themeApi:D,theme:_,queryParams:N,components:T,checkboxes:z}),F=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==s?void 0:s.layout}),$=S.useRef(),B=S.useRef(),[W,H]=Wf(),[U,V]=S.useState(!1),[G,K]=S.useState(!1),J=S.useRef(!1),[Z,X]=S.useState({down:0,up:0,scrollPosition:""}),Q=e=>X((t=>u(u({},t),e))),[Y,ee]=S.useState({start:0,stop:0}),[te]=Vg(s),[ne]=S.useState((()=>Xg({selectDisabled:O}))),re=om({containerRef:$,enabled:q}),oe=S.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:s,appSelections:te})),[s,te]),ie=null==a?void 0:a.qListObject.qDimensionInfo.qError,ae=ie&&A.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:se,handleOnMouseEnter:le,handleOnMouseLeave:ce,globalKeyDown:ue}=S.useMemo((()=>Tv({keyboard:re,hovering:J,updateKeyScroll:Q,currentScrollIndex:Y,constraints:A,isModal:oe,selections:g})),[re,J,Q,$,Y,s,te,A,oe]);S.useEffect((()=>(document.addEventListener("keydown",ue),()=>{document.removeEventListener("keydown",ue)})),[ue]),S.useEffect((()=>{!0===p&&K(!0);const e=()=>{V(!0)},t=()=>{V(!1),"toggle"===p&&K(!1)};return L&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),V(L)),R&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),V(L||g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[R,g,L]);const{wildCardSearch:de,searchEnabled:pe,autoConfirm:fe=!1,layoutOptions:he={}}=null!=a?a:{},me=null==a||null===(t=a.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,ge=!1!==pe&&"toggle"===p&&!me,be=(null==a||null===(n=a.title)||void 0===n?void 0:n.length)&&!1!==(null==a?void 0:a.showTitle),ye=R&&!be&&!L,ve=R&&be||L,Se="rtl"===l;if(!(m&&a&&M&&j))return null;const we=!0===p||"toggle"===p&&G&&!1!==pe,xe=null!==(r=he.dense)&&void 0!==r&&r,ke=()=>{K(!G)},Ce=()=>{"toggle"===p?ke():B.current.focus()},Ee=we&&("toggle"===p||f),Re="grid"===(null==he?void 0:he.dataLayout),Le=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=Wm({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===i?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Re,dense:xe,height:null===(o=$.current)||void 0===o?void 0:o.clientHeight,layoutOrder:he.layoutOrder});ie&&(null==E||E());const Pe=ve?Eh+yh:0,Te=w.createElement(Gv,{app:s,showSearchIcon:ge,onShowSearch:ke,isPopover:L,showToolbar:U,isDirectQuery:F,autoConfirm:fe,showDetachedToolbarOnly:ye,layout:a,translator:M,styles:j,isRtl:Se,showLock:P,constraints:A,classes:Jv,containerRect:H,containerRef:$,model:m,selectionState:ne,selections:g,keyboard:re,disablePortal:I});return w.createElement(w.Fragment,null,ye&&Te,w.createElement(Zv,{className:"listbox-container",container:!0,tabIndex:re.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Le,styles:j,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:le,onMouseLeave:ce,ref:e=>{$.current=e,W(e)},isGridMode:Re,"aria-label":re.active?M.get("Listbox.ScreenReaderInstructions"):""},ve&&Te,w.createElement(up,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Pe,role:"region","aria-label":M.get("Listbox.ResultFilterLabel")},w.createElement(up,{item:!0},w.createElement(Ug,{ref:B,selections:g,selectionState:ne,model:m,dense:xe,keyboard:re,visible:we,search:p,autoFocus:Ee,beginSelectionOnFocus:!L,wildCardSearch:de,searchEnabled:pe,direction:l,hide:ge&&ke,styles:j})),w.createElement(up,{item:!0,xs:!0,className:Jv.listboxWrapper},ie?w.createElement(Iv,{text:ae}):w.createElement(Pv,null,(e=>{let{height:t,width:n}=e;return w.createElement(pg,{model:m,app:s,constraints:A,layout:a,selections:g,selectionState:ne,direction:l,frequencyMode:c,rangeSelect:h,checkboxes:z,height:t,width:n,update:b,fetchStart:y,postProcessPages:v,calculatePagesHeight:x,keyboard:re,showGray:k,scrollState:C,keyScroll:{state:Z,reset:()=>X({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Y,set:ee},renderedCallback:E,onCtrlF:Ce,isModal:oe,styles:j})}))))))}));function Qv(e){let{options:t={}}=e;const{model:n}=t,[r]=$f(n);return w.createElement(Xv,{options:t,layout:r})}function Yv(e){let{app:t,qId:n,options:r={}}=e;const[o,i]=S.useState(),[a]=qf(),{sessionModel:s}=r,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>l.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return S.useEffect((()=>{let e=!1,r=()=>{};return async function(){const o=await Promise.resolve(s||async function(e){return a.get(e)||await t.getObject(e)}(n));if(!e){if(!a.get(o.id)){a.set(o.id,o);const e=()=>{a.clear(o.id)};o.once("closed",e),r=()=>{o.removeListener("closed",e)}}i(o)}}(),()=>{e=!0,r()}}),[]),o}const eS={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function tS(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const nS=["__DO_NOT_USE__"],rS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return u(u(u({},d(e,nS)),n),t)},oS=S.forwardRef(((e,t)=>{let{app:n,fieldIdentifier:r,qId:o,stateName:i,element:a,initialOptions:s,renderedCallback:l}=e;const[c,d]=S.useState(s),{isExistingObject:p,hasExternalSelectionsApi:f}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:o,options:c});p||Object.assign(c,{frequencyMode:tS(c.frequencyMode)});const[h,m]=S.useState(0);S.useEffect((()=>{if(h)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(h+1)}),[p,f]);const g=p?Yv({app:n,qId:o,options:c}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:i={}}=e;const[a,s]=S.useState(""),[l,c]=S.useState(!0),[u,d]=S.useState(),[p,f]=S.useState(),h=null!==(t=i.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=i;a&&a.failedToFetchFieldDef&&(m=!1,g="N"),S.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?s(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):s({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),s({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:b,checkboxes:y,listLayout:v,properties:w={}}=i,x={dense:b};"horizontal"===v&&(x.dataLayout="grid",x.layoutOrder="column",x.maxVisibleColumns={auto:!0},x.maxVisibleRows={auto:!1,maxRows:1});const k=S.useRef();k.current||(k.current=yv());const C=fe(!0,{},eS,{qInfo:{qId:k.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:y,layoutOptions:x,title:h});let E;if(fe(!0,C,w),r.qLibraryId?(C.qListObjectDef.qLibraryId=r.qLibraryId,E=r.qLibraryId):(C.qListObjectDef.qDef.qFieldDefs=[r],E=r),"P"!==g&&m)if(null!=a&&a.multiFieldDim)C.frequencyMax="fetch";else{const e=r.qLibraryId?a:E;C.frequencyMax={qValueExpression:sg(e)}}const[R]=Df(C,l?null:n,E,o);return S.useEffect((()=>{R&&d(R)}),[R]),u}({app:n,fieldIdentifier:r,stateName:i,options:c}),b=S.useRef(a),y=f?c.selectionsApi:Zg(n,g,[b,".njs-action-toolbar-more",".njs-action-toolbar-popover"],c)[0],v=S.useMemo((()=>u(u({},c),{},{selections:y,model:g,app:n,renderedCallback:l})),[c,y,g,n]);return S.useImperativeHandle(t,(()=>({setOptions:e=>d(e)})),[]),y&&g?w.createElement(Qv,{options:v}):null}));const iS={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function aS(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i={}}=e;const[a,s]=S.useState(!!i.show);return w.createElement(Yy,{show:a,app:t,alignTo:{current:o},anchorOrigin:i.anchorOrigin,transformOrigin:i.transformOrigin,close:()=>{s(!1),i.onPopoverClose&&i.onPopoverClose()},fieldName:n,stateName:r,autoFocus:i.autoFocus,components:i.components,sortCriteria:i.sortCriteria,direction:i.direction})}function sS(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function lS(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const cS=e=>({qDef:{qFieldDefs:[e]}}),uS=e=>({qDef:{qDef:e}});function dS(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?cS(e):u(u({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||yv(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<i.maxDimensions()?(t.qDimensions.push(r),sS(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return lS(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?uS(e):u(u({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||yv(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),sS(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];lS(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const pS=e=>({qDef:{qFieldDefs:[e]}});function fS(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?pS(e):u(u({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||yv(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===i.dimensions().length,canAddMeasure:()=>!1};return i}const hS=e=>({qDef:{qFieldDefs:[e]}}),mS=e=>{let t;return t="string"==typeof e?fe(!0,{},eS,{qListObjectDef:hS(e)}):e.qListObjectDef?fe(!0,{},eS,e):fe(!0,{},eS,{qListObjectDef:e}),t};function gS(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=mS(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||yv(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function bS(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function yS(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:s}=a,l=s.split("/");let c=r;for(let e=0;e<l.length;e++){const t=l[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?fS:e.match("/qChildListDef")?gS:dS}(s),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===bS(t)?await d.addMeasure(t):await d.addDimension(t)}}var vS={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var SS={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},move:function(e,t,n){if(n<0)throw Error("newIndex cannot be a negative value!");if(n>=e.length){let t=n-e.length+1;for(;t;)e.push(void 0),t--}const r=e.at(t);e.splice(t,1),e.splice(n,0,r)}};const wS=2**53-1;function xS(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function kS(e,t){const n=fe(!0,{},t,e);return vS.getValue(n,"qOtherTotalSpec.qOtherCounted")||vS.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),vS.getValue(n,"qOtherTotalSpec.qOtherLimit")||vS.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function CS(e,t){return fe(!0,{},t,e)}function ES(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var RS={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===vS.getValue(e,t)&&vS.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:xS,importCommonProperties:function(e,t,n){const r="masterobject"===vS.getValue(t,"properties.qInfo.qType")?"masterobject":vS.getValue(n,"qInfo.qType");vS.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:kS,createDefaultMeasure:CS,resolveValue:ES,getHypercubePath:function(e){const t=vS.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(SS.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,SS.indexRemoved(n.qInterColumnSortOrder,i))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=fe(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?vS.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||xS(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=fe(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},i=n.measures||{max:0},a=ES(i.max,r.dimensions.length,wS),s=ES(i.min,r.dimensions.length,0);return{maxDimensions:ES(o.max,a,wS),minDimensions:ES(o.min,s,0),maxMeasures:a,minMeasures:s}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.dimensions.length;++s)o.qDimensions.length<n?o.qDimensions.push(kS(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(kS(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(kS(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(kS(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(kS(a.excludedDimensions[s],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.measures.length;++s)o.qMeasures.length<n?o.qMeasures.push(CS(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(CS(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(CS(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(CS(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(CS(a.excludedMeasures[s],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=vS.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=vS.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var LS={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,i=vS.getValue(o,n||""),a=i.qHyperCubeDef,s=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),s.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();SS.isOrderedSubset(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(RS.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!vS.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},s=RS.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=vS.getValue(n,i||"").qHyperCubeDef,c=vS.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=RS.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=RS.getDefaultDimension(),defaultMeasure:m=RS.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,RS.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&RS.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),RS.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),RS.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),RS.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),RS.copyPropertyIfExist("qMaxStackedCells",l,c),RS.copyPropertyIfExist("qNoOfLeftDims",l,c),RS.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),RS.copyPropertyOrSetDefault("qMode",l,c,"S"),RS.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),RS.copyPropertyOrSetDefault("qSortbyYValue",l,c),RS.copyPropertyOrSetDefault("qIndentMode",l,c),RS.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),RS.importCommonProperties(s,t,n),RS.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),RS.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const PS=e=>vS.getValue(e,"data.targets.0.propertyPath"),TS=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return LS.exportProperties})(PS(e))},OS=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return LS.importProperties})(PS(e))},IS=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:a=!1}=e;const s=i?{qProperty:i}:await n.getFullPropertyTree(),l=r.current.getQae(),c=TS(l);if(!c)throw new Error("Source chart does not support conversion");const d=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),p=d.qae,f=OS(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:c({propertyTree:s,hypercubePath:RS.getHypercubePath(l),viewDataMode:a}),initialProperties:u({qInfo:{qType:o},visualization:o},vS.getValue(p,"properties.initial",{})),dataDefinition:vS.getValue(p,"data.targets.0.",{}),hypercubePath:RS.getHypercubePath(p),viewDataMode:a})},_S={hypercube:LS};var MS=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function qS(e){let{d:t}=e;const n=ms();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const i={color:o},a=w.createElement(uc,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},w.createElement(bp,null,t.missing||t.error?w.createElement(MS,{style:i}):w.createElement(ch,{style:i})));return w.createElement(up,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},w.createElement(up,{item:!0},a),w.createElement(up,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},w.createElement(uc,{noWrap:!0,component:"p"},w.createElement(uc,{component:"span",variant:"subtitle2",color:r},t.description),w.createElement(uc,{component:"span"}," "),w.createElement(uc,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function DS(e){let{data:t}=e;const n=ms();return w.createElement(up,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>w.createElement(qS,{d:e,key:t})));return r.length>0&&w.createElement(up,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},w.createElement(uc,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function NS(e){let{title:t="Error",message:n="",data:r=[]}=e;return w.createElement(up,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},w.createElement(up,{item:!0},w.createElement(MS,{style:{fontSize:"38px"}})),w.createElement(up,{item:!0},w.createElement(uc,{variant:"h6",align:"center","data-tid":"error-title"},t)),w.createElement(up,{item:!0},w.createElement(uc,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),w.createElement(DS,{data:r}))}const AS=["size"],zS="Progress",jS={root:"".concat(zS,"-root"),front:"".concat(zS,"-front"),back:"".concat(zS,"-back")},FS=bs("div")((e=>{let{theme:t}=e;return{["&.".concat(jS.root)]:{position:"relative",display:"inline-block"},["& .".concat(jS.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(jS.back)]:{color:t.palette.divider}}})),$S={small:16,medium:32,large:64,xlarge:128};function BS(e){let{size:t="medium"}=e,n=d(e,AS);const r=$S[t];return w.createElement(FS,{className:jS.root},w.createElement(kl,l({variant:"determinate",value:100,className:jS.back,size:r,thickness:3},n)),w.createElement(kl,l({variant:"indeterminate",disableShrink:!0,className:jS.front,size:r,thickness:3},n)))}const WS=["cancel","translator"],HS=["retry","translator"],US={stripes:"".concat("LongRunningQuery","-stripes")},VS=bs(up)((()=>({["& .".concat(US.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function GS(e){let{cancel:t,translator:n}=e,r=d(e,WS);return w.createElement(w.Fragment,null,w.createElement(VS,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},w.createElement(up,{item:!0},w.createElement(BS,null)),w.createElement(up,{item:!0},w.createElement(uc,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),w.createElement(up,l({item:!0},r),w.createElement(ql,{variant:"contained",onClick:t},n.get("Cancel"))))}function KS(e){let{retry:t,translator:n}=e,r=d(e,HS);return w.createElement(w.Fragment,null,w.createElement(up,{item:!0},w.createElement(MS,{style:{fontSize:"38px"}})),w.createElement(up,{item:!0},w.createElement(uc,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),w.createElement(up,{item:!0},w.createElement(ql,l({variant:"contained",onClick:t},r),n.get("Retry"))))}function JS(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=S.useContext(Bl);return w.createElement(up,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:US.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&w.createElement(GS,{cancel:r.cancel,translator:o,className:US.cancel}),n&&w.createElement(KS,{retry:r.retry,translator:o,className:US.retry}))}function ZS(){return w.createElement(up,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},w.createElement(BS,{size:"large"}))}const XS={width:0,height:0},QS="Header",YS={containerStyle:"".concat(QS,"-containerStyle"),containerTitleStyle:"".concat(QS,"-containerTitleStyle")},ew=bs(up)((e=>{let{theme:t}=e;return{["&.".concat(YS.containerStyle)]:{flexGrow:0},["&.".concat(YS.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),tw="njs-cell-title",nw="njs-cell-sub-title";function rw(e){let{id:t,layout:n,sn:r,anchorEl:o,hovering:i,focusHandler:a,titleStyles:s={},isRtl:l,translator:c}=e;const u=n.showTitles&&!!n.title,d=n.showTitles&&!!n.subtitle,p=n.qSelectionInfo&&n.qSelectionInfo.qInSelections,[f,h]=S.useState([]);S.useEffect((()=>{r&&r.component&&r.component.isHooked&&r.component.observeActions((e=>{h([...e,...r&&r.selectionToolbar&&r.selectionToolbar.items||[]])}))}),[r]);const m=[YS.containerStyle,...u||d?[YS.containerTitleStyle]:[]],g=i||p,b=w.createElement(jg,{show:!1,selections:{show:p,api:r.component.selections,onKeyDeactivate:a.refocusContent},actions:f,popover:{show:g,anchorEl:o},focusHandler:a,layout:n,isRtl:l});return w.createElement(ew,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},w.createElement(up,{item:!0,zeroMinWidth:!0,xs:!0,dir:l?"rtl":"ltr"},w.createElement(up,{container:!0,wrap:"nowrap",direction:"column"},u?w.createElement(Mf,{title:n.title},w.createElement(uc,{id:"".concat(t,"_title"),variant:"h6",noWrap:!0,className:tw,style:s.main},n.title)):w.createElement("div",{id:"".concat(t,"_title"),style:XS,"aria-label":c.get("Accessibility.Object.NoTitle")}),d&&w.createElement(Mf,{title:n.subtitle},w.createElement(uc,{variant:"body2",noWrap:!0,className:nw,style:s.subTitle},n.subtitle)))),w.createElement(up,{item:!0},b))}const ow="condition",iw="search",aw="clear_selection",sw="matches_exactly",lw="starts_with",cw="ends_with",uw="beginning_of_word",dw="general",pw="fixed_value",fw=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude"),r=e.filter((e=>!1!==e.showInFooter));return r.map((e=>{var r;let o="";switch(e.type){case iw:o+=(e=>{var t,n,r;let o="",i="";switch(null===(t=e.options)||void 0===t?void 0:t.mode){case uw:o="*^",i="*";break;case cw:o="*";break;case lw:i="*";break;case sw:break;default:o="*",i="*"}const a=null!==(n=null===(r=e.options.values)||void 0===r?void 0:r[0])&&void 0!==n?n:"";return""!==a?'"'.concat(o).concat(a).concat(i,'"'):""})(e);break;case ow:o+=(e=>{var t,n,r,o,i,a,s;const{options:l}=e,c=(null==l?void 0:l.mode)===dw,u=(null==l||null===(t=l.modifier)||void 0===t?void 0:t.type)===pw,d=null!=l&&null!==(n=l.modifier)&&void 0!==n&&n.operator?l.modifier.operator.split(" "):[];if(0===d.length||!u&&(null===(r=l.firstValue)||void 0===r||!r.aggregator||null===(o=l.firstValue)||void 0===o||!o.field)||u&&(null===(i=l.firstValue)||void 0===i||!i.fixedValue)||c&&(null===(a=l.conditionField)||void 0===a||!a.aggregator||null===(s=l.conditionField)||void 0===s||!s.field))return"";let p,f,h="=";var m,g,b;if(c&&u)p="".concat(null===(m=l.conditionField)||void 0===m?void 0:m.aggregator,"(").concat(ag(null===(g=l.conditionField)||void 0===g?void 0:g.field),")"),f="".concat(null===(b=l.firstValue)||void 0===b?void 0:b.fixedValue);else if(!c&&u){var y;p="",f="".concat(null===(y=l.firstValue)||void 0===y?void 0:y.fixedValue),h=""}else if(c||u){var v,S,w,x;p="".concat(null===(v=l.conditionField)||void 0===v?void 0:v.aggregator,"(").concat(ag(null===(S=l.conditionField)||void 0===S?void 0:S.field),")"),f="".concat(null===(w=l.firstValue)||void 0===w?void 0:w.aggregator,"(").concat(ag(null===(x=l.firstValue)||void 0===x?void 0:x.field),")")}else{var k,C;p="".concat(ag(e.field)),f="".concat(null===(k=l.firstValue)||void 0===k?void 0:k.aggregator,"(total ").concat(ag(null===(C=l.firstValue)||void 0===C?void 0:C.field),")")}const E="".concat(h).concat(p).concat(d[0]).concat(f);let R="";if(d.length>1){var L,P,T;if(!u&&(null===(L=l.secondValue)||void 0===L||!L.aggregator||null===(P=l.secondValue)||void 0===P||!P.field)||u&&(null===(T=l.secondValue)||void 0===T||!T.fixedValue))return"";let e,t;var O;if(c&&u)e="".concat(null===(O=l.secondValue)||void 0===O?void 0:O.fixedValue),t=" and ".concat(p);else if(!c&&u){var I;e="".concat(null===(I=l.secondValue)||void 0===I?void 0:I.fixedValue),t=""}else if(c||u){var _,M;e="".concat(null===(_=l.secondValue)||void 0===_?void 0:_.aggregator,"(").concat(ag(null===(M=l.secondValue)||void 0===M?void 0:M.field),")"),t=" and ".concat(p)}else{var q,D;e="".concat(null===(q=l.secondValue)||void 0===q?void 0:q.aggregator,"(total ").concat(ag(null===(D=l.secondValue)||void 0===D?void 0:D.field),")"),t=" and ".concat(p)}R="".concat(t).concat(d[1]).concat(e)}return'"'.concat(E).concat(R,'"')})(e);break;case aw:o+=t.get("Object.FilterLabel.All");break;default:o+=null!==(r=e.options)&&void 0!==r&&r.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==o&&(o=o.replace(/^"|"$/g,""),e.exclude&&(o="".concat(n," ").concat(o))),{field:e.field,label:o}})).filter((e=>""!==e.label))},hw=(e,t)=>fw(e,t).map((e=>"".concat(e.field,": ").concat(e.label))).join("; ");var mw=e=>Uf((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function gw(e){let{styles:t,children:n}=e;return w.createElement(uc,{noWrap:!0,variant:"body2",style:u(u({},t),{},{fontStyle:"italic"})},n)}function bw(e){var t;let{layout:n,translator:r,filtersFootnoteString:o,footerStyle:i,isRtl:a}=e;const s=fw(null!==(t=null==n?void 0:n.filters)&&void 0!==t?t:[],r),l={color:null==i?void 0:i.color,fontFamily:null==i?void 0:i.fontFamily,fontSize:null==i?void 0:i.fontSize,fontWeight:null==i?void 0:i.fontWeight};return w.createElement(Mf,{title:o},w.createElement(up,{container:!0,wrap:"nowrap",sx:{backgroundColor:null==i?void 0:i.backgroundColor,padding:null==i?void 0:i.padding,borderTop:null==i?void 0:i.borderTop},"data-testid":"filters-footnote",justifyContent:a?"flex-end":"flex-start"},w.createElement(up,{item:!0,display:"flex"},w.createElement(mw,{style:{fontSize:"12px",color:i.color,margin:"auto"}}),w.createElement(gw,{styles:u(u({},l),{},{marginLeft:"2px"})},r.get("Object.FiltersApplied"),"  ")),w.createElement(up,{item:!0,display:"flex"},s.map((e=>w.createElement(up,{container:!0,wrap:"nowrap",key:"".concat(e.field,"-").concat(e.label)},w.createElement(gw,{styles:u(u({},l),{},{fontWeight:"bold"})},"".concat(e.field,":")),w.createElement(gw,{styles:l},"   ",e.label,"  ")))))))}const yw={itemStyle:"".concat("Footer","-itemStyle")},vw=bs(up)((()=>({["& .".concat(yw.itemStyle)]:{minWidth:0,width:"100%"}}))),Sw="njs-cell-footer";function ww(e){var t,n,r;let{layout:o,titleStyles:i={},translator:a,flags:s,isCardTheme:l,isRtl:c}=e;const u=i.footer,d=(null==o||null===(t=o.filters)||void 0===t?void 0:t.length)>0&&(null==o||null===(n=o.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.length)>0,p=hw(null!==(r=null==o?void 0:o.filters)&&void 0!==r?r:[],a),f=!(null!=o&&o.footnote)&&d&&p,h=null==s?void 0:s.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),m=l?"1px":"6px";return o&&o.showTitles&&(o.footnote||f)?w.createElement(vw,{container:!0},w.createElement(up,{item:!0,className:yw.itemStyle,"data-testid":Sw,sx:{paddingTop:e=>h?m:e.spacing(1)}},o.footnote&&w.createElement(Mf,{title:o.footnote},w.createElement(uc,{noWrap:!0,variant:"body2",className:Sw,style:u,align:c?"right":"left"},o.footnote)),f&&w.createElement(bw,{layout:o,translator:a,filtersFootnoteString:p,footerStyle:u,isRtl:c}))):null}class xw{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout((()=>{this.doNext()}),10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const kw="njs-viz";function Cw(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:i,halo:a,cellId:s}=e;const{component:l}=t,{theme:c,language:d,constraints:p,interactions:f,keyboardNavigation:h}=S.useContext(Bl),[m]=S.useState((()=>new xw)),[g,b]=S.useState(!1),[y,v]=S.useState(0),[x,k,C]=Wf(),[E,R]=S.useState(null),L=S.useCallback((e=>{e&&R(e)}),[]);return S.useEffect((()=>{if(E)return l.created({options:n}),l.mounted(E),b(!0),()=>{m.stop(),l.willUnmount()}}),[E,l]),S.useEffect((()=>{g&&E&&k&&(!l.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||m.schedule((()=>{const e=[];return p.passive||e.push("passive"),p.active||e.push("interact"),p.select||e.push("select"),p.edit||e.push("edit"),a.app&&a.app.session&&e.push("fetch"),Promise.resolve(l.render({layout:o,options:n,plugins:r,embed:a.public.nebbie,context:u({constraints:p,interactions:f,theme:a.public.theme,appLayout:i,keyboardNavigation:h},l.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(i||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===y&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),v(y+1))}))})))}),[k,n,r,E,C,o,i,c,d,p,f,g,h]),w.createElement("div",{ref:x,"data-render-count":y,style:{position:"relative",height:"100%"},className:kw},w.createElement("div",{ref:L,id:"".concat(s,"_content"),style:{position:"absolute",width:"100%",height:"100%"}}))}const Ew={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart"},Rw=e=>{let{layout:t,theme:n,app:r,themeName:o,disableThemeBorder:i,queryParams:a}=e;const s=S.useMemo((()=>{if(t&&n){const o=t.components?t.components.find((e=>"general"===e.key)):null,s=(e=t.visualization,Ew[e.toLowerCase()]?Ew[e.toLowerCase()]:e),l={main:Ky(o,"main",n,s),footer:Ky(o,"footer",n,s),subTitle:Ky(o,"subTitle",n,s)},c=Vy(o,n,s),u=Uy(o,r,a),d=function(e,t,n,r){const o=$y(null==e?void 0:e.borderColor,"","borderColor",t,n);let i=null==e?void 0:e.borderWidth;return!i&&!r&&(i=Fy("","borderWidth",t,n)),i&&o?"".concat(i," solid ").concat(o):void 0}(o,n,s,i),p=function(e,t,n){return(null==e?void 0:e.borderRadius)||Fy("","borderRadius",t,n)}(o,n,s);return{titleStyles:l,bgColor:c,bgImage:u,border:d,borderRadius:p,boxShadow:Gy(o,n,s)}}var e;return{}}),[t,n,r,o,i]);return s};class Lw extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const Pw=["action-button","sn-nav-menu","filterpane","sn-shape"],Tw=[...Pw,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],Ow=e=>-1===Pw.indexOf(e),Iw=e=>Ow(e)?"10px 10px 0":"10px 0 0",_w=e=>{let{layout:t,isError:n,isCardTheme:r,titleStyles:o,translator:i}=e;if(r){var a,s,l;const e=(null==t?void 0:t.showTitles)&&!(null==t||!t.title),r=(null==t?void 0:t.showTitles)&&!(null==t||!t.subtitle),c=(null==t||null===(a=t.filters)||void 0===a?void 0:a.length)>0&&(null==t||null===(s=t.qHyperCube)||void 0===s||null===(s=s.qMeasureInfo)||void 0===s?void 0:s.length)>0,u=null==t?void 0:t.visualization,d=hw(null!==(l=null==t?void 0:t.filters)&&void 0!==l?l:[],i),p=!(null!=t&&t.footnote)&&c&&d,f=(null==t?void 0:t.showTitles)&&(!(null==t||!t.footnote)||p);let h;return e&&(o.main.padding=Iw(u)),r&&(o.subTitle.padding=((e,t)=>{const n=Ow(e);return t?n?"0 10px":"0":Iw(e)})(u,e)),f&&(-1===Pw.indexOf(u)&&(o.footer.borderTop="1px solid #d9d9d9"),o.footer.padding="6px 10px"),(n||-1===Tw.indexOf(u))&&(h="".concat(e||r?"0":"10px"," 10px ").concat(f?"0":"5px")),h}},Mw=new Map;[["auto-chart","Object.AutoChart"],["dummy-chart","Dummy"],["barchart","Object.BarChart"],["combochart","Object.ComboChart"],["container","Object.Container"],["distributionplot","Object.DistributionPlot"],["boxplot","Object.BoxPlot"],["filterpane","Object.FilterPane"],["gauge","Object.Gauge"],["histogram","Object.Histogram"],["kpi","Object.Kpi"],["linechart","Object.LineChart"],["listbox","Object.Listbox"],["piechart","Object.PieChart"],["pivot-table","Object.PivotTable"],["map","Object.Map"],["scatterplot","Object.ScatterPlot"],["sn-table","Object.StraightTable"],["text-image","Object.TextImage"],["treemap","Object.Treemap"],["waterfallchart","Object.WaterfallChart"],["mekkochart","Object.MekkoChart"],["action-button","Object.ActionButton"],["sn-nav-menu","Object.NavMenu"],["bulletchart","Object.BulletChart"],["sn-nlg-chart","Object.NlgChart"],["sn-analysis-autochart","Common.AnalysisTypes"],["sn-tabbed-container","Object.TabContainer"],["qlik-sankey-chart-ext","Object.SankeyChart"],["qlik-radar-chart","Object.RadarChart"],["qlik-funnel-chart-ext","Object.FunnelChart"],["sn-grid-chart","Object.GridChart"],["sn-layout-container","Object.LayoutContainer"]].forEach((e=>{let[t,n]=e;Mw.set(t,n)}));const qw="njs-cell",Dw="njs-cell-body";const Nw=(e,t)=>{switch(t.type){case"LOADING":return u(u({},e),{},{loading:!0});case"LOADED":return u(u({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return u(u({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return u(u({},e),{},{longRunningQuery:!0});case"ERROR":return u(u({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Aw(e){let{delay:t=750}=e;const[n,r]=S.useState(!1);return S.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?w.createElement(ZS,null):null}const zw=e=>!e.qError||7005===e.qError.qErrorCode,jw=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,s=i&&!a&&t[e].qError,l=a&&t[e].qCalcCondMsg,c="".concat(s?r:a?l||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!s&&e>=t.length||a,error:s}})),Fw=e=>e&&(Array.isArray(e)?e:[e])||[],$w=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),s=jw(o,Fw(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=jw(i,Fw(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:s,reqMeasErrors:l}},Bw=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:s,hasLayoutErrors:l,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,s=!1;const l=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=Fw(f.qDimensionInfo||f.qItems).filter(zw),m=Fw(f.qMeasureInfo).filter(zw);if(o+=d,i+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){a=!0,s=7005===f.qError.qErrorCode;const t=s&&f.qCalcCondMsg?f.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=p||await r.getProperties();p=n;const o=$w(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),b=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],y=l?c:b;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:y}]};function Ww(){return new T}const Hw=S.forwardRef(((e,t)=>{var n,r;let{halo:o,model:i,initialSnOptions:a,initialSnPlugins:s,initialError:l,onMount:c,currentId:d,emitter:p,navigation:f,onError:h}=e;const{app:m,types:g}=o,{nebbie:b}=o.public,{theme:y,translator:v,language:x,keyboardNavigation:k,externalFocusManagement:C,disableCellPadding:E=!1,navigation:R,queryParams:L}=S.useContext(Bl),[P]=S.useState(p||Ww),T=ms(),[O,I,_]=Wf(),[M,q]=S.useReducer(Nw,{loading:!1,loaded:!1,longRunningQuery:!1,error:(D=l)?{title:D.message}:null,sn:null,visualization:null});var D;const[N,A]=S.useState(i),[z,{validating:j,canCancel:F,canRetry:$},B]=$f(N),[W]=Bf(m),[H,U,V]=Wf(),[G,K]=S.useState(a),[J,Z]=S.useState(s),X="njs-cell-".concat(d),[Q]=Zg(m,N,["#".concat(X),".njs-action-toolbar-popover"]),[Y,ee]=S.useState(!1),te=S.useRef({enter:null,leave:null}),{titleStyles:ne,bgColor:re,bgImage:oe,border:ie,borderRadius:ae,boxShadow:se}=Rw({layout:z,theme:o.public.theme,app:o.app,themeName:y,disableThemeBorder:null==G?void 0:G.disableThemeBorder,queryParams:L}),le=!("rtl"!==(null==G?void 0:G.direction)),ce=S.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});S.useEffect((()=>{Gg(ce.current),ce.current.blurCallback=e=>{ce.current.onBlurHandler?ce.current.onBlurHandler(e):(o.root.toggleFocusOfCells(),e&&V&&V.focus())},ce.current.refocusContent=()=>{M.sn.component&&"function"==typeof M.sn.component.focus&&M.sn.component.focus()}}),[]);S.useEffect((()=>{if(l)return void c();if(!W||!z)return;if(M.visualization===z.visualization&&M.sn)return void(async e=>{const[t,n]=await Bw(v,z,e.generator.qae.data,N);q(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:M.sn,layout:z,model:N})})(M.sn);const e=g.getSupportedVersion(z.visualization,z.version);return(async(e,t)=>{q({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,onMount:d,navigation:p}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),f=e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,navigation:p});f&&(t({type:"LOADED",sn:f,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message,errorObject:e}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:q,types:g,visualization:e,version:t,model:N,app:m,selections:Q,nebbie:b,focusHandler:ce.current,emitter:P,onMount:c,navigation:null!=f?f:R})})(z.visualization,e),()=>{}}),[g,M.sn,N,Q,z,W,x]),S.useEffect((()=>{if(!j)return;const e=setTimeout((()=>q({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[j]),S.useImperativeHandle(t,(()=>({getQae:()=>M.sn.generator.qae,getExtensionDefinition:()=>M.sn.generator.definition.ext,support(e,t,n){if(z&&M.loaded&&!M.error){var r;const o=t||(null===(r=M.sn.generator.definition.ext)||void 0===r?void 0:r.support);if(o)return function(e,t,n){const r=t[e];return"function"==typeof r?r.call(null,n):"boolean"==typeof r&&r}(e,o,n||z)}return!1},toggleFocus(e){"function"==typeof M.sn.component.focus&&(e?M.sn.component.focus():M.sn.component.blur())},setOnBlurHandler(e){ce.current.onBlurHandler=e},setSnOptions:K,setSnPlugins:Z,setModel:A,getImperativeHandle(){var e;return null!==(e=M.sn)&&void 0!==e&&e.component&&"function"==typeof M.sn.component.getImperativeHandle?M.sn.component.getImperativeHandle():{}},onContextMenu(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=M.sn)||void 0===e?void 0:e.component.onContextMenu(...n)},async takeSnapshot(){const{width:e,height:t}=I;let n=JSON.parse(JSON.stringify(z));return"function"==typeof M.sn.component.setSnapshotData&&(n=await M.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:v.language(),theme:T.name,appLayout:W,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof o.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return o.config.snapshot.capture(e)}})),[M.sn,U,I,z,T.name,W]);let ue=null;if(M.loading&&!M.longRunningQuery)ue=w.createElement(Aw,null);else if(M.error){if(h){h(M.error.errorObject?M.error.errorObject:new Lw(M.error.title))}ue=w.createElement(NS,M.error)}else M.loaded&&(ue=w.createElement(Cw,{key:z.visualization,sn:M.sn,halo:o,snOptions:G,snPlugins:J,layout:z,appLayout:W,cellId:d}));const de=!(null===(n=o.public.theme)||void 0===n||!n.getStyle("","","_cards")),pe=null===(r=o.public.galaxy)||void 0===r?void 0:r.flags;let fe,he;E?(fe=!1,he=void 0):null!=pe&&pe.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(fe=!1,he=_w({layout:z,isError:M.error,isCardTheme:de,titleStyles:ne,translator:v})):(fe=!0,he=void 0);const me=Mw.get(null==z?void 0:z.visualization),ge=v.get(me);return w.createElement(Ql,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:re||"unset",backgroundImage:oe&&oe.url?"url(".concat(oe.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:oe&&oe.size,backgroundPosition:oe&&oe.pos,border:ie,borderRadius:ae,boxShadow:se,boxSizing:"border-box"},elevation:0,square:!0,className:qw,ref:O,id:X,onMouseEnter:()=>{te.current.leave&&clearTimeout(te.current.leave),te.enter||(te.current.enter=setTimeout((()=>{ee(!0),te.current.enter=null}),250))},onMouseLeave:()=>{te.current.enter&&clearTimeout(te.current.enter),te.current.leave||(te.current.leave=setTimeout((()=>{ee(!1),te.current.leave=null}),750))}},w.createElement(up,{container:!0,direction:"column",gap:0,style:u(u({position:"relative",width:"100%",height:"100%"},fe?{padding:T.spacing(1)}:{}),M.longRunningQuery?{opacity:"0.3"}:{}),"aria-labelledby":"".concat(d,"_title ").concat(d,"_type ").concat(d,"_content")},z&&w.createElement("div",{id:"".concat(d,"_type"),style:XS,"aria-label":null!=ge?ge:z.visualization}),_&&z&&M.sn&&w.createElement(rw,{layout:z,sn:M.sn,anchorEl:_,hovering:Y,focusHandler:ce.current,titleStyles:ne,isRtl:le,id:d,translator:v}," "),w.createElement(up,{tabIndex:k&&!C?0:-1,onKeyDown:k&&!C?e=>{["Enter"," ","Spacebar"].includes(e.key)&&o.root.toggleFocusOfCells(d)}:null,item:!0,xs:!0,className:Dw,style:u({height:"100%"},he?{padding:he}:{}),ref:H},ue),_&&z&&M.sn&&w.createElement(ww,{layout:z,titleStyles:ne,translator:v,flags:pe,isCardTheme:de,isRtl:le})),M.longRunningQuery&&w.createElement(JS,{canCancel:F,canRetry:$,api:B}))}));function Uw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Vw(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return Uw(e)&&Uw(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...Vw("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Gw(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))}))}const Kw=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},Jw=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),Zw=1e3,Xw=1e3,Qw=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Yw=()=>[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]].map((e=>{let[t,n]=e;return t+(Math.random()*(n-t)|0).toString(32)})).join(""),ex=(e,t)=>e&&e.find((e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t}))||null,tx=e=>{var t,n;return u(u({},e),{},{qDef:u(u({},e.qDef),{},{cId:null!==(t=null===(n=e.qDef)||void 0===n?void 0:n.cId)&&void 0!==t?t:Yw()})})},nx=e=>{var t;return u(u({},tx(e)),{},{qOtherTotalSpec:null!==(t=e.qOtherTotalSpec)&&void 0!==t?t:{}})},rx=(e,t,n)=>{const r=t;e.forEach(((e,t)=>{const o=e.qTags,i={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(r,n.properties,o,i,n):(i.qSortByNumeric=1,i.qSortByAscii=1),r.qDef.qSortCriterias?r.qDef.qSortCriterias[t]=i:r.qDef.qSortCriterias=[i]}))},ox=new Error("Not supported in this object, need to implement in subclass."),ix=e=>{if(!e)return[];return[...e].map((e=>{var t;return null!==(t=e.qDef)&&void 0!==t&&t.autoSort&&void 0!==e.autoSort?u(u({},e),{},{qDef:u(u({},e.qDef),{},{autoSort:e.autoSort}),autoSort:void 0}):e}))},ax=(e,t)=>{if(e)return t&&vS.getValue(e,t)?vS.getValue(e,t).qHyperCube:e.qHyperCube};function sx(e,t){return e.filter(((e,n)=>t.includes(n)))}function lx(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.getAlternativeDimensions(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function cx(e,t,n){SS.indexAdded(e.hcProperties.qInterColumnSortOrder,null!=n?n:t.length-1)}function ux(e,t){return"function"==typeof e.dimensionDefinition.move?Promise.resolve(e.dimensionDefinition.move.call(e,t,e.properties,e)).then((()=>t)):Promise.resolve(t)}function dx(e,t){return e.getAlternativeDimensions().length+t.length>=Zw}function px(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<Zw}async function fx(e,t,n,r,o,i){await e.autoSortDimension(t),SS.indexAdded(e.hcProperties.qInterColumnSortOrder,n+i),r.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function hx(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.getAlternativeMeasures(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function mx(e,t){SS.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function gx(e,t){const n=e.getMeasures();return t||e.maxMeasures()<=n.length&&n.length<Xw}function bx(e,t,n,r){const o=e-n.length;let[i]=n.splice(n.length-1,1);return r.splice(0,0,i),[i]=r.splice(o+1,1),n.splice(t,0,i),Promise.resolve(i)}class yx{constructor(e){var t,n;const r=e||{};this.dimensionDefinition=r.dimensionDefinition||{max:0},this.measureDefinition=r.measureDefinition||{max:0},this.dimensionProperties=null!==(t=r.dimensionProperties)&&void 0!==t?t:{},this.measureProperties=null!==(n=r.measureProperties)&&void 0!==n?n:{},this.globalChangeListeners=r.globalChangeListeners,this.app=r.app}setProperties(e){var t;this.properties=e,this.isAnalysisType=null===(t=this.properties)||void 0===t||null===(t=t.metaData)||void 0===t?void 0:t.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}type(){throw new Error("Must override this method")}getDimensions(){return[]}getDimension(e){var t;const n=this.getDimensions(),r=this.getAlternativeDimensions();return null!==(t=ex(n,e.id))&&void 0!==t?t:ex(r,e.id)}getAlternativeDimensions(){throw new Error("Method not implemented.")}addDimension(){throw ox}addDimensions(){throw ox}removeDimension(){throw ox}removeDimensions(){throw ox}autoSortDimension(){throw ox}replaceDimension(){throw ox}getSorting(){throw ox}createLibraryDimension(e){let t=fe(!0,{},this.dimensionProperties||{},e.defaults||{});return t=nx(t),t.qLibraryId=e.id,t.qDef.autoSort=!0,t.qDef.qSortCriterias=Qw,delete t.qDef.qFieldDefs,delete t.qDef.qFieldLabels,t}createFieldDimension(e){let t=fe(!0,{},this.dimensionProperties||{},e.defaults||{});return t=nx(t),e.field||(t.qDef.qFieldDefs=[],t.qDef.qFieldLabels=[],t.qDef.qSortCriterias=[]),t.qDef.qFieldDefs=[e.field],t.qDef.qFieldLabels=e.label?[e.label]:[""],t.qDef.qSortCriterias=Qw,t.qDef.autoSort=!0,t}addFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t)}addFieldDimensions(e){const t=e.map((e=>this.createFieldDimension(e)));return this.addDimensions(t)}addLibraryDimension(e){const t=this.createLibraryDimension(e);return this.addDimension(t)}addLibraryDimensions(e){const t=e.map((e=>this.createLibraryDimension(e)));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map((e=>this.createLibraryDimension(e)));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map((e=>this.createFieldDimension(e)));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t,!0)}addAlternativeLibraryDimension(e){const t=this.createLibraryDimension(e);return this.addDimension(t,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){var n;const e=[t];return null===(n=this.dimensionDefinition.max)||void 0===n?void 0:n.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasures(){return[]}getAlternativeMeasures(){throw new Error("Method not implemented.")}addMeasure(){throw ox}addMeasures(){throw ox}removeMeasure(){throw ox}removeMeasures(){throw ox}autoSortMeasure(){throw ox}replaceMeasure(){throw ox}getMeasure(e){var t;const n=this.getMeasures(),r=this.getAlternativeMeasures();return null!==(t=ex(n,e.id))&&void 0!==t?t:ex(r,e.id)}createExpressionMeasure(e){var t,n;const r=fe(!0,{},this.measureProperties||{},e.defaults||{});return r.qDef=null!==(t=r.qDef)&&void 0!==t?t:{},r.qDef.qNumFormat=null!==(n=r.qDef.qNumFormat)&&void 0!==n?n:{},r.qDef.qDef=e.expression,r.qDef.qLabel=e.label,r.qDef.autoSort=!0,r}addExpressionMeasure(e){const t=this.createExpressionMeasure(e);return this.addMeasure(t)}addExpressionMeasures(e){const t=e.map((e=>this.createExpressionMeasure(e)));return this.addMeasures(t)}createLibraryMeasure(e){var t,n;const r=fe(!0,{},this.measureProperties||{},e.defaults||{});return r.qDef=null!==(t=r.qDef)&&void 0!==t?t:{},r.qDef.qNumFormat=null!==(n=r.qDef.qNumFormat)&&void 0!==n?n:{},(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(r.qDef),r.qLibraryId=e.id,r.qDef.autoSort=!0,delete r.qDef.qDef,delete r.qDef.qLabel,r}addLibraryMeasure(e){const t=this.createLibraryMeasure(e);return this.addMeasure(t)}addLibraryMeasures(e){const t=e.map((e=>this.createLibraryMeasure(e)));return this.addMeasures(t)}addAltLibraryMeasures(e){const t=e.map((e=>this.createLibraryMeasure(e)));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map((e=>this.createExpressionMeasure(e)));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e){const t=this.createExpressionMeasure(e);return this.addMeasure(t,!0)}addAlternativeLibraryMeasure(e){const t=this.createLibraryMeasure(e);return this.addMeasure(t,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("function"==typeof this.measureDefinition.max){const t=[this.getDimensions().length-e];return this.measureDefinition.max.apply(null,t)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach((t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})}))}}function vx(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then((async()=>(cx(e,r,n),await function(e,t){return t&&"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)).then((()=>t)):Promise.resolve(t)}(e,t),t)))}function Sx(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),e.autoSortMeasure(t).then((()=>(mx(e,r),function(e,t){return t&&"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):Promise.resolve()}(e,t).then((()=>t)),t)))):Promise.resolve()}async function wx(e,t){!function(e,t){SS.indexRemoved(e.hcProperties.qInterColumnSortOrder,t)}(e,t),await function(e,t){const[n]=e.getDimensions().splice(t,1);return n&&"function"==typeof e.dimensionDefinition.remove?Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}async function xx(e,t){!function(e,t){SS.indexRemoved(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t)}(e,t),await function(e,t){const[n]=e.getMeasures().splice(t,1);return n&&"function"==typeof e.measureDefinition.remove?Promise.resolve(e.measureDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}function kx(e,t){const[n]=e.getAlternativeDimensions().splice(t,1);if(n&&"function"==typeof e.dimensionDefinition.remove)return n.isAlternative=!0,Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)).then((()=>{delete n.isAlternative}))}function Cx(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),mx(e,r),function(e,t){return"function"==typeof e.measureDefinition.move?Promise.resolve(e.measureDefinition.move.call(null,t,e.properties,e,!0)).then((()=>t)):Promise.resolve(t)}(e,t)):Promise.resolve(t)}class Ex extends yx{constructor(e){super(e),this.path=e.path}setProperties(e){e&&(super.setProperties(e),this.hcProperties=this.path?vS.getValue(e,"".concat(this.path,".qHyperCubeDef")):e.qHyperCubeDef,this.hcProperties&&(!function(e){var t,n,r,o,i,a,s;const l=e;l.hcProperties.qDimensions=null!==(t=l.getDimensions())&&void 0!==t?t:[],l.hcProperties.qMeasures=null!==(n=l.getMeasures())&&void 0!==n?n:[],l.hcProperties.qInterColumnSortOrder=null!==(r=l.hcProperties.qInterColumnSortOrder)&&void 0!==r?r:[],l.hcProperties.qLayoutExclude=null!==(o=l.hcProperties.qLayoutExclude)&&void 0!==o?o:{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},l.hcProperties.qLayoutExclude.qHyperCubeDef=null!==(i=l.hcProperties.qLayoutExclude.qHyperCubeDef)&&void 0!==i?i:{qDimensions:[],qMeasures:[]},l.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=null!==(a=l.getAlternativeDimensions())&&void 0!==a?a:[],l.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=null!==(s=l.getAlternativeMeasures())&&void 0!==s?s:[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=ix(this.hcProperties.qDimensions),this.hcProperties.qMeasures=ix(this.hcProperties.qMeasures)))}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qDimensions)&&void 0!==e?e:[]}getDimensionLayout(e){return this.getDimensionLayouts().filter((t=>e===t.cId))[0]}getDimensionLayouts(){const e=ax(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=nx(e);return px(this,t)?lx(this,r,n):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?vx(e,t,o):Promise.resolve(t)}(this,r,n)}async addDimensions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getDimensions(),r=n.length,o=[];let a=0;var s,l=!1,c=!1;try{for(var u,d=i(e);l=!(u=await d.next()).done;l=!1){const e=u.value;{if(dx(this,n))return o;const i=nx(e);if(px(this,t)){const e=await lx(this,i);o.push(e)}else n.length<this.maxDimensions()&&(await fx(this,i,r,n,o,a),a++)}}}catch(e){c=!0,s=e}finally{try{l&&null!=d.return&&await d.return()}finally{if(c)throw s}}return o}removeDimension(e,t){t&&kx(this,e),wx(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),r=this.getDimensions();if(0===e.length)return[];let o=[];const a=[...e].sort(((e,t)=>t-e));if(t&&n.length>0){o=sx(n,e);var s,l=!1,c=!1;try{for(var u,d=i(a);l=!(u=await d.next()).done;l=!1){const e=u.value;await kx(this,e)}}catch(e){c=!0,s=e}finally{try{l&&null!=d.return&&await d.return()}finally{if(c)throw s}}}else if(r.length>0){o=sx(r,e);var p,f=!1,h=!1;try{for(var m,g=i(a);f=!(m=await g.next()).done;f=!1){const e=m.value;await wx(this,e)}}catch(e){h=!0,p=e}finally{try{f&&null!=g.return&&await g.return()}finally{if(h)throw p}}}return o}replaceDimension(e,t){return this.autoSortDimension(t).then((()=>function(e,t,n){if(!n)return;const r=e.getDimensions(),o=r[t],i=u(u({},n),{},{qDef:u(u({},n.qDef),{},{cId:Yw()})});return r[t]=i,i&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t)))}reinsertDimension(e,t,n){const r=tx(e);return px(this,t)?lx(this,r,n).then((()=>{ux(this,r)})):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?(r.splice(o,0,t),cx(e,r),ux(e,t)):Promise.resolve(t)}(this,r,n)}moveDimension(e,t){const n=this.getDimensions(),r=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(SS.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?Promise.resolve(bx(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;SS.move(r,o,i)}(e,t,n,r))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then((n=>{const r=(null==t?void 0:t.qLibraryId)&&(o=t.qLibraryId,(i=n)&&i.find((e=>e.qInfo.qId===o))||null);var o,i;return r&&rx(r.qData.info,t,e),t}))}(this,e):function(e,t){return e.app.getFieldList().then((n=>{var r;const o=(null==t||null===(r=t.qDef)||void 0===r?void 0:r.qFieldDefs)&&((e,t)=>{const n=(e=>{const t=[];return e.forEach((e=>{t.push((e=>{const t=e;return t.isDateField=(e=>{var t,n;return(null==e?void 0:e.qDerivedFieldData)&&((null==e||null===(t=e.qTags)||void 0===t?void 0:t.indexOf("$date"))>-1||(null==e||null===(n=e.qTags)||void 0===n?void 0:n.indexOf("$timestamp"))>-1)})(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach((n=>{n.qFieldDefs.forEach((r=>{var o;t.push({qName:r.qName,displayName:(o=r.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:r.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})}))})),t):t})(e);t.push(...n)})),t})(t.slice(0)),r=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find((t=>t.qName===e))||null)(r,n)||null})(t.qDef.qFieldDefs[0],n);return o&&rx([o],t,e),t}))}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)&&void 0!==e?e:[]}getMeasureLayouts(){const e=ax(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter((t=>e===t.cId))[0]}addMeasure(e,t,n){const r=tx(e);if(gx(this,t)){return hx(r,this.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures,n)}return Sx(this,r,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getMeasures(),r=[];let o=0;return e.forEach((async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=Xw}(this,n))return!1;const i=tx(e);return gx(this,t)?(hx(this,i),r.push(i)):n.length<this.maxMeasures()&&(await function(e,t,n,r,o){const i=e.getDimensions(),a=u({},t);return a.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},SS.indexAdded(e.hcProperties.qInterColumnSortOrder,i.length+n.length+o),n.push(a),r.push(a),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,a,e.properties,e),Promise.resolve(r)}(this,i,n,r,o),o++),!0})),r}removeMeasure(e,t){t&&function(e,t){e.getAlternativeMeasures().splice(t,1)}(this,e),xx(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();let o=[];if(0===e.length)return o;if(t&&r.length>0)o=sx(r,e),function(e,t){const n=e,r=function(e,t){return e.filter(((e,n)=>!t.includes(n)))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=r}(this,e);else if(n.length>0){o=sx(n,e);const t=[...e].sort(((e,t)=>t-e));var a,s=!1,l=!1;try{for(var c,u=i(t);s=!(c=await u.next()).done;s=!1){const e=c.value;await xx(this,e)}}catch(e){l=!0,a=e}finally{try{s&&null!=u.return&&await u.return()}finally{if(l)throw a}}}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then((()=>function(e,t,n){const r=e.getMeasures(),o=r[t],i=u(u({},n),{},{qDef:u(u({},n.qDef),{},{cId:Yw()})});return r[t]=i,i&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t)))}reinsertMeasure(e,t,n){const r=tx(e);return gx(this,t)?hx(this,r,n):Cx(this,r,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(SS.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?bx(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;SS.move(r,o,i)}(e,t,n,r))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){vS.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){var e;return(null===(e=this.hcProperties)||void 0===e?void 0:e.qDynamicScript)||[]}}const Rx=fe.bind(null,!0),Lx={},{isArray:Px}=Array;function Tx(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Ox(e){return void 0===e}function Ix(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function _x(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=Ox(e[r||t])?i:e[t],e=e[r||t]})),e}function Mx(e,t){let n=!0;if(Tx(e)&&Tx(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Mx(e[r],t[r])||(n=!1)})),n);if(Px(e)&&Px(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Mx(e[n],t[n]))return!1;return!0}return e===t}Lx.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Rx({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Mx(i,a)||Ix(t,o)||(Ox(a)?r.push({op:"add",path:s,value:i}):Tx(i)&&Tx(a)?r=r.concat(Lx.generate(a,i,s)):Px(i)&&Px(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Ox(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Mx(t,o))return r;if(!Ox(t[0])&&Ox(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(Lx.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{Ox(t[o])&&!Ix(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},Lx.apply=function(e,t){t.forEach((t=>{let n=_x(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Px(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Px(o)&&Px(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Tx(o)&&Tx(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Ix(a,e)&&delete a[e]})),Rx(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=_x(e,t.from);Px(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Px(n)?n.splice(+r,1):delete n[r]);var a}))},Lx.clone=function(e){return Rx({},e)},Lx.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Lx.updateObject=function(e,t){Object.keys(e).length?Lx.apply(e,Lx.generate(e,t)):Rx(e,t)};const qx=e=>t=>{const n=(r=u(u({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(T.prototype).forEach((e=>{r[e]=T.prototype[e]})),T.init(r),r);var r;return n};let Dx,Nx;function Ax(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function zx(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function jx(e){$x(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function Fx(e){if(e.__hooks.obsolete)return Promise.resolve();Nx=-1,Dx=e,Dx.__hooks.initiated&&Dx.__hooks.list.length;try{Dx.fn.call(null)}catch(e){console.error(e)}Dx.__hooks.initiated=!0;const t=Dx.__hooks;return Ux(Dx),Nx=void 0,Dx=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){$x(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){$x(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)}))}(t),t.chain.promise}function $x(e,t){try{e.forEach((e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())}))}catch(e){console.error(e)}e.length=0}function Bx(e,t){try{return Promise.all(e.__hooks.snaps.map((e=>Promise.resolve(e.fn(t))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Wx(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Hx(e){return e.__hooks.imperativeHandle}function Ux(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Vx(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Ux(e))}function Gx(e){if(void 0===Dx)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Dx.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Kx(e){Gx(++Nx);return Dx.context[e]}function Jx(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Zx(e){return{__hooked:!0,fn:e,initiate:zx,run:Fx,teardown:jx,runSnaps:Bx,runMenu:Wx,focus:nk,blur:rk,observeActions:Vx,getImperativeHandle:Hx,updateRectOnNextRun:Jx}}function Xx(e){const t=Gx(++Nx);if(!t.value){t.component=Dx;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout((()=>{r.__hooks.micro=null,Fx(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Qx(e,t){const n=Gx(++Nx);Ax(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Dx.__hooks.pendingEffects.indexOf(n)&&Dx.__hooks.pendingEffects.push(n))}function Yx(e,t){const n=Gx(++Nx);Ax(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Dx.__hooks.pendingLayoutEffects.push(n))}function ek(e,t){const n=Gx(++Nx);return Ax(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function tk(){return Kx("element")}function nk(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function rk(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const ok={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},ik=Object.keys(ok),ak=e=>(Object.keys(T.prototype).forEach((t=>{e[t]=T.prototype[t]})),T.init(e),e);function sk(e,t){const n=u({},ok);ak(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==ik.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],i=qx(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function lk(e,t,n){"function"==typeof e.component&&(e.component=Zx(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},a=["appLayout","constraints","interactions"],s={},l={};t.model&&t.model.session||(s.select=!0,s.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:s,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}a.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(u(u({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(u(u({},r[e]),l))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?t.focus():e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return a.forEach((e=>{i[e]=JSON.stringify(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):sk(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=Lx.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Lx.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const s=Lx.generate(i,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,s,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const ck=()=>{};function uk(e,t){return void 0===e?()=>t:()=>e}function dk(e){const t=e||{};return{min:"function"==typeof t.min?t.min:uk(t.min,0),max:"function"==typeof t.max?t.max:uk(t.max,1e3),added:t.added||t.add||ck,description:t.description||ck,moved:t.moved||t.move||ck,removed:t.removed||t.remove||ck,replaced:t.replaced||t.replace||ck,isDefined:()=>!!e}}const pk=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function fk(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>pk(e,n,{}),dimensions:dk(e.dimensions),measures:dk(e.measures)}}function hk(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(fk)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function mk(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:hk(n.qae),component:n.component||{},create:e=>lk(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new Ex(e)}:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const gk=(e,t,n)=>{if(!e)return Promise.resolve();let r=Lx.generate(t,n);return fe(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},bk=()=>{};function yk(){var e;let t,n,r,{model:o,halo:i,navigation:a,initialError:s,onDestroy:l=(async()=>{}),onRender:c=(()=>{}),onError:d=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=bk,f=null,h=null,m=null,g=null,b=!1;const y=new Promise((e=>{m=e})),v=new Promise((e=>{g=e})),S=e=>()=>{null==e||e(),g(),c(),b=!0};let x={},k=[];const C=new T;let E={};null!==(e=i.context)&&void 0!==e&&e.enablePrivateExperimental&&(E={support(e){var t;return!(!h||!b)&&f.current.support(e,null===(t=n)||void 0===t?void 0:t.support,r)},getPropertyPanelDefinition:()=>!(!h||!b)&&(n?n.definition:f.current.getExtensionDefinition().definition),toggleFocus(e){f.current.toggleFocus(e)},setOnBlurHandler(e){f.current.setOnBlurHandler(e)},onContextMenu(){return f.current.onContextMenu(...arguments)}});const R=u(u({id:o.id,model:o,async destroy(){await l(),p(),p=bk},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const n=await o.getLayout();if(Kw(n)&&!t){const t=await IS({halo:i,model:o,cellRef:f,newType:e});return await Jw(o,t.qProperty),t}const r=await o.getEffectiveProperties(),a=await IS({halo:i,model:o,cellRef:f,newType:e,properties:r}),s=a.qProperty;return await gk(o,r,s),a}return await IS({halo:i,model:o,cellRef:f,newType:e})},async toggleDataView(e){let a;if(t||!1===e)t&&!0!==e&&(a=o,await i.app.destroySessionObject(t),t=void 0,n=void 0,r=void 0);else{let e=i.context.dataViewType;const s=await o.getEffectiveProperties();if(!i.types.getSupportedVersion(e)){if(!i.types.getSupportedVersion("table"))throw new Error("No data view type registered");e="table"}const l=await IS({halo:i,model:o,cellRef:f,newType:e,properties:s,viewDataMode:!0});a=await i.app.createSessionObject(l.qProperty),t=a.id,n=f.current.getExtensionDefinition(),r=await o.getLayout()}a&&f.current.setModel(a)},get viewDataToggled(){return void 0!==t},addListener(e,t){C.addListener(e,t)},removeListener(e,t){C.removeListener(e,t)},getImperativeHandle:async()=>(await v,f.current.getImperativeHandle()),takeSnapshot:async()=>(await v,f.current.takeSnapshot())},E),{},{__DO_NOT_USE__:{mount(e){if(h)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return h=e,[p,f]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,emitter:s,initialError:l,navigation:c,onError:u}=e;const{root:d}=t,p=w.createRef(),f=yv(),h=js.createPortal(w.createElement(Hw,{ref:p,halo:t,model:r,currentId:f,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a,emitter:s,navigation:c,onError:u}),n,f),m=()=>{d.remove(h),r.removeListener("closed",m)};return r.on("closed",m),d.addCell(f,p),(async()=>{try{await d.add(h,m)}catch(e){m(),a(),u(e)}})(),[m,p]}({halo:i,element:e,model:o,initialSnOptions:x,initialSnPlugins:k,initialError:s,onMount:m,emitter:C,navigation:a,onError:d}),y},async applyProperties(e){const t=Vw("/",e,await o.getEffectiveProperties());if(t.length)return o.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;h?(async()=>{await y,f.current.setSnOptions(u(u(u({},x),e),{onInitialRender:S(t)}))})():x=u(u(u({},x),e),{onInitialRender:S(t)})})(e)},plugins(e){(async e=>{Gw(e),h?(async()=>{await y,f.current.setSnPlugins(e)})():k=e})(e)},exportImage:()=>f.current.exportImage(),takeSnapshot:()=>f.current.takeSnapshot(),getModel:()=>o,convert:{async toType(e){const t=await o.getEffectiveProperties(),n=await IS({halo:i,model:o,cellRef:f,newType:e,properties:t}),r=n.qProperty;return await gk(o,t,r),n},async revert(){await o.clearSoftPatches()}}}});return R}async function vk(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=yk({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}async function Sk(e,t,n,r){let{type:o,version:i,fields:a,properties:s,extendProperties:l}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:i});c=await e.initialProperties(s,l);const n=await e.supernova();a&&await yS({sn:n,properties:c,fields:a,children:u},t),s&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const wk="njs-sheet";function xk(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const kk=S.forwardRef(((e,t)=>{var n;let{model:r,halo:o,initialSnOptions:i,initialSnPlugins:a,initialError:s,onMount:l,unmount:c,navigation:d,onError:p}=e;const{root:f}=o,[h,m]=S.useState(r),[g]=$f(h),{theme:b,modelStore:y}=S.useContext(Bl),[v,x]=S.useState([]),[k,C]=S.useState(void 0),[E,R]=S.useState(void 0),[L,P]=S.useState(""),T=S.useRef({cellCount:0,cellsRendered:0,initialRender:!1});null==d||null===(n=d.setCurrentSheetId)||void 0===n||n.call(d,h.id),S.useEffect((()=>{if(g){const e=JSON.stringify(g.cells);if(e===L)return;P(e);const t=async()=>{v.forEach((e=>{f.removeCell(e.currentId)}));const e=g.cells;T.cellCount=e.length,T.cellsRendered=0;const t=()=>{T.cellsRendered++,T.cellsRendered!==T.cellCount||T.initialRender||(T.initialRender=!0,i.onInitialRender())},{columns:n,rows:r}=g,a=await Promise.all(e.map((async e=>{let a;const s=new Promise((e=>{a=e})),l=v.find((t=>t.id===e.name));if(l)return l.bounds=xk(e,n,r),delete l.mountedPromise,l;const c=await async function(e,t,n){let{id:r,options:o,plugins:i,element:a}=e;const{modelStore:s,rpcRequestModelStore:l}=n,c="".concat(r);let u=l.get(c);u||(u=t.app.getObject(r),l.set(c,u));const d=await u;return s.set(c,d),vk(d,{options:o,plugins:i,element:a},t)}({id:e.name},o,y);return{model:c.model,id:e.name,bounds:xk(e,n,r),cellRef:w.createRef(),currentId:yv(),mounted:a,mountedPromise:s,options:u(u({},i),{onInitialRender:t})}})));a.forEach((e=>f.addCell(e.currentId,e.cellRef))),x(a)};t()}}),[g]),S.useEffect((()=>{const e=()=>{h.removeListener("closed",e),c()};return h.on("closed",e),()=>h.removeListener("closed",e)}),[h]);const O=S.useMemo((()=>v?v.map((e=>function(e,t,n,r,o,i,a,s){var l;const{x:c,y:u,width:d,height:p}=e.bounds,f={left:"".concat(c,"%"),top:"".concat(u,"%"),width:"".concat(d,"%"),height:"".concat(p,"%"),position:"absolute"},h=null===(l=t.public.galaxy)||void 0===l?void 0:l.flags;return null!=h&&h.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(f.boxSizing="border-box",f.padding="4px"),w.createElement("div",{style:f,key:e.model.id},w.createElement(Hw,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,navigation:a,onError:s}))}(e,o,e.options,a,s,e.mounted,d,p))):[]),[v]);S.useEffect((()=>{const e=null!=g&&g.components?g.components.find((e=>"general"===e.key)):null;C(Vy(e,o.public.theme)),R(Uy(e,o.app))}),[g,o.public.theme,o.app,b]),S.useImperativeHandle(t,(()=>({setModel:m})),[]);const I=!g||void 0===g.height||Number.isNaN(g.height)?"100%":"".concat(Number(g.height),"%"),_=v.map((e=>e.mountedPromise)),M=_.filter((e=>!!e));return M.length&&Promise.all(_).then((()=>{l()})),w.createElement("div",{className:wk,style:{width:"100%",height:I,position:"relative",backgroundColor:k,backgroundImage:E&&E.url?"url(".concat(E.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:E&&E.size,backgroundPosition:E&&E.pos}},O)}));const Ck=()=>{};function Ek(){let{model:e,halo:t,navigation:n,initialError:r,onDestroy:o=(async()=>{}),onRender:i=(()=>{}),onError:a=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=Ck,l=null,c=null,d=null,p=null;const f=new Promise((e=>{d=e})),h=new Promise((e=>{p=e})),m=e=>()=>{null==e||e(),p(),i()};let g={},b=[];const y={id:e.id,model:e,navigation:n,getImperativeHandle:async()=>(await h,l.current.getImperativeHandle()),async destroy(){await o(),s(),s=Ck},__DO_NOT_USE__:{mount(o){if(c)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return c=o,[s,l]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:s,navigation:l,onError:c}=e;const{root:u}=t,d=w.createRef();let p;const f=()=>{u.remove(p)};return p=js.createPortal(w.createElement(kk,{ref:d,halo:t,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:s,onMount:a,unmount:f,navigation:l,onError:c}),n,r.id),l.setSheetRef(d),u.add(p,f),[f,d]}({halo:t,element:o,model:e,initialSnOptions:g,initialSnPlugins:b,initialError:r,onMount:d,navigation:n,onError:a}),f},async applyProperties(t){const n=Vw("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;c?(async()=>{await f,l.current.setSnOptions(u(u(u({},g),e),{onInitialRender:m(t)}))})():g=u(u(u({},g),e),{onInitialRender:m(t)})})(e)},plugins(e){(async e=>{Gw(e),c?(async()=>{await f,l.current.setSnPlugins(e)})():b=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return y}async function Rk(e,t,n){let{id:r,options:o,plugins:i,element:a,onRender:s,onError:l,navigation:c}=e;const{modelStore:u,rpcRequestModelStore:d}=n,p="".concat(r);let f=d.get(p);f||(f=t.app.getObject(r),d.set(p,f));const h=await f;u.set(p,h);const m=c||("sheet"===h.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},s={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:l}=t,c="".concat(n);let u,d=l.get(c);d||(d=e.app.getObject(n),l.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,s.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return Gg(s),s}(t,n,h):void 0);return"sheet"===h.genericType?async function(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=Ek({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}(h,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m):vk(h,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m)}function Lk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var Pk,Tk,Ok,Ik;function _k(){if(Ik)return Ok;Ik=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Ok=n=>n?"object"!=typeof n?e:n:t}var Mk,qk,Dk,Nk,Ak,zk,jk,Fk,$k,Bk,Wk,Hk,Uk,Vk,Gk,Kk,Jk,Zk,Xk,Qk,Yk,eC,tC,nC,rC,oC,iC,aC,sC,lC,cC,uC={exports:{}};function dC(){if(qk)return Mk;qk=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return Mk={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function pC(){if(Nk)return Dk;Nk=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};return Dk=e}function fC(){return Ak||(Ak=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=dC(),i=pC(),a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[p,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=d++;i(e,o,t),u[e]=o,l[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(p,"*")),h("MAINVERSION","(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(l[u.NONNUMERICIDENTIFIER],"|").concat(l[u.NUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[u.NONNUMERICIDENTIFIER],"|").concat(l[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASE","(?:-(".concat(l[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(l[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(p,"+")),h("BUILD","(?:\\+(".concat(l[u.BUILDIDENTIFIER],"(?:\\.").concat(l[u.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(l[u.MAINVERSION]).concat(l[u.PRERELEASE],"?").concat(l[u.BUILD],"?")),h("FULL","^".concat(l[u.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(l[u.MAINVERSIONLOOSE]).concat(l[u.PRERELEASELOOSE],"?").concat(l[u.BUILD],"?")),h("LOOSE","^".concat(l[u.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(l[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(l[u.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:".concat(l[u.PRERELEASE],")?").concat(l[u.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[u.PRERELEASELOOSE],")?").concat(l[u.BUILD],"?")+")?)?"),h("XRANGE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAINLOOSE],"$")),h("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),h("COERCE","".concat(l[u.COERCEPLAIN],"(?:$|[^\\d])")),h("COERCEFULL",l[u.COERCEPLAIN]+"(?:".concat(l[u.PRERELEASE],")?")+"(?:".concat(l[u.BUILD],")?")+"(?:$|[^\\d])"),h("COERCERTL",l[u.COERCE],!0),h("COERCERTLFULL",l[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(l[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",h("TILDE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(l[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",h("CARET","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(l[u.GTLT],"\\s*(").concat(l[u.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],"|").concat(l[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(l[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(uC,uC.exports)),uC.exports}function hC(){if($k)return Fk;$k=1;const e=pC(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=dC(),{safeRe:r,t:o}=fC(),i=_k(),{compareIdentifiers:a}=function(){if(jk)return zk;jk=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};return zk={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},zk}();class s{constructor(a,l){if(l=i(l),a instanceof s){if(a.loose===!!l.loose&&a.includePrerelease===!!l.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof a,'".'));if(a.length>t)throw new TypeError("version is longer than ".concat(t," characters"));e("SemVer",a,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const c=a.trim().match(l.loose?r[o.LOOSE]:r[o.FULL]);if(!c)throw new TypeError("Invalid Version: ".concat(a));if(this.raw=a,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof s)){if("string"==typeof t&&t===this.version)return 0;t=new s(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof s||(e=new s(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch)}comparePre(t){if(t instanceof s||(t=new s(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return a(r,o)}while(++n)}compareBuild(t){t instanceof s||(t=new s(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return a(r,o)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e="-".concat(t).match(this.options.loose?r[o.PRERELEASELOOSE]:r[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===a(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}return Fk=s}function mC(){if(Wk)return Bk;Wk=1;const e=hC();return Bk=(t,n,r)=>new e(t,r).compare(new e(n,r)),Bk}function gC(){if(rC)return nC;rC=1;const e=function(){if(Uk)return Hk;Uk=1;const e=mC();return Hk=(t,n,r)=>0===e(t,n,r),Hk}(),t=function(){if(Gk)return Vk;Gk=1;const e=mC();return Vk=(t,n,r)=>0!==e(t,n,r),Vk}(),n=function(){if(Jk)return Kk;Jk=1;const e=mC();return Kk=(t,n,r)=>e(t,n,r)>0,Kk}(),r=function(){if(Xk)return Zk;Xk=1;const e=mC();return Zk=(t,n,r)=>e(t,n,r)>=0,Zk}(),o=function(){if(Yk)return Qk;Yk=1;const e=mC();return Qk=(t,n,r)=>e(t,n,r)<0,Qk}(),i=function(){if(tC)return eC;tC=1;const e=mC();return eC=(t,n,r)=>e(t,n,r)<=0,eC}();return nC=(a,s,l,c)=>{switch(s){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a===l;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a!==l;case"":case"=":case"==":return e(a,l,c);case"!=":return t(a,l,c);case">":return n(a,l,c);case">=":return r(a,l,c);case"<":return o(a,l,c);case"<=":return i(a,l,c);default:throw new TypeError("Invalid operator: ".concat(s))}},nC}function bC(){if(sC)return aC;sC=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(m,L(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),i("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),i("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),i("caret trim",e);let g=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));a&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),i("range list",g);const y=new Map,v=g.map((e=>new o(e,this.options)));for(const e of v){if(h(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const S=[...y.values()];return n.set(t,S),S}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}aC=t;const n=new(Tk?Pk:(Tk=1,Pk=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=_k(),o=function(){if(iC)return oC;iC=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new s(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}oC=t;const n=_k(),{safeRe:r,t:o}=fC(),i=gC(),a=pC(),s=hC(),l=bC();return oC}(),i=pC(),a=hC(),{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=fC(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=dC(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},b=(e,t)=>(i("comp",e,t),e=w(e,t),i("caret",e),e=v(e,t),i("tildes",e),e=k(e,t),i("xrange",e),e=E(e,t),i("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),y(n)?s="":y(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):y(o)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(i("replaceTilde pr",a),s=">=".concat(n,".").concat(r,".").concat(o,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),i("tilde return",s),s}))},w=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),y(n)?l="":y(o)?l=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):y(a)?l="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(i("replaceCaret pr",s),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(i("no pr"),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a," <").concat(+n+1,".0.0-0")),i("caret return",l),l}))},k=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=y(o),u=c||y(a),d=u||y(s),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),s=0,">"===r?(r=">=",u?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n="".concat(r+o,".").concat(a,".").concat(s).concat(l)):u?n=">=".concat(o,".0.0").concat(l," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(a,".0").concat(l," <").concat(o,".").concat(+a+1,".0-0")),i("xRange return",n),n}))},E=(e,t)=>(i("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),R=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),L=e=>(t,n,r,o,i,a,s,l,c,u,d,p)=>(n=y(r)?"":y(o)?">=".concat(r,".0.0").concat(e?"-0":""):y(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=y(c)?"":y(u)?"<".concat(+c+1,".0.0-0"):y(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()),P=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return aC}var yC=function(){if(cC)return lC;cC=1;const e=bC();return lC=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},lC}(),vC=n(yC);const SC={};function wC(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||vC(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!SC[i]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const a=(r||o.load)({name:e,version:t}),s=Promise.resolve(a);SC[i]=s.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Lw("Failed to load visualization: '".concat(n,"'"),e)}))}return SC[i]}(a.name,a.version,t,o.load).then((e=>(n=n||mk(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=u({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(fe(!0,n,e),n):u(u({},n),e)}))}};return a}function xC(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=wC({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function kC(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=xC(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(SC).forEach((t=>{t.split("__")[0]===e&&(SC[t]=void 0)}))}(e)}}}const CC={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))}},EC={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};CC.context=EC;const RC=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(u({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},LC=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var PC=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=L(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=u(u({},t.context),{},{translator:n.translator,hostConfig:t.hostConfig});const[a,s]=Gl({app:e,context:i}),l=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=$e();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),Be(We,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:a});i.themeApi=l.externalAPI;const c={galaxy:{translator:n.translator,theme:l.externalAPI,flags:Lk(t.flags),deviceType:He(t.context.deviceType),hostConfig:t.hostConfig,anything:t.anything},theme:l.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:a,config:t,public:c,context:i,types:null},p=kC({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=new Promise((e=>{(async()=>{if(await l.setTheme(t.context.theme),t.hostConfig&&m&&m.getWebResourceAuthParams){const{queryParams:e}=await m.getWebResourceAuthParams({hostConfig:t.hostConfig});i.queryParams=e,a.context(i)}})().then(e)})),h=null,g=null;const b={render:async e=>(await f,e.id?Rk(e,d,s):async function(e,t,n){let{type:r,version:o,fields:i,properties:a,options:s,plugins:l,element:c,extendProperties:u,navigation:d,onRender:p,onError:f}=e,h={};const m=[],{modelStore:g,subscribe:b}=n;let y;try{const e=t.types.get({name:r,version:o});h=await e.initialProperties(a,u);const n=await e.supernova();i&&await yS({sn:n,properties:h,fields:i,children:m},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},h)}catch(e){y=e,h={qInfo:{qType:r},visualization:r}}const v=await t.app.createSessionObject(h);m.length>0&&await v.setFullPropertyTree({qProperty:h,qChildren:m}),g.set(v.id,v);const S=b(v);return vk(v,{options:s,plugins:l,element:c,onRender:p,onError:f},t,d,y,(async()=>{await t.app.destroySessionObject(v.id),S()}))}(e,d,s)),destroy:async()=>{a.destroy()},create:async e=>Sk(e,d,!1,s),generateProperties:async e=>Sk(e,d,!0,s),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=u(u(u({},i),t),{},{translator:n.translator}),t.theme&&(await f,f=l.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),a.context(i))},selections:async()=>(h||(h={mount(t){g||(g=function(e){let{element:t,app:n}=e;return js.createPortal(w.createElement(vv,{app:n}),t,yv())}({element:t,app:e}),a.add(g))},unmount(){g&&(a.remove(g),g=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(i){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const l=()=>o.emit("selectionActivated"),c=()=>o.emit("selectionDeactivated");return new Promise((r=>{[this._instance,this._ref]=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:i="$",options:a={},renderedCallback:s}=e;const l=w.createRef();return[js.createPortal(w.createElement(oS,{ref:l,app:n,element:t,fieldIdentifier:r,qId:o,stateName:i,initialOptions:a,renderedCallback:s}),t,yv()),l]}({element:i,app:e,fieldIdentifier:t,qId:n,options:rS(u({onSelectionActivated:l,onSelectionDeactivated:c},s)),stateName:s.stateName||"$",renderedCallback:r}),a.add(this._instance)}))},unmount(){this._instance&&(a.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){var t;const n=()=>o.emit("selectionActivated"),r=()=>o.emit("selectionDeactivated");if(null!==(t=o._ref)&&void 0!==t&&t.current){const t=rS(u({onSelectionActivated:n,onSelectionDeactivated:r},e));o._ref.current.setOptions(t)}}}};return Gg(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){b._popoverInstance&&(a.remove(b._popoverInstance),b._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=u({},iS);return fe(!0,t,e),t}(u({onPopoverClose:()=>b.emit("fieldPopoverClose")},r));b._popoverInstance=w.createElement(aS,{element:t,key:yv(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),a.add(b._popoverInstance)}}};return d.public.nebbie=b,d.types=p,Gg(b),b}return r.createConfiguration=n=>e(((e,t)=>({context:RC(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:u({},t.snapshot||e.snapshot),types:LC(e.types,t.types),themes:LC(e.themes,t.themes),flags:RC(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:RC(e.anything,t.anything)}))(t,n)),r.config=t,r}(CC);function TC(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const OC=globalThis.crypto||{getRandomValues:()=>123456};function IC(e){return t=>{const n=fe({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^OC.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=fe({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const _C=function(e){let{args:t=[],defaultValue:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?e(...t):void 0!==e?e:n},MC=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const s=_C(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},qC=["id","session"],DC=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function NC(e){return!DC.includes(e)}function AC(e){const t=_C(e.getLayout);return t.qInfo&&t.qInfo.qId}function zC(e,t){return e.reduce(((e,n)=>u(u({},e),function(e,t){let n=AC(e);const{delay:r}=t,{id:o,session:i}=e,a=d(e,qC);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:u(u({id:n,session:_C(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return u(u({},e),{},{[n]:MC(o,{async:NC(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function jC(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!AC(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function FC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(jC);const n=zC(e,t);return async e=>Promise.resolve(n[e])}function $C(){return()=>Promise.resolve({id:"app-layout"})}const BC={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new TC,r=new IC(n),o=new FC(e,t),i=new $C,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i,getListObject:async e=>{var t;return o(null===(t=e.qInfo)||void 0===t?void 0:t.qId)}};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},WC={generator:mk,hook:Zx,theme:$e,locale:k};function HC(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.self}function UC(){return!("undefined"==typeof process||!process.version||!process.versions.node)}function VC(e){if(Array.isArray(e))return e.map(VC);if("object"==typeof(t=e)&&null!==t&&t.constructor===Object){const t={};for(const n of Object.keys(e).sort())t[n]=VC(e[n]);return t}var t;return e}function GC(e){if(Array.isArray(e))return e.map((e=>"object"==typeof e&&null!==e?GC(e):e)).filter((e=>"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e&&""!==e));if("object"==typeof e&&null!==e){const t={};for(const n of Object.keys(e)){const r=e[n];switch(typeof r){case"undefined":break;case"boolean":r&&(t[n]=r);break;case"string":{const e=r.trim();""!==e&&(t[n]=e);break}case"object":{if(null===r)break;const e=GC(r);e&&(Array.isArray(e)&&e.length>0||"object"==typeof e&&Object.keys(e).length>0)&&(t[n]=e);break}case"function":case"number":t[n]=r;break;default:console.warn(`Unexpected type for key "${n}": ${typeof r}`),t[n]=r}}if(0===Object.keys(t).length)return;return t}return e}let KC;KC=function(){const e=[...KC?.getInterceptors()||[]];return{addInterceptor:t=>(e.push(t),t),removeInterceptor:t=>{const n=e.indexOf(t);let r;return-1!==n&&(r=e.splice(n,1)[0]),r||null},getInterceptors:()=>e}}();const JC=["authType","autoRedirect","authRedirectUserConfirmation","embedRuntimeUrl","host","onAuthFailed"],ZC=["apikey","oauth2","cookie","windowscookie","reference","anonymous"];let XC=e=>crypto.getRandomValues(new Uint8Array(e)),QC=(e,t=21)=>((e,t,n)=>{let r=(2<<Math.log2(e.length-1))-1,o=-~(1.6*r*t/e.length);return(i=t)=>{let a="";for(;;){let t=n(o),s=0|o;for(;s--;)if(a+=e[t[s]&r]||"",a.length>=i)return a}}})(e,0|t,XC),YC=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};const eE=async(e={})=>{const t=sL(e.hostConfig),n="anonymous"===t?.authType||!!t.accessCode;if("undefined"==typeof window)return oE({isNodeEnv:!0,isAnonymous:n});if("noauth"===t?.authType)return oE({isUnknown:!0,isAnonymous:!1});const{data:r,status:o}=await nE(e);if(404===o)return oE({isUnknown:!0,isAnonymous:n});if(!r||o<=399&&o>=300)return oE({isQSE:!0,isWindows:!0,isAnonymous:n});const i=(r.composition?.deploymentType||"").toLowerCase(),a="controlcenter"===i;return"qliksenseserver"===i?oE({isQSE:!0,isWindows:!0,isAnonymous:n,meta:rE(r)}):"qliksensedesktop"===i?oE({isQSD:!0,isWindows:!0,isAnonymous:n,meta:rE(r)}):"qliksensemobile"===i?oE({isQSE:!0,isWindows:!0,isAnonymous:n,meta:rE(r)}):"cloud-console"===i?oE({isCloud:!0,isCloudConsole:!0,isAnonymous:n,meta:rE(r)}):"fedramp"===r.composition?.provider?oE({isCloud:!0,isQCG:!0,isControlCenter:a,isAnonymous:n,meta:rE(r)}):oE({isCloud:!0,isQCS:!0,isControlCenter:a,isAnonymous:n,meta:rE(r)})},tE={};const nE=async({hostConfig:e,noCache:t}={})=>{const n=GR(e),r=`${n}/resources/autogenerated/product-info.json`;try{if(!(r in tE)){const e={};globalThis.QlikMain&&globalThis.QlikMain.resourceNeedsCredentials(r)&&(e.credentials="include");const t=fetch(r,e).then((async e=>e.ok?{data:await e.json(),status:e.status}:{data:void 0,status:e.status}));tE[r]=t}const e=await tE[r];return(e.status>=400||!e.data)&&delete tE[r],e}catch{return delete tE[r],{data:void 0,status:500}}finally{t&&delete tE[r]}},rE=e=>{const t=e.externalUrls;if(!t)return;const n=e.composition?.productName??"Qlik",r=e.composition?.releaseLabel||"-",o="-"===r?n:`${n} (${r})`;return{productId:e.composition?.senseId??"qlik",productLabel:o,version:e.composition?.version,urls:{personalHelpBaseUrl:t.personalHelpBaseUrl,personalUpgradeBase:t.personalUpgradeBase,personalUpgradeUrl:t.personalUpgradeUrl,serverHelpBaseUrl:t.serverHelpBaseUrl,qlikWebPageUrl:t.qlikWebPageUrl}}},oE=e=>({isNodeEnv:!1,isCloud:!1,isQCS:!1,isQCG:!1,isCloudConsole:!1,isControlCenter:!1,isWindows:!1,isQSE:!1,isQSD:!1,isUnknown:!1,isAnonymous:!1,...e});function iE(e){return YC(e)}const aE="__QLIK_INTERNAL__DO_NOT_USE_OR_YOU_WILL_BE_FIRED";const sE="qlik-qmfe-api";function lE(e){let t=e.clientId+(e.scope?`_${e.scope}`:"_user_default");return e.subject&&(t+=`_${e.subject}`),e.userId&&(t+=`_${e.userId}`),t}function cE(e){return`${e.accessCode}_${e.clientId}`}const uE={};function dE(e,t,n){localStorage.setItem(`${sE}-${e}-${t}`,n)}function pE(e,t,n){sessionStorage.setItem(`${sE}-${e}-${t}`,n)}function fE(e,t){return localStorage.getItem(`${sE}-${e}-${t}`)||void 0}function hE(e,t){return sessionStorage.getItem(`${sE}-${e}-${t}`)||void 0}function mE(e,t){t.forEach((t=>localStorage.removeItem(`${sE}-${e}-${t}`)))}function gE(e,t){t.forEach((t=>sessionStorage.removeItem(`${sE}-${e}-${t}`)))}function bE(e,t){const n=`${sE}-${e}-${t}`,r=sessionStorage.getItem(n)||void 0;return sessionStorage.removeItem(n),r}async function yE(e,t){if(!e.clientId)throw new IR('A host config with authType set to "oauth2" has to also provide a clientId');return vE(lE(e),t,e.noCache,e.accessTokenStorage)}async function vE(e,t,n,r){if(n)return t();const o=HC(),i=uE[e]||(o?function(e,t){let n,r;if("local"===t?(n=fE(e,"access-token"),r=fE(e,"refresh-token")):"session"===t&&(n=hE(e,"access-token"),r=hE(e,"refresh-token")),n)return{accessToken:n,refreshToken:r}}(e,r):void 0);if(i)return uE[e]=i,Promise.resolve(i);const a=t();if(uE[e]=a,o){const t=await a;"local"===r&&t?(t.accessToken&&dE(e,"access-token",t.accessToken),t.refreshToken&&dE(e,"refresh-token",t.refreshToken)):"session"===r&&t&&(t.accessToken&&pE(e,"access-token",t.accessToken),t.refreshToken&&pE(e,"refresh-token",t.refreshToken))}return a}function SE(e){const t=lE(e);delete uE[t],HC()&&(mE(t,["access-token","refresh-token"]),gE(t,["access-token","refresh-token"]))}function wE(e){if("string"==typeof e){const t=globalThis[e];if(!t)throw new Error(`No such function: ${e}`);return t}return e}function xE(e){if(e.errors)throw new DR(e.errors)}function kE(e){const t=Object.keys(e);t.sort();return t.map((t=>`${t}=${e[t]}`)).join("&")}async function CE(e){const t=(new TextEncoder).encode(e),n=await globalThis.crypto.subtle.digest("SHA-256",t),r=function(e){let t="";if(HC()){const n=String.fromCharCode.apply(null,e);t=btoa(n)}else{if(!UC())throw new Error("Environment not supported for oauth2 authentication");t=Buffer.from(e).toString("base64")}return t}(Array.from(new Uint8Array(n)));return r.replaceAll(/\+/g,"-").replaceAll(/\//g,"_").replace(/=+$/,"")}async function EE(e){const t=e.clientId||"",n=GR(e),r=iE(128),o=iE(43),i=await CE(r),a=e.redirectUri||globalThis.location.href,s=lE(e);SE(e),pE(s,"state",o),pE(s,"verifier",r),pE(s,"href",globalThis.location.href),pE("","client-in-progress",s);const l=`${n}/oauth/authorize?${kE({response_type:"code",client_id:t,redirect_uri:a,scope:e.scope||"user_default",state:o,code_challenge:i,code_challenge_method:"S256"})}`;globalThis.location.replace(l)}async function RE(e,t,n,r){try{const o=await fetch(`${GR(e)}/oauth/token`,{method:"POST",credentials:"include",mode:"cors",headers:{"content-type":"application/json"},redirect:"follow",body:JSON.stringify({grant_type:"authorization_code",scope:e.scope||"user_default",...t?{code:t}:{},redirect_uri:r||globalThis.location.href,...n?{code_verifier:n}:{},client_id:e.clientId})}),i=await o.json();return xE(i),{accessToken:i.access_token,refreshToken:i.refresh_token,errors:i.errors}}catch(e){return console.error(e),new Promise((()=>{}))}}function LE(e,t,n,r,o){const i={client_id:e,client_secret:t,scope:n};return r?{...i,grant_type:"urn:qlik:oauth:user-impersonation",user_lookup:{field:"subject",value:r}}:o?{...i,grant_type:"urn:qlik:oauth:user-impersonation",user_lookup:{field:"userId",value:o}}:{...i,grant_type:"client_credentials"}}async function PE(e){const{clientId:t,clientSecret:n}=e;if(!t||!n)throw new IR('A host config with authType set to "oauth2" has to provide a clientId and a clientSecret');const r=await yE(e,(async()=>{if(!e.clientId||!e.clientSecret)throw new IR('A host config with authType set to "oauth2" has to provide a clientId and a clientSecret');return async function(e,t,n,r="user_default",o,i){const a=await fetch(`${e}/oauth/token`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify(LE(t,n,r,o,i))}),s=await a.json();return{accessToken:s.access_token,refreshToken:s.refresh_token,errors:s.errors}}(GR(e),e.clientId,e.clientSecret,e.scope,e.subject,e.userId)}));return r}async function TE(e){const{clientId:t}=e;if(!t)throw new IR('A host config with authType set to "oauth2" has to also provide a clientId');const n=await yE(e,(async()=>{if(e.getAccessToken)try{const t="string"==typeof e.getAccessToken?await function(e){return globalThis[e]}(e.getAccessToken)():await e.getAccessToken();return{accessToken:t,refreshToken:void 0,errors:void 0}}catch{return ME("Could not fetch access token using custom function")}if(e.performInteractiveLogin){let t;try{const n=iE(128),r=iE(43),{code:o,state:i}=function(e){if("string"==typeof e){const t=new URLSearchParams(new URL(e).search);return{code:t.get("code")||"",state:t.get("state")||""}}return e}(await wE(e.performInteractiveLogin)({getLoginUrl:async({redirectUri:o})=>(t=o,async function(e,t,n,r){const o=e.clientId||"",i=GR(e),a=await CE(r);return`${i}/oauth/authorize?${kE({response_type:"code",client_id:o,redirect_uri:t,scope:e.scope||"user_default",state:n,code_challenge:a,code_challenge_method:"S256"})}`}(e,o,r,n))}));if(!t)return ME("No redirect uri provided");if(r!==i)return ME("State returned by custom interactive login function does not match original");if(!o)return ME("No code found in response from custom interactive login function");return await RE(e,o,n,t)}catch(e){return{accessToken:void 0,refreshToken:void 0,errors:[{code:"",status:401,title:"Could not perform custom interactive login",detail:`${e}`}]}}}const t=lE(e),n=bE(t,"code"),r=bE(t,"verifier");if(n&&r){const t=await RE(e,n,r,e.redirectUri);if(t)return t}}));return n||(e.performInteractiveLogin||(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),EE(e)),new Promise((()=>{})))}!function(e,t){(globalThis.location?.origin.startsWith("https://localhost:")||globalThis.location?.origin?.endsWith("qlik-stage.com"))&&(void 0===globalThis[aE]&&(globalThis[aE]={}),globalThis[aE][e]=t)}("clearAllAccessTokens",(()=>{console.log("Clearing tokens",uE),Object.keys(uE).forEach((e=>{console.log("Clearing access tokens for",e),mE(e,["access-token","refresh-token"]),gE(e,["access-token","refresh-token"])})),function(){for(const e in uE)delete uE[e]}()}));let OE=Promise.resolve("");async function IE(e){if(UC()){const t=await PE(e);return t?(xE(t),t.accessToken||""):""}return HC()&&(OE=OE.then((async()=>{const t=await TE(e);return t?(xE(t),t.accessToken||""):""}))),OE}async function _E(e){const t=await async function(e){return uE[lE(e)]}(e);if(SE(e),t&&t.refreshToken&&e.clientSecret){const n=await yE(e,(async()=>{if(!t||!t.refreshToken||!e.clientSecret)throw new Error("Trying to refresh tokens without refreshToken or clientSecret");return async function(e,t,n){const r=await fetch(`${e}/oauth/token`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:"refresh_token",refresh_token:t,client_secret:n})}),o=await r.json();return{accessToken:o.access_token,refreshToken:o.refresh_token,errors:o.errors}}(GR(e),t.refreshToken,e.clientSecret)}));n&&xE(n)}}function ME(e){return{accessToken:void 0,refreshToken:void 0,errors:[{code:"",status:401,title:e,detail:""}]}}async function qE(e,t,n){const r=await fetch(`${GR(e)}/oauth/token`,{method:"POST",credentials:"include",mode:"cors",headers:{"content-type":"application/json"},redirect:"follow",body:JSON.stringify({subject_token:t,subject_token_type:"urn:ietf:params:oauth:token-type:access_token",grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",purpose:n,redirect_uri:globalThis.location?.href,client_id:e.clientId})});if(200!==r.status)throw await async function(e){const t=await e.text();try{const e=JSON.parse(t);return new DR(e.errors)}catch{return new DR([{code:"unknown",status:e.status,detail:t,title:"Unknown authentication error"}])}}(r);return(await r.json()).access_token}async function DE(e,t){try{return await t()}catch(n){const{retry:r}=await zE({hostConfig:e});if(r)return t();throw n}}function NE(){const e=Math.floor(Date.now()/1e3).toString(16);var t;return`${e}${t=40-e.length,QC("1234567890abcdef",t)()}`}async function AE(e){const{accessCode:t,clientId:n}=e;if(!t||!n)throw new IR('A host config with authType set to "anonymous" has to provide both an accessCode and clientId');const r=await async function(e,t){if(!e.accessCode)throw new IR('A host config with authType set to "anonymous" has to also provide an accessCode');return vE(cE(e),t,!1,void 0)}(e,(async()=>{const r=GR(e),o=await async function(e){let t;if(HC()){const n=cE(e);t=fE(n,"tracking-code"),t||(t=NE()),dE(n,"tracking-code",t)}else t=NE();return t}(e);return async function(e,t,n,r){const o=await fetch(`${e}/oauth/token/anonymous-embed`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify({eac:t,client_id:n,grant_type:"urn:qlik:oauth:anonymous-embed",tracking_code:r})}),i=await o.json();return{accessToken:i.access_token,refreshToken:i.refresh_token,errors:i.errors}}(r,t,n,o)}));if(!r)return"";if(r.errors)throw new DR(r.errors);return r.accessToken?r.accessToken:""}async function zE({hostConfig:e}){return function(e){const t=cE(e);delete uE[t],HC()&&(mE(t,["access-token","refresh-token"]),gE(t,["access-token","refresh-token"]))}(e),{preventDefault:!1,retry:!0}}var jE={requiredProps:["clientId","accessCode"],optionalProps:[],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{Authorization:`Bearer ${await AE(e)}`},queryParams:{},credentials:"omit"}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await DE(e,(async()=>{const t=await AE(e);return qE(e,t,"websocket")}))}}},getWebResourceAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await DE(e,(async()=>{const t=await AE(e);return qE(e,t,"websocket")}))}}},handleAuthenticationError:zE};var FE={requiredProps:["apiKey"],optionalProps:[],getRestCallAuthParams:function({hostConfig:e}){return Promise.resolve({headers:{Authorization:`Bearer ${e?.apiKey}`},queryParams:{},credentials:"omit"})},getWebSocketAuthParams:async function(){return{queryParams:{}}},handleAuthenticationError:function(){return Promise.resolve({})}},$E=class extends Error{status;headers;data;constructor(e,t,n,r){super(e),this.status=t,this.headers=n,this.data=r,this.stack=UE(this.stack)}},BE=class extends Error{contentType;data;constructor(e,t,n){super(e),this.contentType=t,this.data=n,this.stack=UE(this.stack)}};const WE=/^.+\/qmfe-api(?:\.js)?:(\d+)(?::\d+)?$/gim,HE=e=>{const t=e.match(WE);return Boolean(t&&t.length>0)};function UE(e){if(!e)return e;const t=[],n=e.split("\n");n.reverse();for(const e of n){if(HE(e))break;t.unshift(e)}return t.join("\n")}function VE(e,t,n,r){let o=e;return""!==t&&(o=o.concat(`?${t}`)),r&&(o=o.concat(`+headers=${JSON.stringify(r)}`)),n&&(o=o.concat(`+host-config=${n}`)),o}const GE=e=>"get"===e||"GET"===e;function KE(e){return e&&(e instanceof Blob||e instanceof Object&&"[object Blob]"===e.toString())||e&&e instanceof ReadableStream||"string"==typeof e?e:JSON.parse(JSON.stringify(e))}function JE(e){return!("get"===e||"GET"===e)}function ZE(e){const t=e.indexOf("?");if(t>=0)return e.substring(0,t);const n=e.indexOf("+headers=");if(n>=0)return e.substring(0,n);const r=e.indexOf("+host-config=");return r>=0?e.substring(0,r):e}function XE(e){return e.then((e=>{const t={data:KE(e.data),headers:e.headers,status:e.status};return e.next&&(t.next=e.next),e.prev&&(t.prev=e.prev),t}))}let QE=6e5;const YE={};function eR(e){return e instanceof Error?e.cause?e.message?`${e.message} - ${eR(e.cause)}`:eR(e.cause):e.message:String(e)}async function tR(e,t,n,r,o,i,a,s){const{body:l,contentTypeHeader:c,requestOptions:u}=function(e,t){if(!e)return{body:null,contentTypeHeader:{},requestOptions:{}};const n={},r={};let o=null;switch(t){case"":case"application/json":n["Content-Type"]="application/json",o=JSON.stringify(e);break;case"multipart/form-data":o=function(e){const t="multipart/form-data";if("object"!=typeof e)throw new BE(`Cannot encode ${typeof e} as ${t}, body should be an object.`,t,e);if(Array.isArray(e))throw new BE(`Cannot encode ${typeof e} as ${t}, body should be an object.`,t,e);if(e instanceof FormData)return e;const n=new FormData;return Object.entries(e).forEach((r=>{const[o,i]=r;switch(typeof i){case"boolean":case"number":case"string":n.set(o,`${i}`);break;case"object":if(i instanceof Blob)n.set(o,i);else if(i instanceof Uint8Array){const e=new Blob([i],{type:"application/octet-stream"});n.set(o,e)}else{const e=JSON.stringify(i),t=new Blob([e],{type:"application/json"});n.set(o,t,"")}break;default:throw new BE(`Cannot encode multipart-field "${o}" with value of type ${typeof i}, values must be objects, strings, numbers or boolean.`,t,e)}})),n}(e);break;case"application/octet-stream":n["Content-Type"]=t,r.duplex="half",o=e;break;case"text/plain":if("string"!=typeof e)throw new BE(`Cannot send ${typeof e} as ${t}, body should be a string.`,t,e);n["Content-Type"]=t,o=e;break;default:throw new BE(`Unsupported content-type "${t}", supported are: application/json, multipart/form-data, application/octet-stream and text/plain`,t,e)}return{body:o,contentTypeHeader:n,requestOptions:r}}(n,r??""),d={...c,...i,...o?.headers,...aR()};!d["User-Agent"]&&s&&(d["User-Agent"]=s);const p={method:e,credentials:a,mode:"cors",headers:d,redirect:await VR(o?.hostConfig)?"manual":"follow",keepalive:o?.keepalive,progress:o?.progress,body:l,...u};let f,h;if(o?.signal)p.signal=o.signal;else if(o?.timeoutMs&&o.timeoutMs>0){const e=new AbortController;f=setTimeout((()=>{e.abort()}),o.timeoutMs),p.signal=e.signal}h=o?.progress?await async function(e,{method:t,headers:n,credentials:r,keepalive:o,body:i,signal:a,progress:s}){const l=new XMLHttpRequest;let c,u;const d=new Promise(((e,t)=>{c=e,u=t}));if(l.open(t||"GET",e),"object"!=typeof n)throw Error("malformed headers",n);for(const[e,t]of Object.entries(n))l.setRequestHeader(e,t);o&&l.setRequestHeader("Connection","keep-alive"),a&&a.addEventListener("abort",(()=>{l.abort(),u()})),l.withCredentials="include"===r,s?.onUpload&&(l.upload.onprogress=e=>{const{loaded:t,total:n,lengthComputable:r}=e;s.onUpload?.({loaded:t,total:r?n:void 0})}),s?.onDownload&&(l.onprogress=e=>{const{loaded:t,total:n,lengthComputable:r}=e;s.onDownload?.({loaded:t,total:r?n:void 0})}),l.onloadend=()=>{const{status:e}=l,t={};for(const e of l.getAllResponseHeaders().split("\r\n")){const[n,r]=e.split(":",2);n&&r&&(t[n]=r)}l.response?c(new Response(l.response,{status:e,headers:t})):c(new Response(void 0,{status:e,headers:t}))};try{const e=i;l.send(e)}catch(e){return Promise.reject(new $E(eR(e),0,new Headers,{}))}return d}(t,p):await async function(e,t){try{return await fetch(e,t)}catch(e){return Promise.reject(new $E(eR(e),0,new Headers,{}))}}(t,p),f&&clearTimeout(f);const m=await async function(e,t){let n;const r=e.headers.get("content-type")?.split(";")[0],o=e.headers.get("content-disposition")?.split(";");if(o&&"attachment"===o[0]){let t="";for(let e=1;e<o.length;e++){const n=o[e].trim();if(0===n.indexOf("filename")){const e=n.indexOf('"'),r=n.lastIndexOf('"');t=n.slice(e+1,r)}}n=sR(await e.blob(),t)}else switch(r){case"image/png":case"image/jpeg":case"image/x-icon":case"application/offset+octet-stream":case"application/octet-stream":case"application/zip":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":case"application/pdf":n=sR(await e.blob());break;case"text/event-stream":n=e.body;break;default:try{n=await e.text(),n=JSON.parse(n)}catch{}}const{status:i,statusText:a,headers:s}=e,l=`request to '${t}' failed with status ${i} ${a}.`;if(i>=300)throw new $E(l,i,s,n);if(0===i)throw new $E(l,302,s,n);const c={status:i,headers:s,data:n};return c}(h,t);return m}async function nR({method:e,pathTemplate:t,pathVariables:n,query:r,options:o}){const i=GR(o?.hostConfig),{headers:a,queryParams:s,credentials:l}=await QR({hostConfig:o?.hostConfig,method:e}),c=i+function(e,t){let n=e;return t&&Object.keys(t).forEach((e=>{n=n.replace(`{${e}}`,t[e])})),n}(t,n),u=function(e){return e?Object.entries(e).map((e=>{const[,t]=e;if(void 0!==t)return e.map((e=>encodeURIComponent(decodeURIComponent(e)))).join("=")})).filter(Boolean).join("&"):""}({...r,...s}),d=function(e,t){return""!==t?`${e}?${t}`:e}(c,u);return{completeUrl:d,cacheKey:VE(c,u,rL(o?.hostConfig),o?.headers),authHeaders:a,credentials:l}}function rR(e,t){return oR(e,t,(async()=>{const{cacheKey:n,authHeaders:r,credentials:o}=await nR(t);return oR(e,{...t,cacheKey:n,authHeaders:r,credentials:o,options:{...t.options,noCache:!0}},void 0)}))}function oR(e,{method:t,completeUrl:n,cacheKey:r,body:o,options:i,authHeaders:a,credentials:s,contentType:l,userAgent:c},u){YE[e]||(YE[e]={});const d=JE(t)?void 0:YE[e][r];if(JE(t)&&function(e,t){const n=ZE(t);for(const t in e){const r=ZE(t);(n.startsWith(r)||r.startsWith(n))&&delete e[t]}}(YE[e],r),d&&function(e,t,n){if(!t||void 0===t.value)return!1;if(e?.noCache)return!1;if(e?.useCacheIfAfter)return e.useCacheIfAfter.getTime()<=t.lastPulled;const r=Date.now()-t.lastPulled;return e?.maxCacheAge?r<=e?.maxCacheAge:r<n}(i,d,QE))return d.lastHit=new Date,d.hitCount+=1,d.accessedPaths.add(globalThis.location?globalThis.location.pathname:"node"),XE(d.value);const p=tR(t,n,o,l,i,a,s,c),f=async function(e,t,n){try{return await t}catch(t){const r=t,o=r.data;if(401===r.status||403===r.status&&"CSRF-TOKEN-2"===o?.code||(301===r.status||302===r.status)&&await VR(e)){if(globalThis.loggingOut)return iR();const{retry:t,preventDefault:i}=await XR({hostConfig:e,status:r.status,headers:r.headers,errorBody:o,canRetry:!!n});if(t&&n)return n();if(i)return iR()}throw t}}(i?.hostConfig,p,u),h=function(e,t,n,r,o,i,a){const s=rL(o?.hostConfig);return t.then((t=>{const l=t.data;if(!l)return t;const c=l.links?.prev?.href,u=l.links?.next?.href;return c&&(t.prev=t=>rR(e,{method:n,completeUrl:c,body:r,options:t||o,cacheKey:VE(c,"",s,o?.headers),authHeaders:i,credentials:a})),u&&(t.next=t=>rR(e,{method:n,completeUrl:u,body:r,options:t||o,cacheKey:VE(u,"",s,o?.headers),authHeaders:i,credentials:a})),t}))}(e,f,t,o,i,a,s),m=function(e,t,n){return n.catch((n=>(delete e[t],Promise.reject(n))))}(YE[e],r,h);if(GE(t)){if(Object.hasOwn&&!Object.hasOwn(YE,e)||"__proto__"===e)throw new Error(`Forbidden api name: ${e}`);YE[e][r]={lastPulled:Date.now(),value:m,lastHit:null,hitCount:0,accessedPaths:new Set}}return XE(m)}function iR(){return new Promise((()=>{}))}function aR(){if(!HC())return{};const e=localStorage.getItem("qmfe-api-service-overrides-header");return e?{"X-Qlik-Overrides":e}:{}}function sR(e,t){const n=e;return n.download=t?(n=t)=>lR(e,n):t=>lR(e,t),n}async function lR(e,t){if(HC()){const n=document.createElement("a"),r=window.URL.createObjectURL(e);n.href=r,n.download=t,n.click(),window.URL.revokeObjectURL(r)}else{const{writeFileSync:n}=await Promise.resolve().then((function(){return pL})),r=await e.arrayBuffer();n(t,new Uint8Array(r))}}globalThis.__API_CACHE__DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YE;const cR="qmfe-api/latest";async function uR(e,t,n){const r=(KC.getInterceptors()||[]).reduce(((e,t)=>n=>t(n,e)),(t=>async function(e,t){if(function(e){const t=sL(e);if(UR(t)){if(0===Object.keys(t).length)throw new IR("a host config must be provided when making a cross domain request");if(!t.host)throw new IR("A 'host' property must be set in host config when making a cross domain request")}}(t.options?.hostConfig),"noauth"===t.options?.hostConfig?.authType)return console.info("API call blocked: noauth auth module is configured, no API calls should be made"),{status:204,headers:new Headers,data:null};let n;n=t?.userAgent?t.userAgent:HC()?`${window.navigator.userAgent} ${cR}`:cR;const{completeUrl:r,cacheKey:o,authHeaders:i,credentials:a}=await nR(t);return rR(e,{...t,method:t.method.toUpperCase(),completeUrl:r,cacheKey:o,authHeaders:i,credentials:a,userAgent:n})}(e,t)));return r(t)}const dR="qlik-csrf-token";async function pR(e,t){const n=GR(e);let r;r=await VR(e)?"/qps/csrftoken":"/api/v1/csrf-token";const o=async()=>{try{const t=(await uR("csrf-token",{method:"get",pathTemplate:r,options:{hostConfig:e,noCache:!0}})).headers.get(dR);return t||""}catch(e){if(404===e.status)return"";throw e}};return t?(fR[n]=o(),fR[n]):(fR[n]=fR[n]||o(),fR[n])}const fR={};function hR(e){return!1===e.crossSiteCookies?"same-origin":UR(e)?"include":"same-origin"}var mR={requiredProps:[],optionalProps:["webIntegrationId","crossSiteCookies","anonymousMode"],getRestCallAuthParams:async function({hostConfig:e,method:t}){const n={};var r;return"get"!==(r=t)&&"GET"!==r&&(n["qlik-csrf-token"]=await pR(e)),e.webIntegrationId&&(n["qlik-web-integration-id"]=e.webIntegrationId),{headers:n,queryParams:{},credentials:hR(e)}},getWebSocketAuthParams:async function({hostConfig:e}){const t={"qlik-csrf-token":await pR(e,!0)};return e.webIntegrationId&&(t["qlik-web-integration-id"]=e.webIntegrationId),{queryParams:t}},handleAuthenticationError:async function({hostConfig:e,status:t}){if(function(e){const t=GR(e);delete fR[t]}(e),403===t)return{preventDefault:!1,retry:!0};const n=e.webIntegrationId?`qlik-web-integration-id=${e?.webIntegrationId}&`:"",r=GR(e);return e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),globalThis.location.replace(`${r}/login?${n}returnto=${encodeURIComponent(globalThis.location.href)}`),{preventDefault:!0}}};var gR={requiredProps:[],optionalProps:[],getRestCallAuthParams:function(e){return Promise.resolve({headers:{},queryParams:{},credentials:"same-origin"})},getWebSocketAuthParams:function(e){return Promise.resolve({queryParams:{}})},handleAuthenticationError:function(e){return Promise.resolve({})}};var bR={requiredProps:[],optionalProps:[],getRestCallAuthParams:function(){return Promise.resolve({headers:{},queryParams:{},credentials:"same-origin"})},getWebSocketAuthParams:function(){return Promise.resolve({queryParams:{}})},handleAuthenticationError:function(){return Promise.resolve({})}};async function yR(e,t){try{return await t()}catch(n){const{retry:r}=await vR({hostConfig:e});if(r)return t();throw n}}async function vR({hostConfig:e}){return e.getAccessToken?(SE(e),{preventDefault:!1,retry:!0}):HC()?e.performInteractiveLogin?(SE(e),{retry:!0}):(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),EE(e),{preventDefault:!0}):(await _E(e),{preventDefault:!1,retry:!0})}HC()&&function(){const e=new URLSearchParams(globalThis.location.search),t=e.get("code")||void 0,n=e.get("state")||void 0;if(e.get("error")){const t=document.createElement("pre");t.innerText=`<code>${JSON.stringify({error:e.get("error"),error_code:e.get("error_code"),error_description:e.get("error_description"),error_detail:e.get("error_detail"),error_uri:e.get("error_uri")})}</code>`,document.body.prepend(t)}const r=bE("","client-in-progress");if(r&&t&&n){const e=bE(r,"state"),o=bE(r,"href");e&&e===n&&o&&(pE(r,"code",t),o!==globalThis.location.href&&globalThis.location.replace(o))}}();var SR={requiredProps:["clientId"],optionalProps:["clientSecret","redirectUri","accessTokenStorage","scope","subject","userId","noCache","getAccessToken","performInteractiveLogin"],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{Authorization:`Bearer ${await IE(e)}`},queryParams:{},credentials:"omit"}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await yR(e,(async()=>{const t=await IE(e);return qE(e,t,"websocket")}))}}},getWebResourceAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await yR(e,(async()=>{const t=await IE(e);return qE(e,t,"webresource")}))}}},handleAuthenticationError:vR};var wR={requiredProps:["reference"],optionalProps:[],getRestCallAuthParams:function(){throw new Error("getRestCallAuthParams should never be called for reference auth module")},getWebSocketAuthParams:function(){throw new Error("getWebSocketAuthParams should never be called for reference auth module")},handleAuthenticationError:function(){throw new Error("handleAuthenticationError should never be called for reference auth module")}};const xR={};function kR(e){const t=GR(e);return xR[t]=xR[t]||function(){let e="";for(let t=0;t<16;t+=1){const t=Math.floor(62*Math.random());e+=t<10?t:t>9&&t<36?String.fromCharCode(t+55):String.fromCharCode(t+61)}return e}(),xR[t]}var CR={requiredProps:[],optionalProps:["loginUri","crossSiteCookies"],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{"X-Qlik-XrfKey":kR(e)},queryParams:{xrfkey:kR(e)},credentials:hR(e)}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{xrfkey:kR(e),"qlik-csrf-token":await pR(e,!0)}}},handleAuthenticationError:async function({hostConfig:e}){return e.loginUri?(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),globalThis.location.replace(e.loginUri.replace("{location}",encodeURIComponent(globalThis.location.href))),{preventDefault:!0}):{}}};const ER={};let RR=Promise.resolve(),LR=!1;function PR(e,t){ER[e.toLowerCase()]=t}async function TR(e){const t=sL(e),n=await OR(t);RR&&await RR;let r=function(e){return ER[e.toLowerCase()]}(n);if(r||(RR=(async()=>{r=await async function(e){const t=globalThis[e];if(t){let n;if(n="function"==typeof t?await t():t,n&&n.getRestCallAuthParams&&n.getWebSocketAuthParams&&n.handleAuthenticationError)return n;throw console.error("Not a valid auth module",n),new MR(e)}return Promise.resolve(void 0)}(n),r&&PR(n,r)})(),await RR),!r)throw new MR(n);return r.validateHostConfig?r.validateHostConfig({authType:n,...t}):function(e,{requiredProps:t,optionalProps:n}){const r=[];for(const n of t)e[n]||r.push(n);if(r.length>0)throw new IR(`missing required properties in host config; '${r.join("', '")}'`);const o=[...JC,...t,...n],i=[];Object.keys(e).forEach((e=>{o.includes(e)||i.push(e)})),i.length>0&&console.warn(`WARNING: unknown properties in host config; '${i.join("', '")}'`)}({authType:n,...t},{requiredProps:r.requiredProps||[],optionalProps:r.optionalProps||[]}),r}async function OR(e){return e.authType?e.authType:e.apiKey?"apikey":e.accessCode?"anonymous":e.clientId?"oauth2":e.webIntegrationId?"cookie":e.reference?"reference":await VR(e)?"windowscookie":"cookie"}LR||(PR("apikey",FE),PR("cookie",mR),PR("none",bR),PR("noauth",gR),PR("oauth2",SR),PR("anonymous",jE),PR("windowscookie",CR),PR("reference",wR),LR=!0);var IR=class extends Error{constructor(e){super(`Invalid host config: ${e}`),this.name="InvalidHostConfigError"}},_R=class extends Error{constructor(...e){const t=e.map(((e,t)=>0===t?`"${e}"`:`or "${e}"`)).join(" ");super(`HostConfig is not properly configured. authType is expected to be ${t}`),this.name="UnexpectedAuthTypeError"}},MR=class extends Error{constructor(e){super(`Not a valid auth type: ${e}, valid auth types are; '${Object.keys(ER).filter((e=>"qmfeembedframerauthmodule"!==e.toLowerCase())).join("', '")}'`),this.name="InvalidAuthTypeError"}};function qR({title:e,detail:t,code:n,status:r}){return t?`${e} - ${t} (Status: ${r}, Code: ${n})`:`${e} (Status: ${r}, Code: ${n})`}var DR=class extends Error{errors;constructor(e){if("object"!=typeof e)return void super("Unknown error");const t=Array.isArray(e)?e:[e];super(t.map(qR).join(", ")),this.errors=t}};function NR(e){const t=GC(e)||{};return t.host&&(t.host=GR(t)),HC()&&GR(t)===window.location.origin&&delete t.host,t.authType&&ZC.includes(t.authType)&&delete t.authType,t}function AR(e,t){if("function"!=typeof t)return t}const zR=new Map;function jR(e,t){const n=t?.reference||null;if(n&&!zR.has(n))throw new IR(`Host config with reference "${n}" is not registered. Please register it before using it.`);zR.has(e)&&console.warn(`registerHostConfig: Host config with name "${e}" is already registered. Overwriting.`),zR.set(e,t)}function FR(e){return zR.get(e)}function $R(){return FR("default")||{}}globalThis.loggingOut=!1;let BR="";function WR({message:e}){e!==BR&&(BR=e,console.error(e))}function HR(e){return OR(e)}function UR(e){if(!globalThis.location?.origin)return!0;const t=sL(e);if(0===Object.keys(t).length)return!1;try{return new URL(GR(t)).origin!==globalThis.location.origin}catch{}return!1}async function VR(e){const t=sL(e);return"boolean"==typeof t.forceIsWindows?t.forceIsWindows:"cookie"!==t.authType&&("windowscookie"===t.authType||(await eE({hostConfig:e})).isWindows)}function GR(e){const t=sL(e)?.host?.trim();let n;for(n=t?t.toLowerCase().startsWith("https://")||t.toLowerCase().startsWith("http://")?t:`https://${t}`:"";"/"===n[n.length-1];)n=n.substring(0,n.length-1);return n}function KR(e){const t=sL(e)?.host;let n;for(n=t?t.toLowerCase().startsWith("https://")||t.toLowerCase().startsWith("http://")?t:`https://${t}`:globalThis.location.origin;"/"===n[n.length-1];)n=n.substring(0,n.length-1);return n.replace(iL,"ws")}async function JR(e){const t=sL(e.hostConfig);try{const n=await TR(t);return await n.getWebSocketAuthParams({...e,hostConfig:t})}catch(e){throw(t.onAuthFailed||WR)(aL(e)),e}}async function ZR(e){const t=sL(e.hostConfig);try{const n=await TR(t);return await(n.getWebResourceAuthParams?.({...e,hostConfig:t}))||{queryParams:{}}}catch(e){throw(t.onAuthFailed||WR)(aL(e)),e}}async function XR(e){const t=sL(e.hostConfig),n=await TR(t),r=await n.handleAuthenticationError({...e,hostConfig:t}),o=e.canRetry&&r.retry,i=r.preventDefault;if(!o&&!i){const{status:n,errorBody:r}=e;(t.onAuthFailed||WR)(function({errorBody:e,status:t}){const n=e;if("object"==typeof n?.errors){return{message:new DR(n?.errors).message}}return{message:`HTTP ${t}`}}({status:n,errorBody:r}))}return r}async function QR(e){const t=sL(e.hostConfig);try{const n=await TR(t);return await n.getRestCallAuthParams({...e,hostConfig:t})}catch(e){throw(t.onAuthFailed||WR)(aL(e)),e}}function YR(e,t){PR(e,t)}function eL(e){!function(e){jR("default",e||{})}(e)}function tL(e,t){jR(e,t)}function nL(e){!function(e){zR.has(e)?zR.delete(e):console.warn(`unregisterHostConfig: Host config with name "${e}" not found.`)}(e)}function rL(e){return function(e){const t=VC(NR(sL(e)));return JSON.stringify(t,AR)}(e)}const oL=()=>{globalThis.loggingOut=!0,globalThis.location.href="/logout"},iL=/^http/;function aL(e){return{message:e.message||"Unknown error"}}function sL(e){if(e?.reference){const t=FR(e.reference);if(!t)throw new IR(`Host config with name "${e.reference}" not found.`);return t}return e&&Object.keys(e).length>0?e:$R()}function lL(){return $R()}var cL={determineAuthType:HR,getDefaultHostConfig:lL,getRestCallAuthParams:QR,getWebResourceAuthParams:ZR,getWebSocketAuthParams:JR,handleAuthenticationError:XR,isHostCrossOrigin:UR,isWindows:VR,logout:oL,registerAuthModule:YR,registerHostConfig:tL,serializeHostConfig:rL,setDefaultHostConfig:eL,toValidLocationUrl:GR,toValidWebsocketLocationUrl:KR,unregisterHostConfig:nL},uL=Object.freeze({__proto__:null,AuthorizationError:DR,InvalidAuthTypeError:MR,InvalidHostConfigError:IR,UnexpectedAuthTypeError:_R,default:cL,determineAuthType:HR,getAccessToken:async function(e){const t=await QR({method:"GET",...e}),n=t.headers?.Authorization;if(0===n.indexOf("Bearer "))return n.substring(7);throw new Error("Unknown format of authorization header returned by remote auth module")},getDefaultHostConfig:lL,getRestCallAuthParams:QR,getWebResourceAuthParams:ZR,getWebSocketAuthParams:JR,handleAuthenticationError:XR,isHostCrossOrigin:UR,isWindows:VR,logout:oL,registerAuthModule:YR,registerHostConfig:tL,serializeHostConfig:rL,setDefaultHostConfig:eL,toValidLocationUrl:GR,toValidWebsocketLocationUrl:KR,unregisterHostConfig:nL});window.__qlikMainPrivateResolvers||(window.__qlikMainPrivateResolvers={}),window.__qlikMainPrivateResolvers.mainUrlPromise||(window.__qlikMainPrivateResolvers.mainUrlPromise=new Promise((e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrl=t=>{e(t)})}))),window.__qlikMainPrivateResolvers.qlikMainPromise||(window.__qlikMainPrivateResolvers.qlikMainPromise=(async()=>{if(window.QlikMain)return window.QlikMain;if(!window.__qlikMainPrivateResolvers?.mainUrlPromise)throw new Error("No main url promise found, report this issue");const e=setTimeout((()=>{console.warn("Waiting for a host parameter pointing to a Qlik runtime system")}),5e3),t=await window.__qlikMainPrivateResolvers.mainUrlPromise;return clearTimeout(e),new Promise((e=>{if(window.QlikMain)e(window.QlikMain);else{const n=window.document.createElement("script");t&&(n.src=t),n.addEventListener("error",(()=>{console.error(`Qlik runtime system not found: ${t}`)})),n.addEventListener("load",(()=>{window.QlikMain&&e(window.QlikMain)})),window.document.head.appendChild(n)}}))})());var dL=Object.freeze({__proto__:null,importRuntimeModule:async function(e,t){return t?.runtimeModuleMocks?.[e]?t.runtimeModuleMocks?.[e]:(function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");const t=function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");let t,n=e?.embedRuntimeUrl||e?.url||e?.host;if(n||"noauth"!==e?.authType||(n="https://cdn.qlikcloud.com/qmfe"),n){for(t=n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")?n:`https://${n}`;t.endsWith("/");)t=t.slice(0,-1);return`${t}/qlik-embed/main.js`}}(e);t&&window.__qlikMainPrivateResolvers.resolveMainJsUrl&&window.__qlikMainPrivateResolvers.resolveMainJsUrl(t)}(t),async function(e){if(!window.__qlikMainPrivateResolvers?.qlikMainPromise)throw new Error("No main url resolver found");return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}}),pL=Object.freeze({__proto__:null});e.DataPropertyHandler=yx,e.EnigmaMocker=BC,e.HyperCubeHandler=Ex,e.__DO_NOT_USE__=WC,e.conversion=_S,e.embed=PC,e.onContextMenu=function(e){const t=Gx(++Nx);t.value||(t.value=1,Dx.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=Gx(++Nx);t.value||(t.value=1,Dx.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=Xx({action(){n._config.action.call(null)}});return n.component||(n.component=Dx,Dx.__hooks.actions.list.push(n)),ek((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action},e.useApp=function(){const e=Kx("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return Kx("appLayout")},e.useConstraints=function(){return Kx("constraints")},e.useDeviceType=function(){return Kx("deviceType")},e.useEffect=Qx,e.useElement=tk,e.useEmbed=function(){return Kx("nebbie")},e.useEmitter=function(){return Kx("emitter")},e.useGlobal=function(){const e=Kx("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=Gx(++Nx);if(n.imperative||(n.imperative=!0),Ax(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Dx.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return Kx("interactions")},e.useKeyboard=function(){const e=Kx("keyboardNavigation"),t=Kx("focusHandler");if(!Dx.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(rk(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Dx);Dx.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),nk(this))}.bind(Dx);Dx.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Dx);Dx.__hooks.accessibility.focusSelectionFunction=r}const n=Dx.__hooks.accessibility.focusFunction,r=Dx.__hooks.accessibility.exitFunction,o=Dx.__hooks.accessibility.focusSelectionFunction,[i,a]=Xx({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Dx.__hooks.accessibility.setter=a,Dx.__hooks.accessibility.enabled=e,Qx((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i},e.useLayout=function(){return Kx("layout")},e.useMemo=ek,e.useModel=function(){const e=Kx("model");return e&&e.session?e:void 0},e.useNavigation=function(){return Kx("navigation")},e.useOptions=function(){return Kx("options")},e.usePlugins=function(){return Kx("plugins")},e.usePromise=function(e,t){const[n,r]=Xx((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Gx(++Nx);return o.component||(o.component=Dx),Yx((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]},e.useRect=function(){const e=tk(),t=Dx.__hooks.resizer,[n,r]=Xx((()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}}));return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),Yx((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:i})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRef=function(e){return ek((()=>({current:e})),[])},e.useRenderState=function(){Gx(++Nx);const e=Dx.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return Kx("selections")},e.useStaleLayout=function(){const e=Kx("layout"),[t]=Xx({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=Xx,e.useTheme=function(){return Kx("theme")},e.useTranslator=function(){return Kx("translator")}}));
126
126
  //# sourceMappingURL=stardust.js.map