@nebula.js/stardust 4.0.0-alpha.2 → 4.0.0-alpha.4

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/core/esm/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  /*
2
- * @nebula.js/stardust v4.0.0-alpha.2
2
+ * @nebula.js/stardust v4.0.0-alpha.4
3
3
  * Copyright (c) 2023 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import*as e from"react";import t,{useState as n,useEffect as r,forwardRef as o,useMemo as i,useImperativeHandle as a,useReducer as s,useCallback as l,useLayoutEffect as c,PureComponent as u,useRef as d,createElement as p,useContext as h}from"react";import f from"react-dom";import{CacheProvider as m,ThemeContext as g}from"@emotion/react";import{Checkbox as y,Radio as v,Typography as b,FormControlLabel as x,Box as E,Grid as S,Tooltip as C,Paper as w,IconButton as L,Popover as I,MenuList as O,MenuItem as R,ListItemIcon as q,Divider as k,InputAdornment as _,OutlinedInput as T,Badge as D,List as P,ListItem as A,Button as M,Icon as N,CircularProgress as z}from"@mui/material";import j from"@emotion/styled";function F(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];n.push.apply(n,arguments);var r=Function.bind.apply(t,n);return new r}return 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 W={};function B(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 H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(this,arguments)}function G(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(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 g?t:g,a=Object.create(i.prototype),s=new q(r||[]);return o(a,"_invoke",{value:L(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",h="executing",f="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(k([])));E&&E!==n&&r.call(E,a)&&(b=E);var S=v.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(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 L(e,t,n){var r=p;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=d(e,t,n);if("normal"===l.type){if(r=n.done?f:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}function I(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,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;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,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}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 R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function k(e){if(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}}return{next:_}}function _(){return{value:t,done:!0}}return y.prototype=v,o(S,"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(S),e},e.awrap=function(e){return{__await:e}},C(w.prototype),c(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"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=k,q.prototype={constructor:q,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(R),!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,m):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),m},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),R(n),m}},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;R(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({get exports(){return W},set exports(e){W=e}});const V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))};function K(){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?V(i,o):i}};return o}const Z=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=K({initial:e,fallback:t});return{translator:n}};var X={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_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_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_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":"資料更新已取消"}},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":"重試"}},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":"選取可能值"}},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 J(e){const t=Z({initial:e});return Object.keys(X).forEach((e=>{t.translator.add(X[e])})),{translator:t.translator}}var Y={};function Q(){Q.init.call(this)}Y.isObject=function(e){return"object"==typeof e&&null!==e},Y.isNumber=function(e){return"number"==typeof e},Y.isUndefined=function(e){return void 0===e},Y.isFunction=function(e){return"function"==typeof e};var ee=Q;function te(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function re(){}Q.EventEmitter=Q,Q.prototype._events=void 0,Q.prototype._maxListeners=void 0,Q.defaultMaxListeners=10,Q.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Q.prototype.setMaxListeners=function(e){if(!Y.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Q.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Y.isUndefined(n))return!1;if(Y.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Y.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Q.prototype.addListener=function(e,t){var n;if(!Y.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Y.isFunction(t.listener)?t.listener:t),this._events[e]?Y.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Y.isObject(this._events[e])&&!this._events[e].warned)&&((n=Y.isUndefined(this._maxListeners)?Q.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Y.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Y.isFunction(console.trace)&&console.trace()));return this},Q.prototype.on=Q.prototype.addListener,Q.prototype.once=function(e,t){if(!Y.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Q.prototype.removeListener=function(e,t){var n,r,o,i;if(!Y.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Y.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Y.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Q.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Y.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Q.prototype.listeners=function(e){return this._events&&this._events[e]?Y.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Q.listenerCount=function(e,t){return e._events&&e._events[t]?Y.isFunction(e._events[t])?1:e._events[t].length:0};var oe=.7,ie=1/oe,ae="\\s*([+-]?\\d+)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,ue=new RegExp(`^rgb\\(${ae},${ae},${ae}\\)$`),de=new RegExp(`^rgb\\(${le},${le},${le}\\)$`),pe=new RegExp(`^rgba\\(${ae},${ae},${ae},${se}\\)$`),he=new RegExp(`^rgba\\(${le},${le},${le},${se}\\)$`),fe=new RegExp(`^hsl\\(${se},${le},${le}\\)$`),me=new RegExp(`^hsla\\(${se},${le},${le},${se}\\)$`),ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ye(){return this.rgb().formatHex()}function ve(){return this.rgb().formatRgb()}function be(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xe(t):3===n?new we(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ee(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ee(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=ue.exec(e))?new we(t[1],t[2],t[3],1):(t=de.exec(e))?new we(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pe.exec(e))?Ee(t[1],t[2],t[3],t[4]):(t=he.exec(e))?Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fe.exec(e))?ke(t[1],t[2]/100,t[3]/100,1):(t=me.exec(e))?ke(t[1],t[2]/100,t[3]/100,t[4]):ge.hasOwnProperty(e)?xe(ge[e]):"transparent"===e?new we(NaN,NaN,NaN,0):null}function xe(e){return new we(e>>16&255,e>>8&255,255&e,1)}function Ee(e,t,n,r){return r<=0&&(e=t=n=NaN),new we(e,t,n,r)}function Se(e){return e instanceof re||(e=be(e)),e?new we((e=e.rgb()).r,e.g,e.b,e.opacity):new we}function Ce(e,t,n,r){return 1===arguments.length?Se(e):new we(e,t,n,null==r?1:r)}function we(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Le(){return`#${qe(this.r)}${qe(this.g)}${qe(this.b)}`}function Ie(){const e=Oe(this.opacity);return`${1===e?"rgb(":"rgba("}${Re(this.r)}, ${Re(this.g)}, ${Re(this.b)}${1===e?")":`, ${e})`}`}function Oe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Re(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qe(e){return((e=Re(e))<16?"0":"")+e.toString(16)}function ke(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,n,r)}function _e(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof re||(e=be(e)),!e)return new Te;if(e instanceof Te)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 Te(a,s,l,e.opacity)}function Te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function De(e){return(e=(e||0)%360)<0?e+360:e}function Pe(e){return Math.max(0,Math.min(1,e||0))}function Ae(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}te(re,be,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ye,formatHex:ye,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _e(this).formatHsl()},formatRgb:ve,toString:ve}),te(we,Ce,ne(re,{brighter(e){return e=null==e?ie:Math.pow(ie,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(Re(this.r),Re(this.g),Re(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:Le,formatHex:Le,formatHex8:function(){return`#${qe(this.r)}${qe(this.g)}${qe(this.b)}${qe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ie,toString:Ie})),te(Te,(function(e,t,n,r){return 1===arguments.length?_e(e):new Te(e,t,n,null==r?1:r)}),ne(re,{brighter(e){return e=null==e?ie:Math.pow(ie,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Te(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 we(Ae(e>=240?e-240:e+120,o,r),Ae(e,o,r),Ae(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Te(De(this.h),Pe(this.s),Pe(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("}${De(this.h)}, ${100*Pe(this.s)}%, ${100*Pe(this.l)}%${1===e?")":`, ${e})`}`}}));var Me=Object.prototype.hasOwnProperty,Ne=Object.prototype.toString,ze=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Fe=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ne.call(e)},We=function(e){if(!e||"[object Object]"!==Ne.call(e))return!1;var t,n=Me.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Me.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Me.call(e,t)},Be=function(e,t){ze&&"__proto__"===t.name?ze(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},He=function(e,t){if("__proto__"===t){if(!Me.call(e,t))return;if(je)return je(e,t).value}return e[t]},Ue=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=He(s,n),s!==(o=He(t,n))&&(u&&o&&(We(o)||(i=Fe(o)))?(i?(i=!1,a=r&&Fe(r)?r:[]):a=r&&We(r)?r:{},Be(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Be(s,{name:n,newValue:o}));return s},$e={fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},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"},Ve={_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"},Ke={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Ze{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=be(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([be(e),be(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 Ce(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 Xe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Je(e,t,n){const r=[],o=new Ze(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 Ye(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=Xe(1/t*o,t,n);i=e.getColor(r);break}}r.push(be(i).formatHex())}return r}function Qe(e,t,n){const r=Je(e,n,!0),o=Je(Ye(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(Ye(o,e,t));return i}function et(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 tt(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 nt(e,t,n,r){let o;if(""===e)o=et(null,n);else{o=et(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=tt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function rt(e,t){const n=e.split(".");return{getStyle:(e,r)=>nt(e,r,n.concat(),t)}}function ot(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ot(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function it(e){const t=be(e).rgb(),{r:n,g:r,b:o}=t,[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)}function at(e,t){return+((Math.max(e,t)+.05)/(Math.min(e,t)+.05)).toFixed(5)}rt.resolveRawTheme=e=>{const t=Ue(!0,{},e);return ot(t,t._variables),t.scales&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=Qe(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};function st(){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]=rt(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=be(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Ve:Ge;let r=Ke;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Ue(!0,{},$e,n,r),i=Ue(!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,rt.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=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const s=o.getStyle("","","color"),l=it(s);n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(it);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=it(o),a=r.map((e=>at(i,e))),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(ee.prototype).forEach((e=>{o[e]=ee.prototype[e]})),ee.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const lt=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)}));function ct(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=st(),o=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),lt(5e3,{__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)};return{setTheme:o,externalAPI:r.externalAPI}}function ut(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 dt={},pt=f;function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ht.apply(this,arguments)}function ft(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function mt(e){if(!ft(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=mt(e[n])})),t}function gt(e,t,n={clone:!0}){const r=n.clone?ht({},e):e;return ft(e)&&ft(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ft(t[o])&&o in e&&ft(e[o])?r[o]=gt(e[o],t[o],n):n.clone?r[o]=ft(t[o])?mt(t[o]):t[o]:r[o]=t[o])})),r}function yt(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function vt(e){if("string"!=typeof e)throw new Error(yt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function bt(e){return e&&e.ownerDocument||document}function xt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}dt.createRoot=pt.createRoot,dt.hydrateRoot=pt.hydrateRoot;var Et="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;let St=0;const Ct=e.useId;let wt,Lt=!0,It=!1;const Ot={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 Rt(e){e.metaKey||e.altKey||e.ctrlKey||(Lt=!0)}function qt(){Lt=!1}function kt(){"hidden"===this.visibilityState&&It&&(Lt=!0)}function _t(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Lt||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Ot[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Tt(e,t){const n=ht({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ht({},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]=ht({},i),Object.keys(o).forEach((e=>{n[r][e]=Tt(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const Dt=e=>e;var Pt=(()=>{let e=Dt;return{configure(t){e=t},generate:t=>e(t),reset(){e=Dt}}})();const At={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Mt(e,t,n="Mui"){const r=At[t];return r?`${n}-${r}`:`${Pt.generate(e)}-${t}`}function Nt(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Mt(e,t,n)})),r}function zt(){return zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zt.apply(this,arguments)}function jt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Ft=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){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Wt="-ms-",Bt="-moz-",Ht="-webkit-",Ut="comm",$t="rule",Gt="decl",Vt="@keyframes",Kt=Math.abs,Zt=String.fromCharCode,Xt=Object.assign;function Jt(e){return e.trim()}function Yt(e,t,n){return e.replace(t,n)}function Qt(e,t){return e.indexOf(t)}function en(e,t){return 0|e.charCodeAt(t)}function tn(e,t,n){return e.slice(t,n)}function nn(e){return e.length}function rn(e){return e.length}function on(e,t){return t.push(e),e}var an=1,sn=1,ln=0,cn=0,un=0,dn="";function pn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:an,column:sn,length:a,return:""}}function hn(e,t){return Xt(pn("",null,null,"",null,null,0),e,{length:-e.length},t)}function fn(){return un=cn>0?en(dn,--cn):0,sn--,10===un&&(sn=1,an--),un}function mn(){return un=cn<ln?en(dn,cn++):0,sn++,10===un&&(sn=1,an++),un}function gn(){return en(dn,cn)}function yn(){return cn}function vn(e,t){return tn(dn,e,t)}function bn(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 xn(e){return an=sn=1,ln=nn(dn=e),cn=0,[]}function En(e){return dn="",e}function Sn(e){return Jt(vn(cn-1,Ln(91===e?e+2:40===e?e+1:e)))}function Cn(e){for(;(un=gn())&&un<33;)mn();return bn(e)>2||bn(un)>3?"":" "}function wn(e,t){for(;--t&&mn()&&!(un<48||un>102||un>57&&un<65||un>70&&un<97););return vn(e,yn()+(t<6&&32==gn()&&32==mn()))}function Ln(e){for(;mn();)switch(un){case e:return cn;case 34:case 39:34!==e&&39!==e&&Ln(un);break;case 40:41===e&&Ln(e);break;case 92:mn()}return cn}function In(e,t){for(;mn()&&e+un!==57&&(e+un!==84||47!==gn()););return"/*"+vn(t,cn-1)+"*"+Zt(47===e?e:mn())}function On(e){for(;!bn(gn());)mn();return vn(e,cn)}function Rn(e){return En(qn("",null,null,null,[""],e=xn(e),0,[0],e))}function qn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,m=1,g=1,y=1,v=0,b="",x=o,E=i,S=r,C=b;g;)switch(f=v,v=mn()){case 40:if(108!=f&&58==en(C,d-1)){-1!=Qt(C+=Yt(Sn(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=Sn(v);break;case 9:case 10:case 13:case 32:C+=Cn(f);break;case 92:C+=wn(yn()-1,7);continue;case 47:switch(gn()){case 42:case 47:on(_n(In(mn(),yn()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=nn(C)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:h>0&&nn(C)-d&&on(h>32?Tn(C+";",r,n,d-1):Tn(Yt(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(on(S=kn(C,t,n,c,u,o,s,b,x=[],E=[],d),i),123===v)if(0===u)qn(C,t,S,S,x,i,d,s,E);else switch(99===p&&110===en(C,3)?100:p){case 100:case 109:case 115:qn(e,S,S,r&&on(kn(e,S,S,0,0,o,s,b,o,x=[],d),E),o,E,d,s,r?x:E);break;default:qn(C,S,S,S,[""],E,0,s,E)}}c=u=h=0,m=y=1,b=C="",d=a;break;case 58:d=1+nn(C),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==fn())continue;switch(C+=Zt(v),v*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(nn(C)-1)*y,y=1;break;case 64:45===gn()&&(C+=Sn(mn())),p=gn(),u=d=nn(b=C+=On(yn())),v++;break;case 45:45===f&&2==nn(C)&&(m=0)}}return i}function kn(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=rn(p),f=0,m=0,g=0;f<r;++f)for(var y=0,v=tn(e,d+1,d=Kt(m=a[f])),b=e;y<h;++y)(b=Jt(m>0?p[y]+" "+v:Yt(v,/&\f/g,p[y])))&&(l[g++]=b);return pn(e,t,n,0===o?$t:s,l,c,u)}function _n(e,t,n){return pn(e,t,n,Ut,Zt(un),tn(e,2,-2),0)}function Tn(e,t,n,r){return pn(e,t,n,Gt,tn(e,0,r),tn(e,r+1,-1),r)}function Dn(e,t){for(var n="",r=rn(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Pn(e,t,n,r){switch(e.type){case"@import":case Gt:return e.return=e.return||e.value;case Ut:return"";case Vt:return e.return=e.value+"{"+Dn(e.children,r)+"}";case $t:e.value=e.props.join(",")}return nn(n=Dn(e.children,r))?e.return=e.value+"{"+n+"}":""}function An(e){var t=rn(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var Mn=function(e,t,n){for(var r=0,o=0;r=o,o=gn(),38===r&&12===o&&(t[n]=1),!bn(o);)mn();return vn(e,cn)},Nn=function(e,t){return En(function(e,t){var n=-1,r=44;do{switch(bn(r)){case 0:38===r&&12===gn()&&(t[n]=1),e[n]+=Mn(cn-1,t,n);break;case 2:e[n]+=Sn(r);break;case 4:if(44===r){e[++n]=58===gn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Zt(r)}}while(r=mn());return e}(xn(e),t))},zn=new WeakMap,jn=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)||zn.get(n))&&!r){zn.set(e,!0);for(var o=[],i=Nn(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]}}},Fn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Wn(e,t){switch(function(e,t){return 45^en(e,0)?(((t<<2^en(e,0))<<2^en(e,1))<<2^en(e,2))<<2^en(e,3):0}(e,t)){case 5103:return Ht+"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 Ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ht+e+Bt+e+Wt+e+e;case 6828:case 4268:return Ht+e+Wt+e+e;case 6165:return Ht+e+Wt+"flex-"+e+e;case 5187:return Ht+e+Yt(e,/(\w+).+(:[^]+)/,Ht+"box-$1$2"+Wt+"flex-$1$2")+e;case 5443:return Ht+e+Wt+"flex-item-"+Yt(e,/flex-|-self/,"")+e;case 4675:return Ht+e+Wt+"flex-line-pack"+Yt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ht+e+Wt+Yt(e,"shrink","negative")+e;case 5292:return Ht+e+Wt+Yt(e,"basis","preferred-size")+e;case 6060:return Ht+"box-"+Yt(e,"-grow","")+Ht+e+Wt+Yt(e,"grow","positive")+e;case 4554:return Ht+Yt(e,/([^-])(transform)/g,"$1"+Ht+"$2")+e;case 6187:return Yt(Yt(Yt(e,/(zoom-|grab)/,Ht+"$1"),/(image-set)/,Ht+"$1"),e,"")+e;case 5495:case 3959:return Yt(e,/(image-set\([^]*)/,Ht+"$1$`$1");case 4968:return Yt(Yt(e,/(.+:)(flex-)?(.*)/,Ht+"box-pack:$3"+Wt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ht+e+e;case 4095:case 3583:case 4068:case 2532:return Yt(e,/(.+)-inline(.+)/,Ht+"$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(nn(e)-1-t>6)switch(en(e,t+1)){case 109:if(45!==en(e,t+4))break;case 102:return Yt(e,/(.+:)(.+)-([^]+)/,"$1"+Ht+"$2-$3$1"+Bt+(108==en(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Qt(e,"stretch")?Wn(Yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==en(e,t+1))break;case 6444:switch(en(e,nn(e)-3-(~Qt(e,"!important")&&10))){case 107:return Yt(e,":",":"+Ht)+e;case 101:return Yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ht+(45===en(e,14)?"inline-":"")+"box$3$1"+Ht+"$2$3$1"+Wt+"$2box$3")+e}break;case 5936:switch(en(e,t+11)){case 114:return Ht+e+Wt+Yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ht+e+Wt+Yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ht+e+Wt+Yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ht+e+Wt+e+e}return e}var Bn,Hn,Un="undefined"!=typeof document,$n=Un?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),Gn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Gt:e.return=Wn(e.value,e.length);break;case Vt:return Dn([hn(e,{value:Yt(e.value,"@","@"+Ht)})],r);case $t:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dn([hn(e,{props:[Yt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Dn([hn(e,{props:[Yt(t,/:(plac\w+)/,":"+Ht+"input-$1")]}),hn(e,{props:[Yt(t,/:(plac\w+)/,":-moz-$1")]}),hn(e,{props:[Yt(t,/:(plac\w+)/,Wt+"input-$1")]})],r)}return""}))}}],Vn={},Kn={get exports(){return Vn},set exports(e){Vn=e}},Zn={};function Xn(){return Hn||(Hn=1,Kn.exports=function(){if(Bn)return Zn;Bn=1;var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return Zn.Fragment=r,Zn.jsx=s,Zn.jsxs=s,Zn}()),Vn}var Jn=Xn();let Yn;function Qn(e){const{injectFirst:t,children:n}=e;return t&&Yn?Jn.jsx(m,{value:Yn,children:n}):n}
7
+ import*as e from"react";import t,{useState as n,useEffect as r,forwardRef as o,useMemo as i,useImperativeHandle as a,useReducer as s,useCallback as l,useLayoutEffect as c,PureComponent as u,useRef as d,createElement as p,useContext as h}from"react";import f from"react-dom";import{CacheProvider as m,ThemeContext as g}from"@emotion/react";import{Checkbox as y,Radio as v,Typography as b,FormControlLabel as x,Box as E,Grid as S,Tooltip as C,Paper as w,IconButton as L,Popover as I,MenuList as O,MenuItem as R,ListItemIcon as k,Divider as q,InputAdornment as _,OutlinedInput as T,Badge as D,List as A,ListItem as P,Button as M,Icon as N,CircularProgress as z}from"@mui/material";import j from"@emotion/styled";function F(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];n.push.apply(n,arguments);var r=Function.bind.apply(t,n);return new r}return 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 W={};function B(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 H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(this,arguments)}function G(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(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 g?t:g,a=Object.create(i.prototype),s=new k(r||[]);return o(a,"_invoke",{value:L(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",h="executing",f="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(q([])));E&&E!==n&&r.call(E,a)&&(b=E);var S=v.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(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 L(e,t,n){var r=p;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=d(e,t,n);if("normal"===l.type){if(r=n.done?f:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}function I(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,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;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,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}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 R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function q(e){if(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}}return{next:_}}function _(){return{value:t,done:!0}}return y.prototype=v,o(S,"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(S),e},e.awrap=function(e){return{__await:e}},C(w.prototype),c(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"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=q,k.prototype={constructor:k,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(R),!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,m):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),m},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),R(n),m}},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;R(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:q(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({get exports(){return W},set exports(e){W=e}});const V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))};function K(){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?V(i,o):i}};return o}const Z=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=K({initial:e,fallback:t});return{translator:n}};var X={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_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_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_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":"資料更新已取消"}},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":"重試"}},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_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Klicken zum Freigeben","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 J(e){const t=Z({initial:e});return Object.keys(X).forEach((e=>{t.translator.add(X[e])})),{translator:t.translator}}var Y={};function Q(){Q.init.call(this)}Y.isObject=function(e){return"object"==typeof e&&null!==e},Y.isNumber=function(e){return"number"==typeof e},Y.isUndefined=function(e){return void 0===e},Y.isFunction=function(e){return"function"==typeof e};var ee=Q;function te(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function re(){}Q.EventEmitter=Q,Q.prototype._events=void 0,Q.prototype._maxListeners=void 0,Q.defaultMaxListeners=10,Q.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Q.prototype.setMaxListeners=function(e){if(!Y.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Q.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Y.isUndefined(n))return!1;if(Y.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Y.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Q.prototype.addListener=function(e,t){var n;if(!Y.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Y.isFunction(t.listener)?t.listener:t),this._events[e]?Y.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Y.isObject(this._events[e])&&!this._events[e].warned)&&((n=Y.isUndefined(this._maxListeners)?Q.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Y.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Y.isFunction(console.trace)&&console.trace()));return this},Q.prototype.on=Q.prototype.addListener,Q.prototype.once=function(e,t){if(!Y.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Q.prototype.removeListener=function(e,t){var n,r,o,i;if(!Y.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Y.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Y.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Q.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Y.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Q.prototype.listeners=function(e){return this._events&&this._events[e]?Y.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Q.listenerCount=function(e,t){return e._events&&e._events[t]?Y.isFunction(e._events[t])?1:e._events[t].length:0};var oe=.7,ie=1/oe,ae="\\s*([+-]?\\d+)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,ue=new RegExp(`^rgb\\(${ae},${ae},${ae}\\)$`),de=new RegExp(`^rgb\\(${le},${le},${le}\\)$`),pe=new RegExp(`^rgba\\(${ae},${ae},${ae},${se}\\)$`),he=new RegExp(`^rgba\\(${le},${le},${le},${se}\\)$`),fe=new RegExp(`^hsl\\(${se},${le},${le}\\)$`),me=new RegExp(`^hsla\\(${se},${le},${le},${se}\\)$`),ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ye(){return this.rgb().formatHex()}function ve(){return this.rgb().formatRgb()}function be(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xe(t):3===n?new we(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ee(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ee(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=ue.exec(e))?new we(t[1],t[2],t[3],1):(t=de.exec(e))?new we(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pe.exec(e))?Ee(t[1],t[2],t[3],t[4]):(t=he.exec(e))?Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fe.exec(e))?qe(t[1],t[2]/100,t[3]/100,1):(t=me.exec(e))?qe(t[1],t[2]/100,t[3]/100,t[4]):ge.hasOwnProperty(e)?xe(ge[e]):"transparent"===e?new we(NaN,NaN,NaN,0):null}function xe(e){return new we(e>>16&255,e>>8&255,255&e,1)}function Ee(e,t,n,r){return r<=0&&(e=t=n=NaN),new we(e,t,n,r)}function Se(e){return e instanceof re||(e=be(e)),e?new we((e=e.rgb()).r,e.g,e.b,e.opacity):new we}function Ce(e,t,n,r){return 1===arguments.length?Se(e):new we(e,t,n,null==r?1:r)}function we(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Le(){return`#${ke(this.r)}${ke(this.g)}${ke(this.b)}`}function Ie(){const e=Oe(this.opacity);return`${1===e?"rgb(":"rgba("}${Re(this.r)}, ${Re(this.g)}, ${Re(this.b)}${1===e?")":`, ${e})`}`}function Oe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Re(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ke(e){return((e=Re(e))<16?"0":"")+e.toString(16)}function qe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,n,r)}function _e(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof re||(e=be(e)),!e)return new Te;if(e instanceof Te)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 Te(a,s,l,e.opacity)}function Te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function De(e){return(e=(e||0)%360)<0?e+360:e}function Ae(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)}te(re,be,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ye,formatHex:ye,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _e(this).formatHsl()},formatRgb:ve,toString:ve}),te(we,Ce,ne(re,{brighter(e){return e=null==e?ie:Math.pow(ie,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(Re(this.r),Re(this.g),Re(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:Le,formatHex:Le,formatHex8:function(){return`#${ke(this.r)}${ke(this.g)}${ke(this.b)}${ke(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ie,toString:Ie})),te(Te,(function(e,t,n,r){return 1===arguments.length?_e(e):new Te(e,t,n,null==r?1:r)}),ne(re,{brighter(e){return e=null==e?ie:Math.pow(ie,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Te(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 we(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 Te(De(this.h),Ae(this.s),Ae(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("}${De(this.h)}, ${100*Ae(this.s)}%, ${100*Ae(this.l)}%${1===e?")":`, ${e})`}`}}));var Me=Object.prototype.hasOwnProperty,Ne=Object.prototype.toString,ze=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Fe=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ne.call(e)},We=function(e){if(!e||"[object Object]"!==Ne.call(e))return!1;var t,n=Me.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Me.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Me.call(e,t)},Be=function(e,t){ze&&"__proto__"===t.name?ze(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},He=function(e,t){if("__proto__"===t){if(!Me.call(e,t))return;if(je)return je(e,t).value}return e[t]},Ue=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=He(s,n),s!==(o=He(t,n))&&(u&&o&&(We(o)||(i=Fe(o)))?(i?(i=!1,a=r&&Fe(r)?r:[]):a=r&&We(r)?r:{},Be(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Be(s,{name:n,newValue:o}));return s},$e={fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},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"},Ve={_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"},Ke={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Ze{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=be(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([be(e),be(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 Ce(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 Xe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Je(e,t,n){const r=[],o=new Ze(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 Ye(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=Xe(1/t*o,t,n);i=e.getColor(r);break}}r.push(be(i).formatHex())}return r}function Qe(e,t,n){const r=Je(e,n,!0),o=Je(Ye(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(Ye(o,e,t));return i}function et(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 tt(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 nt(e,t,n,r){let o;if(""===e)o=et(null,n);else{o=et(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=tt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function rt(e,t){const n=e.split(".");return{getStyle:(e,r)=>nt(e,r,n.concat(),t)}}function ot(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ot(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function it(e){const t=be(e).rgb(),{r:n,g:r,b:o}=t,[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)}function at(e,t){return+((Math.max(e,t)+.05)/(Math.min(e,t)+.05)).toFixed(5)}rt.resolveRawTheme=e=>{const t=Ue(!0,{},e);return ot(t,t._variables),t.scales&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=Qe(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};function st(){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]=rt(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=be(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Ve:Ge;let r=Ke;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Ue(!0,{},$e,n,r),i=Ue(!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,rt.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=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const s=o.getStyle("","","color"),l=it(s);n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(it);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=it(o),a=r.map((e=>at(i,e))),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(ee.prototype).forEach((e=>{o[e]=ee.prototype[e]})),ee.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const lt=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)}));function ct(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=st(),o=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),lt(5e3,{__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)};return{setTheme:o,externalAPI:r.externalAPI}}function ut(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 dt={},pt=f;function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ht.apply(this,arguments)}function ft(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function mt(e){if(!ft(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=mt(e[n])})),t}function gt(e,t,n={clone:!0}){const r=n.clone?ht({},e):e;return ft(e)&&ft(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ft(t[o])&&o in e&&ft(e[o])?r[o]=gt(e[o],t[o],n):n.clone?r[o]=ft(t[o])?mt(t[o]):t[o]:r[o]=t[o])})),r}function yt(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function vt(e){if("string"!=typeof e)throw new Error(yt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function bt(e){return e&&e.ownerDocument||document}function xt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}dt.createRoot=pt.createRoot,dt.hydrateRoot=pt.hydrateRoot;var Et="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;let St=0;const Ct=e.useId;let wt,Lt=!0,It=!1;const Ot={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 Rt(e){e.metaKey||e.altKey||e.ctrlKey||(Lt=!0)}function kt(){Lt=!1}function qt(){"hidden"===this.visibilityState&&It&&(Lt=!0)}function _t(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Lt||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Ot[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Tt(e,t){const n=ht({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ht({},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]=ht({},i),Object.keys(o).forEach((e=>{n[r][e]=Tt(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const Dt=e=>e;var At=(()=>{let e=Dt;return{configure(t){e=t},generate:t=>e(t),reset(){e=Dt}}})();const Pt={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Mt(e,t,n="Mui"){const r=Pt[t];return r?`${n}-${r}`:`${At.generate(e)}-${t}`}function Nt(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Mt(e,t,n)})),r}function zt(){return zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zt.apply(this,arguments)}function jt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Ft=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){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Wt="-ms-",Bt="-moz-",Ht="-webkit-",Ut="comm",$t="rule",Gt="decl",Vt="@keyframes",Kt=Math.abs,Zt=String.fromCharCode,Xt=Object.assign;function Jt(e){return e.trim()}function Yt(e,t,n){return e.replace(t,n)}function Qt(e,t){return e.indexOf(t)}function en(e,t){return 0|e.charCodeAt(t)}function tn(e,t,n){return e.slice(t,n)}function nn(e){return e.length}function rn(e){return e.length}function on(e,t){return t.push(e),e}var an=1,sn=1,ln=0,cn=0,un=0,dn="";function pn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:an,column:sn,length:a,return:""}}function hn(e,t){return Xt(pn("",null,null,"",null,null,0),e,{length:-e.length},t)}function fn(){return un=cn>0?en(dn,--cn):0,sn--,10===un&&(sn=1,an--),un}function mn(){return un=cn<ln?en(dn,cn++):0,sn++,10===un&&(sn=1,an++),un}function gn(){return en(dn,cn)}function yn(){return cn}function vn(e,t){return tn(dn,e,t)}function bn(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 xn(e){return an=sn=1,ln=nn(dn=e),cn=0,[]}function En(e){return dn="",e}function Sn(e){return Jt(vn(cn-1,Ln(91===e?e+2:40===e?e+1:e)))}function Cn(e){for(;(un=gn())&&un<33;)mn();return bn(e)>2||bn(un)>3?"":" "}function wn(e,t){for(;--t&&mn()&&!(un<48||un>102||un>57&&un<65||un>70&&un<97););return vn(e,yn()+(t<6&&32==gn()&&32==mn()))}function Ln(e){for(;mn();)switch(un){case e:return cn;case 34:case 39:34!==e&&39!==e&&Ln(un);break;case 40:41===e&&Ln(e);break;case 92:mn()}return cn}function In(e,t){for(;mn()&&e+un!==57&&(e+un!==84||47!==gn()););return"/*"+vn(t,cn-1)+"*"+Zt(47===e?e:mn())}function On(e){for(;!bn(gn());)mn();return vn(e,cn)}function Rn(e){return En(kn("",null,null,null,[""],e=xn(e),0,[0],e))}function kn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,m=1,g=1,y=1,v=0,b="",x=o,E=i,S=r,C=b;g;)switch(f=v,v=mn()){case 40:if(108!=f&&58==en(C,d-1)){-1!=Qt(C+=Yt(Sn(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=Sn(v);break;case 9:case 10:case 13:case 32:C+=Cn(f);break;case 92:C+=wn(yn()-1,7);continue;case 47:switch(gn()){case 42:case 47:on(_n(In(mn(),yn()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=nn(C)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:h>0&&nn(C)-d&&on(h>32?Tn(C+";",r,n,d-1):Tn(Yt(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(on(S=qn(C,t,n,c,u,o,s,b,x=[],E=[],d),i),123===v)if(0===u)kn(C,t,S,S,x,i,d,s,E);else switch(99===p&&110===en(C,3)?100:p){case 100:case 109:case 115:kn(e,S,S,r&&on(qn(e,S,S,0,0,o,s,b,o,x=[],d),E),o,E,d,s,r?x:E);break;default:kn(C,S,S,S,[""],E,0,s,E)}}c=u=h=0,m=y=1,b=C="",d=a;break;case 58:d=1+nn(C),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==fn())continue;switch(C+=Zt(v),v*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(nn(C)-1)*y,y=1;break;case 64:45===gn()&&(C+=Sn(mn())),p=gn(),u=d=nn(b=C+=On(yn())),v++;break;case 45:45===f&&2==nn(C)&&(m=0)}}return i}function qn(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=rn(p),f=0,m=0,g=0;f<r;++f)for(var y=0,v=tn(e,d+1,d=Kt(m=a[f])),b=e;y<h;++y)(b=Jt(m>0?p[y]+" "+v:Yt(v,/&\f/g,p[y])))&&(l[g++]=b);return pn(e,t,n,0===o?$t:s,l,c,u)}function _n(e,t,n){return pn(e,t,n,Ut,Zt(un),tn(e,2,-2),0)}function Tn(e,t,n,r){return pn(e,t,n,Gt,tn(e,0,r),tn(e,r+1,-1),r)}function Dn(e,t){for(var n="",r=rn(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"@import":case Gt:return e.return=e.return||e.value;case Ut:return"";case Vt:return e.return=e.value+"{"+Dn(e.children,r)+"}";case $t:e.value=e.props.join(",")}return nn(n=Dn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pn(e){var t=rn(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var Mn=function(e,t,n){for(var r=0,o=0;r=o,o=gn(),38===r&&12===o&&(t[n]=1),!bn(o);)mn();return vn(e,cn)},Nn=function(e,t){return En(function(e,t){var n=-1,r=44;do{switch(bn(r)){case 0:38===r&&12===gn()&&(t[n]=1),e[n]+=Mn(cn-1,t,n);break;case 2:e[n]+=Sn(r);break;case 4:if(44===r){e[++n]=58===gn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Zt(r)}}while(r=mn());return e}(xn(e),t))},zn=new WeakMap,jn=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)||zn.get(n))&&!r){zn.set(e,!0);for(var o=[],i=Nn(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]}}},Fn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Wn(e,t){switch(function(e,t){return 45^en(e,0)?(((t<<2^en(e,0))<<2^en(e,1))<<2^en(e,2))<<2^en(e,3):0}(e,t)){case 5103:return Ht+"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 Ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ht+e+Bt+e+Wt+e+e;case 6828:case 4268:return Ht+e+Wt+e+e;case 6165:return Ht+e+Wt+"flex-"+e+e;case 5187:return Ht+e+Yt(e,/(\w+).+(:[^]+)/,Ht+"box-$1$2"+Wt+"flex-$1$2")+e;case 5443:return Ht+e+Wt+"flex-item-"+Yt(e,/flex-|-self/,"")+e;case 4675:return Ht+e+Wt+"flex-line-pack"+Yt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ht+e+Wt+Yt(e,"shrink","negative")+e;case 5292:return Ht+e+Wt+Yt(e,"basis","preferred-size")+e;case 6060:return Ht+"box-"+Yt(e,"-grow","")+Ht+e+Wt+Yt(e,"grow","positive")+e;case 4554:return Ht+Yt(e,/([^-])(transform)/g,"$1"+Ht+"$2")+e;case 6187:return Yt(Yt(Yt(e,/(zoom-|grab)/,Ht+"$1"),/(image-set)/,Ht+"$1"),e,"")+e;case 5495:case 3959:return Yt(e,/(image-set\([^]*)/,Ht+"$1$`$1");case 4968:return Yt(Yt(e,/(.+:)(flex-)?(.*)/,Ht+"box-pack:$3"+Wt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ht+e+e;case 4095:case 3583:case 4068:case 2532:return Yt(e,/(.+)-inline(.+)/,Ht+"$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(nn(e)-1-t>6)switch(en(e,t+1)){case 109:if(45!==en(e,t+4))break;case 102:return Yt(e,/(.+:)(.+)-([^]+)/,"$1"+Ht+"$2-$3$1"+Bt+(108==en(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Qt(e,"stretch")?Wn(Yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==en(e,t+1))break;case 6444:switch(en(e,nn(e)-3-(~Qt(e,"!important")&&10))){case 107:return Yt(e,":",":"+Ht)+e;case 101:return Yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ht+(45===en(e,14)?"inline-":"")+"box$3$1"+Ht+"$2$3$1"+Wt+"$2box$3")+e}break;case 5936:switch(en(e,t+11)){case 114:return Ht+e+Wt+Yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ht+e+Wt+Yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ht+e+Wt+Yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ht+e+Wt+e+e}return e}var Bn,Hn,Un="undefined"!=typeof document,$n=Un?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),Gn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Gt:e.return=Wn(e.value,e.length);break;case Vt:return Dn([hn(e,{value:Yt(e.value,"@","@"+Ht)})],r);case $t:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dn([hn(e,{props:[Yt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Dn([hn(e,{props:[Yt(t,/:(plac\w+)/,":"+Ht+"input-$1")]}),hn(e,{props:[Yt(t,/:(plac\w+)/,":-moz-$1")]}),hn(e,{props:[Yt(t,/:(plac\w+)/,Wt+"input-$1")]})],r)}return""}))}}],Vn={},Kn={get exports(){return Vn},set exports(e){Vn=e}},Zn={};function Xn(){return Hn||(Hn=1,Kn.exports=function(){if(Bn)return Zn;Bn=1;var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return Zn.Fragment=r,Zn.jsx=s,Zn.jsxs=s,Zn}()),Vn}var Jn=Xn();let Yn;function Qn(e){const{injectFirst:t,children:n}=e;return t&&Yn?Jn.jsx(m,{value:Yn,children:n}):n}
8
8
  /**
9
9
  * @mui/styled-engine v5.11.11
10
10
  *
11
11
  * @license MIT
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
- */"object"==typeof document&&(Yn=function(e){var t=e.key;if(Un&&"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||Gn,a={},s=[];Un&&(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=[jn,Fn];if(Un){var u,d=[Pn,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=An(c.concat(i,d));o=function(e,t,n,r){u=n,Dn(Rn(e?e+"{"+t.styles+"}":t.styles),p),r&&(y.inserted[t.name]=!0)}}else{var h=[Pn],f=An(c.concat(i,h)),m=$n(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=Dn(Rn(e?e+"{"+t.styles+"}":t.styles),f)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new Ft({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 y.sheet.hydrate(s),y}({key:"css",prepend:!0}));function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t){return t?gt(e,t,{clone:!1}):e}const nr={xs:0,sm:600,md:900,lg:1200,xl:1536},rr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nr[e]}px)`};function or(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||rr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||rr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||nr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function ir(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 ar(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ir(e,n)||r,t&&(o=t(o,r,e)),o}function sr(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=ir(e.theme,r)||{};return or(e,i,(e=>{let r=ar(a,o,e);return e===r&&"string"==typeof e&&(r=ar(a,o,`${t}${"default"===e?"":vt(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}function lr(...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]?tr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const cr={m:"margin",p:"padding"},ur={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!dr[e])return[e];e=dr[e]}const[t,n]=e.split(""),r=cr[t],o=ur[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),hr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function mr(e,t,n,r){var o;const i=null!=(o=ir(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 gr(e){return mr(e,"spacing",8)}function yr(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 vr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=yr(t,n),e)),{})}(pr(n),r);return or(e,e[n],o)}function br(e,t){const n=gr(e.theme);return Object.keys(e).map((r=>vr(e,t,r,n))).reduce(tr,{})}function xr(e){return br(e,hr)}function Er(e){return br(e,fr)}function Sr(e){return"number"!=typeof e?e:`${e}px solid`}xr.propTypes={},xr.filterProps=hr,Er.propTypes={},Er.filterProps=fr;const Cr=sr({prop:"border",themeKey:"borders",transform:Sr}),wr=sr({prop:"borderTop",themeKey:"borders",transform:Sr}),Lr=sr({prop:"borderRight",themeKey:"borders",transform:Sr}),Ir=sr({prop:"borderBottom",themeKey:"borders",transform:Sr}),Or=sr({prop:"borderLeft",themeKey:"borders",transform:Sr}),Rr=sr({prop:"borderColor",themeKey:"palette"}),qr=sr({prop:"borderTopColor",themeKey:"palette"}),kr=sr({prop:"borderRightColor",themeKey:"palette"}),_r=sr({prop:"borderBottomColor",themeKey:"palette"}),Tr=sr({prop:"borderLeftColor",themeKey:"palette"}),Dr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=mr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:yr(t,e)});return or(e,e.borderRadius,n)}return null};Dr.propTypes={},Dr.filterProps=["borderRadius"],lr(Cr,wr,Lr,Ir,Or,Rr,qr,kr,_r,Tr,Dr);const Pr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=mr(e.theme,"spacing",8),n=e=>({gap:yr(t,e)});return or(e,e.gap,n)}return null};Pr.propTypes={},Pr.filterProps=["gap"];const Ar=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=mr(e.theme,"spacing",8),n=e=>({columnGap:yr(t,e)});return or(e,e.columnGap,n)}return null};Ar.propTypes={},Ar.filterProps=["columnGap"];const Mr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=mr(e.theme,"spacing",8),n=e=>({rowGap:yr(t,e)});return or(e,e.rowGap,n)}return null};Mr.propTypes={},Mr.filterProps=["rowGap"];function Nr(e,t){return"grey"===t?t:e}lr(Pr,Ar,Mr,sr({prop:"gridColumn"}),sr({prop:"gridRow"}),sr({prop:"gridAutoFlow"}),sr({prop:"gridAutoColumns"}),sr({prop:"gridAutoRows"}),sr({prop:"gridTemplateColumns"}),sr({prop:"gridTemplateRows"}),sr({prop:"gridTemplateAreas"}),sr({prop:"gridArea"}));function zr(e){return e<=1&&0!==e?100*e+"%":e}lr(sr({prop:"color",themeKey:"palette",transform:Nr}),sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nr}),sr({prop:"backgroundColor",themeKey:"palette",transform:Nr}));const jr=sr({prop:"width",transform:zr}),Fr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||nr[t]||zr(t)}};return or(e,e.maxWidth,t)}return null};Fr.filterProps=["maxWidth"];const Wr=sr({prop:"minWidth",transform:zr}),Br=sr({prop:"height",transform:zr}),Hr=sr({prop:"maxHeight",transform:zr}),Ur=sr({prop:"minHeight",transform:zr});sr({prop:"size",cssProperty:"width",transform:zr}),sr({prop:"size",cssProperty:"height",transform:zr});lr(jr,Fr,Wr,Br,Hr,Ur,sr({prop:"boxSizing"}));var $r={border:{themeKey:"borders",transform:Sr},borderTop:{themeKey:"borders",transform:Sr},borderRight:{themeKey:"borders",transform:Sr},borderBottom:{themeKey:"borders",transform:Sr},borderLeft:{themeKey:"borders",transform:Sr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Dr},color:{themeKey:"palette",transform:Nr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nr},backgroundColor:{themeKey:"palette",transform:Nr},p:{style:Er},pt:{style:Er},pr:{style:Er},pb:{style:Er},pl:{style:Er},px:{style:Er},py:{style:Er},padding:{style:Er},paddingTop:{style:Er},paddingRight:{style:Er},paddingBottom:{style:Er},paddingLeft:{style:Er},paddingX:{style:Er},paddingY:{style:Er},paddingInline:{style:Er},paddingInlineStart:{style:Er},paddingInlineEnd:{style:Er},paddingBlock:{style:Er},paddingBlockStart:{style:Er},paddingBlockEnd:{style:Er},m:{style:xr},mt:{style:xr},mr:{style:xr},mb:{style:xr},ml:{style:xr},mx:{style:xr},my:{style:xr},margin:{style:xr},marginTop:{style:xr},marginRight:{style:xr},marginBottom:{style:xr},marginLeft:{style:xr},marginX:{style:xr},marginY:{style:xr},marginInline:{style:xr},marginInlineStart:{style:xr},marginInlineEnd:{style:xr},marginBlock:{style:xr},marginBlockStart:{style:xr},marginBlockEnd:{style:xr},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:Pr},rowGap:{style:Mr},columnGap:{style:Ar},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zr},maxWidth:{style:Fr},minWidth:{transform:zr},height:{transform:zr},maxHeight:{transform:zr},minHeight:{transform:zr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Gr=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;const u=ir(n,s)||{};if(c)return c(o);return or(o,t,(t=>{let n=ar(u,l,t);return t===n&&"string"==typeof t&&(n=ar(u,l,`${e}${"default"===t?"":vt(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:$r;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=tr(l,e(n,o,i,a));else{const e=or({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)?l=tr(l,e):l[n]=t({sx:o,theme:i})}else l=tr(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();Gr.filterProps=["sx"];var Vr=Gr;function Kr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const Zr=["values","unit","step"];function Xr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Kr(e,Zr),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>er({},e,{[t.key]:t.val})),{})})(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 er({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)}var Jr={borderRadius:4};function Yr(e=8){if(e.mui)return e;const t=gr({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}const Qr=["breakpoints","palette","spacing","shape"];function eo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Kr(e,Qr),s=Xr(n),l=Yr(o);let c=gt({breakpoints:s,direction:"ltr",components:{},palette:er({mode:"light"},r),spacing:l,shape:er({},Jr,i)},a);return c=t.reduce(((e,t)=>gt(e,t)),c),c.unstable_sxConfig=er({},$r,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Vr({sx:e,theme:this})},c}function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},to.apply(this,arguments)}var no=e.createContext(null);function ro(){return e.useContext(no)}var oo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function io(t){const{children:n,theme:r}=t,o=ro(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return to({},e,t)}(o,r);return null!=e&&(e[oo]=null!==o),e}),[r,o]);return Jn.jsx(no.Provider,{value:i,children:n})}function ao(e=null){const t=ro();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const so=eo();function lo(e=so){return ao(e)}const co=["variant"];function uo(e){return 0===e.length}function po(e){const{variant:t}=e,n=Kr(e,co);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?uo(r)?e[t]:vt(e[t]):`${uo(r)?t:vt(t)}${vt(e[t].toString())}`})),r}const ho=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],fo=["theme"],mo=["theme"];function go(e){return 0===Object.keys(e).length}function yo(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const vo=eo();function bo(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Tt(t.components[n].defaultProps,r):r}function xo(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Eo(e){if(e.type)return e;if("#"===e.charAt(0))return Eo(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(yt(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(yt(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function So(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 Co(e){let t="hsl"===(e=Eo(e)).type||"hsla"===e.type?Eo(function(e){e=Eo(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])),So({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}const wo={};function Lo(e){const t=lo();return Jn.jsx(g.Provider,{value:"object"==typeof t?t:wo,children:e.children})}function Io(e){const{children:t,theme:n}=e;return Jn.jsx(io,{theme:n,children:Jn.jsx(Lo,{children:t})})}const Oo=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Ro=["type","mode"];var qo={black:"#000",white:"#fff"};var ko={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var _o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var To={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Do={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Po={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Ao={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Mo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const No=["mode","contrastThreshold","tonalOffset"],zo={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:qo.white,default:qo.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}},jo={text:{primary:qo.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:qo.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 Fo(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Eo(e),t=xo(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 So(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Eo(e),t=xo(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 So(e)}(e.main,i)))}function Wo(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=jt(e,No),i=e.primary||function(e="light"){return"dark"===e?{main:Po[200],light:Po[50],dark:Po[400]}:{main:Po[700],light:Po[400],dark:Po[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:_o[200],light:_o[50],dark:_o[400]}:{main:_o[500],light:_o[300],dark:_o[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:To[500],light:To[300],dark:To[700]}:{main:To[700],light:To[400],dark:To[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Ao[400],light:Ao[300],dark:Ao[700]}:{main:Ao[700],light:Ao[500],dark:Ao[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Mo[400],light:Mo[300],dark:Mo[700]}:{main:Mo[800],light:Mo[500],dark:Mo[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Do[400],light:Do[300],dark:Do[700]}:{main:"#ed6c02",light:Do[500],dark:Do[900]}}(t);function d(e){const t=function(e,t){const n=Co(e),r=Co(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,jo.text.primary)>=n?jo.text.primary:zo.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=zt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(yt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(yt(12,t?` (${t})`:"",JSON.stringify(e.main)));return Fo(e,"light",o,r),Fo(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:jo,light:zo};return gt(zt({common:zt({},qo),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:ko,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const Bo=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ho={textTransform:"uppercase"},Uo='"Roboto", "Helvetica", "Arial", sans-serif';function $o(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Uo,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=jt(n,Bo),h=o/14,f=d||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return zt({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Uo?{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,Ho),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ho)};return gt(zt({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Go(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Vo=["none",Go(0,2,1,-1,0,1,1,0,0,1,3,0),Go(0,3,1,-2,0,2,2,0,0,1,5,0),Go(0,3,3,-2,0,3,4,0,0,1,8,0),Go(0,2,4,-1,0,4,5,0,0,1,10,0),Go(0,3,5,-1,0,5,8,0,0,1,14,0),Go(0,3,5,-1,0,6,10,0,0,1,18,0),Go(0,4,5,-2,0,7,10,1,0,2,16,1),Go(0,5,5,-3,0,8,10,1,0,3,14,2),Go(0,5,6,-3,0,9,12,1,0,3,16,2),Go(0,6,6,-3,0,10,14,1,0,4,18,3),Go(0,6,7,-4,0,11,15,1,0,4,20,3),Go(0,7,8,-4,0,12,17,2,0,5,22,4),Go(0,7,8,-4,0,13,19,2,0,5,24,4),Go(0,7,9,-4,0,14,21,2,0,5,26,4),Go(0,8,9,-5,0,15,22,2,0,6,28,5),Go(0,8,10,-5,0,16,24,2,0,6,30,5),Go(0,8,11,-5,0,17,26,2,0,6,32,5),Go(0,9,11,-5,0,18,28,2,0,7,34,6),Go(0,9,12,-6,0,19,29,2,0,7,36,6),Go(0,10,13,-6,0,20,31,3,0,8,38,7),Go(0,10,13,-6,0,21,33,3,0,8,40,7),Go(0,10,14,-6,0,22,35,3,0,8,42,7),Go(0,11,14,-7,0,23,36,3,0,9,44,8),Go(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ko=["duration","easing","delay"],Zo={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)"},Xo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jo(e){return`${Math.round(e)}ms`}function Yo(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Qo(e){const t=zt({},Zo,e.easing),n=zt({},Xo,e.duration);return zt({getAutoHeightDuration:Yo,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return jt(r,Ko),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Jo(o)} ${i} ${"string"==typeof a?a:Jo(a)}`)).join(",")}},e,{easing:t,duration:n})}var ei={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ti=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ni(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=jt(e,ti);if(e.vars)throw new Error(yt(18));const s=Wo(r),l=eo(e);let c=gt(l,{mixins:(u=l.breakpoints,d=n,zt({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Vo.slice(),typography:$o(s,i),transitions:Qo(o),zIndex:zt({},ei)});var u,d;return c=gt(c,a),c=t.reduce(((e,t)=>gt(e,t)),c),c.unstable_sxConfig=zt({},$r,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Vr({sx:e,theme:this})},c}var ri=ni();function oi(){return lo(ri)}function ii({props:e,name:t}){return function({props:e,name:t,defaultTheme:n}){return bo({theme:lo(n),name:t,props:e})}({props:e,name:t,defaultTheme:ri})}const ai=function(e={}){const{defaultTheme:t=vo,rootShouldForwardProp:n=yo,slotShouldForwardProp:r=yo}=e,o=e=>{const n=go(e.theme)?t:e.theme;return Vr(er({},e,{theme:n}))};return o.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:l,skipSx:c,overridesResolver:u}=i,d=Kr(i,ho),p=void 0!==l?l:s&&"Root"!==s||!1,h=c||!1;let f=yo;"Root"===s?f=n:s?f=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(f=void 0);const m=function(e,t){return j(e,t)}(e,er({shouldForwardProp:f,label:undefined},d)),g=(e,...n)=>{const r=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:r}=n,o=Kr(n,fo);return e(er({theme:go(r)?t:r},o))}:e)):[];let i=e;a&&u&&r.push((e=>{const n=go(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,n);if(r){const t={};return Object.entries(r).forEach((([r,o])=>{t[r]="function"==typeof o?o(er({},e,{theme:n})):o})),u(e,t)}return null})),a&&!p&&r.push((e=>{const n=go(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[po(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=po(e.props);r[t]=e.style})),r})(a,n),n,a)})),h||r.push(o);const s=r.length-n.length;if(Array.isArray(e)&&s>0){const t=new Array(s).fill("");i=[...e,...t],i.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(i=n=>{let{theme:r}=n,o=Kr(n,mo);return e(er({theme:go(r)?t:r},o))});return m(i,...r)};return m.withConfig&&(g.withConfig=m.withConfig),g}}({defaultTheme:ri,rootShouldForwardProp:e=>yo(e)&&"classes"!==e});var si=ai;function li(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=li(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ci(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=li(e))&&(r&&(r+=" "),r+=t);return r}function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ui.apply(this,arguments)}function di(e,t){return di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},di(e,t)}function pi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,di(e,t)}function hi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var fi=Nt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),mi={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 gi="#009845",yi="#3F8AB3",vi="#ffffff",bi="#404040",xi="#333333",Ei="#1A1A1A",Si={mode:"light",palette:{primary:{main:bi,contrastText:vi},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:bi,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},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:vi,default:vi,lightest:vi,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:yi,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:gi,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:vi,alternativeContrastText:bi,excludedContrastText:bi},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)"}}},Ci={mode:"dark",palette:{primary:{main:xi,contrastText:vi},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:vi,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:vi,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:bi,lighter:xi,darker:"#262626",darkest:Ei},custom:{focusBorder:yi,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:gi,alternative:xi,excluded:Ei,mainContrastText:vi,alternativeContrastText:vi,excludedContrastText:vi},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)"}}},wi={},Li=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(fi.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(fi.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(fi.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(fi.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Ii(e){let t=Si,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Ci));const r=JSON.stringify(t);if(wi[r])return wi[r];const o={palette:H(H({type:t.mode},mi.palette),t.palette),typography:H({},mi.typography),shadows:mi.shadows,props:H({},mi.props),shape:H({},mi.shape)};return wi[r]=ni(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=zt({},jt(e,Oo),{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=Yr(e.spacing);const l=Xr(e.breakpoints||{}),c=s.spacing;s.mixins=zt({gutters:(e={})=>zt({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:zt({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,p=jt(o,Ro),h=d||u||"light";return s.palette=zt({text:{hint:"dark"===h?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h},p),s}(H(H({},o),{},{overrides:Li(o)}))),wi[r].name=n,wi[r]}Pt.configure((e=>"njs-".concat("9a45","-").concat(e.replace("Mui",""))));var Oi=t.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),Ri=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const o=e,i=[],a={get:e=>o[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return o[e]=n,t({type:"SET",value:n}),n},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));o[e]=null},dispatch:e=>{i.forEach((t=>t(e?{}:o)))}},s=()=>{const[,e]=n(o);return r((()=>(i.push(e),()=>{const t=i.indexOf(e);i.splice(t,1)})),[e]),[a]};return[s,a]};const[qi,ki]=Ri({}),[_i,Ti]=Ri({}),[Di,Pi]=Ri({}),[Ai,Mi]=Ri({});function Ni(e){if(!e.session)return[];const[t]=qi(),n=e?e.id:null;let o=t.get(n);return r((()=>{e&&!o&&(o=function(e){let{app:t}=e;const n="".concat(t.id),r=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Mi.get(n);t&&(await t.endSelections(e),Mi.clear(n),Pi.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===Mi.get(n))return;r(i),Mi.set(n,e);const a=Array.isArray(o)?o:[o],s=async r=>{try{await e.beginSelections(a),Mi.set(n,e)}catch(e){6003!==e.code||r?Mi.clear(n):(await t.abortModal(i),s(!0))}};await s()},end:r};Ti.set(n,o);const i={model:t,isInModal:()=>!!Mi.get(n),isModal:e=>e?Mi.get(n)===e:!!Mi.get(n),forward:()=>o.end().then((()=>t.forward())),back:()=>o.end().then((()=>t.back())),clear:()=>o.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return o.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return i}({app:e}),t.set(n,o),t.dispatch(!0))}),[e]),[o]}const zi=o(((e,o)=>{let{initialContext:s,app:l,renderCallback:c}=e;const[u]=Ni(l),[d,p]=n(s),[h,f]=n(),{theme:m}=i((()=>({theme:Ii(h)})),[h]),[g,y]=n([]);return r((()=>{c&&c()}),[]),a(o,(()=>({setComps(e){y([...e])},setMuiThemeName:f,setContext:e=>p((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>u})),[]),t.createElement(Qn,{injectFirst:!0},t.createElement(Io,{theme:m},t.createElement(Oi.Provider,{value:d},g)))}));function ji(e){let n,{app:r,context:o}=e;const i=new Promise((e=>{n=e})),a=t.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","4.0.0-alpha.2"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s);dt.createRoot(s).render(t.createElement(zi,{ref:a,app:r,initialContext:o,renderCallback:n}));const l={},c=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await i,c.push(e),a.current.setComps(c)})()},remove(e){(async()=>{await i;const t=c.indexOf(e);-1!==t&&c.splice(t,1),a.current.setComps(c)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,a.current.setContext(e)})()},getAppSelections:async()=>(await i,a.current.getAppSelections())},a,i]}const[Fi,Wi]=Ri({}),[Bi,Hi]=Ri({}),[Ui,$i]=Ri({}),[Gi,Vi]=Ri({}),[Ki,Zi]=Ri({}),[,Xi]=Ri({}),Ji=e=>{let{type:t,value:n}=e;const r=Xi.get(n.id);Xi.set(n.id,{});const o=()=>{Hi.clear(n.id),Zi.set(n.id,{}),Zi.dispatch(!0)},i=()=>{n.removeListener("changed",o),Wi.clear(n.id),Hi.clear(n.id),$i.clear(n.id),Vi.clear(n.id),Zi.clear(n.id),Xi.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[Yi,Qi]=Ri({},Ji);function ea(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=Yi(),[a]=Ui(),[s,l]=n();let c;o&&(c=a.get(o));for(var u=arguments.length,d=new Array(u>2?u-2:0),p=2;p<u;p++)d[p-2]=arguments[p];return r((()=>{if(!t)return;(async()=>{if(!c){const n=t.createSessionObject(e);c=n,a.set(o,c)}const n=await c;i.set(o,n),l(n)})()}),[t,...d]),[s]}const ta={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function na(e){return ea(ta,e)}const ra=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=H(H({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:H({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=H(H({},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 oa(e,t){const n=e?"".concat(e.id):null,[o]=Fi(),[i,a]=s(ra,n?o.get(n):null),[l]=Ki(),[c]=Bi();let u;n&&(u=c.get(n),u||(u={},c.set(n,u)));const d=async r=>{let i=u[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},u[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0})}try{const r=await i.rpc;a({type:"VALID",result:r,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||r||(i.rpcRetry||(i.rpcRetry=!0),d(!0))}},p={cancel:async()=>{const r=e.session.getObjectApi({handle:-1});await r.cancelRequest(u[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:o})},retry:()=>{u[t].rpcRetry=!0,d()}};return r((()=>{e&&d()}),[e,l.get(e&&e.id),n,t]),[i&&i.result,{validating:i&&i.validating,canCancel:i&&i.canCancel,canRetry:i&&i.canRetry},p]}function ia(e){return oa(e,"getLayout")}function aa(e){return oa(e,"getAppLayout")}function sa(){const[e,t]=n(),[r,o]=n(),i=l((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();o({left:t,top:n,width:r,height:i})};return c((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[i,r,e]}function la(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function ca(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=H({fontSize:la(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r);return t.createElement("i",{style:a},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:o,fill:"currentColor"},i.map(((e,n)=>{let{type:r,attrs:o}=e;return t.createElement(r,$({key:n},o))}))))}var ua=e=>ca((e=>H(H({},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 da=e=>ca((e=>H(H({},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));var pa=e=>ca((e=>H(H({},e),{},{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"}}]}))(e));var ha=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},fa=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}}(),ma=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},ga=function(e){function t(){var e,n,r;ha(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ma(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},ma(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,u),fa(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}();const ya=["S","XS"],va=e=>e.reduce(((e,t)=>e.concat(t)));function ba(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!ya.includes(n)&&t.qElemNumber;var n})).filter((e=>!1!==e))));return va(t)}async function xa(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 Ea=e=>!(e.metaKey||e.ctrlKey);function Sa(e){let{selectionState:t,selections:n,checkboxes:o=!1,doc:i=document}=e;const a=d({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1}),s=()=>(t.setSelectableValuesUpdating(),xa({selections:n,elemNumbers:a.current.elemNumbers,isSingleSelect:t.isSingleSelect,toggle:a.current.toggle})),c=e=>{const{startElemNumber:n}=a.current;if(n===e)return;const r=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)}([a.current.startElemNumber,e],function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return va(t)}(t.enginePages));t.updateItems(r,!0,a.current.elemNumbers)},u=l((e=>{if(t.selectDisabled())return;const n=+e.target.getAttribute("data-n"),r=!t.isSingleSelect&&Ea(e.nativeEvent);a.current.elemNumbers=[n],a.current.toggle=r,r||t.clearItemStates(!0),t.updateItem(n),a.current.active=!1,s()}),[]),p=l((e=>{if(0!==e.button||t.selectDisabled())return;const n=+e.currentTarget.getAttribute("data-n"),r=!t.isSingleSelect&&Ea(e);a.current.isRange=!1,a.current.startElemNumber=n,a.current.elemNumbers=[n],a.current.toggle=r,a.current.active=!0,r||t.clearItemStates(!0),t.updateItem(n),t.isSingleSelect&&(a.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),h=l((e=>{if(0===e.button&&a.current.active){if(a.current.active=!1,a.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}s()}}),[]),f=l((e=>{0===e.button&&a.current.active&&(a.current.active=!1,s())}),[]),m=l((e=>{if(!a.current.active)return;a.current.isRange||(a.current.isRange=!0,t.isSelected(a.current.startElemNumber)||(t.updateItem(a.current.startElemNumber,!0),a.current.elemNumbers=[]));const n=+e.currentTarget.getAttribute("data-n");c(n)}),[]);r((()=>(i.addEventListener("mouseup",f),()=>{i.removeEventListener("mouseup",f)})),[f]),r((()=>{const e=()=>{t.clearItemStates(!1)},r=()=>{t.clearItemStates(!0),t.triggerStateChanged()};return n.on("clearItemStates",e),n.on("deactivated",e),n.on("cleared",r),()=>{n.removeListener("clearItemStates",e),n.removeListener("deactivated",e),n.removeListener("cleared",r)}}),[n]);const g={};return o?Object.assign(g,{onChange:u}):Object.assign(g,{onMouseUp:h,onMouseDown:p,onMouseEnter:m}),{interactionEvents:g,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=[];return t.updateItems(e,r,o),t.setSelectableValuesUpdating(),xa({selections:n,elemNumbers:r?o:e,isSingleSelect:t.isSingleSelect,toggle:!t.isSingleSelect})}}}const Ca=e=>H(H({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var wa=e=>ca(Ca(e));const La=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===La.ARROW_UP||e===La.ARROW_DOWN||e===La.ARROW_LEFT||e===La.ARROW_RIGHT});function Ia(e){let{setKeyboardActive:t,hovering:n,setHovering:r,updateKeyScroll:o,containerRef:i,currentScrollIndex:a,app:s,appSelections:l,constraints:c}=e;const u=e=>{n&&o(e)};return{handleKeyDown:e=>{const{keyCode:n,ctrlKey:r=!1,shiftKey:o=!1}=e.nativeEvent;switch(n){case La.ENTER:case La.SPACE:if(!e.target.classList.contains("listbox-container"))return;(e=>{const n=e.querySelector(".search input, .value.selector, .value, .ActionsToolbar-item button");t(!0),n&&n.focus()})(e.currentTarget);break;case La.ESCAPE:(e=>{var n,r,o,i,a;null!==(n=e.target)&&void 0!==n&&n.classList.contains("listbox-container")?t(!1):(null===(r=e.target)||void 0===r||r.setAttribute("tabIndex","-1"),null===(o=e.target)||void 0===o||o.blur(),null===(i=e.currentTarget)||void 0===i||i.setAttribute("tabIndex","0"),null===(a=e.currentTarget)||void 0===a||a.focus())})(e);break;case La.ARROW_UP:u({up:1});break;case La.ARROW_DOWN:u({down:1});break;case La.ARROW_LEFT:case La.ARROW_RIGHT:return;case La.PAGE_UP:u({up:a.stop-a.start});break;case La.PAGE_DOWN:u({down:a.stop-a.start});break;case La.HOME:u({scrollPosition:r&&o?"overflowStart":"start"});break;case La.END:u({scrollPosition:r&&o?"overflowEnd":"end"});break;default:return}e.preventDefault()},handleOnMouseEnter:()=>{var e,t;(()=>{var e,t;const n=(null==c?void 0:c.select)||(null==c?void 0:c.active),r=null!==(e=null===(t=s.isInModalSelection)||void 0===t?void 0:t.call(s))&&void 0!==e?e:l.isInModal();return n||r})()||(r(!0),null==i||null===(e=i.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))},handleOnMouseLeave:()=>{var e,t;n&&(r(!1),null==i||null===(e=i.current)||void 0===e||null===(t=e.blur)||void 0===t||t.call(e))}}}const Oa="RowColumn",Ra={row:"".concat(Oa,"-row"),rowBorderBottom:"".concat(Oa,"-rowBorderBottom"),column:"".concat(Oa,"-column"),fieldRoot:"".concat(Oa,"-fieldRoot"),cell:"".concat(Oa,"-cell"),labelText:"".concat(Oa,"-labelText"),labelDense:"".concat(Oa,"-labelDense"),highlighted:"".concat(Oa,"-highlighted"),checkboxLabel:"".concat(Oa,"-checkboxLabel"),icon:"".concat(Oa,"-icon"),S:"".concat(Oa,"-S"),XS:"".concat(Oa,"-XS"),A:"".concat(Oa,"-A"),X:"".concat(Oa,"-X"),frequencyCount:"".concat(Oa,"-frequencyCount"),barContainer:"".concat(Oa,"-barContainer"),bar:"".concat(Oa,"-bar"),barSelected:"".concat(Oa,"-barSelected"),barWithCheckbox:"".concat(Oa,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Oa,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Oa,"-excludedTextWithCheckbox")},qa=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,ka=e=>e?"A"===e.qState:null,_a=e=>{let{cell:t,checkboxes:n}=e;return(ka(t)||qa(t))&&n},Ta=e=>e.filter((e=>!!e)).join(" ").trim(),Da=e=>e||"-",Pa=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0}}},Aa={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Ma=si("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth","showIcon","checkboxes"].includes(e)})((e=>{var t,n,r,o,i,a,s,l,c,u;let{theme:d,flexBasisProp:p,isGridMode:h,isGridCol:f,dense:m,frequencyWidth:g,showIcon:y,checkboxes:v}=e;return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(d.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(d.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Ra.row)]:{flexWrap:"nowrap",color:null!==(t=null===(n=d.listBox)||void 0===n||null===(r=n.content)||void 0===r?void 0:r.color)&&void 0!==t?t:d.palette.text.primary},["& .".concat(Ra.rowBorderBottom)]:{borderBottom:f?"none":"1px solid ".concat(d.palette.divider),borderLeft:f?"1px solid ".concat(d.palette.divider):"none"},["& .".concat(Ra.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(d.palette.divider),color:null!==(o=null===(i=d.listBox)||void 0===i||null===(a=i.content)||void 0===a?void 0:a.color)&&void 0!==o?o:d.palette.text.primary},["& .".concat(Ra.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(Ra.labelText)]:H(H({flexBasis:p,lineHeight:"16px",userSelect:"none",paddingRight:y||v?"1px":"".concat(24,"px")},Aa),{},{whiteSpace:"pre",fontSize:null===(s=d.listBox)||void 0===s||null===(l=s.content)||void 0===l?void 0:l.fontSize,fontFamily:null===(c=d.listBox)||void 0===c||null===(u=c.content)||void 0===u?void 0:u.fontFamily}),["& .".concat(Ra.labelDense)]:{fontSize:12},["& .".concat(Ra.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(Ra.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":H(H({},Aa),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Ra.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(Ra.S)]:H(H({},Pa({theme:d})),{},{border:h?"none":void 0}),["& .".concat(Ra.XS)]:H(H({},Pa({theme:d})),{},{background:d.palette.selected.excluded,color:d.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(Ra.A)]:{background:d.palette.selected.alternative,color:d.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(Ra.X)]:{background:d.palette.selected.excluded,color:d.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(Ra.frequencyCount)]:H(H({justifyContent:"flex-end"},Aa),{},{flex:"0 1 ".concat(g,"px"),textAlign:"right",paddingLeft:"2px"}),["&.".concat(Ra.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Ra.bar)]:{height:m?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(Ra.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:d.palette.background.lighter}},["& .".concat(Ra.barWithCheckbox)]:{left:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Ra.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(Ra.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var Na=t.memo(Ma);const za="ListBoxCheckbox",ja={cbIcon:"".concat(za,"-cbIcon"),cbIconChecked:"".concat(za,"-cbIconChecked"),cbIconExcluded:"".concat(za,"-cbIconExcluded"),cbIconAlternative:"".concat(za,"-cbIconAlternative"),checkbox:"".concat(za,"-checkbox"),dense:"".concat(za,"-dense")},Fa=si(y)((e=>{let{theme:t}=e;return{["& .".concat(ja.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(ja.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,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(ja.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(ja.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(ja.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(ja.dense)]:{padding:"4px 8px"}}})),Wa=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.createElement("span",{className:e.cbIcon},r&&t.createElement("span",{className:n&&r?e.cbIconExcluded:""}))};function Ba(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,showGray:s=!0,dataN:l}=e;return t.createElement(Fa,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[ja.checkbox,i&&ja.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":l},name:o,icon:Wa(ja,s,a),checkedIcon:t.createElement("span",{className:ja.cbIconChecked})})}const Ha="ListBoxRadioButton",Ua={denseRadioButton:"".concat(Ha,"-denseRadioButton"),radioButton:"".concat(Ha,"-radioButton")},$a=si(v)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(Ua.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function Ga(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a}=e;return t.createElement($a,{checked:r,onChange:n,value:o,name:o,className:Ua.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:i?"small":"medium",sx:i&&{padding:"0px 0px 0px 12px"}})}function Va(e){let{label:n,color:r,highlighted:o=!1,dense:i,showGray:a=!0,checkboxes:s,cell:l,valueTextAlign:c}=e;return t.createElement(b,{component:"span",variant:"body2",className:Ta([Ra.labelText,o&&Ra.highlighted,i&&Ra.labelDense,a&&_a({cell:l,checkboxes:s})&&Ra.excludedTextWithCheckbox]),color:r,align:c},t.createElement("span",{dir:"auto",style:{whiteSpace:"pre"}},n))}function Ka(e){let{label:n,color:r,highlighted:o,dense:i,showGray:a,checkboxes:s,cell:l,valueTextAlign:c}=e;return"string"==typeof n?t.createElement(Va,{label:n,color:r,highlighted:o,dense:i,showGray:a,checkboxes:s,cell:l,valueTextAlign:c}):n}function Za(e){let{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,highlighted:p,checkboxes:h,valueTextAlign:f}=e;const m=t.createElement(Ba,{onChange:n,label:r,checked:a,dense:s,excluded:qa(l),isGridCol:c,showGray:u,dataN:i}),g=t.createElement(Ga,{onChange:n,label:r,checked:a,dense:s,dataN:i});return t.createElement(x,{color:o,control:d?g:m,className:Ra.checkboxLabel,label:t.createElement(Ka,{label:r,color:o,highlighted:p,dense:s,showGray:u,checkboxes:h,cell:l,valueTextAlign:f}),key:i})}function Xa(e){let{labels:n,dense:r,showGray:o,checkboxes:i}=e;return t.createElement(t.Fragment,null,n.map(((e,n)=>{let[a,s]=e;const l="".concat(n);return t.createElement(Va,{label:a,key:l,highlighted:s,dense:r,showGray:o,checkboxes:i})})))}function Ja(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,color:s,qElemNumber:l,isSelected:c,cell:u,isGridCol:d,isSingleSelect:p,valueTextAlign:h}=e;const f=t.createElement(Xa,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(Za,{onChange:n,label:f,color:s,qElemNumber:l,isSelected:c,dense:i,cell:u,isGridCol:d,showGray:a,isSingleSelect:p,checkboxes:o,valueTextAlign:h}):f}var Ya=t.memo((function(e){let{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,highlighted:p,checkboxes:h,valueTextAlign:f}=e;return h?t.createElement(Za,{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,highlighted:p,checkboxes:h,valueTextAlign:f}):t.createElement(Va,{label:r,color:o,highlighted:!1,dense:s,showGray:!0,checkboxes:h,cell:l,valueTextAlign:f})}));function Qa(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&"-"!==Da(n)))return;const s=(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,"%")})({qFrequency:n,checkboxes:o,frequencyMax:a});return t.createElement(E,{className:Ta([Ra.bar,o&&Ra.barWithCheckbox,i&&(o?Ra.barSelectedWithCheckbox:Ra.barSelected)])},t.createElement(E,{className:"bar-filled",width:s}))}function es(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;return t.createElement(S,{item:!0,style:{display:"flex",alignItems:"center"},className:Ra.frequencyCount},t.createElement(b,{noWrap:!0,color:"inherit",variant:"body2",className:Ta([o&&Ra.labelDense,Ra.labelText,i&&_a({cell:n,checkboxes:r})&&Ra.excludedTextWithCheckbox])},Da(null==n?void 0:n.qFrequency)))}function ts(e){let{dataLayout:t,layoutOrder:n,itemPadding:r}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const ns=si(S,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","checkboxes"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,checkboxes:o}=e;return{["&.".concat(Ra.fieldRoot)]:H(H({},ts({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{paddingRight:o?"8px":void 0})}}));function rs(e){var n,o,a;let{index:s,rowIndex:c,columnIndex:u,style:p,data:h}=e;const{onChange:f,onClick:m,onMouseDown:g,onMouseUp:y,onMouseEnter:v,pages:b,isLocked:x,column:E=!1,checkboxes:C=!1,textAlign:w,direction:L,layoutOptions:I={},freqIsAllowed:O,isSingleSelect:R,actions:q,frequencyMax:k="",histogram:_=!1,keyboard:T,showGray:D=!0,showTick:P=!0,columnCount:A=1,rowCount:M=1,dataOffset:N,focusListItems:z,listCount:j,itemPadding:F,frequencyWidth:W}=h,{dense:B=!1,dataLayout:U="singleColumn",layoutOrder:$}=I;let G,V;const K={max:null,currentIndex:null};if("number"==typeof c&&"number"==typeof u){"row"===$?(G=c*A+u,K.max=M,K.currentIndex=c):(G=u*M+c,K.max=A,K.currentIndex=u);const e=0;V=H(H({},p),{},{left:e+(0===u?p.left:Number(p.left)+u*e),top:0===c?p.top:Number(p.top)+c*e})}else G=s,K.max=j,K.currentIndex=s,V=H({},p);G+=N;const Z=d(null);r((()=>{null!==Z.current&&(0===K.currentIndex&&z.first&&(Z.current.focus(),z.setFirst(!1)),K.currentIndex===K.max-1&&z.last&&(Z.current.focus(),z.setLast(!1)))}),[Z.current]);const X=l(function(e){let{select:t,confirm:n,cancel:r,setScrollPosition:o,focusListItems:i}=e;const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let s=!1;const l=e=>{s=e};return e=>{let c;const{keyCode:u,shiftKey:d=!1,ctrlKey:p=!1}=e.nativeEvent;switch(u){case La.SHIFT:l(!0);break;case La.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case La.ARROW_DOWN:case La.ARROW_RIGHT:c=a(e.currentTarget,!0),d&&c&&(s&&(t([+e.currentTarget.getAttribute("data-n")],!0),l(!1)),t([+c.getAttribute("data-n")],!0));break;case La.ARROW_UP:case La.ARROW_LEFT:c=a(e.currentTarget,!1),d&&c&&(s&&(t([+e.currentTarget.getAttribute("data-n")],!0),l(!1)),t([+c.getAttribute("data-n")],!0));break;case La.ENTER:n();break;case La.ESCAPE:return void r();case La.HOME:if(i.setFirst(!0),p){null==o||o("overflowStart");break}null==o||o("start");break;case La.END:if(i.setLast(!0),p){null==o||o("overflowEnd");break}null==o||o("end");break;default:return}c&&c.focus(),e.preventDefault(),e.stopPropagation()}}(H(H({},q),{},{focusListItems:z})),[q]),J=i((()=>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:b,cellIndex:G})),[b,G]),Y="S"===(null==J?void 0:J.qState)||"XS"===(null==J?void 0:J.qState)||"L"===(null==J?void 0:J.qState)||"XL"===(null==J?void 0:J.qState),Q=i((()=>(e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?Ra.column:Ra.row];return n||a.push(Ra.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?Ra.XS:Ra.S):"S"===o.qState||"L"===o.qState?a.push(Ra.S):i&&ka(o)?a.push(Ra.A):i&&qa(o)&&a.push(Ra.X)),a):[]})({column:E,histogram:_,checkboxes:C,cell:J,showGray:D})),[null==J?void 0:J.qState,_,B,C]),ee=l((e=>{e.preventDefault()}),[C]);if(!J)return null;const te=!["NaN",void 0].includes(null==J?void 0:J.qNum);let ne;ne=!w||w.auto?te?"rtl"===L?"left":"right":{rtl:"right",ltr:"left"}[L]:(null==w?void 0:w.align)||"left";const re="grid"===U&&"column"===$,oe=null!==(n=null==J?void 0:J.qText)&&void 0!==n?n:"";let ie;if(null!==(o=J.qHighlightRanges)&&void 0!==o&&null!==(a=o.qRanges)&&void 0!==a&&a.length){ie=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}(oe,J.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[])}const ae={alignItems:"center",display:"flex",fontSize:"8px"},se={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===L?8:C?0:void 0,paddingRight:C?0:"rtl"===L?8:0,justifyContent:ne},le=0===s,ce=C?"auto":"max-content",ue=Y&&x,de=!C&&Y&&!x&&P,pe=!C&&(de||ue);return t.createElement(Na,{className:Ra.barContainer,flexBasisProp:ce,style:V,showIcon:pe,checkboxes:C,isGridCol:re,isGridMode:"grid"===U,dense:B,frequencyWidth:W},t.createElement(ns,{ref:Z,container:!0,dataLayout:U,checkboxes:C,layoutOrder:$,itemPadding:F,gap:0,className:Ta(["value",...Q]),classes:{root:Ra.fieldRoot},onClick:m,onMouseDown:g,onMouseUp:y,onMouseEnter:v,onKeyDown:X,onContextMenu:ee,role:E?"column":"row",tabIndex:!le||T.enabled&&!T.active?-1:0,"data-n":null==J?void 0:J.qElemNumber},(null==J?void 0:J.qFrequency)&&t.createElement(Qa,{qFrequency:null==J?void 0:J.qFrequency,histogram:_,checkboxes:C,isSelected:Y,frequencyMax:k}),t.createElement(S,{item:!0,style:se,className:Ta([Ra.cell,Ra.selectedCell]),title:"".concat(oe)},ie?t.createElement(Ja,{onChange:f,labels:ie,checkboxes:C,dense:B,showGray:D,color:"inherit",qElemNumber:J.qElemNumber,isSelected:Y,cell:J,isGridCol:re,isSingleSelect:R,valueTextAlign:ne}):t.createElement(Ya,{onChange:f,label:oe,color:"inherit",qElemNumber:J.qElemNumber,isSelected:Y,dense:B,cell:J,isGridCol:re,showGray:D,isSingleSelect:R,checkboxes:C,valueTextAlign:ne})),O&&t.createElement(es,{cell:J,checkboxes:C,dense:B,showGray:D}),pe&&t.createElement(S,{item:!0,className:Ra.icon},ue&&t.createElement(da,{style:ae,size:"small"}),de&&t.createElement(wa,{style:ae,size:"small"}))))}var os=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function is(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||os(r)&&os(o)))return!1;var r,o;return!0}function as(e,t){var n;void 0===t&&(t=is);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 ss="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ls(e){cancelAnimationFrame(e.id)}function cs(e,t){var n=ss();var r={id:requestAnimationFrame((function o(){ss()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var us=-1;function ds(e){if(void 0===e&&(e=!1),-1===us||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),us=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return us}var ps=null;function hs(e){if(void 0===e&&(e=!1),null===ps||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?ps="positive-descending":(t.scrollLeft=1,ps=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ps}return ps}var fs=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ms(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,d=e.getRowHeight,h=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,y=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,hi(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:hi(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=as((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=as((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,u=r._getItemStyleCache(y&&s,y&&l,y&&c),p=e+":"+t;if(u.hasOwnProperty(p))o=u[p];else{var f=n(r.props,t,r._instanceProps),m="rtl"===l;u[p]=o={position:"absolute",left:m?void 0:f,right:m?f:void 0,top:h(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=as((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(hs()){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&&ls(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=cs(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}pi(t,e),t.getDerivedStateFromProps=function(e,t){return gs(e,t),v(e),null};var u=t.prototype;return u.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)},u.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,h=i.width,f=this.state,m=f.scrollLeft,g=f.scrollTop,y=ds();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),b=s(this.props,this._instanceProps)>h?y:0,x=v>d?y:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,b):g})},u.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()},u.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(hs()){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()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ls(this._resetIsScrollingTimeoutId)},u.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,h=e.itemKey,f=void 0===h?fs:h,m=e.outerElementType,g=e.outerTagName,y=e.rowCount,v=e.style,b=e.useIsScrolling,x=e.width,E=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],w=S[1],L=this._getVerticalRangeToRender(),I=L[0],O=L[1],R=[];if(r>0&&y)for(var q=I;q<=O;q++)for(var k=C;k<=w;k++)R.push(p(t,{columnIndex:k,data:d,isScrolling:b?E:void 0,key:f({columnIndex:k,data:d,rowIndex:q}),rowIndex:q,style:this._getItemStyle(q,k)}));var _=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return p(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ui({position:"relative",height:i,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},p(c||u||"div",{children:R,ref:l,style:{height:_,pointerEvents:E?"none":void 0,width:T}}))},u._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],h=u[2],f=u[3];this._callOnItemsRendered(a,s,d,p,l,c,h,f)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,y=m.scrollLeft,v=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(y,v,g,x,b)}},u._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 h=r(this.props,d,this._instanceProps),f=o(this.props,h,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,h-m),Math.max(0,Math.min(t-1,f+g)),h,f]},u._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=f(this.props,c,this._instanceProps),p=m(this.props,d,c,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(u),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var gs=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ys=function(e,t){return e};function vs(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,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,hi(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:hi(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=as((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=as((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),h="horizontal"===a||"horizontal"===l,f="rtl"===a,m=h?d:0;u[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:h?0:d,height:h?"100%":p,width:h?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=as((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(hs()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ls(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=cs(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}pi(t,e),t.getDerivedStateFromProps=function(e,t){return bs(e,t),d(e),null};var u=t.prototype;return u.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)},u.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?ds():0:l.scrollHeight>l.clientHeight?ds():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},u.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()},u.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(hs()){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()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ls(this._resetIsScrollingTimeoutId)},u.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,h=void 0===d?ys:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,v=e.useIsScrolling,b=e.width,x=this.state.isScrolling,E="horizontal"===o||"horizontal"===f,S=E?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],L=C[1],I=[];if(c>0)for(var O=w;O<=L;O++)I.push(p(t,{data:u,key:h(O,u),index:O,isScrolling:v?x:void 0,style:this._getItemStyle(O)}));var R=r(this.props,this._instanceProps);return p(m||g||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:ui({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},p(s||l||"div",{children:I,ref:a,style:{height:E?"100%":R,pointerEvents:x?"none":void 0,width:E?R:"100%"}}))},u._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)}},u._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}(u),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bs=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},xs=ms({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}}),Es=vs({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,h=Math.max(0,l*c-p),f=Math.min(h,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=f+p?"auto":"center"),n){case"start":return f;case"end":return m;case"center":var g=Math.round(m+(f-m)/2);return g<Math.ceil(p/2)?0:g>h+Math.floor(p/2)?h:g;default:return r>=m&&r<=f?r:r<m?m:f}},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 Ss="#BBB",Cs="#f1f1f1",ws={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function Ls(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=((e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,h=((e,t,n,r)=>e===t*n+r+n)(s,u,c?i:o,l),f=!!l&&((e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(t,c),m=p&&!h&&u>=d-1||f||a.state.show;a.set(m)}const{StyledFixedSizeList:Is,StyledFixedSizeGrid:Os}=function(){const e=e=>({scrollbarColor:"".concat(Ss," ").concat(Cs),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Cs},"&::-webkit-scrollbar-thumb":{backgroundColor:Ss,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:j(Es,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(ws.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:j(xs,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(ws.styledScrollbars)]:e(n)}}))}}();function Rs(e){let{layout:t,width:n,height:r,listCount:o,count:i,textWidth:a,freqIsAllowed:s,checkboxes:l}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:h,dataLayout:f}=c,m=s?40:0,g=l?20:0,y=56+m+g,v=Math.max(Math.min(150,a+18+m+g),y);let b,x,E,S;const C="grid"===f;let w=h?20:C?32:29;C&&(w+=4);const L=null!=r?r:8*w;if(u){let e=n;"row"===u?(b={overflowX:"hidden"},e+=8,({rowCount:S,columnWidth:E,columnCount:x}=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-10;let l;const c=Math.min(n,Math.ceil(s/Math.max(i,o)));l=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c);const u=s/l;return{rowCount:Math.ceil(n/l),columnWidth:u,columnCount:l}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:v,itemMinWidth:y}))):(b={overflowY:"hidden"},({rowCount:S,columnWidth:E,columnCount:x}=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);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,s/d,l),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:w,listCount:o,listHeight:L,columnAutoWidth:v,containerWidth:e,itemMinWidth:y})))}x=("singleColumn"===f?1:x)||1,S=("singleColumn"===f?i:S)||o;const I=c.dense?838e3:577e3;S=Math.min(S,I);const O=Math.floor(3355e4/E);x=Math.min(x,O)||1;const R=S*x;return{columnCount:x,columnWidth:E,rowCount:S,overflowStyling:b,itemHeight:w,listHeight:L,scrollBarWidth:10,count:i,listCount:Math.min(o,R),maxCount:{row:I,column:O},itemPadding:4,frequencyWidth:40}}const qs=(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)));return n.measureText(e).width};function ks(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}function _s(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;const i=null!=t&&t.length&&o?(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})({pages:t,minimumBatchSize:n,count:r}):r;return i||0}const[Ts,Ds]=Ri({});function Ps(e){const t="".concat(e.id),[n]=Ts();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}function As(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=h(Oi),s=si(b)((()=>H({minWidth:"".concat(n,"px"),textAlign:"center",fontSize:"".concat(o?"12px":"14px")},o&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:n})));return t.createElement(C,{title:i?a.get(r):""},t.createElement(s,{component:"div",variant:"body1",py:"12px"},a.get(r)))}var Ms,Ns={},zs={};(Ms={get exports(){return zs},set exports(e){zs=e}}).exports=function(e){return e&&e.__esModule?e:{default:e}},Ms.exports.__esModule=!0,Ms.exports.default=Ms.exports;var js={};function Fs(e){return Mt("MuiSvgIcon",e)}Nt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ws=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bs=e=>{const{color:t,fontSize:n,classes:r}=e;return function(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}({root:["root","inherit"!==t&&`color${vt(t)}`,`fontSize${vt(n)}`]},Fs,r)},Hs=si("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${vt(n.color)}`],t[`fontSize${vt(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,h,f,m,g,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(h=(e.vars||e).palette)||null==(f=h[t.color])?void 0:f.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(y=(e.vars||e).palette)||null==(v=y.action)?void 0:v.disabled,inherit:void 0}[t.color]}})),Us=e.forwardRef((function(e,t){const n=ii({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=jt(n,Ws),h=zt({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),f={};c||(f.viewBox=d);const m=Bs(h);return Jn.jsxs(Hs,zt({as:a,className:ci(m.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},f,p,{ownerState:h,children:[r,u?Jn.jsx("title",{children:u}):null]}))}));Us.muiName="SvgIcon";var $s=Us;const Gs={configure:e=>{Pt.configure(e)}};var Vs,Ks=Object.freeze({__proto__:null,capitalize:vt,createChainedFunction:function(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))},createSvgIcon:function(t,n){function r(e,r){return Jn.jsx($s,zt({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=$s.muiName,e.memo(e.forwardRef(r))},debounce:function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r},deprecatedPropType:function(e,t){return()=>null},isMuiElement:function(t,n){return e.isValidElement(t)&&-1!==n.indexOf(t.type.muiName)},ownerDocument:bt,ownerWindow:function(e){return bt(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:xt,unstable_ClassNameGenerator:Gs,unstable_useEnhancedEffect:Et,unstable_useId:function(t){if(void 0!==Ct){const e=Ct();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(St+=1,r(`mui-${St}`))}),[n]),o}(t)},unsupportedProp:function(e,t,n,r,o){return null},useControlled:function({controlled:t,default:n,name:r,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n);return[i?t:a,e.useCallback((e=>{i||s(e)}),[])]},useEventCallback:function(t){const n=e.useRef(t);return Et((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])},useForkRef:function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{xt(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Rt,!0),t.addEventListener("mousedown",qt,!0),t.addEventListener("pointerdown",qt,!0),t.addEventListener("touchstart",qt,!0),t.addEventListener("visibilitychange",kt,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!_t(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(It=!0,window.clearTimeout(wt),wt=window.setTimeout((()=>{It=!1}),100),n.current=!1,!0)},ref:t}}}),Zs=F(Ks);var Xs=zs;Object.defineProperty(Ns,"__esModule",{value:!0});var Js=Ns.default=void 0,Ys=Xs((Vs||(Vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Zs}(js)),js)),Qs=Xn(),el=(0,Ys.default)((0,Qs.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");Js=Ns.default=el;const tl=si(w)((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}})),nl=si("div")((()=>({paddingLeft:"6px",flexGrow:1}))),rl=si("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),ol=si(Js)((()=>({fontSize:"14px"})));function il(e){let{text:n,dismiss:r,dense:o,parentWidth:i=0}=e;const a="function"==typeof r,s=o?370:282,l=Math.max(i/2-s/2,0),c=Math.min(s,i)-42,u=o&&i<s;return t.createElement(tl,{left:l,style:{maxWidth:s}},t.createElement(nl,null,t.createElement(As,{text:n,dense:o,width:c,tooltip:u})),t.createElement(rl,{dense:o},a&&t.createElement(L,{"aria-label":"close",onClick:()=>r()},t.createElement(ol,null))))}function al(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>80,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["none",void 0].includes(r);return!(!o||!a&&!i)}const sl=e=>{const t=(e=>e?"".concat(e.replace(/\]/g,"]]")):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},ll=(e,t)=>{const[o,i]=n(),a=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t);return r((()=>{if(!a)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=sl(r);return(await t.evaluateEx(o)).qNumber})(t,e);i(n)})()}),[a&&t]),a?o:null==t?void 0:t.frequencyMax},cl=["isLoadingData"];function ul(e){var o,a,s,c;let{model:u,app:p,constraints:h,layout:f,selections:m,selectionState:g,direction:y,checkboxes:v,height:b,width:x,frequencyMode:E,update:S,fetchStart:C,postProcessPages:w,calculatePagesHeight:L=!1,keyboard:I={},showGray:O=!0,scrollState:R,selectDisabled:q=(()=>!1),keyScroll:k={state:{},reset:()=>{}},currentScrollIndex:_={set:()=>{}}}=e;const[T,D]=n(!1),P=!(!f||!f.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=v,histogram:M}=null!=f?f:{},N=d(null),z=d({queue:[],validPages:!1,dataOffset:0}),j=d({pages:[]}),F=function(e){let{local:t,loaderRef:r,model:o,fetchStart:i,scrollTimeout:a,postProcessPages:s,listData:l}=e;const[c,u]=n(!1),[d,p]=n([]);let[h]=n(0);const f=(e,n)=>{const c=t.current.dataOffset;t.current.queue.push({start:e+c,stop:n+c});const d=!!r.current&&r.current._listRef&&r.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),u(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],r=o.getListObjectData("/qListObjectDef",[{qTop:n.start>h?n.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:n.start,qHeight:h,qLeft:0,qWidth:1}]).then((n=>{const r=s?s(n):n;t.current.validPages=!0,l.current.pages=r,p(r),u(!1),e()}));i&&i(r)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(h=t),f}},pages:d,isLoading:c}}({local:z,loaderRef:N,model:u,fetchStart:C,scrollTimeout:0,postProcessPages:w,listData:j}),W=G(F,cl),{setStoreValue:B}=Ps(u),U=l(W.loadMoreItems,[f]),[V,K]=n({show:!1,dismissed:!1}),[Z,X]=n([]);null!=W&&W.pages&&g.update({setPages:X,pages:null==W?void 0:W.pages,isSingleSelect:P,selectDisabled:q,layout:f});const J=l((e=>{if(null==Z||!Z.length||!z.current.validPages)return!1;z.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Z.filter((e=>t(e)))[0];return n&&t(n)}),[f,Z]),{interactionEvents:Y,select:Q}=Sa({selectionState:g,selections:m,checkboxes:A,doc:document}),{layoutOptions:ee={}}=f||{};let te=!0;ee.dataLayout&&(te="singleColumn"===ee.dataLayout||"row"===(null==ee?void 0:ee.layoutOrder));const ne="grid"===(null==ee?void 0:ee.dataLayout),re=e=>{const t=H({},te?{rowIndex:e}:{columnIndex:e}),n=ne?t:e;N.current._listRef.scrollToItem(n)},oe=()=>{if(z.current.queue=[],z.current.validPages=!1,N.current){N.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===k.state.scrollPosition;if(f&&f.qSelectionInfo.qInSelections||e)return void(e&&k.reset());z.current.dataOffset=0,re(0)}};S&&S.call(null,oe),r((()=>{R&&!T&&N.current&&(N.current._listRef.scrollToItem(R.initScrollPos),D(!0))}),[N.current]),r((()=>{oe()}),[f,z.current.dataOffset]);const ie=(e=>{const t=i((()=>"text"in e?e:{}),[e]);return i((()=>qs(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])})({text:ks(f),font:"14px Source sans pro"});let ae=100;const se="grid"!==ee.dataLayout,le=null==f||null===(o=f.qListObject.qSize)||void 0===o?void 0:o.qcy,ce=_s({pages:Z,minimumBatchSize:ae,count:le,calculatePagesHeight:L,layoutOptions:ee,model:u});let ue=al({itemWidth:x,layout:f,frequencyMode:E});const de=Rs({layout:f,width:x,height:b,listCount:ce,count:le,textWidth:ie,freqIsAllowed:ue,checkboxes:A});de.columnWidth&&(ue=al({itemWidth:de.columnWidth,layout:f,frequencyMode:E}));const{listCount:pe}=de;B("listCount",pe);const he=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=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:te,sizes:de,layout:f,offset:z.current.dataOffset});z.current.dataOffset=n,r&&g.triggerStateChanged(),re(t)};r((()=>{const e=k.state;e.up?re(_.state.start-e.up):e.down?re(_.state.stop+e.down):e.scrollPosition&&he(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&k.reset()}),[k.state.up,k.state.down,k.state.scrollPosition]);const{textAlign:fe}=(null==f?void 0:f.qListObject.qDimensionInfo)||{},[me,ge]=n({first:!1,last:!1}),ye=ll(p,f),{List:ve,Grid:be}=function(e){let{layout:n,width:r,checkboxes:o,local:i,isVertical:a,pages:s,selectDisabled:l,interactionEvents:c,frequencyMode:u,histogram:d,isSingleSelect:p,select:h,textAlign:f,selections:m,keyboard:g,showGray:y,scrollState:v,direction:b,sizes:x,listCount:E,overflowDisclaimer:S,setScrollPosition:C,focusListItems:w,setCurrentScrollIndex:L,constraints:I,frequencyMax:O,freqIsAllowed:R}=e;const{layoutOptions:q={}}=n||{},{columnWidth:k,itemPadding:_,listHeight:T,itemHeight:D,rowCount:P,columnCount:A,frequencyWidth:M}=x||{},N=("grid"===q.dataLayout?k:r)>80,z={direction:"rtl"===b?"rtl":"ltr",useIsScrolling:!0,className:ws.styledScrollbars},j=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,F=H(H({isLocked:j,column:!a,pages:s},j||l()?{}:c),{},{checkboxes:o,layoutOptions:q,frequencyMode:u,freqIsAllowed:R,isSingleSelect:p,textAlign:f,itemPadding:_,frequencyWidth:M,actions:{select:h,confirm:()=>null==m?void 0:m.confirm.call(m),cancel:()=>null==m?void 0:m.cancel.call(m),setScrollPosition:C},frequencyMax:O,histogram:d,keyboard:g,showGray:y,showTick:N,dataOffset:i.current.dataOffset,focusListItems:w,direction:b});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(Is,$({},z,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:T,width:r,itemCount:E,itemData:H(H({},F),{},{listCount:E}),itemSize:D,onItemsRendered:e=>{var t,r;L({start:e.visibleStartIndex,stop:e.visibleStopIndex}),v&&v.setScrollPos(e.visibleStopIndex),Ls({renderProps:e,layoutOptions:q,maxCount:x.maxCount,columnCount:A,rowCount:P,overflowDisclaimer:S,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(r=t.qDimensionInfo)||void 0===r?void 0:r.qCardinal,dataOffset:i.current.dataOffset}),o(H({},e))},ref:a}),rs)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=x,{layoutOrder:c}=q||{},u=Math.min(T,P*D+l);return i.current.listRef=a,t.createElement(Os,$({},z,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:u,width:r,columnCount:A,columnWidth:k,rowCount:P,rowHeight:D,style:H({},s),itemData:H(H({},F),{},{column:void 0,columnCount:A,rowCount:P}),onItemsRendered:e=>{var t,r;const a="row"===c;L({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const s=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,h,f;return n&&n.setScrollPos(u),"column"===r?(d=l*o,p=a,h=c*o,f=s):(d=l,p=a*i,h=c,f=s*i),{visibleStartIndex:d+p,visibleStopIndex:h+f}}({renderProps:e,scrollState:v,layoutOrder:c,rowCount:P,columnCount:A});Ls({renderProps:e,layoutOptions:q,maxCount:x.maxCount,columnCount:A,rowCount:P,overflowDisclaimer:S,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(r=t.qDimensionInfo)||void 0===r?void 0:r.qCardinal,dataOffset:i.current.dataOffset}),o(s)},ref:a}),rs)}}}({direction:y,layout:f,height:b,width:x,checkboxes:A,frequencyMode:E,histogram:M,keyboard:I,showGray:O,interactionEvents:Y,select:Q,textAlign:fe,isVertical:se,pages:Z,selectDisabled:q,isSingleSelect:P,selections:m,scrollState:R,local:z,sizes:de,listCount:pe,overflowDisclaimer:{state:V,set:e=>K((t=>H(H({},t),{},{show:e})))},setScrollPosition:he,focusListItems:{first:me.first,setFirst:e=>ge((t=>H(H({},t),{},{first:e}))),last:me.last,setLast:e=>ge((t=>H(H({},t),{},{last:e})))},setCurrentScrollIndex:_.set,constraints:h,frequencyMax:ye,freqIsAllowed:ue}),{columnWidth:xe,listHeight:Ee,itemHeight:Se}=de||{};return se||(ae=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:x,columnWidth:xe,listHeight:Ee,itemHeight:Se})),t.createElement(t.Fragment,null,!pe&&t.createElement(As,{width:x,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(ga,{isItemLoaded:J,itemCount:pe||1,loadMoreItems:U.with({minimumBatchSize:ae}),threshold:0,minimumBatchSize:ae,ref:N},se?ve:be),V.show&&!V.dismissed&&t.createElement(il,{text:"Listbox.ItemsOverflow",dismiss:()=>K((e=>H(H({},e),{},{dismissed:!0}))),parentWidth:null==N||null===(a=N.current)||void 0===a||null===(s=a._listRef)||void 0===s||null===(c=s.props)||void 0===c?void 0:c.width,dense:null==ee?void 0:ee.dense}))}const dl=e=>H(H({},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"}}]}),pl=e=>H(H({},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"}}]}),hl=e=>H(H({},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"}}]}),fl=e=>H(H({},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 ml=e=>{let{layout:t,model:n,translator:r,selectionState:o}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:dl,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:hl,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:pl,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:fl,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}]};const gl=e=>H(H({},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 yl(e){const t=oi(),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 vl="njs-cell-action",bl=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=oi(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=yl(o);if(s)return null;const d=Number.parseInt(a.spacing(.5),10),p=o.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&o.keyboardAction():null;return t.createElement(L,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:p,disabled:l,style:c,className:vl,size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList"},u&&ca(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),xl=e=>H(H({},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"}}]}),El=e=>H(H({},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 Sl=e=>ca(El(e));const Cl="njs-action-toolbar-more",wl={icon:"".concat("More","-icon")},Ll=si(I)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(wl.icon)]:{color:t.palette.text.primary}}}));function Il(e){let{item:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=yl(n);return o?null:t.createElement(R,{title:n.label,onClick:()=>{n.action(),r()},disabled:i,tabindex:"0"},a&&t.createElement(q,{className:wl.icon},ca(n.getSvgIconShape())),t.createElement(b,{noWrap:!0},n.label))}const Ol=t.forwardRef(((e,n)=>{let{actions:r=[],show:o=!0,alignTo:i,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:l=(()=>{})}=e;return r.length>0&&t.createElement(Ll,$({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:Cl}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:H({pointerEvents:"auto",maxWidth:"250px"},s)}}),t.createElement(O,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(Il,{key:n,item:e,onActionClick:l})))))})),Rl="ActionsToolbar",ql={item:"".concat(Rl,"-item"),itemSpacing:"".concat(Rl,"-itemSpacing"),firstItemSpacing:"".concat(Rl,"-firstItemSpacing"),lastItemSpacing:"".concat(Rl,"-lastItemSpacing")},kl=si(I)((e=>{let{theme:t}=e;return{["& .".concat(ql.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(ql.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(ql.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),_l="njs-action-toolbar-popover",Tl=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,actions:o=[],first:i=!1,last:a=!1,addAnchor:s=!1,isRtl:l=!1}=e;return o.length>0?t.createElement(S,{item:!0,container:!0,gap:0,flexDirection:l?"row-reverse":"row",wrap:"nowrap"},o.map(((e,l)=>{let c=[];const u=i&&0===l,d=a&&o.length-1===l;return u&&!d&&(c=[ql.firstItemSpacing,ql.item]),d&&!u&&(c=[...c,ql.lastItemSpacing,ql.item]),u||d||0!==c.length||(c=[ql.itemSpacing,ql.item]),t.createElement(S,{item:!0,key:e.key,className:c.join(" ").trim()},t.createElement(bl,{ariaExpanded:r,key:e.key,item:e,ref:0===l?n:null,addAnchor:s}))}))):null})),Dl={pointerEvents:"none"},Pl={vertical:"top",horizontal:"right"},Al={vertical:"bottom",horizontal:"right"};function Ml(e){let{show:o=!0,actions:a=[],maxItems:s=3,selections:l={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:p=null,actionsRefMock:f=null,direction:m="ltr"}=e;const g=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=h(Oi);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:El},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:xl},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:Ca}]}(l),{translator:y,keyboardNavigation:v}=h(Oi),[b,x]=n(!1),E=d(),C=d(),w=oi(),L=i((()=>({margin:w.spacing(.5,0)}))),I=e=>{const t=C.current||f;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};r((()=>()=>{x(!1)}),[u.show,o,l.show]),r((()=>{if(!p)return;p.on("focus_toolbar_first",(()=>{const e=I(!1);e&&e.focus()})),p.on("focus_toolbar_last",(()=>{const e=I(!0);e&&e.focus()}))}),[]);let O=c.enabled,R=c.actions;const q=c.alignTo||E,_=a.filter((e=>!e.hidden));if(_.length>s){const e=_.splice(-(_.length-s)-1);O=!0,R=[...e,...c.actions]}if(!l.show&&0===_.length)return null;const T={key:"more",label:y.get("Menu.More"),getSvgIconShape:gl,hidden:!1,active:b,enabled:()=>O,action:()=>x(!b)},D=v&&p&&p.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&I(!1)===e.target||!e.shiftKey&&I(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),p.refocusContent())}:null,P=_.length>0,A=R.length>0,M=P&&l.show||A&&l.show,N="rtl"===m,z=t.createElement(S,{ref:C,onKeyDown:D,container:!0,gap:0,wrap:"nowrap",sx:{flexDirection:N?"row-reverse":"row"}},P&&t.createElement(Tl,{actions:_,first:!0,last:!A&&!l.show}),A&&t.createElement(Tl,{ref:E,ariaExpanded:b,actions:[T],first:!P,last:!l.show,addAnchor:!0}),M&&t.createElement(S,{item:!0,className:ql.itemSpacing,style:L},t.createElement(k,{orientation:"vertical"})),l.show&&t.createElement(Tl,{actions:g,first:!P&&!A,last:!0,isRtl:N}),b&&t.createElement(Ol,{show:b,actions:R,alignTo:q,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{x(!1)}}));return u.show?t.createElement(kl,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:Pl,transformOrigin:Al,hideBackdrop:!0,style:Dl,PaperProps:{className:_l,style:{pointerEvents:"auto",padding:w.spacing(.8)}}},z):o&&z}var Nl=e=>ca((e=>H(H({},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 zl="/qListObjectDef",jl=si(_)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color}})),Fl=si(T)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color,display:"flex"}}));function Wl(e){let{selections:o,selectionState:i,model:a,keyboard:s,dense:l=!1,visible:c=!0,autoFocus:u=!0,wildCardSearch:p=!1,searchEnabled:f,direction:m}=e;const{translator:g}=h(Oi),[y,v]=n(""),[b,x]=n(!1),E=d(),S=oi(),{getStoreValue:C}=Ps(a),w="rtl"===m,L=w?"right":"left",I=async()=>{if(o.isModal())try{await a.abortListObjectSearch(zl)}finally{v("")}};r((()=>{c||I()}),[c]),r((()=>(o.on("deactivated",I),()=>{o.removeListener&&o.removeListener("deactivated",I)})),[]),r((()=>{if(b&&E.current){const e=y.length-1;E.current.setSelectionRange(e,e),x(!1)}}),[b,E.current]);const O=async()=>{let e;return await a.searchListObjectFor(zl,y)&&y.length&&C("listCount")>0&&(e=a.acceptListObjectSearch(zl,!0),o.selectionsMade=!0,i.clearItemStates(!1),v("")),e};return c&&!1!==f?t.createElement(Fl,{startAdornment:t.createElement(jl,{position:"start"},t.createElement(Nl,{size:l?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(S.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(9,"px")},l&&{fontSize:12,paddingLeft:S.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:w?"row-reverse":"row"}],inputRef:E,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:y,onFocus:()=>{p&&(v("**"),x(!0)),o.isModal()||o.begin(["/qListObjectDef"])},onChange:async e=>(v(e.target.value),e.target.value.length?a.searchListObjectFor(zl,e.target.value):I()),onKeyDown:async e=>{let t;switch(e.key){case"Enter":t=await O();break;case"Escape":t=o.isActive()&&o.cancel(),e.preventDefault(),e.stopPropagation()}return t},autoFocus:u,inputProps:{tabIndex:!s||s.enabled&&!s.active?-1:0,style:{textAlign:"".concat(L)}}}):null}function Bl(e){return Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e}const Hl=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(o,e,!0))},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(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return Bl(s),s},Ul=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 $l(e,t,n,o){const i=Array.isArray(n)?n:[n],[a]=Ni(e),[s]=ia(t),l=t?t.id:null,[c]=_i(),[u]=Di(),d=c.get(e.id);let p=u.get(l);return r((()=>{a&&t&&!p&&(p=Hl({appSelections:a,appModal:d,model:t}),u.set(l,p),u.dispatch(!0))}),[a,t]),r((()=>{if(!p)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Ul({elements:i,objectSelections:p,options:o});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{p.removeListener("activated",e),p.removeListener("deactivated",t)}}),[p]),r((()=>{p&&p.setLayout(s)}),[p,s]),[p]}function Gl(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:i,pages:a,isSingleSelect:s,selectDisabled:l,layout:c}=t;this.setPages=i;const u=this.lastRowCount===c.qListObject.qSize.qcy,d=this.lastApprMaxGlyphCount===c.qListObject.qDimensionInfo.qApprMaxGlyphCount;u&&d||(this.lastRowCount=c.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=c.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=ba(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=s,e.selectDisabled=l,e.isDimCalculated=null!==(n=null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.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=>t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[H(H({},n),{},{qState:r}),...t.slice(1)]}));return H(H({},t),{},{qMatrix: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 Vl=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 Kl(e){let{alignTo:o,anchorOrigin:i={vertical:"bottom",horizontal:"center"},transformOrigin:a={vertical:"top",horizontal:"center"},show:s,close:c,app:u,fieldName:p,stateName:f="$",autoFocus:m}=e;const g=Boolean(null==p?void 0:p.qLibraryId),y=s&&Boolean(o.current),[v,b]=n(0),x=oi(),[E]=ea({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:f,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:g?void 0:[p]},qLibraryId:g?p.qLibraryId:void 0}},u,p,f),C=l((()=>{E.lock("/qListObjectDef")}),[E]),w=l((()=>{E.unlock("/qListObjectDef")}),[E]),{translator:O}=h(Oi),R=d(),q=d(),[k]=$l(u,E,q),[_]=ia(E),[T]=n((()=>Gl()));if(r((()=>{k&&y&&(k.isModal(E)||k.goModal("/qListObjectDef"))}),[k,y]),!E||!_||!O)return null;const D=!0===_.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;k.noModal(n),c()},A=ml({layout:_,model:E,translator:O,selectionState:T}),M=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return Vl(t,"qSelected",0)+Vl(t,"qSelectedExcluded",0)+Vl(t,"qLocked",0)+Vl(t,"qLockedExcluded",0)>0}(_);return t.createElement(I,{open:y,onClose:P,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,PaperProps:{style:{minWidth:"250px"}}},t.createElement(S,{container:!0,direction:"column",gap:0,ref:q},t.createElement(S,{item:!0,container:!0,style:{padding:x.spacing(1)}},t.createElement(S,{item:!0},D?t.createElement(L,{onClick:w,disabled:!D,size:"large"},t.createElement(da,{title:O.get("Listbox.Unlock")})):t.createElement(L,{onClick:C,disabled:!M,size:"large"},t.createElement(pa,{title:O.get("Listbox.Lock")}))),t.createElement(S,{item:!0,xs:!0}),t.createElement(S,{item:!0},t.createElement(Ml,{more:{enabled:!D,actions:A,alignTo:R,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:k,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}}))),t.createElement(S,{item:!0,xs:!0},t.createElement("div",{ref:R}),t.createElement(Wl,{visible:!0,model:E,listCount:v,selections:k,selectionState:T,keyboard:{enabled:!1},autoFocus:null==m||m}),t.createElement(ul,{model:E,app:u,layout:_,selections:k,selectionState:T,direction:"ltr",onSetListCount:e=>b(e)}))))}function Zl(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=h(Oi),u=s||d(),p=oi(),[f,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!f)},y=()=>{m(!1),l()},v=r.selections[i];void 0===v.qTotal&&(v.qTotal=0);const x=v.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},E=(x.qSelected+x.qLocked)/v.qTotal,C=x.qAlternative/v.qTotal,w=(x.qExcluded+x.qLockedExcluded+x.qSelectedExcluded)/v.qTotal,I=x.qSelected+x.qSelectedExcluded+x.qLocked+x.qLockedExcluded,O=0===I&&0===v.qTotal;let R="";v.qTotal===I&&v.qTotal>1?R=c.get("CurrentSelections.All"):I>1&&v.qTotal?R=c.get("CurrentSelections.Of",[I,v.qTotal]):v.qSelectedFieldSelectionInfo&&(R=v.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(R="".concat(r.states[i],": ").concat(R));const q=[{color:p.palette.selected.main,ratio:E},{color:p.palette.selected.alternative,ratio:C},{color:p.palette.selected.excluded,ratio:w}];q.forEach(((e,t)=>{e.offset=t?q[t-1].offset+q[t-1].ratio:0}));let k=null,_=null,T=null,D=null;return s||(k=t.createElement(S,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:v.qLocked?"0.3":""}},t.createElement(b,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},v.qField),t.createElement(b,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},R)),v.qLocked?_=t.createElement(S,{item:!0},t.createElement(L,{size:"large"},t.createElement(da,null))):v.qOneAndOnlyOne||(_=t.createElement(S,{item:!0},t.createElement(L,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(v.qField,r.states[i])},size:"large"},t.createElement(ua,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===O&&q.map((e=>t.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,"%")}})))),D=t.createElement(S,{container:!0,gap:1,ref:u,sx:{backgroundColor:p.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:p.palette.action.hover}},onClick:!1===a&&g||null},k,_,T,f&&t.createElement(Kl,{alignTo:u,show:f,close:y,app:o.model,fieldName:v.qField,stateName:r.states[i]}))),s?t.createElement(Kl,{alignTo:u,show:!0,close:y,app:o.model,fieldName:v.qField,stateName:r.states[i]}):D}var Xl=e=>ca((e=>H(H({},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 Jl={item:"".concat("MultiState","-item")},Yl=si(S)((e=>{let{theme:t}=e;return{["&.".concat(Jl.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function Ql(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[s,l]=n(!!i),[c,u]=n(-1),[p,f]=n(i?i.current:null),m=i||d(),{translator:g}=h(Oi),y=g.get("Selection.ClearAllStates"),v=()=>{u(-1),a()};let x=null;i||(x=t.createElement(t.Fragment,null,t.createElement(S,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(D,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(b,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.name))),t.createElement(S,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(S,{item:!0},t.createElement(L,{size:"large"},t.createElement(Xl,null)))));const C=t.createElement(P,{dense:!0},t.createElement(A,{title:y,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(M,{variant:"contained",fullWidth:!0},y)),r.states.map(((e,n)=>t.createElement(A,{key:n,title:r.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,n)},t.createElement(E,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(Zl,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),w=t.createElement(I,{open:s,onClose:()=>{l(!1),a()},anchorEl:p,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},C),O=i?w:t.createElement(Yl,{container:!0,gap:0,className:Jl.item,onClick:e=>{e.currentTarget.contains(e.target)&&(f(e.currentTarget),m.current=e.currentTarget,l(!s))}},x,s&&w,c>-1&&t.createElement(Kl,{alignTo:m,show:c>-1,close:v,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}));return i&&c>-1?t.createElement(Kl,{alignTo:m,show:c>-1,close:v,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}):O}const ec="More",tc={item:"".concat(ec,"-item"),badge:"".concat(ec,"-badge")},nc=si(S)((e=>{let{theme:t}=e;return{["&.".concat(tc.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(tc.badge)]:{padding:t.spacing(0,1)}}}));function rc(e){let{items:r=[],api:o}=e;const i=oi(),[a,s]=n(!1),[l,c]=n(-1),[u,p]=n(null),h=d(),f=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(Ql,{field:r[l],api:o,moreAlignTo:h,onClose:f}):t.createElement(Zl,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:h,onClose:f})),t.createElement(nc,{container:!0,gap:0,className:tc.item,onClick:e=>{e.currentTarget.contains(e.target)&&(p(e.currentTarget),h.current=e.currentTarget,s(!a))}},t.createElement(S,{item:!0},t.createElement(E,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(b,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(S,{item:!0},t.createElement(L,{size:"large"},t.createElement(Xl,null))),a&&t.createElement(I,{open:a,onClose:()=>{s(!1)},anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},t.createElement(P,{dense:!0},r.map(((e,n)=>t.createElement(A,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(E,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(Ql,{field:e,api:o}):t.createElement(Zl,{field:e,api:o}))))))),m)}function oc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function ic(e){let{api:o,app:i}=e;const a=oi(),[s]=na(i),[l]=ia(s),[c,u]=n({items:[],more:[]}),[d]=Ai(),[p,h]=sa(),[f,m]=n(0);return r((()=>{if(!h)return;const{width:e}=h,t=Math.floor(e)-72,n=Math.floor(t/120);m(n)}),[h]),r((()=>{if(!(i&&s&&l&&f))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&oc(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>oc(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(l);u((t=>{const n=e;if((()=>{const e=d.get(i.id);return e&&"njsListbox"===e.genericType})()&&n.length+1===t.items.length){const e=t.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:r}=e.selections[0];e.selections=[{qField:r}];const o=t.items.indexOf(e);n.splice(o,0,e)}let r=[];return f<n.length&&(r=n.splice(f-n.length)),{items:n,more:r}}))}),[i,s,l,o.isInModal(),f]),t.createElement(S,{ref:p,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},c.items.map((e=>t.createElement(S,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(Ql,{field:e,api:o}):t.createElement(Zl,{field:e,api:o})))),c.more.length>0&&t.createElement(S,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(rc,{items:c.more,api:o})))}var ac=e=>ca((e=>H(H({},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 sc=e=>ca((e=>H(H({},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));function lc(e){const[t]=na(e),[o]=ia(t),[i]=aa(e),[a,s]=n(null);return r((()=>{i&&t&&o&&((e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,o,i)}),[i,t,o]),r((()=>{if(!o)return;let e=!1,t=!1,n=!1;[o,...o.alternateStates||[]].forEach((r=>{e=e||r.qSelectionObject&&r.qSelectionObject.qBackCount>0,t=t||r.qSelectionObject&&r.qSelectionObject.qForwardCount>0,n=n||(r.qSelectionObject&&r.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[o]),[a,t,o]}function cc(e){let{api:n,app:r}=e;const{translator:o}=h(Oi),[i]=lc(r);return t.createElement(S,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(S,{item:!0},t.createElement(L,{style:{marginRight:"8px"},disabled:!i||!i.canGoBack,title:o.get("Navigate.Back"),onClick:()=>n.back(),size:"large"},t.createElement(ac,null))),t.createElement(S,{item:!0},t.createElement(L,{style:{marginRight:"8px"},disabled:!i||!i.canGoForward,title:o.get("Navigate.Forward"),onClick:()=>n.forward(),size:"large"},t.createElement(sc,null))),t.createElement(S,{item:!0},t.createElement(L,{disabled:!i||!i.canClear,title:o.get("Selection.ClearAll"),onClick:()=>n.clear(),size:"large"},t.createElement(Sl,null))))}const uc=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function dc(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function pc(){return uc.map(dc).join("")}function hc(e){let{app:n}=e;const r=oi(),[o]=Ni(n);return o?t.createElement(S,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(S,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(cc,{api:o,app:n})),t.createElement(S,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(ic,{api:o,app:n}))):null}function fc(e){let{element:n,app:r}=e;return f.createPortal(t.createElement(hc,{app:r}),n,pc())}var mc=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},gc=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}}(),yc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vc=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},bc=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},xc=void 0;xc="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var Ec=null,Sc=null,Cc=xc.clearTimeout,wc=xc.setTimeout,Lc=xc.cancelAnimationFrame||xc.mozCancelAnimationFrame||xc.webkitCancelAnimationFrame,Ic=xc.requestAnimationFrame||xc.mozRequestAnimationFrame||xc.webkitRequestAnimationFrame;function Oc(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){var 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)){var t=this;a(this),this.__resizeRAF__&&Ec(this.__resizeRAF__),this.__resizeRAF__=Sc((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,u="";r="animationstart";var d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=document.createElement("fakeelement");if(void 0!==h.style.animationName&&(c=!0),!1===c)for(var f=0;f<d.length;f++)if(void 0!==h.style[d[f]+"AnimationName"]){u="-"+d[f].toLowerCase()+"-",r=p[f],c=!0;break}t="@"+u+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=u+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){var u=i.ownerDocument,d=xc.getComputedStyle(i);d&&"static"===d.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var 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)}}(u),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=u.createElement("div")).className="resize-triggers";var p=u.createElement("div");p.className="expand-trigger",p.appendChild(u.createElement("div"));var h=u.createElement("div");h.className="contract-trigger",i.__resizeTriggers__.appendChild(p),i.__resizeTriggers__.appendChild(h),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==Lc||null==Ic?(Ec=Cc,Sc=function(e){return wc(e,20)}):(Ec=function(e){var t=bc(e,2),n=t[0],r=t[1];Lc(n),Cc(r)},Sc=function(e){var t=Ic((function(){Cc(n),e()})),n=wc((function(){Lc(t),e()}),20);return[t,n]});var Rc=function(e){function t(){var e,n,r;mc(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=vc(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,p=i-u-d,h=a-l-c;(!t&&r.state.height!==p||!n&&r.state.width!==h)&&(r.setState({height:i-u-d,width:a-l-c}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},vc(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,u),gc(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=Oc(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,s=a.height,l=a.width,c={overflow:"visible"},u={},d=!1;return r||(0===s&&(d=!0),c.height=0,u.height=s),o||(0===l&&(d=!0),c.width=0,u.width=l),p("div",{className:n,ref:this._setRef,style:yc({},c,i)},!d&&t(u))}}]),t}();Rc.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var qc=e=>ca((e=>H(H({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));const kc="ListBoxInline",_c={listBoxHeader:"".concat(kc,"-listBoxHeader"),screenReaderOnly:"".concat(kc,"-screenReaderOnly"),listboxWrapper:"".concat(kc,"-listboxWrapper")},Tc=si(S,{shouldForwardProp:e=>!["containerPadding"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o}=e;return{backgroundColor:null!==(t=null===(n=r.listBox)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:r.palette.background.default,["& .".concat(_c.listBoxHeader)]:{alignSelf:"center",display:"flex",width:"calc(100% - ".concat(28,"px)")},["& .".concat(_c.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(_c.listboxWrapper)]:{padding:o},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}}})),Dc=si(b)((e=>{var t,n,r,o,i,a,s,l,c,u,d,p;let{theme:h}=e;return{color:null===(t=h.listBox)||void 0===t||null===(n=t.title)||void 0===n||null===(r=n.main)||void 0===r?void 0:r.color,fontSize:null===(o=h.listBox)||void 0===o||null===(i=o.title)||void 0===i||null===(a=i.main)||void 0===a?void 0:a.fontSize,fontFamily:null===(s=h.listBox)||void 0===s||null===(l=s.title)||void 0===l||null===(c=l.main)||void 0===c?void 0:c.fontFamily,fontWeight:(null===(u=h.listBox)||void 0===u||null===(d=u.title)||void 0===d||null===(p=d.main)||void 0===p?void 0:p.fontWeight)||"bold"}}));const Pc=t.memo((function(e){var o;let{options:i,layout:a}=e;const{app:s,direction:c,frequencyMode:u,checkboxes:p,search:f=!0,focusSearch:m=!1,rangeSelect:g=!0,model:y,selections:v,update:b,fetchStart:x,selectDisabled:E=(()=>!1),postProcessPages:C,calculatePagesHeight:w,showGray:I=!0,scrollState:O}=i;let{toolbar:R=!0}=i;const q=oi(),k=l((()=>{y.unlock("/qListObjectDef")}),[y]),{translator:_,keyboardNavigation:T,themeApi:D,constraints:P}=h(Oi);q.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(D);const A=d(),[M,N]=(()=>{const[e,t]=n({}),r=l((e=>{t({current:e})}),[t]);return[e,r]})(),[z,j]=n(!1),[F,W]=n(!1),[B,U]=n(!1),[G,V]=n(!1),[K,Z]=n({down:0,up:0,scrollPosition:""}),[X,J]=n({start:0,stop:0}),[Y]=Ni(s),Q=d(null),[ee]=n((()=>Gl())),{handleKeyDown:te,handleOnMouseEnter:ne,handleOnMouseLeave:re}=Ia({setKeyboardActive:U,hovering:G,setHovering:V,updateKeyScroll:e=>Z((t=>H(H({},t),e))),containerRef:A,currentScrollIndex:X,app:s,appSelections:Y,constraints:P}),oe={enabled:T,active:B};void 0!==(null==a?void 0:a.toolbar)&&(R=a.toolbar);const ie=R&&""===(null==a?void 0:a.title);if(R=R&&""!==(null==a?void 0:a.title),r((()=>{const e=()=>{j(!0),"toggle"===f&&!1===R&&W(!0)},t=()=>{j(!1),"toggle"===f&&W(!1)};return v&&(v.isModal()||(v.on("activated",e),v.on("deactivated",t)),j(v.isActive())),()=>{v&&v.removeListener&&(v.removeListener("activated",e),v.removeListener("deactivated",t))}}),[v,R]),r((()=>{if(M&&M.current&&(f&&m||"toggle"===f&&F)){const e=M.current.querySelector("input");e&&e.focus()}}),[M&&M.current,F,f,m]),!y||!a||!_)return null;const ae=!0===a.qListObject.qDimensionInfo.qLocked,se="rtl"===c,le="H"===a.qListObject.qDimensionInfo.qGrouping,ce=ml({layout:a,model:y,translator:_,selectionState:ee}),{wildCardSearch:ue,searchEnabled:de,layoutOptions:pe={}}=a,he=(!0===f||"toggle"===f&&F)&&!E()&&!1!==de,fe=null!==(o=pe.dense)&&void 0!==o&&o,me=R?49+(he?fe?27:40:0)+(fe?39:49):0,ge=e=>function(e){let{isPopover:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,selections:a}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:a,onConfirm:()=>{},onCancel:()=>{}}}}({isPopover:e,showToolbar:z,containerRef:A,isLocked:ae,listboxSelectionToolbarItems:ce,selections:v}),ye=he&&"toggle"===f,ve=!1!==de&&"toggle"===f&&!(null!=P&&P.active),be=ae||ve,xe=be||le,Ee=(be?28:0)+(le?19:0),Se=9-(be?7:0),Ce=se?9-(xe?7:0):0;let we;return"grid"===(null==pe?void 0:pe.dataLayout)&&(we="row"===pe.layoutOrder?"2px 4px":"2px 6px 2px 4px"),t.createElement(t.Fragment,null,ie&&t.createElement(Ml,$({direction:c},ge(!0))),t.createElement(Tc,{className:"listbox-container",container:!0,tabIndex:oe.enabled&&!oe.active?0:-1,direction:"column",gap:0,containerPadding:we,style:{height:"100%",minHeight:"".concat(me,"px"),flexFlow:"column nowrap"},onKeyDown:te,onMouseEnter:ne,onMouseLeave:re,ref:A},R&&t.createElement(S,{item:!0,container:!0,style:{padding:q.spacing(1),paddingLeft:"".concat(Se,"px"),paddingRight:"".concat(Ce,"px")},sx:{flexDirection:se?"row-reverse":"row"},wrap:"nowrap"},t.createElement(S,{item:!0,container:!0,height:32,sx:{flexDirection:se?"row-reverse":"row"},wrap:"nowrap"},xe&&t.createElement(S,{item:!0,sx:{display:"flex",alignItems:"center",width:Ee}},ae?t.createElement(L,{title:_.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:k,disabled:E(),size:"large"},t.createElement(da,{disableRipple:!0,style:{fontSize:"12px"}})):ve&&t.createElement(L,{onClick:()=>{W(!F)},tabIndex:-1,title:_.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(Nl,{style:{fontSize:"12px"}})),le&&t.createElement(qc,{tabIndex:-1,title:_.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),t.createElement(S,{item:!0,sx:{justifyContent:se?"flex-end":"flex-start"},className:_c.listBoxHeader},t.createElement(Dc,{variant:"h6",noWrap:!0,ref:Q,title:a.title},a.title))),t.createElement(S,{item:!0,xs:!0}),t.createElement(S,{item:!0},t.createElement(Ml,$({direction:c},ge(function(e){var t,n,r,o,i,a;let{containerRef:s,titleRef:l,iconsWidth:c}=e;return!!((null!==(t=null==s||null===(n=s.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)<(null!==(r=null==l||null===(o=l.current)||void 0===o?void 0:o.clientWidth)&&void 0!==r?r:0)+c+16+128|(null==l||null===(i=l.current)||void 0===i?void 0:i.scrollWidth)>(null==l||null===(a=l.current)||void 0===a?void 0:a.offsetWidth))}({containerRef:A,titleRef:Q,iconsWidth:Ee})))))),t.createElement(S,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":_.get("Listbox.ResultFilterLabel")},t.createElement(S,{item:!0,ref:N},t.createElement("div",{className:_c.screenReaderOnly},_.get("Listbox.Search.ScreenReaderInstructions")),t.createElement(Wl,{selections:v,selectionState:ee,model:y,dense:fe,keyboard:oe,visible:he,search:f,autoFocus:ye,searchContainerRef:N,wildCardSearch:ue,searchEnabled:de,direction:c})),t.createElement(S,{item:!0,xs:!0,className:_c.listboxWrapper},t.createElement("div",{className:_c.screenReaderOnly},_.get("Listbox.ScreenReaderInstructions")),t.createElement(Rc,null,(e=>{let{height:n,width:r}=e;return t.createElement(ul,{model:y,app:s,constraints:P,layout:a,selections:v,selectionState:ee,direction:c,frequencyMode:u,rangeSelect:g,checkboxes:p,height:n,width:r,update:b,fetchStart:x,postProcessPages:C,calculatePagesHeight:w,selectDisabled:E,keyboard:oe,showGray:I,scrollState:O,keyScroll:{state:K,reset:()=>Z({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:X,set:J}})}))))))}));function Ac(e){let{options:n={}}=e;const{model:r}=n,[o]=ia(r);return t.createElement(Pc,{options:n,layout:o})}const Mc=["__DO_NOT_USE__"],Nc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=G(e,Mc),r={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1},o=H(H(H({},n),r),t);return o};function zc(e){let{app:o,fieldIdentifier:a,qId:s,stateName:l,element:c,options:u}=e;const{isExistingObject:p,hasExternalSelectionsApi:h}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:s,options:u}),[f,m]=n(0);r((()=>{if(f)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(f+1)}),[p,h]);const g=p?function(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=Yi(),{sessionModel:c}=i,u=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],d=Object.keys(i).filter((e=>u.includes(e)));if(d.length)throw new Error('Option "'.concat(d.join(", "),'" is not applicable for existing objects.'));return r((()=>{c?s(c):async function(){const e=l.get(o);if(e)s(e);else{const e=await t.getObject(o);l.set(e.id,e),e.once("closed",(()=>{l.clear(e.id)})),s(e)}}()}),[]),a}({app:o,qId:s,options:u}):function(e){var t;let{app:o,fieldIdentifier:i,stateName:a,options:s={}}=e;const[l,c]=n(""),[u,p]=n(!0),[h,f]=n(),[m,g]=n(),y=null!==(t=s.title)&&void 0!==t?t:m;r((()=>{const e=s.histogram||"N"!==s.frequencyMode;i.qLibraryId&&e?async function(){try{const e=await o.getDimension(i.qLibraryId),t=await e.getLayout();g(t.qDim.title),"N"===t.qDim.qGrouping?c(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):c({multiFieldDim:!0}),p(!1)}catch(e){throw p(!1),c({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(p(!1),g(i))}),[]);const{dense:v,checkboxes:b,listLayout:x,properties:E={}}=s;let{frequencyMode:S,histogram:C=!1}=s;switch(l&&l.failedToFetchFieldDef&&(C=!1,S="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(S):S="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(S):S="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(S):S="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(S):S="R";break;default:S="N"}const w={dense:v};"horizontal"===x&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const L=d();L.current||(L.current=pc());const I={qInfo:{qType:"njsListbox",qId:L.current},qListObjectDef:{qStateName:a,qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:C&&"N"===S?"V":S,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:C,checkboxes:b,layoutOptions:w,title:y};let O;if(Ue(!0,I,E),i.qLibraryId?(I.qListObjectDef.qLibraryId=i.qLibraryId,O=i.qLibraryId):(I.qListObjectDef.qDef.qFieldDefs=[i],O=i),"P"!==S&&C)if(null!=l&&l.multiFieldDim)I.frequencyMax="fetch";else{const e=i.qLibraryId?l:O;I.frequencyMax={qValueExpression:sl(e)}}const[R]=ea(I,u?null:o,O,a);return r((()=>{R&&f(R)}),[R]),h}({app:o,fieldIdentifier:a,stateName:l,options:u}),y=d(c),v=h?u.selectionsApi:$l(o,g,[y,".njs-action-toolbar-more",".njs-action-toolbar-popover"],u)[0],b=i((()=>H(H({},u),{},{selections:v,model:g,app:o})),[u,v,g,o]);return v&&g?t.createElement(Ac,{options:b}):null}function jc(e){let{element:n,app:r,fieldIdentifier:o,qId:i,stateName:a="$",options:s={}}=e;return f.createPortal(t.createElement(zc,{app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,options:s}),n,pc())}const Fc={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},Wc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=H({},Fc);return Ue(!0,t,e),t};function Bc(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(Kl,{show:l,app:r,alignTo:{current:a},anchorOrigin:s.anchorOrigin,transformOrigin:s.transformOrigin,close:()=>{c(!1),s.onPopoverClose&&s.onPopoverClose()},fieldName:o,stateName:i,autoFocus:s.autoFocus})}function Hc(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Uc(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}function $c(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const o=t.qae.data.targets[0];if(!o)return;const{propertyPath:i}=o,a=i.split("/");let s=n;for(let e=0;e<a.length;e++){const t=a[e];s=t?s[t]:s}const l=function(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?{qDef:{qFieldDefs:[e]}}:H(H({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||pc(),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),Hc(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 Uc(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?{qDef:{qDef:e}}:H(H({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||pc(),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),Hc(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];Uc(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}({dc:s,def:o,properties:n});r.forEach((e=>{const t=function(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"}(e);"measure"===t?l.addMeasure(e):l.addDimension(e)}))}var Gc=(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},Vc=(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]},Kc=e=>0===Object.keys(e).length&&e.constructor===Object;var Zc={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}};const Xc=2**53-1;function Jc(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Yc(e,t){const n=Ue(!0,{},t,e);return Gc(n,"qOtherTotalSpec.qOtherCounted")||Vc(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Gc(n,"qOtherTotalSpec.qOtherLimit")||Vc(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Qc(e,t){return Ue(!0,{},t,e)}function eu(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var tu={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===Gc(e,t)&&Vc(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Jc,importCommonProperties:function(e,t,n){const r="masterobject"===Gc(t,"properties.qInfo.qType")?"masterobject":Gc(n,"qInfo.qType");Vc(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:Yc,createDefaultMeasure:Qc,resolveValue:eu,getHypercubePath:function(e){const t=Gc(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?(Zc.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Zc.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=Ue(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?Vc(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||Jc(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ue(!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=eu(i.max,r.dimensions.length,Xc),s=eu(i.min,r.dimensions.length,0);return{maxDimensions:eu(o.max,a,Xc),minDimensions:eu(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(Yc(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Yc(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Yc(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(Yc(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Yc(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(Qc(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Qc(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Qc(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(Qc(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Qc(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=Gc(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=Gc(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var nu={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=Gc(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();Zc.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&&(tu.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!Kc(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=tu.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=Gc(n,i||"").qHyperCubeDef,c=Gc(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h}=tu.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=tu.getDefaultDimension(),defaultMeasure:m=tu.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,tu.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h})&&tu.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h,newHyperCubeDef:c}),tu.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:f}),tu.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:h,newHyperCubeDef:c,defaultMeasure:m}),tu.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),tu.copyPropertyIfExist("qMaxStackedCells",l,c),tu.copyPropertyIfExist("qNoOfLeftDims",l,c),tu.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),tu.copyPropertyOrSetDefault("qMode",l,c,"S"),tu.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),tu.copyPropertyOrSetDefault("qSortbyYValue",l,c),tu.copyPropertyOrSetDefault("qIndentMode",l,c),tu.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),tu.importCommonProperties(s,t,n),tu.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),tu.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const ru=e=>Gc(e,"data.targets.0.propertyPath"),ou=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return nu.exportProperties})(ru(e))},iu=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return nu.importProperties})(ru(e))},au=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const i=await n.getFullPropertyTree(),a=r.current.getQae(),s=ou(a),l=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}),c=l.qae;return iu(c)({exportFormat:s({propertyTree:i,hypercubePath:tu.getHypercubePath(a)}),initialProperties:H({qInfo:{qType:o},visualization:o},Gc(c,"properties.initial",{})),dataDefinition:Gc(c,"data.targets.0.",{}),hypercubePath:tu.getHypercubePath(c)})},su={hypercube:nu};var lu=e=>ca((e=>H(H({},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 cu(e){let{d:n}=e;const r=oi();let o="inherit",i=r.palette.success.main;n.missing?i=r.palette.warning.main:n.error&&(o="error",i=r.palette.error.main);const a={color:i},s=t.createElement(b,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement(N,null,n.missing||n.error?t.createElement(lu,{style:a}):t.createElement(wa,{style:a})));return t.createElement(S,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(S,{item:!0},s),t.createElement(S,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(b,{noWrap:!0,component:"p"},t.createElement(b,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(b,{component:"span"}," "),t.createElement(b,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function uu(e){let{data:n}=e;const r=oi();return t.createElement(S,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(cu,{d:e,key:n})));return o.length>0&&t.createElement(S,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(b,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function du(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(S,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(S,{item:!0},t.createElement(lu,{style:{fontSize:"38px"}})),t.createElement(S,{item:!0},t.createElement(b,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(S,{item:!0},t.createElement(b,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(uu,{data:o}))}const pu=["size"],hu="Progress",fu={root:"".concat(hu,"-root"),front:"".concat(hu,"-front"),back:"".concat(hu,"-back")},mu=si("div")((e=>{let{theme:t}=e;return{["&.".concat(fu.root)]:{position:"relative",display:"inline-block"},["& .".concat(fu.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(fu.back)]:{color:t.palette.divider}}})),gu={small:16,medium:32,large:64,xlarge:128};function yu(e){let{size:n="medium"}=e,r=G(e,pu);const o=gu[n];return t.createElement(mu,{className:fu.root},t.createElement(z,$({variant:"determinate",value:100,className:fu.back,size:o,thickness:3},r)),t.createElement(z,$({variant:"indeterminate",disableShrink:!0,className:fu.front,size:o,thickness:3},r)))}const vu=["cancel","translator"],bu=["retry","translator"],xu={stripes:"".concat("LongRunningQuery","-stripes")},Eu=si(S)((()=>({["& .".concat(xu.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 Su(e){let{cancel:n,translator:r}=e,o=G(e,vu);return t.createElement(t.Fragment,null,t.createElement(Eu,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(S,{item:!0},t.createElement(yu,null)),t.createElement(S,{item:!0},t.createElement(b,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(S,$({item:!0},o),t.createElement(M,{variant:"contained",onClick:n},r.get("Cancel"))))}function Cu(e){let{retry:n,translator:r}=e,o=G(e,bu);return t.createElement(t.Fragment,null,t.createElement(S,{item:!0},t.createElement(lu,{style:{fontSize:"38px"}})),t.createElement(S,{item:!0},t.createElement(b,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(S,{item:!0},t.createElement(M,$({variant:"contained",onClick:n},o),r.get("Retry"))))}function wu(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=h(Oi);return t.createElement(S,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:xu.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(Su,{cancel:o.cancel,translator:i,className:xu.cancel}),r&&t.createElement(Cu,{retry:o.retry,translator:i,className:xu.retry}))}function Lu(){return t.createElement(S,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(yu,{size:"large"}))}const Iu="Header",Ou={containerStyle:"".concat(Iu,"-containerStyle"),containerTitleStyle:"".concat(Iu,"-containerTitleStyle")},Ru=si(S)((e=>{let{theme:t}=e;return{["&.".concat(Ou.containerStyle)]:{flexGrow:0},["&.".concat(Ou.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),qu="njs-cell-title",ku="njs-cell-sub-title";function _u(e){let{layout:o,sn:i,anchorEl:a,hovering:s,focusHandler:l}=e;const c=o.showTitles&&!!o.title,u=o.showTitles&&!!o.subtitle,d=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[p,h]=n([]),[f,m]=sa(),[g,y]=n(!1);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{h([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]),r((()=>{if(!m)return;const{width:e}=m;y(e<221)}),[m]);const v=c||u,x=[Ou.containerStyle,...v?[Ou.containerTitleStyle]:[]],E=(s||d)&&(g||!v),C=v&&!E&&!g,w=t.createElement(Ml,{show:C,selections:{show:d,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:p,popover:{show:E,anchorEl:a},focusHandler:l});return t.createElement(Ru,{ref:f,item:!0,container:!0,wrap:"nowrap",className:x.join(" ")},t.createElement(S,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(S,{container:!0,wrap:"nowrap",direction:"column"},c&&t.createElement(b,{variant:"h6",noWrap:!0,className:qu},o.title),u&&t.createElement(b,{variant:"body2",noWrap:!0,className:ku},o.subtitle))),t.createElement(S,{item:!0},w))}const Tu={itemStyle:"".concat("Footer","-itemStyle")},Du=si(S)((e=>{let{theme:t}=e;return{["& .".concat(Tu.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),Pu="njs-cell-footer";function Au(e){let{layout:n}=e;return n&&n.showTitles&&n.footnote?t.createElement(Du,{container:!0},t.createElement(S,{item:!0,className:Tu.itemStyle},t.createElement(b,{noWrap:!0,variant:"body2",className:Pu},n.footnote))):null}class Mu{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 Nu="njs-viz";function zu(e){let{sn:o,snOptions:i,snPlugins:a,layout:s,appLayout:c,halo:u}=e;const{component:d}=o,{theme:p,language:f,constraints:m,keyboardNavigation:g}=h(Oi),[y]=n((()=>new Mu)),[v,b]=n(!1),[x,E]=n(0),[S,C,w]=sa(),[L,I]=n(null),O=l((e=>{e&&I(e)}),[]);return r((()=>{if(L)return d.created({options:i}),d.mounted(L),b(!0),()=>{y.stop(),d.willUnmount()}}),[L,d]),r((()=>{v&&L&&C&&(!d.isHooked&&s&&s.qSelectionInfo&&s.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),u.app&&u.app.session&&e.push("fetch"),Promise.resolve(d.render({layout:s,options:i,plugins:a,embed:u.public.nebbie,context:H({constraints:m,theme:u.public.theme,appLayout:c,keyboardNavigation:g},d.isHooked?{}:{logicalSize:o.logicalSize({layout:s}),localeInfo:(c||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===x&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),E(x+1))}))})))}),[C,i,a,L,w,s,c,p,f,m,v,g]),t.createElement("div",{ref:S,"data-render-count":x,style:{position:"relative",height:"100%"},className:Nu},t.createElement("div",{ref:O,style:{position:"absolute",width:"100%",height:"100%"}}))}const ju={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Fu={"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 Wu(e,t){return t?function(e){var t;let n,r,o,i;if(null!=e&&null!==(t=e.session)&&void 0!==t&&t.config)return n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host}(e)+t:void 0}const Bu=(e,t)=>{const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode||"media"===e.useImage)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=Wu(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=Fu[e.bgImage.position]),n}(e),s=function(e){var t;let n=ju.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=ju[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:s}:void 0}},Hu=(e,t)=>{const n=null==e?void 0:e.bgColor;if(n&&t)return n.useExpression?t.validateColor(n.colorExpression):n.color&&"none"!==n.color.color?t.getColorPickerColor(n.color,!0):void 0},Uu="njs-cell",$u=(e,t)=>{switch(t.type){case"LOADING":return H(H({},e),{},{loading:!0});case"LOADED":return H(H({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return H(H({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return H(H({},e),{},{longRunningQuery:!0});case"ERROR":return H(H({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Gu(e){let{delay:o=750}=e;const[i,a]=n(!1);return r((()=>{const e=setTimeout((()=>a(!0)),o);return()=>clearTimeout(e)}),[]),i?t.createElement(Lu,null):null}const Vu=e=>!e.qError||7005===e.qError.qErrorCode,Ku=(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}})),Zu=e=>e&&(Array.isArray(e)?e:[e])||[],Xu=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:Ku(o,Zu(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Ku(i,Zu(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Ju=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(),h=u.resolveLayout(n),f=Zu(h.qDimensionInfo||h.qItems).filter(Vu),m=Zu(h.qMeasureInfo).filter(Vu);if(o+=d,i+=p,(f.length<d||m.length<p)&&(r=!0),h.qError){a=!0,s=7005===h.qError.qErrorCode;const t=s&&h.qCalcCondMsg?h.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=Xu(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=u.filter((e=>!(e.missing||e.error))).length,f=e.get("Visualization.Incomplete.Dimensions",[h,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),y=[{title:f,descriptions:[...u]},{title:g,descriptions:[...d]}],v=l?c:y;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:v}]},Yu=o(((e,o)=>{let{halo:i,model:l,initialSnOptions:c,initialSnPlugins:u,initialError:p,onMount:f,currentId:m}=e;const{app:g,types:y}=i,{nebbie:v}=i.public,{disableCellPadding:b=!1}=i.context||{},{theme:x,translator:E,language:C,keyboardNavigation:L}=h(Oi),I=oi(),[O,R,q]=sa(),[k,_]=s($u,{loading:!1,loaded:!1,longRunningQuery:!1,error:(T=p)?{title:T.message}:null,sn:null,visualization:null});var T;const[D,{validating:P,canCancel:A,canRetry:M},N]=ia(l),[z]=aa(g),[j,F,W]=sa(),[B,U]=n(c),[$,G]=n(u),V="njs-cell-".concat(m),[K]=$l(g,l,["#".concat(V),".njs-action-toolbar-popover"]),[Z,X]=n(!1),J=d({enter:null,leave:null}),[Y,Q]=n(void 0),[ee,te]=n(void 0),ne=d({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{Bl(ne.current)}),[]),r((()=>{const e=null!=D&&D.components?D.components.find((e=>"general"===e.key)):null;Q(Hu(e,i.public.theme)),te(Bu(e,i.app))}),[D,i.public.theme,i.app,x]),ne.current.blurCallback=e=>{i.root.toggleFocusOfCells(),e&&W&&W.focus()},ne.current.refocusContent=()=>{k.sn.component&&"function"==typeof k.sn.component.focus&&k.sn.component.focus()};r((()=>{if(p||!z||!D)return;if(k.visualization===D.visualization&&k.sn)return void(async e=>{const[t,n]=await Ju(E,D,e.generator.qae.data,l);_(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:k.sn,layout:D,model:l})})(k.sn);const e=y.getSupportedVersion(D.visualization,D.version);if(e)return(async(e,t)=>{_({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c}=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});return e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c})}catch(e){t({type:"ERROR",error:{title:e.message}})}})({dispatch:_,types:y,visualization:e,version:t,model:l,app:g,selections:K,nebbie:v,focusHandler:ne.current});n&&(_({type:"LOADED",sn:n,visualization:e}),f())})(D.visualization,e),()=>{};_({type:"ERROR",error:{title:"Could not find a version of '".concat(D.visualization,"' that supports current object version. Did you forget to register ").concat(D.visualization,"?")}})}),[y,k.sn,l,K,D,z,C]),r((()=>{if(!P)return;const e=setTimeout((()=>_({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[P]),a(o,(()=>({getQae:()=>k.sn.generator.qae,toggleFocus(e){"function"==typeof k.sn.component.focus&&(e?k.sn.component.focus():k.sn.component.blur())},setSnOptions:U,setSnPlugins:G,async takeSnapshot(){const{width:e,height:t}=R;let n=JSON.parse(JSON.stringify(D));return"function"==typeof k.sn.component.setSnapshotData&&(n=await k.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:E.language(),theme:I.name,appLayout:z,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof i.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return i.config.snapshot.capture(e)}})),[k.sn,F,R,D,I.name,z]);let re=null;return k.loading&&!k.longRunningQuery?re=t.createElement(Gu,null):k.error?re=t.createElement(du,k.error):k.loaded&&(re=t.createElement(zu,{key:D.visualization,sn:k.sn,halo:i,snOptions:B,snPlugins:$,layout:D,appLayout:z})),t.createElement(w,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Y||"unset",backgroundImage:ee&&ee.url?"url(".concat(ee.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:ee&&ee.size,backgroundPosition:ee&&ee.pos},elevation:0,square:!0,className:Uu,ref:O,id:V,onMouseEnter:()=>{J.current.leave&&clearTimeout(J.current.leave),J.enter||(J.current.enter=setTimeout((()=>{X(!0),J.current.enter=null}),250))},onMouseLeave:()=>{J.current.enter&&clearTimeout(J.current.enter),J.current.leave||(J.current.leave=setTimeout((()=>{X(!1),J.current.leave=null}),750))}},t.createElement(S,{container:!0,direction:"column",gap:0,style:H(H({position:"relative",width:"100%",height:"100%"},b?{}:{padding:I.spacing(1)}),k.longRunningQuery?{opacity:"0.3"}:{})},q&&D&&k.sn&&t.createElement(_u,{layout:D,sn:k.sn,anchorEl:q,hovering:Z,focusHandler:ne.current}," "),t.createElement(S,{tabIndex:L?0:-1,onKeyDown:L?e=>{["Enter"," ","Spacebar"].includes(e.key)&&i.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:j},re),t.createElement(Au,{layout:D})),k.longRunningQuery&&t.createElement(wu,{canCancel:A,canRetry:M,api:N}))}));function Qu(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l}=e;const{root:c}=n,u=t.createRef(),d=pc(),p=f.createPortal(t.createElement(Yu,{ref:u,halo:n,model:o,currentId:d,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s}),r,d),h=()=>{c.remove(p),o.removeListener("closed",h)};return o.on("closed",h),c.add(p),c.addCell(d,u),[h,u]}function ed(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function td(e,t){return ed(e)&&ed(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function nd(){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)?td(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...nd("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function rd(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 od=()=>{};function id(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=od,i=null,a=null,s=null;const l=new Promise((e=>{s=e}));let c={},u=[];const d=async e=>{a?(async()=>{await l,i.current.setSnOptions(H(H({},c),e))})():c=H(H({},c),e)},p=async e=>{rd(e),a?(async()=>{await l,i.current.setSnPlugins(e)})():u=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=od},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await au({halo:t,model:e,cellRef:i,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(r){if(a)throw new Error("Already mounted");return a=r,[o,i]=Qu({halo:t,element:r,model:e,initialSnOptions:c,initialSnPlugins:u,initialError:n,onMount:s}),l},async applyProperties(t){const n=nd("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){d(e)},plugins(e){p(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>e}};return h}async function ad(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=id({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}async function sd(e,t){let n,{type:r,version:o,fields:i,properties:a,options:s,plugins:l,element:c,extendProperties:u}=e,d={};try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(a,u);const n=await e.supernova();i&&$c({sn:n,properties:d,fields:i}),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){n=e,d={qInfo:{qType:r},visualization:r}}const p=await t.app.createSessionObject(d);Qi.set(p.id,p);const h=(e=>{const t=Ji({type:"SET",value:e});return()=>{t(),Qi.clear(e.id)}})(p);return ad(p,{options:s,plugins:l,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),h()}))}const ld="njs-sheet";function cd(e){let{model:o,halo:a,initialSnOptions:s,initialSnPlugins:l,initialError:c,onMount:u}=e;const{root:d}=a,[p]=ia(o),{theme:f}=h(Oi),[m,g]=n([]),[y,v]=n(void 0),[b,x]=n(void 0),[E,S]=n("");r((()=>{if(p){const e=JSON.stringify(p.cells);if(e===E)return;S(e);const n=async()=>{m.forEach((e=>{d.removeCell(e.currentId)}));const e=p.cells,n=await Promise.all(e.map((async e=>{let n;const r=new Promise((e=>{n=e})),o=m.find((t=>t.id===e.name));if(o)return o.bounds=e.bounds,delete o.mountedPromise,o;const i=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=Vi.get(a);s||(s=t.app.getObject(n),Vi.set(a,s));const l=await s;return Qi.set(a,l),ad(l,{options:r,plugins:o,element:i},t)}({id:e.name},a);return{model:i.model,id:e.name,bounds:e.bounds,cellRef:t.createRef(),currentId:pc(),mounted:n,mountedPromise:r}})));n.forEach((e=>d.addCell(e.currentId,e.cellRef))),g(n)};n()}}),[p]);const C=i((()=>m?m.map((e=>function(e,n,r,o,i,a){const{x:s,y:l,width:c,height:u}=e.bounds;return t.createElement("div",{style:{left:"".concat(s,"%"),top:"".concat(l,"%"),width:"".concat(c,"%"),height:"".concat(u,"%"),position:"absolute"}},t.createElement(Yu,{ref:e.cellRef,halo:n,model:e.model,currentId:e.currentId,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a}))}(e,a,s,l,c,e.mounted))):[]),[m]);r((()=>{const e=null!=p&&p.components?p.components.find((e=>"general"===e.key)):null;v(Hu(e,a.public.theme)),x(Bu(e,a.app))}),[p,a.public.theme,a.app,f]);const w=!p||Number.isNaN(p.height)?"100%":"".concat(Number(p.height),"%"),L=m.map((e=>e.mountedPromise));return L.filter((e=>!!e)).length&&Promise.all(L).then((()=>{u()})),t.createElement("div",{className:ld,style:{width:"100%",height:w,position:"relative",backgroundColor:y,backgroundImage:b&&b.url?"url(".concat(b.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:b&&b.size,backgroundPosition:b&&b.pos}},C)}function ud(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l}=e;const{root:c}=n,u=t.createRef(),d=f.createPortal(t.createElement(cd,{ref:u,halo:n,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s}),r,o.id),p=()=>{c.remove(d),o.removeListener("closed",p)};return o.on("closed",p),c.add(d),[p,u]}const dd=()=>{};function pd(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=dd,i=null,a=null,s=null;const l=new Promise((e=>{s=e}));let c={},u=[];const d=async e=>{a?(async()=>{await l,i.current.setSnOptions(H(H({},c),e))})():c=H(H({},c),e)},p=async e=>{rd(e),a?(async()=>{await l,i.current.setSnPlugins(e)})():u=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=dd},__DO_NOT_USE__:{mount(r){if(a)throw new Error("Already mounted");return a=r,[o,i]=ud({halo:t,element:r,model:e,initialSnOptions:c,initialSnPlugins:u,initialError:n,onMount:s}),l},async applyProperties(t){const n=nd("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){d(e)},plugins(e){p(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}async function hd(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=Vi.get(a);s||(s=t.app.getObject(n),Vi.set(a,s));const l=await s;return Qi.set(a,l),"sheet"===l.genericType?async function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=pd({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}(l,{options:r,plugins:o,element:i},t):ad(l,{options:r,plugins:o,element:i},t)}function fd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const md=Ue.bind(null,!0),gd={},{isArray:yd}=Array;function vd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function bd(e){return void 0===e}function xd(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Ed(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]=bd(e[r||t])?i:e[t],e=e[r||t]})),e}function Sd(e,t){let n=!0;if(vd(e)&&vd(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Sd(e[r],t[r])||(n=!1)})),n);if(yd(e)&&yd(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Sd(e[n],t[n]))return!1;return!0}return e===t}gd.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?md({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Sd(i,a)||xd(t,o)||(bd(a)?r.push({op:"add",path:s,value:i}):vd(i)&&vd(a)?r=r.concat(gd.generate(a,i,s)):yd(i)&&yd(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]&&bd(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(Sd(t,o))return r;if(!bd(t[0])&&bd(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(gd.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=>{bd(t[o])&&!xd(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},gd.apply=function(e,t){t.forEach((t=>{let n=Ed(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(yd(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(yd(o)&&yd(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(vd(o)&&vd(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!xd(a,e)&&delete a[e]})),md(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=Ed(e,t.from);yd(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(yd(n)?n.splice(+r,1):delete n[r]);var a}))},gd.clone=function(e){return md({},e)},gd.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},gd.updateObject=function(e,t){Object.keys(e).length?gd.apply(e,gd.generate(e,t)):md(e,t)};const Cd=e=>t=>{const n=(r=H(H({},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(ee.prototype).forEach((e=>{r[e]=ee.prototype[e]})),ee.init(r),r);var r;return n};let wd,Ld;function Id(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 Od(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}}}function Rd(e){kd(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 qd(e){if(e.__hooks.obsolete)return Promise.resolve();Ld=-1,wd=e,wd.__hooks.initiated&&wd.__hooks.list.length;try{wd.fn.call(null)}catch(e){console.error(e)}wd.__hooks.initiated=!0;const t=wd.__hooks;return Pd(wd),Ld=void 0,wd=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){kd(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){kd(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 kd(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 _d(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 Td(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Dd(e){return e.__hooks.imperativeHandle}function Pd(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Ad(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Pd(e))}function Md(e){if(void 0===wd)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=wd.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Nd(e){Md(++Ld);return wd.context[e]}function zd(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function jd(e){return{__hooked:!0,fn:e,initiate:Od,run:qd,teardown:Rd,runSnaps:_d,runMenu:Td,focus:hp,blur:fp,observeActions:Ad,getImperativeHandle:Dd,updateRectOnNextRun:zd}}function Fd(e){const t=Md(++Ld);if(!t.value){t.component=wd;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,qd(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Wd(e,t){const n=Md(++Ld);Id(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===wd.__hooks.pendingEffects.indexOf(n)&&wd.__hooks.pendingEffects.push(n))}function Bd(e,t){const n=Md(++Ld);Id(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],wd.__hooks.pendingLayoutEffects.push(n))}function Hd(e,t){const n=Md(++Ld);return Id(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Ud(e,t){const[n,r]=Fd((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Md(++Ld);return o.component||(o.component=wd),Bd((()=>{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]}function $d(){return Nd("element")}function Gd(){const e=$d(),t=wd.__hooks.resizer,[n,r]=Fd((()=>{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()),Bd((()=>{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}function Vd(){return Nd("layout")}function Kd(){const e=Nd("layout"),[t]=Fd({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Zd(){return Nd("appLayout")}function Xd(){const e=Nd("model");return e&&e.session?e:void 0}function Jd(){const e=Nd("app");return e&&e.session?e:void 0}function Yd(){const e=Nd("global");return e&&e.session?e:void 0}function Qd(){return Nd("selections")}function ep(){return Nd("theme")}function tp(){return Nd("nebbie")}function np(){return Nd("translator")}function rp(){return Nd("deviceType")}function op(){return Nd("plugins")}function ip(e,t){const[n]=Fd({action(){n._config.action.call(null)}});return n.component||(n.component=wd,wd.__hooks.actions.list.push(n)),Hd((()=>{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}function ap(){return Nd("constraints")}function sp(){return Nd("options")}function lp(e,t){const n=Md(++Ld);if(n.imperative||(n.imperative=!0),Id(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],wd.__hooks.imperativeHandle=r}}function cp(e){const t=Md(++Ld);t.value||(t.value=1,wd.__hooks.snaps.push(t)),t.fn=e}function up(e){const t=Md(++Ld);t.value||(t.value=1,wd.__hooks.menus.push(t)),t.fn=e}function dp(){Md(++Ld);const e=wd.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function pp(){const e=Nd("keyboardNavigation"),t=Nd("focusHandler");if(!wd.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(fp(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(wd);wd.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),hp(this))}.bind(wd);wd.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(wd);wd.__hooks.accessibility.focusSelectionFunction=r}const n=wd.__hooks.accessibility.focusFunction,r=wd.__hooks.accessibility.exitFunction,o=wd.__hooks.accessibility.focusSelectionFunction,[i,a]=Fd({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return wd.__hooks.accessibility.setter=a,wd.__hooks.accessibility.enabled=e,Wd((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function hp(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 fp(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 mp={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},gp=Object.keys(mp);function yp(e,t){const n=H({},mp);var r;r=n,Object.keys(ee.prototype).forEach((e=>{r[e]=ee.prototype[e]})),ee.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==gp.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const i=function(e){let{sn:t,component:n}=e;const r={},o=[],i=Cd(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:o}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:a,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}function vp(e,t,n){"function"==typeof e.component&&(e.component=jd(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"],s={};t.model&&t.model.session||(s.select=!0);const l={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(l,{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(H(H({},r[e]),s))),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=l.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){return e.component.runMenu(this,t,n)},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(l.context[e])})),i.themeName=l.context.theme?l.context.theme.name():void 0,i.language=l.context.translator?l.context.translator.language():void 0,Object.assign(l,{selections:t.selections}),[l,null]}(e,t,n):yp(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];return e.qae.properties.onChange.call({model:t.model},...r),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=gd.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));gd.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=gd.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.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 bp=()=>{};function xp(e,t){return void 0===e?()=>t:()=>e}function Ep(e){const t=e||{};return{min:"function"==typeof t.min?t.min:xp(t.min,0),max:"function"==typeof t.max?t.max:xp(t.max,1e3),added:t.added||t.add||bp,description:t.description||bp,moved:t.moved||t.move||bp,removed:t.removed||t.remove||bp,replaced:t.replaced||t.replace||bp,isDefined:()=>!!e}}function Sp(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=>((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})(e,n,{}),dimensions:Ep(e.dimensions),measures:Ep(e.measures)}}function Cp(){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);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(Sp)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function wp(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Cp(n.qae),component:n.component||{},create:e=>vp(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var Lp={},Ip={get exports(){return Lp},set exports(e){Lp=e}};!function(e,t){var n;t=Ip.exports=d,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],a=t.tokens={},s=0;function l(e){a[e]=s++}l("NUMERICIDENTIFIER"),i[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",l("NUMERICIDENTIFIERLOOSE"),i[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",l("NONNUMERICIDENTIFIER"),i[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",l("MAINVERSION"),i[a.MAINVERSION]="("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")",l("MAINVERSIONLOOSE"),i[a.MAINVERSIONLOOSE]="("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")",l("PRERELEASEIDENTIFIER"),i[a.PRERELEASEIDENTIFIER]="(?:"+i[a.NUMERICIDENTIFIER]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASEIDENTIFIERLOOSE"),i[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[a.NUMERICIDENTIFIERLOOSE]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASE"),i[a.PRERELEASE]="(?:-("+i[a.PRERELEASEIDENTIFIER]+"(?:\\."+i[a.PRERELEASEIDENTIFIER]+")*))",l("PRERELEASELOOSE"),i[a.PRERELEASELOOSE]="(?:-?("+i[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[a.PRERELEASEIDENTIFIERLOOSE]+")*))",l("BUILDIDENTIFIER"),i[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",l("BUILD"),i[a.BUILD]="(?:\\+("+i[a.BUILDIDENTIFIER]+"(?:\\."+i[a.BUILDIDENTIFIER]+")*))",l("FULL"),l("FULLPLAIN"),i[a.FULLPLAIN]="v?"+i[a.MAINVERSION]+i[a.PRERELEASE]+"?"+i[a.BUILD]+"?",i[a.FULL]="^"+i[a.FULLPLAIN]+"$",l("LOOSEPLAIN"),i[a.LOOSEPLAIN]="[v=\\s]*"+i[a.MAINVERSIONLOOSE]+i[a.PRERELEASELOOSE]+"?"+i[a.BUILD]+"?",l("LOOSE"),i[a.LOOSE]="^"+i[a.LOOSEPLAIN]+"$",l("GTLT"),i[a.GTLT]="((?:<|>)?=?)",l("XRANGEIDENTIFIERLOOSE"),i[a.XRANGEIDENTIFIERLOOSE]=i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),i[a.XRANGEIDENTIFIER]=i[a.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),i[a.XRANGEPLAIN]="[v=\\s]*("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:"+i[a.PRERELEASE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),i[a.XRANGEPLAINLOOSE]="[v=\\s]*("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:"+i[a.PRERELEASELOOSE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGE"),i[a.XRANGE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAIN]+"$",l("XRANGELOOSE"),i[a.XRANGELOOSE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAINLOOSE]+"$",l("COERCE"),i[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),o[a.COERCERTL]=new RegExp(i[a.COERCE],"g"),l("LONETILDE"),i[a.LONETILDE]="(?:~>?)",l("TILDETRIM"),i[a.TILDETRIM]="(\\s*)"+i[a.LONETILDE]+"\\s+",o[a.TILDETRIM]=new RegExp(i[a.TILDETRIM],"g");l("TILDE"),i[a.TILDE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAIN]+"$",l("TILDELOOSE"),i[a.TILDELOOSE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAINLOOSE]+"$",l("LONECARET"),i[a.LONECARET]="(?:\\^)",l("CARETTRIM"),i[a.CARETTRIM]="(\\s*)"+i[a.LONECARET]+"\\s+",o[a.CARETTRIM]=new RegExp(i[a.CARETTRIM],"g");l("CARET"),i[a.CARET]="^"+i[a.LONECARET]+i[a.XRANGEPLAIN]+"$",l("CARETLOOSE"),i[a.CARETLOOSE]="^"+i[a.LONECARET]+i[a.XRANGEPLAINLOOSE]+"$",l("COMPARATORLOOSE"),i[a.COMPARATORLOOSE]="^"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+")$|^$",l("COMPARATOR"),i[a.COMPARATOR]="^"+i[a.GTLT]+"\\s*("+i[a.FULLPLAIN]+")$|^$",l("COMPARATORTRIM"),i[a.COMPARATORTRIM]="(\\s*)"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+"|"+i[a.XRANGEPLAIN]+")",o[a.COMPARATORTRIM]=new RegExp(i[a.COMPARATORTRIM],"g");l("HYPHENRANGE"),i[a.HYPHENRANGE]="^\\s*("+i[a.XRANGEPLAIN]+")\\s+-\\s+("+i[a.XRANGEPLAIN]+")\\s*$",l("HYPHENRANGELOOSE"),i[a.HYPHENRANGELOOSE]="^\\s*("+i[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[a.XRANGEPLAINLOOSE]+")\\s*$",l("STAR"),i[a.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c<s;c++)n(c,i[c]),o[c]||(o[c]=new RegExp(i[c]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[a.LOOSE]:o[a.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=u,t.valid=function(e,t){var n=u(e,t);return n?n.version:null},t.clean=function(e,t){var n=u(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,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 h(r,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,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 h(r,o)}while(++t)},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);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":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(y(e,t))return null;var n=u(e),r=u(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=h;var p=/^[0-9]+$/;function h(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function f(e,t,n){return new d(e,n).compare(new d(t,n))}function m(e,t,n){return f(e,t,n)>0}function g(e,t,n){return f(e,t,n)<0}function y(e,t,n){return 0===f(e,t,n)}function v(e,t,n){return 0!==f(e,t,n)}function b(e,t,n){return f(e,t,n)>=0}function x(e,t,n){return f(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return y(e,n,r);case"!=":return v(e,n,r);case">":return m(e,n,r);case">=":return b(e,n,r);case"<":return g(e,n,r);case"<=":return x(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function S(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof S){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof S))return new S(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return h(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=f,t.compareLoose=function(e,t){return f(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),o=new d(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return f(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=y,t.neq=v,t.gte=b,t.lte=x,t.cmp=E,t.Comparator=S;var C={};function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new w(e.raw,t);if(e instanceof S)return new w(e.value,t);if(!(this instanceof w))return new w(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function L(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function I(e){return!e||"x"===e.toLowerCase()||"*"===e}function O(e,t,n,r,o,i,a,s,l,c,u,d,p){return((t=I(n)?"":I(r)?">="+n+".0.0":I(o)?">="+n+"."+r+".0":">="+t)+" "+(s=I(l)?"":I(c)?"<"+(+l+1)+".0.0":I(u)?"<"+l+"."+(+c+1)+".0":d?"<="+l+"."+c+"."+u+"-"+d:"<="+s)).trim()}function R(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function q(e,t,n){try{t=new w(t,n)}catch(e){return!1}return t.test(e)}function k(e,t,n,r){var o,i,a,s,l;switch(e=new d(e,r),t=new w(t,r),n){case">":o=m,i=x,a=g,s=">",l=">=";break;case"<":o=g,i=b,a=m,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(q(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],p=null,h=null;if(u.forEach((function(e){e.semver===C&&(e=new S(">=0.0.0")),p=p||e,h=h||e,o(e.semver,p.semver,r)?p=e:a(e.semver,h.semver,r)&&(h=e)})),p.operator===s||p.operator===l)return!1;if((!h.operator||h.operator===s)&&i(e,h.semver))return!1;if(h.operator===l&&a(e,h.semver))return!1}return!0}S.prototype.parse=function(e){var t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=C},S.prototype.toString=function(){return this.value},S.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},S.prototype.intersects=function(e,t){if(!(e instanceof S))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new w(e.value,t),q(this.value,n,t));if(""===e.operator)return""===e.value||(n=new w(this.value,t),q(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||l},t.Range=w,w.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},w.prototype.toString=function(){return this.range},w.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[a.HYPHENRANGELOOSE]:o[a.HYPHENRANGE];e=e.replace(r,O),n("hyphen replace",e),e=e.replace(o[a.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[a.COMPARATORTRIM]),e=(e=(e=e.replace(o[a.TILDETRIM],"$1~")).replace(o[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[a.CARETLOOSE]:o[a.CARET];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),I(r)?s="":I(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":I(i)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[a.TILDELOOSE]:o[a.TILDE];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),I(r)?s="":I(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":I(i)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[a.XRANGELOOSE]:o[a.XRANGE];return e.replace(r,(function(r,o,i,a,s,l){n("xRange",e,r,o,i,a,s,l);var c=I(i),u=c||I(a),d=u||I(s),p=d;return"="===o&&p&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(a=0),s=0,">"===o?(o=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+s+l):u?r=">="+i+".0.0"+l+" <"+(+i+1)+".0.0"+l:d&&(r=">="+i+"."+a+".0"+l+" <"+i+"."+(+a+1)+".0"+l),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[a.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new S(e,this.options)}),this)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Range is required");return this.set.some((function(n){return L(n,t)&&e.set.some((function(e){return L(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new w(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},w.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1},t.satisfies=q,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new w(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new w(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minVersion=function(e,t){e=new w(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new w(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return k(e,t,"<",n)},t.gtr=function(e,t,n){return k(e,t,">",n)},t.outside=k,t.prerelease=function(e,t){var n=u(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new w(e,n),t=new w(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[a.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);if(null===n)return null;return u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,Lp);const Op={};async function Rp(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Op[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);Op[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 Error("Failed to load visualization: '".concat(n,"'"))}))}return Op[i]}function qp(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]=function(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)||Lp.satisfies(e,i.deps.properties),supernova:()=>Rp(a.name,a.version,t,o.load).then((e=>(n=n||wp(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=H({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(Ue(!0,n,e),n):H(H({},n),e)}))}};return a}({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{var t;r||(t=Object.keys(n),r=[...t.filter((e=>"undefined"===e)),...t.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(".")))]);for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function kp(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=qp(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,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(Op).forEach((t=>{t.split("__")[0]===e&&(Op[t]=void 0)}))}(e)}}}const _p={context:{},load:()=>{},types:[],themes:[],anything:{},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()))}};_p.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1};const Tp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return H(H({},e),t)},Dp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t))},Pp=(e,t)=>({context:Tp(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:H({},t.snapshot||e.snapshot),types:Dp(e.types,t.types),themes:Dp(e.themes,t.themes),flags:Tp(e.flags,t.flags),anything:Tp(e.anything,t.anything)});var Ap=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=J(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=H(H({},n.context),{},{translator:r.translator});const[s]=ji({app:e,context:a}),l=ct({themes:n.themes,loadTheme:n.loadTheme,root:s});a.themeApi=l.externalAPI;const c={galaxy:{translator:r.translator,flags:fd(n.flags),deviceType:ut(n.context.deviceType),anything:n.anything},theme:l.externalAPI,translator:r.translator,nebbie:null},u={app:e,root:s,config:n,public:c,context:a,types:null},d=kp({halo:u});n.types.forEach((e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=l.setTheme(n.context.theme),h=null,f=null;const m={render:async e=>(await p,e.id?hd(e,u):sd(e,u)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=H(H(H({},a),t),{},{translator:r.translator}),u.context=a,t.theme&&(p=l.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),s.context(a))},selections:async()=>(h||(h={mount(t){f||(f=fc({element:t,app:e}),s.add(f))},unmount(){f&&(s.remove(f),f=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,mount(i){let a=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"));this._instance=jc({element:i,app:e,fieldIdentifier:t,qId:n,options:Nc(H({onSelectionActivated:()=>o.emit("selectionActivated"),onSelectionDeactivated:()=>o.emit("selectionDeactivated")},a)),stateName:a.stateName||"$"}),s.add(this._instance)},unmount(){this._instance&&(s.remove(this._instance),this._instance=null)}};return Bl(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(n,r,o){m._popoverInstance&&(s.remove(m._popoverInstance),m._popoverInstance=null);const i=Wc(H({onPopoverClose:()=>m.emit("fieldPopoverClose")},o));m._popoverInstance=t.createElement(Bc,{element:n,key:pc(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,Bl(m),m}return o.createConfiguration=t=>e(Pp(n,t)),o.config=n,o}(_p);function Mp(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Np=globalThis.crypto||{getRandomValues:()=>123456};function zp(){return e=>{const t=Ue({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Np.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=Ue({},t,n)),Promise.resolve(H({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const jp=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},Fp=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=jp(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},Wp=["id","session"],Bp=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Hp(e){return!Bp.includes(e)}function Up(e){const t=jp(e.getLayout);return t.qInfo&&t.qInfo.qId}function $p(e,t){return e.reduce(((e,n)=>H(H({},e),function(e,t){let n=Up(e);const{delay:r}=t,{id:o,session:i}=e,a=G(e,Wp);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]:H(H({id:n,session:jp(i,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return H(H({},e),{},{[n]:Fp(o,{async:Hp(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Gp(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Up(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Vp(){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(Gp);const n=$p(e,t);return async e=>Promise.resolve(n[e])}function Kp(){return()=>Promise.resolve({id:"app-layout"})}const Zp={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Mp,r=new zp,o=new Vp(e,t),i=new Kp,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Xp={generator:wp,hook:jd,theme:st,locale:Z};export{Zp as EnigmaMocker,Xp as __DO_NOT_USE__,su as conversion,Ap as embed,up as onContextMenu,cp as onTakeSnapshot,ip as useAction,Jd as useApp,Zd as useAppLayout,ap as useConstraints,rp as useDeviceType,Wd as useEffect,$d as useElement,tp as useEmbed,Yd as useGlobal,lp as useImperativeHandle,pp as useKeyboard,Vd as useLayout,Hd as useMemo,Xd as useModel,sp as useOptions,op as usePlugins,Ud as usePromise,Gd as useRect,dp as useRenderState,Qd as useSelections,Kd as useStaleLayout,Fd as useState,ep as useTheme,np as useTranslator};
14
+ */"object"==typeof document&&(Yn=function(e){var t=e.key;if(Un&&"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||Gn,a={},s=[];Un&&(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=[jn,Fn];if(Un){var u,d=[An,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=Pn(c.concat(i,d));o=function(e,t,n,r){u=n,Dn(Rn(e?e+"{"+t.styles+"}":t.styles),p),r&&(y.inserted[t.name]=!0)}}else{var h=[An],f=Pn(c.concat(i,h)),m=$n(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=Dn(Rn(e?e+"{"+t.styles+"}":t.styles),f)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new Ft({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 y.sheet.hydrate(s),y}({key:"css",prepend:!0}));function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t){return t?gt(e,t,{clone:!1}):e}const nr={xs:0,sm:600,md:900,lg:1200,xl:1536},rr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nr[e]}px)`};function or(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||rr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||rr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||nr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function ir(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 ar(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ir(e,n)||r,t&&(o=t(o,r,e)),o}function sr(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=ir(e.theme,r)||{};return or(e,i,(e=>{let r=ar(a,o,e);return e===r&&"string"==typeof e&&(r=ar(a,o,`${t}${"default"===e?"":vt(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}function lr(...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]?tr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const cr={m:"margin",p:"padding"},ur={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!dr[e])return[e];e=dr[e]}const[t,n]=e.split(""),r=cr[t],o=ur[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),hr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function mr(e,t,n,r){var o;const i=null!=(o=ir(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 gr(e){return mr(e,"spacing",8)}function yr(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 vr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=yr(t,n),e)),{})}(pr(n),r);return or(e,e[n],o)}function br(e,t){const n=gr(e.theme);return Object.keys(e).map((r=>vr(e,t,r,n))).reduce(tr,{})}function xr(e){return br(e,hr)}function Er(e){return br(e,fr)}function Sr(e){return"number"!=typeof e?e:`${e}px solid`}xr.propTypes={},xr.filterProps=hr,Er.propTypes={},Er.filterProps=fr;const Cr=sr({prop:"border",themeKey:"borders",transform:Sr}),wr=sr({prop:"borderTop",themeKey:"borders",transform:Sr}),Lr=sr({prop:"borderRight",themeKey:"borders",transform:Sr}),Ir=sr({prop:"borderBottom",themeKey:"borders",transform:Sr}),Or=sr({prop:"borderLeft",themeKey:"borders",transform:Sr}),Rr=sr({prop:"borderColor",themeKey:"palette"}),kr=sr({prop:"borderTopColor",themeKey:"palette"}),qr=sr({prop:"borderRightColor",themeKey:"palette"}),_r=sr({prop:"borderBottomColor",themeKey:"palette"}),Tr=sr({prop:"borderLeftColor",themeKey:"palette"}),Dr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=mr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:yr(t,e)});return or(e,e.borderRadius,n)}return null};Dr.propTypes={},Dr.filterProps=["borderRadius"],lr(Cr,wr,Lr,Ir,Or,Rr,kr,qr,_r,Tr,Dr);const Ar=e=>{if(void 0!==e.gap&&null!==e.gap){const t=mr(e.theme,"spacing",8),n=e=>({gap:yr(t,e)});return or(e,e.gap,n)}return null};Ar.propTypes={},Ar.filterProps=["gap"];const Pr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=mr(e.theme,"spacing",8),n=e=>({columnGap:yr(t,e)});return or(e,e.columnGap,n)}return null};Pr.propTypes={},Pr.filterProps=["columnGap"];const Mr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=mr(e.theme,"spacing",8),n=e=>({rowGap:yr(t,e)});return or(e,e.rowGap,n)}return null};Mr.propTypes={},Mr.filterProps=["rowGap"];function Nr(e,t){return"grey"===t?t:e}lr(Ar,Pr,Mr,sr({prop:"gridColumn"}),sr({prop:"gridRow"}),sr({prop:"gridAutoFlow"}),sr({prop:"gridAutoColumns"}),sr({prop:"gridAutoRows"}),sr({prop:"gridTemplateColumns"}),sr({prop:"gridTemplateRows"}),sr({prop:"gridTemplateAreas"}),sr({prop:"gridArea"}));function zr(e){return e<=1&&0!==e?100*e+"%":e}lr(sr({prop:"color",themeKey:"palette",transform:Nr}),sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nr}),sr({prop:"backgroundColor",themeKey:"palette",transform:Nr}));const jr=sr({prop:"width",transform:zr}),Fr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||nr[t]||zr(t)}};return or(e,e.maxWidth,t)}return null};Fr.filterProps=["maxWidth"];const Wr=sr({prop:"minWidth",transform:zr}),Br=sr({prop:"height",transform:zr}),Hr=sr({prop:"maxHeight",transform:zr}),Ur=sr({prop:"minHeight",transform:zr});sr({prop:"size",cssProperty:"width",transform:zr}),sr({prop:"size",cssProperty:"height",transform:zr});lr(jr,Fr,Wr,Br,Hr,Ur,sr({prop:"boxSizing"}));var $r={border:{themeKey:"borders",transform:Sr},borderTop:{themeKey:"borders",transform:Sr},borderRight:{themeKey:"borders",transform:Sr},borderBottom:{themeKey:"borders",transform:Sr},borderLeft:{themeKey:"borders",transform:Sr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Dr},color:{themeKey:"palette",transform:Nr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nr},backgroundColor:{themeKey:"palette",transform:Nr},p:{style:Er},pt:{style:Er},pr:{style:Er},pb:{style:Er},pl:{style:Er},px:{style:Er},py:{style:Er},padding:{style:Er},paddingTop:{style:Er},paddingRight:{style:Er},paddingBottom:{style:Er},paddingLeft:{style:Er},paddingX:{style:Er},paddingY:{style:Er},paddingInline:{style:Er},paddingInlineStart:{style:Er},paddingInlineEnd:{style:Er},paddingBlock:{style:Er},paddingBlockStart:{style:Er},paddingBlockEnd:{style:Er},m:{style:xr},mt:{style:xr},mr:{style:xr},mb:{style:xr},ml:{style:xr},mx:{style:xr},my:{style:xr},margin:{style:xr},marginTop:{style:xr},marginRight:{style:xr},marginBottom:{style:xr},marginLeft:{style:xr},marginX:{style:xr},marginY:{style:xr},marginInline:{style:xr},marginInlineStart:{style:xr},marginInlineEnd:{style:xr},marginBlock:{style:xr},marginBlockStart:{style:xr},marginBlockEnd:{style:xr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ar},rowGap:{style:Mr},columnGap:{style:Pr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zr},maxWidth:{style:Fr},minWidth:{transform:zr},height:{transform:zr},maxHeight:{transform:zr},minHeight:{transform:zr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Gr=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;const u=ir(n,s)||{};if(c)return c(o);return or(o,t,(t=>{let n=ar(u,l,t);return t===n&&"string"==typeof t&&(n=ar(u,l,`${e}${"default"===t?"":vt(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:$r;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=tr(l,e(n,o,i,a));else{const e=or({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)?l=tr(l,e):l[n]=t({sx:o,theme:i})}else l=tr(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();Gr.filterProps=["sx"];var Vr=Gr;function Kr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const Zr=["values","unit","step"];function Xr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Kr(e,Zr),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>er({},e,{[t.key]:t.val})),{})})(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 er({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)}var Jr={borderRadius:4};function Yr(e=8){if(e.mui)return e;const t=gr({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}const Qr=["breakpoints","palette","spacing","shape"];function eo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Kr(e,Qr),s=Xr(n),l=Yr(o);let c=gt({breakpoints:s,direction:"ltr",components:{},palette:er({mode:"light"},r),spacing:l,shape:er({},Jr,i)},a);return c=t.reduce(((e,t)=>gt(e,t)),c),c.unstable_sxConfig=er({},$r,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Vr({sx:e,theme:this})},c}function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},to.apply(this,arguments)}var no=e.createContext(null);function ro(){return e.useContext(no)}var oo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function io(t){const{children:n,theme:r}=t,o=ro(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return to({},e,t)}(o,r);return null!=e&&(e[oo]=null!==o),e}),[r,o]);return Jn.jsx(no.Provider,{value:i,children:n})}function ao(e=null){const t=ro();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const so=eo();function lo(e=so){return ao(e)}const co=["variant"];function uo(e){return 0===e.length}function po(e){const{variant:t}=e,n=Kr(e,co);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?uo(r)?e[t]:vt(e[t]):`${uo(r)?t:vt(t)}${vt(e[t].toString())}`})),r}const ho=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],fo=["theme"],mo=["theme"];function go(e){return 0===Object.keys(e).length}function yo(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const vo=eo();function bo(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Tt(t.components[n].defaultProps,r):r}function xo(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Eo(e){if(e.type)return e;if("#"===e.charAt(0))return Eo(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(yt(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(yt(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function So(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 Co(e){let t="hsl"===(e=Eo(e)).type||"hsla"===e.type?Eo(function(e){e=Eo(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])),So({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}const wo={};function Lo(e){const t=lo();return Jn.jsx(g.Provider,{value:"object"==typeof t?t:wo,children:e.children})}function Io(e){const{children:t,theme:n}=e;return Jn.jsx(io,{theme:n,children:Jn.jsx(Lo,{children:t})})}const Oo=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Ro=["type","mode"];var ko={black:"#000",white:"#fff"};var qo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var _o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var To={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Do={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Ao={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Po={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Mo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const No=["mode","contrastThreshold","tonalOffset"],zo={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:ko.white,default:ko.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}},jo={text:{primary:ko.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:ko.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 Fo(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Eo(e),t=xo(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 So(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Eo(e),t=xo(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 So(e)}(e.main,i)))}function Wo(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=jt(e,No),i=e.primary||function(e="light"){return"dark"===e?{main:Ao[200],light:Ao[50],dark:Ao[400]}:{main:Ao[700],light:Ao[400],dark:Ao[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:_o[200],light:_o[50],dark:_o[400]}:{main:_o[500],light:_o[300],dark:_o[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:To[500],light:To[300],dark:To[700]}:{main:To[700],light:To[400],dark:To[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Po[400],light:Po[300],dark:Po[700]}:{main:Po[700],light:Po[500],dark:Po[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Mo[400],light:Mo[300],dark:Mo[700]}:{main:Mo[800],light:Mo[500],dark:Mo[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Do[400],light:Do[300],dark:Do[700]}:{main:"#ed6c02",light:Do[500],dark:Do[900]}}(t);function d(e){const t=function(e,t){const n=Co(e),r=Co(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,jo.text.primary)>=n?jo.text.primary:zo.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=zt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(yt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(yt(12,t?` (${t})`:"",JSON.stringify(e.main)));return Fo(e,"light",o,r),Fo(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:jo,light:zo};return gt(zt({common:zt({},ko),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:qo,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const Bo=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ho={textTransform:"uppercase"},Uo='"Roboto", "Helvetica", "Arial", sans-serif';function $o(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Uo,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=jt(n,Bo),h=o/14,f=d||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return zt({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Uo?{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,Ho),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ho)};return gt(zt({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Go(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Vo=["none",Go(0,2,1,-1,0,1,1,0,0,1,3,0),Go(0,3,1,-2,0,2,2,0,0,1,5,0),Go(0,3,3,-2,0,3,4,0,0,1,8,0),Go(0,2,4,-1,0,4,5,0,0,1,10,0),Go(0,3,5,-1,0,5,8,0,0,1,14,0),Go(0,3,5,-1,0,6,10,0,0,1,18,0),Go(0,4,5,-2,0,7,10,1,0,2,16,1),Go(0,5,5,-3,0,8,10,1,0,3,14,2),Go(0,5,6,-3,0,9,12,1,0,3,16,2),Go(0,6,6,-3,0,10,14,1,0,4,18,3),Go(0,6,7,-4,0,11,15,1,0,4,20,3),Go(0,7,8,-4,0,12,17,2,0,5,22,4),Go(0,7,8,-4,0,13,19,2,0,5,24,4),Go(0,7,9,-4,0,14,21,2,0,5,26,4),Go(0,8,9,-5,0,15,22,2,0,6,28,5),Go(0,8,10,-5,0,16,24,2,0,6,30,5),Go(0,8,11,-5,0,17,26,2,0,6,32,5),Go(0,9,11,-5,0,18,28,2,0,7,34,6),Go(0,9,12,-6,0,19,29,2,0,7,36,6),Go(0,10,13,-6,0,20,31,3,0,8,38,7),Go(0,10,13,-6,0,21,33,3,0,8,40,7),Go(0,10,14,-6,0,22,35,3,0,8,42,7),Go(0,11,14,-7,0,23,36,3,0,9,44,8),Go(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ko=["duration","easing","delay"],Zo={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)"},Xo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jo(e){return`${Math.round(e)}ms`}function Yo(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Qo(e){const t=zt({},Zo,e.easing),n=zt({},Xo,e.duration);return zt({getAutoHeightDuration:Yo,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return jt(r,Ko),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Jo(o)} ${i} ${"string"==typeof a?a:Jo(a)}`)).join(",")}},e,{easing:t,duration:n})}var ei={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ti=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ni(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=jt(e,ti);if(e.vars)throw new Error(yt(18));const s=Wo(r),l=eo(e);let c=gt(l,{mixins:(u=l.breakpoints,d=n,zt({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Vo.slice(),typography:$o(s,i),transitions:Qo(o),zIndex:zt({},ei)});var u,d;return c=gt(c,a),c=t.reduce(((e,t)=>gt(e,t)),c),c.unstable_sxConfig=zt({},$r,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Vr({sx:e,theme:this})},c}var ri=ni();function oi(){return lo(ri)}function ii({props:e,name:t}){return function({props:e,name:t,defaultTheme:n}){return bo({theme:lo(n),name:t,props:e})}({props:e,name:t,defaultTheme:ri})}const ai=function(e={}){const{defaultTheme:t=vo,rootShouldForwardProp:n=yo,slotShouldForwardProp:r=yo}=e,o=e=>{const n=go(e.theme)?t:e.theme;return Vr(er({},e,{theme:n}))};return o.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:l,skipSx:c,overridesResolver:u}=i,d=Kr(i,ho),p=void 0!==l?l:s&&"Root"!==s||!1,h=c||!1;let f=yo;"Root"===s?f=n:s?f=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(f=void 0);const m=function(e,t){return j(e,t)}(e,er({shouldForwardProp:f,label:undefined},d)),g=(e,...n)=>{const r=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:r}=n,o=Kr(n,fo);return e(er({theme:go(r)?t:r},o))}:e)):[];let i=e;a&&u&&r.push((e=>{const n=go(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,n);if(r){const t={};return Object.entries(r).forEach((([r,o])=>{t[r]="function"==typeof o?o(er({},e,{theme:n})):o})),u(e,t)}return null})),a&&!p&&r.push((e=>{const n=go(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[po(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=po(e.props);r[t]=e.style})),r})(a,n),n,a)})),h||r.push(o);const s=r.length-n.length;if(Array.isArray(e)&&s>0){const t=new Array(s).fill("");i=[...e,...t],i.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(i=n=>{let{theme:r}=n,o=Kr(n,mo);return e(er({theme:go(r)?t:r},o))});return m(i,...r)};return m.withConfig&&(g.withConfig=m.withConfig),g}}({defaultTheme:ri,rootShouldForwardProp:e=>yo(e)&&"classes"!==e});var si=ai;function li(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=li(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ci(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=li(e))&&(r&&(r+=" "),r+=t);return r}function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ui.apply(this,arguments)}function di(e,t){return di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},di(e,t)}function pi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,di(e,t)}function hi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var fi=Nt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),mi={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 gi="#009845",yi="#3F8AB3",vi="#ffffff",bi="#404040",xi="#333333",Ei="#1A1A1A",Si={mode:"light",palette:{primary:{main:bi,contrastText:vi},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:bi,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},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:vi,default:vi,lightest:vi,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:yi,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:gi,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:vi,alternativeContrastText:bi,excludedContrastText:bi},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)"}}},Ci={mode:"dark",palette:{primary:{main:xi,contrastText:vi},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:vi,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:vi,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:bi,lighter:xi,darker:"#262626",darkest:Ei},custom:{focusBorder:yi,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:gi,alternative:xi,excluded:Ei,mainContrastText:vi,alternativeContrastText:vi,excludedContrastText:vi},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)"}}},wi={},Li=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(fi.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(fi.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(fi.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(fi.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Ii(e){let t=Si,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Ci));const r=JSON.stringify(t);if(wi[r])return wi[r];const o={palette:H(H({type:t.mode},mi.palette),t.palette),typography:H({},mi.typography),shadows:mi.shadows,props:H({},mi.props),shape:H({},mi.shape)};return wi[r]=ni(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=zt({},jt(e,Oo),{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=Yr(e.spacing);const l=Xr(e.breakpoints||{}),c=s.spacing;s.mixins=zt({gutters:(e={})=>zt({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:zt({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,p=jt(o,Ro),h=d||u||"light";return s.palette=zt({text:{hint:"dark"===h?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h},p),s}(H(H({},o),{},{overrides:Li(o)}))),wi[r].name=n,wi[r]}At.configure((e=>"njs-".concat("0bc0","-").concat(e.replace("Mui",""))));var Oi=t.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),Ri=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const o=e,i=[],a={get:e=>o[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return o[e]=n,t({type:"SET",value:n}),n},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));o[e]=null},dispatch:e=>{i.forEach((t=>t(e?{}:o)))}},s=()=>{const[,e]=n(o);return r((()=>(i.push(e),()=>{const t=i.indexOf(e);i.splice(t,1)})),[e]),[a]};return[s,a]};const[ki,qi]=Ri({}),[_i,Ti]=Ri({}),[Di,Ai]=Ri({}),[Pi,Mi]=Ri({});function Ni(e){if(!e.session)return[];const[t]=ki(),n=e?e.id:null;let o=t.get(n);return r((()=>{e&&!o&&(o=function(e){let{app:t}=e;const n="".concat(t.id),r=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Mi.get(n);t&&(await t.endSelections(e),Mi.clear(n),Ai.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===Mi.get(n))return;r(i),Mi.set(n,e);const a=Array.isArray(o)?o:[o],s=async r=>{try{await e.beginSelections(a),Mi.set(n,e)}catch(e){6003!==e.code||r?Mi.clear(n):(await t.abortModal(i),s(!0))}};await s()},end:r};Ti.set(n,o);const i={model:t,isInModal:()=>!!Mi.get(n),isModal:e=>e?Mi.get(n)===e:!!Mi.get(n),forward:()=>o.end().then((()=>t.forward())),back:()=>o.end().then((()=>t.back())),clear:()=>o.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return o.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return i}({app:e}),t.set(n,o),t.dispatch(!0))}),[e]),[o]}const zi=o(((e,o)=>{let{initialContext:s,app:l,renderCallback:c}=e;const[u]=Ni(l),[d,p]=n(s),[h,f]=n(),{theme:m}=i((()=>({theme:Ii(h)})),[h]),[g,y]=n([]);return r((()=>{c&&c()}),[]),a(o,(()=>({setComps(e){y([...e])},setMuiThemeName:f,setContext:e=>p((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>u})),[]),t.createElement(Qn,{injectFirst:!0},t.createElement(Io,{theme:m},t.createElement(Oi.Provider,{value:d},g)))}));function ji(e){let n,{app:r,context:o}=e;const i=new Promise((e=>{n=e})),a=t.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","4.0.0-alpha.4"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s);dt.createRoot(s).render(t.createElement(zi,{ref:a,app:r,initialContext:o,renderCallback:n}));const l={},c=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await i,c.push(e),a.current.setComps(c)})()},remove(e){(async()=>{await i;const t=c.indexOf(e);-1!==t&&c.splice(t,1),a.current.setComps(c)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,a.current.setContext(e)})()},getAppSelections:async()=>(await i,a.current.getAppSelections())},a,i]}const[Fi,Wi]=Ri({}),[Bi,Hi]=Ri({}),[Ui,$i]=Ri({}),[Gi,Vi]=Ri({}),[Ki,Zi]=Ri({}),[,Xi]=Ri({}),Ji=e=>{let{type:t,value:n}=e;const r=Xi.get(n.id);Xi.set(n.id,{});const o=()=>{Hi.clear(n.id),Zi.set(n.id,{}),Zi.dispatch(!0)},i=()=>{n.removeListener("changed",o),Wi.clear(n.id),Hi.clear(n.id),$i.clear(n.id),Vi.clear(n.id),Zi.clear(n.id),Xi.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[Yi,Qi]=Ri({},Ji);function ea(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=Yi(),[a]=Ui(),[s,l]=n();let c;o&&(c=a.get(o));for(var u=arguments.length,d=new Array(u>2?u-2:0),p=2;p<u;p++)d[p-2]=arguments[p];return r((()=>{if(!t)return;(async()=>{if(!c){const n=t.createSessionObject(e);c=n,a.set(o,c)}const n=await c;i.set(o,n),l(n)})()}),[t,...d]),[s]}const ta={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function na(e){return ea(ta,e)}const ra=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=H(H({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:H({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=H(H({},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 oa(e,t){const n=e?"".concat(e.id):null,[o]=Fi(),[i,a]=s(ra,n?o.get(n):null),[l]=Ki(),[c]=Bi();let u;n&&(u=c.get(n),u||(u={},c.set(n,u)));const d=async r=>{let i=u[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},u[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0})}try{const r=await i.rpc;a({type:"VALID",result:r,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||r||(i.rpcRetry||(i.rpcRetry=!0),d(!0))}},p={cancel:async()=>{const r=e.session.getObjectApi({handle:-1});await r.cancelRequest(u[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:o})},retry:()=>{u[t].rpcRetry=!0,d()}};return r((()=>{e&&d()}),[e,l.get(e&&e.id),n,t]),[i&&i.result,{validating:i&&i.validating,canCancel:i&&i.canCancel,canRetry:i&&i.canRetry},p]}function ia(e){return oa(e,"getLayout")}function aa(e){return oa(e,"getAppLayout")}function sa(){const[e,t]=n(),[r,o]=n(),i=l((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();o({left:t,top:n,width:r,height:i})};return c((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[i,r,e]}function la(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function ca(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=H({fontSize:la(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r);return t.createElement("i",{style:a},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:o,fill:"currentColor"},i.map(((e,n)=>{let{type:r,attrs:o}=e;return t.createElement(r,$({key:n},o))}))))}var ua=e=>ca((e=>H(H({},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 da=e=>ca((e=>H(H({},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));var pa=e=>ca((e=>H(H({},e),{},{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"}}]}))(e));var ha=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},fa=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}}(),ma=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},ga=function(e){function t(){var e,n,r;ha(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ma(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},ma(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,u),fa(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}();const ya=["S","XS"],va=e=>e.reduce(((e,t)=>e.concat(t)));function ba(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!ya.includes(n)&&t.qElemNumber;var n})).filter((e=>!1!==e))));return va(t)}async function xa(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 Ea=e=>!(e.metaKey||e.ctrlKey);function Sa(e){let{selectionState:t,selections:n,checkboxes:o=!1,doc:i=document}=e;const a=d({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1}),s=()=>(t.setSelectableValuesUpdating(),xa({selections:n,elemNumbers:a.current.elemNumbers,isSingleSelect:t.isSingleSelect,toggle:a.current.toggle})),c=e=>{const{startElemNumber:n}=a.current;if(n===e)return;const r=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)}([a.current.startElemNumber,e],function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return va(t)}(t.enginePages));t.updateItems(r,!0,a.current.elemNumbers)},u=l((e=>{if(t.selectDisabled())return;const n=+e.target.getAttribute("data-n"),r=!t.isSingleSelect&&Ea(e.nativeEvent);a.current.elemNumbers=[n],a.current.toggle=r,r||t.clearItemStates(!0),t.updateItem(n),a.current.active=!1,s()}),[]),p=l((e=>{if(0!==e.button||t.selectDisabled())return;const n=+e.currentTarget.getAttribute("data-n"),r=!t.isSingleSelect&&Ea(e);a.current.isRange=!1,a.current.startElemNumber=n,a.current.elemNumbers=[n],a.current.toggle=r,a.current.active=!0,r||t.clearItemStates(!0),t.updateItem(n),t.isSingleSelect&&(a.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),h=l((e=>{if(0===e.button&&a.current.active){if(a.current.active=!1,a.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}s()}}),[]),f=l((e=>{0===e.button&&a.current.active&&(a.current.active=!1,s())}),[]),m=l((e=>{if(!a.current.active)return;a.current.isRange||(a.current.isRange=!0,t.isSelected(a.current.startElemNumber)||(t.updateItem(a.current.startElemNumber,!0),a.current.elemNumbers=[]));const n=+e.currentTarget.getAttribute("data-n");c(n)}),[]);r((()=>(i.addEventListener("mouseup",f),()=>{i.removeEventListener("mouseup",f)})),[f]),r((()=>{const e=()=>{t.clearItemStates(!1)},r=()=>{t.clearItemStates(!0),t.triggerStateChanged()};return n.on("clearItemStates",e),n.on("deactivated",e),n.on("cleared",r),()=>{n.removeListener("clearItemStates",e),n.removeListener("deactivated",e),n.removeListener("cleared",r)}}),[n]);const g={};return o?Object.assign(g,{onChange:u}):Object.assign(g,{onMouseUp:h,onMouseDown:p,onMouseEnter:m}),{interactionEvents:g,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=[];return t.updateItems(e,r,o),t.setSelectableValuesUpdating(),xa({selections:n,elemNumbers:r?o:e,isSingleSelect:t.isSingleSelect,toggle:!t.isSingleSelect})}}}const Ca=e=>H(H({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var wa=e=>ca(Ca(e));const La=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===La.ARROW_UP||e===La.ARROW_DOWN||e===La.ARROW_LEFT||e===La.ARROW_RIGHT});function Ia(e){let{setKeyboardActive:t,hovering:n,setHovering:r,updateKeyScroll:o,containerRef:i,currentScrollIndex:a,app:s,appSelections:l,constraints:c}=e;const u=e=>{n&&o(e)};return{handleKeyDown:e=>{const{keyCode:n,ctrlKey:r=!1,shiftKey:o=!1}=e.nativeEvent;switch(n){case La.ENTER:case La.SPACE:if(!e.target.classList.contains("listbox-container"))return;(e=>{const n=e.querySelector(".search input, .value.selector, .value, .ActionsToolbar-item button");t(!0),n&&n.focus()})(e.currentTarget);break;case La.ESCAPE:(e=>{var n,r,o,i,a;null!==(n=e.target)&&void 0!==n&&n.classList.contains("listbox-container")?t(!1):(null===(r=e.target)||void 0===r||r.setAttribute("tabIndex","-1"),null===(o=e.target)||void 0===o||o.blur(),null===(i=e.currentTarget)||void 0===i||i.setAttribute("tabIndex","0"),null===(a=e.currentTarget)||void 0===a||a.focus())})(e);break;case La.ARROW_UP:u({up:1});break;case La.ARROW_DOWN:u({down:1});break;case La.ARROW_LEFT:case La.ARROW_RIGHT:return;case La.PAGE_UP:u({up:a.stop-a.start});break;case La.PAGE_DOWN:u({down:a.stop-a.start});break;case La.HOME:u({scrollPosition:r&&o?"overflowStart":"start"});break;case La.END:u({scrollPosition:r&&o?"overflowEnd":"end"});break;default:return}e.preventDefault()},handleOnMouseEnter:()=>{var e,t;(()=>{var e,t;const n=(null==c?void 0:c.select)||(null==c?void 0:c.active),r=null!==(e=null===(t=s.isInModalSelection)||void 0===t?void 0:t.call(s))&&void 0!==e?e:l.isInModal();return n||r})()||(r(!0),null==i||null===(e=i.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))},handleOnMouseLeave:()=>{var e,t;n&&(r(!1),null==i||null===(e=i.current)||void 0===e||null===(t=e.blur)||void 0===t||t.call(e))}}}const Oa="RowColumn",Ra={row:"".concat(Oa,"-row"),rowBorderBottom:"".concat(Oa,"-rowBorderBottom"),column:"".concat(Oa,"-column"),fieldRoot:"".concat(Oa,"-fieldRoot"),cell:"".concat(Oa,"-cell"),labelText:"".concat(Oa,"-labelText"),labelDense:"".concat(Oa,"-labelDense"),highlighted:"".concat(Oa,"-highlighted"),checkboxLabel:"".concat(Oa,"-checkboxLabel"),icon:"".concat(Oa,"-icon"),S:"".concat(Oa,"-S"),XS:"".concat(Oa,"-XS"),A:"".concat(Oa,"-A"),X:"".concat(Oa,"-X"),frequencyCount:"".concat(Oa,"-frequencyCount"),barContainer:"".concat(Oa,"-barContainer"),bar:"".concat(Oa,"-bar"),barSelected:"".concat(Oa,"-barSelected"),barWithCheckbox:"".concat(Oa,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Oa,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Oa,"-excludedTextWithCheckbox")},ka=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,qa=e=>e?"A"===e.qState:null,_a=e=>{let{cell:t,checkboxes:n}=e;return(qa(t)||ka(t))&&n},Ta=e=>e.filter((e=>!!e)).join(" ").trim(),Da=e=>e||"-",Aa=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0}}},Pa={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Ma=si("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth","showIcon","checkboxes"].includes(e)})((e=>{var t,n,r,o,i,a,s,l,c,u;let{theme:d,flexBasisProp:p,isGridMode:h,isGridCol:f,dense:m,frequencyWidth:g,showIcon:y,checkboxes:v}=e;return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(d.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(d.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Ra.row)]:{flexWrap:"nowrap",color:null!==(t=null===(n=d.listBox)||void 0===n||null===(r=n.content)||void 0===r?void 0:r.color)&&void 0!==t?t:d.palette.text.primary},["& .".concat(Ra.rowBorderBottom)]:{borderBottom:f?"none":"1px solid ".concat(d.palette.divider),borderLeft:f?"1px solid ".concat(d.palette.divider):"none"},["& .".concat(Ra.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(d.palette.divider),color:null!==(o=null===(i=d.listBox)||void 0===i||null===(a=i.content)||void 0===a?void 0:a.color)&&void 0!==o?o:d.palette.text.primary},["& .".concat(Ra.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(Ra.labelText)]:H(H({flexBasis:p,lineHeight:"16px",userSelect:"none",paddingRight:y||v?"1px":"".concat(24,"px")},Pa),{},{whiteSpace:"pre",fontSize:null===(s=d.listBox)||void 0===s||null===(l=s.content)||void 0===l?void 0:l.fontSize,fontFamily:null===(c=d.listBox)||void 0===c||null===(u=c.content)||void 0===u?void 0:u.fontFamily}),["& .".concat(Ra.labelDense)]:{fontSize:12},["& .".concat(Ra.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(Ra.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":H(H({},Pa),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Ra.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(Ra.S)]:H(H({},Aa({theme:d})),{},{border:h?"none":void 0}),["& .".concat(Ra.XS)]:H(H({},Aa({theme:d})),{},{background:d.palette.selected.excluded,color:d.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(Ra.A)]:{background:d.palette.selected.alternative,color:d.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(Ra.X)]:{background:d.palette.selected.excluded,color:d.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(Ra.frequencyCount)]:H(H({justifyContent:"flex-end"},Pa),{},{flex:"0 1 ".concat(g+(y||v?0:24),"px"),textAlign:"right",paddingLeft:"2px"}),["&.".concat(Ra.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Ra.bar)]:{height:m?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(Ra.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:d.palette.background.lighter}},["& .".concat(Ra.barWithCheckbox)]:{left:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Ra.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(Ra.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var Na=t.memo(Ma);const za="ListBoxCheckbox",ja={cbIcon:"".concat(za,"-cbIcon"),cbIconChecked:"".concat(za,"-cbIconChecked"),cbIconExcluded:"".concat(za,"-cbIconExcluded"),cbIconAlternative:"".concat(za,"-cbIconAlternative"),checkbox:"".concat(za,"-checkbox"),dense:"".concat(za,"-dense")},Fa=si(y)((e=>{let{theme:t}=e;return{["& .".concat(ja.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(ja.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,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(ja.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(ja.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(ja.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(ja.dense)]:{padding:"4px 8px"}}})),Wa=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.createElement("span",{className:e.cbIcon},r&&t.createElement("span",{className:n&&r?e.cbIconExcluded:""}))};function Ba(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,showGray:s=!0,dataN:l}=e;return t.createElement(Fa,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[ja.checkbox,i&&ja.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":l},name:o,icon:Wa(ja,s,a),checkedIcon:t.createElement("span",{className:ja.cbIconChecked})})}const Ha="ListBoxRadioButton",Ua={denseRadioButton:"".concat(Ha,"-denseRadioButton"),radioButton:"".concat(Ha,"-radioButton")},$a=si(v)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(Ua.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function Ga(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a}=e;return t.createElement($a,{checked:r,onChange:n,value:o,name:o,className:Ua.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:i?"small":"medium",sx:i&&{padding:"0px 0px 0px 12px"}})}function Va(e){let{label:n,color:r,highlighted:o=!1,dense:i,showGray:a=!0,checkboxes:s,cell:l,valueTextAlign:c}=e;return t.createElement(b,{component:"span",variant:"body2",className:Ta([Ra.labelText,o&&Ra.highlighted,i&&Ra.labelDense,a&&_a({cell:l,checkboxes:s})&&Ra.excludedTextWithCheckbox]),color:r,align:c},t.createElement("span",{dir:"auto",style:{whiteSpace:"pre"}},n))}function Ka(e){let{label:n,color:r,highlighted:o,dense:i,showGray:a,checkboxes:s,cell:l,valueTextAlign:c}=e;return"string"==typeof n?t.createElement(Va,{label:n,color:r,highlighted:o,dense:i,showGray:a,checkboxes:s,cell:l,valueTextAlign:c}):n}function Za(e){let{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,highlighted:p,checkboxes:h,valueTextAlign:f}=e;const m=t.createElement(Ba,{onChange:n,label:r,checked:a,dense:s,excluded:ka(l),isGridCol:c,showGray:u,dataN:i}),g=t.createElement(Ga,{onChange:n,label:r,checked:a,dense:s,dataN:i});return t.createElement(x,{color:o,control:d?g:m,className:Ra.checkboxLabel,label:t.createElement(Ka,{label:r,color:o,highlighted:p,dense:s,showGray:u,checkboxes:h,cell:l,valueTextAlign:f}),key:i})}function Xa(e){let{labels:n,dense:r,showGray:o,checkboxes:i}=e;return t.createElement(t.Fragment,null,n.map(((e,n)=>{let[a,s]=e;const l="".concat(n);return t.createElement(Va,{label:a,key:l,highlighted:s,dense:r,showGray:o,checkboxes:i})})))}function Ja(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,color:s,qElemNumber:l,isSelected:c,cell:u,isGridCol:d,isSingleSelect:p,valueTextAlign:h}=e;const f=t.createElement(Xa,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(Za,{onChange:n,label:f,color:s,qElemNumber:l,isSelected:c,dense:i,cell:u,isGridCol:d,showGray:a,isSingleSelect:p,checkboxes:o,valueTextAlign:h}):f}var Ya=t.memo((function(e){let{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,highlighted:p,checkboxes:h,valueTextAlign:f}=e;return h?t.createElement(Za,{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,highlighted:p,checkboxes:h,valueTextAlign:f}):t.createElement(Va,{label:r,color:o,highlighted:!1,dense:s,showGray:!0,checkboxes:h,cell:l,valueTextAlign:f})}));function Qa(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&"-"!==Da(n)))return;const s=(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,"%")})({qFrequency:n,checkboxes:o,frequencyMax:a});return t.createElement(E,{className:Ta([Ra.bar,o&&Ra.barWithCheckbox,i&&(o?Ra.barSelectedWithCheckbox:Ra.barSelected)])},t.createElement(E,{className:"bar-filled",width:s}))}function es(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;return t.createElement(S,{item:!0,style:{display:"flex",alignItems:"center"},className:Ra.frequencyCount},t.createElement(b,{noWrap:!0,color:"inherit",variant:"body2",className:Ta([o&&Ra.labelDense,Ra.labelText,i&&_a({cell:n,checkboxes:r})&&Ra.excludedTextWithCheckbox])},Da(null==n?void 0:n.qFrequency)))}function ts(e){let{dataLayout:t,layoutOrder:n,itemPadding:r}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const ns=si(S,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","checkboxes"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,checkboxes:o}=e;return{["&.".concat(Ra.fieldRoot)]:H(H({},ts({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{paddingRight:o?"8px":void 0})}}));function rs(e){var n,o,a;let{index:s,rowIndex:c,columnIndex:u,style:p,data:h}=e;const{onChange:f,onClick:m,onMouseDown:g,onMouseUp:y,onMouseEnter:v,pages:b,isLocked:x,column:E=!1,checkboxes:C=!1,textAlign:w,direction:L,layoutOptions:I={},freqIsAllowed:O,isSingleSelect:R,actions:k,frequencyMax:q="",histogram:_=!1,keyboard:T,showGray:D=!0,showTick:A=!0,columnCount:P=1,rowCount:M=1,dataOffset:N,focusListItems:z,listCount:j,itemPadding:F,frequencyWidth:W}=h,{dense:B=!1,dataLayout:U="singleColumn",layoutOrder:$}=I;let G,V;const K={max:null,currentIndex:null};if("number"==typeof c&&"number"==typeof u){"row"===$?(G=c*P+u,K.max=M,K.currentIndex=c):(G=u*M+c,K.max=P,K.currentIndex=u);const e=0;V=H(H({},p),{},{left:e+(0===u?p.left:Number(p.left)+u*e),top:0===c?p.top:Number(p.top)+c*e})}else G=s,K.max=j,K.currentIndex=s,V=H({},p);G+=N;const Z=d(null);r((()=>{null!==Z.current&&(0===K.currentIndex&&z.first&&(Z.current.focus(),z.setFirst(!1)),K.currentIndex===K.max-1&&z.last&&(Z.current.focus(),z.setLast(!1)))}),[Z.current]);const X=l(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,focusListItems:s}=e;const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let c=!1;const u=e=>{c=e};return e=>{let d;const{keyCode:p,shiftKey:h=!1,ctrlKey:f=!1,metaKey:m=!1}=e.nativeEvent;switch(p){case La.SHIFT:u(!0);break;case La.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case La.ARROW_DOWN:case La.ARROW_RIGHT:d=l(e.currentTarget,!0),h&&d&&(c&&(t([+e.currentTarget.getAttribute("data-n")],!0),u(!1)),t([+d.getAttribute("data-n")],!0));break;case La.ARROW_UP:case La.ARROW_LEFT:d=l(e.currentTarget,!1),h&&d&&(c&&(t([+e.currentTarget.getAttribute("data-n")],!0),u(!1)),t([+d.getAttribute("data-n")],!0));break;case La.ENTER:o();break;case La.ESCAPE:return void i();case La.HOME:if(s.setFirst(!0),f){null==a||a("overflowStart");break}null==a||a("start");break;case La.END:if(s.setLast(!0),f){null==a||a("overflowEnd");break}null==a||a("end");break;case La.A:if(f||m){n();break}return;case La.F:if(f||m){r();break}return;default:return}d&&d.focus(),e.preventDefault(),e.stopPropagation()}}(H(H({},k),{},{focusListItems:z})),[k]),J=i((()=>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:b,cellIndex:G})),[b,G]),Y="S"===(null==J?void 0:J.qState)||"XS"===(null==J?void 0:J.qState)||"L"===(null==J?void 0:J.qState)||"XL"===(null==J?void 0:J.qState),Q=i((()=>(e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?Ra.column:Ra.row];return n||a.push(Ra.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?Ra.XS:Ra.S):"S"===o.qState||"L"===o.qState?a.push(Ra.S):i&&qa(o)?a.push(Ra.A):i&&ka(o)&&a.push(Ra.X)),a):[]})({column:E,histogram:_,checkboxes:C,cell:J,showGray:D})),[null==J?void 0:J.qState,_,B,C]),ee=l((e=>{e.preventDefault()}),[C]);if(!J)return null;const te=!["NaN",void 0].includes(null==J?void 0:J.qNum);let ne;ne=!w||w.auto?te?"rtl"===L?"left":"right":{rtl:"right",ltr:"left"}[L]:(null==w?void 0:w.align)||"left";const re="grid"===U&&"column"===$,oe=null!==(n=null==J?void 0:J.qText)&&void 0!==n?n:"";let ie;if(null!==(o=J.qHighlightRanges)&&void 0!==o&&null!==(a=o.qRanges)&&void 0!==a&&a.length){ie=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}(oe,J.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[])}const ae={alignItems:"center",display:"flex",fontSize:"8px"},se={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===L?8:C?0:void 0,paddingRight:C?0:"rtl"===L?8:0,justifyContent:ne},le=0===s,ce=C?"auto":"max-content",ue=Y&&x,de=!C&&Y&&!x&&A,pe=!C&&(de||ue);return t.createElement(Na,{className:Ra.barContainer,flexBasisProp:ce,style:V,showIcon:pe,checkboxes:C,isGridCol:re,isGridMode:"grid"===U,dense:B,frequencyWidth:W},t.createElement(ns,{ref:Z,container:!0,dataLayout:U,checkboxes:C,layoutOrder:$,itemPadding:F,gap:0,className:Ta(["value",...Q]),classes:{root:Ra.fieldRoot},onClick:m,onMouseDown:g,onMouseUp:y,onMouseEnter:v,onKeyDown:X,onContextMenu:ee,role:E?"column":"row",tabIndex:!le||T.enabled&&!T.active?-1:0,"data-n":null==J?void 0:J.qElemNumber},(null==J?void 0:J.qFrequency)&&t.createElement(Qa,{qFrequency:null==J?void 0:J.qFrequency,histogram:_,checkboxes:C,isSelected:Y,frequencyMax:q}),t.createElement(S,{item:!0,style:se,className:Ta([Ra.cell,Ra.selectedCell]),title:"".concat(oe)},ie?t.createElement(Ja,{onChange:f,labels:ie,checkboxes:C,dense:B,showGray:D,color:"inherit",qElemNumber:J.qElemNumber,isSelected:Y,cell:J,isGridCol:re,isSingleSelect:R,valueTextAlign:ne}):t.createElement(Ya,{onChange:f,label:oe,color:"inherit",qElemNumber:J.qElemNumber,isSelected:Y,dense:B,cell:J,isGridCol:re,showGray:D,isSingleSelect:R,checkboxes:C,valueTextAlign:ne})),O&&t.createElement(es,{cell:J,checkboxes:C,dense:B,showGray:D}),pe&&t.createElement(S,{item:!0,className:Ra.icon},ue&&t.createElement(da,{style:ae,size:"small"}),de&&t.createElement(wa,{style:ae,size:"small"}))))}var os=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function is(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||os(r)&&os(o)))return!1;var r,o;return!0}function as(e,t){var n;void 0===t&&(t=is);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 ss="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ls(e){cancelAnimationFrame(e.id)}function cs(e,t){var n=ss();var r={id:requestAnimationFrame((function o(){ss()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var us=-1;function ds(e){if(void 0===e&&(e=!1),-1===us||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),us=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return us}var ps=null;function hs(e){if(void 0===e&&(e=!1),null===ps||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?ps="positive-descending":(t.scrollLeft=1,ps=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ps}return ps}var fs=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ms(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,d=e.getRowHeight,h=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,y=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,hi(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:hi(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=as((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=as((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,u=r._getItemStyleCache(y&&s,y&&l,y&&c),p=e+":"+t;if(u.hasOwnProperty(p))o=u[p];else{var f=n(r.props,t,r._instanceProps),m="rtl"===l;u[p]=o={position:"absolute",left:m?void 0:f,right:m?f:void 0,top:h(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=as((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(hs()){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&&ls(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=cs(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}pi(t,e),t.getDerivedStateFromProps=function(e,t){return gs(e,t),v(e),null};var u=t.prototype;return u.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)},u.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,h=i.width,f=this.state,m=f.scrollLeft,g=f.scrollTop,y=ds();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),b=s(this.props,this._instanceProps)>h?y:0,x=v>d?y:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,b):g})},u.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()},u.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(hs()){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()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ls(this._resetIsScrollingTimeoutId)},u.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,h=e.itemKey,f=void 0===h?fs:h,m=e.outerElementType,g=e.outerTagName,y=e.rowCount,v=e.style,b=e.useIsScrolling,x=e.width,E=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],w=S[1],L=this._getVerticalRangeToRender(),I=L[0],O=L[1],R=[];if(r>0&&y)for(var k=I;k<=O;k++)for(var q=C;q<=w;q++)R.push(p(t,{columnIndex:q,data:d,isScrolling:b?E:void 0,key:f({columnIndex:q,data:d,rowIndex:k}),rowIndex:k,style:this._getItemStyle(k,q)}));var _=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return p(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ui({position:"relative",height:i,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},p(c||u||"div",{children:R,ref:l,style:{height:_,pointerEvents:E?"none":void 0,width:T}}))},u._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],h=u[2],f=u[3];this._callOnItemsRendered(a,s,d,p,l,c,h,f)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,y=m.scrollLeft,v=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(y,v,g,x,b)}},u._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 h=r(this.props,d,this._instanceProps),f=o(this.props,h,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,h-m),Math.max(0,Math.min(t-1,f+g)),h,f]},u._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=f(this.props,c,this._instanceProps),p=m(this.props,d,c,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(u),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var gs=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ys=function(e,t){return e};function vs(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,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,hi(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:hi(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=as((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=as((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),h="horizontal"===a||"horizontal"===l,f="rtl"===a,m=h?d:0;u[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:h?0:d,height:h?"100%":p,width:h?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=as((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(hs()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ls(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=cs(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}pi(t,e),t.getDerivedStateFromProps=function(e,t){return bs(e,t),d(e),null};var u=t.prototype;return u.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)},u.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?ds():0:l.scrollHeight>l.clientHeight?ds():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},u.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()},u.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(hs()){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()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ls(this._resetIsScrollingTimeoutId)},u.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,h=void 0===d?ys:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,v=e.useIsScrolling,b=e.width,x=this.state.isScrolling,E="horizontal"===o||"horizontal"===f,S=E?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],L=C[1],I=[];if(c>0)for(var O=w;O<=L;O++)I.push(p(t,{data:u,key:h(O,u),index:O,isScrolling:v?x:void 0,style:this._getItemStyle(O)}));var R=r(this.props,this._instanceProps);return p(m||g||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:ui({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},p(s||l||"div",{children:I,ref:a,style:{height:E?"100%":R,pointerEvents:x?"none":void 0,width:E?R:"100%"}}))},u._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)}},u._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}(u),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bs=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},xs=ms({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}}),Es=vs({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,h=Math.max(0,l*c-p),f=Math.min(h,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=f+p?"auto":"center"),n){case"start":return f;case"end":return m;case"center":var g=Math.round(m+(f-m)/2);return g<Math.ceil(p/2)?0:g>h+Math.floor(p/2)?h:g;default:return r>=m&&r<=f?r:r<m?m:f}},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 Ss="#BBB",Cs="#f1f1f1",ws={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function Ls(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=((e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,h=((e,t,n,r)=>e===t*n+r+n)(s,u,c?i:o,l),f=!!l&&((e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(t,c),m=p&&!h&&u>=d-1||f||a.state.show;a.set(m)}const{StyledFixedSizeList:Is,StyledFixedSizeGrid:Os}=function(){const e=e=>({scrollbarColor:"".concat(Ss," ").concat(Cs),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Cs},"&::-webkit-scrollbar-thumb":{backgroundColor:Ss,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:j(Es,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(ws.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:j(xs,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(ws.styledScrollbars)]:e(n)}}))}}();function Rs(e){let{layout:t,width:n,height:r,listCount:o,count:i,textWidth:a,freqIsAllowed:s,checkboxes:l}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:h,dataLayout:f}=c,m=s?40:0,g=l?20:0,y=56+m+g,v=Math.max(Math.min(150,a+18+m+g),y);let b,x,E,S;const C="grid"===f;let w=h?20:C?32:29;C&&(w+=4);const L=null!=r?r:8*w;if(u){let e=n;"row"===u?(b={overflowX:"hidden"},e+=8,({rowCount:S,columnWidth:E,columnCount:x}=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-10;let l;const c=Math.min(n,Math.ceil(s/Math.max(i,o)));l=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c);const u=s/l;return{rowCount:Math.ceil(n/l),columnWidth:u,columnCount:l}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:v,itemMinWidth:y}))):(b={overflowY:"hidden"},({rowCount:S,columnWidth:E,columnCount:x}=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);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,s/d,l),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:w,listCount:o,listHeight:L,columnAutoWidth:v,containerWidth:e,itemMinWidth:y})))}x=("singleColumn"===f?1:x)||1,S=("singleColumn"===f?i:S)||o;const I=c.dense?838e3:577e3;S=Math.min(S,I);const O=Math.floor(3355e4/E);x=Math.min(x,O)||1;const R=S*x;return{columnCount:x,columnWidth:E,rowCount:S,overflowStyling:b,itemHeight:w,listHeight:L,scrollBarWidth:10,count:i,listCount:Math.min(o,R),maxCount:{row:I,column:O},itemPadding:4,frequencyWidth:40}}const ks=(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)));return n.measureText(e).width};function qs(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}function _s(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;const i=null!=t&&t.length&&o?(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})({pages:t,minimumBatchSize:n,count:r}):r;return i||0}const[Ts,Ds]=Ri({});function As(e){const t="".concat(e.id),[n]=Ts();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}function Ps(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=h(Oi),s=si(b)((()=>H({minWidth:"".concat(n,"px"),textAlign:"center",fontSize:"".concat(o?"12px":"14px")},o&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:n})));return t.createElement(C,{title:i?a.get(r):""},t.createElement(s,{component:"div",variant:"body1",py:"12px"},a.get(r)))}var Ms,Ns={},zs={};(Ms={get exports(){return zs},set exports(e){zs=e}}).exports=function(e){return e&&e.__esModule?e:{default:e}},Ms.exports.__esModule=!0,Ms.exports.default=Ms.exports;var js={};function Fs(e){return Mt("MuiSvgIcon",e)}Nt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ws=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bs=e=>{const{color:t,fontSize:n,classes:r}=e;return function(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}({root:["root","inherit"!==t&&`color${vt(t)}`,`fontSize${vt(n)}`]},Fs,r)},Hs=si("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${vt(n.color)}`],t[`fontSize${vt(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,h,f,m,g,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(h=(e.vars||e).palette)||null==(f=h[t.color])?void 0:f.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(y=(e.vars||e).palette)||null==(v=y.action)?void 0:v.disabled,inherit:void 0}[t.color]}})),Us=e.forwardRef((function(e,t){const n=ii({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=jt(n,Ws),h=zt({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),f={};c||(f.viewBox=d);const m=Bs(h);return Jn.jsxs(Hs,zt({as:a,className:ci(m.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},f,p,{ownerState:h,children:[r,u?Jn.jsx("title",{children:u}):null]}))}));Us.muiName="SvgIcon";var $s=Us;const Gs={configure:e=>{At.configure(e)}};var Vs,Ks=Object.freeze({__proto__:null,capitalize:vt,createChainedFunction:function(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))},createSvgIcon:function(t,n){function r(e,r){return Jn.jsx($s,zt({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=$s.muiName,e.memo(e.forwardRef(r))},debounce:function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r},deprecatedPropType:function(e,t){return()=>null},isMuiElement:function(t,n){return e.isValidElement(t)&&-1!==n.indexOf(t.type.muiName)},ownerDocument:bt,ownerWindow:function(e){return bt(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:xt,unstable_ClassNameGenerator:Gs,unstable_useEnhancedEffect:Et,unstable_useId:function(t){if(void 0!==Ct){const e=Ct();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(St+=1,r(`mui-${St}`))}),[n]),o}(t)},unsupportedProp:function(e,t,n,r,o){return null},useControlled:function({controlled:t,default:n,name:r,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n);return[i?t:a,e.useCallback((e=>{i||s(e)}),[])]},useEventCallback:function(t){const n=e.useRef(t);return Et((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])},useForkRef:function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{xt(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Rt,!0),t.addEventListener("mousedown",kt,!0),t.addEventListener("pointerdown",kt,!0),t.addEventListener("touchstart",kt,!0),t.addEventListener("visibilitychange",qt,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!_t(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(It=!0,window.clearTimeout(wt),wt=window.setTimeout((()=>{It=!1}),100),n.current=!1,!0)},ref:t}}}),Zs=F(Ks);var Xs=zs;Object.defineProperty(Ns,"__esModule",{value:!0});var Js=Ns.default=void 0,Ys=Xs((Vs||(Vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Zs}(js)),js)),Qs=Xn(),el=(0,Ys.default)((0,Qs.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");Js=Ns.default=el;const tl=si(w)((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}})),nl=si("div")((()=>({paddingLeft:"6px",flexGrow:1}))),rl=si("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),ol=si(Js)((()=>({fontSize:"14px"})));function il(e){let{text:n,dismiss:r,dense:o,parentWidth:i=0}=e;const a="function"==typeof r,s=o?370:282,l=Math.max(i/2-s/2,0),c=Math.min(s,i)-42,u=o&&i<s;return t.createElement(tl,{left:l,style:{maxWidth:s}},t.createElement(nl,null,t.createElement(Ps,{text:n,dense:o,width:c,tooltip:u})),t.createElement(rl,{dense:o},a&&t.createElement(L,{"aria-label":"close",onClick:()=>r()},t.createElement(ol,null))))}function al(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>80,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["none",void 0].includes(r);return!(!o||!a&&!i)}const sl=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},ll=(e,t)=>{const o=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[i,a]=n(),[s,l]=n(o);return r((()=>{if(!o)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=sl(r);return(await t.evaluateEx(o)).qNumber})(t,e);a(n),l(!1)})()}),[o&&t]),{frequencyMax:o?i:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:s}},cl=["isLoadingData"];function ul(e){var o,a,s,c;let{model:u,app:p,constraints:h,layout:f,selections:m,selectionState:g,direction:y,checkboxes:v,height:b,width:x,frequencyMode:E,update:S,fetchStart:C,postProcessPages:w,calculatePagesHeight:L=!1,keyboard:I={},showGray:O=!0,scrollState:R,selectDisabled:k=(()=>!1),keyScroll:q={state:{},reset:()=>{}},currentScrollIndex:_={set:()=>{}},renderedCallback:T,onCtrlF:D}=e;const[A,P]=n(!1),M=!(!f||!f.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:N=v,histogram:z}=null!=f?f:{},j=d(null),F=d({queue:[],validPages:!1,dataOffset:0}),W=d({pages:[]}),{frequencyMax:B,awaitingFrequencyMax:U}=ll(p,f),V=function(e){let{local:t,loaderRef:r,model:o,fetchStart:i,scrollTimeout:a,postProcessPages:s,listData:l}=e;const[c,u]=n(!1),[d,p]=n([]);let[h]=n(0);const f=(e,n)=>{const c=t.current.dataOffset;t.current.queue.push({start:e+c,stop:n+c});const d=!!r.current&&r.current._listRef&&r.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),u(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],r=o.getListObjectData("/qListObjectDef",[{qTop:n.start>h?n.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:n.start,qHeight:h,qLeft:0,qWidth:1}]).then((n=>{const r=s?s(n):n;t.current.validPages=!0,l.current.pages=r,p(r),u(!1),e()}));i&&i(r)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(h=t),f}},pages:d,isLoading:c}}({local:F,loaderRef:j,model:u,fetchStart:C,scrollTimeout:0,postProcessPages:w,listData:W}),K=G(V,cl),{setStoreValue:Z}=As(u),X=l(K.loadMoreItems,[f]),[J,Y]=n({show:!1,dismissed:!1}),[Q,ee]=n([]);null!=K&&K.pages&&(g.update({setPages:ee,pages:K.pages,isSingleSelect:M,selectDisabled:k,layout:f}),K.pages.length&&!U&&T());const te=l((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)}),[f,Q]),{interactionEvents:ne,select:re}=Sa({selectionState:g,selections:m,checkboxes:N,doc:document}),{layoutOptions:oe={}}=f||{};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=H({},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"===q.state.scrollPosition;if(f&&f.qSelectionInfo.qInSelections||e)return void(e&&q.reset());F.current.dataOffset=0,se(0)}};S&&S.call(null,le),r((()=>{R&&!A&&j.current&&(j.current._listRef.scrollToItem(R.initScrollPos),P(!0))}),[j.current]),r((()=>{le()}),[f,F.current.dataOffset]);const ce=(e=>{const t=i((()=>"text"in e?e:{}),[e]);return i((()=>ks(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])})({text:qs(f),font:"14px Source sans pro"});let ue=100;const de="grid"!==oe.dataLayout,pe=null==f||null===(o=f.qListObject.qSize)||void 0===o?void 0:o.qcy,he=_s({pages:Q,minimumBatchSize:ue,count:pe,calculatePagesHeight:L,layoutOptions:oe,model:u});let fe=al({itemWidth:x,layout:f,frequencyMode:E});const me=Rs({layout:f,width:x,height:b,listCount:he,count:pe,textWidth:ce,freqIsAllowed:fe,checkboxes:N});me.columnWidth&&(fe=al({itemWidth:me.columnWidth,layout:f,frequencyMode:E}));const{listCount:ge}=me;Z("listCount",ge);const 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=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ie,sizes:me,layout:f,offset:F.current.dataOffset});F.current.dataOffset=n,r&&g.triggerStateChanged(),se(t)};r((()=>{const e=q.state;e.up?se(_.state.start-e.up):e.down?se(_.state.stop+e.down):e.scrollPosition&&ye(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&q.reset()}),[q.state.up,q.state.down,q.state.scrollPosition]);const{textAlign:ve}=(null==f?void 0:f.qListObject.qDimensionInfo)||{},[be,xe]=n({first:!1,last:!1}),{List:Ee,Grid:Se}=function(e){let{layout:n,width:r,checkboxes:o,local:i,isVertical:a,pages:s,selectDisabled:l,interactionEvents:c,frequencyMode:u,histogram:d,isSingleSelect:p,select:h,selectAll:f,onCtrlF:m,textAlign:g,selections:y,keyboard:v,showGray:b,scrollState:x,direction:E,sizes:S,listCount:C,overflowDisclaimer:w,setScrollPosition:L,focusListItems:I,setCurrentScrollIndex:O,constraints:R,frequencyMax:k,freqIsAllowed:q}=e;const{layoutOptions:_={}}=n||{},{columnWidth:T,itemPadding:D,listHeight:A,itemHeight:P,rowCount:M,columnCount:N,frequencyWidth:z}=S||{},j=("grid"===_.dataLayout?T:r)>80,F={direction:"rtl"===E?"rtl":"ltr",useIsScrolling:!0,className:ws.styledScrollbars},W=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,B=H(H({isLocked:W,column:!a,pages:s},W||l()?{}:c),{},{checkboxes:o,layoutOptions:_,frequencyMode:u,freqIsAllowed:q,isSingleSelect:p,textAlign:g,itemPadding:D,frequencyWidth:z,actions:{select:h,confirm:()=>null==y?void 0:y.confirm.call(y),cancel:()=>null==y?void 0:y.cancel.call(y),setScrollPosition:L,selectAll:f,onCtrlF:m},frequencyMax:k,histogram:d,keyboard:v,showGray:b,showTick:j,dataOffset:i.current.dataOffset,focusListItems:I,direction:E});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(Is,$({},F,{dataTestid:"fixed-size-list",scrollDisabled:null==R?void 0:R.active,height:A,width:r,itemCount:C,itemData:H(H({},B),{},{listCount:C}),itemSize:P,onItemsRendered:e=>{var t,r;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),x&&x.setScrollPos(e.visibleStopIndex),Ls({renderProps:e,layoutOptions:_,maxCount:S.maxCount,columnCount:N,rowCount:M,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(r=t.qDimensionInfo)||void 0===r?void 0:r.qCardinal,dataOffset:i.current.dataOffset}),o(H({},e))},ref:a}),rs)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=S,{layoutOrder:c}=_||{},u=Math.min(A,M*P+l);return i.current.listRef=a,t.createElement(Os,$({},F,{dataTestid:"fixed-size-grid",scrollDisabled:null==R?void 0:R.active,height:u,width:r,columnCount:N,columnWidth:T,rowCount:M,rowHeight:P,style:H({},s),itemData:H(H({},B),{},{column:void 0,columnCount:N,rowCount:M}),onItemsRendered:e=>{var t,r;const a="row"===c;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const s=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,h,f;return n&&n.setScrollPos(u),"column"===r?(d=l*o,p=a,h=c*o,f=s):(d=l,p=a*i,h=c,f=s*i),{visibleStartIndex:d+p,visibleStopIndex:h+f}}({renderProps:e,scrollState:x,layoutOrder:c,rowCount:M,columnCount:N});Ls({renderProps:e,layoutOptions:_,maxCount:S.maxCount,columnCount:N,rowCount:M,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(r=t.qDimensionInfo)||void 0===r?void 0:r.qCardinal,dataOffset:i.current.dataOffset}),o(s)},ref:a}),rs)}}}({direction:y,layout:f,height:b,width:x,checkboxes:N,frequencyMode:E,histogram:z,keyboard:I,showGray:O,interactionEvents:ne,select:re,selectAll:()=>{g.clearItemStates(!1),u.selectListObjectAll("/qListObjectDef")},onCtrlF:D,textAlign:ve,isVertical:de,pages:Q,selectDisabled:k,isSingleSelect:M,selections:m,scrollState:R,local:F,sizes:me,listCount:ge,overflowDisclaimer:{state:J,set:e=>Y((t=>H(H({},t),{},{show:e})))},setScrollPosition:ye,focusListItems:{first:be.first,setFirst:e=>xe((t=>H(H({},t),{},{first:e}))),last:be.last,setLast:e=>xe((t=>H(H({},t),{},{last:e})))},setCurrentScrollIndex:_.set,constraints:h,frequencyMax:B,freqIsAllowed:fe}),{columnWidth:Ce,listHeight:we,itemHeight:Le}=me||{};return de||(ue=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:x,columnWidth:Ce,listHeight:we,itemHeight:Le})),t.createElement(t.Fragment,null,!ge&&t.createElement(Ps,{width:x,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(ga,{isItemLoaded:te,itemCount:ge||1,loadMoreItems:X.with({minimumBatchSize:ue}),threshold:0,minimumBatchSize:ue,ref:j},de?Ee:Se),J.show&&!J.dismissed&&t.createElement(il,{text:"Listbox.ItemsOverflow",dismiss:()=>Y((e=>H(H({},e),{},{dismissed:!0}))),parentWidth:null==j||null===(a=j.current)||void 0===a||null===(s=a._listRef)||void 0===s||null===(c=s.props)||void 0===c?void 0:c.width,dense:null==oe?void 0:oe.dense}))}const dl=e=>H(H({},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"}}]}),pl=e=>H(H({},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"}}]}),hl=e=>H(H({},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"}}]}),fl=e=>H(H({},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 ml=e=>{let{layout:t,model:n,translator:r,selectionState:o}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:dl,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:hl,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:pl,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:fl,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}]};const gl=e=>H(H({},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 yl(e){const t=oi(),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 vl="njs-cell-action",bl=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=oi(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=yl(o);if(s)return null;const d=Number.parseInt(a.spacing(.5),10),p=o.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&o.keyboardAction():null;return t.createElement(L,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:p,disabled:l,style:c,className:vl,size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList"},u&&ca(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),xl=e=>H(H({},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"}}]}),El=e=>H(H({},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 Sl=e=>ca(El(e));const Cl="njs-action-toolbar-more",wl={icon:"".concat("More","-icon")},Ll=si(I)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(wl.icon)]:{color:t.palette.text.primary}}}));function Il(e){let{item:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=yl(n);return o?null:t.createElement(R,{title:n.label,onClick:()=>{n.action(),r()},disabled:i,tabindex:"0"},a&&t.createElement(k,{className:wl.icon},ca(n.getSvgIconShape())),t.createElement(b,{noWrap:!0},n.label))}const Ol=t.forwardRef(((e,n)=>{let{actions:r=[],show:o=!0,alignTo:i,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:l=(()=>{})}=e;return r.length>0&&t.createElement(Ll,$({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:Cl}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:H({pointerEvents:"auto",maxWidth:"250px"},s)}}),t.createElement(O,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(Il,{key:n,item:e,onActionClick:l})))))})),Rl="ActionsToolbar",kl={item:"".concat(Rl,"-item"),itemSpacing:"".concat(Rl,"-itemSpacing"),firstItemSpacing:"".concat(Rl,"-firstItemSpacing"),lastItemSpacing:"".concat(Rl,"-lastItemSpacing")},ql=si(I)((e=>{let{theme:t}=e;return{["& .".concat(kl.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(kl.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(kl.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),_l="njs-action-toolbar-popover",Tl=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,actions:o=[],first:i=!1,last:a=!1,addAnchor:s=!1,isRtl:l=!1}=e;return o.length>0?t.createElement(S,{item:!0,container:!0,gap:0,flexDirection:l?"row-reverse":"row",wrap:"nowrap"},o.map(((e,l)=>{let c=[];const u=i&&0===l,d=a&&o.length-1===l;return u&&!d&&(c=[kl.firstItemSpacing,kl.item]),d&&!u&&(c=[...c,kl.lastItemSpacing,kl.item]),u||d||0!==c.length||(c=[kl.itemSpacing,kl.item]),t.createElement(S,{item:!0,key:e.key,className:c.join(" ").trim()},t.createElement(bl,{ariaExpanded:r,key:e.key,item:e,ref:0===l?n:null,addAnchor:s}))}))):null})),Dl={pointerEvents:"none"},Al={vertical:"bottom",horizontal:"right"};function Pl(e){var o,a;let{show:s=!0,actions:l=[],maxItems:c=3,selections:u={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:p={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:f={show:!1,anchorEl:null},focusHandler:m=null,actionsRefMock:g=null,direction:y="ltr"}=e;const v=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=h(Oi);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:El},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:xl},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:Ca}]}(u),{translator:b,keyboardNavigation:x}=h(Oi),[E,C]=n(!1),w=d(),L=d(),I=oi(),O=i((()=>({margin:I.spacing(.5,0)}))),R={vertical:15,horizontal:(null!==(o=null===(a=f.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},k=e=>{const t=L.current||g;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};r((()=>()=>{C(!1)}),[f.show,s,u.show]),r((()=>{if(!m)return;m.on("focus_toolbar_first",(()=>{const e=k(!1);e&&e.focus()})),m.on("focus_toolbar_last",(()=>{const e=k(!0);e&&e.focus()}))}),[]);let _=p.enabled,T=p.actions;const D=p.alignTo||w,A=l.filter((e=>!e.hidden));if(A.length>c){const e=A.splice(-(A.length-c)-1);_=!0,T=[...e,...p.actions]}if(!u.show&&0===A.length)return null;const P={key:"more",label:b.get("Menu.More"),getSvgIconShape:gl,hidden:!1,active:E,enabled:()=>_,action:()=>C(!E)},M=x&&m&&m.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&k(!1)===e.target||!e.shiftKey&&k(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),m.refocusContent())}:null,N=A.length>0,z=T.length>0,j=N&&u.show||z&&u.show,F="rtl"===y,W=t.createElement(S,{ref:L,onKeyDown:M,container:!0,gap:0,wrap:"nowrap",sx:{flexDirection:F?"row-reverse":"row"}},N&&t.createElement(Tl,{actions:A,first:!0,last:!z&&!u.show}),z&&t.createElement(Tl,{ref:w,ariaExpanded:E,actions:[P],first:!N,last:!u.show,addAnchor:!0}),j&&t.createElement(S,{item:!0,className:kl.itemSpacing,style:O},t.createElement(q,{orientation:"vertical"})),u.show&&t.createElement(Tl,{actions:v,first:!N&&!z,last:!0,isRtl:F}),E&&t.createElement(Ol,{show:E,actions:T,alignTo:D,popoverProps:p.popoverProps,popoverPaperStyle:p.popoverPaperStyle,onCloseOrActionClick:()=>{C(!1)}}));return f.show?t.createElement(ql,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:f.show,anchorEl:f.anchorEl,anchorOrigin:R,transformOrigin:Al,hideBackdrop:!0,style:Dl,PaperProps:{className:_l,style:{pointerEvents:"auto",padding:I.spacing(.8)}}},W):s&&W}var Ml=e=>ca((e=>H(H({},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 Nl="/qListObjectDef",zl=si(_)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color}})),jl=si(T)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color,display:"flex"}}));function Fl(e){let{selections:o,selectionState:i,model:a,keyboard:s,dense:l=!1,visible:c=!0,autoFocus:u=!0,wildCardSearch:p=!1,searchEnabled:f,direction:m,hide:g}=e;const{translator:y}=h(Oi),[v,b]=n(""),[x,E]=n(!1),S=d(),C=oi(),{getStoreValue:w}=As(a),L="rtl"===m,I=L?"right":"left",O=async()=>{if(o.isModal())try{await a.abortListObjectSearch(Nl)}finally{b("")}};r((()=>{c||O()}),[c]),r((()=>(o.on("deactivated",O),()=>{o.removeListener&&o.removeListener("deactivated",O)})),[]),r((()=>{if(x&&S.current){const e=v.length-1;S.current.setSelectionRange(e,e),E(!1)}}),[x,S.current]);const R=async()=>{let e;return await a.searchListObjectFor(Nl,v)&&v.length&&w("listCount")>0&&(e=a.acceptListObjectSearch(Nl,!0),o.selectionsMade=!0,i.clearItemStates(!1),b("")),e};return c&&!1!==f?t.createElement(jl,{startAdornment:t.createElement(zl,{position:"start"},t.createElement(Ml,{size:l?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(C.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(9,"px")},l&&{fontSize:12,paddingLeft:C.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:L?"row-reverse":"row"}],inputRef:S,size:"small",fullWidth:!0,placeholder:y.get("Listbox.Search"),value:v,onFocus:()=>{p&&(b("**"),E(!0)),o.isModal()||o.begin(["/qListObjectDef"])},onChange:async e=>(b(e.target.value),e.target.value.length?a.searchListObjectFor(Nl,e.target.value):O()),onKeyDown:async e=>{let t;switch(e.key){case"Enter":t=await R();break;case"Escape":t=o.isActive()&&o.cancel(),e.preventDefault(),e.stopPropagation();break;case"f":case"F":(e.ctrlKey||e.metaKey)&&(g&&g(),e.preventDefault(),e.stopPropagation())}return t},autoFocus:u,inputProps:{tabIndex:!s||s.enabled&&!s.active?-1:0,style:{textAlign:"".concat(I)}}}):null}function Wl(e){return Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e}const Bl=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(o,e,!0))},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(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return Wl(s),s},Hl=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 Ul(e,t,n,o){const i=Array.isArray(n)?n:[n],[a]=Ni(e),[s]=ia(t),l=t?t.id:null,[c]=_i(),[u]=Di(),d=c.get(e.id);let p=u.get(l);return r((()=>{a&&t&&!p&&(p=Bl({appSelections:a,appModal:d,model:t}),u.set(l,p),u.dispatch(!0))}),[a,t]),r((()=>{if(!p)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Hl({elements:i,objectSelections:p,options:o});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{p.removeListener("activated",e),p.removeListener("deactivated",t)}}),[p]),r((()=>{p&&p.setLayout(s)}),[p,s]),[p]}function $l(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:i,pages:a,isSingleSelect:s,selectDisabled:l,layout:c}=t;this.setPages=i;const u=this.lastRowCount===c.qListObject.qSize.qcy,d=this.lastApprMaxGlyphCount===c.qListObject.qDimensionInfo.qApprMaxGlyphCount;u&&d||(this.lastRowCount=c.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=c.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=ba(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=s,e.selectDisabled=l,e.isDimCalculated=null!==(n=null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.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=>t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[H(H({},n),{},{qState:r}),...t.slice(1)]}));return H(H({},t),{},{qMatrix: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 Gl=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 Vl(e){let{alignTo:o,anchorOrigin:i={vertical:"bottom",horizontal:"center"},transformOrigin:a={vertical:"top",horizontal:"center"},show:s,close:c,app:u,fieldName:p,stateName:f="$",autoFocus:m}=e;const g=Boolean(null==p?void 0:p.qLibraryId),y=s&&Boolean(o.current),[v,b]=n(0),x=oi(),E=d(),[C]=ea({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:f,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:g?void 0:[p]},qLibraryId:g?p.qLibraryId:void 0}},u,p,f),w=l((()=>{C.lock("/qListObjectDef")}),[C]),O=l((()=>{C.unlock("/qListObjectDef")}),[C]),{translator:R}=h(Oi),k=d(),q=d(),[_]=Ul(u,C,q),[T]=ia(C),[D]=n((()=>$l()));if(r((()=>{_&&y&&(_.isModal(C)||_.goModal("/qListObjectDef"))}),[_,y]),!C||!T||!R)return null;const A=!0===T.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;_.noModal(n),c()},M=ml({layout:T,model:C,translator:R,selectionState:D}),N=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return Gl(t,"qSelected",0)+Gl(t,"qSelectedExcluded",0)+Gl(t,"qLocked",0)+Gl(t,"qLockedExcluded",0)>0}(T);return t.createElement(I,{open:y,onClose:P,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,PaperProps:{style:{minWidth:"250px"}}},t.createElement(S,{container:!0,direction:"column",gap:0,ref:q},t.createElement(S,{item:!0,container:!0,style:{padding:x.spacing(1)}},t.createElement(S,{item:!0},A?t.createElement(L,{onClick:O,disabled:!A,size:"large"},t.createElement(da,{title:R.get("Listbox.Unlock")})):t.createElement(L,{onClick:w,disabled:!N,size:"large"},t.createElement(pa,{title:R.get("Listbox.Lock")}))),t.createElement(S,{item:!0,xs:!0}),t.createElement(S,{item:!0},t.createElement(Pl,{more:{enabled:!A,actions:M,alignTo:k,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:_,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}}))),t.createElement(S,{item:!0,xs:!0},t.createElement("div",{ref:k}),t.createElement(S,{item:!0,ref:E},t.createElement(Fl,{visible:!0,model:C,listCount:v,selections:_,selectionState:D,keyboard:{enabled:!1},autoFocus:null==m||m})),t.createElement(ul,{model:C,app:u,layout:T,selections:_,selectionState:D,direction:"ltr",onSetListCount:e=>b(e),onCtrlF:()=>{const e=E.current.querySelector("input");null==e||e.focus()}}))))}function Kl(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=h(Oi),u=s||d(),p=oi(),[f,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!f)},y=()=>{m(!1),l()},v=r.selections[i];void 0===v.qTotal&&(v.qTotal=0);const x=v.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},E=(x.qSelected+x.qLocked)/v.qTotal,C=x.qAlternative/v.qTotal,w=(x.qExcluded+x.qLockedExcluded+x.qSelectedExcluded)/v.qTotal,I=x.qSelected+x.qSelectedExcluded+x.qLocked+x.qLockedExcluded,O=0===I&&0===v.qTotal;let R="";v.qTotal===I&&v.qTotal>1?R=c.get("CurrentSelections.All"):I>1&&v.qTotal?R=c.get("CurrentSelections.Of",[I,v.qTotal]):v.qSelectedFieldSelectionInfo&&(R=v.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(R="".concat(r.states[i],": ").concat(R));const k=[{color:p.palette.selected.main,ratio:E},{color:p.palette.selected.alternative,ratio:C},{color:p.palette.selected.excluded,ratio:w}];k.forEach(((e,t)=>{e.offset=t?k[t-1].offset+k[t-1].ratio:0}));let q=null,_=null,T=null,D=null;return s||(q=t.createElement(S,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:v.qLocked?"0.3":""}},t.createElement(b,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},v.qField),t.createElement(b,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},R)),v.qLocked?_=t.createElement(S,{item:!0},t.createElement(L,{size:"large"},t.createElement(da,null))):v.qOneAndOnlyOne||(_=t.createElement(S,{item:!0},t.createElement(L,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(v.qField,r.states[i])},size:"large"},t.createElement(ua,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===O&&k.map((e=>t.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,"%")}})))),D=t.createElement(S,{container:!0,gap:1,ref:u,sx:{backgroundColor:p.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:p.palette.action.hover}},onClick:!1===a&&g||null},q,_,T,f&&t.createElement(Vl,{alignTo:u,show:f,close:y,app:o.model,fieldName:v.qField,stateName:r.states[i]}))),s?t.createElement(Vl,{alignTo:u,show:!0,close:y,app:o.model,fieldName:v.qField,stateName:r.states[i]}):D}var Zl=e=>ca((e=>H(H({},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 Xl={item:"".concat("MultiState","-item")},Jl=si(S)((e=>{let{theme:t}=e;return{["&.".concat(Xl.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function Yl(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[s,l]=n(!!i),[c,u]=n(-1),[p,f]=n(i?i.current:null),m=i||d(),{translator:g}=h(Oi),y=g.get("Selection.ClearAllStates"),v=()=>{u(-1),a()};let x=null;i||(x=t.createElement(t.Fragment,null,t.createElement(S,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(D,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(b,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.name))),t.createElement(S,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(S,{item:!0},t.createElement(L,{size:"large"},t.createElement(Zl,null)))));const C=t.createElement(A,{dense:!0},t.createElement(P,{title:y,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(M,{variant:"contained",fullWidth:!0},y)),r.states.map(((e,n)=>t.createElement(P,{key:n,title:r.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,n)},t.createElement(E,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(Kl,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),w=t.createElement(I,{open:s,onClose:()=>{l(!1),a()},anchorEl:p,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},C),O=i?w:t.createElement(Jl,{container:!0,gap:0,className:Xl.item,onClick:e=>{e.currentTarget.contains(e.target)&&(f(e.currentTarget),m.current=e.currentTarget,l(!s))}},x,s&&w,c>-1&&t.createElement(Vl,{alignTo:m,show:c>-1,close:v,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}));return i&&c>-1?t.createElement(Vl,{alignTo:m,show:c>-1,close:v,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}):O}const Ql="More",ec={item:"".concat(Ql,"-item"),badge:"".concat(Ql,"-badge")},tc=si(S)((e=>{let{theme:t}=e;return{["&.".concat(ec.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(ec.badge)]:{padding:t.spacing(0,1)}}}));function nc(e){let{items:r=[],api:o}=e;const i=oi(),[a,s]=n(!1),[l,c]=n(-1),[u,p]=n(null),h=d(),f=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(Yl,{field:r[l],api:o,moreAlignTo:h,onClose:f}):t.createElement(Kl,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:h,onClose:f})),t.createElement(tc,{container:!0,gap:0,className:ec.item,onClick:e=>{e.currentTarget.contains(e.target)&&(p(e.currentTarget),h.current=e.currentTarget,s(!a))}},t.createElement(S,{item:!0},t.createElement(E,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(b,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(S,{item:!0},t.createElement(L,{size:"large"},t.createElement(Zl,null))),a&&t.createElement(I,{open:a,onClose:()=>{s(!1)},anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},t.createElement(A,{dense:!0},r.map(((e,n)=>t.createElement(P,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(E,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(Yl,{field:e,api:o}):t.createElement(Kl,{field:e,api:o}))))))),m)}function rc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function oc(e){let{api:o,app:i}=e;const a=oi(),[s]=na(i),[l]=ia(s),[c,u]=n({items:[],more:[]}),[d]=Pi(),[p,h]=sa(),[f,m]=n(0);return r((()=>{if(!h)return;const{width:e}=h,t=Math.floor(e)-72,n=Math.floor(t/120);m(n)}),[h]),r((()=>{if(!(i&&s&&l&&f))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&rc(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>rc(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(l);u((t=>{const n=e;if((()=>{const e=d.get(i.id);return e&&"njsListbox"===e.genericType})()&&n.length+1===t.items.length){const e=t.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:r}=e.selections[0];e.selections=[{qField:r}];const o=t.items.indexOf(e);n.splice(o,0,e)}let r=[];return f<n.length&&(r=n.splice(f-n.length)),{items:n,more:r}}))}),[i,s,l,o.isInModal(),f]),t.createElement(S,{ref:p,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},c.items.map((e=>t.createElement(S,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(Yl,{field:e,api:o}):t.createElement(Kl,{field:e,api:o})))),c.more.length>0&&t.createElement(S,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(nc,{items:c.more,api:o})))}var ic=e=>ca((e=>H(H({},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 ac=e=>ca((e=>H(H({},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));function sc(e){const[t]=na(e),[o]=ia(t),[i]=aa(e),[a,s]=n(null);return r((()=>{i&&t&&o&&((e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,o,i)}),[i,t,o]),r((()=>{if(!o)return;let e=!1,t=!1,n=!1;[o,...o.alternateStates||[]].forEach((r=>{e=e||r.qSelectionObject&&r.qSelectionObject.qBackCount>0,t=t||r.qSelectionObject&&r.qSelectionObject.qForwardCount>0,n=n||(r.qSelectionObject&&r.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[o]),[a,t,o]}function lc(e){let{api:n,app:r}=e;const{translator:o}=h(Oi),[i]=sc(r);return t.createElement(S,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(S,{item:!0},t.createElement(L,{style:{marginRight:"8px"},disabled:!i||!i.canGoBack,title:o.get("Navigate.Back"),onClick:()=>n.back(),size:"large"},t.createElement(ic,null))),t.createElement(S,{item:!0},t.createElement(L,{style:{marginRight:"8px"},disabled:!i||!i.canGoForward,title:o.get("Navigate.Forward"),onClick:()=>n.forward(),size:"large"},t.createElement(ac,null))),t.createElement(S,{item:!0},t.createElement(L,{disabled:!i||!i.canClear,title:o.get("Selection.ClearAll"),onClick:()=>n.clear(),size:"large"},t.createElement(Sl,null))))}const cc=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function uc(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function dc(){return cc.map(uc).join("")}function pc(e){let{app:n}=e;const r=oi(),[o]=Ni(n);return o?t.createElement(S,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(S,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(lc,{api:o,app:n})),t.createElement(S,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(oc,{api:o,app:n}))):null}function hc(e){let{element:n,app:r}=e;return f.createPortal(t.createElement(pc,{app:r}),n,dc())}var fc=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},mc=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}}(),gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yc=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},vc=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},bc=void 0;bc="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var xc=null,Ec=null,Sc=bc.clearTimeout,Cc=bc.setTimeout,wc=bc.cancelAnimationFrame||bc.mozCancelAnimationFrame||bc.webkitCancelAnimationFrame,Lc=bc.requestAnimationFrame||bc.mozRequestAnimationFrame||bc.webkitRequestAnimationFrame;function Ic(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){var 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)){var t=this;a(this),this.__resizeRAF__&&xc(this.__resizeRAF__),this.__resizeRAF__=Ec((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,u="";r="animationstart";var d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=document.createElement("fakeelement");if(void 0!==h.style.animationName&&(c=!0),!1===c)for(var f=0;f<d.length;f++)if(void 0!==h.style[d[f]+"AnimationName"]){u="-"+d[f].toLowerCase()+"-",r=p[f],c=!0;break}t="@"+u+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=u+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){var u=i.ownerDocument,d=bc.getComputedStyle(i);d&&"static"===d.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var 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)}}(u),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=u.createElement("div")).className="resize-triggers";var p=u.createElement("div");p.className="expand-trigger",p.appendChild(u.createElement("div"));var h=u.createElement("div");h.className="contract-trigger",i.__resizeTriggers__.appendChild(p),i.__resizeTriggers__.appendChild(h),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==wc||null==Lc?(xc=Sc,Ec=function(e){return Cc(e,20)}):(xc=function(e){var t=vc(e,2),n=t[0],r=t[1];wc(n),Sc(r)},Ec=function(e){var t=Lc((function(){Sc(n),e()})),n=Cc((function(){wc(t),e()}),20);return[t,n]});var Oc=function(e){function t(){var e,n,r;fc(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=yc(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,p=i-u-d,h=a-l-c;(!t&&r.state.height!==p||!n&&r.state.width!==h)&&(r.setState({height:i-u-d,width:a-l-c}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},yc(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,u),mc(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=Ic(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,s=a.height,l=a.width,c={overflow:"visible"},u={},d=!1;return r||(0===s&&(d=!0),c.height=0,u.height=s),o||(0===l&&(d=!0),c.width=0,u.width=l),p("div",{className:n,ref:this._setRef,style:gc({},c,i)},!d&&t(u))}}]),t}();Oc.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var Rc=e=>ca((e=>H(H({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));const kc="ListBoxInline",qc={listBoxHeader:"".concat(kc,"-listBoxHeader"),screenReaderOnly:"".concat(kc,"-screenReaderOnly"),listboxWrapper:"".concat(kc,"-listboxWrapper")},_c=si(S,{shouldForwardProp:e=>!["containerPadding","hasIcon"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,hasIcon:i}=e;return{backgroundColor:null!==(t=null===(n=r.listBox)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:r.palette.background.default,["& .".concat(qc.listBoxHeader)]:{alignSelf:"center",display:"flex",width:"calc(100% - ".concat(i?28:0,"px)")},["& .".concat(qc.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(qc.listboxWrapper)]:{padding:o},"&:focus:not(:hover)":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}}})),Tc=si(b)((e=>{var t,n,r,o,i,a,s,l,c,u,d,p;let{theme:h}=e;return{color:null===(t=h.listBox)||void 0===t||null===(n=t.title)||void 0===n||null===(r=n.main)||void 0===r?void 0:r.color,fontSize:null===(o=h.listBox)||void 0===o||null===(i=o.title)||void 0===i||null===(a=i.main)||void 0===a?void 0:a.fontSize,fontFamily:null===(s=h.listBox)||void 0===s||null===(l=s.title)||void 0===l||null===(c=l.main)||void 0===c?void 0:c.fontFamily,fontWeight:(null===(u=h.listBox)||void 0===u||null===(d=u.title)||void 0===d||null===(p=d.main)||void 0===p?void 0:p.fontWeight)||"bold"}}));const Dc=t.memo((function(e){var o;let{options:i,layout:a}=e;const{app:s,direction:c,frequencyMode:u,checkboxes:p,search:f=!0,focusSearch:m=!1,rangeSelect:g=!0,model:y,selections:v,update:b,fetchStart:x,selectDisabled:E=(()=>!1),postProcessPages:C,calculatePagesHeight:w,showGray:I=!0,scrollState:O,renderedCallback:R}=i;let{toolbar:k=!0}=i;const q=oi(),_=l((()=>{y.unlock("/qListObjectDef")}),[y]),{translator:T,keyboardNavigation:D,themeApi:A,constraints:P}=h(Oi);q.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(A);const M=d(),[N,z]=(()=>{const[e,t]=n({}),r=l((e=>{t({current:e})}),[t]);return[e,r]})(),[j,F]=n(!1),[W,B]=n(!1),[U,G]=n(!1),[V,K]=n(!1),[Z,X]=n({down:0,up:0,scrollPosition:""}),[J,Y]=n({start:0,stop:0}),[Q]=Ni(s),ee=d(null),[te]=n((()=>$l())),{handleKeyDown:ne,handleOnMouseEnter:re,handleOnMouseLeave:oe}=Ia({setKeyboardActive:G,hovering:V,setHovering:K,updateKeyScroll:e=>X((t=>H(H({},t),e))),containerRef:M,currentScrollIndex:J,app:s,appSelections:Q,constraints:P}),ie={enabled:D,active:U};void 0!==(null==a?void 0:a.toolbar)&&(k=a.toolbar);const ae=k&&""===(null==a?void 0:a.title);if(k=k&&""!==(null==a?void 0:a.title),r((()=>{const e=()=>{F(!0)},t=()=>{F(!1),"toggle"===f&&B(!1)};return v&&(v.isModal()||(v.on("activated",e),v.on("deactivated",t)),F(v.isActive())),()=>{v&&v.removeListener&&(v.removeListener("activated",e),v.removeListener("deactivated",t))}}),[v,k]),r((()=>{if(N&&N.current&&(f&&m||"toggle"===f&&W)){const e=N.current.querySelector("input");e&&e.focus()}}),[N&&N.current,W,f,m]),!y||!a||!T)return null;const se=!0===a.qListObject.qDimensionInfo.qLocked,le="rtl"===c,ce="H"===a.qListObject.qDimensionInfo.qGrouping,ue=ml({layout:a,model:y,translator:T,selectionState:te}),{wildCardSearch:de,searchEnabled:pe,layoutOptions:he={}}=a,fe=(!0===f||"toggle"===f&&W)&&!E()&&!1!==pe,me=null!==(o=he.dense)&&void 0!==o&&o,ge=k?49+(fe?me?27:40:0)+(me?39:49):0,ye=()=>{B(!W)},ve=()=>{if("toggle"===f)ye();else{const e=N.current.querySelector("input");null==e||e.focus()}},be=e=>function(e){let{isPopover:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,selections:a}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:a,onConfirm:()=>{},onCancel:()=>{}}}}({isPopover:e,showToolbar:j,containerRef:M,isLocked:se,listboxSelectionToolbarItems:ue,selections:v}),xe=fe&&"toggle"===f,Ee=!1!==pe&&"toggle"===f&&!(null!=P&&P.active),Se=se||Ee,Ce=Se||ce,we=(Se?28:0)+(ce?19:0),Le=9-(Se?7:0),Ie=le?9-(Ce?7:0):0;let Oe;return"grid"===(null==he?void 0:he.dataLayout)&&(Oe="row"===he.layoutOrder?"2px 4px":"2px 6px 2px 4px"),t.createElement(t.Fragment,null,ae&&t.createElement(Pl,$({direction:c},be(!0))),t.createElement(_c,{className:"listbox-container",container:!0,tabIndex:ie.enabled&&!ie.active?0:-1,direction:"column",gap:0,containerPadding:Oe,style:{height:"100%",minHeight:"".concat(ge,"px"),flexFlow:"column nowrap"},onKeyDown:ne,onMouseEnter:re,onMouseLeave:oe,ref:M,hasIcon:Ce},k&&t.createElement(S,{item:!0,container:!0,style:{padding:q.spacing(1),paddingLeft:"".concat(Le,"px"),paddingRight:"".concat(Ie,"px")},sx:{flexDirection:le?"row-reverse":"row"},wrap:"nowrap"},t.createElement(S,{item:!0,container:!0,height:32,sx:{flexDirection:le?"row-reverse":"row"},wrap:"nowrap"},Ce&&t.createElement(S,{item:!0,sx:{display:"flex",alignItems:"center",width:we}},se?t.createElement(L,{title:T.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:_,disabled:E(),size:"large"},t.createElement(da,{disableRipple:!0,style:{fontSize:"12px"}})):Ee&&t.createElement(L,{onClick:ye,tabIndex:-1,title:T.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(Ml,{style:{fontSize:"12px"}})),ce&&t.createElement(Rc,{tabIndex:-1,title:T.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),t.createElement(S,{item:!0,sx:{justifyContent:le?"flex-end":"flex-start"},className:qc.listBoxHeader},t.createElement(Tc,{variant:"h6",noWrap:!0,ref:ee,title:a.title},a.title))),t.createElement(S,{item:!0,xs:!0}),t.createElement(S,{item:!0},t.createElement(Pl,$({direction:c},be(function(e){var t,n,r,o,i,a;let{containerRef:s,titleRef:l,iconsWidth:c}=e;return!!((null!==(t=null==s||null===(n=s.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)<(null!==(r=null==l||null===(o=l.current)||void 0===o?void 0:o.clientWidth)&&void 0!==r?r:0)+c+16+128|(null==l||null===(i=l.current)||void 0===i?void 0:i.scrollWidth)>(null==l||null===(a=l.current)||void 0===a?void 0:a.offsetWidth))}({containerRef:M,titleRef:ee,iconsWidth:we})))))),t.createElement(S,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":T.get("Listbox.ResultFilterLabel")},t.createElement(S,{item:!0,ref:z},t.createElement("div",{className:qc.screenReaderOnly},T.get("Listbox.Search.ScreenReaderInstructions")),t.createElement(Fl,{selections:v,selectionState:te,model:y,dense:me,keyboard:ie,visible:fe,search:f,autoFocus:xe,wildCardSearch:de,searchEnabled:pe,direction:c,hide:Ee&&ye})),t.createElement(S,{item:!0,xs:!0,className:qc.listboxWrapper},t.createElement("div",{className:qc.screenReaderOnly},T.get("Listbox.ScreenReaderInstructions")),t.createElement(Oc,null,(e=>{let{height:n,width:r}=e;return t.createElement(ul,{model:y,app:s,constraints:P,layout:a,selections:v,selectionState:te,direction:c,frequencyMode:u,rangeSelect:g,checkboxes:p,height:n,width:r,update:b,fetchStart:x,postProcessPages:C,calculatePagesHeight:w,selectDisabled:E,keyboard:ie,showGray:I,scrollState:O,keyScroll:{state:Z,reset:()=>X({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:J,set:Y},renderedCallback:R,onCtrlF:ve})}))))))}));function Ac(e){let{options:n={}}=e;const{model:r}=n,[o]=ia(r);return t.createElement(Dc,{options:n,layout:o})}const Pc=["__DO_NOT_USE__"],Mc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=G(e,Pc),r={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1},o=H(H(H({},n),r),t);return o};function Nc(e){let{app:o,fieldIdentifier:a,qId:s,stateName:l,element:c,options:u,renderedCallback:p}=e;const{isExistingObject:h,hasExternalSelectionsApi:f}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:s,options:u}),[m,g]=n(0);r((()=>{if(m)throw new Error("Source or selection Api can not change after a listbox has been mounted");g(m+1)}),[h,f]);const y=h?function(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=Yi(),{sessionModel:c}=i,u=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],d=Object.keys(i).filter((e=>u.includes(e)));if(d.length)throw new Error('Option "'.concat(d.join(", "),'" is not applicable for existing objects.'));return r((()=>{c?s(c):async function(){const e=l.get(o);if(e)s(e);else{const e=await t.getObject(o);l.set(e.id,e),e.once("closed",(()=>{l.clear(e.id)})),s(e)}}()}),[]),a}({app:o,qId:s,options:u}):function(e){var t;let{app:o,fieldIdentifier:i,stateName:a,options:s={}}=e;const[l,c]=n(""),[u,p]=n(!0),[h,f]=n(),[m,g]=n(),y=null!==(t=s.title)&&void 0!==t?t:m;r((()=>{const e=s.histogram||"N"!==s.frequencyMode;i.qLibraryId&&e?async function(){try{const e=await o.getDimension(i.qLibraryId),t=await e.getLayout();g(t.qDim.title),"N"===t.qDim.qGrouping?c(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):c({multiFieldDim:!0}),p(!1)}catch(e){throw p(!1),c({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(p(!1),g(i))}),[]);const{dense:v,checkboxes:b,listLayout:x,properties:E={}}=s;let{frequencyMode:S,histogram:C=!1}=s;switch(l&&l.failedToFetchFieldDef&&(C=!1,S="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(S):S="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(S):S="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(S):S="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(S):S="R";break;default:S="N"}const w={dense:v};"horizontal"===x&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const L=d();L.current||(L.current=dc());const I={qInfo:{qType:"njsListbox",qId:L.current},qListObjectDef:{qStateName:a,qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:C&&"N"===S?"V":S,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:C,checkboxes:b,layoutOptions:w,title:y};let O;if(Ue(!0,I,E),i.qLibraryId?(I.qListObjectDef.qLibraryId=i.qLibraryId,O=i.qLibraryId):(I.qListObjectDef.qDef.qFieldDefs=[i],O=i),"P"!==S&&C)if(null!=l&&l.multiFieldDim)I.frequencyMax="fetch";else{const e=i.qLibraryId?l:O;I.frequencyMax={qValueExpression:sl(e)}}const[R]=ea(I,u?null:o,O,a);return r((()=>{R&&f(R)}),[R]),h}({app:o,fieldIdentifier:a,stateName:l,options:u}),v=d(c),b=f?u.selectionsApi:Ul(o,y,[v,".njs-action-toolbar-more",".njs-action-toolbar-popover"],u)[0],x=i((()=>H(H({},u),{},{selections:b,model:y,app:o,renderedCallback:p})),[u,b,y,o]);return b&&y?t.createElement(Ac,{options:x}):null}function zc(e){let{element:n,app:r,fieldIdentifier:o,qId:i,stateName:a="$",options:s={},renderedCallback:l}=e;return f.createPortal(t.createElement(Nc,{app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,options:s,renderedCallback:l}),n,dc())}const jc={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},Fc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=H({},jc);return Ue(!0,t,e),t};function Wc(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(Vl,{show:l,app:r,alignTo:{current:a},anchorOrigin:s.anchorOrigin,transformOrigin:s.transformOrigin,close:()=>{c(!1),s.onPopoverClose&&s.onPopoverClose()},fieldName:o,stateName:i,autoFocus:s.autoFocus})}function Bc(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Hc(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}function Uc(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const o=t.qae.data.targets[0];if(!o)return;const{propertyPath:i}=o,a=i.split("/");let s=n;for(let e=0;e<a.length;e++){const t=a[e];s=t?s[t]:s}const l=function(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?{qDef:{qFieldDefs:[e]}}:H(H({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||dc(),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),Bc(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 Hc(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?{qDef:{qDef:e}}:H(H({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||dc(),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),Bc(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];Hc(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}({dc:s,def:o,properties:n});r.forEach((e=>{const t=function(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"}(e);"measure"===t?l.addMeasure(e):l.addDimension(e)}))}var $c=(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},Gc=(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]},Vc=e=>0===Object.keys(e).length&&e.constructor===Object;var Kc={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}};const Zc=2**53-1;function Xc(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Jc(e,t){const n=Ue(!0,{},t,e);return $c(n,"qOtherTotalSpec.qOtherCounted")||Gc(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),$c(n,"qOtherTotalSpec.qOtherLimit")||Gc(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Yc(e,t){return Ue(!0,{},t,e)}function Qc(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var eu={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===$c(e,t)&&Gc(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Xc,importCommonProperties:function(e,t,n){const r="masterobject"===$c(t,"properties.qInfo.qType")?"masterobject":$c(n,"qInfo.qType");Gc(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:Jc,createDefaultMeasure:Yc,resolveValue:Qc,getHypercubePath:function(e){const t=$c(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?(Kc.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Kc.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=Ue(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?Gc(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||Xc(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ue(!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=Qc(i.max,r.dimensions.length,Zc),s=Qc(i.min,r.dimensions.length,0);return{maxDimensions:Qc(o.max,a,Zc),minDimensions:Qc(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(Jc(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Jc(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Jc(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(Jc(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Jc(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(Yc(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Yc(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Yc(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(Yc(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Yc(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=$c(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=$c(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var tu={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=$c(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();Kc.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&&(eu.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!Vc(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=eu.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=$c(n,i||"").qHyperCubeDef,c=$c(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h}=eu.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=eu.getDefaultDimension(),defaultMeasure:m=eu.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,eu.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h})&&eu.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h,newHyperCubeDef:c}),eu.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:f}),eu.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:h,newHyperCubeDef:c,defaultMeasure:m}),eu.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),eu.copyPropertyIfExist("qMaxStackedCells",l,c),eu.copyPropertyIfExist("qNoOfLeftDims",l,c),eu.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),eu.copyPropertyOrSetDefault("qMode",l,c,"S"),eu.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),eu.copyPropertyOrSetDefault("qSortbyYValue",l,c),eu.copyPropertyOrSetDefault("qIndentMode",l,c),eu.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),eu.importCommonProperties(s,t,n),eu.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),eu.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const nu=e=>$c(e,"data.targets.0.propertyPath"),ru=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return tu.exportProperties})(nu(e))},ou=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return tu.importProperties})(nu(e))},iu=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const i=await n.getFullPropertyTree(),a=r.current.getQae(),s=ru(a),l=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}),c=l.qae;return ou(c)({exportFormat:s({propertyTree:i,hypercubePath:eu.getHypercubePath(a)}),initialProperties:H({qInfo:{qType:o},visualization:o},$c(c,"properties.initial",{})),dataDefinition:$c(c,"data.targets.0.",{}),hypercubePath:eu.getHypercubePath(c)})},au={hypercube:tu};var su=e=>ca((e=>H(H({},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 lu(e){let{d:n}=e;const r=oi();let o="inherit",i=r.palette.success.main;n.missing?i=r.palette.warning.main:n.error&&(o="error",i=r.palette.error.main);const a={color:i},s=t.createElement(b,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement(N,null,n.missing||n.error?t.createElement(su,{style:a}):t.createElement(wa,{style:a})));return t.createElement(S,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(S,{item:!0},s),t.createElement(S,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(b,{noWrap:!0,component:"p"},t.createElement(b,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(b,{component:"span"}," "),t.createElement(b,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function cu(e){let{data:n}=e;const r=oi();return t.createElement(S,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(lu,{d:e,key:n})));return o.length>0&&t.createElement(S,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(b,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function uu(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(S,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(S,{item:!0},t.createElement(su,{style:{fontSize:"38px"}})),t.createElement(S,{item:!0},t.createElement(b,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(S,{item:!0},t.createElement(b,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(cu,{data:o}))}const du=["size"],pu="Progress",hu={root:"".concat(pu,"-root"),front:"".concat(pu,"-front"),back:"".concat(pu,"-back")},fu=si("div")((e=>{let{theme:t}=e;return{["&.".concat(hu.root)]:{position:"relative",display:"inline-block"},["& .".concat(hu.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(hu.back)]:{color:t.palette.divider}}})),mu={small:16,medium:32,large:64,xlarge:128};function gu(e){let{size:n="medium"}=e,r=G(e,du);const o=mu[n];return t.createElement(fu,{className:hu.root},t.createElement(z,$({variant:"determinate",value:100,className:hu.back,size:o,thickness:3},r)),t.createElement(z,$({variant:"indeterminate",disableShrink:!0,className:hu.front,size:o,thickness:3},r)))}const yu=["cancel","translator"],vu=["retry","translator"],bu={stripes:"".concat("LongRunningQuery","-stripes")},xu=si(S)((()=>({["& .".concat(bu.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 Eu(e){let{cancel:n,translator:r}=e,o=G(e,yu);return t.createElement(t.Fragment,null,t.createElement(xu,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(S,{item:!0},t.createElement(gu,null)),t.createElement(S,{item:!0},t.createElement(b,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(S,$({item:!0},o),t.createElement(M,{variant:"contained",onClick:n},r.get("Cancel"))))}function Su(e){let{retry:n,translator:r}=e,o=G(e,vu);return t.createElement(t.Fragment,null,t.createElement(S,{item:!0},t.createElement(su,{style:{fontSize:"38px"}})),t.createElement(S,{item:!0},t.createElement(b,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(S,{item:!0},t.createElement(M,$({variant:"contained",onClick:n},o),r.get("Retry"))))}function Cu(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=h(Oi);return t.createElement(S,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:bu.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(Eu,{cancel:o.cancel,translator:i,className:bu.cancel}),r&&t.createElement(Su,{retry:o.retry,translator:i,className:bu.retry}))}function wu(){return t.createElement(S,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(gu,{size:"large"}))}const Lu="Header",Iu={containerStyle:"".concat(Lu,"-containerStyle"),containerTitleStyle:"".concat(Lu,"-containerTitleStyle")},Ou=si(S)((e=>{let{theme:t}=e;return{["&.".concat(Iu.containerStyle)]:{flexGrow:0},["&.".concat(Iu.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Ru="njs-cell-title",ku="njs-cell-sub-title";function qu(e){let{layout:o,sn:i,anchorEl:a,hovering:s,focusHandler:l}=e;const c=o.showTitles&&!!o.title,u=o.showTitles&&!!o.subtitle,d=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[p,h]=n([]),[f,m]=sa(),[g,y]=n(!1);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{h([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]),r((()=>{if(!m)return;const{width:e}=m;y(e<221)}),[m]);const v=c||u,x=[Iu.containerStyle,...v?[Iu.containerTitleStyle]:[]],E=(s||d)&&(g||!v),C=v&&!E&&!g,w=t.createElement(Pl,{show:C,selections:{show:d,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:p,popover:{show:E,anchorEl:a},focusHandler:l});return t.createElement(Ou,{ref:f,item:!0,container:!0,wrap:"nowrap",className:x.join(" ")},t.createElement(S,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(S,{container:!0,wrap:"nowrap",direction:"column"},c&&t.createElement(b,{variant:"h6",noWrap:!0,className:Ru},o.title),u&&t.createElement(b,{variant:"body2",noWrap:!0,className:ku},o.subtitle))),t.createElement(S,{item:!0},w))}const _u={itemStyle:"".concat("Footer","-itemStyle")},Tu=si(S)((e=>{let{theme:t}=e;return{["& .".concat(_u.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),Du="njs-cell-footer";function Au(e){let{layout:n}=e;return n&&n.showTitles&&n.footnote?t.createElement(Tu,{container:!0},t.createElement(S,{item:!0,className:_u.itemStyle},t.createElement(b,{noWrap:!0,variant:"body2",className:Du},n.footnote))):null}class Pu{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 Mu="njs-viz";function Nu(e){let{sn:o,snOptions:i,snPlugins:a,layout:s,appLayout:c,halo:u}=e;const{component:d}=o,{theme:p,language:f,constraints:m,keyboardNavigation:g}=h(Oi),[y]=n((()=>new Pu)),[v,b]=n(!1),[x,E]=n(0),[S,C,w]=sa(),[L,I]=n(null),O=l((e=>{e&&I(e)}),[]);return r((()=>{if(L)return d.created({options:i}),d.mounted(L),b(!0),()=>{y.stop(),d.willUnmount()}}),[L,d]),r((()=>{v&&L&&C&&(!d.isHooked&&s&&s.qSelectionInfo&&s.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),u.app&&u.app.session&&e.push("fetch"),Promise.resolve(d.render({layout:s,options:i,plugins:a,embed:u.public.nebbie,context:H({constraints:m,theme:u.public.theme,appLayout:c,keyboardNavigation:g},d.isHooked?{}:{logicalSize:o.logicalSize({layout:s}),localeInfo:(c||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===x&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),E(x+1))}))})))}),[C,i,a,L,w,s,c,p,f,m,v,g]),t.createElement("div",{ref:S,"data-render-count":x,style:{position:"relative",height:"100%"},className:Mu},t.createElement("div",{ref:O,style:{position:"absolute",width:"100%",height:"100%"}}))}const zu={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},ju={"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 Fu(e,t){return t?function(e){var t;let n,r,o,i;if(null!=e&&null!==(t=e.session)&&void 0!==t&&t.config)return n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host}(e)+t:void 0}const Wu=(e,t)=>{const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode||"media"===e.useImage)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=Fu(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=ju[e.bgImage.position]),n}(e),s=function(e){var t;let n=zu.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=zu[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:s}:void 0}},Bu=(e,t)=>{const n=null==e?void 0:e.bgColor;if(n&&t)return n.useExpression?t.validateColor(n.colorExpression):n.color&&"none"!==n.color.color?t.getColorPickerColor(n.color,!0):void 0},Hu="njs-cell",Uu=(e,t)=>{switch(t.type){case"LOADING":return H(H({},e),{},{loading:!0});case"LOADED":return H(H({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return H(H({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return H(H({},e),{},{longRunningQuery:!0});case"ERROR":return H(H({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function $u(e){let{delay:o=750}=e;const[i,a]=n(!1);return r((()=>{const e=setTimeout((()=>a(!0)),o);return()=>clearTimeout(e)}),[]),i?t.createElement(wu,null):null}const Gu=e=>!e.qError||7005===e.qError.qErrorCode,Vu=(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}})),Ku=e=>e&&(Array.isArray(e)?e:[e])||[],Zu=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:Vu(o,Ku(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Vu(i,Ku(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Xu=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(),h=u.resolveLayout(n),f=Ku(h.qDimensionInfo||h.qItems).filter(Gu),m=Ku(h.qMeasureInfo).filter(Gu);if(o+=d,i+=p,(f.length<d||m.length<p)&&(r=!0),h.qError){a=!0,s=7005===h.qError.qErrorCode;const t=s&&h.qCalcCondMsg?h.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=Zu(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=u.filter((e=>!(e.missing||e.error))).length,f=e.get("Visualization.Incomplete.Dimensions",[h,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),y=[{title:f,descriptions:[...u]},{title:g,descriptions:[...d]}],v=l?c:y;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:v}]},Ju=o(((e,o)=>{let{halo:i,model:l,initialSnOptions:c,initialSnPlugins:u,initialError:p,onMount:f,currentId:m}=e;const{app:g,types:y}=i,{nebbie:v}=i.public,{disableCellPadding:b=!1}=i.context||{},{theme:x,translator:E,language:C,keyboardNavigation:L}=h(Oi),I=oi(),[O,R,k]=sa(),[q,_]=s(Uu,{loading:!1,loaded:!1,longRunningQuery:!1,error:(T=p)?{title:T.message}:null,sn:null,visualization:null});var T;const[D,{validating:A,canCancel:P,canRetry:M},N]=ia(l),[z]=aa(g),[j,F,W]=sa(),[B,U]=n(c),[$,G]=n(u),V="njs-cell-".concat(m),[K]=Ul(g,l,["#".concat(V),".njs-action-toolbar-popover"]),[Z,X]=n(!1),J=d({enter:null,leave:null}),[Y,Q]=n(void 0),[ee,te]=n(void 0),ne=d({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{Wl(ne.current)}),[]),r((()=>{const e=null!=D&&D.components?D.components.find((e=>"general"===e.key)):null;Q(Bu(e,i.public.theme)),te(Wu(e,i.app))}),[D,i.public.theme,i.app,x]),ne.current.blurCallback=e=>{i.root.toggleFocusOfCells(),e&&W&&W.focus()},ne.current.refocusContent=()=>{q.sn.component&&"function"==typeof q.sn.component.focus&&q.sn.component.focus()};r((()=>{if(p||!z||!D)return;if(q.visualization===D.visualization&&q.sn)return void(async e=>{const[t,n]=await Xu(E,D,e.generator.qae.data,l);_(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:q.sn,layout:D,model:l})})(q.sn);const e=y.getSupportedVersion(D.visualization,D.version);if(e)return(async(e,t)=>{_({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c}=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});return e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c})}catch(e){t({type:"ERROR",error:{title:e.message}})}})({dispatch:_,types:y,visualization:e,version:t,model:l,app:g,selections:K,nebbie:v,focusHandler:ne.current});n&&(_({type:"LOADED",sn:n,visualization:e}),f())})(D.visualization,e),()=>{};_({type:"ERROR",error:{title:"Could not find a version of '".concat(D.visualization,"' that supports current object version. Did you forget to register ").concat(D.visualization,"?")}})}),[y,q.sn,l,K,D,z,C]),r((()=>{if(!A)return;const e=setTimeout((()=>_({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[A]),a(o,(()=>({getQae:()=>q.sn.generator.qae,toggleFocus(e){"function"==typeof q.sn.component.focus&&(e?q.sn.component.focus():q.sn.component.blur())},setSnOptions:U,setSnPlugins:G,async takeSnapshot(){const{width:e,height:t}=R;let n=JSON.parse(JSON.stringify(D));return"function"==typeof q.sn.component.setSnapshotData&&(n=await q.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:E.language(),theme:I.name,appLayout:z,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof i.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return i.config.snapshot.capture(e)}})),[q.sn,F,R,D,I.name,z]);let re=null;return q.loading&&!q.longRunningQuery?re=t.createElement($u,null):q.error?re=t.createElement(uu,q.error):q.loaded&&(re=t.createElement(Nu,{key:D.visualization,sn:q.sn,halo:i,snOptions:B,snPlugins:$,layout:D,appLayout:z})),t.createElement(w,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Y||"unset",backgroundImage:ee&&ee.url?"url(".concat(ee.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:ee&&ee.size,backgroundPosition:ee&&ee.pos},elevation:0,square:!0,className:Hu,ref:O,id:V,onMouseEnter:()=>{J.current.leave&&clearTimeout(J.current.leave),J.enter||(J.current.enter=setTimeout((()=>{X(!0),J.current.enter=null}),250))},onMouseLeave:()=>{J.current.enter&&clearTimeout(J.current.enter),J.current.leave||(J.current.leave=setTimeout((()=>{X(!1),J.current.leave=null}),750))}},t.createElement(S,{container:!0,direction:"column",gap:0,style:H(H({position:"relative",width:"100%",height:"100%"},b?{}:{padding:I.spacing(1)}),q.longRunningQuery?{opacity:"0.3"}:{})},k&&D&&q.sn&&t.createElement(qu,{layout:D,sn:q.sn,anchorEl:k,hovering:Z,focusHandler:ne.current}," "),t.createElement(S,{tabIndex:L?0:-1,onKeyDown:L?e=>{["Enter"," ","Spacebar"].includes(e.key)&&i.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:j},re),t.createElement(Au,{layout:D})),q.longRunningQuery&&t.createElement(Cu,{canCancel:P,canRetry:M,api:N}))}));function Yu(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l}=e;const{root:c}=n,u=t.createRef(),d=dc(),p=f.createPortal(t.createElement(Ju,{ref:u,halo:n,model:o,currentId:d,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s}),r,d),h=()=>{c.remove(p),o.removeListener("closed",h)};return o.on("closed",h),c.add(p),c.addCell(d,u),[h,u]}function Qu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ed(e,t){return Qu(e)&&Qu(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function td(){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)?ed(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...td("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function nd(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 rd=()=>{};function od(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=rd,i=null,a=null,s=null;const l=new Promise((e=>{s=e}));let c={},u=[];const d=async e=>{a?(async()=>{await l,i.current.setSnOptions(H(H({},c),e))})():c=H(H({},c),e)},p=async e=>{nd(e),a?(async()=>{await l,i.current.setSnPlugins(e)})():u=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=rd},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await iu({halo:t,model:e,cellRef:i,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(r){if(a)throw new Error("Already mounted");return a=r,[o,i]=Yu({halo:t,element:r,model:e,initialSnOptions:c,initialSnPlugins:u,initialError:n,onMount:s}),l},async applyProperties(t){const n=td("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){d(e)},plugins(e){p(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>e}};return h}async function id(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=od({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}async function ad(e,t){let n,{type:r,version:o,fields:i,properties:a,options:s,plugins:l,element:c,extendProperties:u}=e,d={};try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(a,u);const n=await e.supernova();i&&Uc({sn:n,properties:d,fields:i}),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){n=e,d={qInfo:{qType:r},visualization:r}}const p=await t.app.createSessionObject(d);Qi.set(p.id,p);const h=(e=>{const t=Ji({type:"SET",value:e});return()=>{t(),Qi.clear(e.id)}})(p);return id(p,{options:s,plugins:l,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),h()}))}const sd="njs-sheet";function ld(e){let{model:o,halo:a,initialSnOptions:s,initialSnPlugins:l,initialError:c,onMount:u}=e;const{root:d}=a,[p]=ia(o),{theme:f}=h(Oi),[m,g]=n([]),[y,v]=n(void 0),[b,x]=n(void 0),[E,S]=n("");r((()=>{if(p){const e=JSON.stringify(p.cells);if(e===E)return;S(e);const n=async()=>{m.forEach((e=>{d.removeCell(e.currentId)}));const e=p.cells,n=await Promise.all(e.map((async e=>{let n;const r=new Promise((e=>{n=e})),o=m.find((t=>t.id===e.name));if(o)return o.bounds=e.bounds,delete o.mountedPromise,o;const i=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=Vi.get(a);s||(s=t.app.getObject(n),Vi.set(a,s));const l=await s;return Qi.set(a,l),id(l,{options:r,plugins:o,element:i},t)}({id:e.name},a);return{model:i.model,id:e.name,bounds:e.bounds,cellRef:t.createRef(),currentId:dc(),mounted:n,mountedPromise:r}})));n.forEach((e=>d.addCell(e.currentId,e.cellRef))),g(n)};n()}}),[p]);const C=i((()=>m?m.map((e=>function(e,n,r,o,i,a){const{x:s,y:l,width:c,height:u}=e.bounds;return t.createElement("div",{style:{left:"".concat(s,"%"),top:"".concat(l,"%"),width:"".concat(c,"%"),height:"".concat(u,"%"),position:"absolute"}},t.createElement(Ju,{ref:e.cellRef,halo:n,model:e.model,currentId:e.currentId,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a}))}(e,a,s,l,c,e.mounted))):[]),[m]);r((()=>{const e=null!=p&&p.components?p.components.find((e=>"general"===e.key)):null;v(Bu(e,a.public.theme)),x(Wu(e,a.app))}),[p,a.public.theme,a.app,f]);const w=!p||Number.isNaN(p.height)?"100%":"".concat(Number(p.height),"%"),L=m.map((e=>e.mountedPromise));return L.filter((e=>!!e)).length&&Promise.all(L).then((()=>{u()})),t.createElement("div",{className:sd,style:{width:"100%",height:w,position:"relative",backgroundColor:y,backgroundImage:b&&b.url?"url(".concat(b.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:b&&b.size,backgroundPosition:b&&b.pos}},C)}function cd(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l}=e;const{root:c}=n,u=t.createRef(),d=f.createPortal(t.createElement(ld,{ref:u,halo:n,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s}),r,o.id),p=()=>{c.remove(d),o.removeListener("closed",p)};return o.on("closed",p),c.add(d),[p,u]}const ud=()=>{};function dd(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=ud,i=null,a=null,s=null;const l=new Promise((e=>{s=e}));let c={},u=[];const d=async e=>{a?(async()=>{await l,i.current.setSnOptions(H(H({},c),e))})():c=H(H({},c),e)},p=async e=>{nd(e),a?(async()=>{await l,i.current.setSnPlugins(e)})():u=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=ud},__DO_NOT_USE__:{mount(r){if(a)throw new Error("Already mounted");return a=r,[o,i]=cd({halo:t,element:r,model:e,initialSnOptions:c,initialSnPlugins:u,initialError:n,onMount:s}),l},async applyProperties(t){const n=td("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){d(e)},plugins(e){p(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}async function pd(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=Vi.get(a);s||(s=t.app.getObject(n),Vi.set(a,s));const l=await s;return Qi.set(a,l),"sheet"===l.genericType?async function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=dd({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}(l,{options:r,plugins:o,element:i},t):id(l,{options:r,plugins:o,element:i},t)}function hd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const fd=Ue.bind(null,!0),md={},{isArray:gd}=Array;function yd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function vd(e){return void 0===e}function bd(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function xd(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]=vd(e[r||t])?i:e[t],e=e[r||t]})),e}function Ed(e,t){let n=!0;if(yd(e)&&yd(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Ed(e[r],t[r])||(n=!1)})),n);if(gd(e)&&gd(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Ed(e[n],t[n]))return!1;return!0}return e===t}md.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?fd({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Ed(i,a)||bd(t,o)||(vd(a)?r.push({op:"add",path:s,value:i}):yd(i)&&yd(a)?r=r.concat(md.generate(a,i,s)):gd(i)&&gd(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]&&vd(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(Ed(t,o))return r;if(!vd(t[0])&&vd(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(md.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=>{vd(t[o])&&!bd(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},md.apply=function(e,t){t.forEach((t=>{let n=xd(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(gd(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(gd(o)&&gd(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(yd(o)&&yd(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!bd(a,e)&&delete a[e]})),fd(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=xd(e,t.from);gd(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(gd(n)?n.splice(+r,1):delete n[r]);var a}))},md.clone=function(e){return fd({},e)},md.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},md.updateObject=function(e,t){Object.keys(e).length?md.apply(e,md.generate(e,t)):fd(e,t)};const Sd=e=>t=>{const n=(r=H(H({},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(ee.prototype).forEach((e=>{r[e]=ee.prototype[e]})),ee.init(r),r);var r;return n};let Cd,wd;function Ld(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 Id(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}}}function Od(e){kd(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 Rd(e){if(e.__hooks.obsolete)return Promise.resolve();wd=-1,Cd=e,Cd.__hooks.initiated&&Cd.__hooks.list.length;try{Cd.fn.call(null)}catch(e){console.error(e)}Cd.__hooks.initiated=!0;const t=Cd.__hooks;return Dd(Cd),wd=void 0,Cd=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){kd(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){kd(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 kd(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 qd(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 _d(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Td(e){return e.__hooks.imperativeHandle}function Dd(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Ad(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Dd(e))}function Pd(e){if(void 0===Cd)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Cd.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Md(e){Pd(++wd);return Cd.context[e]}function Nd(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function zd(e){return{__hooked:!0,fn:e,initiate:Id,run:Rd,teardown:Od,runSnaps:qd,runMenu:_d,focus:pp,blur:hp,observeActions:Ad,getImperativeHandle:Td,updateRectOnNextRun:Nd}}function jd(e){const t=Pd(++wd);if(!t.value){t.component=Cd;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,Rd(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Fd(e,t){const n=Pd(++wd);Ld(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Cd.__hooks.pendingEffects.indexOf(n)&&Cd.__hooks.pendingEffects.push(n))}function Wd(e,t){const n=Pd(++wd);Ld(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Cd.__hooks.pendingLayoutEffects.push(n))}function Bd(e,t){const n=Pd(++wd);return Ld(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Hd(e,t){const[n,r]=jd((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Pd(++wd);return o.component||(o.component=Cd),Wd((()=>{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]}function Ud(){return Md("element")}function $d(){const e=Ud(),t=Cd.__hooks.resizer,[n,r]=jd((()=>{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()),Wd((()=>{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}function Gd(){return Md("layout")}function Vd(){const e=Md("layout"),[t]=jd({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Kd(){return Md("appLayout")}function Zd(){const e=Md("model");return e&&e.session?e:void 0}function Xd(){const e=Md("app");return e&&e.session?e:void 0}function Jd(){const e=Md("global");return e&&e.session?e:void 0}function Yd(){return Md("selections")}function Qd(){return Md("theme")}function ep(){return Md("nebbie")}function tp(){return Md("translator")}function np(){return Md("deviceType")}function rp(){return Md("plugins")}function op(e,t){const[n]=jd({action(){n._config.action.call(null)}});return n.component||(n.component=Cd,Cd.__hooks.actions.list.push(n)),Bd((()=>{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}function ip(){return Md("constraints")}function ap(){return Md("options")}function sp(e,t){const n=Pd(++wd);if(n.imperative||(n.imperative=!0),Ld(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Cd.__hooks.imperativeHandle=r}}function lp(e){const t=Pd(++wd);t.value||(t.value=1,Cd.__hooks.snaps.push(t)),t.fn=e}function cp(e){const t=Pd(++wd);t.value||(t.value=1,Cd.__hooks.menus.push(t)),t.fn=e}function up(){Pd(++wd);const e=Cd.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function dp(){const e=Md("keyboardNavigation"),t=Md("focusHandler");if(!Cd.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(hp(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Cd);Cd.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),pp(this))}.bind(Cd);Cd.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Cd);Cd.__hooks.accessibility.focusSelectionFunction=r}const n=Cd.__hooks.accessibility.focusFunction,r=Cd.__hooks.accessibility.exitFunction,o=Cd.__hooks.accessibility.focusSelectionFunction,[i,a]=jd({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Cd.__hooks.accessibility.setter=a,Cd.__hooks.accessibility.enabled=e,Fd((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function pp(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 hp(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 fp={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},mp=Object.keys(fp);function gp(e,t){const n=H({},fp);var r;r=n,Object.keys(ee.prototype).forEach((e=>{r[e]=ee.prototype[e]})),ee.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==mp.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const i=function(e){let{sn:t,component:n}=e;const r={},o=[],i=Sd(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:o}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:a,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}function yp(e,t,n){"function"==typeof e.component&&(e.component=zd(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"],s={};t.model&&t.model.session||(s.select=!0);const l={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(l,{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(H(H({},r[e]),s))),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=l.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){return e.component.runMenu(this,t,n)},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(l.context[e])})),i.themeName=l.context.theme?l.context.theme.name():void 0,i.language=l.context.translator?l.context.translator.language():void 0,Object.assign(l,{selections:t.selections}),[l,null]}(e,t,n):gp(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];return e.qae.properties.onChange.call({model:t.model},...r),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=md.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));md.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=md.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.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 vp=()=>{};function bp(e,t){return void 0===e?()=>t:()=>e}function xp(e){const t=e||{};return{min:"function"==typeof t.min?t.min:bp(t.min,0),max:"function"==typeof t.max?t.max:bp(t.max,1e3),added:t.added||t.add||vp,description:t.description||vp,moved:t.moved||t.move||vp,removed:t.removed||t.remove||vp,replaced:t.replaced||t.replace||vp,isDefined:()=>!!e}}function Ep(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=>((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})(e,n,{}),dimensions:xp(e.dimensions),measures:xp(e.measures)}}function Sp(){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);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(Ep)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function Cp(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Sp(n.qae),component:n.component||{},create:e=>yp(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var wp={},Lp={get exports(){return wp},set exports(e){wp=e}};!function(e,t){var n;t=Lp.exports=d,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],a=t.tokens={},s=0;function l(e){a[e]=s++}l("NUMERICIDENTIFIER"),i[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",l("NUMERICIDENTIFIERLOOSE"),i[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",l("NONNUMERICIDENTIFIER"),i[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",l("MAINVERSION"),i[a.MAINVERSION]="("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")",l("MAINVERSIONLOOSE"),i[a.MAINVERSIONLOOSE]="("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")",l("PRERELEASEIDENTIFIER"),i[a.PRERELEASEIDENTIFIER]="(?:"+i[a.NUMERICIDENTIFIER]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASEIDENTIFIERLOOSE"),i[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[a.NUMERICIDENTIFIERLOOSE]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASE"),i[a.PRERELEASE]="(?:-("+i[a.PRERELEASEIDENTIFIER]+"(?:\\."+i[a.PRERELEASEIDENTIFIER]+")*))",l("PRERELEASELOOSE"),i[a.PRERELEASELOOSE]="(?:-?("+i[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[a.PRERELEASEIDENTIFIERLOOSE]+")*))",l("BUILDIDENTIFIER"),i[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",l("BUILD"),i[a.BUILD]="(?:\\+("+i[a.BUILDIDENTIFIER]+"(?:\\."+i[a.BUILDIDENTIFIER]+")*))",l("FULL"),l("FULLPLAIN"),i[a.FULLPLAIN]="v?"+i[a.MAINVERSION]+i[a.PRERELEASE]+"?"+i[a.BUILD]+"?",i[a.FULL]="^"+i[a.FULLPLAIN]+"$",l("LOOSEPLAIN"),i[a.LOOSEPLAIN]="[v=\\s]*"+i[a.MAINVERSIONLOOSE]+i[a.PRERELEASELOOSE]+"?"+i[a.BUILD]+"?",l("LOOSE"),i[a.LOOSE]="^"+i[a.LOOSEPLAIN]+"$",l("GTLT"),i[a.GTLT]="((?:<|>)?=?)",l("XRANGEIDENTIFIERLOOSE"),i[a.XRANGEIDENTIFIERLOOSE]=i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),i[a.XRANGEIDENTIFIER]=i[a.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),i[a.XRANGEPLAIN]="[v=\\s]*("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:"+i[a.PRERELEASE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),i[a.XRANGEPLAINLOOSE]="[v=\\s]*("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:"+i[a.PRERELEASELOOSE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGE"),i[a.XRANGE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAIN]+"$",l("XRANGELOOSE"),i[a.XRANGELOOSE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAINLOOSE]+"$",l("COERCE"),i[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),o[a.COERCERTL]=new RegExp(i[a.COERCE],"g"),l("LONETILDE"),i[a.LONETILDE]="(?:~>?)",l("TILDETRIM"),i[a.TILDETRIM]="(\\s*)"+i[a.LONETILDE]+"\\s+",o[a.TILDETRIM]=new RegExp(i[a.TILDETRIM],"g");l("TILDE"),i[a.TILDE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAIN]+"$",l("TILDELOOSE"),i[a.TILDELOOSE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAINLOOSE]+"$",l("LONECARET"),i[a.LONECARET]="(?:\\^)",l("CARETTRIM"),i[a.CARETTRIM]="(\\s*)"+i[a.LONECARET]+"\\s+",o[a.CARETTRIM]=new RegExp(i[a.CARETTRIM],"g");l("CARET"),i[a.CARET]="^"+i[a.LONECARET]+i[a.XRANGEPLAIN]+"$",l("CARETLOOSE"),i[a.CARETLOOSE]="^"+i[a.LONECARET]+i[a.XRANGEPLAINLOOSE]+"$",l("COMPARATORLOOSE"),i[a.COMPARATORLOOSE]="^"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+")$|^$",l("COMPARATOR"),i[a.COMPARATOR]="^"+i[a.GTLT]+"\\s*("+i[a.FULLPLAIN]+")$|^$",l("COMPARATORTRIM"),i[a.COMPARATORTRIM]="(\\s*)"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+"|"+i[a.XRANGEPLAIN]+")",o[a.COMPARATORTRIM]=new RegExp(i[a.COMPARATORTRIM],"g");l("HYPHENRANGE"),i[a.HYPHENRANGE]="^\\s*("+i[a.XRANGEPLAIN]+")\\s+-\\s+("+i[a.XRANGEPLAIN]+")\\s*$",l("HYPHENRANGELOOSE"),i[a.HYPHENRANGELOOSE]="^\\s*("+i[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[a.XRANGEPLAINLOOSE]+")\\s*$",l("STAR"),i[a.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c<s;c++)n(c,i[c]),o[c]||(o[c]=new RegExp(i[c]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[a.LOOSE]:o[a.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=u,t.valid=function(e,t){var n=u(e,t);return n?n.version:null},t.clean=function(e,t){var n=u(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,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 h(r,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,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 h(r,o)}while(++t)},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);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":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(y(e,t))return null;var n=u(e),r=u(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=h;var p=/^[0-9]+$/;function h(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function f(e,t,n){return new d(e,n).compare(new d(t,n))}function m(e,t,n){return f(e,t,n)>0}function g(e,t,n){return f(e,t,n)<0}function y(e,t,n){return 0===f(e,t,n)}function v(e,t,n){return 0!==f(e,t,n)}function b(e,t,n){return f(e,t,n)>=0}function x(e,t,n){return f(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return y(e,n,r);case"!=":return v(e,n,r);case">":return m(e,n,r);case">=":return b(e,n,r);case"<":return g(e,n,r);case"<=":return x(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function S(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof S){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof S))return new S(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return h(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=f,t.compareLoose=function(e,t){return f(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),o=new d(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return f(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=y,t.neq=v,t.gte=b,t.lte=x,t.cmp=E,t.Comparator=S;var C={};function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new w(e.raw,t);if(e instanceof S)return new w(e.value,t);if(!(this instanceof w))return new w(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function L(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function I(e){return!e||"x"===e.toLowerCase()||"*"===e}function O(e,t,n,r,o,i,a,s,l,c,u,d,p){return((t=I(n)?"":I(r)?">="+n+".0.0":I(o)?">="+n+"."+r+".0":">="+t)+" "+(s=I(l)?"":I(c)?"<"+(+l+1)+".0.0":I(u)?"<"+l+"."+(+c+1)+".0":d?"<="+l+"."+c+"."+u+"-"+d:"<="+s)).trim()}function R(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function k(e,t,n){try{t=new w(t,n)}catch(e){return!1}return t.test(e)}function q(e,t,n,r){var o,i,a,s,l;switch(e=new d(e,r),t=new w(t,r),n){case">":o=m,i=x,a=g,s=">",l=">=";break;case"<":o=g,i=b,a=m,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(k(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],p=null,h=null;if(u.forEach((function(e){e.semver===C&&(e=new S(">=0.0.0")),p=p||e,h=h||e,o(e.semver,p.semver,r)?p=e:a(e.semver,h.semver,r)&&(h=e)})),p.operator===s||p.operator===l)return!1;if((!h.operator||h.operator===s)&&i(e,h.semver))return!1;if(h.operator===l&&a(e,h.semver))return!1}return!0}S.prototype.parse=function(e){var t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=C},S.prototype.toString=function(){return this.value},S.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},S.prototype.intersects=function(e,t){if(!(e instanceof S))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new w(e.value,t),k(this.value,n,t));if(""===e.operator)return""===e.value||(n=new w(this.value,t),k(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||l},t.Range=w,w.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},w.prototype.toString=function(){return this.range},w.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[a.HYPHENRANGELOOSE]:o[a.HYPHENRANGE];e=e.replace(r,O),n("hyphen replace",e),e=e.replace(o[a.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[a.COMPARATORTRIM]),e=(e=(e=e.replace(o[a.TILDETRIM],"$1~")).replace(o[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[a.CARETLOOSE]:o[a.CARET];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),I(r)?s="":I(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":I(i)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[a.TILDELOOSE]:o[a.TILDE];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),I(r)?s="":I(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":I(i)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[a.XRANGELOOSE]:o[a.XRANGE];return e.replace(r,(function(r,o,i,a,s,l){n("xRange",e,r,o,i,a,s,l);var c=I(i),u=c||I(a),d=u||I(s),p=d;return"="===o&&p&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(a=0),s=0,">"===o?(o=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+s+l):u?r=">="+i+".0.0"+l+" <"+(+i+1)+".0.0"+l:d&&(r=">="+i+"."+a+".0"+l+" <"+i+"."+(+a+1)+".0"+l),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[a.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new S(e,this.options)}),this)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Range is required");return this.set.some((function(n){return L(n,t)&&e.set.some((function(e){return L(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new w(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},w.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1},t.satisfies=k,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new w(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new w(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minVersion=function(e,t){e=new w(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new w(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return q(e,t,"<",n)},t.gtr=function(e,t,n){return q(e,t,">",n)},t.outside=q,t.prerelease=function(e,t){var n=u(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new w(e,n),t=new w(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[a.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);if(null===n)return null;return u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,wp);const Ip={};async function Op(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Ip[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);Ip[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 Error("Failed to load visualization: '".concat(n,"'"))}))}return Ip[i]}function Rp(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]=function(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)||wp.satisfies(e,i.deps.properties),supernova:()=>Op(a.name,a.version,t,o.load).then((e=>(n=n||Cp(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=H({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(Ue(!0,n,e),n):H(H({},n),e)}))}};return a}({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{var t;r||(t=Object.keys(n),r=[...t.filter((e=>"undefined"===e)),...t.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(".")))]);for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function kp(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Rp(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,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(Ip).forEach((t=>{t.split("__")[0]===e&&(Ip[t]=void 0)}))}(e)}}}const qp={context:{},load:()=>{},types:[],themes:[],anything:{},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()))}};qp.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1};const _p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return H(H({},e),t)},Tp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t))},Dp=(e,t)=>({context:_p(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:H({},t.snapshot||e.snapshot),types:Tp(e.types,t.types),themes:Tp(e.themes,t.themes),flags:_p(e.flags,t.flags),anything:_p(e.anything,t.anything)});var Ap=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=J(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=H(H({},n.context),{},{translator:r.translator});const[s]=ji({app:e,context:a}),l=ct({themes:n.themes,loadTheme:n.loadTheme,root:s});a.themeApi=l.externalAPI;const c={galaxy:{translator:r.translator,flags:hd(n.flags),deviceType:ut(n.context.deviceType),anything:n.anything},theme:l.externalAPI,translator:r.translator,nebbie:null},u={app:e,root:s,config:n,public:c,context:a,types:null},d=kp({halo:u});n.types.forEach((e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=l.setTheme(n.context.theme),h=null,f=null;const m={render:async e=>(await p,e.id?pd(e,u):ad(e,u)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=H(H(H({},a),t),{},{translator:r.translator}),u.context=a,t.theme&&(p=l.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),s.context(a))},selections:async()=>(h||(h={mount(t){f||(f=hc({element:t,app:e}),s.add(f))},unmount(){f&&(s.remove(f),f=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 a=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=zc({element:i,app:e,fieldIdentifier:t,qId:n,options:Mc(H({onSelectionActivated:l,onSelectionDeactivated:c},a)),stateName:a.stateName||"$",renderedCallback:r}),s.add(this._instance)}))},unmount(){this._instance&&(s.remove(this._instance),this._instance=null)}};return Wl(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(n,r,o){m._popoverInstance&&(s.remove(m._popoverInstance),m._popoverInstance=null);const i=Fc(H({onPopoverClose:()=>m.emit("fieldPopoverClose")},o));m._popoverInstance=t.createElement(Wc,{element:n,key:dc(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,Wl(m),m}return o.createConfiguration=t=>e(Dp(n,t)),o.config=n,o}(qp);function Pp(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Mp=globalThis.crypto||{getRandomValues:()=>123456};function Np(){return e=>{const t=Ue({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Mp.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=Ue({},t,n)),Promise.resolve(H({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const zp=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},jp=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=zp(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},Fp=["id","session"],Wp=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Bp(e){return!Wp.includes(e)}function Hp(e){const t=zp(e.getLayout);return t.qInfo&&t.qInfo.qId}function Up(e,t){return e.reduce(((e,n)=>H(H({},e),function(e,t){let n=Hp(e);const{delay:r}=t,{id:o,session:i}=e,a=G(e,Fp);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]:H(H({id:n,session:zp(i,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return H(H({},e),{},{[n]:jp(o,{async:Bp(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function $p(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Hp(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Gp(){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($p);const n=Up(e,t);return async e=>Promise.resolve(n[e])}function Vp(){return()=>Promise.resolve({id:"app-layout"})}const Kp={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Pp,r=new Np,o=new Gp(e,t),i=new Vp,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Zp={generator:Cp,hook:zd,theme:st,locale:Z};export{Kp as EnigmaMocker,Zp as __DO_NOT_USE__,au as conversion,Ap as embed,cp as onContextMenu,lp as onTakeSnapshot,op as useAction,Xd as useApp,Kd as useAppLayout,ip as useConstraints,np as useDeviceType,Fd as useEffect,Ud as useElement,ep as useEmbed,Jd as useGlobal,sp as useImperativeHandle,dp as useKeyboard,Gd as useLayout,Bd as useMemo,Zd as useModel,ap as useOptions,rp as usePlugins,Hd as usePromise,$d as useRect,up as useRenderState,Yd as useSelections,Vd as useStaleLayout,jd as useState,Qd as useTheme,tp as useTranslator};
15
15
  //# sourceMappingURL=index.js.map