@nebula.js/cli-serve 4.12.0 → 4.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eHub.js +1 -1
- package/dist/eRender.js +3 -3
- package/package.json +8 -8
package/dist/eHub.js
CHANGED
|
@@ -99,4 +99,4 @@
|
|
|
99
99
|
animation: ${0} 1.4s linear infinite;
|
|
100
100
|
`),cl))),ul=(0,qt.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),gl=(0,qt.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.circle,t[`circle${(0,ui.A)(i.variant)}`],i.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,Dt.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,no.AH)(al||(al=ll`
|
|
101
101
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
102
|
-
`),dl))),pl=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:s=!1,size:r=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=i,h=(0,Et.A)(i,nl),u=(0,Dt.A)({},i,{color:o,disableShrink:s,size:r,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:i,color:n,disableShrink:o}=e,s={root:["root",i,`color${(0,ui.A)(n)}`],svg:["svg"],circle:["circle",`circle${(0,ui.A)(i)}`,o&&"circleDisableShrink"]};return(0,Nt.A)(s,il,t)})(u),p={},m={},f={};if("determinate"===d){const e=2*Math.PI*((44-l)/2);p.strokeDasharray=e.toFixed(3),f["aria-valuenow"]=Math.round(c),p.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,Ft.jsx)(hl,(0,Dt.A)({className:(0,It.A)(g.root,n),style:(0,Dt.A)({width:r,height:r},m,a),ownerState:u,ref:t,role:"progressbar"},f,h,{children:(0,Ft.jsx)(ul,{className:g.svg,ownerState:u,viewBox:"22 22 44 44",children:(0,Ft.jsx)(gl,{className:g.circle,style:p,ownerState:u,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))})),ml=pl,fl=()=>{const e=X(),t=G(),{info:n,glob:o,treatAsDesktop:s}=Lt(),{loading:r,appList:a}=(({glob:e,info:t})=>{const n=X(),{setInfo:o,setActiveStep:s}=Lt(),[r,a]=(0,i.useState)(),[l,c]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{s(1),ft().then((e=>{o(e)}))}),[]),(0,i.useEffect)((()=>{if(r?.length)return;c(!0);const t=new URLSearchParams(window.location.search);t.get("qlik-client-id")&&!t.get("shouldFetchAppList")&&(async()=>{const{isAuthorized:e}=await(await fetch("/isAuthorized")).json();return{isAuthorized:e}})().then((({isAuthorized:e})=>{if(e){const e=new URL(window.location.href);e.search.includes("shouldFetchAppList")||e.searchParams.append("shouldFetchAppList",!0),n(decodeURIComponent(`${e.pathname}${e.search}`))}})),(t.get("shouldFetchAppList")?(async()=>await(await fetch("/apps")).json()||[])():e?.getDocList())?.then((e=>{a(e),e&&c(!1)}))}),[window.location.search,c,t,e]),{appList:r,loading:l}})({glob:o,info:n});return i.createElement(qn,null,i.createElement(Zo,{variant:"h5",gutterBottom:!0},"Select an app"),r&&i.createElement(ml,{"data-testid":"loading",size:32}),!r&&a&&!a.length&&i.createElement(Zo,{component:"span"},"No apps found!"),a&&a.length>0&&i.createElement(qs,null,a.map((o=>i.createElement(Ys,{button:!0,component:"a",key:o.qDocId,onClick:()=>(({navigate:e,location:t,targetApp:i,info:n})=>{const{search:o}=t,s=`${n.enigma.secure?"wss":"ws"}://${"localhost"===n.enigma.host?`${n.enigma.host}:${n.enigma.port}`:n.enigma.host}/app/${encodeURIComponent(i)}`;e(`/dev/${o.replace(n.engineUrl,s)}`.replace("&shouldFetchAppList=true",""))})({info:n,navigate:e,location:t,targetApp:s?o.qDocName:o.qDocId})},i.createElement(nr,{primary:o.qTitle,secondary:o.qDocId}))))))};r(8275);const vl=({initial:e="en-US",fallback:t="en-US"}={})=>{const i=function({initial:e="en-US",fallback:t="en-US"}={}){const i={};let n=e;const o={language:e=>(e&&(n=e),n),add:e=>{const{id:t,locale:n}=e;Object.keys(n).forEach((e=>{i[e]||(i[e]={}),i[e][t]=n[e]}))},get(e,o){let s;return s=i[n]&&void 0!==i[n][e]?i[n][e]:i[t]&&void 0!==i[t][e]?i[t][e]:e,void 0!==o?((e="",t=[])=>{const i="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==i[t]?i[t]:e))})(s,o):s}};return o}({initial:e,fallback:t});return{translator:i}},_l=JSON.parse('{"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_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},"Listbox_ScreenReader_SelectionMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},"Listbox_ScreenReaderInstructions":{"id":"Listbox.ScreenReaderInstructions","locale":{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L\'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L\'attivazione degli elementi sottostanti causerà l\'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},"Listbox_Search":{"id":"Listbox.Search","locale":{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},"Listbox_Search_ScreenReaderInstructions":{"id":"Listbox.Search.ScreenReaderInstructions","locale":{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},"Listbox_Unlock":{"id":"Listbox.Unlock","locale":{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},"Menu_More":{"id":"Menu.More","locale":{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},"Navigate_Back":{"id":"Navigate.Back","locale":{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},"Navigate_Forward":{"id":"Navigate.Forward","locale":{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},"OK":{"id":"OK","locale":{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},"Object_Listbox_Alternative":{"id":"Object.Listbox.Alternative","locale":{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},"Object_Listbox_Excluded":{"id":"Object.Listbox.Excluded","locale":{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},"Object_Listbox_ExcludedLock":{"id":"Object.Listbox.ExcludedLock","locale":{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},"Object_Listbox_Locked":{"id":"Object.Listbox.Locked","locale":{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},"Object_Listbox_Optional":{"id":"Object.Listbox.Optional","locale":{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},"Object_Listbox_Selected":{"id":"Object.Listbox.Selected","locale":{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},"Object_Listbox_SelectedExcluded":{"id":"Object.Listbox.SelectedExcluded","locale":{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},"Object_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":"重試"}},"ScreenReader_ManySearchResults":{"id":"ScreenReader.ManySearchResults","locale":{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},"ScreenReader_ManySelected":{"id":"ScreenReader.ManySelected","locale":{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},"ScreenReader_OneSearchResult":{"id":"ScreenReader.OneSearchResult","locale":{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},"ScreenReader_OneSelected":{"id":"ScreenReader.OneSelected","locale":{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},"ScreenReader_ZeroSelected":{"id":"ScreenReader.ZeroSelected","locale":{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n\'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},"Selection_Cancel":{"id":"Selection.Cancel","locale":{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},"Selection_Clear":{"id":"Selection.Clear","locale":{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},"Selection_ClearAll":{"id":"Selection.ClearAll","locale":{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},"Selection_ClearAllStates":{"id":"Selection.ClearAllStates","locale":{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},"Selection_Confirm":{"id":"Selection.Confirm","locale":{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},"Selection_Menu":{"id":"Selection.Menu","locale":{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":"Меню \\"Выборка\\"","sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},"Selection_SelectAll":{"id":"Selection.SelectAll","locale":{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},"Selection_SelectAlternative":{"id":"Selection.SelectAlternative","locale":{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},"Selection_SelectExcluded":{"id":"Selection.SelectExcluded","locale":{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},"Selection_SelectPossible":{"id":"Selection.SelectPossible","locale":{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},"SelectionToolbar_ClickToLock":{"id":"SelectionToolbar.ClickToLock","locale":{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},"SelectionToolbar_ClickToUnlock":{"id":"SelectionToolbar.ClickToUnlock","locale":{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},"Visualization_Incomplete":{"id":"Visualization.Incomplete","locale":{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},"Visualization_Incomplete_Dimensions":{"id":"Visualization.Incomplete.Dimensions","locale":{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},"Visualization_Incomplete_Measures":{"id":"Visualization.Incomplete.Measures","locale":{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},"Visualization_Invalid_Dimension":{"id":"Visualization.Invalid.Dimension","locale":{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},"Visualization_Invalid_Measure":{"id":"Visualization.Invalid.Measure","locale":{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},"Visualization_LayoutError":{"id":"Visualization.LayoutError","locale":{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},"Visualization_UnfulfilledCalculationCondition":{"id":"Visualization.UnfulfilledCalculationCondition","locale":{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}}');var bl=r(6775),yl=r.n(bl);function Cl(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function wl(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function Sl(){}var xl=.7,Ll=1/xl,kl="\\s*([+-]?\\d+)\\s*",El="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Il=/^#([0-9a-f]{3,8})$/,Nl=new RegExp(`^rgb\\(${kl},${kl},${kl}\\)$`),Al=new RegExp(`^rgb\\(${Dl},${Dl},${Dl}\\)$`),Rl=new RegExp(`^rgba\\(${kl},${kl},${kl},${El}\\)$`),Tl=new RegExp(`^rgba\\(${Dl},${Dl},${Dl},${El}\\)$`),ql=new RegExp(`^hsl\\(${El},${Dl},${Dl}\\)$`),Ml=new RegExp(`^hsla\\(${El},${Dl},${Dl},${El}\\)$`),Ol={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 Pl(){return this.rgb().formatHex()}function Fl(){return this.rgb().formatRgb()}function Bl(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=Il.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?Wl(t):3===i?new Hl(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?Vl(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?Vl(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=Nl.exec(e))?new Hl(t[1],t[2],t[3],1):(t=Al.exec(e))?new Hl(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Rl.exec(e))?Vl(t[1],t[2],t[3],t[4]):(t=Tl.exec(e))?Vl(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ql.exec(e))?Xl(t[1],t[2]/100,t[3]/100,1):(t=Ml.exec(e))?Xl(t[1],t[2]/100,t[3]/100,t[4]):Ol.hasOwnProperty(e)?Wl(Ol[e]):"transparent"===e?new Hl(NaN,NaN,NaN,0):null}function Wl(e){return new Hl(e>>16&255,e>>8&255,255&e,1)}function Vl(e,t,i,n){return n<=0&&(e=t=i=NaN),new Hl(e,t,i,n)}function zl(e,t,i,n){return 1===arguments.length?((o=e)instanceof Sl||(o=Bl(o)),o?new Hl((o=o.rgb()).r,o.g,o.b,o.opacity):new Hl):new Hl(e,t,i,null==n?1:n);var o}function Hl(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function jl(){return`#${Kl(this.r)}${Kl(this.g)}${Kl(this.b)}`}function Ul(){const e=$l(this.opacity);return`${1===e?"rgb(":"rgba("}${Gl(this.r)}, ${Gl(this.g)}, ${Gl(this.b)}${1===e?")":`, ${e})`}`}function $l(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kl(e){return((e=Gl(e))<16?"0":"")+e.toString(16)}function Xl(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Yl(e,t,i,n)}function Zl(e){if(e instanceof Yl)return new Yl(e.h,e.s,e.l,e.opacity);if(e instanceof Sl||(e=Bl(e)),!e)return new Yl;if(e instanceof Yl)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,o=Math.min(t,i,n),s=Math.max(t,i,n),r=NaN,a=s-o,l=(s+o)/2;return a?(r=t===s?(i-n)/a+6*(i<n):i===s?(n-t)/a+2:(t-i)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new Yl(r,a,l,e.opacity)}function Yl(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function Ql(e){return(e=(e||0)%360)<0?e+360:e}function Jl(e){return Math.max(0,Math.min(1,e||0))}function ec(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}Cl(Sl,Bl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pl,formatHex:Pl,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Zl(this).formatHsl()},formatRgb:Fl,toString:Fl}),Cl(Hl,zl,wl(Sl,{brighter(e){return e=null==e?Ll:Math.pow(Ll,e),new Hl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xl:Math.pow(xl,e),new Hl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Hl(Gl(this.r),Gl(this.g),Gl(this.b),$l(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:jl,formatHex:jl,formatHex8:function(){return`#${Kl(this.r)}${Kl(this.g)}${Kl(this.b)}${Kl(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ul,toString:Ul})),Cl(Yl,(function(e,t,i,n){return 1===arguments.length?Zl(e):new Yl(e,t,i,null==n?1:n)}),wl(Sl,{brighter(e){return e=null==e?Ll:Math.pow(Ll,e),new Yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xl:Math.pow(xl,e),new Yl(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,i=this.l,n=i+(i<.5?i:1-i)*t,o=2*i-n;return new Hl(ec(e>=240?e-240:e+120,o,n),ec(e,o,n),ec(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Yl(Ql(this.h),Jl(this.s),Jl(this.l),$l(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=$l(this.opacity);return`${1===e?"hsl(":"hsla("}${Ql(this.h)}, ${100*Jl(this.s)}%, ${100*Jl(this.l)}%${1===e?")":`, ${e})`}`}}));var tc=r(5205),ic=r.n(tc);const nc=JSON.parse('{"fontSize":"12px","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"]}]}}'),oc=JSON.parse('{"_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"}'),sc=JSON.parse('{"_variables":{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},"type":"dark","color":"@B98","object":{"listBox":{"backgroundColor":"@B20","title":{"main":{"color":"@B98","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#@B98","fontSize":"12px"}}}}'),rc=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),ac=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Bl(e)}addColorPart(e,t,i){i=i||0,this.startLevel=Math.max(i,this.startLevel),this.colorParts[i]||(this.colorParts[i]=[]),this.colorParts[i].push([Bl(e),Bl(t)])}getColor(e,t){const i=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+i))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const n=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(i,this.colorParts[t].length);let o=Math.floor(n);o=o===n?o-1:o;const s=this.colorParts[t][o],r=s[0],a=s[1];if(e===this.min)return a;if(e===this.max)return r;const l=function(e,t,i){return zl(Math.floor(e.r+(t.r-e.r)*i),Math.floor(e.g+(t.g-e.g)*i),Math.floor(e.b+(t.b-e.b)*i),Math.floor(e.opacity+(t.opacity-e.opacity)*i))}(r,a,n-o);return l}};function lc(e,t,i){const n=.25+(t+1)/i*.25,o=.5-n;return o+e/1*(.5+n-o)}function cc(e,t,i){const n=[],o=new ac(t);n.push(e[0]),i||n.push(e[0]);let s=1;for(;s<e.length-1;s++)n.push(e[s]),n.push(e[s]);n.push(e[s]),i||n.push(e[s]);for(let e=0;e<n.length;e+=2)o.addColorPart(n[e],n[e+1]);return o}function dc(e,t,i){const n=[];for(let o=0;o<t+1;o++){let s;switch(t){case 0:s=e.getColor(.5);break;default:{const n=lc(1/t*o,t,i);s=e.getColor(n);break}}n.push(Bl(s).formatHex())}return n}function hc(e,t){const i=[];let n,o;if(e){let s=e.length;for(;s>=0;){for(n=t.slice(),o=n.length;o>=0;)i.push(n.concat(e)),n.pop(),o--;e.pop(),s--}}else for(n=t.slice(),o=n.length;o>=0;)i.push(n.concat()),n.pop(),o--;return i}function uc(e,t){let i=e;for(let e=0;e<t.length;e++){if(!i[t[e]])return;i=i[t[e]]}return i}function gc(e,t){const i=e.split(".");return{getStyle:(e,n)=>function(e,t,i,n){let o;return o=hc(""===e?null:e.split("."),i),function(e,t,i){const n=t.split(".");for(let t=0;t<e.length;t++){const o=uc(i,[...e[t],...n]);if(void 0!==o)return o}}(o,t,n)}(e,n,i.concat(),t)}}function pc(e,t){Object.keys(e).forEach((i=>{"object"==typeof e[i]&&null!==e[i]?pc(e[i],t):"string"==typeof e[i]&&"@"===e[i].charAt(0)&&(e[i]=t[e[i]])}))}function mc(e){const t=Bl(e).rgb(),{r:i,g:n,b:o}=t,[s,r,a]=[i,n,o].map((e=>e/255)),[l,c,d]=[s,r,a].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*d).toFixed(5)}gc.resolveRawTheme=e=>{const t=ic()(!0,{},e);return pc(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const i=function(e,t,i){const n=cc(e,i,!0),o=cc(dc(n,t-1,t),i,!1),s=[null];for(let e=0;e<t;e++)s.push(dc(o,e,t));return s}(e.scale,Math.max(e.scale.length,7),t);e.scale=i,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const fc=1e3;function vc(){let e,t,i,n={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>i.getBestContrastColor(e),getStyle:(t,i,o)=>(n[t]||(n[t]=gc(t,e)),n[t].getStyle(i,o)),validateColor(...e){const t=e[0];let i;if("string"==typeof t&&(i=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(i[1],10)/255;return`rgba(${parseInt(i[2],10)},${parseInt(i[3],10)},${parseInt(i[4],10)},${e})`}const n=Bl(...e);return n?n.toString():void 0}},s={setTheme(s,r){e=function(e,t){const i="dark"===e.type?sc:oc;let n=rc;!1!==e._inherit&&"false"!==e._inherit||(n={});const o=ic()(!0,{},nc,n,i),s=ic()(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return s.palettes.data&&s.palettes.data.length||(s.palettes.data=o.palettes.data),s.palettes.ui&&s.palettes.ui.length||(s.palettes.ui=o.palettes.ui),s.scales&&s.scales.length||(s.scales=o.scales),t(s)}(s,gc.resolveRawTheme),n={},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,i){return i=!!i,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-i]?e.color:t.colors[e.index-i]:e.color)}}}(e);const a=o.getStyle("","","color"),l=mc(a);i=function(e=["#333333","#ffffff"]){let t={},i=0;const n=e.map(mc);return{getBestContrastColor(o){if(!t[o]){i>fc&&(t={},i=0);const s=mc(o),r=n.map((e=>{return t=s,i=e,+((Math.max(t,i)+.05)/(Math.min(t,i)+.05)).toFixed(5);var t,i})),a=e[r.indexOf(Math.max(...r))];t[o]=a,i++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>r}};return Object.keys(yl().prototype).forEach((e=>{o[e]=yl().prototype[e]})),yl().init(o),s.setTheme({},"light"),{externalAPI:o,internalAPI:s}}const _c=i.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),bc=(e={},t=(()=>{}))=>{const n=e,o=[],s={get:e=>n[e],set:(e,i)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return n[e]=i,t({type:"SET",value:i}),i},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);n[e]=null},dispatch:e=>{o.forEach((t=>t(e?{}:n)))}};return[()=>{const[,e]=(0,i.useState)(n);return(0,i.useEffect)((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[s]},s]},[yc,Cc]=bc({}),[wc,Sc]=bc({}),[xc,Lc]=bc({});function kc(e){if(!e.session)return[];const[t]=yc(),n=e?e.id:null;let o=t.get(n);return(0,i.useEffect)((()=>{e&&!o&&(o=function({app:e}){const t=`${e.id}`,i=async(e=!0)=>{const{model:i,objectSelections:n}=Lc.get(t)||{};i&&(await i.endSelections(e),Lc.clear(t),n.emit("deactivated"))},n={begin:async({model:n,paths:o,accept:s=!0,objectSelections:r})=>{if(r===Lc.get(t)?.objectSelections)return;i(s),Lc.set(t,{model:n,objectSelections:r});const a=Array.isArray(o)?o:[o],l=async i=>{try{await n.beginSelections(a),Lc.set(t,{model:n,objectSelections:r})}catch(n){6003!==n.code||i?Lc.clear(t):(await e.abortModal(s),l(!0))}};await l()},end:i};return Sc.set(t,n),{model:e,isInModal:()=>!!Lc.get(t),isModal:e=>e?Lc.get(t)?.objectSelections===e:!!Lc.get(t),forward:()=>n.end().then((()=>e.forward())),back:()=>n.end().then((()=>e.back())),clear:()=>n.end().then((()=>e.clearAll())),clearField:(t,i="$")=>n.end().then((()=>e.getField(t,i).then((e=>e.clear()))))}}({app:e}),t.set(n,o),t.dispatch(!0))}),[e]),[o]}const Ec={active:!0,select:!0,passive:!0,edit:!1};function Dc(e){const t={},i={},n=function(e){const{constraints:t={},interactions:i={}}=e;if(Object.keys(i).length>0)return i;const n={};return Object.keys(t).forEach((e=>{n[e]=!t[e]})),n}(e);Object.keys(Ec).forEach((e=>{void 0!==n[e]?(t[e]=n[e],i[e]=!n[e]):(t[e]=Ec[e],i[e]=!Ec[e])})),e.constraints=i,e.interactions=t}const Ic=(0,i.forwardRef)((({initialContext:e,app:t,renderCallback:n},o)=>{const[s]=kc(t),[r,a]=(0,i.useState)(e),[l,c]=(0,i.useState)(),{theme:d}=(0,i.useMemo)((()=>({theme:Ui(l)})),[l]),[h,u]=(0,i.useState)([]);return(0,i.useEffect)((()=>{n&&n()}),[]),(0,i.useImperativeHandle)(o,(()=>({setComps(e){u([...e])},setMuiThemeName:c,setContext:e=>a((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>s})),[]),i.createElement(Ai.A,{injectFirst:!0},i.createElement(Ni,{theme:d},i.createElement(_c.Provider,{value:r},h)))})),[Nc,Ac]=bc({}),[Rc,Tc]=bc({}),[qc,Mc]=bc({}),[Oc,Pc]=bc({}),[Fc,Bc]=bc({}),[,Wc]=bc({}),Vc=({type:e,value:t})=>{const i=Wc.get(t.id);Wc.set(t.id,{});const n=()=>{Tc.clear(t.id),Bc.set(t.id,{}),Bc.dispatch(!0)},o=()=>{t.removeListener("changed",n),Ac.clear(t.id),Tc.clear(t.id),Mc.clear(t.id),Pc.clear(t.id),Bc.clear(t.id),Wc.clear(t.id)};return"SET"===e&&(i||(t.on("changed",n),t.once("closed",(()=>{o()})))),o},[zc,Hc]=bc({},Vc);function jc(e,t,...n){const o=t?`${t.id}/${JSON.stringify(e)}`:null,[s]=zc(),[r]=qc(),[a,l]=(0,i.useState)();return(0,i.useEffect)((()=>{t&&(async()=>{let i=r.get(o);i||(i=t.createSessionObject(e),r.set(o,i));const n=await i;s.set(o,n),l(n)})()}),[t,...n]),[a]}const Uc={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function $c(e){return jc(Uc,e)}const Gc=e=>new Promise((t=>{setTimeout(t,e)})),Kc=(e,t)=>{const{rpcResultStore:i,key:n,method:o}=t;let s;switch(t.type){case"INVALID":s={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":s={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":s={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let r=i.get(n);return r||(r={}),r[o]=s,i.set(n,r),s};function Xc(e,t){const n=e?`${e.id}`:null,[o]=Nc(),[s,r]=(0,i.useReducer)(Kc,n?o.get(n):null),[a]=Fc(),[l]=Rc();let c;n&&(c=l.get(n),c||(c={},l.set(n,c)));const d=async i=>{let s=c[t];(!s||s&&s.rpcRetry)&&(s={rpc:e[t](),rpcRetry:!1},c[t]=s,r({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0}));try{await Gc(0);const i=await s.rpc;r({type:"VALID",result:i,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||i||(s.rpcRetry||(s.rpcRetry=!0),d(!0))}},h={cancel:async()=>{const i=e.session.getObjectApi({handle:-1});await i.cancelRequest(c[t].rpc.requestId),r({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:o})},retry:()=>{c[t].rpcRetry=!0,d()}};return(0,i.useEffect)((()=>{e&&d()}),[e,a.get(e&&e.id),n,t]),[s&&s.result,{validating:s&&s.validating,canCancel:s&&s.canCancel,canRetry:s&&s.canRetry},h]}function Zc(e){return Xc(e,"getLayout")}function Yc(e){return Xc(e,"getAppLayout")}function Qc(){const[e,t]=(0,i.useState)(),[n,o]=(0,i.useState)(),s=(0,i.useCallback)((e=>{e&&t(e)}),[]),r=()=>{const{left:t,top:i,width:n,height:s}=e.getBoundingClientRect();o({left:t,top:i,width:n,height:s})};return(0,i.useLayoutEffect)((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(r);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}}}),[e]),[s,n,e]}const Jc=e=>Es((e=>({...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)),ed=e=>({...e,viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}),td=e=>Es(ed(e)),id=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nd(e){return`scale(${e}, ${e**2})`}const od={entering:{opacity:1,transform:nd(1)},entered:{opacity:1,transform:"none"}},sd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rd=i.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:s,easing:r,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:h,onExited:u,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=gs}=e,v=(0,Et.A)(e,id),_=(0,oo.A)(),b=i.useRef(),y=_i(),C=i.useRef(null),w=(0,zn.A)(C,s.ref,t),S=e=>t=>{if(e){const i=C.current;void 0===t?e(i):e(i,t)}},x=S(d),L=S(((e,t)=>{ms(e);const{duration:i,delay:n,easing:o}=fs({style:p,timeout:m,easing:r},{mode:"enter"});let s;"auto"===m?(s=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=s):s=i,e.style.transition=[y.transitions.create("opacity",{duration:s,delay:n}),y.transitions.create("transform",{duration:sd?s:.666*s,delay:n,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(g),D=S((e=>{const{duration:t,delay:i,easing:n}=fs({style:p,timeout:m,easing:r},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:i}),y.transitions.create("transform",{duration:sd?o:.666*o,delay:sd?i:i||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=nd(.75),h&&h(e)})),I=S(u);return(0,Ft.jsx)(f,(0,Dt.A)({appear:o,in:a,nodeRef:C,onEnter:L,onEntered:k,onEntering:x,onExit:D,onExited:I,onExiting:E,addEndListener:e=>{"auto"===m&&_.start(b.current||0,e),n&&n(C.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(s,(0,Dt.A)({style:(0,Dt.A)({opacity:0,transform:nd(.75),visibility:"exited"!==e||a?void 0:"hidden"},od[e],p,s.props.style),ref:w},t))}))}));rd.muiSupportAuto=!0;const ad=rd;var ld=r(9301),cd=r(4795),dd=r(8961);function hd(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ud(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gd(e){return parseInt((0,ha.A)(e).getComputedStyle(e).paddingRight,10)||0}function pd(e,t,i,n,o){const s=[t,i,...n];[].forEach.call(e.children,(e=>{const t=-1===s.indexOf(e),i=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),i="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||i}(e);t&&i&&ud(e,o)}))}function md(e,t){let i=-1;return e.some(((e,n)=>!!t(e)&&(i=n,!0))),i}const fd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let i=this.modals.indexOf(e);if(-1!==i)return i;i=this.modals.length,this.modals.push(e),e.modalRef&&ud(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);pd(t,e.mount,e.modalRef,n,!0);const o=md(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),i):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),i)}mount(e,t){const i=md(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[i];n.restore||(n.restore=function(e,t){const i=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,ld.A)(e);return t.body===e?(0,ha.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=hd((0,ld.A)(n));i.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${gd(n)+e}px`;const t=(0,ld.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{i.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${gd(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,ld.A)(n).body;else{const t=n.parentElement,i=(0,ha.A)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===i.getComputedStyle(t).overflowY?t:n}i.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{i.forEach((({value:e,el:t,property:i})=>{e?t.style.setProperty(i,e):t.style.removeProperty(i)}))}}(n,t))}remove(e,t=!0){const i=this.modals.indexOf(e);if(-1===i)return i;const n=md(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(i,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ud(e.modalRef,t),pd(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ud(e.modalRef,!1)}return i}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const vd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _d(e){const t=[],i=[];return Array.from(e.querySelectorAll(vd)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let i=t(`[name="${e.name}"]:checked`);return i||(i=t(`[name="${e.name}"]`)),i!==e}(e))}(e)&&(0===o?t.push(e):i.push({documentOrder:n,tabIndex:o,node:e}))})),i.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function bd(){return!0}function yd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:r=_d,isEnabled:a=bd,open:l}=e,c=i.useRef(!1),d=i.useRef(null),h=i.useRef(null),u=i.useRef(null),g=i.useRef(null),p=i.useRef(!1),m=i.useRef(null),f=(0,lr.A)(t.ref,m),v=i.useRef(null);i.useEffect((()=>{l&&m.current&&(p.current=!n)}),[n,l]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,ld.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{s||(u.current&&u.current.focus&&(c.current=!0,u.current.focus()),u.current=null)}}),[l]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,ld.A)(m.current),t=t=>{v.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,h.current&&h.current.focus())},i=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==d.current&&e.activeElement!==h.current)return;if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let i=[];if(e.activeElement!==d.current&&e.activeElement!==h.current||(i=r(m.current)),i.length>0){var n,s;const e=Boolean((null==(n=v.current)?void 0:n.shiftKey)&&"Tab"===(null==(s=v.current)?void 0:s.key)),t=i[0],o=i[i.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",i),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&i()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",i),e.removeEventListener("keydown",t,!0)}}),[n,o,s,a,l,r]);const _=e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0};return(0,Ft.jsxs)(i.Fragment,{children:[(0,Ft.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:f,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0,g.current=e.target;const i=t.props.onFocus;i&&i(e)}}),(0,Ft.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:h,"data-testid":"sentinelEnd"})]})}var Cd=r(2357);const wd=i.forwardRef((function(e,t){const{children:n,container:o,disablePortal:r=!1}=e,[a,l]=i.useState(null),c=(0,lr.A)(i.isValidElement(n)?n.ref:null,t);if((0,ua.A)((()=>{r||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),(0,ua.A)((()=>{if(a&&!r)return(0,Cd.A)(t,a),()=>{(0,Cd.A)(t,null)}}),[t,a,r]),r){if(i.isValidElement(n)){const e={ref:c};return i.cloneElement(n,e)}return(0,Ft.jsx)(i.Fragment,{children:n})}return(0,Ft.jsx)(i.Fragment,{children:a?s.createPortal(n,a):a})})),Sd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xd={entering:{opacity:1},entered:{opacity:1}},Ld=i.forwardRef((function(e,t){const n=_i(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:r=!0,children:a,easing:l,in:c,onEnter:d,onEntered:h,onEntering:u,onExit:g,onExited:p,onExiting:m,style:f,timeout:v=o,TransitionComponent:_=gs}=e,b=(0,Et.A)(e,Sd),y=i.useRef(null),C=(0,zn.A)(y,a.ref,t),w=e=>t=>{if(e){const i=y.current;void 0===t?e(i):e(i,t)}},S=w(u),x=w(((e,t)=>{ms(e);const i=fs({style:f,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",i),e.style.transition=n.transitions.create("opacity",i),d&&d(e,t)})),L=w(h),k=w(m),E=w((e=>{const t=fs({style:f,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),D=w(p);return(0,Ft.jsx)(_,(0,Dt.A)({appear:r,in:c,nodeRef:y,onEnter:x,onEntered:L,onEntering:S,onExit:E,onExited:D,onExiting:k,addEndListener:e=>{s&&s(y.current,e)},timeout:v},b,{children:(e,t)=>i.cloneElement(a,(0,Dt.A)({style:(0,Dt.A)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},xd[e],f,a.props.style),ref:C},t))}))})),kd=Ld;function Ed(e){return(0,Ot.Ay)("MuiBackdrop",e)}(0,Mt.A)("MuiBackdrop",["root","invisible"]);const Dd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Id=(0,qt.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.invisible&&t.invisible]}})((({ownerState:e})=>(0,Dt.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Nd=i.forwardRef((function(e,t){var i,n,o;const s=(0,Tt.A)({props:e,name:"MuiBackdrop"}),{children:r,className:a,component:l="div",components:c={},componentsProps:d={},invisible:h=!1,open:u,slotProps:g={},slots:p={},TransitionComponent:m=kd,transitionDuration:f}=s,v=(0,Et.A)(s,Dd),_=(0,Dt.A)({},s,{component:l,invisible:h}),b=(e=>{const{classes:t,invisible:i}=e,n={root:["root",i&&"invisible"]};return(0,Nt.A)(n,Ed,t)})(_),y=null!=(i=g.root)?i:d.root;return(0,Ft.jsx)(m,(0,Dt.A)({in:u,timeout:f},v,{children:(0,Ft.jsx)(Id,(0,Dt.A)({"aria-hidden":!0},y,{as:null!=(n=null!=(o=p.root)?o:c.Root)?n:l,className:(0,It.A)(b.root,a,null==y?void 0:y.className),ownerState:(0,Dt.A)({},_,null==y?void 0:y.ownerState),classes:b,ref:t,children:r}))}))})),Ad=Nd;function Rd(e){return(0,Ot.Ay)("MuiModal",e)}(0,Mt.A)("MuiModal",["root","hidden","backdrop"]);const Td=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],qd=(0,qt.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.open&&i.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,Dt.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Md=(0,qt.Ay)(Ad,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Od=i.forwardRef((function(e,t){var n,o,s,r,a,l;const c=(0,Tt.A)({name:"MuiModal",props:e}),{BackdropComponent:d=Md,BackdropProps:h,className:u,closeAfterTransition:g=!1,children:p,container:m,component:f,components:v={},componentsProps:_={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:x=!1,hideBackdrop:L=!1,keepMounted:k=!1,onBackdropClick:E,open:D,slotProps:I,slots:N}=c,A=(0,Et.A)(c,Td),R=(0,Dt.A)({},c,{closeAfterTransition:g,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:S,disableScrollLock:x,hideBackdrop:L,keepMounted:k}),{getRootProps:T,getBackdropProps:q,getTransitionProps:M,portalRef:O,isTopModal:P,exited:F,hasTransition:B}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:s=fd,closeAfterTransition:r=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:h,rootRef:u}=e,g=i.useRef({}),p=i.useRef(null),m=i.useRef(null),f=(0,lr.A)(m,u),[v,_]=i.useState(!h),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const C=()=>(g.current.modalRef=m.current,g.current.mount=p.current,g.current),w=()=>{s.mount(C(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},S=(0,cd.A)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,ld.A)(p.current).body;s.add(C(),e),m.current&&w()})),x=i.useCallback((()=>s.isTopModal(C())),[s]),L=(0,cd.A)((e=>{p.current=e,e&&(h&&x()?w():m.current&&ud(m.current,y))})),k=i.useCallback((()=>{s.remove(C(),y)}),[y,s]);i.useEffect((()=>()=>{k()}),[k]),i.useEffect((()=>{h?S():b&&r||k()}),[h,k,b,r,S]);const E=e=>t=>{var i;null==(i=e.onKeyDown)||i.call(e,t),"Escape"===t.key&&229!==t.which&&x()&&(n||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},D=e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(t={})=>{const i=dr(e);delete i.onTransitionEnter,delete i.onTransitionExited;const n=rr({},i,t);return rr({role:"presentation"},n,{onKeyDown:E(n),ref:f})},getBackdropProps:(e={})=>rr({"aria-hidden":!0},e,{onClick:D(e),open:h}),getTransitionProps:()=>({onEnter:(0,dd.A)((()=>{_(!1),a&&a()}),null==c?void 0:c.props.onEnter),onExited:(0,dd.A)((()=>{_(!0),l&&l(),r&&k()}),null==c?void 0:c.props.onExited)}),rootRef:f,portalRef:L,isTopModal:x,exited:v,hasTransition:b}}((0,Dt.A)({},R,{rootRef:t})),W=(0,Dt.A)({},R,{exited:F}),V=(e=>{const{open:t,exited:i,classes:n}=e,o={root:["root",!t&&i&&"hidden"],backdrop:["backdrop"]};return(0,Nt.A)(o,Rd,n)})(W),z={};if(void 0===p.props.tabIndex&&(z.tabIndex="-1"),B){const{onEnter:e,onExited:t}=M();z.onEnter=e,z.onExited=t}const H=null!=(n=null!=(o=null==N?void 0:N.root)?o:v.Root)?n:qd,j=null!=(s=null!=(r=null==N?void 0:N.backdrop)?r:v.Backdrop)?s:d,U=null!=(a=null==I?void 0:I.root)?a:_.root,$=null!=(l=null==I?void 0:I.backdrop)?l:_.backdrop,G=mr({elementType:H,externalSlotProps:U,externalForwardedProps:A,getSlotProps:T,additionalProps:{ref:t,as:f},ownerState:W,className:(0,It.A)(u,null==U?void 0:U.className,null==V?void 0:V.root,!W.open&&W.exited&&(null==V?void 0:V.hidden))}),K=mr({elementType:j,externalSlotProps:$,additionalProps:h,getSlotProps:e=>q((0,Dt.A)({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,It.A)(null==$?void 0:$.className,null==h?void 0:h.className,null==V?void 0:V.backdrop),ownerState:W});return k||D||B&&!F?(0,Ft.jsx)(wd,{ref:O,container:m,disablePortal:w,children:(0,Ft.jsxs)(H,(0,Dt.A)({},G,{children:[!L&&d?(0,Ft.jsx)(j,(0,Dt.A)({},K)):null,(0,Ft.jsx)(yd,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:P,open:D,children:i.cloneElement(p,z)})]}))}):null})),Pd=Od,Fd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Bd(e){return(0,Ot.Ay)("MuiPaper",e)}(0,Mt.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Wd=["className","component","elevation","square","variant"],Vd=(0,qt.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],!i.square&&t.rounded,"elevation"===i.variant&&t[`elevation${i.elevation}`]]}})((({theme:e,ownerState:t})=>{var i;return(0,Dt.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,Dt.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Vn.X4)("#fff",Fd(t.elevation))}, ${(0,Vn.X4)("#fff",Fd(t.elevation))})`},e.vars&&{backgroundImage:null==(i=e.vars.overlays)?void 0:i[t.elevation]}))})),zd=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:s=1,square:r=!1,variant:a="elevation"}=i,l=(0,Et.A)(i,Wd),c=(0,Dt.A)({},i,{component:o,elevation:s,square:r,variant:a}),d=(e=>{const{square:t,elevation:i,variant:n,classes:o}=e,s={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${i}`]};return(0,Nt.A)(s,Bd,o)})(c);return(0,Ft.jsx)(Vd,(0,Dt.A)({as:o,ownerState:c,className:(0,It.A)(d.root,n),ref:t},l))})),Hd=zd;function jd(e){return(0,Ot.Ay)("MuiPopover",e)}(0,Mt.A)("MuiPopover",["root","paper"]);const Ud=["onEntering"],$d=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Gd=["slotProps"];function Kd(e,t){let i=0;return"number"==typeof t?i=t:"center"===t?i=e.height/2:"bottom"===t&&(i=e.height),i}function Xd(e,t){let i=0;return"number"==typeof t?i=t:"center"===t?i=e.width/2:"right"===t&&(i=e.width),i}function Zd(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Yd(e){return"function"==typeof e?e():e}const Qd=(0,qt.Ay)(Pd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jd=(0,qt.Ay)(Hd,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),eh=i.forwardRef((function(e,t){var n,o,s;const r=(0,Tt.A)({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:u,className:g,container:p,elevation:m=8,marginThreshold:f=16,open:v,PaperProps:_={},slots:b,slotProps:y,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=ad,transitionDuration:S="auto",TransitionProps:{onEntering:x}={},disableScrollLock:L=!1}=r,k=(0,Et.A)(r.TransitionProps,Ud),E=(0,Et.A)(r,$d),D=null!=(n=null==y?void 0:y.paper)?n:_,I=i.useRef(),N=(0,zn.A)(I,D.ref),A=(0,Dt.A)({},r,{anchorOrigin:c,anchorReference:h,elevation:m,marginThreshold:f,externalPaperSlotProps:D,transformOrigin:C,TransitionComponent:w,transitionDuration:S,TransitionProps:k}),R=(e=>{const{classes:t}=e;return(0,Nt.A)({root:["root"],paper:["paper"]},jd,t)})(A),T=i.useCallback((()=>{if("anchorPosition"===h)return d;const e=Yd(l),t=(e&&1===e.nodeType?e:(0,qr.A)(I.current).body).getBoundingClientRect();return{top:t.top+Kd(t,c.vertical),left:t.left+Xd(t,c.horizontal)}}),[l,c.horizontal,c.vertical,d,h]),q=i.useCallback((e=>({vertical:Kd(e,C.vertical),horizontal:Xd(e,C.horizontal)})),[C.horizontal,C.vertical]),M=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},i=q(t);if("none"===h)return{top:null,left:null,transformOrigin:Zd(i)};const n=T();let o=n.top-i.vertical,s=n.left-i.horizontal;const r=o+t.height,a=s+t.width,c=(0,Cr.A)(Yd(l)),d=c.innerHeight-f,u=c.innerWidth-f;if(null!==f&&o<f){const e=o-f;o-=e,i.vertical+=e}else if(null!==f&&r>d){const e=r-d;o-=e,i.vertical+=e}if(null!==f&&s<f){const e=s-f;s-=e,i.horizontal+=e}else if(a>u){const e=a-u;s-=e,i.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(s)}px`,transformOrigin:Zd(i)}}),[l,h,T,q,f]),[O,P]=i.useState(v),F=i.useCallback((()=>{const e=I.current;if(!e)return;const t=M(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[M]);i.useEffect((()=>(L&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,L,F]),i.useEffect((()=>{v&&F()})),i.useImperativeHandle(a,(()=>v?{updatePosition:()=>{F()}}:null),[v,F]),i.useEffect((()=>{if(!v)return;const e=(0,fr.A)((()=>{F()})),t=(0,Cr.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,v,F]);let B=S;"auto"!==S||w.muiSupportAuto||(B=void 0);const W=p||(l?(0,qr.A)(Yd(l)).body:void 0),V=null!=(o=null==b?void 0:b.root)?o:Qd,z=null!=(s=null==b?void 0:b.paper)?s:Jd,H=mr({elementType:z,externalSlotProps:(0,Dt.A)({},D,{style:O?D.style:(0,Dt.A)({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:N},ownerState:A,className:(0,It.A)(R.paper,null==D?void 0:D.className)}),j=mr({elementType:V,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:W,open:v},ownerState:A,className:(0,It.A)(R.root,g)}),{slotProps:U}=j,$=(0,Et.A)(j,Gd);return(0,Ft.jsx)(V,(0,Dt.A)({},$,!Ms(V)&&{slotProps:U,disableScrollLock:L},{children:(0,Ft.jsx)(w,(0,Dt.A)({appear:!0,in:v,onEntering:(e,t)=>{x&&x(e,t),F()},onExited:()=>{P(!1)},timeout:B},k,{children:(0,Ft.jsx)(z,(0,Dt.A)({},H,{children:u}))}))}))})),th=eh;var ih=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),nh=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};const oh=function(e){function t(){var e,i,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return i=n=nh(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),n._lastRenderedStartIndex=-1,n._lastRenderedStopIndex=-1,n._memoizedUnloadedRanges=[],n._onItemsRendered=function(e){var t=e.visibleStartIndex,i=e.visibleStopIndex;n._lastRenderedStartIndex=t,n._lastRenderedStopIndex=i,n._ensureRowsLoaded(t,i)},n._setRef=function(e){n._listRef=e},nh(n,i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ih(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 i=this.props,n=i.isItemLoaded,o=i.itemCount,s=i.minimumBatchSize,r=void 0===s?10:s,a=i.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,i=e.itemCount,n=e.minimumBatchSize,o=e.stopIndex,s=[],r=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(s.push(r,a),r=a=null):(a=l,null===r&&(r=l));if(null!==a){for(var c=Math.min(Math.max(a,r+n-1),i-1),d=a+1;d<=c&&!t(d);d++)a=d;s.push(r,a)}if(s.length)for(;s[1]-s[0]+1<n&&s[0]>0;){var h=s[0]-1;if(t(h))break;s[0]=h}return s}({isItemLoaded:n,itemCount:o,minimumBatchSize:r,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,i=this.props.loadMoreItems||this.props.loadMoreRows,n=function(n){var o=e[n],s=e[n+1],r=i(o,s);null!=r&&r.then((function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:s}).startIndex>e.lastRenderedStopIndex||e.stopIndex<e.lastRenderedStartIndex)){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())}var e}))},o=0;o<e.length;o+=2)n(o)}}]),t}(i.PureComponent),sh=["S","XS"],rh=e=>e.reduce(((e,t)=>e.concat(t)));async function ah({selections:e,elemNumbers:t,toggle:i,isSingleSelect:n}){if(0===t.length)return!1;let o=!1;if(!t.some((e=>Number.isNaN(e)))){const s=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",s,i]})}catch{o=!1}o||(n?e.cancel():e.clear())}return o}const lh="RowColumn",ch={row:`${lh}-row`,rowBorderBottom:`${lh}-rowBorderBottom`,column:`${lh}-column`,fieldRoot:`${lh}-fieldRoot`,cell:`${lh}-cell`,labelText:`${lh}-labelText`,labelDense:`${lh}-labelDense`,highlighted:`${lh}-highlighted`,checkboxLabel:`${lh}-checkboxLabel`,icon:`${lh}-icon`,S:`${lh}-S`,XS:`${lh}-XS`,A:`${lh}-A`,X:`${lh}-X`,frequencyCount:`${lh}-frequencyCount`,barContainer:`${lh}-barContainer`,bar:`${lh}-bar`,barSelected:`${lh}-barSelected`,barWithCheckbox:`${lh}-barWithCheckbox`,barSelectedWithCheckbox:`${lh}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${lh}-excludedTextWithCheckbox`},dh=`.${ch.fieldRoot}`,hh=e=>!(e?.metaKey||e?.ctrlKey);const uh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),gh=e=>Es(uh(e)),ph=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,mh=e=>e?"A"===e.qState:null,fh=({cell:e,checkboxes:t})=>(mh(e)||ph(e))&&t,vh=80,_h=32,bh=29,yh=20,Ch=4,wh=e=>e.filter((e=>!!e)).join(" ").trim(),Sh=e=>e||"-",xh=({sizes:e,frequencyMode:t,isGridMode:i,freqHitsValue:n})=>"P"===t?`${e.freqMinWidth}px`:i&&!n?"max-content":"25%",Lh=({sizes:e,frequencyMode:t,isGridMode:i})=>i?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,kh=({theme:e,styles:t,selectedState:i})=>{const n=t.selections,o=n[i],s=n[`${i}Contrast`];return{background:o,color:s,"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`,outline:"none"},"& $cell":{paddingRight:0},[`& .${ch.labelText}`]:{color:s},[`& .${ch.icon}`]:{color:s}}},Eh={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Dh=(0,qt.Ay)("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((({theme:e,checkboxes:t,isGridMode:i,isGridCol:n,dense:o,direction:s,sizes:r,frequencyMode:a,freqHitsValue:l,styles:c})=>{const{backgroundColor:d,...h}=c.content,u=kh({theme:e,styles:c,selectedState:"selected"}),g=kh({theme:e,styles:c,selectedState:"excluded"});return{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${ch.row}`]:{flexWrap:"nowrap",...c.content},[`& .${ch.rowBorderBottom}`]:{borderBottom:n?"none":`1px solid ${e.palette.divider}`,borderLeft:n?`1px solid ${e.palette.divider}`:"none"},[`& .${ch.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${ch.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${ch.labelText}`]:{lineHeight:"16px",userSelect:"none",paddingRight:"1px",...Eh,...h},[`& .${ch.labelDense}`]:{fontSize:12},[`& .${ch.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${ch.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...Eh,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${ch.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${ch.S}`]:{...u,border:i?"none":void 0},[`& .${ch.XS}`]:{...kh({theme:e,styles:c,selectedState:"selectedExcluded"}),border:i?"none":void 0},[`& .${ch.A}`]:{...kh({theme:e,styles:c,selectedState:"alternative"}),border:i?"none":void 0},[`& .${ch.X}`]:{...g,border:i?"none":void 0},[`& .${ch.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...Eh,flex:`0 0 ${xh({sizes:r,frequencyMode:a,isGridMode:i,freqHitsValue:l})}`,minWidth:!i&&"P"!==a&&l?r.freqMinWidth:"max-content",maxWidth:Lh({sizes:r,frequencyMode:a,isGridMode:i}),textAlign:"rtl"===s?"left":"right",paddingLeft:"rtl"!==s?"8px":0},[`&.${ch.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${ch.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{border:"1px solid",borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},[`& .${ch.barSelected}`]:{"& .bar-filled":{opacity:"30%",background:e.palette.background.lighter}},[`& .${ch.barWithCheckbox}`]:{left:"rtl"===s?4:29,width:"calc(100% - 33px)"},[`& .${ch.barSelectedWithCheckbox}`]:{"& .bar-filled":{opacity:"30%",background:u.background||"#BFE5D0",borderColor:u.background||"#BFE5D0"}},[`& .${ch.excludedTextWithCheckbox}`]:{color:"#828282",fontStyle:"italic"}}})),Ih=i.memo(Dh);var Nh=r(4580);const Ah=["component","direction","spacing","divider","children","className","useFlexGap"],Rh=(0,Xt.A)(),Th=ai("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function qh(e){return(0,$t.A)({props:e,name:"MuiStack",defaultTheme:Rh})}function Mh(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce(((e,o,s)=>(e.push(o),s<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${s}`})),e)),[])}const Oh=({ownerState:e,theme:t})=>{let i=(0,jt.A)({display:"flex",flexDirection:"column"},(0,Ro.NI)({theme:t},(0,Ro.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,Nh.LX)(t),o=Object.keys(t.breakpoints.values).reduce(((t,i)=>(("object"==typeof e.spacing&&null!=e.spacing[i]||"object"==typeof e.direction&&null!=e.direction[i])&&(t[i]=!0),t)),{}),s=(0,Ro.kW)({values:e.direction,base:o}),r=(0,Ro.kW)({values:e.spacing,base:o});"object"==typeof s&&Object.keys(s).forEach(((e,t,i)=>{if(!s[e]){const n=t>0?s[i[t-1]]:"column";s[e]=n}}));const a=(t,i)=>{return e.useFlexGap?{gap:(0,Nh._W)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=i?s[i]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,Nh._W)(n,t)}};var o};i=(0,Kt.A)(i,(0,Ro.NI)({theme:t},r,a))}return i=(0,Ro.iZ)(t.breakpoints,i),i},Ph=function(e={}){const{createStyledComponent:t=Th,useThemeProps:n=qh,componentName:o="MuiStack"}=e,s=t(Oh),r=i.forwardRef((function(e,t){const i=n(e),r=(0,Gi.A)(i),{component:a="div",direction:l="column",spacing:c=0,divider:d,children:h,className:u,useFlexGap:g=!1}=r,p=(0,Ht.A)(r,Ah),m={direction:l,spacing:c,useFlexGap:g},f=(0,Nt.A)({root:["root"]},(e=>(0,Ot.Ay)(o,e)),{});return(0,Ft.jsx)(s,(0,jt.A)({as:a,ownerState:m,ref:t,className:(0,It.A)(f.root,u)},p,{children:d?Mh(h,d):h}))}));return r}({createStyledComponent:(0,qt.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Tt.A)({props:e,name:"MuiStack"})}),Fh=Ph;function Bh(e){return(0,Ot.Ay)("MuiFormControlLabel",e)}const Wh=(0,Mt.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Vh=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],zh=(0,qt.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${Wh.label}`]:t.label},t.root,t[`labelPlacement${(0,ui.A)(i.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Wh.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Wh.label}`]:{[`&.${Wh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Hh=(0,qt.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Wh.error}`]:{color:(e.vars||e).palette.error.main}}))),jh=i.forwardRef((function(e,t){var n,o;const s=(0,Tt.A)({props:e,name:"MuiFormControlLabel"}),{className:r,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:h,labelPlacement:u="end",required:g,slotProps:p={}}=s,m=(0,Et.A)(s,Vh),f=oa(),v=null!=(n=null!=c?c:l.props.disabled)?n:null==f?void 0:f.disabled,_=null!=g?g:l.props.required,b={disabled:v,required:_};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==s[e]&&(b[e]=s[e])}));const y=sa({props:s,muiFormControl:f,states:["error"]}),C=(0,Dt.A)({},s,{disabled:v,labelPlacement:u,required:_,error:y.error}),w=(e=>{const{classes:t,disabled:i,labelPlacement:n,error:o,required:s}=e,r={root:["root",i&&"disabled",`labelPlacement${(0,ui.A)(n)}`,o&&"error",s&&"required"],label:["label",i&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,Nt.A)(r,Bh,t)})(C),S=null!=(o=p.typography)?o:a.typography;let x=h;return null==x||x.type===Zo||d||(x=(0,Ft.jsx)(Zo,(0,Dt.A)({component:"span"},S,{className:(0,It.A)(w.label,null==S?void 0:S.className),children:x}))),(0,Ft.jsxs)(zh,(0,Dt.A)({className:(0,It.A)(w.root,r),ownerState:C,ref:t},m,{children:[i.cloneElement(l,b),_?(0,Ft.jsxs)(Fh,{display:"block",children:[x,(0,Ft.jsxs)(Hh,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):x]}))})),Uh=jh;var $h=r(9778);function Gh(e){return(0,Ot.Ay)("PrivateSwitchBase",e)}(0,Mt.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kh=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Xh=(0,qt.Ay)(Lo)((({ownerState:e})=>(0,Dt.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Zh=(0,qt.Ay)("input",{shouldForwardProp:qt.ep})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Yh=i.forwardRef((function(e,t){const{autoFocus:i,checked:n,checkedIcon:o,className:s,defaultChecked:r,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:h,inputProps:u,inputRef:g,name:p,onBlur:m,onChange:f,onFocus:v,readOnly:_,required:b=!1,tabIndex:y,type:C,value:w}=e,S=(0,Et.A)(e,Kh),[x,L]=(0,$h.A)({controlled:n,default:Boolean(r),name:"SwitchBase",state:"checked"}),k=oa();let E=a;k&&void 0===E&&(E=k.disabled);const D="checkbox"===C||"radio"===C,I=(0,Dt.A)({},e,{checked:x,disabled:E,disableFocusRipple:l,edge:c}),N=(e=>{const{classes:t,checked:i,disabled:n,edge:o}=e,s={root:["root",i&&"checked",n&&"disabled",o&&`edge${(0,ui.A)(o)}`],input:["input"]};return(0,Nt.A)(s,Gh,t)})(I);return(0,Ft.jsxs)(Xh,(0,Dt.A)({component:"span",className:(0,It.A)(N.root,s),centerRipple:!0,focusRipple:!l,disabled:E,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),k&&k.onFocus&&k.onFocus(e)},onBlur:e=>{m&&m(e),k&&k.onBlur&&k.onBlur(e)},ownerState:I,ref:t},S,{children:[(0,Ft.jsx)(Zh,(0,Dt.A)({autoFocus:i,checked:n,defaultChecked:r,className:N.input,disabled:E,id:D?h:void 0,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),f&&f(e,t)},readOnly:_,ref:g,required:b,ownerState:I,tabIndex:y,type:C},"checkbox"===C&&void 0===w?{}:{value:w},u)),x?o:d]}))})),Qh=Yh,Jh=(0,gn.A)((0,Ft.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),eu=(0,gn.A)((0,Ft.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),tu=(0,gn.A)((0,Ft.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function iu(e){return(0,Ot.Ay)("MuiCheckbox",e)}const nu=(0,Mt.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ou=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],su=(0,qt.Ay)(Qh,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.indeterminate&&t.indeterminate,t[`size${(0,ui.A)(i.size)}`],"default"!==i.color&&t[`color${(0,ui.A)(i.color)}`]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Vn.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${nu.checked}, &.${nu.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${nu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),ru=(0,Ft.jsx)(eu,{}),au=(0,Ft.jsx)(Jh,{}),lu=(0,Ft.jsx)(tu,{}),cu=i.forwardRef((function(e,t){var n,o;const s=(0,Tt.A)({props:e,name:"MuiCheckbox"}),{checkedIcon:r=ru,color:a="primary",icon:l=au,indeterminate:c=!1,indeterminateIcon:d=lu,inputProps:h,size:u="medium",className:g}=s,p=(0,Et.A)(s,ou),m=c?d:l,f=c?d:r,v=(0,Dt.A)({},s,{color:a,indeterminate:c,size:u}),_=(e=>{const{classes:t,indeterminate:i,color:n,size:o}=e,s={root:["root",i&&"indeterminate",`color${(0,ui.A)(n)}`,`size${(0,ui.A)(o)}`]},r=(0,Nt.A)(s,iu,t);return(0,Dt.A)({},t,r)})(v);return(0,Ft.jsx)(su,(0,Dt.A)({type:"checkbox",inputProps:(0,Dt.A)({"data-indeterminate":c},h),icon:i.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:u}),checkedIcon:i.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:u}),ownerState:v,ref:t,className:(0,It.A)(_.root,g)},p,{classes:_}))})),du=cu,hu="ListBoxCheckbox",uu={cbIcon:`${hu}-cbIcon`,cbIconChecked:`${hu}-cbIconChecked`,cbIconExcluded:`${hu}-cbIconExcluded`,cbIconAlternative:`${hu}-cbIconAlternative`,checkbox:`${hu}-checkbox`,dense:`${hu}-dense`},gu=(0,qt.Ay)(du,{shouldForwardProp:e=>"styles"!==e})((({styles:e})=>({[`& .${uu.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"},[`& .${uu.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},[`& .${uu.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${uu.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${uu.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${uu.dense}`]:{padding:"4px 8px"}}))),pu=(e,t=!0,n=!1)=>i.createElement("span",{className:e.cbIcon},n&&i.createElement("span",{className:t&&n?e.cbIconExcluded:""}));function mu({onChange:e,checked:t,label:n,dense:o,excluded:s,styles:r,showGray:a=!0,dataN:l}){return i.createElement(gu,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[uu.checkbox,o&&uu.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":l},name:n,icon:pu(uu,a,s),checkedIcon:i.createElement("span",{className:uu.cbIconChecked}),styles:r})}const fu=(0,gn.A)((0,Ft.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),vu=(0,gn.A)((0,Ft.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),_u=(0,qt.Ay)("span",{shouldForwardProp:qt.ep})({position:"relative",display:"flex"}),bu=(0,qt.Ay)(fu)({transform:"scale(1)"}),yu=(0,qt.Ay)(vu)((({theme:e,ownerState:t})=>(0,Dt.A)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}))),Cu=function(e){const{checked:t=!1,classes:i={},fontSize:n}=e,o=(0,Dt.A)({},e,{checked:t});return(0,Ft.jsxs)(_u,{className:i.root,ownerState:o,children:[(0,Ft.jsx)(bu,{fontSize:n,className:i.background,ownerState:o}),(0,Ft.jsx)(yu,{fontSize:n,className:i.dot,ownerState:o})]})};var wu=r(4402);const Su=i.createContext(void 0);function xu(e){return(0,Ot.Ay)("MuiRadio",e)}const Lu=(0,Mt.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ku=["checked","checkedIcon","color","icon","name","onChange","size","className"],Eu=(0,qt.Ay)(Qh,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"medium"!==i.size&&t[`size${(0,ui.A)(i.size)}`],t[`color${(0,ui.A)(i.color)}`]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Vn.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Lu.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Lu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Du=(0,Ft.jsx)(Cu,{checked:!0}),Iu=(0,Ft.jsx)(Cu,{}),Nu=i.forwardRef((function(e,t){var n,o;const s=(0,Tt.A)({props:e,name:"MuiRadio"}),{checked:r,checkedIcon:a=Du,color:l="primary",icon:c=Iu,name:d,onChange:h,size:u="medium",className:g}=s,p=(0,Et.A)(s,ku),m=(0,Dt.A)({},s,{color:l,size:u}),f=(e=>{const{classes:t,color:i,size:n}=e,o={root:["root",`color${(0,ui.A)(i)}`,"medium"!==n&&`size${(0,ui.A)(n)}`]};return(0,Dt.A)({},t,(0,Nt.A)(o,xu,t))})(m),v=i.useContext(Su);let _=r;const b=(0,wu.A)(h,v&&v.onChange);let y=d;var C,w;return v&&(void 0===_&&(C=v.value,_="object"==typeof(w=s.value)&&null!==w?C===w:String(C)===String(w)),void 0===y&&(y=v.name)),(0,Ft.jsx)(Eu,(0,Dt.A)({type:"radio",icon:i.cloneElement(c,{fontSize:null!=(n=Iu.props.fontSize)?n:u}),checkedIcon:i.cloneElement(a,{fontSize:null!=(o=Du.props.fontSize)?o:u}),ownerState:m,classes:f,name:y,checked:_,onChange:b,ref:t,className:(0,It.A)(f.root,g)},p))})),Au=Nu,Ru="ListBoxRadioButton-radioButton",Tu=(0,qt.Ay)(Au,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((({checked:e,styles:t,dense:i})=>({[`&.${Ru}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:i?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}})));function qu({onChange:e,checked:t,label:n,dense:o,dataN:s,styles:r}){return i.createElement(Tu,{checked:t,onChange:e,value:n,name:n,className:Ru,inputProps:{"data-n":s},disableRipple:!0,size:o?"small":"medium",dense:o,styles:r})}const Mu=function({label:e,dense:t,showGray:n=!0,checkboxes:o,cell:s,valueTextAlign:r}){return i.createElement(Zo,{component:"span",variant:"body2",className:wh([ch.labelText,t&&ch.labelDense,n&&fh({cell:s,checkboxes:o})&&ch.excludedTextWithCheckbox]),align:r,dir:"auto"},i.createElement("span",null,e))},Ou=function({label:e,color:t,dense:n,showGray:o,checkboxes:s,cell:r,valueTextAlign:a}){return"string"==typeof e?i.createElement(Mu,{label:e,color:t,dense:n,showGray:o,checkboxes:s,cell:r,valueTextAlign:a}):e},Pu=function({onChange:e,label:t,qElemNumber:n,isSelected:o,dense:s,cell:r,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){const g=i.createElement(mu,{onChange:e,label:t,checked:o,dense:s,excluded:ph(r),isGridCol:a,showGray:l,dataN:n,styles:u}),p=i.createElement(qu,{onChange:e,label:t,checked:o,dense:s,dataN:n,styles:u});return i.createElement(Uh,{control:c?p:g,className:ch.checkboxLabel,label:i.createElement(Ou,{label:t,dense:s,showGray:l,checkboxes:d,cell:r,valueTextAlign:h}),key:n})};function Fu({labels:e,dense:t,showGray:n,checkboxes:o}){const s=e.map((([e,t],n)=>i.createElement("span",{id:n,className:t?ch.highlighted:""},e)));return i.createElement(Mu,{label:s,dense:t,showGray:n,checkboxes:o})}const Bu=function({onChange:e,labels:t,checkboxes:n,dense:o,showGray:s,qElemNumber:r,isSelected:a,cell:l,isGridCol:c,isSingleSelect:d,valueTextAlign:h,styles:u}){const g=i.createElement(Fu,{labels:t,dense:o,showGray:s,checkboxes:n});return n?i.createElement(Pu,{onChange:e,label:g,qElemNumber:r,isSelected:a,dense:o,cell:l,isGridCol:c,showGray:s,isSingleSelect:d,checkboxes:n,valueTextAlign:h,styles:u}):g};function Wu({onChange:e,label:t,qElemNumber:n,isSelected:o,dense:s,cell:r,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){return d?i.createElement(Pu,{onChange:e,label:t,qElemNumber:n,isSelected:o,dense:s,cell:r,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}):i.createElement(Mu,{label:t,dense:s,showGray:!0,checkboxes:d,cell:r,valueTextAlign:h})}const Vu=i.memo(Wu),zu=function({qFrequency:e,histogram:t,checkboxes:n,isSelected:o,frequencyMax:s}){if(!e||!t||"-"===Sh(e))return;const r=(({qFrequency:e,frequencyMax:t})=>{const i=String(e),n="%"===i.substring(i.length-1),o=parseFloat(n?i:e);return`${n?o:o/t*100}%`})({qFrequency:e,checkboxes:n,frequencyMax:s});return i.createElement(Ji,{className:wh([ch.bar,n&&ch.barWithCheckbox,o&&(n?ch.barSelectedWithCheckbox:ch.barSelected)])},i.createElement(Ji,{className:"bar-filled",width:r}))},Hu=function({cell:e,checkboxes:t,dense:n,showGray:o}){const s=Sh(e?.qFrequency);return i.createElement(Ho,{item:!0,style:{display:"flex",alignItems:"center"},className:ch.frequencyCount,"aria-label":s,title:s},i.createElement(Zo,{noWrap:!0,color:"inherit",variant:"body2",className:wh([n&&ch.labelDense,ch.labelText,o&&fh({cell:e,checkboxes:t})&&ch.excludedTextWithCheckbox])},s))};function ju({dataLayout:e,layoutOrder:t,itemPadding:i,fillHeight:n}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:n?"100%":`calc(100% - ${i}px)`,width:`calc(100% - ${2*i}px)`,position:"absolute",left:4};default:return{}}}const Uu=(0,qt.Ay)(Ho,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((({dataLayout:e,layoutOrder:t,itemPadding:i,cellPaddingRight:n,direction:o,fillHeight:s})=>{const r="padding"+("rtl"===o?"Left":"Right");return{[`&.${ch.fieldRoot}`]:{...ju({dataLayout:e,layoutOrder:t,itemPadding:i,fillHeight:s}),[r]:n?"8px":void 0}}})),$u={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function Gu({layout:e}){const{translator:t}=(0,i.useContext)(_c),{qStateCounts:n={}}=e?.qListObject?.qDimensionInfo||{},o=n.qSelected+n.qSelectedExcluded+n.qLocked+n.qLockedExcluded;let s;switch(o){case 0:s="ScreenReader.ZeroSelected";break;case 1:s="ScreenReader.OneSelected";break;default:s="ScreenReader.ManySelected"}const r=t.get(s,[o]);return i.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},r)}const Ku=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===Ku.ARROW_UP||e===Ku.ARROW_DOWN||e===Ku.ARROW_LEFT||e===Ku.ARROW_RIGHT}),Xu=Ku,Zu=e=>+e.getAttribute("data-n"),Yu=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},Qu=e=>{const t=e?.querySelector(".value.last-focused, .value.selector, .value");return t?.setAttribute("tabIndex",0),t?.focus(),t},Ju=function({index:e,rowIndex:t,columnIndex:n,style:o,data:s}){const{onChange:r,onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onTouchStart:h,onTouchEnd:u,pages:g,isLocked:p,column:m=!1,checkboxes:f=!1,textAlign:v,direction:_,layoutOptions:b={},freqIsAllowed:y,isSingleSelect:C,actions:w,frequencyMax:S="",histogram:x=!1,keyboard:L,showGray:k=!0,showTick:E=!0,columnCount:D=1,rowCount:I=1,dataOffset:N,deducedFrequencyMode:A,focusListItems:R,listCount:T,sizes:q,translator:M,showSearch:O,isModal:P,contentFontStyle:F,styles:B,fillHeight:W}=s,{dense:V=!1,dataLayout:z="singleColumn",layoutOrder:H}=b,{itemPadding:j}=q;let U,$;const G={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof n){"row"===H?(U=t*D+n,G.max=I,G.currentIndex=t):(U=n*I+t,G.max=D,G.currentIndex=n);const e=0;$={...o,height:W?"100%":o.height,left:e+(0===n?o.left:Number(o.left)+n*e),top:0===t?o.top:Number(o.top)+t*e}}else U=e,G.max=T,G.currentIndex=e,$={...o};U+=N;const[K,X]=(0,i.useState)(null);(0,i.useEffect)((()=>{null!==K&&(0===G.currentIndex&&R.first&&(K.focus(),R.setFirst(!1)),G.currentIndex===G.max-1&&R.last&&(K.focus(),R.setLast(!1)))}),[K,R.first,R.last]);const Z=(0,i.useCallback)(function({select:e,selectAll:t,onCtrlF:i,confirm:n,cancel:o,setScrollPosition:s,focusListItems:r,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:h,columnIndex:u,layoutOrder:g}){const p=(e,t,i=!1)=>{if(e===Xu.ARROW_LEFT||e===Xu.ARROW_RIGHT||"number"!=typeof h||"number"!=typeof u){const e=t?.parentElement[i?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const n=t?.parentElement.parentElement,o=n?.childElementCount;if(o){const i=(({rowIndex:e,columnIndex:t,rowCount:i,columnCount:n,layoutOrder:o,keyCode:s,numCells:r})=>{const a=e=>{let t;return"row"===o?(t=r%n,e<t?i:i-1):(t=r%i,e<n-1?i:t)};let l=e,c=t;if(s===Xu.ARROW_DOWN)if(e>=a(t)-1){if(t===n-1)return-1;l=0,c=t+1}else l=e+1;else if(0===e){if(0===t)return-1;l=a(t-1)-1,c=t-1}else l=e-1;if("row"===o)return l*n+c;const d=r%i;return 0===d||l<d?l*n+c:(l-d)*(n-1)+c+d*n})({rowIndex:h,columnIndex:u,rowCount:c,columnCount:d,layoutOrder:g,keyCode:e,numCells:o}),n=t?.parentElement.parentElement.children[i];return n?.querySelector("[role]")}};let m=!1;const f=e=>{m=e};return c=>{let d;const{currentTarget:h,nativeEvent:u}=c,{keyCode:g,shiftKey:v=!1,ctrlKey:_=!1,metaKey:b=!1}=u;switch(g){case Xu.TAB:{const e=h.closest(".listbox-container"),t=l();if(h.classList.add("last-focused"),v){Yu(e)||(t?a.focusSelection():a.blur(!0));break}t?a.focusSelection():(h.blur(),a.blur());break}case Xu.SHIFT:f(!0);break;case Xu.SPACE:e([Zu(h)],!1,c);break;case Xu.ARROW_DOWN:case Xu.ARROW_RIGHT:d=p(g,h,!0),v&&d&&(m&&(e([Zu(h)],!0),f(!1)),e([Zu(d)],!0));break;case Xu.ARROW_UP:case Xu.ARROW_LEFT:d=p(g,h,!1),v&&d&&(m&&(e([Zu(h)],!0),f(!1)),e([Zu(d)],!0));break;case Xu.ENTER:n();break;case Xu.ESCAPE:if(!l())return;o();break;case Xu.HOME:if(r.setFirst(!0),_){s?.("overflowStart");break}s?.("start");break;case Xu.END:if(r.setLast(!0),_){s?.("overflowEnd");break}s?.("end");break;case Xu.A:if(_||b){t();break}return;case Xu.F:if(_||b){i();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:R,keyboard:L,isModal:P,rowCount:I,columnCount:D,rowIndex:t,columnIndex:n,layoutOrder:H}),[w,L?.innerTabStops,I,D,t,n,H]),Y=(0,i.useMemo)((()=>function({pages:e,cellIndex:t}){let i;const n=e.filter((e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight))[0];if(n){const e=n.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([i]=n.qMatrix[t-e.qTop])}return i}({pages:g,cellIndex:U})),[g,U]),Q="S"===Y?.qState||"XS"===Y?.qState||"L"===Y?.qState||"XL"===Y?.qState,J=(0,i.useMemo)((()=>(({column:e,histogram:t,checkboxes:i,cell:n,showGray:o})=>{const s=[e?ch.column:ch.row];return t||s.push(ch.rowBorderBottom),n?(i||("XS"===n.qState?s.push(o?ch.XS:ch.S):"S"===n.qState||"L"===n.qState?s.push(ch.S):o&&mh(n)?s.push(ch.A):o&&ph(n)&&s.push(ch.X)),s):[]})({column:m,histogram:x,checkboxes:f,cell:Y,showGray:k})),[Y?.qState,x,V,f]),ee=(0,i.useCallback)((e=>{e.preventDefault()}),[f]),te=(0,i.useMemo)((()=>Y&&function({direction:e,cell:t,textAlign:i}){const n=!["NaN",void 0].includes(t?.qNum);let o;return o=!i||i.auto?n?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:i?.align||"left",["left","center","right"].includes(o)?o:"left"}({direction:_,cell:Y,textAlign:v})),[_,Y,v]);if(!Y)return null;const ie="grid"===z&&"column"===H,ne=Y?.qText??"";let oe;Y.qHighlightRanges?.qRanges?.length&&(oe=function(e,t){if(!t.length)return[];const i=t.reduce(((i,n,o)=>{const s=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;i.push(...function(e,t,i=0){const{qCharPos:n,qCharCount:o}=t,s=[];return n>i&&s.push([e.slice(i,n),!1]),s.push([e.slice(n,n+o),!0]),s}(e,n,s));const r=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return r&&a<e.length&&i.push([e.slice(a),!1]),i}),[]);return i}(ne,Y.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[]));const se={alignItems:"center",display:"flex",fontSize:"8px"},re="rtl"===_,ae={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:re?8:f?0:void 0,paddingRight:f?0:re?8:0,justifyContent:te,textAlign:te},le=0===e,ce=Q&&p,de=!f&&Q&&!p,he=!f&&E,ue=f||!E,ge=function({translator:e,label:t,qState:i,isSelected:n,currentIndex:o,maxIndex:s,showSearch:r}){const a=$u[i],l=e.get(a),c=[];if(n){const t=r?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",i=e.get(t);c.push(i)}const d=`${t} ${l}`,h=e.get("CurrentSelections.Of",[o+1,s+1]);return c.unshift(d,h),c.join(". ").trim()}({translator:M,label:ne,qState:Y.qState,currentIndex:G.currentIndex,maxIndex:G.max,showSearch:O}),pe=!re&&"right"===te||re&&"left"===te;return i.createElement(Ih,{className:ch.barContainer,checkboxes:f,style:$,styles:B,isGridCol:ie,isGridMode:"grid"===z,dense:V,direction:_,sizes:q,frequencyMode:A,freqHitsValue:pe,contentFontStyle:F,"data-testid":"listbox.item"},i.createElement(Uu,{role:"row","aria-label":ge,"aria-selected":Q,"aria-setsize":G.max,"aria-rowindex":G.currentIndex,ref:X,container:!0,dataLayout:z,cellPaddingRight:ue,layoutOrder:H,itemPadding:j,gap:0,className:wh(["value",...J]),classes:{root:ch.fieldRoot},onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:Z,onTouchStart:h,onTouchEnd:u,onContextMenu:ee,tabIndex:le&&L.innerTabStops?0:-1,"data-n":Y?.qElemNumber,direction:_,fillHeight:W},Y?.qFrequency&&i.createElement(zu,{qFrequency:Y?.qFrequency,histogram:x,checkboxes:f,isSelected:Q,frequencyMax:S}),i.createElement(Ho,{item:!0,style:ae,className:wh([ch.cell,ch.selectedCell]),title:`${ne}`},oe?i.createElement(Bu,{onChange:r,labels:oe,checkboxes:f,dense:V,showGray:k,qElemNumber:Y.qElemNumber,isSelected:Q,cell:Y,isGridCol:ie,isSingleSelect:C,valueTextAlign:te,styles:B}):i.createElement(Vu,{onChange:r,label:ne,qElemNumber:Y.qElemNumber,isSelected:Q,dense:V,cell:Y,isGridCol:ie,showGray:k,isSingleSelect:C,checkboxes:f,valueTextAlign:te,styles:B})),y&&i.createElement(Hu,{cell:Y,checkboxes:f,dense:V,showGray:k}),he&&i.createElement(Ho,{item:!0,className:ch.icon},ce&&i.createElement(Jc,{style:se,size:"small"}),de&&i.createElement(gh,{style:se,size:"small"}))))};var eg=r(837),tg=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ig(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!((n=e[i])===(o=t[i])||tg(n)&&tg(o)))return!1;var n,o;return!0}const ng=function(e,t){var i;void 0===t&&(t=ig);var n,o=[],s=!1;return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return s&&i===this&&t(r,o)||(n=e.apply(this,r),s=!0,i=this,o=r),n}};var og="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function sg(e){cancelAnimationFrame(e.id)}function rg(e,t){var i=og(),n={id:requestAnimationFrame((function o(){og()-i>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var ag=-1;function lg(e){if(void 0===e&&(e=!1),-1===ag||e){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",document.body.appendChild(t),ag=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ag}var cg=null;function dg(e){if(void 0===e&&(e=!1),null===cg||e){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",i.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?cg="positive-descending":(t.scrollLeft=1,cg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),cg}return cg}var hg=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ug(e){var t,n=e.getColumnOffset,o=e.getColumnStartIndexForOffset,s=e.getColumnStopIndexForStartIndex,r=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,h=e.getRowHeight,u=e.getRowOffset,g=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var i;return(i=e.call(this,t)||this)._instanceProps=m(i.props,Gn(i)),i._resetIsScrollingTimeoutId=null,i._outerRef=void 0,i.state={instance:Gn(i),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof i.props.initialScrollLeft?i.props.initialScrollLeft:0,scrollTop:"number"==typeof i.props.initialScrollTop?i.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},i._callOnItemsRendered=void 0,i._callOnItemsRendered=ng((function(e,t,n,o,s,r,a,l){return i.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:s,visibleColumnStopIndex:r,visibleRowStartIndex:a,visibleRowStopIndex:l})})),i._callOnScroll=void 0,i._callOnScroll=ng((function(e,t,n,o,s){return i.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:s})})),i._getItemStyle=void 0,i._getItemStyle=function(e,t){var o,s=i.props,a=s.columnWidth,l=s.direction,c=s.rowHeight,d=i._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=n(i.props,t,i._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:u(i.props,e,i._instanceProps),height:h(i.props,e,i._instanceProps),width:r(i.props,t,i._instanceProps)}}return o},i._getItemStyleCache=void 0,i._getItemStyleCache=ng((function(e,t,i){return{}})),i._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,s=t.scrollLeft,r=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;i.setState((function(e){if(e.scrollLeft===s&&e.scrollTop===r)return null;var t=i.props.direction,c=s;if("rtl"===t)switch(dg()){case"negative":c=-s;break;case"positive-descending":c=l-o-s}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(r,a-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<s?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<r?"forward":"backward",scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._outerRefSetter=function(e){var t=i.props.outerRef;i._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},i._resetIsScrollingDebounced=function(){null!==i._resetIsScrollingTimeoutId&&sg(i._resetIsScrollingTimeoutId),i._resetIsScrollingTimeoutId=rg(i._resetIsScrolling,150)},i._resetIsScrolling=function(){i._resetIsScrollingTimeoutId=null,i.setState({isScrolling:!1},(function(){i._getItemStyleCache(-1)}))},i}Xn(t,e),t.getDerivedStateFromProps=function(e,t){return gg(e,t),v(e),null};var _=t.prototype;return _.scrollTo=function(e){var t=e.scrollLeft,i=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==i&&(i=Math.max(0,i)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===i&&(i=e.scrollTop),e.scrollLeft===t&&e.scrollTop===i?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:i,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<i?"forward":"backward"}}),this._resetIsScrollingDebounced)},_.scrollToItem=function(e){var t=e.align,i=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,s=this.props,r=s.columnCount,h=s.height,u=s.rowCount,g=s.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,v=lg();void 0!==n&&(n=Math.max(0,Math.min(n,r-1))),void 0!==o&&(o=Math.max(0,Math.min(o,u-1)));var _=a(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>g?v:0,y=_>h?v:0;this.scrollTo({scrollLeft:void 0!==n?c(this.props,n,i,m,this._instanceProps,y):m,scrollTop:void 0!==o?d(this.props,o,i,f,this._instanceProps,b):f})},_.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,i=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof i&&(n.scrollTop=i)}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props.direction,t=this.state,i=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(dg()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var s=o.clientWidth,r=o.scrollWidth;o.scrollLeft=r-s-i}else o.scrollLeft=Math.max(0,i);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&sg(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,n=e.className,o=e.columnCount,s=e.direction,r=e.height,c=e.innerRef,d=e.innerElementType,h=e.innerTagName,u=e.itemData,g=e.itemKey,p=void 0===g?hg:g,m=e.outerElementType,f=e.outerTagName,v=e.rowCount,_=e.style,b=e.useIsScrolling,y=e.width,C=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],x=w[1],L=this._getVerticalRangeToRender(),k=L[0],E=L[1],D=[];if(o>0&&v)for(var I=k;I<=E;I++)for(var N=S;N<=x;N++)D.push((0,i.createElement)(t,{columnIndex:N,data:u,isScrolling:b?C:void 0,key:p({columnIndex:N,data:u,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,N)}));var A=a(this.props,this._instanceProps),R=l(this.props,this._instanceProps);return(0,i.createElement)(m||f||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:$n({position:"relative",height:r,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:s},_)},(0,i.createElement)(d||h||"div",{children:D,ref:c,style:{height:A,pointerEvents:C?"none":void 0,width:R}}))},_._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,i=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof i&&t>0&&o>0){var s=this._getHorizontalRangeToRender(),r=s[0],a=s[1],l=s[2],c=s[3],d=this._getVerticalRangeToRender(),h=d[0],u=d[1],g=d[2],p=d[3];this._callOnItemsRendered(r,a,h,u,l,c,g,p)}if("function"==typeof n){var m=this.state,f=m.horizontalScrollDirection,v=m.scrollLeft,_=m.scrollTop,b=m.scrollUpdateWasRequested,y=m.verticalScrollDirection;this._callOnScroll(v,_,f,y,b)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,i=e.overscanColumnCount,n=e.overscanColumnsCount,r=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,h=l.scrollLeft,u=i||n||r||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,h,this._instanceProps),p=s(this.props,g,h,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,u),f=d&&"forward"!==c?1:Math.max(1,u);return[Math.max(0,g-m),Math.max(0,Math.min(t-1,p+f)),g,p]},_._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,i=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,s=e.rowCount,r=this.state,a=r.isScrolling,l=r.verticalScrollDirection,c=r.scrollTop,d=n||o||i||1;if(0===t||0===s)return[0,0,0,0];var h=g(this.props,c,this._instanceProps),u=p(this.props,h,c,this._instanceProps),m=a&&"backward"!==l?1:Math.max(1,d),f=a&&"forward"!==l?1:Math.max(1,d);return[Math.max(0,h-m),Math.max(0,Math.min(s-1,u+f)),h,u]},t}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var gg=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},pg=function(e,t){return e};function mg(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,s=e.getItemSize,r=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,h=e.validateProps;return t=function(e){function t(t){var i;return(i=e.call(this,t)||this)._instanceProps=c(i.props,Gn(i)),i._outerRef=void 0,i._resetIsScrollingTimeoutId=null,i.state={instance:Gn(i),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof i.props.initialScrollOffset?i.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},i._callOnItemsRendered=void 0,i._callOnItemsRendered=ng((function(e,t,n,o){return i.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),i._callOnScroll=void 0,i._callOnScroll=ng((function(e,t,n){return i.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),i._getItemStyle=void 0,i._getItemStyle=function(e){var t,o=i.props,r=o.direction,a=o.itemSize,l=o.layout,c=i._getItemStyleCache(d&&a,d&&l,d&&r);if(c.hasOwnProperty(e))t=c[e];else{var h=n(i.props,e,i._instanceProps),u=s(i.props,e,i._instanceProps),g="horizontal"===r||"horizontal"===l,p="rtl"===r,m=g?h:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:h,height:g?"100%":u,width:g?u:"100%"}}return t},i._getItemStyleCache=void 0,i._getItemStyleCache=ng((function(e,t,i){return{}})),i._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,s=t.scrollWidth;i.setState((function(e){if(e.scrollOffset===o)return null;var t=i.props.direction,r=o;if("rtl"===t)switch(dg()){case"negative":r=-o;break;case"positive-descending":r=s-n-o}return r=Math.max(0,Math.min(r,s-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<r?"forward":"backward",scrollOffset:r,scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,s=t.scrollTop;i.setState((function(e){if(e.scrollOffset===s)return null;var t=Math.max(0,Math.min(s,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._outerRefSetter=function(e){var t=i.props.outerRef;i._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},i._resetIsScrollingDebounced=function(){null!==i._resetIsScrollingTimeoutId&&sg(i._resetIsScrollingTimeoutId),i._resetIsScrollingTimeoutId=rg(i._resetIsScrolling,150)},i._resetIsScrolling=function(){i._resetIsScrollingTimeoutId=null,i.setState({isScrolling:!1},(function(){i._getItemStyleCache(-1,null)}))},i}Xn(t,e),t.getDerivedStateFromProps=function(e,t){return fg(e,t),h(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 i=this.props,n=i.itemCount,o=i.layout,s=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?lg():0:l.scrollHeight>l.clientHeight?lg():0}this.scrollTo(r(this.props,e,t,s,this._instanceProps,a))},u.componentDidMount=function(){var e=this.props,t=e.direction,i=e.initialScrollOffset,n=e.layout;if("number"==typeof i&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=i:o.scrollTop=i}this._callPropsCallbacks()},u.componentDidUpdate=function(){var e=this.props,t=e.direction,i=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var s=this._outerRef;if("horizontal"===t||"horizontal"===i)if("rtl"===t)switch(dg()){case"negative":s.scrollLeft=-o;break;case"positive-ascending":s.scrollLeft=o;break;default:var r=s.clientWidth,a=s.scrollWidth;s.scrollLeft=a-r-o}else s.scrollLeft=o;else s.scrollTop=o}this._callPropsCallbacks()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&sg(this._resetIsScrollingTimeoutId)},u.render=function(){var e=this.props,t=e.children,n=e.className,s=e.direction,r=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,h=e.itemData,u=e.itemKey,g=void 0===u?pg:u,p=e.layout,m=e.outerElementType,f=e.outerTagName,v=e.style,_=e.useIsScrolling,b=e.width,y=this.state.isScrolling,C="horizontal"===s||"horizontal"===p,w=C?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),x=S[0],L=S[1],k=[];if(d>0)for(var E=x;E<=L;E++)k.push((0,i.createElement)(t,{data:h,key:g(E,h),index:E,isScrolling:_?y:void 0,style:this._getItemStyle(E)}));var D=o(this.props,this._instanceProps);return(0,i.createElement)(m||f||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:$n({position:"relative",height:r,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:s},v)},(0,i.createElement)(l||c||"div",{children:k,ref:a,style:{height:C?"100%":D,pointerEvents:y?"none":void 0,width:C?D:"100%"}}))},u._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],i=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,i,n,o)}if("function"==typeof this.props.onScroll){var s=this.state,r=s.scrollDirection,a=s.scrollOffset,l=s.scrollUpdateWasRequested;this._callOnScroll(r,a,l)}},u._getRangeToRender=function(){var e=this.props,t=e.itemCount,i=e.overscanCount,n=this.state,o=n.isScrolling,s=n.scrollDirection,r=n.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,r,this._instanceProps),d=l(this.props,c,r,this._instanceProps),h=o&&"backward"!==s?1:Math.max(1,i),u=o&&"forward"!==s?1:Math.max(1,i);return[Math.max(0,c-h),Math.max(0,Math.min(t-1,d+u)),c,d]},t}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var fg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},vg=ug({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,i,n,o,s){var r=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,r*a-l),d=Math.min(c,t*a),h=Math.max(0,t*a-l+s+a);switch("smart"===i&&(i=n>=h-l&&n<=d+l?"auto":"center"),i){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(l/2)?0:u>c+Math.floor(l/2)?c:u;default:return n>=h&&n<=d?n:h>d||n<h?h:d}},getOffsetForRowAndAlignment:function(e,t,i,n,o,s){var r=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*r-a),d=Math.min(c,t*r),h=Math.max(0,t*r-a+s+r);switch("smart"===i&&(i=n>=h-a&&n<=d+a?"auto":"center"),i){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(a/2)?0:u>c+Math.floor(a/2)?c:u;default:return n>=h&&n<=d?n:h>d||n<h?h:d}},getColumnStartIndexForOffset:function(e,t){var i=e.columnWidth,n=e.columnCount;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getColumnStopIndexForStartIndex:function(e,t,i){var n=e.columnWidth,o=e.columnCount,s=e.width,r=t*n,a=Math.ceil((s+i-r)/n);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var i=e.rowHeight,n=e.rowCount;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getRowStopIndexForStartIndex:function(e,t,i){var n=e.rowHeight,o=e.rowCount,s=e.height,r=t*n,a=Math.ceil((s+i-r)/n);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),_g=mg({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,i,n,o,s){var r=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,h=e.width,u="horizontal"===r||"horizontal"===d?h:a,g=Math.max(0,l*c-u),p=Math.min(g,t*c),m=Math.max(0,t*c-u+c+s);switch("smart"===i&&(i=n>=m-u&&n<=p+u?"auto":"center"),i){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(u/2)?0:f>g+Math.floor(u/2)?g:f;default:return n>=m&&n<=p?n:n<m?m:p}},getStartIndexForOffset:function(e,t){var i=e.itemCount,n=e.itemSize;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getStopIndexForStartIndex:function(e,t,i){var n=e.direction,o=e.height,s=e.itemCount,r=e.itemSize,a=e.layout,l=e.width,c=t*r,d="horizontal"===n||"horizontal"===a?l:o,h=Math.ceil((d+i-c)/r);return Math.max(0,Math.min(s-1,t+h-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const bg="#BBB",yg="#f1f1f1",Cg={styledScrollbars:"ListBox-styledScrollbars"},wg=(e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Sg=(e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,xg=(e,t,i,n)=>e===t*i+n+i;function Lg({renderProps:e,layoutOptions:t,maxCount:i,columnCount:n,rowCount:o,overflowDisclaimer:s,qCardinal:r,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=wg(e,l),d=l?i.column:i.row,h=(l?n:o)>=d,u=xg(r,c,l?o:n,a),g=!!a&&Sg(e,l),p=h&&!u&&c>=d-1||g||s.state.show;s.set(p)}function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},kg.apply(this,arguments)}const{StyledFixedSizeList:Eg,StyledFixedSizeGrid:Dg}=function(){const e=e=>({scrollbarColor:`${bg} ${yg}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:yg},"&::-webkit-scrollbar-thumb":{backgroundColor:bg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:(0,eg.A)(_g,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${Cg.styledScrollbars}`]:e(t)}))),StyledFixedSizeGrid:(0,eg.A)(vg,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${Cg.styledScrollbars}`]:e(t)})))}}(),Ig=e=>{const t=(0,i.useMemo)((()=>"text"in e?e:{}),[e]);return(0,i.useMemo)((()=>((e,t)=>{const i=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(i.font=t,Array.isArray(e))return Math.max(...e.map((e=>i.measureText(e).width)));const n=i.measureText(e);return Math.ceil(n.width||0)})(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Ng(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Ag({isGridMode:e,dense:t}){let i=t?yh:e?_h:bh;return e&&(i+=Ch),i}const Rg=function({layout:e,width:t,height:i,listCount:n,count:o,freqIsAllowed:s,checkboxes:r,styles:a}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:d={},maxVisibleColumns:h,dense:u,dataLayout:g}=l,{fontSize:p="12px",fontFamily:m="Source sans pro"}=a?.content||{},f=`${p} ${m}`,v=Ig({text:Ng(e),font:f}),_=Ig({text:Ng(5),font:f}),b=Ig({text:Ng(8),font:f}),y=s?_:0,C=r?20:0;let w=56+y+C;!r&&w>=vh&&(w+=20);let S,x,L,k,E=v+18+y+C;!r&&E>=vh&&(E+=20),E=Math.min(150,Math.max(E,w));const D=Ag({isGridMode:"grid"===g,dense:u}),I=i??8*D;if(c){let e=t;"row"===c?(S={overflowX:"hidden"},e+=2*Ch,({rowCount:k,columnWidth:L,columnCount:x}=function({maxVisibleColumns:e,listCount:t,containerWidth:i,columnAutoWidth:n,itemMinWidth:o}){const s=e?.maxColumns||3,r=i-10;let a;const l=Math.min(t,Math.max(1,Math.round(r/Math.max(o,n))));a=!1!==e?.auto?l:Math.min(t,s,l),a=Math.max(a,1);const c=r/a;return{rowCount:Math.ceil(t/a),columnWidth:c,columnCount:a}}({maxVisibleColumns:h,listCount:n,containerWidth:e,columnAutoWidth:E,itemMinWidth:w}))):(S={overflowY:"hidden"},({rowCount:k,columnWidth:L,columnCount:x}=function({maxVisibleRows:e,itemHeight:t,listCount:i,listHeight:n,columnAutoWidth:o,containerWidth:s,itemMinWidth:r}){let a;const l=e?.maxRows||3,c=Math.floor(n/t);a=!1!==e.auto?c:Math.min(i,l,c),a=Math.max(a,1);const d=Math.ceil(i/a);return{columnWidth:Math.max(o,s/d,r),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:D,listCount:n,listHeight:I,columnAutoWidth:E,containerWidth:e,itemMinWidth:w})))}x=("singleColumn"===g?1:x)||1,k=("singleColumn"===g?o:k)||n;const N=l.dense?838e3:577e3;k=Math.min(k,N);const A=Math.floor(3355e4/L);x=Math.min(x,A)||1;const R=k*x;return{columnCount:x,columnWidth:L,rowCount:k,overflowStyling:S,itemHeight:D,listHeight:I,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(n,R),maxCount:{row:N,column:A},itemPadding:Ch,textWidth:v,freqMinWidth:_,freqMaxWidth:b}},Tg=({pages:e=[],minimumBatchSize:t,count:i})=>{const n=e.some((e=>e.qArea.qHeight<t)),o=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return n?o:i},[qg,Mg]=bc({});function Og(e){const t=`${e.id}`,[i]=qg();return{setStoreValue:(e,n)=>i.set(`${t}/${e}`,n),getStoreValue:e=>i.get(`${t}/${e}`)}}function Pg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fg(e){return e instanceof Pg(e).Element||e instanceof Element}function Bg(e){return e instanceof Pg(e).HTMLElement||e instanceof HTMLElement}function Wg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Pg(e).ShadowRoot||e instanceof ShadowRoot)}var Vg=Math.max,zg=Math.min,Hg=Math.round;function jg(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ug(){return!/^((?!chrome|android).)*safari/i.test(jg())}function $g(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),o=1,s=1;t&&Bg(e)&&(o=e.offsetWidth>0&&Hg(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Hg(n.height)/e.offsetHeight||1);var r=(Fg(e)?Pg(e):window).visualViewport,a=!Ug()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/o,c=(n.top+(a&&r?r.offsetTop:0))/s,d=n.width/o,h=n.height/s;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function Gg(e){var t=Pg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kg(e){return e?(e.nodeName||"").toLowerCase():null}function Xg(e){return((Fg(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zg(e){return $g(Xg(e)).left+Gg(e).scrollLeft}function Yg(e){return Pg(e).getComputedStyle(e)}function Qg(e){var t=Yg(e),i=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function Jg(e,t,i){void 0===i&&(i=!1);var n,o,s=Bg(t),r=Bg(t)&&function(e){var t=e.getBoundingClientRect(),i=Hg(t.width)/e.offsetWidth||1,n=Hg(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=Xg(t),l=$g(e,r,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!i)&&(("body"!==Kg(t)||Qg(a))&&(c=(n=t)!==Pg(n)&&Bg(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Gg(n)),Bg(t)?((d=$g(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Zg(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ep(e){var t=$g(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function tp(e){return"html"===Kg(e)?e:e.assignedSlot||e.parentNode||(Wg(e)?e.host:null)||Xg(e)}function ip(e){return["html","body","#document"].indexOf(Kg(e))>=0?e.ownerDocument.body:Bg(e)&&Qg(e)?e:ip(tp(e))}function np(e,t){var i;void 0===t&&(t=[]);var n=ip(e),o=n===(null==(i=e.ownerDocument)?void 0:i.body),s=Pg(n),r=o?[s].concat(s.visualViewport||[],Qg(n)?n:[]):n,a=t.concat(r);return o?a:a.concat(np(tp(r)))}function op(e){return["table","td","th"].indexOf(Kg(e))>=0}function sp(e){return Bg(e)&&"fixed"!==Yg(e).position?e.offsetParent:null}function rp(e){for(var t=Pg(e),i=sp(e);i&&op(i)&&"static"===Yg(i).position;)i=sp(i);return i&&("html"===Kg(i)||"body"===Kg(i)&&"static"===Yg(i).position)?t:i||function(e){var t=/firefox/i.test(jg());if(/Trident/i.test(jg())&&Bg(e)&&"fixed"===Yg(e).position)return null;var i=tp(e);for(Wg(i)&&(i=i.host);Bg(i)&&["html","body"].indexOf(Kg(i))<0;){var n=Yg(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var ap="top",lp="bottom",cp="right",dp="left",hp="auto",up=[ap,lp,cp,dp],gp="start",pp="end",mp="viewport",fp="popper",vp=up.reduce((function(e,t){return e.concat([t+"-"+gp,t+"-"+pp])}),[]),_p=[].concat(up,[hp]).reduce((function(e,t){return e.concat([t,t+"-"+gp,t+"-"+pp])}),[]),bp=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function yp(e){var t=new Map,i=new Set,n=[];function o(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||o(e)})),n}var Cp={placement:"bottom",modifiers:[],strategy:"absolute"};function wp(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Sp(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,o=t.defaultOptions,s=void 0===o?Cp:o;return function(e,t,i){void 0===i&&(i=s);var o,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cp,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;h(),a.options=Object.assign({},s,a.options,o),a.scrollParents={reference:Fg(e)?np(e):e.contextElement?np(e.contextElement):[],popper:np(t)};var r,c,u=function(e){var t=yp(e);return bp.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=u.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,o=e.effect;if("function"==typeof o){var s=o({state:a,name:t,instance:d,options:n});l.push(s||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(wp(t,i)){a.rects={reference:Jg(t,rp(i),"fixed"===a.options.strategy),popper:ep(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],s=o.fn,r=o.options,l=void 0===r?{}:r,h=o.name;"function"==typeof s&&(a=s({state:a,options:l,name:h,instance:d})||a)}else a.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(o())}))}))),r}),destroy:function(){h(),c=!0}};if(!wp(e,t))return d;function h(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),d}}var xp={passive:!0};function Lp(e){return e.split("-")[0]}function kp(e){return e.split("-")[1]}function Ep(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dp(e){var t,i=e.reference,n=e.element,o=e.placement,s=o?Lp(o):null,r=o?kp(o):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case ap:t={x:a,y:i.y-n.height};break;case lp:t={x:a,y:i.y+i.height};break;case cp:t={x:i.x+i.width,y:l};break;case dp:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=s?Ep(s):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case gp:t[c]=t[c]-(i[d]/2-n[d]/2);break;case pp:t[c]=t[c]+(i[d]/2-n[d]/2)}}return t}var Ip={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Np(e){var t,i=e.popper,n=e.popperRect,o=e.placement,s=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=r.x,g=void 0===u?0:u,p=r.y,m=void 0===p?0:p,f="function"==typeof d?d({x:g,y:m}):{x:g,y:m};g=f.x,m=f.y;var v=r.hasOwnProperty("x"),_=r.hasOwnProperty("y"),b=dp,y=ap,C=window;if(c){var w=rp(i),S="clientHeight",x="clientWidth";w===Pg(i)&&"static"!==Yg(w=Xg(i)).position&&"absolute"===a&&(S="scrollHeight",x="scrollWidth"),(o===ap||(o===dp||o===cp)&&s===pp)&&(y=lp,m-=(h&&w===C&&C.visualViewport?C.visualViewport.height:w[S])-n.height,m*=l?1:-1),o!==dp&&(o!==ap&&o!==lp||s!==pp)||(b=cp,g-=(h&&w===C&&C.visualViewport?C.visualViewport.width:w[x])-n.width,g*=l?1:-1)}var L,k=Object.assign({position:a},c&&Ip),E=!0===d?function(e,t){var i=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Hg(i*o)/o||0,y:Hg(n*o)/o||0}}({x:g,y:m},Pg(i)):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},k,((L={})[y]=_?"0":"",L[b]=v?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L)):Object.assign({},k,((t={})[y]=_?m+"px":"",t[b]=v?g+"px":"",t.transform="",t))}const Ap={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Bg(o)&&Kg(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});Bg(n)&&Kg(n)&&(Object.assign(n.style,s),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Rp={left:"right",right:"left",bottom:"top",top:"bottom"};function Tp(e){return e.replace(/left|right|bottom|top/g,(function(e){return Rp[e]}))}var qp={start:"end",end:"start"};function Mp(e){return e.replace(/start|end/g,(function(e){return qp[e]}))}function Op(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Wg(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Pp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fp(e,t,i){return t===mp?Pp(function(e,t){var i=Pg(e),n=Xg(e),o=i.visualViewport,s=n.clientWidth,r=n.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;var c=Ug();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a+Zg(e),y:l}}(e,i)):Fg(t)?function(e,t){var i=$g(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Pp(function(e){var t,i=Xg(e),n=Gg(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=Vg(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=Vg(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Zg(e),l=-n.scrollTop;return"rtl"===Yg(o||i).direction&&(a+=Vg(i.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}(Xg(e)))}function Bp(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Wp(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function Vp(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=void 0===n?e.placement:n,s=i.strategy,r=void 0===s?e.strategy:s,a=i.boundary,l=void 0===a?"clippingParents":a,c=i.rootBoundary,d=void 0===c?mp:c,h=i.elementContext,u=void 0===h?fp:h,g=i.altBoundary,p=void 0!==g&&g,m=i.padding,f=void 0===m?0:m,v=Bp("number"!=typeof f?f:Wp(f,up)),_=u===fp?"reference":fp,b=e.rects.popper,y=e.elements[p?_:u],C=function(e,t,i,n){var o="clippingParents"===t?function(e){var t=np(tp(e)),i=["absolute","fixed"].indexOf(Yg(e).position)>=0&&Bg(e)?rp(e):e;return Fg(i)?t.filter((function(e){return Fg(e)&&Op(e,i)&&"body"!==Kg(e)})):[]}(e):[].concat(t),s=[].concat(o,[i]),r=s[0],a=s.reduce((function(t,i){var o=Fp(e,i,n);return t.top=Vg(o.top,t.top),t.right=zg(o.right,t.right),t.bottom=zg(o.bottom,t.bottom),t.left=Vg(o.left,t.left),t}),Fp(e,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Fg(y)?y:y.contextElement||Xg(e.elements.popper),l,d,r),w=$g(e.elements.reference),S=Dp({reference:w,element:b,strategy:"absolute",placement:o}),x=Pp(Object.assign({},b,S)),L=u===fp?x:w,k={top:C.top-L.top+v.top,bottom:L.bottom-C.bottom+v.bottom,left:C.left-L.left+v.left,right:L.right-C.right+v.right},E=e.modifiersData.offset;if(u===fp&&E){var D=E[o];Object.keys(k).forEach((function(e){var t=[cp,lp].indexOf(e)>=0?1:-1,i=[ap,lp].indexOf(e)>=0?"y":"x";k[e]+=D[i]*t}))}return k}function zp(e,t,i){return Vg(e,zg(t,i))}function Hp(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function jp(e){return[ap,cp,lp,dp].some((function(t){return e[t]>=0}))}var Up=Sp({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,o=n.scroll,s=void 0===o||o,r=n.resize,a=void 0===r||r,l=Pg(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",i.update,xp)})),a&&l.addEventListener("resize",i.update,xp),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",i.update,xp)})),a&&l.removeEventListener("resize",i.update,xp)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Dp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,o=void 0===n||n,s=i.adaptive,r=void 0===s||s,a=i.roundOffsets,l=void 0===a||a,c={placement:Lp(t.placement),variation:kp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Np(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Np(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ap,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.offset,s=void 0===o?[0,0]:o,r=_p.reduce((function(e,i){return e[i]=function(e,t,i){var n=Lp(e),o=[dp,ap].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[dp,cp].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,t.rects,s),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=r}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=i.mainAxis,s=void 0===o||o,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,d=i.boundary,h=i.rootBoundary,u=i.altBoundary,g=i.flipVariations,p=void 0===g||g,m=i.allowedAutoPlacements,f=t.options.placement,v=Lp(f),_=l||(v!==f&&p?function(e){if(Lp(e)===hp)return[];var t=Tp(e);return[Mp(e),t,Mp(t)]}(f):[Tp(f)]),b=[f].concat(_).reduce((function(e,i){return e.concat(Lp(i)===hp?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=i.boundary,s=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?_p:l,d=kp(n),h=d?a?vp:vp.filter((function(e){return kp(e)===d})):up,u=h.filter((function(e){return c.indexOf(e)>=0}));0===u.length&&(u=h);var g=u.reduce((function(t,i){return t[i]=Vp(e,{placement:i,boundary:o,rootBoundary:s,padding:r})[Lp(i)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:i,boundary:d,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=t.rects.reference,C=t.rects.popper,w=new Map,S=!0,x=b[0],L=0;L<b.length;L++){var k=b[L],E=Lp(k),D=kp(k)===gp,I=[ap,lp].indexOf(E)>=0,N=I?"width":"height",A=Vp(t,{placement:k,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),R=I?D?cp:dp:D?lp:ap;y[N]>C[N]&&(R=Tp(R));var T=Tp(R),q=[];if(s&&q.push(A[E]<=0),a&&q.push(A[R]<=0,A[T]<=0),q.every((function(e){return e}))){x=k,S=!1;break}w.set(k,q)}if(S)for(var M=function(e){var t=b.find((function(t){var i=w.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},O=p?3:1;O>0&&"break"!==M(O);O--);t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.mainAxis,s=void 0===o||o,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,h=i.padding,u=i.tether,g=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,f=Vp(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),v=Lp(t.placement),_=kp(t.placement),b=!_,y=Ep(v),C="x"===y?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,x=t.rects.popper,L="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(w){if(s){var I,N="y"===y?ap:dp,A="y"===y?lp:cp,R="y"===y?"height":"width",T=w[y],q=T+f[N],M=T-f[A],O=g?-x[R]/2:0,P=_===gp?S[R]:x[R],F=_===gp?-x[R]:-S[R],B=t.elements.arrow,W=g&&B?ep(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[N],H=V[A],j=zp(0,S[R],W[R]),U=b?S[R]/2-O-j-z-k.mainAxis:P-j-z-k.mainAxis,$=b?-S[R]/2+O+j+H+k.mainAxis:F+j+H+k.mainAxis,G=t.elements.arrow&&rp(t.elements.arrow),K=G?"y"===y?G.clientTop||0:G.clientLeft||0:0,X=null!=(I=null==E?void 0:E[y])?I:0,Z=T+$-X,Y=zp(g?zg(q,T+U-X-K):q,T,g?Vg(M,Z):M);w[y]=Y,D[y]=Y-T}if(a){var Q,J="x"===y?ap:dp,ee="x"===y?lp:cp,te=w[C],ie="y"===C?"height":"width",ne=te+f[J],oe=te-f[ee],se=-1!==[ap,dp].indexOf(v),re=null!=(Q=null==E?void 0:E[C])?Q:0,ae=se?ne:te-S[ie]-x[ie]-re+k.altAxis,le=se?te+S[ie]+x[ie]-re-k.altAxis:oe,ce=g&&se?function(e,t,i){var n=zp(e,t,i);return n>i?i:n}(ae,te,le):zp(g?ae:ne,te,g?le:oe);w[C]=ce,D[C]=ce-te}t.modifiersData[n]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,o=e.options,s=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Lp(i.placement),l=Ep(a),c=[dp,cp].indexOf(a)>=0?"height":"width";if(s&&r){var d=function(e,t){return Bp("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Wp(e,up))}(o.padding,i),h=ep(s),u="y"===l?ap:dp,g="y"===l?lp:cp,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],f=rp(s),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,_=p/2-m/2,b=d[u],y=v-h[c]-d[g],C=v/2-h[c]/2+_,w=zp(b,C,y),S=l;i.modifiersData[n]=((t={})[S]=w,t.centerOffset=w-C,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Op(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,r=Vp(t,{elementContext:"reference"}),a=Vp(t,{altBoundary:!0}),l=Hp(r,n),c=Hp(a,o,s),d=jp(l),h=jp(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}}]});const $p="base";function Gp(e,t){const i=Ot.li[t];return i?`${$p}--${i}`:function(e,t){return`${$p}-${e}-${t}`}(e,t)}const Kp="Popper";function Xp(e){return Gp(Kp,e)}!function(e,t){const i={};["root"].forEach((t=>{i[t]=Gp(e,t)}))}(Kp);const Zp={disableDefaultClasses:!1},Yp=i.createContext(Zp),Qp=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Jp=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function em(e){return"function"==typeof e?e():e}const tm={},im=i.forwardRef((function(e,t){var n;const{anchorEl:o,children:s,direction:r,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:h,popperRef:u,slotProps:g={},slots:p={},TransitionProps:m}=e,f=ar(e,Qp),v=i.useRef(null),_=(0,lr.A)(v,t),b=i.useRef(null),y=(0,lr.A)(b,u),C=i.useRef(y);(0,ua.A)((()=>{C.current=y}),[y]),i.useImperativeHandle(u,(()=>b.current),[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,r),[S,x]=i.useState(w),[L,k]=i.useState(em(o));i.useEffect((()=>{b.current&&b.current.forceUpdate()})),i.useEffect((()=>{o&&k(em(o))}),[o]),(0,ua.A)((()=>{if(!L||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{x(e.placement)}}];null!=l&&(e=e.concat(l)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const t=Up(L,v.current,rr({placement:w},h,{modifiers:e}));return C.current(t),()=>{t.destroy(),C.current(null)}}),[L,a,l,c,h,w]);const E={placement:S};null!==m&&(E.TransitionProps=m);const D=(0,Nt.A)({root:["root"]},function(e){const{disableDefaultClasses:t}=i.useContext(Yp);return i=>t?"":e(i)}(Xp)),I=null!=(n=p.root)?n:"div",N=mr({elementType:I,externalSlotProps:g.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:D.root});return(0,Ft.jsx)(I,rr({},N,{children:"function"==typeof s?s(E):s}))})),nm=i.forwardRef((function(e,t){const{anchorEl:n,children:o,container:s,direction:r="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:u=tm,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:v={}}=e,_=ar(e,Jp),[b,y]=i.useState(!0);if(!l&&!d&&(!m||b))return null;let C;if(s)C=s;else if(n){const e=em(n);C=e&&void 0!==e.nodeType?(0,ld.A)(e).body:(0,ld.A)(null).body}const w=d||!l||m&&!b?void 0:"none",S=m?{in:d,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return(0,Ft.jsx)(wd,{disablePortal:a,container:C,children:(0,Ft.jsx)(im,rr({anchorEl:n,direction:r,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:h,popperOptions:u,popperRef:g,slotProps:f,slots:v},_,{style:rr({position:"fixed",top:0,left:0,display:w},p),TransitionProps:S,children:o}))})}));var om=r(6471);const sm=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],rm=(0,qt.Ay)(nm,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),am=i.forwardRef((function(e,t){var i;const n=(0,om.A)(),o=(0,Tt.A)({props:e,name:"MuiPopper"}),{anchorEl:s,component:r,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:h,modifiers:u,open:g,placement:p,popperOptions:m,popperRef:f,transition:v,slots:_,slotProps:b}=o,y=(0,Et.A)(o,sm),C=null!=(i=null==_?void 0:_.root)?i:null==a?void 0:a.Root,w=(0,Dt.A)({anchorEl:s,container:c,disablePortal:d,keepMounted:h,modifiers:u,open:g,placement:p,popperOptions:m,popperRef:f,transition:v},y);return(0,Ft.jsx)(rm,(0,Dt.A)({as:r,direction:null==n?void 0:n.direction,slots:{root:C},slotProps:null!=b?b:l},w,{ref:t}))}));var lm=r(9456);function cm(e){return(0,Ot.Ay)("MuiTooltip",e)}const dm=(0,Mt.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),hm=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],um=(0,qt.Ay)(am,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.popper,!i.disableInteractive&&t.popperInteractive,i.arrow&&t.popperArrow,!i.open&&t.popperClose]}})((({theme:e,ownerState:t,open:i})=>(0,Dt.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${dm.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${dm.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${dm.arrow}`]:(0,Dt.A)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${dm.arrow}`]:(0,Dt.A)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),gm=(0,qt.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.tooltip,i.touch&&t.touch,i.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,ui.A)(i.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Vn.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${dm.popper}[data-popper-placement*="left"] &`]:(0,Dt.A)({transformOrigin:"right center"},t.isRtl?(0,Dt.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,Dt.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${dm.popper}[data-popper-placement*="right"] &`]:(0,Dt.A)({transformOrigin:"left center"},t.isRtl?(0,Dt.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,Dt.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${dm.popper}[data-popper-placement*="top"] &`]:(0,Dt.A)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${dm.popper}[data-popper-placement*="bottom"] &`]:(0,Dt.A)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),pm=(0,qt.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,Vn.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let mm=!1;const fm=new oo.E;let vm={x:0,y:0};function _m(e,t){return i=>{t&&t(i),e(i)}}const bm=i.forwardRef((function(e,t){var n,o,s,r,a,l,c,d,h,u,g,p,m,f,v,_,b,y,C;const w=(0,Tt.A)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:x,components:L={},componentsProps:k={},describeChild:E=!1,disableFocusListener:D=!1,disableHoverListener:I=!1,disableInteractive:N=!1,disableTouchListener:A=!1,enterDelay:R=100,enterNextDelay:T=0,enterTouchDelay:q=700,followCursor:M=!1,id:O,leaveDelay:P=0,leaveTouchDelay:F=1500,onClose:B,onOpen:W,open:V,placement:z="bottom",PopperComponent:H,PopperProps:j={},slotProps:U={},slots:$={},title:G,TransitionComponent:K=ad,TransitionProps:X}=w,Z=(0,Et.A)(w,hm),Y=i.isValidElement(x)?x:(0,Ft.jsx)("span",{children:x}),Q=_i(),J="rtl"===Q.direction,[ee,te]=i.useState(),[ie,ne]=i.useState(null),oe=i.useRef(!1),se=N||M,re=(0,oo.A)(),ae=(0,oo.A)(),le=(0,oo.A)(),ce=(0,oo.A)(),[de,he]=(0,$h.A)({controlled:V,default:!1,name:"Tooltip",state:"open"});let ue=de;const ge=(0,lm.A)(O),pe=i.useRef(),me=(0,Hn.A)((()=>{void 0!==pe.current&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),ce.clear()}));i.useEffect((()=>me),[me]);const fe=e=>{fm.clear(),mm=!0,he(!0),W&&!ue&&W(e)},ve=(0,Hn.A)((e=>{fm.start(800+P,(()=>{mm=!1})),he(!1),B&&ue&&B(e),re.start(Q.transitions.duration.shortest,(()=>{oe.current=!1}))})),_e=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),ae.clear(),le.clear(),R||mm&&T?ae.start(mm?T:R,(()=>{fe(e)})):fe(e))},be=e=>{ae.clear(),le.start(P,(()=>{ve(e)}))},{isFocusVisibleRef:ye,onBlur:Ce,onFocus:we,ref:Se}=(0,jn.A)(),[,xe]=i.useState(!1),Le=e=>{Ce(e),!1===ye.current&&(xe(!1),be(e))},ke=e=>{ee||te(e.currentTarget),we(e),!0===ye.current&&(xe(!0),_e(e))},Ee=e=>{oe.current=!0;const t=Y.props;t.onTouchStart&&t.onTouchStart(e)};i.useEffect((()=>{if(ue)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,ue]);const De=(0,zn.A)(Y.ref,Se,te,t);G||0===G||(ue=!1);const Ie=i.useRef(),Ne={},Ae="string"==typeof G;E?(Ne.title=ue||!Ae||I?null:G,Ne["aria-describedby"]=ue?ge:null):(Ne["aria-label"]=Ae?G:null,Ne["aria-labelledby"]=ue&&!Ae?ge:null);const Re=(0,Dt.A)({},Ne,Z,Y.props,{className:(0,It.A)(Z.className,Y.props.className),onTouchStart:Ee,ref:De},M?{onMouseMove:e=>{const t=Y.props;t.onMouseMove&&t.onMouseMove(e),vm={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()}}:{}),Te={};A||(Re.onTouchStart=e=>{Ee(e),le.clear(),re.clear(),me(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(q,(()=>{document.body.style.WebkitUserSelect=pe.current,_e(e)}))},Re.onTouchEnd=e=>{Y.props.onTouchEnd&&Y.props.onTouchEnd(e),me(),le.start(F,(()=>{ve(e)}))}),I||(Re.onMouseOver=_m(_e,Re.onMouseOver),Re.onMouseLeave=_m(be,Re.onMouseLeave),se||(Te.onMouseOver=_e,Te.onMouseLeave=be)),D||(Re.onFocus=_m(ke,Re.onFocus),Re.onBlur=_m(Le,Re.onBlur),se||(Te.onFocus=ke,Te.onBlur=Le));const qe=i.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ie),options:{element:ie,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),(0,Dt.A)({},j.popperOptions,{modifiers:t})}),[ie,j]),Me=(0,Dt.A)({},w,{isRtl:J,arrow:S,disableInteractive:se,placement:z,PopperComponentProp:H,touch:oe.current}),Oe=(e=>{const{classes:t,disableInteractive:i,arrow:n,touch:o,placement:s}=e,r={popper:["popper",!i&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,ui.A)(s.split("-")[0])}`],arrow:["arrow"]};return(0,Nt.A)(r,cm,t)})(Me),Pe=null!=(n=null!=(o=$.popper)?o:L.Popper)?n:um,Fe=null!=(s=null!=(r=null!=(a=$.transition)?a:L.Transition)?r:K)?s:ad,Be=null!=(l=null!=(c=$.tooltip)?c:L.Tooltip)?l:gm,We=null!=(d=null!=(h=$.arrow)?h:L.Arrow)?d:pm,Ve=cr(Pe,(0,Dt.A)({},j,null!=(u=U.popper)?u:k.popper,{className:(0,It.A)(Oe.popper,null==j?void 0:j.className,null==(g=null!=(p=U.popper)?p:k.popper)?void 0:g.className)}),Me),ze=cr(Fe,(0,Dt.A)({},X,null!=(m=U.transition)?m:k.transition),Me),He=cr(Be,(0,Dt.A)({},null!=(f=U.tooltip)?f:k.tooltip,{className:(0,It.A)(Oe.tooltip,null==(v=null!=(_=U.tooltip)?_:k.tooltip)?void 0:v.className)}),Me),je=cr(We,(0,Dt.A)({},null!=(b=U.arrow)?b:k.arrow,{className:(0,It.A)(Oe.arrow,null==(y=null!=(C=U.arrow)?C:k.arrow)?void 0:y.className)}),Me);return(0,Ft.jsxs)(i.Fragment,{children:[i.cloneElement(Y,Re),(0,Ft.jsx)(Pe,(0,Dt.A)({as:null!=H?H:am,placement:z,anchorEl:M?{getBoundingClientRect:()=>({top:vm.y,left:vm.x,right:vm.x,bottom:vm.y,width:0,height:0})}:ee,popperRef:Ie,open:!!ee&&ue,id:ge,transition:!0},Te,Ve,{popperOptions:qe,children:({TransitionProps:e})=>(0,Ft.jsx)(Fe,(0,Dt.A)({timeout:Q.transitions.duration.shorter},e,ze,{children:(0,Ft.jsxs)(Be,(0,Dt.A)({},He,{children:[G,S?(0,Ft.jsx)(We,(0,Dt.A)({},je,{ref:ne})):null]}))}))}))]})})),ym=bm,Cm=(0,qt.Ay)(Zo,{shouldForwardProp:e=>!["width","dense"].includes(e)})((({width:e,dense:t})=>({minWidth:`${e}px`,textAlign:"center",fontSize:t?"12px":"14px",...t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}})));function wm({width:e,text:t,dense:n,tooltip:o}){const{translator:s}=(0,i.useContext)(_c);return i.createElement(ym,{title:o?s.get(t):""},i.createElement(Cm,{width:e,dense:n,component:"div",variant:"body1",py:"12px"},s.get(t)))}var Sm=r(6171);const xm=(0,qt.Ay)(Hd)((({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t}))),Lm=(0,qt.Ay)("div")((()=>({paddingLeft:"6px",flexGrow:1}))),km=(0,qt.Ay)("div")((({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"}))),Em=(0,qt.Ay)(Sm.A)((()=>({fontSize:"14px"})));function Dm({text:e,dismiss:t,dense:n,parentWidth:o=0}){const s="function"==typeof t,r=n?370:282,a=Math.max(o/2-r/2,0),l=Math.min(r,o)-42,c=n&&o<r;return i.createElement(xm,{left:a,style:{maxWidth:r}},i.createElement(Lm,null,i.createElement(wm,{text:e,dense:n,width:l,tooltip:c})),i.createElement(km,{dense:n},s&&i.createElement(Ao,{"aria-label":"close",onClick:()=>t()},i.createElement(Em,null))))}const Im=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t,Nm=80;function Am({itemWidth:e,layout:t,frequencyMode:i}){const n=e>Nm,{frequencyEnabled:o=!1}=t?.qListObject||{},s=!["N",void 0].includes(i);return!(!n||!s&&!o)}const Rm=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e)(e);return`Max(AGGR(Count(${t}), ${t}))`},Tm=(e,t)=>{const n=(e=>"fetch"===e?.frequencyMax)(t),[o,s]=(0,i.useState)(),[r,a]=(0,i.useState)(n);return(0,i.useEffect)((()=>{n&&(async()=>{const i=await(async(e,t)=>{const i=e.qListObject.qDimensionInfo,n=i.qGroupFieldDefs[i.qGroupPos],o=Rm(n);return(await t.evaluateEx(o)).qNumber})(t,e);s(i),a(!1)})()}),[n&&t]),{frequencyMax:n?o:t?.frequencyMax,awaitingFrequencyMax:r}},qm=100,Mm=(0,qt.Ay)("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function Om({model:e,app:t,constraints:n,layout:o,selections:s,selectionState:r,direction:a,checkboxes:l,height:c,width:d,frequencyMode:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m=!1,keyboard:f={},showGray:v=!0,scrollState:_,keyScroll:b={state:{},reset:()=>{}},currentScrollIndex:y={set:()=>{}},renderedCallback:C,onCtrlF:w,showSearch:S,isModal:x,styles:L}){const{translator:k}=(0,i.useContext)(_c),[E,D]=(0,i.useState)(!1),I=!(!o||!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:N=l,histogram:A}=o??{},[R,T]=(0,i.useState)(""),q=(0,i.useRef)(null),M=(0,i.useRef)({queue:[],validPages:!1,dataOffset:0}),O=(0,i.useRef)({pages:[]}),{frequencyMax:P,awaitingFrequencyMax:F}=Tm(t,o),{isLoadingData:B,...W}=function({local:e,loaderRef:t,model:n,fetchStart:o,scrollTimeout:s,postProcessPages:r,listData:a}){const[l,c]=(0,i.useState)(!1),[d,h]=(0,i.useState)([]);let[u]=(0,i.useState)(0);const g=(i,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:i+d,stop:l+d});const g=!!t.current&&t.current._listRef&&t.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise((t=>{e.current.timeout=setTimeout((()=>{const i=e.current.queue.slice(-1)[0],s=n.getListObjectData("/qListObjectDef",[{qTop:i.start>u?i.start-u:0,qHeight:u,qLeft:0,qWidth:1},{qTop:i.start,qHeight:u,qLeft:0,qWidth:1}]).then((i=>{const n=r?r(i):i;e.current.validPages=!0,a.current.pages=n,h(n),c(!1),t()}));o&&o(s)}),g?s:0)}))};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(u=e),g)},pages:d,isLoading:l}}({local:M,loaderRef:q,model:e,fetchStart:g,scrollTimeout:0,postProcessPages:p,listData:O}),{getStoreValue:V,setStoreValue:z}=Og(e),H=(0,i.useCallback)(W.loadMoreItems,[o]),[j,U]=(0,i.useState)({show:!1,dismissed:!1}),[$,G]=(0,i.useState)([]);W?.pages&&r.update({setPages:G,pages:W.pages,isSingleSelect:I,layout:o});const K=o?.qListObject.qDimensionInfo.qCardinal;(W?.pages.length&&!F||0===K)&&C?.();const X=(0,i.useCallback)((e=>{if(!$?.length||!M.current.validPages)return!1;M.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,i=$.filter((e=>t(e)))[0];return i&&t(i)}),[o,$]),{interactionEvents:Z,select:Y}=function({selectionState:e,selections:t,checkboxes:n=!1,doc:o=document,loaderRef:s}){const r=(0,i.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,i.useEffect)((()=>{if(!s.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),i=e=>e.preventDefault(),n=s.current._listRef._outerRef;return n.addEventListener("gesturestart",e),n.addEventListener("gesturechange",t),n.addEventListener("gestureend",i),()=>{n.removeEventListener("gesturestart",e),n.removeEventListener("gesturechange",t),n.removeEventListener("gestureend",i)}}),[s.current?._listRef?._outerRef]);const a=async()=>!e.selectDisabled?.()&&(e.setSelectableValuesUpdating(),ah({selections:t,elemNumbers:r.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:r.current.toggle})),l=(t,i)=>function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:i,max:n}=function(e,t){let i=1/0,n=-1/0;return e.forEach((e=>{const o=t.indexOf(e);i=o<i?o:i,n=o>n?o:n})),{min:i,max:n}}(e,t);return t.slice(i,n+1)}([t,i],function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return rh(t)}(e.enginePages)),c=t=>{const{startElemNumber:i}=r.current;if(i===t)return;const n=l(r.current.startElemNumber,t);e.updateItems(n,!0,r.current.elemNumbers)},d=(0,i.useCallback)((t=>{if(e.selectDisabled())return;const i=+t.target.getAttribute("data-n"),n=!e.isSingleSelect&&hh(t.nativeEvent);r.current.elemNumbers=[i],r.current.toggle=n,n||e.clearItemStates(!0),e.updateItem(i),r.current.active=!1,a()}),[]),h=(0,i.useCallback)((t=>{if(0!==t.button||e.selectDisabled())return;const i=+t.currentTarget.getAttribute("data-n"),n=!e.isSingleSelect&&hh(t);r.current.isRange=!1,r.current.startElemNumber=i,r.current.elemNumbers=[i],r.current.toggle=n,r.current.active=!0,n||e.clearItemStates(!0),e.updateItem(i),e.isSingleSelect&&(r.current.active=!1,a()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)}),[]),u=(0,i.useCallback)((e=>{if(0===e.button&&r.current.active){if(r.current.active=!1,r.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}a()}}),[]),g=(0,i.useCallback)((e=>{0===e.button&&r.current.active&&(r.current.active=!1,a())}),[]),p=(0,i.useCallback)((t=>{if(!r.current.active)return;r.current.isRange||(r.current.isRange=!0,e.isSelected(r.current.startElemNumber)||(e.updateItem(r.current.startElemNumber,!0),r.current.elemNumbers=[]));const i=+t.currentTarget.getAttribute("data-n");c(i)}),[]),m=(0,i.useCallback)((t=>{if(r.current.active||r.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void a();const i=Number(t.touches[0].target?.closest(dh)?.getAttribute("data-n")),n=Number(t.touches[1].target?.closest(dh)?.getAttribute("data-n"));Number.isNaN(i)||Number.isNaN(i)?a():(r.current.active=!0,l(i,n).length<7&&(r.current.touchRangeSmall=!0),r.current.elemNumbers=[],r.current.touchElemNumbers=[i,n])}),[]),f=(0,i.useCallback)((()=>{if(2!==r.current.touchElemNumbers.length)return;if(r.current.touchRangeSmall)return r.current.touchRangeSmall=!1,r.current.touchElemNumbers=[],void(r.current.active=!1);const[e,t]=r.current.touchElemNumbers;r.current.startElemNumber=e,c(t),r.current.touchElemNumbers=[],r.current.active=!1,r.current.toggle=!0,a()}),[]);(0,i.useEffect)((()=>(o.addEventListener("mouseup",g),()=>{o.removeEventListener("mouseup",g)})),[g]),(0,i.useEffect)((()=>{const i=()=>{e.clearItemStates(!1)},n=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return t.on("clearItemStates",i),t.on("deactivated",i),t.on("cleared",n),()=>{t.removeListener("clearItemStates",i),t.removeListener("deactivated",i),t.removeListener("cleared",n)}}),[t]);const v={};return n?Object.assign(v,{onChange:d}):Object.assign(v,{onMouseUp:u,onMouseDown:h,onMouseEnter:p,onTouchStart:m,onTouchEnd:f}),{interactionEvents:v,select:async(i=[],n=!1,o=void 0)=>{if(e.selectDisabled?.())return!1;const s=!e.isSingleSelect&&hh(o?.nativeEvent);s||e.clearItemStates(!0);const r=[];return e.updateItems(i,n,r),e.setSelectableValuesUpdating(),ah({selections:t,elemNumbers:n?r:i,isSingleSelect:e.isSingleSelect,toggle:s})}}}({selectionState:r,selections:s,checkboxes:N,doc:document,loaderRef:q}),{layoutOptions:Q={}}=o||{};let J=!0;Q.dataLayout&&(J="singleColumn"===Q.dataLayout||"row"===Q?.layoutOrder);const ee="grid"===Q?.dataLayout,te=e=>{const t={...J?{rowIndex:e}:{columnIndex:e}},i=ee?t:e;q.current._listRef.scrollToItem(i)},ie=()=>{if(M.current.queue=[],M.current.validPages=!1,q.current){q.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===b.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&b.reset());M.current.dataOffset=0,te(0)}};u&&u.call(null,ie),(0,i.useEffect)((()=>{_&&!E&&q.current&&(q.current._listRef.scrollToItem(_.initScrollPos),D(!0))}),[q.current]),(0,i.useEffect)((()=>{ie()}),[o,M.current.dataOffset]);let ne=qm;const oe="grid"!==Q.dataLayout,se=o?.qListObject.qSize?.qcy,re=function({pages:e,minimumBatchSize:t,count:i,calculatePagesHeight:n=!1}){return(e?.length&&n?Tg({pages:e,minimumBatchSize:t,count:i}):i)||0}({pages:$,minimumBatchSize:ne,count:se,calculatePagesHeight:m,layoutOptions:Q,model:e});let ae=Am({itemWidth:d,layout:o,frequencyMode:h});const le=function(e){return e.some((({qMatrix:e})=>e.some((([e])=>!!e.qFrequency?.match("%")))))?"P":"-"}($),ce=Rg({layout:o,width:d,height:c,listCount:re,count:se,freqIsAllowed:ae,checkboxes:N,styles:L});ce.columnWidth&&(ae=Am({itemWidth:ce.columnWidth,layout:o,frequencyMode:h}));const{listCount:de}=ce;z("listCount",de);const he=V("inputText");(0,i.useEffect)((()=>{if(he){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(de),t=k.get(e,[de]);T(t)}}),[he,de]);const ue=e=>{const{scrollIndex:t,offset:i,triggerRerender:n}=function({position:e,isRow:t,sizes:i,layout:n,offset:o}){let s,r=!1,a=o??0;switch(e){case"start":s=0;break;case"end":s=t?i.rowCount:i.columnCount;break;case"overflowStart":a=0,s=0,r=!0;break;case"overflowEnd":a=Im(n,i.listCount),s=n.qListObject.qDimensionInfo.qCardinal,r=!0}return{scrollIndex:s,offset:a,triggerRerender:r}}({position:e,isRow:J,sizes:ce,layout:o,offset:M.current.dataOffset});M.current.dataOffset=i,n&&r.triggerStateChanged(),te(t)};(0,i.useEffect)((()=>{const e=b.state;e.up?te(y.state.start-e.up):e.down?te(y.state.stop+e.down):e.scrollPosition&&ue(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&b.reset()}),[b.state.up,b.state.down,b.state.scrollPosition]);const{textAlign:ge}=o?.qListObject.qDimensionInfo||{},[pe,me]=(0,i.useState)({first:!1,last:!1}),{List:fe,Grid:ve}=function({layout:e,width:t,checkboxes:n,local:o,isVertical:s,pages:r,selectionState:a,interactionEvents:l,deducedFrequencyMode:c,histogram:d,isSingleSelect:h,select:u,selectAll:g,onCtrlF:p,textAlign:m,selections:f,keyboard:v,showGray:_,scrollState:b,direction:y,sizes:C,listCount:w,overflowDisclaimer:S,setScrollPosition:x,focusListItems:L,setCurrentScrollIndex:k,constraints:E,frequencyMax:D,freqIsAllowed:I,translator:N,showSearch:A,isModal:R,styles:T}){const{layoutOptions:q={}}=e||{},{columnWidth:M,listHeight:O,itemHeight:P,rowCount:F,columnCount:B}=C||{},W=("grid"===q.dataLayout?M:t)>vh,V={direction:"rtl"===y?"rtl":"ltr",useIsScrolling:!0,className:Cg.styledScrollbars},z=e?.qListObject.qDimensionInfo.qLocked,H=O<=P,j={isLocked:z,column:!s,pages:r,...z||a.selectDisabled()?{}:l,checkboxes:n,layoutOptions:q,deducedFrequencyMode:c,freqIsAllowed:I,isSingleSelect:h,textAlign:m,sizes:C,actions:{select:u,confirm:()=>f?.confirm.call(f),cancel:()=>f?.cancel.call(f),setScrollPosition:x,selectAll:g,onCtrlF:p},frequencyMax:D,histogram:d,keyboard:v,showGray:_,showTick:W,dataOffset:o.current.dataOffset,focusListItems:L,direction:y,translator:N,showSearch:A,isModal:R,styles:T,fillHeight:H};return{List:({onItemsRendered:n,ref:s})=>(o.current.listRef=s,i.createElement(Eg,kg({},V,{dataTestid:"fixed-size-list",scrollDisabled:E?.active,height:O,width:t,itemCount:w,itemData:{...j,listCount:w},itemSize:P,onItemsRendered:t=>{k({start:t.visibleStartIndex,stop:t.visibleStopIndex}),b&&b.setScrollPos(t.visibleStopIndex),Lg({renderProps:t,layoutOptions:q,maxCount:C.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),n({...t})},ref:s}),Ju)),Grid:({onItemsRendered:n,ref:s})=>{const{overflowStyling:r,scrollBarWidth:a}=C,{layoutOrder:l}=q||{},c=Math.min(O,F*P+a);return o.current.listRef=s,i.createElement(Dg,kg({},V,{dataTestid:"fixed-size-grid",scrollDisabled:E?.active,height:c,width:t,columnCount:B,columnWidth:M,rowCount:F,rowHeight:P,style:{...r},itemData:{...j,column:void 0,columnCount:B,rowCount:F},onItemsRendered:t=>{const i="row"===l;k({start:i?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:i?t.visibleRowStopIndex:t.visibleColumnStopIndex});const s=function(e){const{renderProps:t,scrollState:i,layoutOrder:n,rowCount:o,columnCount:s}=e,{overscanRowStartIndex:r,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let h,u,g,p;return i&&i.setScrollPos(d),"column"===n?(h=l*o,u=r,g=c*o,p=a):(h=l,u=r*s,g=c,p=a*s),{visibleStartIndex:h+u,visibleStopIndex:g+p}}({renderProps:t,scrollState:b,layoutOrder:l,rowCount:F,columnCount:B});Lg({renderProps:t,layoutOptions:q,maxCount:C.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),n(s)},ref:s}),Ju)}}}({direction:a,layout:o,height:c,width:d,checkboxes:N,deducedFrequencyMode:le,histogram:A,keyboard:f,showGray:v,interactionEvents:Z,select:Y,selectAll:()=>{r.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:w,textAlign:ge,isVertical:oe,pages:$,selectionState:r,isSingleSelect:I,selections:s,scrollState:_,local:M,sizes:ce,listCount:de,overflowDisclaimer:{state:j,set:e=>U((t=>({...t,show:e})))},setScrollPosition:ue,focusListItems:{first:pe.first,setFirst:e=>me((t=>({...t,first:e}))),last:pe.last,setLast:e=>me((t=>({...t,last:e})))},setCurrentScrollIndex:y.set,constraints:n,frequencyMax:P,freqIsAllowed:ae,translator:k,showSearch:S,isModal:x,styles:L}),{columnWidth:_e,listHeight:be,itemHeight:ye}=ce||{};return oe||(ne=function({width:e,columnWidth:t,listHeight:i,itemHeight:n}){return Math.ceil(e/t)*Math.ceil(i/n)*2}({width:d,columnWidth:_e,listHeight:be,itemHeight:ye})),i.createElement(Mm,null,i.createElement(Gu,{className:"screenReaderOnly",layout:o}),i.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},R),!de&&K>0&&i.createElement(wm,{width:d,text:"Listbox.NoMatchesForYourTerms"}),i.createElement(oh,{isItemLoaded:X,itemCount:de||1,loadMoreItems:H.with({minimumBatchSize:ne}),threshold:0,minimumBatchSize:ne,ref:q,role:"grid"},oe?fe:ve),j.show&&!j.dismissed&&i.createElement(Dm,{text:"Listbox.ItemsOverflow",dismiss:()=>U((e=>({...e,dismissed:!0}))),parentWidth:q?.current?._listRef?.props?.width,dense:Q?.dense}))}const Pm=e=>({...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"}}]}),Fm=e=>({...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"}}]}),Bm=e=>({...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"}}]}),Wm=e=>({...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"}}]}),Vm=({layout:e,model:t,translator:i,selectionState:n,isDirectQuery:o=!1})=>e.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:i.get("Selection.SelectAll"),getSvgIconShape:Pm,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:i.get("Selection.SelectPossible"),getSvgIconShape:Bm,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectPossible("/qListObjectDef")}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:i.get("Selection.SelectAlternative"),getSvgIconShape:Fm,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectAlternative("/qListObjectDef")}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:i.get("Selection.SelectExcluded"),getSvgIconShape:Wm,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean);function zm(e){return(0,Ot.Ay)("MuiDivider",e)}const Hm=(0,Mt.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),jm=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Um=(0,qt.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.absolute&&t.absolute,t[i.variant],i.light&&t.light,"vertical"===i.orientation&&t.vertical,i.flexItem&&t.flexItem,i.children&&t.withChildren,i.children&&"vertical"===i.orientation&&t.withChildrenVertical,"right"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignRight,"left"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,Dt.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,Vn.X4)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,Dt.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,Dt.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,Dt.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,Dt.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),$m=(0,qt.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.wrapper,"vertical"===i.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,Dt.A)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Gm=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:s,component:r=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==r?"separator":void 0),textAlign:h="center",variant:u="fullWidth"}=i,g=(0,Et.A)(i,jm),p=(0,Dt.A)({},i,{absolute:n,component:r,flexItem:a,light:l,orientation:c,role:d,textAlign:h,variant:u}),m=(e=>{const{absolute:t,children:i,classes:n,flexItem:o,light:s,orientation:r,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,s&&"light","vertical"===r&&"vertical",o&&"flexItem",i&&"withChildren",i&&"vertical"===r&&"withChildrenVertical","right"===a&&"vertical"!==r&&"textAlignRight","left"===a&&"vertical"!==r&&"textAlignLeft"],wrapper:["wrapper","vertical"===r&&"wrapperVertical"]};return(0,Nt.A)(c,zm,n)})(p);return(0,Ft.jsx)(Um,(0,Dt.A)({as:r,className:(0,It.A)(m.root,s),role:d,ref:t,ownerState:p},g,{children:o?(0,Ft.jsx)($m,{className:m.wrapper,ownerState:p,children:o}):null}))}));Gm.muiSkipListHighlight=!0;const Km=Gm,Xm=e=>({...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 Zm(e){const t=_i(),i="function"==typeof e.enabled?!e.enabled():!!e.disabled,n="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:i,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:n}}const Ym={className:"njs-cell-action"},Qm=i.forwardRef((({ariaExpanded:e=!1,item:t,addAnchor:n=!1},o)=>{const s=_i(),{hidden:r,disabled:a,style:l,hasSvgIconShape:c}=Zm(t);if(r)return null;const d=Number.parseInt(s.spacing(.5),10),h=t.keyboardAction||t.action,u=h?e=>["Enter"].includes(e.key)&&h():null,g=h?e=>[" ","Spacebar"].includes(e.key)&&h():null,p=`actions-toolbar-${t.key}`;return i.createElement(Ao,{ref:n?null:o,title:t.label,onClick:t.action,onKeyDown:u,onKeyUp:g,disabled:a,style:l,className:[Ym.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":e,"aria-controls":"moreMenuList","data-testid":p},c&&Es(t.getSvgIconShape()),n&&i.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Jm=Qm,ef=e=>({...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"}}]}),tf=e=>({...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"}}]}),nf=e=>Es(tf(e));function of(e){return(0,Ot.Ay)("MuiListItemIcon",e)}const sf=(0,Mt.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);function rf(e){return(0,Ot.Ay)("MuiMenuItem",e)}const af=(0,Mt.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],cf=(0,qt.Ay)(Lo,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.dense&&t.dense,i.divider&&t.divider,!i.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,Dt.A)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${af.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Vn.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${af.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Vn.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${af.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Vn.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Vn.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${af.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${af.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Hm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Hm.inset}`]:{marginLeft:52},[`& .${Js.root}`]:{marginTop:0,marginBottom:0},[`& .${Js.inset}`]:{paddingLeft:36},[`& .${sf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,Dt.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${sf.root} svg`]:{fontSize:"1.25rem"}})))),df=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:r=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:u}=n,g=(0,Et.A)(n,lf),p=i.useContext(Is),m=i.useMemo((()=>({dense:r||p.dense||!1,disableGutters:l})),[p.dense,r,l]),f=i.useRef(null);(0,Ps.A)((()=>{o&&f.current&&f.current.focus()}),[o]);const v=(0,Dt.A)({},n,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:i,divider:n,disableGutters:o,selected:s,classes:r}=e,a={root:["root",i&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",s&&"selected"]},l=(0,Nt.A)(a,rf,r);return(0,Dt.A)({},r,l)})(n),b=(0,zn.A)(f,t);let y;return n.disabled||(y=void 0!==h?h:-1),(0,Ft.jsx)(Is.Provider,{value:m,children:(0,Ft.jsx)(cf,(0,Dt.A)({ref:b,role:d,tabIndex:y,component:s,focusVisibleClassName:(0,It.A)(_.focusVisible,c),className:(0,It.A)(_.root,u)},g,{ownerState:v,classes:_}))})})),hf=df,uf=["className"],gf=(0,qt.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"flex-start"===i.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,Dt.A)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),pf=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiListItemIcon"}),{className:o}=n,s=(0,Et.A)(n,uf),r=i.useContext(Is),a=(0,Dt.A)({},n,{alignItems:r.alignItems}),l=(e=>{const{alignItems:t,classes:i}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Nt.A)(n,of,i)})(a);return(0,Ft.jsx)(gf,(0,Dt.A)({className:(0,It.A)(l.root,o),ownerState:a,ref:t},s))})),mf=pf,ff=hd,vf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _f(e,t,i){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:i?null:e.firstChild}function bf(e,t,i){return e===t?i?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:i?null:e.lastChild}function yf(e,t){if(void 0===t)return!0;let i=e.innerText;return void 0===i&&(i=e.textContent),i=i.trim().toLowerCase(),0!==i.length&&(t.repeating?i[0]===t.keys[0]:0===i.indexOf(t.keys.join("")))}function Cf(e,t,i,n,o,s){let r=!1,a=o(e,t,!!t&&i);for(;a;){if(a===e.firstChild){if(r)return!1;r=!0}const t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&yf(a,s)&&!t)return a.focus(),!0;a=o(e,a,i)}return!1}const wf=i.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:s=!1,children:r,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:h="selectedMenu"}=e,u=(0,Et.A)(e,vf),g=i.useRef(null),p=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Ps.A)((()=>{o&&g.current.focus()}),[o]),i.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const i=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&i){const i=`${ff((0,qr.A)(e))}px`;g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=i,g.current.style.width=`calc(100% + ${i})`}return g.current}})),[]);const m=(0,zn.A)(g,t);let f=-1;i.Children.forEach(r,((e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===f)&&(f=t),f===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=r.length&&(f=-1))):f===t&&(f+=1,f>=r.length&&(f=-1))}));const v=i.Children.map(r,((e,t)=>{if(t===f){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return(0,Ft.jsx)(qs,(0,Dt.A)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,i=e.key,n=(0,qr.A)(t).activeElement;if("ArrowDown"===i)e.preventDefault(),Cf(t,n,c,l,_f);else if("ArrowUp"===i)e.preventDefault(),Cf(t,n,c,l,bf);else if("Home"===i)e.preventDefault(),Cf(t,null,c,l,_f);else if("End"===i)e.preventDefault(),Cf(t,null,c,l,bf);else if(1===i.length){const o=p.current,s=i.toLowerCase(),r=performance.now();o.keys.length>0&&(r-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&s!==o.keys[0]&&(o.repeating=!1)),o.lastTime=r,o.keys.push(s);const a=n&&!o.repeating&&yf(n,o);o.previousKeyMatched&&(a||Cf(t,n,!1,l,_f,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},u,{children:v}))})),Sf=wf;function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},xf.apply(this,arguments)}const Lf="More-icon",kf=(0,qt.Ay)(th)((({theme:e})=>({pointerEvents:"none",[`& .${Lf} *`]:{color:e.palette.text.primary}})));function Ef({item:e,autoFocus:t,onActionClick:n=(()=>{})}){const{hidden:o,disabled:s,hasSvgIconShape:r}=Zm(e);return o?null:i.createElement(hf,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:s,tabindex:"0"},r&&i.createElement(mf,{className:Lf},Es(e.getSvgIconShape())),i.createElement(Zo,{noWrap:!0},e.label))}const Df=i.forwardRef((({actions:e=[],show:t=!0,alignTo:n,popoverProps:o={},popoverPaperStyle:s={},onCloseOrActionClick:r=(()=>{})},a)=>{const l=e.length>0,c=e.findIndex((e=>!e.disabled));return l&&i.createElement(kf,xf({},o,{onClose:r,ref:a,open:t,anchorEl:n.current,getContentAnchorEl:null,container:n.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:{pointerEvents:"auto",maxWidth:"250px",...s}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),i.createElement(Sf,{id:"moreMenuList"},e.map(((e,t)=>i.createElement(Ef,{key:t,item:e,autoFocus:t===c,onActionClick:r})))))})),If="ActionsToolbar",Nf={item:`${If}-item`,itemSpacing:`${If}-itemSpacing`},Af=(0,qt.Ay)(th)((({theme:e})=>({[`& .${Nf.itemSpacing}`]:{padding:e.spacing(0,.25)}}))),Rf=i.forwardRef((({className:e,ariaExpanded:t=!1,actions:n=[],addAnchor:o=!1,isRtl:s=!1},r)=>n.length>0?i.createElement(Ho,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:e},n.map(((e,n)=>i.createElement(Ho,{item:!0,key:e.key,className:`${Nf.itemSpacing} ${Nf.item}`},i.createElement(Jm,{ariaExpanded:t,key:e.key,item:e,ref:0===n?r:null,addAnchor:o}))))):null)),Tf={pointerEvents:"none"},qf={vertical:"bottom",horizontal:"right"},Mf=function({show:e=!0,actions:t=[],maxItems:n=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:r={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:a={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:c=null,isRtl:d,autoConfirm:h=!1,layout:u}){const g=function({api:e,layout:t,onConfirm:n=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:s=(()=>{})}){const{translator:r}=(0,i.useContext)(_c);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(t),action:()=>e.clear(),getSvgIconShape:tf},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(t),action:()=>{o(),e.cancel()},keyboardAction:()=>{s(),o(),e.cancel()},getSvgIconShape:ef},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(t),action:()=>{n(),e.confirm()},keyboardAction:()=>{s(),n(),e.confirm()},getSvgIconShape:uh}]}({...o,layout:u}),{translator:p,keyboardNavigation:m}=(0,i.useContext)(_c),[f,v]=(0,i.useState)(!1),_={vertical:12,horizontal:(a.anchorEl?.clientWidth??0)-7},b=(0,i.useRef)(),y=(0,i.useRef)(),C=_i(),w=(0,i.useMemo)((()=>({margin:C.spacing(.5,0)}))),S=e=>{const t=b.current||c;if(!t)return null;const i=t.querySelectorAll("button:not(.Mui-disabled)");return i[e?i.length-1:0]},x=(0,i.useMemo)((()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:i,selections:n,isRtl:o}){return s=>{const{target:r,nativeEvent:a}=s,{keyCode:l}=a;switch(l){case Xu.ARROW_LEFT:case Xu.ARROW_DOWN:case Xu.ARROW_RIGHT:case Xu.ARROW_UP:if(r.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),i=t?.querySelectorAll(".njs-cell-action");return Array.from(i).indexOf(e)})(r);let t=[Xu.ARROW_LEFT,Xu.ARROW_DOWN].includes(l);t=o?!t:t,(e=>{const t=document.querySelector("#actions-toolbar"),i=t?.querySelectorAll(".njs-cell-action");i.length&&i[Math.min(Math.max(0,e),i.length-1)].focus()})(t?e-1:e+1)}s.stopPropagation(),s.preventDefault();break;case Xu.SPACE:s.preventDefault();break;case Xu.TAB:e&&t?.refocusContent&&(s.shiftKey&&i(!1)===s.target||!s.shiftKey&&i(!0)===s.target)&&(s.preventDefault(),s.stopPropagation(),t.refocusContent());break;case Xu.ESCAPE:n&&(n.onCancel(),n.api.cancel(),s.preventDefault(),s.stopPropagation())}}}({keyboardNavigation:m,focusHandler:l,getEnabledButton:S,selections:o,isRtl:d})),[m,l,S,o,d]);if((0,i.useEffect)((()=>()=>{v(!1)}),[a.show,e,o.show]),(0,i.useEffect)((()=>{l&&(l.on("focus_toolbar_first",(()=>{const e=S(!1);e?.focus()})),l.on("focus_toolbar_last",(()=>{const e=S(!0);e?.focus()})))}),[]),h)return;let L=r.enabled,k=r.actions;const E=r.alignTo||y,D=t.filter((e=>!e.hidden));if(D.length>n){const e=D.splice(-(D.length-n)-1);L=!0,k=[...e,...r.actions]}if(!o.show&&0===D.length)return null;const I={key:"more",label:p.get("Menu.More"),getSvgIconShape:Xm,hidden:!1,active:f,enabled:()=>L,action:()=>v(!f)},N=D.length>0,A=k.length>0,R=N&&o.show||A&&o.show,T=i.createElement(Ho,{ref:b,onKeyDown:x,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:d?"row-reverse":"row"}},s?.length&&i.createElement(Rf,{className:"actions-toolbar-extra-actions",actions:s,isRtl:d}),N&&i.createElement(Rf,{actions:D}),A&&i.createElement(Rf,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:f,actions:[I],addAnchor:!0}),R&&i.createElement(Ho,{item:!0,className:Nf.itemSpacing,style:w},i.createElement(Km,{orientation:"vertical"})),o.show&&i.createElement(Rf,{className:"actions-toolbar-default-actions",actions:g,isRtl:d}),f&&i.createElement(Df,{show:f,actions:k,alignTo:E,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)}}));return a.show?i.createElement(Af,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:_,transformOrigin:qf,hideBackdrop:!0,style:Tf,slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:C.spacing(.5,.25)}}}},T):e&&T};function Of(e){return(0,Ot.Ay)("MuiInputAdornment",e)}const Pf=(0,Mt.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ff;const Bf=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Wf=(0,qt.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`position${(0,ui.A)(i.position)}`],!0===i.disablePointerEvents&&t.disablePointerEvents,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Pf.positionStart}&:not(.${Pf.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Vf=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiInputAdornment"}),{children:o,className:s,component:r="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=n,h=(0,Et.A)(n,Bf),u=oa()||{};let g=d;d&&u.variant,u&&!g&&(g=u.variant);const p=(0,Dt.A)({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:i,hiddenLabel:n,position:o,size:s,variant:r}=e,a={root:["root",i&&"disablePointerEvents",o&&`position${(0,ui.A)(o)}`,r,n&&"hiddenLabel",s&&`size${(0,ui.A)(s)}`]};return(0,Nt.A)(a,Of,t)})(p);return(0,Ft.jsx)(na.Provider,{value:null,children:(0,Ft.jsx)(Wf,(0,Dt.A)({as:r,ownerState:p,className:(0,It.A)(m.root,s),ref:t},h,{children:"string"!=typeof o||l?(0,Ft.jsxs)(i.Fragment,{children:["start"===c?Ff||(Ff=(0,Ft.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,Ft.jsx)(Zo,{color:"text.secondary",children:o})}))})})),zf=Vf,Hf=e=>Es((e=>({...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)),jf="/qListObjectDef",Uf="**",$f=(0,qt.Ay)(Oa,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((({theme:e,styles:t,dense:i,isRtl:n})=>{let o={};return i&&(o={fontSize:12,paddingLeft:e.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),{display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:"9px",flexDirection:n?"row-reverse":"row","& fieldset":{borderColor:`${t.search.borderColor}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:`${t.search.highlightBorderColor} !important`},"& .MuiInputBase-root":{...t.search},"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:n?"right":"left"},...o}}));function Gf({selections:e,selectionState:t,model:n,keyboard:o,dense:s=!1,visible:r=!0,autoFocus:a=!0,wildCardSearch:l=!1,searchEnabled:c,direction:d,hide:h,styles:u}){const{translator:g}=(0,i.useContext)(_c),[p,m]=(0,i.useState)(""),[f,v]=(0,i.useState)(!1),_=(0,i.useRef)(),{getStoreValue:b,setStoreValue:y}=Og(n),C="rtl"===d,w=async()=>{if(t.selectDisabled()||e.isModal())try{await n.abortListObjectSearch(jf)}finally{m("")}};(0,i.useEffect)((()=>{r||w()}),[r]),(0,i.useEffect)((()=>(e.on("deactivated",w),()=>{e.removeListener&&e.removeListener("deactivated",w)})),[]),(0,i.useEffect)((()=>{if(f&&_.current){const e=p.length-1;_.current.setSelectionRange(e,e),v(!1)}}),[f,_.current]),(0,i.useEffect)((()=>{y("inputText",p)}),[p]);function S(e){const t=e?.querySelector(".last-focused")||e?.querySelector('[role="row"]:first-child');t?.setAttribute("tabIndex",0),t?.focus()}return r&&!1!==c?i.createElement($f,{styles:u,dense:s,isRtl:C,startAdornment:i.createElement(zf,{position:"start"},i.createElement(Hf,{size:s?"small":"normal"})),className:"search",inputRef:_,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:p,onFocus:()=>{l&&(m(Uf),v(!0)),t.selectDisabled()||e.isModal()||e.begin(["/qListObjectDef"])},onChange:async e=>(m(e.target.value),e.target.value.length?n.searchListObjectFor(jf,e.target.value):w()),onKeyDown:async i=>{const{currentTarget:s}=i,r=s.closest(".listbox-container");switch(i.key){case"Enter":(async()=>{let i;const o=await n.searchListObjectFor(jf,p);t.selectDisabled()||o&&p.length&&b("listCount")>0&&(i=n.acceptListObjectSearch(jf,!0),e.selectionsMade=!0,t.clearItemStates(!1),m(""))})();break;case"Escape":S(r),e.isActive()&&e.cancel();break;case"Tab":i.shiftKey?o.focusSelection():(S(r),r?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!i.ctrlKey&&!i.metaKey)return;h&&(h(),S(r));break;default:return}i.preventDefault(),i.stopPropagation()},autoFocus:a,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}function Kf(e){return Object.keys(yl().prototype).forEach((t=>{e[t]=yl().prototype[t]})),yl().init(e),e}const Xf=({appSelections:e,appModal:t,model:i})=>{let n,o=!1,s=!1;const r={id:i.id,setLayout(e){n=e},begin(e){const n=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",n),n.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:i,paths:e,accept:!0,objectSelections:r}))},clear(){return s=!1,this.emit("cleared"),n.qListObject?i.clearSelections("/qListObjectDef"):i.resetMadeSelections()},confirm(){return s=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return s=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const n=this.begin([t.params[0]]);if(!e.isModal())return!1;await n;const o=await i[t.method](...t.params);return s="resetMadeSelections"!==t.method,!!o||(i.resetMadeSelections(),!1)},canClear:()=>n&&n.qListObject&&n.qListObject.qDimensionInfo?!n.qListObject.qDimensionInfo.qLocked&&!n.qListObject.qDimensionInfo.qIsOneAndOnlyOne:s,canConfirm:()=>n&&n.qListObject&&n.qListObject.qDimensionInfo?!n.qListObject.qDimensionInfo.qLocked:s,canCancel:()=>!(n&&n.qListObject&&n.qListObject.qDimensionInfo&&n.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(r),goModal:e=>t.begin({model:i,paths:e,accept:!1,objectSelections:r}),noModal:(e=!1)=>t.end(e)};return Kf(r),r},Zf=({elements:e,objectSelections:t,options:i={}})=>{const n=function({elements:e,handleClickOutside:t}){return i=>{if(!document.contains(i.target))return;const n=e.map((e=>"string"==typeof e?document.querySelector(e):e?.current)).filter((e=>!!e&&!!document.contains(e)));n.length&&!n.some((e=>e.contains(i.target)))&&t(i)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",n),i?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",n),i?.onSelectionDeactivated?.()}}};function Yf(e,t,n,o){const s=Array.isArray(n)?n:[n],[r]=kc(e),[a]=Zc(t),[l]=wc(),c=l.get(e.id),[d,h]=(0,i.useState)();return(0,i.useEffect)((()=>{r&&t&&!d&&h(Xf({appSelections:r,appModal:c,model:t}))}),[r,t]),(0,i.useEffect)((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Zf({elements:s,objectSelections:d,options:o});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),(0,i.useEffect)((()=>{d&&d.setLayout(a)}),[d,a]),[d]}function Qf(e={}){const t={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0,...e,update({setPages:e,pages:i,isSingleSelect:n,selectDisabled:o,layout:s}){this.setPages=e;const r=this.lastRowCount===s.qListObject.qSize.qcy,a=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;r&&a||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),t.enginePages!==i&&void 0!==i&&(t.enginePages=i??[],t.selectedInEngine=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return i=t.qState,!!sh.includes(i)&&t.qElemNumber;var i})).filter((e=>!1!==e))));return rh(t)}(i),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=n,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=s?.qListObject?.qDimensionInfo?.qIsCalculated??!1},allowedToSelect:()=>!(t.selectDisabled()||t.isDimCalculated&&t.selectableValuesUpdating),setSelectableValuesUpdating(){t.selectableValuesUpdating=!0},useClientItemState:e=>t.ignoreSelectionState||e in t.itemStates,isSelected:e=>t.useClientItemState(e)?!!t.itemStates[e]:t.selectedInEngine.includes(e),getState(e){const{qElemNumber:i,qState:n}=e;return t.useClientItemState(i)?t.itemStates[i]?"XS"===n?"XS":"S":"S"===n||"XS"===n?"A":n:n},updateItemNoEvents(e,i,n){const o=t.isSelected(e);o&&!i?t.itemStates[e]=!1:o||(n?.push(e),t.itemStates[e]=!0)},triggerStateChanged(){if(this.setPages){const e=t.applySelectionsOnPages(t.enginePages);this.setPages(e)}},applySelectionsOnPages:e=>e.map((e=>{const i=e.qMatrix.map((e=>{const[i]=e,n=t.getState(i);return[{...i,qState:n},...e.slice(1)]}));return{...e,qMatrix:i}})),updateItem(e,i,n){t.updateItemNoEvents(e,i,n),t.triggerStateChanged()},updateItems(e,i,n){e.forEach((e=>{t.updateItemNoEvents(e,i,n)})),t.triggerStateChanged()},clearItemStates(e){t.itemStates={},t.ignoreSelectionState=e}};return t}const Jf=(e,t,i=void 0)=>e?.[t]??i;function ev(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return Jf(t,"qSelected",0)+Jf(t,"qSelectedExcluded",0)+Jf(t,"qLocked",0)+Jf(t,"qLockedExcluded",0)>0}const tv={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},iv=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,nv=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,ov=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,sv=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,rv=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,av=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:lv}=Math,{round:cv}=Math;class dv{constructor(...e){let t,i,n,o,s,r,a,l,c,d,h,u,g=0,p=0,m=0,f=1;if(this._invalid=!1,e[0]instanceof dv)g=e[0]._r,p=e[0]._g,m=e[0]._b,f=e[0]._a,this._invalid=e[0]._invalid;else if(e.length<3)if("string"==typeof e[0])if(u=e[0],h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10),f=parseFloat(h[4]);else if(h=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))f=parseInt(h[1],10)/255,g=parseInt(h[2],10),p=parseInt(h[3],10),m=parseInt(h[4],10);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(u))g=parseInt(h[1],16),p=parseInt(h[2],16),m=parseInt(h[3],16),f=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(u))g=parseInt(h[1]+h[1],16),p=parseInt(h[2]+h[2],16),m=parseInt(h[3]+h[3],16),f=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),i=parseFloat(h[3]),o=parseFloat(h[5]),t%=360,i/=100,o/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,o=o<0?0:o>1?1:o,r=o<=.5?2*o*i:(2-2*o)*i,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=o-.5*r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=cv(255*g),p=cv(255*p),m=cv(255*m),f=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(u)){switch(t=parseFloat(h[1]),i=parseFloat(h[3]),o=parseFloat(h[5]),f=parseFloat(h[7]),t%=360,i/=100,o/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,o=o<0?0:o>1?1:o,r=o<=.5?2*o*i:(2-2*o)*i,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=o-.5*r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=cv(255*g),p=cv(255*p),m=cv(255*m)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),i=parseFloat(h[3]),s=parseFloat(h[5]),t%=360,i/=100,s/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,s=s<0?0:s>1?1:s,r=s*i,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=s-r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=cv(255*g),p=cv(255*p),m=cv(255*m),f=1}else tv[u.toLowerCase()]?(n=u.toLowerCase(),g=tv[n].r,p=tv[n].g,m=tv[n].b,f="number"==typeof tv[n].a?tv[n].a:1):this._invalid=!0;else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(f=(4278190080&e[0])>>>24,f/=255,g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):this._invalid=!0;else e.length>=3?(g=e[0],p=e[1],m=e[2],f=arguments.length>=4?e[3]:1):this._invalid=!0;Number.isNaN(+g+p+m+f)&&(this._invalid=!0),this._r=lv(g),this._g=lv(p),this._b=lv(m),this._a=f,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=dv.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=dv.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=dv.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=dv.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=dv.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=dv.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return`hsv(${e.h},${e.s},${e.v})`}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=dv.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=dv.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),i=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),n=parseFloat(i[1]),o=parseFloat(i[3]);let s=parseFloat(i[5]);const r=parseFloat(i[7]);return s+=e,s=Math.max(0,Math.min(s,100)),`hsla(${n},${o},${s},${r})`}isEqual(e){return e instanceof dv||(e=new dv(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[lv(this._r+(e._r-this._r)*t),lv(this._g+(e._g-this._g)*t),lv(this._b+(e._b-this._b)*t),lv(this._a+(e._a-this._a)*t)].join(",")})`}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),i=this._g<126?1:1+this._g/512,n=this.shiftLuminance(20*(t*i<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new dv(n)}static toRGB(e){return e instanceof dv?`rgb(${[e._r,e._g,e._b].join(",")})`:("string"==typeof e&&(e=dv.toNumber(e)),`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`)}static toRGBA(e,t){return e instanceof dv?`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`:("string"==typeof e&&(e=dv.toNumber(e)),`rgba(${(16711680&e)>>16},${(65280&e)>>8},${255&e},${void 0!==t?t:e._a})`)}static toHex(e){let t,i,n;return e instanceof dv?(t=e._r.toString(16),i=e._g.toString(16),n=e._b.toString(16),1===t.length&&(t=`0${t}`),1===i.length&&(i=`0${i}`),1===n.length&&(n=`0${n}`),`#${[t,i,n].join("")}`):("string"==typeof e&&(e=dv.toNumber(e)),t=((16711680&e)>>16).toString(16),i=((65280&e)>>8).toString(16),n=(255&e).toString(16),1===t.length&&(t=`0${t}`),1===i.length&&(i=`0${i}`),1===n.length&&(n=`0${n}`),`#${t}${i}${n}`)}static toHSL(e,t){let i,n,o,s=0;"string"==typeof e&&(e=new dv(e));const r=e._r/255,a=e._g/255,l=e._b/255,c=Math.max(r,a,l),d=Math.min(r,a,l);if(n=t?.21*r+.72*a+.07*l:(c+d)/2,c===d)i=0,s=0;else{switch(o=c-d,i=n>.5?o/(2-c-d):o/(c+d),c){case r:s=(a-l)/o+(a<l?6:0);break;case a:s=(l-r)/o+2;break;case l:s=(r-a)/o+4}s/=6}return`hsl(${360*s},${100*i},${100*n})`}static toHSLA(e,t){let i,n,o,s=0;"string"==typeof e&&(e=new dv(e));const r=e._r/255,a=e._g/255,l=e._b/255,c=e._a,d=Math.max(r,a,l),h=Math.min(r,a,l);if(n=t?.21*r+.72*a+.07*l:(d+h)/2,d===h)i=0,s=0;else{switch(o=d-h,i=n>.5?o/(2-d-h):o/(d+h),d){case r:s=(a-l)/o+(a<l?6:0);break;case a:s=(l-r)/o+2;break;case l:s=(r-a)/o+4}s/=6}return`hsla(${360*s},${100*i},${100*n},${c})`}static toHSVComponents(e){let t,i,n=0;"string"==typeof e&&(e=new dv(e));const o=e._r/255,s=e._g/255,r=e._b/255,a=Math.max(o,s,r),l=Math.min(o,s,r),c=a;if(a===l)t=0,n=0;else{switch(i=a-l,t=0===i?0:i/c,a){case o:n=(s-r)/i+(s<r?6:0);break;case s:n=(r-o)/i+2;break;case r:n=(o-s)/i+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}static toNumber(...e){if(1===e.length&&e[0]instanceof dv)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,i,n=0,o=0,s=0;return 1===e.length&&"string"==typeof e[0]&&(i=e[0],(t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(i))?(n=parseInt(t[1],10),o=parseInt(t[2],10),s=parseInt(t[3],10)):(t=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(i))?(n=parseInt(t[1],16),o=parseInt(t[2],16),s=parseInt(t[3],16)):(t=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(i))&&(n=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),s=parseInt(t[3]+t[3],16))),(n<<16)+(o<<8)+s}static blend(e,t,i){const n=(16711680&(e=dv.toNumber(e)))>>16,o=(65280&e)>>8,s=255&e;return(n+(((16711680&(t=dv.toNumber(t)))>>16)-n)*i<<16)+(o+(((65280&t)>>8)-o)*i<<8)+(s+((255&t)-s)*i)}static getBlend(e,t,i){const n=e._r+(t._r-e._r)*i,o=e._g+(t._g-e._g)*i,s=e._b+(t._b-e._b)*i,r=e._a+(t._a-e._a)*i;return new dv(n,o,s,r)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(iv.test(e)||nv.test(e)||ov.test(e)||sv.test(e)||rv.test(e)||av.test(e)||tv[e.toLowerCase()])}static getBestContrast(e,t,i){const n=e.getLuminance();return Math.abs(n-t.getLuminance())>Math.abs(n-i.getLuminance())?t:i}static getContrast(e,t){if(!e||!t)return;const i=e.getLuminance()/100,n=t.getLuminance()/100;return i>n?(i+.05)/(n+.05):(n+.05)/(i+.05)}static isDark(...e){return new dv(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const hv=dv,uv=/,(?![^(]*\))/,gv=/\s(?![^(]*\))/,pv=/^[0-9]+[a-zA-Z%]+?$/,mv=["none","inset","initial","inherit"],fv=e=>{if(!e)return;const t=e.split(gv).filter((e=>!mv.includes(e.toLowerCase()))).at(-1);var i;return!t||"0"===(i=t)||pv.test(i)||mv.includes(t.toLowerCase())?void 0:t},vv=e=>e?e.split(uv).map((e=>e.trim())):[];function _v(e,t,i,n){return i&&n?i.getStyle(`object.${n}`,e,t):i?i.getStyle("",e,t):void 0}const bv=!0;function yv(e,t,i,n,o){return e&&n?"none"!==e.color?n.getColorPickerColor(e,bv):void 0:_v(t,i,n,o)}const Cv={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},wv={"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 Sv(e,t){const i=e?.bgImage;if(i){let n="";if("media"===i.mode||"media"===e.useImage){const e=i?.mediaUrl,{qUrl:o}=e?.qStaticContentUrl||{};n=o?decodeURIComponent(o):void 0,n=function(e,t){return t?function(e){let t,i,n,o;return e?.session?.config?(t=e.session.config,i=new URL(t.url),o="wss:"===i.protocol,n=o?"https://":"http://",n+i.host):""}(e)+t:void 0}(t,n)}"expression"===i.mode&&(n=i.expressionUrl?decodeURIComponent(i.expressionUrl):void 0);const o=function(e){let t="center center";return e?.bgImage?.position&&(t=wv[e.bgImage.position]),t}(e),s=function(e){let t=Cv.originalSize;const i=e?.bgImage?.sizing;return i&&(t=Cv[i]),t}(e);return n?{url:n,pos:o,size:s}:void 0}}function xv(e,t,i){const n=e?.bgColor;return n&&t&&(n.useExpression||n.useColorExpression)?t.validateColor(n.colorExpression):yv(n?.color,"","backgroundColor",t,i)}function Lv(e,t,i){const n=_v("shadow","boxShadow",t,i);return((e,t,i)=>{if(e&&mv.includes(e.toLowerCase()))return e.toLowerCase();const n=vv(e);if(1!==n.length)return e;let o=i;if(!o){const i=vv(t);if(1!==i.length)return e;o=fv(i[0])}if(!o)return e;const s=fv(n[0]);return s?e.replace(s,o):`${e} ${o}`})(e?.shadow?.boxShadow||n,n,yv(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,i))}function kv(e,t,i,n){const o=e?.title?.[t]||{},s=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(o.fontStyle,t);return{fontFamily:o.fontFamily||i.getStyle(`object.${n}`,`title.${t}`,"fontFamily"),color:o.color&&"none"!==o.color.color?i.getColorPickerColor(o.color,!0):i.getStyle(`object.${n}`,t,"color"),fontWeight:s.includes("bold")?"bold":"normal",fontStyle:s.includes("italic")?"italic":"normal",textDecoration:s.includes("underline")?"underline":"initial"}}const Ev="#FFF",Dv="#000",Iv=1.5,Nv=3,Av=(e,t)=>{let i=!1;const n=new hv(e),o=new hv(t);if(!(o.isInvalid()||n.isInvalid()||o.getAlpha()<1||n.getAlpha()<1)){try{i=hv.getContrast(n,o)}catch(e){i=void 0}return i}};function Rv(e,t=void 0,i=Dv,n=Ev){const o=new hv(n),s=new hv(e),r=new hv(t);if(s.isInvalid()||r.isInvalid()||s.getAlpha()<1||r.getAlpha()<1)return t;const a=Av(o,s),l=Av(r,s),c=a>l||a>Nv;let d;return d=t&&l>Iv&&!c?t:c?n:i,d}const Tv=["theme","selections"];function qv({app:e,themeApi:t,theme:i,components:n=[],checkboxes:o=!1}){const s=function(e=[]){const t={};return e.forEach((e=>{const i=e?.key;Tv.includes(i)&&(t[i]=e)})),t}(n),r=(e,i)=>t.getStyle("object.listBox",e,i),a=e=>e?.index>0||e?.color?t.getColorPickerColor(e,!1):void 0,l=function({getColorPickerColor:e,theme:t,getListboxStyle:i,overrides:n,checkboxes:o}){const s=n.theme?.content?.fontColor,r=e(s)||i("content","color")||t.palette?.text.primary,a=!o&&(n.theme?.content?.useContrastColor??!0),l=n.selections?.colors||{},c=e(l.selected)||t.palette?.selected.main||"#009845",d=e(l.alternative)||t.palette?.selected.alternative||"#E4E4E4",h=e(l.excluded)||t.palette?.selected.excluded||"#A9A9A9",u=e(l.selectedExcluded)||t.palette?.selected.selectedExcluded||"#A9A9A9",g=e(l.possible)||i("","backgroundColor")||t.palette?.selected.possible||"#FFFFFF";let p=r||t.palette?.selected.selectedContrastText,m=r||t.palette?.selected.alternativeContrastText,f=r||t.palette?.selected.excludedContrastText,v=r||t.palette?.selected.selectedExcludedContrastText,_=r||t.palette?.selected.possibleContrastText;return a&&(p=Rv(c,r),m=Rv(d,r),f=Rv(h,r),v=Rv(u,r),_=Rv(g,r)),{selected:c,alternative:d,excluded:h,selectedExcluded:u,possible:g,selectedContrast:p,alternativeContrast:m,excludedContrast:f,selectedExcludedContrast:v,possibleContrast:_}}({getColorPickerColor:a,theme:i,getListboxStyle:r,overrides:s,checkboxes:o}),c=s.theme||{},d=a(c.header?.fontColor)||r("title.main","color"),h=function({themeApi:e,themeOverrides:t}){let i;const n=t?.background;return n?(i=n?.useExpression?xv({bgColor:n},e,"listBox"):e.getColorPickerColor(n?.color,!1),i):i}({themeApi:t,themeOverrides:c}),u=c.background?.image?Sv({bgImage:c.background.image},e):void 0,g=h||r("","backgroundColor")||i.palette.background.default,p=function(e,t){const i=new hv(t("","backgroundColor"));return i.setAlpha(.7),i.isInvalid()?e:i.toRGBA()}(g,r),m=function(e){return Rv("#fff",e("content","color"))}(r),f=c.header?.fontStyle||{},v=c.content?.fontStyle||{},_=(e,t,i)=>!0===e&&t||!1===e&&i||void 0;return{background:{backgroundColor:g,backgroundImage:u?.url&&!u?.url.startsWith("url(")?`url('${u.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:u?.size,backgroundPosition:u?.pos},header:{color:d,fontSize:c.header?.fontSize||r("title.main","fontSize"),fontFamily:c.header?.fontFamily||r("title.main","fontFamily"),fontWeight:_(f.bold,"bold","normal")||r("title.main","fontWeight")||"bold",textDecoration:f.underline?"underline":"initial",fontStyle:_(f.italic,"italic","normal")||r("title.main","fontStyle")||"initial"},content:{backgroundColor:o?void 0:l.possible,color:l.possibleContrast||r("content","color"),fontSize:c.content?.fontSize||r("content","fontSize"),fontFamily:c.content?.fontFamily||r("content","fontFamily"),fontWeight:_(v.bold,"bold","normal")||r("content","fontWeight")||"normal",textDecoration:v.underline?"underline":"initial",fontStyle:_(v.italic,"italic","normal")||r("content","fontStyle")||"initial"},search:{color:m,borderColor:i.palette.divider,highlightBorderColor:i.palette.custom.focusBorder,backgroundColor:p,backdropFilter:"blur(8px)"},selections:l}}function Mv({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:n={vertical:"top",horizontal:"center"},show:o,close:s,app:r,fieldName:a,stateName:l="$",autoFocus:c,components:d,checkboxes:h,selectDisabled:u=(()=>!1)}){const g=Boolean(a?.qLibraryId),p=o&&Boolean(e.current),[m,f]=(0,i.useState)(0),v=_i(),_=(0,i.useRef)(),[b]=jc({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,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:[a]},qLibraryId:g?a.qLibraryId:void 0}},r,a,l),y=(0,i.useCallback)((()=>{b.lock("/qListObjectDef")}),[b]),C=(0,i.useCallback)((()=>{b.unlock("/qListObjectDef")}),[b]),{translator:w,themeApi:S}=(0,i.useContext)(_c),x=(0,i.useRef)(),L=(0,i.useRef)(),[k]=Yf(r,b,L),[E]=Zc(b),[D]=(0,i.useState)((()=>Qf({selectDisabled:u}))),{checkboxes:I=h}=E||{},N=qv({themeApi:S,theme:v,components:d,checkboxes:I});if((0,i.useEffect)((()=>{k&&p&&(k.isModal(b)||k.goModal("/qListObjectDef"))}),[k,p]),!b||!E||!w)return null;const A=!0===E.qListObject.qDimensionInfo.qLocked,R=(e,t)=>{const i="escapeKeyDown"!==t;k.noModal(i),s()},T=Vm({layout:E,model:b,translator:w,selectionState:D}),q=ev(E);return i.createElement(th,{open:p,onClose:R,anchorEl:e.current,anchorOrigin:t,transformOrigin:n,slotProps:{paper:{style:{minWidth:"250px"}}}},i.createElement(Ho,{container:!0,direction:"column",gap:0,ref:L},i.createElement(Ho,{item:!0,container:!0,style:{padding:v.spacing(1)}},i.createElement(Ho,{item:!0},A?i.createElement(Ao,{onClick:C,disabled:!A,size:"large"},i.createElement(Jc,{title:w.get("Listbox.Unlock")})):i.createElement(Ao,{onClick:y,disabled:!q,size:"large"},i.createElement(td,{title:w.get("Listbox.Lock")}))),i.createElement(Ho,{item:!0,xs:!0}),i.createElement(Ho,{item:!0},i.createElement(Mf,{layout:E,more:{enabled:!A,actions:T,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:k,onConfirm:R,onCancel:()=>R(0,"escapeKeyDown")}}))),i.createElement(Ho,{item:!0,xs:!0},i.createElement("div",{ref:x}),i.createElement(Ho,{item:!0,ref:_},i.createElement(Gf,{styles:N,visible:!0,model:b,listCount:m,selections:k,selectionState:D,keyboard:{enabled:!1},autoFocus:c??!0})),i.createElement(Om,{model:b,app:r,layout:E,selections:k,selectionState:D,direction:"ltr",onSetListCount:e=>f(e),onCtrlF:()=>{const e=_.current.querySelector("input");e?.focus()},styles:N}))))}function Ov({field:e,api:t,stateIx:n=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:s=null,onClose:r=(()=>{})}){const{translator:a}=(0,i.useContext)(_c),l=s||(0,i.useRef)(),c=_i(),[d,h]=(0,i.useState)(!1),u=()=>{h(!1),r()},g=e.selections[n];void 0===g.qTotal&&(g.qTotal=0);const p=g.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},m=(p.qSelected+p.qLocked)/g.qTotal,f=p.qAlternative/g.qTotal,v=(p.qExcluded+p.qLockedExcluded+p.qSelectedExcluded)/g.qTotal,_=p.qSelected+p.qSelectedExcluded+p.qLocked+p.qLockedExcluded,b=0===_&&0===g.qTotal;let y="";g.qTotal===_&&g.qTotal>1?y=a.get("CurrentSelections.All"):_>1&&g.qTotal?y=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(y=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[n]&&(y=`${e.states[n]}: ${y}`);const C=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:v}];C.forEach(((e,t)=>{e.offset=t?C[t-1].offset+C[t-1].ratio:0}));let w=null,S=null,x=null,L=null;return s||(w=i.createElement(Ho,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},i.createElement(Zo,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g.qField),i.createElement(Zo,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},y)),g.qLocked?S=i.createElement(Ho,{item:!0},i.createElement(Ao,{size:"large"},i.createElement(Jc,null))):g.qOneAndOnlyOne||(S=i.createElement(Ho,{item:!0},i.createElement(Ao,{title:a.get("Selection.Clear"),onClick:i=>{i.stopPropagation(),t.clearField(g.qField,e.states[n])},size:"large"},i.createElement(Ds,null)))),x=i.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===b&&C.map((e=>i.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),L=i.createElement(Ho,{container:!0,gap:1,ref:l,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&(e=>{e.currentTarget.contains(e.target)&&h(!d)})||null},w,S,x,d&&i.createElement(Mv,{alignTo:l,show:d,close:u,app:t.model,fieldName:g.qField,stateName:e.states[n]}))),s?i.createElement(Mv,{alignTo:l,show:!0,close:u,app:t.model,fieldName:g.qField,stateName:e.states[n]}):L}const Pv=e=>{const t=i.useRef({});return i.useEffect((()=>{t.current=e})),t.current};function Fv(e){return(0,Ot.Ay)("MuiBadge",e)}const Bv=(0,Mt.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Wv=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Vv=Tt.A,zv=(0,qt.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Hv=(0,qt.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.badge,t[i.variant],t[`anchorOrigin${(0,ui.A)(i.anchorOrigin.vertical)}${(0,ui.A)(i.anchorOrigin.horizontal)}${(0,ui.A)(i.overlap)}`],"default"!==i.color&&t[`color${(0,ui.A)(i.color)}`],i.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var i,n;return(null!=(i=e.vars)?i:e).palette[t].main&&(null!=(n=e.vars)?n:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),jv=i.forwardRef((function(e,t){var i,n,o,s,r,a;const l=Vv({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:h,components:u={},componentsProps:g={},children:p,overlap:m="rectangular",color:f="default",invisible:v=!1,max:_=99,badgeContent:b,slots:y,slotProps:C,showZero:w=!1,variant:S="standard"}=l,x=(0,Et.A)(l,Wv),{badgeContent:L,invisible:k,max:E,displayValue:D}=function(e){const{badgeContent:t,invisible:i=!1,max:n=99,showZero:o=!1}=e,s=Pv({badgeContent:t,max:n});let r=i;!1!==i||0!==t||o||(r=!0);const{badgeContent:a,max:l=n}=r?s:e;return{badgeContent:a,invisible:r,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:_,invisible:v,badgeContent:b,showZero:w}),I=Pv({anchorOrigin:c,color:f,overlap:m,variant:S,badgeContent:b}),N=k||null==L&&"dot"!==S,{color:A=f,overlap:R=m,anchorOrigin:T=c,variant:q=S}=N?I:l,M="dot"!==q?D:void 0,O=(0,Dt.A)({},l,{badgeContent:L,invisible:N,max:E,displayValue:M,showZero:w,anchorOrigin:T,color:A,overlap:R,variant:q}),P=(e=>{const{color:t,anchorOrigin:i,invisible:n,overlap:o,variant:s,classes:r={}}=e,a={root:["root"],badge:["badge",s,n&&"invisible",`anchorOrigin${(0,ui.A)(i.vertical)}${(0,ui.A)(i.horizontal)}`,`anchorOrigin${(0,ui.A)(i.vertical)}${(0,ui.A)(i.horizontal)}${(0,ui.A)(o)}`,`overlap${(0,ui.A)(o)}`,"default"!==t&&`color${(0,ui.A)(t)}`]};return(0,Nt.A)(a,Fv,r)})(O),F=null!=(i=null!=(n=null==y?void 0:y.root)?n:u.Root)?i:zv,B=null!=(o=null!=(s=null==y?void 0:y.badge)?s:u.Badge)?o:Hv,W=null!=(r=null==C?void 0:C.root)?r:g.root,V=null!=(a=null==C?void 0:C.badge)?a:g.badge,z=mr({elementType:F,externalSlotProps:W,externalForwardedProps:x,additionalProps:{ref:t,as:h},ownerState:O,className:(0,It.A)(null==W?void 0:W.className,P.root,d)}),H=mr({elementType:B,externalSlotProps:V,ownerState:O,className:(0,It.A)(P.badge,null==V?void 0:V.className)});return(0,Ft.jsxs)(F,(0,Dt.A)({},z,{children:[p,(0,Ft.jsx)(B,(0,Dt.A)({},H,{children:M}))]}))})),Uv=jv,$v=e=>Es((e=>({...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)),Gv={item:"MultiState-item"},Kv=(0,qt.Ay)(Ho)((({theme:e})=>({[`&.${Gv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}})));function Xv({field:e,api:t,moreAlignTo:n=null,onClose:o=(()=>{})}){const[s,r]=(0,i.useState)(!!n),[a,l]=(0,i.useState)(-1),[c,d]=(0,i.useState)(n?n.current:null),h=n||(0,i.useRef)(),{translator:u}=(0,i.useContext)(_c),g=u.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;n||(m=i.createElement(i.Fragment,null,i.createElement(Ho,{item:!0,xs:!0,zeroMinWidth:!0},i.createElement(Uv,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},i.createElement(Zo,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.name))),i.createElement(Ho,{item:!0},i.createElement("div",{style:{width:"12px"}})),i.createElement(Ho,{item:!0},i.createElement(Ao,{size:"large"},i.createElement($v,null)))));const f=i.createElement(qs,{dense:!0},i.createElement(Ys,{title:g,onClick:()=>{e.states.forEach((i=>t.clearField(e.name,i)))}},i.createElement($a,{variant:"contained",fullWidth:!0},g)),e.states.map(((n,o)=>i.createElement(Ys,{key:o,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),l(t)})(e,o)},i.createElement(Ji,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},i.createElement(Ov,{field:e,api:t,stateIx:o,skipHandleShowListBoxPopover:!0})))))),v=i.createElement(th,{open:s,onClose:()=>{r(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},f),_=n?v:i.createElement(Kv,{container:!0,gap:0,className:Gv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,r(!s))}},m,s&&v,a>-1&&i.createElement(Mv,{alignTo:h,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return n&&a>-1?i.createElement(Mv,{alignTo:h,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const Zv="More",Yv={item:`${Zv}-item`,badge:`${Zv}-badge`},Qv=(0,qt.Ay)(Ho)((({theme:e})=>({[`&.${Yv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${Yv.badge}`]:{padding:e.spacing(0,1)}})));function Jv({items:e=[],api:t}){const n=_i(),[o,s]=(0,i.useState)(!1),[r,a]=(0,i.useState)(-1),[l,c]=(0,i.useState)(null),d=(0,i.useRef)(),h=()=>{a(-1)};let u=null;return r>-1&&(u=e[r].states.length>1?i.createElement(Xv,{field:e[r],api:t,moreAlignTo:d,onClose:h}):i.createElement(Ov,{field:e[r],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:h})),i.createElement(Qv,{container:!0,gap:0,className:Yv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,s(!o))}},i.createElement(Ho,{item:!0},i.createElement(Ji,{borderRadius:n.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:n.palette.selected.main,color:n.palette.selected.mainContrastText}},i.createElement(Zo,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),i.createElement(Ho,{item:!0},i.createElement(Ao,{size:"large"},i.createElement($v,null))),o&&i.createElement(th,{open:o,onClose:()=>{s(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},i.createElement(qs,{dense:!0},e.map(((e,n)=>i.createElement(Ys,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),a(t)})(e,n)},i.createElement(Ji,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?i.createElement(Xv,{field:e,api:t}):i.createElement(Ov,{field:e,api:t}))))))),u)}const e_=120,t_=72;function i_(e,t,i="$"){e.qSelections.forEach((e=>{const n=e.qField,o=t[n]=t[n]||{name:n,states:[],selections:[]};-1===o.states.indexOf(i)&&(o.states.push(i),o.selections.push(e))}))}function n_({api:e,app:t}){const n=_i(),[o]=$c(t),[s]=Zc(o),[r,a]=(0,i.useState)({items:[],more:[]}),[l]=xc(),[c,d]=Qc(),[h,u]=(0,i.useState)(0);return(0,i.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-t_,i=Math.floor(t/e_);u(i)}),[d]),(0,i.useEffect)((()=>{if(!(t&&o&&s&&h))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&i_(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>i_(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(s);a((i=>{const n=e;if((()=>{const{model:e}=l.get(t.id)||{};return"njsListbox"===e?.genericType})()&&n.length+1===i.items.length){const e=i.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:t}=e.selections[0];e.selections=[{qField:t}];const o=i.items.indexOf(e);n.splice(o,0,e)}let o=[];return h<n.length&&(o=n.splice(h-n.length)),{items:n,more:o}}))}),[t,o,s,e.isInModal(),h]),i.createElement(Ho,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},r.items.map((t=>i.createElement(Ho,{item:!0,key:`${t.states.join("::")}::${t.name}`,style:{position:"relative",maxWidth:"240px",minWidth:`${e_}px`,background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`}},t.states.length>1?i.createElement(Xv,{field:t,api:e}):i.createElement(Ov,{field:t,api:e})))),r.more.length>0&&i.createElement(Ho,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:`${t_}px`,background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`}},i.createElement(Jv,{items:r.more,api:e})))}const o_=e=>Es((e=>({...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)),s_=e=>Es((e=>({...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)),r_=(e,t,i)=>{const n=[...i.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(i.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(n)}],!0)};function a_({api:e,app:t}){const{translator:n}=(0,i.useContext)(_c),[o]=function(e){const[t]=$c(e),[n]=Zc(t),[o]=Yc(e),[s,r]=(0,i.useState)(null);return(0,i.useEffect)((()=>{o&&t&&n&&r_(t,n,o)}),[o,t,n]),(0,i.useEffect)((()=>{if(!n)return;let e=!1,t=!1,i=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,i=i||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),r({canGoBack:e,canGoForward:t,canClear:i})}),[n]),[s,t,n]}(t);return i.createElement(Ho,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},i.createElement(Ho,{item:!0},i.createElement(Ao,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:n.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},i.createElement(o_,null))),i.createElement(Ho,{item:!0},i.createElement(Ao,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:n.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},i.createElement(s_,null))),i.createElement(Ho,{item:!0},i.createElement(Ao,{disabled:!o||!o.canClear,title:n.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},i.createElement(nf,null))))}const l_=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function c_([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function d_(){return l_.map(c_).join("")}function h_({app:e}){const t=_i(),[n]=kc(e);return n?i.createElement(Ho,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"}},i.createElement(Ho,{item:!0,style:{borderRight:`1px solid ${t.palette.divider}`}},i.createElement(a_,{api:n,app:e})),i.createElement(Ho,{item:!0,xs:!0,style:{backgroundColor:t.palette.background.darker,overflow:"hidden"}},i.createElement(n_,{api:n,app:e}))):null}let u_;u_="undefined"!=typeof window?window:"undefined"!=typeof self?self:r.g;let g_=null,p_=null;const m_=u_.clearTimeout,f_=u_.setTimeout,v_=u_.cancelAnimationFrame||u_.mozCancelAnimationFrame||u_.webkitCancelAnimationFrame,__=u_.requestAnimationFrame||u_.mozRequestAnimationFrame||u_.webkitRequestAnimationFrame;null==v_||null==__?(g_=m_,p_=function(e){return f_(e,20)}):(g_=function([e,t]){v_(e),m_(t)},p_=function(e){const t=__((function(){m_(i),e()})),i=f_((function(){v_(t),e()}),20);return[t,i]});class b_ extends i.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:i}=this.props;if(this._parentNode){const n=window.getComputedStyle(this._parentNode)||{},o=parseFloat(n.paddingLeft||"0"),s=parseFloat(n.paddingRight||"0"),r=parseFloat(n.paddingTop||"0"),a=parseFloat(n.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-r-a,d=l.width-o-s,h=this._parentNode.offsetHeight-r-a,u=this._parentNode.offsetWidth-o-s;(e||this.state.height===h&&this.state.scaledHeight===c)&&(t||this.state.width===u&&this.state.scaledWidth===d)||(this.setState({height:h,width:u,scaledHeight:c,scaledWidth:d}),"function"==typeof i&&i({height:h,scaledHeight:c,scaledWidth:d,width:u}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const i=t.ownerDocument.defaultView.ResizeObserver;null!=i?(this._resizeObserver=new i((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,i,n,o,s,r,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){r=function(e){const t=e.__resizeTriggers__,i=t.firstElementChild,n=t.lastElementChild,o=i.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,o.style.width=i.offsetWidth+1+"px",o.style.height=i.offsetHeight+1+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight},s=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;r(this),this.__resizeRAF__&&g_(this.__resizeRAF__),this.__resizeRAF__=p_((function(){s(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(i){i.call(t,e)})))}))};let e=!1,l="";n="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let i=0;i<c.length;i++)if(void 0!==t.style[c[i]+"AnimationName"]){h=c[i],l="-"+h.toLowerCase()+"-",n=d[i],e=!0;break}}i="resizeanim",t="@"+l+"keyframes "+i+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+i+"; "}return{addResizeListener:function(s,c){if(l)s.attachEvent("onresize",c);else{if(!s.__resizeTriggers__){const l=s.ownerDocument,c=u_.getComputedStyle(s);c&&"static"===c.position&&(s.style.position="relative"),function(i){if(!i.getElementById("detectElementResize")){const n=(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%; }',s=i.head||i.getElementsByTagName("head")[0],r=i.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(i.createTextNode(n)),s.appendChild(r)}}(l),s.__resizeLast__={},s.__resizeListeners__=[],(s.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const h=l.createElement("div");h.className="contract-trigger",s.__resizeTriggers__.appendChild(d),s.__resizeTriggers__.appendChild(h),s.appendChild(s.__resizeTriggers__),r(s),s.addEventListener("scroll",a,!0),n&&(s.__resizeTriggers__.__animationListener__=function(e){e.animationName===i&&r(s)},s.__resizeTriggers__.addEventListener(n,s.__resizeTriggers__.__animationListener__))}s.__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",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(n,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o=!1,disableWidth:s=!1,nonce:r,onResize:a,style:l={},tagName:c="div",...d}=this.props,{height:h,scaledHeight:u,scaledWidth:g,width:p}=this.state,m={overflow:"visible"},f={};let v=!1;return o||(0===h&&(v=!0),m.height=0,f.height=h,f.scaledHeight=u),s||(0===p&&(v=!0),m.width=0,f.width=p,f.scaledWidth=g),(0,i.createElement)(c,{ref:this._setRef,style:{...m,...l},...d},!v&&e(f))}}function y_(e){e?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function C_(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")}function w_({keyboard:e,hovering:t,updateKeyScroll:i,containerRef:n,currentScrollIndex:o,isModal:s,constraints:r}){return{handleKeyDown:t=>{const{keyCode:i,shiftKey:o=!1}=t.nativeEvent,r=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=s();switch(i){case Xu.TAB:if(l)o?Qu(a)||Yu(a):Yu(a)||Qu(a);else{if(!o)break;e.blur(!0)}r();break;case Xu.ENTER:case Xu.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),r();break;case Xu.ESCAPE:(t=>{const{currentTarget:i,target:o}=t,s=o.classList.contains("listbox-container"),r=C_(i.closest(".listbox-container")),a=1===r?.querySelectorAll(".listbox-container").length;if(s||a)e.blur(!0);else{y_(n.current),i.classList.add("last-focused"),e.blur();const t=i.closest(".listbox-container");t.setAttribute("tabIndex",-1),t?.focus()}})(t)}},handleOnMouseEnter:()=>{(()=>{const e=r?.select||r?.active,t=s();return e||t})()||(t.current=!0)},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current)return;const{keyCode:n,ctrlKey:s=!1,shiftKey:r=!1}=e;switch(n){case Xu.ARROW_UP:i({up:1});break;case Xu.ARROW_DOWN:i({down:1});break;case Xu.PAGE_UP:i({up:o.stop-o.start});break;case Xu.PAGE_DOWN:i({down:o.stop-o.start});break;case Xu.HOME:i({scrollPosition:s&&r?"overflowStart":"start"});break;case Xu.END:i({scrollPosition:s&&r?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const S_=(0,qt.Ay)("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function x_({text:e}){const{translator:t}=(0,i.useContext)(_c);return i.createElement(S_,null,t.get(e))}const L_=e=>Es((e=>({...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)),k_={fontSize:"12px"},E_=(0,qt.Ay)(Lo)((({theme:e,isLoading:t})=>({position:"absolute",top:0,left:0,height:48,zIndex:2,background:e.palette.custom.disabledBackground,opacity:1,color:e.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:t?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:e.palette.custom.disabledContrastText},"& i":{padding:"7px"}}))),D_=(0,qt.Ay)(Ho,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((({styles:e,isRtl:t})=>({flexDirection:t?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center",...e.header,"& *":{color:e.header.color}}))),I_=(0,qt.Ay)(Zo)((({styles:e})=>({...e.header,display:"block",alignItems:"center",paddingRight:"1px"})));function N_({translator:e,toggleLock:t,keyboard:n,isLoading:o}){const s=e.get("SelectionToolbar.ClickToUnlock");return i.createElement(E_,{title:s,tabIndex:n.enabled?0:-1,onClick:t,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?i.createElement(ml,{size:16,variant:"indeterminate",color:"primary"}):i.createElement(Jc,{disableRipple:!0,style:k_}),!o&&i.createElement(Zo,{fontSize:"14px"},s))}function A_(){return A_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},A_.apply(this,arguments)}let R_=0;const T_=function({layout:e,translator:t,styles:n,isRtl:o,showLock:s,showSearchIcon:r,isDrillDown:a,constraints:l,onShowSearch:c,classes:d,containerRect:h,isPopover:u,showToolbar:g,showDetachedToolbarOnly:p,containerRef:m,model:f,selectionState:v,isDirectQuery:_,selections:b,keyboard:y,autoConfirm:C}){const[w,S]=(0,i.useState)(p),[x,L]=(0,i.useState)(e?.qListObject?.qDimensionInfo?.qLocked),[k,E]=(0,i.useState)(!1);(0,i.useEffect)((()=>{L(e?.qListObject?.qDimensionInfo?.qLocked)}),[e?.qListObject?.qDimensionInfo?.qLocked]);const D=(0,i.useRef)(null),I=s&&x,N=!s&&x,A=r||N||a,R=9-(A?7:0),T=o?9-(A?7:0):4,q=(r?28:0)+(N?28:0)+(a?28:0),M=function({isLocked:e,setLocked:t,settingLockedState:i,model:n,setSettingLockedState:o}){return()=>{const s=new Date;if(s-R_<500)return Promise.resolve();if(i)return()=>{};o(!0),R_=s;const r=e?n.unlock:n.lock;return t(!e),r.call(n,"/qListObjectDef").catch((()=>{t(e)})).finally((()=>{setTimeout((()=>{o(!1)}),0)}))}}({isLocked:x,setLocked:L,settingLockedState:k,setSettingLockedState:E,model:f}),O=Vm({layout:e,model:f,translator:t,selectionState:v,isDirectQuery:_}),P=x||!s?void 0:[{key:"lock",type:void 0,label:t.get("SelectionToolbar.ClickToLock"),getSvgIconShape:ed,enabled:()=>!k&&!v.selectDisabled()&&ev(e),action:M}],F=l?.active?i.createElement(Hf,{title:t.get("Listbox.Search"),size:"large",style:{...k_,padding:"7px"}}):i.createElement(Ao,{onClick:c,tabIndex:-1,title:t.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},i.createElement(Hf,{style:k_}));(0,i.useEffect)((()=>{if(!D.current||!h)return;const e=function({containerRect:e,titleRef:t,iconsWidth:i,paddingLeft:n,paddingRight:o}){const s=n+o;return!!(e.width<(t?.current?.clientWidth??0)+i+s+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:h,titleRef:D,iconsWidth:q,paddingLeft:R,paddingRight:T});S(p||e)}),[q,R,T,D.current,p,Object.entries(h||{}).sort().join(",")]);const B=function({isDetached:e,showToolbar:t,containerRef:i,isLocked:n,listboxSelectionToolbarItems:o,extraItems:s,selections:r,keyboard:a,autoConfirm:l}){return{autoConfirm:l,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:i.current},extraItems:s,more:{enabled:!n,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:t,api:r,onConfirm:()=>{a?.focus()},onCancel:()=>{a?.focus()}}}}({isDetached:!u&&w,showToolbar:g,containerRef:m,isLocked:x,extraItems:P,listboxSelectionToolbarItems:O,selections:b,keyboard:y,autoConfirm:C}),W=i.createElement(Mf,A_({isRtl:o,layout:e},B));if(p)return W;const V=N?i.createElement(Jc,{size:"large",style:{...k_,padding:"7px"}}):void 0;return i.createElement(D_,{item:!0,container:!0,styles:n,isRtl:o,marginY:1,paddingLeft:`${R}px`,paddingRight:`${T}px`,className:"header-container"},I&&i.createElement(N_,{isLoading:k,translator:t,toggleLock:M,keyboard:y}),A&&i.createElement(Ho,{item:!0,container:!0,alignItems:"center",width:q,className:"header-action-container"},V||r&&F,a&&i.createElement(L_,{tabIndex:-1,title:t.get("Listbox.DrillDown"),style:{...k_,padding:"7px"}})),i.createElement(Ho,{item:!0,xs:!0,minWidth:0,justifyContent:o?"flex-end":"flex-start",className:d.listBoxHeader},i.createElement(I_,{variant:"h6",noWrap:!0,ref:D,title:e.title,styles:n},e.title)),i.createElement(Ho,{item:!0,display:"flex"},W))},q_="ListBoxInline",M_={listBoxHeader:`${q_}-listBoxHeader`,screenReaderOnly:`${q_}-screenReaderOnly`,listboxWrapper:`${q_}-listboxWrapper`},O_=(0,qt.Ay)(Ho,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((({theme:e,containerPadding:t,isGridMode:i,styles:n})=>({...n.background,[`& .${M_.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${M_.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${M_.listboxWrapper}`]:{padding:t},"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})));function P_({options:e,layout:t}){const{app:n,direction:o,frequencyMode:s,checkboxes:r,search:a=!0,focusSearch:l=!1,rangeSelect:c=!0,model:d,selections:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,showGray:f=!0,scrollState:v,renderedCallback:_,toolbar:b=!0,isPopover:y=!1,showLock:C=!1,components:w,selectDisabled:S=(()=>!1)}=e,x=_i(),{translator:L,keyboardNavigation:k,themeApi:E,constraints:D}=(0,i.useContext)(_c),{checkboxes:I=r}=t||{},N=qv({app:n,themeApi:E,theme:x,components:w,checkboxes:I}),A=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:n?.layout}),R=(0,i.useRef)(),[T,q]=Qc(),[M,O]=(()=>{const[e,t]=(0,i.useState)({});return[e,(0,i.useCallback)((e=>{t({current:e})}),[t])]})(),[P,F]=(0,i.useState)(!1),[B,W]=(0,i.useState)(!1),V=(0,i.useRef)(!1),[z,H]=(0,i.useState)({down:0,up:0,scrollPosition:""}),j=e=>H((t=>({...t,...e}))),[U,$]=(0,i.useState)({start:0,stop:0}),[G]=kc(n),[K]=(0,i.useState)((()=>Qf({selectDisabled:S}))),X=function({containerRef:e,enabled:t}){const[n,o]=(0,i.useState)(!1);return{enabled:t,active:n,innerTabStops:!t||n,blur(i){if(!t)return;o(!1);const n=C_(e.current)||e.current?.parentElement;var s;s=e.current,s?.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),y_(e.current),i&&n&&(n.setAttribute("tabIndex",0),n.focus())},focus(){if(!t)return;o(!0);const i=e.current,n=i?.querySelector(".search input"),s=i?.querySelector(".value.last-focused"),r=i?.querySelector(".value.selector, .value"),a=i?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=i?.querySelector("#listbox-unlock-button"),c=n||s||r||l||a;c?.setAttribute("tabIndex",0),c?.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),i=e||t;i?.setAttribute("tabIndex",0),i?.focus()}}}({containerRef:R,enabled:k}),Z=(0,i.useCallback)((()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:n,appSelections:G})),[n,G]),Y=t?.qListObject.qDimensionInfo.qError,Q=Y&&D.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:J,handleOnMouseEnter:ee,handleOnMouseLeave:te,globalKeyDown:ie}=(0,i.useMemo)((()=>w_({keyboard:X,hovering:V,updateKeyScroll:j,containerRef:R,currentScrollIndex:U,app:n,appSelections:G,constraints:D,isModal:Z})),[X,V,j,R,U,n,G,D,Z]);(0,i.useEffect)((()=>(document.addEventListener("keydown",ie),()=>{document.removeEventListener("keydown",ie)})),[ie]),(0,i.useEffect)((()=>{!0===a&&W(!0);const e=()=>{F(!0)},t=()=>{F(!1),"toggle"===a&&W(!1)};return y&&(h.isActive()||(h.begin("/qListObjectDef"),h.on("activated",e),h.on("deactivated",t)),F(y)),b&&h&&(h.isModal()||(h.on("activated",e),h.on("deactivated",t)),F(h.isActive())),()=>{h&&h.removeListener&&(h.removeListener("activated",e),h.removeListener("deactivated",t))}}),[b,h,y]),(0,i.useEffect)((()=>{if(M&&M.current&&(a&&l||"toggle"===a&&B)){const e=M.current.querySelector("input");e&&e.focus()}}),[M&&M.current,B,a,l]);const{wildCardSearch:ne,searchEnabled:oe,autoConfirm:se=!1,layoutOptions:re={}}=t??{},ae=t?.qListObject?.qDimensionInfo?.qLocked,le=!1!==oe&&"toggle"===a&&!ae,ce="H"===t?.qListObject?.qDimensionInfo?.qGrouping,de=t?.title?.length&&!1!==t?.showTitle,he=b&&!de&&!y,ue=b&&de||y,ge="rtl"===o;if(!d||!t||!L)return null;const pe=!0===a||"toggle"===a&&B&&!1!==oe,me=re.dense??!1,fe=()=>{W(!B)},ve=()=>{if("toggle"===a)fe();else{const e=M.current.querySelector("input");e?.focus()}},_e=pe&&"toggle"===a,be="grid"===re?.dataLayout,ye=function({isGridMode:e,dense:t,height:i,layoutOrder:n}){let o;if(e){let s;s=Ag({isGridMode:e,dense:t})>i?"0px":"2px",o="row"===n?`${s} 4px`:`${s} 6px ${s} 4px`}else o=void 0;return o}({isGridMode:be,dense:me,height:R.current?.clientHeight,layoutOrder:re.layoutOrder});Y&&_?.();const Ce=ue?yh+10:0,we=i.createElement(T_,{showSearchIcon:le,isDrillDown:ce,onShowSearch:fe,isPopover:y,showToolbar:P,isDirectQuery:A,autoConfirm:se,showDetachedToolbarOnly:he,layout:t,translator:L,styles:N,isRtl:ge,showLock:C,constraints:D,classes:M_,containerRect:q,containerRef:R,model:d,selectionState:K,selections:h,keyboard:X});return i.createElement(i.Fragment,null,he&&we,i.createElement(O_,{className:"listbox-container",container:!0,tabIndex:X.enabled?-1:void 0,direction:"column",gap:0,containerPadding:ye,styles:N,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:J,onMouseEnter:ee,onMouseLeave:te,ref:e=>{R.current=e,T(e)},isGridMode:be,"aria-label":X.active?L.get("Listbox.ScreenReaderInstructions"):""},ue&&we,i.createElement(Ho,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Ce,role:"region","aria-label":L.get("Listbox.ResultFilterLabel")},i.createElement(Ho,{item:!0,ref:O},i.createElement(Gf,{selections:h,selectionState:K,model:d,dense:me,keyboard:X,visible:pe,search:a,autoFocus:_e,wildCardSearch:ne,searchEnabled:oe,direction:o,hide:le&&fe,styles:N})),i.createElement(Ho,{item:!0,xs:!0,className:M_.listboxWrapper},Y?i.createElement(x_,{text:Q}):i.createElement(b_,null,(({height:e,width:r})=>i.createElement(Om,{model:d,app:n,constraints:D,layout:t,selections:h,selectionState:K,direction:o,frequencyMode:s,rangeSelect:c,checkboxes:I,height:e,width:r,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,keyboard:X,showGray:f,scrollState:v,keyScroll:{state:z,reset:()=>H({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:U,set:$},renderedCallback:_,onCtrlF:ve,isModal:Z,styles:N})))))))}const F_=i.memo(P_),B_=function({options:e={}}){const{model:t}=e,[n]=Zc(t);return i.createElement(F_,{options:e,layout:n})};const W_={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function V_(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const z_=(e={})=>{const{__DO_NOT_USE__:t={},...i}=e;return{...i,update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1,...t}};function H_({app:e,fieldIdentifier:t,qId:n,stateName:o,element:s,options:r,renderedCallback:a}){const{isExistingObject:l,hasExternalSelectionsApi:c}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:n,options:r});l||Object.assign(r,{frequencyMode:V_(r.frequencyMode)});const[d,h]=(0,i.useState)(0);(0,i.useEffect)((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");h(d+1)}),[l,c]);const u=l?function({app:e,qId:t,options:n={}}){const[o,s]=(0,i.useState)(),[r]=zc(),{sessionModel:a}=n,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(n).filter((e=>l.includes(e)));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,i.useEffect)((()=>{Promise.resolve(a||async function(t){return r.get(t)||await e.getObject(t)}(t)).then((e=>{!function(e){r.get(e.id)||(r.set(e.id,e),e.once("closed",(()=>{r.clear(e.id)})))}(e),s(e)}))}),[]),o}({app:e,qId:n,options:r}):function({app:e,fieldIdentifier:t,stateName:n,options:o={}}){const[s,r]=(0,i.useState)(""),[a,l]=(0,i.useState)(!0),[c,d]=(0,i.useState)(),[h,u]=(0,i.useState)(),g=o.title??h;let{histogram:p=!1,frequencyMode:m="N"}=o;s&&s.failedToFetchFieldDef&&(p=!1,m="N"),(0,i.useEffect)((()=>{const i=p||"N"!==m;t.qLibraryId&&i?async function(){try{const i=await e.getDimension(t.qLibraryId),n=await i.getLayout();u(n.qDim.title),"N"===n.qDim.qGrouping?r(n.qDim.qFieldDefs?n.qDim.qFieldDefs[0]:""):r({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),r({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),u(t))}),[]);const{dense:f,checkboxes:v,listLayout:_,properties:b={}}=o,y={dense:f};"horizontal"===_&&(y.dataLayout="grid",y.layoutOrder="column",y.maxVisibleColumns={auto:!0},y.maxVisibleRows={auto:!1,maxRows:1});const C=(0,i.useRef)();C.current||(C.current=d_());const w=ic()(!0,{},W_,{qInfo:{qId:C.current},qListObjectDef:{qStateName:n,qFrequencyMode:p&&"N"===m?"V":m},histogram:p,checkboxes:v,layoutOptions:y,title:g});let S;if(ic()(!0,w,b),t.qLibraryId?(w.qListObjectDef.qLibraryId=t.qLibraryId,S=t.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[t],S=t),"P"!==m&&p)if(s?.multiFieldDim)w.frequencyMax="fetch";else{const e=t.qLibraryId?s:S;w.frequencyMax={qValueExpression:Rm(e)}}const[x]=jc(w,a?null:e,S,n);return(0,i.useEffect)((()=>{x&&d(x)}),[x]),c}({app:e,fieldIdentifier:t,stateName:o,options:r}),g=(0,i.useRef)(s),p=c?r.selectionsApi:Yf(e,u,[g,".njs-action-toolbar-more",".njs-action-toolbar-popover"],r)[0],m=(0,i.useMemo)((()=>({...r,selections:p,model:u,app:e,renderedCallback:a})),[r,p,u,e]);return p&&u?i.createElement(B_,{options:m}):null}const j_={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function U_({app:e,fieldIdentifier:t,stateName:n,element:o,options:s={}}){const[r,a]=(0,i.useState)(!!s.show);return i.createElement(Mv,{show:r,app:e,alignTo:{current:o},anchorOrigin:s.anchorOrigin,transformOrigin:s.transformOrigin,close:()=>{a(!1),s.onPopoverClose&&s.onPopoverClose()},fieldName:t,stateName:n,autoFocus:s.autoFocus,components:s.components})}function $_(e,t){for(let i=0;i<e.length;++i)e[i]>=0&&e[i]>=t&&++e[i];e.push(t)}function G_(e,t){let i=0;for(let n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i}const K_=e=>({qDef:{qFieldDefs:[e]}}),X_=e=>({qDef:{qDef:e}});function Z_({dc:e,def:t,properties:i}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const n=i,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(i){const s="string"==typeof i?K_(i):{...i,qDef:i.qDef||{}};return s.qDef.cId=s.qDef.cId||d_(),s.qDef.qSortCriterias=s.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],s.qOtherTotalSpec=s.qOtherTotalSpec||{},s.qAttributeExpressions=s.qAttributeExpressions||[],s.qAttributeDimensions=s.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(s),$_(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(s,n)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)),s},removeDimension(i){const o=e.qDimensions.splice(i,1)[0];return G_(e.qInterColumnSortOrder,i),t.dimensions.removed(o,n,i),o},addMeasure(i){const s="string"==typeof i?X_(i):{...i,qDef:i.qDef||{}};s.qDef.cId=s.qDef.cId||d_(),s.qSortBy=s.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},s.qAttributeDimensions=s.qAttributeDimensions||[],s.qAttributeExpressions=s.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(s),$_(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(s,n)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(s))},removeMeasure(i){const o=e.qMeasures.splice(i,1)[0];G_(e.qInterColumnSortOrder,e.qDimensions.length+i),t.measures.removed(o,n,i)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}const Y_=e=>({qDef:{qFieldDefs:[e]}});function Q_({dc:e,def:t,properties:i}){e.qInitialDataFetch=e.qInitialDataFetch||[];const n=i,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(i){const o="string"==typeof i?Y_(i):{...i,qDef:i.qDef||{}};return o.qDef.cId=o.qDef.cId||d_(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach((t=>{e[t]=o[t]})),t.dimensions.added(o,n),o},removeDimension(i){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,n,i),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const J_=e=>{let t;var i;return t="string"==typeof e?ic()(!0,{},W_,{qListObjectDef:(i=e,{qDef:{qFieldDefs:[i]}})}):e.qListObjectDef?ic()(!0,{},W_,e):ic()(!0,{},W_,{qListObjectDef:e}),t};function eb({children:e,halo:t}){return{async addDimension(i){const n=J_(i),o=n.qListObjectDef;if(o.qDef.cId=o.qDef.cId||d_(),!n.title)if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),i=await e.getProperties();i.qDim.qLabelExpression?n.title={qStringExpression:{qExpr:i.qDim.qLabelExpression}}:n.title=i.qDim.title}else n.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:n,qChildren:[]})},addMeasure(){}}}function tb(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function ib({sn:e,properties:t,fields:i,children:n},o){if(!i.length)return;const s=e.qae.data.targets[0];if(!s)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:r}=s,a=r.split("/");let l=t;for(let e=0;e<a.length;e++){const t=a[e];l=t?l[t]:l}const c=function(e){return e.match("/qListObjectDef")?Q_:e.match("/qChildListDef")?eb:Z_}(r),d=c({dc:l,def:s,properties:t,children:n,halo:o});for(let e=0;e<i.length;++e){const t=i[e];"measure"===tb(t)?await d.addMeasure(t):await d.addDimension(t)}}const nb=(e,t,i)=>{if(null==e||null==t)return i;const n=t.split(".");let o=e;for(let e=0;e<n.length;++e){const t=n[e];if(""!==t){if(void 0===o[t]||null===o[t])return i;o=o[t]}}return o},ob=(e,t,i)=>{if(null==e||null==t)return;const n=t.split("."),o=n[n.length-1];let s=e;for(let e=0;e<n.length-1;++e){const t=n[e];void 0!==s[t]&&null!==s[t]||(s[t]=Number.isNaN(+n[e+1])?{}:[]),s=s[t]}void 0!==i&&"__proto__"!==o&&"constructor"!==o?s[o]=i:delete s[o]},sb=e=>0===Object.keys(e).length&&e.constructor===Object,rb=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let i=e.indexOf(t[0]);if(-1!==i){for(let n=0;n<t.length;n++){const o=e.indexOf(t[n]);if(i>o)return!1;i=o}return!0}return!1},ab=function(e,t){let i;for(i=0;i<e.length;++i)e[i]>=0&&e[i]>=t&&++e[i];e.push(t)},lb=function(e,t){let i,n=0;for(i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n},cb=2**53-1;function db(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function hb(e,t){const i=ic()(!0,{},t,e);return nb(i,"qOtherTotalSpec.qOtherCounted")||ob(i,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),nb(i,"qOtherTotalSpec.qOtherLimit")||ob(i,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),i.hasOwnProperty("othersLabel")||(i.othersLabel="Others"),i}function ub(e,t){return ic()(!0,{},t,e)}function gb(e,t,i){return"function"==typeof e?e(t):Number.isNaN(+e)?i:e}const pb={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===nb(e,t)&&ob(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:db,importCommonProperties:function(e,t,i){const n="masterobject"===nb(t,"properties.qInfo.qType")?"masterobject":nb(i,"qInfo.qType");ob(e,"qInfo.qType",n),e.visualization=i.visualization},copyPropertyIfExist:function(e,t,i){t.hasOwnProperty(e)&&(i[e]=t[e])},copyPropertyOrSetDefault:function(e,t,i,n){t.hasOwnProperty(e)?i[e]=t[e]:i[e]=n},createDefaultDimension:hb,createDefaultMeasure:ub,resolveValue:gb,getHypercubePath:function(e){const t=nb(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({exportFormat:e,newHyperCubeDef:t}){const i=e.data[0],n=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=i.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==n)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=i.interColumnSortOrder.concat());o!==n;)o<n?(ab(t.qInterColumnSortOrder,o),++o):(--o,lb(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:i}){let n={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach((o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(n.qLayoutExclude.quarantine=ic()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&i?ob(n,`${i}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||db(o)?n[o]=e.properties[o]:n.qLayoutExclude.disabled[o]=e.properties[o]})),n=ic()(!0,{},t,n),null===n.components&&(n.components=[]),n},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const i=e.data[0],n=t.dimensions||{max:0},o=t.measures||{max:0},s=gb(o.max,i.dimensions.length,cb),r=gb(o.min,i.dimensions.length,0);return{maxDimensions:gb(n.max,s,cb),minDimensions:gb(n.min,r,0),maxMeasures:s,minMeasures:r}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:i,maxMeasures:n,minMeasures:o}){const s=e.data[0];return s.dimensions.length>t&&t>0||s.measures.length>n&&n>0||s.excludedDimensions.length>0&&s.dimensions.length+s.excludedDimensions.length>i||s.excludedMeasures.length>0&&s.measures.length+s.excludedMeasures.length>o||!n&&s.measures.length>0||!t&&s.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:i,maxMeasures:n,minMeasures:o,newHyperCubeDef:s}){const r=e.data[0];s.qLayoutExclude||(s.qLayoutExclude={}),s.qLayoutExclude.qHyperCubeDef||(s.qLayoutExclude.qHyperCubeDef={}),(r.dimensions.length>t&&t>0||r.excludedDimensions&&r.excludedDimensions.length&&r.dimensions.length+r.excludedDimensions.length>i)&&(s.qLayoutExclude.qHyperCubeDef.qDimensions||(s.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(r.measures.length>n&&n>0||r.excludedMeasures&&r.excludedMeasures.length&&r.measures.length+r.excludedMeasures.length>o)&&(s.qLayoutExclude.qHyperCubeDef.qMeasures||(s.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&r.measures.length&&(s.qLayoutExclude.qHyperCubeDef.qMeasures||(s.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&r.dimensions.length&&(s.qLayoutExclude.qHyperCubeDef.qDimensions||(s.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:i,newHyperCubeDef:n,defaultDimension:o}){const s=e.data[0];let r;if(t>0)for(r=0;r<s.dimensions.length;++r)n.qDimensions.length<t?n.qDimensions.push(hb(s.dimensions[r],o)):n.qLayoutExclude.qHyperCubeDef.qDimensions.push(hb(s.dimensions[r],o));else if(s.dimensions.length)for(r=0;r<s.dimensions.length;++r)n.qLayoutExclude.qHyperCubeDef.qDimensions.push(hb(s.dimensions[r],o));if(s.excludedDimensions.length)for(r=0;r<s.excludedDimensions.length;++r)n.qDimensions.length<i?n.qDimensions.push(hb(s.excludedDimensions[r],o)):n.qLayoutExclude.qHyperCubeDef.qDimensions.push(hb(s.excludedDimensions[r],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:i,newHyperCubeDef:n,defaultMeasure:o}){const s=e.data[0];let r;if(t>0)for(r=0;r<s.measures.length;++r)n.qMeasures.length<t?n.qMeasures.push(ub(s.measures[r],o)):n.qLayoutExclude.qHyperCubeDef.qMeasures.push(ub(s.measures[r],o));else if(s.measures.length)for(r=0;r<s.measures.length;++r)n.qLayoutExclude.qHyperCubeDef.qMeasures.push(ub(s.measures[r],o));if(s.excludedMeasures.length)for(r=0;r<s.excludedMeasures.length;++r)n.qMeasures.length<i?n.qMeasures.push(ub(s.excludedMeasures[r],o)):n.qLayoutExclude.qHyperCubeDef.qMeasures.push(ub(s.excludedMeasures[r],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:i}){if(t.dimensions&&"function"==typeof t.dimensions.added){const n=nb(e,i||"").qHyperCubeDef,o=[...n.qDimensions];n.qDimensions=[],o.forEach((i=>{n.qDimensions.push(i),t.dimensions.added(i,e)}))}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:i}){if(t.measures&&"function"==typeof t.measures.added){const n=nb(e,i||"").qHyperCubeDef,o=[...n.qMeasures];n.qMeasures=[],o.forEach((i=>{n.qMeasures.push(i),t.measures.added(i,e)}))}}},mb={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const i=function(e=1){const t={data:[],properties:{}};for(let i=0;i<e;++i)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),n=e.qProperty,o=nb(n,t||""),s=o.qHyperCubeDef,r=i.data[0];if(s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),r.dimensions.push(...s.qDimensions),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qDimensions&&r.excludedDimensions.push(...s.qLayoutExclude.qHyperCubeDef.qDimensions),r.measures.push(...s.qMeasures),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qMeasures&&r.excludedMeasures.push(...s.qLayoutExclude.qHyperCubeDef.qMeasures),r.interColumnSortOrder=s.qInterColumnSortOrder.concat(),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=s.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();rb(e,r.interColumnSortOrder)&&(r.interColumnSortOrder=e)}return delete s.qLayoutExclude,Object.keys(n).forEach((e=>{i.properties[e]=n[e]})),t&&(i.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((e=>{i.properties.hasOwnProperty(e)||(i.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(pb.restoreChangedProperties(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!sb(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude,i}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:i={},defaultPropertyValues:n={},hypercubePath:o}){const s={qChildren:[]},r=pb.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=nb(t,o||"").qHyperCubeDef,l=nb(r,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u}=pb.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:i}),{defaultDimension:g=pb.getDefaultDimension(),defaultMeasure:p=pb.getDefaultMeasure()}=n;return l.qDimensions.length=0,l.qMeasures.length=0,pb.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u})&&pb.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u,newHyperCubeDef:l}),pb.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),pb.addDefaultMeasures({exportFormat:e,maxMeasures:h,minMeasures:u,newHyperCubeDef:l,defaultMeasure:p}),pb.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),pb.copyPropertyIfExist("qMaxStackedCells",a,l),pb.copyPropertyIfExist("qNoOfLeftDims",a,l),pb.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),pb.copyPropertyOrSetDefault("qMode",a,l,"S"),pb.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),pb.copyPropertyOrSetDefault("qSortbyYValue",a,l),pb.copyPropertyOrSetDefault("qIndentMode",a,l),pb.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),pb.importCommonProperties(r,e,t),pb.updateDimensionsOnAdded({newProperties:r,dataDefinition:i,hypercubePath:o}),pb.updateMeasuresOnAdded({newProperties:r,dataDefinition:i,hypercubePath:o}),s.qProperty=r,s}(e)},fb=e=>nb(e,"data.targets.0.propertyPath"),vb=async({halo:e,model:t,cellRef:i,newType:n,properties:o,viewDataMode:s=!1})=>{const r=o?{qProperty:o}:await t.getFullPropertyTree(),a=i.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return mb.exportProperties})(fb(e)))(a);if(!l)throw new Error("Source chart does not support conversion");const c=await(async({halo:e,name:t,version:i})=>{const{types:n}=e;return await n.get({name:t,version:i}).supernova()})({halo:e,name:n}),d=c.qae,h=(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return mb.importProperties})(fb(e)))(d);if(!h)throw new Error("Target chart does not support conversion");return h({exportFormat:l({propertyTree:r,hypercubePath:pb.getHypercubePath(a),viewDataMode:s}),initialProperties:{qInfo:{qType:n},visualization:n,...nb(d,"properties.initial",{})},dataDefinition:nb(d,"data.targets.0.",{}),hypercubePath:pb.getHypercubePath(d),viewDataMode:s})},_b={hypercube:mb};function bb(e){return(0,Ot.Ay)("MuiIcon",e)}(0,Mt.A)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yb=["baseClassName","className","color","component","fontSize"],Cb=(0,qt.Ay)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"inherit"!==i.color&&t[`color${(0,ui.A)(i.color)}`],t[`fontSize${(0,ui.A)(i.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),wb=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiIcon"}),{baseClassName:n="material-icons",className:o,color:s="inherit",component:r="span",fontSize:a="medium"}=i,l=(0,Et.A)(i,yb),c=(0,Dt.A)({},i,{baseClassName:n,color:s,component:r,fontSize:a}),d=(e=>{const{color:t,fontSize:i,classes:n}=e,o={root:["root","inherit"!==t&&`color${(0,ui.A)(t)}`,`fontSize${(0,ui.A)(i)}`]};return(0,Nt.A)(o,bb,n)})(c);return(0,Ft.jsx)(Cb,(0,Dt.A)({as:r,className:(0,It.A)(n,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));wb.muiName="Icon";const Sb=wb,xb=e=>Es((e=>({...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 Lb({d:e}){const t=_i();let n="inherit",o=t.palette.success.main;e.missing?o=t.palette.warning.main:e.error&&(n="error",o=t.palette.error.main);const s={color:o},r=i.createElement(Zo,{style:{lineHeight:"30px",paddingRight:t.spacing(1)}},i.createElement(Sb,null,e.missing||e.error?i.createElement(xb,{style:s}):i.createElement(gh,{style:s})));return i.createElement(Ho,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},i.createElement(Ho,{item:!0},r),i.createElement(Ho,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},i.createElement(Zo,{noWrap:!0,component:"p"},i.createElement(Zo,{component:"span",variant:"subtitle2",color:n},e.description),i.createElement(Zo,{component:"span"}," "),i.createElement(Zo,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function kb({data:e}){const t=_i();return i.createElement(Ho,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,n)=>{const o=e.descriptions.map(((e,t)=>i.createElement(Lb,{d:e,key:t})));return o.length>0&&i.createElement(Ho,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:t.spacing(2)}},i.createElement(Zo,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function Eb({title:e="Error",message:t="",data:n=[]}){return i.createElement(Ho,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},i.createElement(Ho,{item:!0},i.createElement(xb,{style:{fontSize:"38px"}})),i.createElement(Ho,{item:!0},i.createElement(Zo,{variant:"h6",align:"center","data-tid":"error-title"},e)),i.createElement(Ho,{item:!0},i.createElement(Zo,{variant:"subtitle1",align:"center","data-tid":"error-message"},t)),i.createElement(kb,{data:n}))}function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Db.apply(this,arguments)}const Ib="Progress",Nb={root:`${Ib}-root`,front:`${Ib}-front`,back:`${Ib}-back`},Ab=(0,qt.Ay)("div")((({theme:e})=>({[`&.${Nb.root}`]:{position:"relative",display:"inline-block"},[`& .${Nb.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${Nb.back}`]:{color:e.palette.divider}}))),Rb={small:16,medium:32,large:64,xlarge:128};function Tb({size:e="medium",...t}){const n=Rb[e];return i.createElement(Ab,{className:Nb.root},i.createElement(ml,Db({variant:"determinate",value:100,className:Nb.back,size:n,thickness:3},t)),i.createElement(ml,Db({variant:"indeterminate",disableShrink:!0,className:Nb.front,size:n,thickness:3},t)))}function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},qb.apply(this,arguments)}const Mb={stripes:"LongRunningQuery-stripes"},Ob=(0,qt.Ay)(Ho)((()=>({[`& .${Mb.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 Pb({cancel:e,translator:t,...n}){return i.createElement(i.Fragment,null,i.createElement(Ob,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},i.createElement(Ho,{item:!0},i.createElement(Tb,null)),i.createElement(Ho,{item:!0},i.createElement(Zo,{variant:"h6",align:"center","data-tid":"update-active"},t.get("Object.Update.Active")))),i.createElement(Ho,qb({item:!0},n),i.createElement($a,{variant:"contained",onClick:e},t.get("Cancel"))))}function Fb({retry:e,translator:t,...n}){return i.createElement(i.Fragment,null,i.createElement(Ho,{item:!0},i.createElement(xb,{style:{fontSize:"38px"}})),i.createElement(Ho,{item:!0},i.createElement(Zo,{variant:"h6",align:"center","data-tid":"update-cancelled"},t.get("Object.Update.Cancelled"))),i.createElement(Ho,{item:!0},i.createElement($a,qb({variant:"contained",onClick:e},n),t.get("Retry"))))}function Bb({canCancel:e,canRetry:t,api:n}){const{translator:o}=(0,i.useContext)(_c);return i.createElement(Ho,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Mb.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&i.createElement(Pb,{cancel:n.cancel,translator:o,className:Mb.cancel}),t&&i.createElement(Fb,{retry:n.retry,translator:o,className:Mb.retry}))}function Wb(){return i.createElement(Ho,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},i.createElement(Tb,{size:"large"}))}const Vb="Header",zb={containerStyle:`${Vb}-containerStyle`,containerTitleStyle:`${Vb}-containerTitleStyle`},Hb=(0,qt.Ay)(Ho)((({theme:e})=>({[`&.${zb.containerStyle}`]:{flexGrow:0},[`&.${zb.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}}))),jb=function({layout:e,sn:t,anchorEl:n,hovering:o,focusHandler:s,titleStyles:r={}}){const a=e.showTitles&&!!e.title,l=e.showTitles&&!!e.subtitle,c=e.qSelectionInfo&&e.qSelectionInfo.qInSelections,[d,h]=(0,i.useState)([]),[u,g]=Qc(),[p,m]=(0,i.useState)(!1);(0,i.useEffect)((()=>{t&&t.component&&t.component.isHooked&&t.component.observeActions((e=>{h([...e,...t&&t.selectionToolbar&&t.selectionToolbar.items||[]])}))}),[t]),(0,i.useEffect)((()=>{if(!g)return;const{width:e}=g;m(e<221)}),[g]);const f=a||l,v=[zb.containerStyle,...f?[zb.containerTitleStyle]:[]],_=(o||c)&&(p||!f),b=f&&!_&&!p,y=i.createElement(Mf,{show:b,selections:{show:c,api:t.component.selections,onKeyDeactivate:s.refocusContent},actions:d,popover:{show:_,anchorEl:n},focusHandler:s,layout:e});return i.createElement(Hb,{ref:u,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},i.createElement(Ho,{item:!0,zeroMinWidth:!0,xs:!0},i.createElement(Ho,{container:!0,wrap:"nowrap",direction:"column"},a&&i.createElement(Zo,{variant:"h6",noWrap:!0,className:"njs-cell-title",style:r.main},e.title),l&&i.createElement(Zo,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:r.subTitle},e.subtitle))),i.createElement(Ho,{item:!0},y))},Ub="Footer-itemStyle",$b=(0,qt.Ay)(Ho)((({theme:e})=>({[`& .${Ub}`]:{minWidth:0,paddingTop:e.spacing(1)}}))),Gb=function({layout:e,titleStyles:t={}}){return e&&e.showTitles&&e.footnote?i.createElement($b,{container:!0},i.createElement(Ho,{item:!0,className:Ub},i.createElement(Zo,{noWrap:!0,variant:"body2",className:"njs-cell-footer",style:t.footer},e.footnote))):null};class Kb{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 Xb=function({sn:e,snOptions:t,snPlugins:n,layout:o,appLayout:s,halo:r}){const{component:a}=e,{theme:l,language:c,constraints:d,interactions:h,keyboardNavigation:u}=(0,i.useContext)(_c),[g]=(0,i.useState)((()=>new Kb)),[p,m]=(0,i.useState)(!1),[f,v]=(0,i.useState)(0),[_,b,y]=Qc(),[C,w]=(0,i.useState)(null),S=(0,i.useCallback)((e=>{e&&w(e)}),[]);return(0,i.useEffect)((()=>{if(C)return a.created({options:t}),a.mounted(C),m(!0),()=>{g.stop(),a.willUnmount()}}),[C,a]),(0,i.useEffect)((()=>{p&&C&&b&&(!a.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||g.schedule((()=>{const i=[];return d.passive||i.push("passive"),d.active||i.push("interact"),d.select||i.push("select"),d.edit||i.push("edit"),r.app&&r.app.session&&i.push("fetch"),Promise.resolve(a.render({layout:o,options:t,plugins:n,embed:r.public.nebbie,context:{constraints:d,interactions:h,theme:r.public.theme,appLayout:s,keyboardNavigation:u,...a.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(s||{}).qLocaleInfo,permissions:i}}})).then((e=>{!1!==e&&(0===f&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),v(f+1))}))})))}),[b,t,n,C,y,o,s,l,c,d,h,p,u]),i.createElement("div",{ref:_,"data-render-count":f,style:{position:"relative",height:"100%"},className:"njs-viz"},i.createElement("div",{ref:S,style:{position:"absolute",width:"100%",height:"100%"}}))},Zb=(e,t)=>{switch(t.type){case"LOADING":return{...e,loading:!0};case"LOADED":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization};case"RENDER":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null};case"LONG_RUNNING_QUERY":return{...e,longRunningQuery:!0};case"ERROR":return{...e,loading:!1,longRunningQuery:!1,error:t.error};default:throw new Error(`Unhandled type: ${t.type}`)}};function Yb({delay:e=750}){const[t,n]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const t=setTimeout((()=>n(!0)),e);return()=>clearTimeout(t)}),[]),t?i.createElement(Wb,null):null}const Qb=e=>!e.qError||7005===e.qError.qErrorCode,Jb=(e,t,i,n,o)=>[...Array(e).keys()].map((e=>{const s=!(!t||!t[e]),r=s&&t[e].qError&&7005===t[e].qError.qErrorCode,a=s&&!r&&t[e].qError,l=r&&t[e].qCalcCondMsg,c=`${a?n:r?l||o:s&&t[e].qFallbackTitle||""}`,d=i(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!s&&!a&&e>=t.length||r,error:a}})),ey=e=>e&&(Array.isArray(e)?e:[e])||[],ty=(e,t,i,n)=>{const o=n.dimensions.min(),s=n.measures.min(),r=n.resolveLayout(t);return{reqDimErrors:Jb(o,ey(r.qDimensionInfo||r.qItems),(e=>n.dimensions.description(i,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Jb(s,ey(r.qMeasureInfo),(e=>n.measures.description(i,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},iy=(0,i.forwardRef)((({halo:e,model:t,initialSnOptions:n,initialSnPlugins:o,initialError:s,onMount:r,currentId:a,emitter:l},c)=>{const{app:d,types:h}=e,{nebbie:u}=e.public,{theme:g,translator:p,language:m,keyboardNavigation:f,disableCellPadding:v=!1}=(0,i.useContext)(_c),_=_i(),[b,y,C]=Qc(),[w,S]=(0,i.useReducer)(Zb,{loading:!1,loaded:!1,longRunningQuery:!1,error:(x=s)?{title:x.message}:null,sn:null,visualization:null});var x;const[L,k]=(0,i.useState)(t),[E,{validating:D,canCancel:I,canRetry:N},A]=Zc(L),[R]=Yc(d),[T,q,M]=Qc(),[O,P]=(0,i.useState)(n),[F,B]=(0,i.useState)(o),W=`njs-cell-${a}`,[V]=Yf(d,L,[`#${W}`,".njs-action-toolbar-popover"]),[z,H]=(0,i.useState)(!1),j=(0,i.useRef)({enter:null,leave:null}),{titleStyles:U,bgColor:$,bgImage:G,border:K,borderRadius:X,boxShadow:Z}=((e,t,n,o)=>(0,i.useMemo)((()=>{if(e&&t){const i=e.components?e.components.find((e=>"general"===e.key)):null,o={main:kv(i,"main",t,e.visualization),footer:kv(i,"footer",t,e.visualization),subTitle:kv(i,"subTitle",t,e.visualization)},s=xv(i,t,e.visualization),r=Sv(i,n),a=function(e,t,i){const n=yv(e?.borderColor,"","borderColor",t,i),o=e?.borderWidth||_v("","borderWidth",t,i);return o&&n?`${o} solid ${n}`:void 0}(i,t,e.visualization),l=function(e,t,i){return e?.borderRadius||_v("","borderRadius",t,i)}(i,t,e.visualization);return{titleStyles:o,bgColor:s,bgImage:r,border:a,borderRadius:l,boxShadow:Lv(i,t,e.visualization)}}return{}}),[e,t,n,o]))(E,e.public.theme,e.app,g),Y=(0,i.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,i.useEffect)((()=>{Kf(Y.current)}),[]),Y.current.blurCallback=t=>{e.root.toggleFocusOfCells(),t&&M&&M.focus()},Y.current.refocusContent=()=>{w.sn.component&&"function"==typeof w.sn.component.focus&&w.sn.component.focus()},(0,i.useEffect)((()=>{if(s)return void r();if(!R||!E)return;if(w.visualization===E.visualization&&w.sn)return void(async e=>{const[t,i]=await(async(e,t,{targets:i},n)=>{const{hasUnfulfilledErrors:o,aggMinD:s,aggMinM:r,hasLayoutErrors:a,layoutErrors:l}=((e,t,i)=>{let n=!1,o=0,s=0,r=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],h=d.dimensions.min(),u=d.measures.min(),g=d.resolveLayout(i),p=ey(g.qDimensionInfo||g.qItems).filter(Qb),m=ey(g.qMeasureInfo).filter(Qb);if(o+=h,s+=u,(p.length<h||m.length<u)&&(n=!0),g.qError){r=!0,a=7005===g.qError.qErrorCode;const t=a&&g.qCalcCondMsg?g.qCalcCondMsg:a?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:n,aggMinD:o,aggMinM:s,hasLayoutErrors:r,layoutErrors:l}})(e,i,t),c=[],d=[];let h=null;for(let s=0;s<i.length;++s){const r=i[s];if(!a&&o){const i=h||await n.getProperties();h=i;const o=ty(e,t,i,r);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const u=c.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Dimensions",[u,s]),p=d.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Measures",[p,r]),f=[{title:g,descriptions:[...c]},{title:m,descriptions:[...d]}],v=a?l:f;return[a||o,{title:a?l[0].title:e.get("Visualization.Incomplete"),data:v}]})(p,E,e.generator.qae.data,L);S(t?{type:"ERROR",error:i}:{type:"RENDER"}),(({sn:e,layout:t,model:i})=>{const n=e&&e.component&&e.component.selections;if(n&&n.id&&i.id&&n.id===i.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!n.isModal()){const{targets:t}=e.generator.qae.data,i=t[0].propertyPath;n.goModal(i)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||n.isModal()&&n.noModal()}})({sn:w.sn,layout:E,model:L})})(w.sn);const e=h.getSupportedVersion(E.visualization,E.version);return(async(e,t)=>{S({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:i,version:n,model:o,app:s,selections:r,nebbie:a,focusHandler:l,emitter:c,onMount:d})=>{try{const h=await(async({types:e,name:t,version:i})=>await e.get({name:t,version:i}).supernova())({types:t,name:i,version:n}),u=h.create({model:o,app:s,selections:r,nebbie:a,focusHandler:l,emitter:c});u&&(e({type:"LOADED",sn:u,visualization:i}),d())}catch(t){e(n?{type:"ERROR",error:{title:t.message}}:{type:"ERROR",error:{title:`Could not find a version of '${i}' that supports current object version. Did you forget to register ${i}?`}}),d()}})({dispatch:S,types:h,visualization:e,version:t,model:L,app:d,selections:V,nebbie:u,focusHandler:Y.current,emitter:l,onMount:r})})(E.visualization,e),()=>{}}),[h,w.sn,L,V,E,R,m]),(0,i.useEffect)((()=>{if(!D)return;const e=setTimeout((()=>S({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[D]),(0,i.useImperativeHandle)(c,(()=>({getQae:()=>w.sn.generator.qae,toggleFocus(e){"function"==typeof w.sn.component.focus&&(e?w.sn.component.focus():w.sn.component.blur())},setSnOptions:P,setSnPlugins:B,setModel:k,getImperativeHandle:()=>w.sn?.component&&"function"==typeof w.sn.component.getImperativeHandle?w.sn.component.getImperativeHandle():{},async takeSnapshot(){const{width:e,height:t}=y;let i=JSON.parse(JSON.stringify(E));return"function"==typeof w.sn.component.setSnapshotData&&(i=await w.sn.component.setSnapshotData(i)||i),{key:String(+Date.now()),meta:{language:p.language(),theme:_.name,appLayout:R,size:{width:Math.round(e),height:Math.round(t)}},layout:i}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)}})),[w.sn,q,y,E,_.name,R]);let Q=null;return w.loading&&!w.longRunningQuery?Q=i.createElement(Yb,null):w.error?Q=i.createElement(Eb,w.error):w.loaded&&(Q=i.createElement(Xb,{key:E.visualization,sn:w.sn,halo:e,snOptions:O,snPlugins:F,layout:E,appLayout:R})),i.createElement(Hd,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:$||"unset",backgroundImage:G&&G.url?`url(${G.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:G&&G.size,backgroundPosition:G&&G.pos,border:K,borderRadius:X,boxShadow:Z,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:b,id:W,onMouseEnter:()=>{j.current.leave&&clearTimeout(j.current.leave),j.enter||(j.current.enter=setTimeout((()=>{H(!0),j.current.enter=null}),250))},onMouseLeave:()=>{j.current.enter&&clearTimeout(j.current.enter),j.current.leave||(j.current.leave=setTimeout((()=>{H(!1),j.current.leave=null}),750))}},i.createElement(Ho,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...v?{}:{padding:_.spacing(1)},...w.longRunningQuery?{opacity:"0.3"}:{}}},C&&E&&w.sn&&i.createElement(jb,{layout:E,sn:w.sn,anchorEl:C,hovering:z,focusHandler:Y.current,titleStyles:U}," "),i.createElement(Ho,{tabIndex:f?0:-1,onKeyDown:f?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,item:!0,xs:!0,style:{height:"100%"},ref:T},Q),C&&E&&w.sn&&i.createElement(Gb,{layout:E,titleStyles:U})),w.longRunningQuery&&i.createElement(Bb,{canCancel:I,canRetry:N,api:A}))}));function ny(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function oy(e="/",t,i){const n=[];return Object.keys(t).forEach((o=>{const s=t[o];var r,a;"object"!=typeof i[o]||"object"!=typeof s||Array.isArray(s)?(r=s,a=i[o],(ny(r)&&ny(a)?JSON.stringify(r)===JSON.stringify(a):!Array.isArray(r)&&!Array.isArray(a)&&r===a)||n.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):n.push(...oy(`${e}${o}/`,t[o],i[o]))})),n}function sy(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 "${e.info.name}" has no "fn" function`)}))}const ry=e=>!(!e||e.qHasSoftPatches||e.qExtendsId||!((e.qMeta?.privileges||[]).indexOf("update")>-1)),ay=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),ly=ic().bind(null,!0),cy={},{isArray:dy}=Array;function hy(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function uy(e){return void 0===e}function gy(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function py(e,t){const i=t.substring(1).split("/").slice(0,-1);let n;return i.forEach(((t,o)=>{if(o===i.length)return;n=+t;const s=isNaN(n)?{}:[];e[n||t]=uy(e[n||t])?s:e[t],e=e[n||t]})),e}function my(e,t){let i=!0;if(hy(e)&&hy(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((n=>{my(e[n],t[n])||(i=!1)})),i);if(dy(e)&&dy(t)){if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i+=1)if(!my(e[i],t[i]))return!1;return!0}return e===t}cy.generate=function(e,t,i){i=i||"";let n=[];return Object.keys(t).forEach((o=>{const s=function(e){return e?ly({},{val:e}).val:e}(t[o]),r=e[o],a=`${i}/${o}`;my(s,r)||gy(t,o)||(uy(r)?n.push({op:"add",path:a,value:s}):hy(s)&&hy(r)?n=n.concat(cy.generate(r,s,a)):dy(s)&&dy(r)?n=n.concat(function(e,t,i){let n=[];const o=e.slice();let s=-1;function r(e,t,i){if(e[i]&&uy(e[i].qInfo))return null;if(e[i]&&e[i].qInfo.qId===t)return i;for(let i=0,n=e.length;i<n;i+=1)if(e[i]&&e[i].qInfo.qId===t)return i;return-1}if(my(t,o))return n;if(!uy(t[0])&&uy(t[0].qInfo))return n.push({op:"replace",path:i,value:t}),n;for(let e=o.length-1;e>=0;e-=1)s=r(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===s?(n.push({op:"remove",path:`${i}/${e}`}),o.splice(e,1)):n=n.concat(cy.generate(o[e],t[s],`${i}/${e}`));for(let e=0,a=t.length;e<a;e+=1)s=r(o,t[e].qInfo&&t[e].qInfo.qId),-1===s?(n.push({op:"add",path:`${i}/${e}`,value:t[e]}),o.splice(e,0,t[e])):s!==e&&(n.push({op:"move",path:`${i}/${e}`,from:`${i}/${s}`}),o.splice(e,0,o.splice(s,1)[0]));return n}(r,s,a)):n.push({op:"replace",path:`${i}/${o}`,value:s}))})),Object.keys(e).forEach((o=>{uy(t[o])&&!gy(e,o)&&n.push({op:"remove",path:`${i}/${o}`})})),n},cy.apply=function(e,t){t.forEach((t=>{let i=py(e,t.path),n=t.path.split("/").splice(-1)[0],o=n&&isNaN(+n)?i[n]:i[+n]||i;const s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,o=e),"add"===t.op||"replace"===t.op)if(dy(i))"-"===n&&(n=i.length),i.splice(+n,"add"===t.op?0:1,t.value);else if(dy(o)&&dy(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(hy(o)&&hy(t.value))r=o,Object.keys(r).forEach((e=>{Object.getOwnPropertyDescriptor(r,e).configurable&&!gy(r,e)&&delete r[e]})),ly(o,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[n]=t.value}else if("move"===t.op){const o=py(e,t.from);dy(i)?i.splice(+n,0,o.splice(+s,1)[0]):(i[n]=o[s],delete o[s])}else"remove"===t.op&&(dy(i)?i.splice(+n,1):delete i[n]);var r}))},cy.clone=function(e){return ly({},e)},cy.createPatch=function(e,t,i){const n={op:e.toLowerCase(),path:i};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},cy.updateObject=function(e,t){Object.keys(e).length?cy.apply(e,cy.generate(e,t)):ly(e,t)};const fy=cy,vy=e=>t=>{const i=(n={...t,action(){"function"==typeof t.action&&t.action.call(i,e),i.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(i,e),active:"function"==typeof t.active?function(){return t.active.call(i,e)}:void 0},Object.keys(yl().prototype).forEach((e=>{n[e]=yl().prototype[e]})),yl().init(n),n);var n;return i};let _y,by;function yy(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let i=0;i<t.length;i++)if(e[i]!==t[i])return!0;return!1}function Cy(e,{explicitResize:t=!1}={}){e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function wy(e){xy(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 Sy(e){if(e.__hooks.obsolete)return Promise.resolve();by=-1,_y=e;let t=-1;_y.__hooks.initiated&&(t=_y.__hooks.list.length);try{_y.fn.call(null)}catch(e){console.error(e)}_y.__hooks.initiated=!0,t>-1&&t!==_y.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const i=_y.__hooks;return Dy(_y),by=void 0,_y=void 0,i.chain.promise||(i.chain.promise=new Promise((e=>{i.chain.resolve=e}))),function(e){xy(e.pendingLayoutEffects)}(i),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){xy(e.pendingEffects),e.macro=null,function(e){e.pendingPromises.length||e.micro||e.macro||(e.chain.promise=null,e.chain.resolve(!e.waitForData))}(e)}(e)})))}(i),i.chain.promise}function xy(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 Ly(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 ky(e,t,i,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,i,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Ey(e){return e.__hooks.imperativeHandle}function Dy(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Iy(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Dy(e))}function Ny(e){if(void 0===_y)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=_y.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Ay(e){return Ny(++by),_y.context[e]}function Ry(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Ty(e){return{__hooked:!0,fn:e,initiate:Cy,run:Sy,teardown:wy,runSnaps:Ly,runMenu:ky,focus:cC,blur:dC,observeActions:Iy,getImperativeHandle:Ey,updateRectOnNextRun:Ry}}function qy(e){const t=Ny(++by);if(!t.value){t.component=_y;const i=e=>{if(t.component.__hooks.obsolete)throw new Error("Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.");const i="function"==typeof e?e(t.value[0]):e;var n;i!==t.value[0]&&(t.value[0]=i,(n=t.component).__hooks.micro||(n.__hooks.micro=setTimeout((()=>{n.__hooks.micro=null,Sy(n)}),0)))};t.value=["function"==typeof e?e():e,i]}return t.value}function My(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const i=Ny(++by);yy(i.value?i.value[1]:void 0,t)&&(i.value=[e,t],-1===_y.__hooks.pendingEffects.indexOf(i)&&_y.__hooks.pendingEffects.push(i))}function Oy(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const i=Ny(++by);yy(i.value?i.value[1]:void 0,t)&&(i.value=[e,t],_y.__hooks.pendingLayoutEffects.push(i))}function Py(e,t){t||console.warn("useMemo called without dependencies.");const i=Ny(++by);return yy(i.value?i.value[0]:void 0,t)&&(i.value=[t,e()]),i.value[1]}function Fy(e,t){const[i,n]=qy((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Ny(++by);return o.component||(o.component=_y),Oy((()=>{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(),n({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),n({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[i.resolved,i.rejected]}function By(){return Ay("element")}function Wy(){const e=By(),t=_y.__hooks.resizer,[i,n]=qy((()=>{const{left:t,top:i,width:n,height:o}=e.getBoundingClientRect();return{left:t,top:i,width:n,height:o}}));return t.current=i,-1===t.setters.indexOf(n)&&t.setters.push(n),t.update&&t.resize&&(t.update=!1,t.resize()),Oy((()=>{if(t.initiated)return;t.initiated=!0;const i=()=>{const{left:i,top:n,width:o,height:s}=e.getBoundingClientRect(),r=t.current;r.width===o&&r.height===s&&r.left===i&&r.top===n||t.setters.forEach((e=>e({left:i,top:n,width:o,height:s})))};if(t.resize=()=>{i()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let n=new ResizeObserver(i);return n.observe(e),()=>{n.unobserve(e),n.disconnect(e),n=null,t.resize=void 0}}}),[e]),i}function Vy(){return Ay("layout")}function zy(){const e=Ay("layout"),[t]=qy({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Hy(){return Ay("appLayout")}function jy(){const e=Ay("model");return e&&e.session?e:void 0}function Uy(){const e=Ay("app");return e&&e.session?e:void 0}function $y(){const e=Ay("global");return e&&e.session?e:void 0}function Gy(){return Ay("selections")}function Ky(){return Ay("theme")}function Xy(){return Ay("nebbie")}function Zy(){return Ay("translator")}function Yy(){return Ay("deviceType")}function Qy(){return Ay("plugins")}function Jy(e,t){const[i]=qy({action(){i._config.action.call(null)}});return i.component||(i.component=_y,_y.__hooks.actions.list.push(i)),Py((()=>{const t=e();i._config=t,i.active=t.active||!1,i.disabled=t.disabled||!1,i.hidden=t.hidden||!1,i.label=t.label||"",i.getSvgIconShape=t.icon?()=>t.icon:void 0,i.key=t.key||i.component.__hooks.actions.list.length,i.component.__hooks.actions.changed=!0}),t),i.action}function eC(){return _y.__hooks.contraintsWarning&&(console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),_y.__hooks.contraintsWarning=!1),Ay("constraints")}function tC(){return Ay("interactions")}function iC(){return Ay("options")}function nC(e,t){const i=Ny(++by);if(!i.imperative){if(_y.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");i.imperative=!0}if(yy(i.value?i.value[0]:void 0,t)){const n=e();i.value=[t,n],_y.__hooks.imperativeHandle=n}}function oC(e){const t=Ny(++by);t.value||(t.value=1,_y.__hooks.snaps.push(t)),t.fn=e}function sC(e){const t=Ny(++by);t.value||(t.value=1,_y.__hooks.menus.push(t)),t.fn=e}function rC(){Ny(++by);const e=_y.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function aC(){return Ay("emitter")}function lC(){const e=Ay("keyboardNavigation"),t=Ay("focusHandler");if(!_y.__hooks.accessibility.exitFunction){const e=function(e=!1){const i=this.__hooks.accessibility;i.enabled&&i.active&&(dC(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(_y);_y.__hooks.accessibility.exitFunction=e;const i=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),cC(this))}.bind(_y);_y.__hooks.accessibility.focusFunction=i;const n=function(e=!1){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(_y);_y.__hooks.accessibility.focusSelectionFunction=n}const i=_y.__hooks.accessibility.focusFunction,n=_y.__hooks.accessibility.exitFunction,o=_y.__hooks.accessibility.focusSelectionFunction,[s,r]=qy({active:!1,enabled:e,blur:n,focus:i,focusSelection:o});return _y.__hooks.accessibility.setter=r,_y.__hooks.accessibility.enabled=e,My((()=>r({active:!1,enabled:e,blur:n,focus:i,focusSelection:o})),[e]),s}function cC(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 dC(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 hC={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},uC=Object.keys(hC),gC=e=>(Object.keys(yl().prototype).forEach((t=>{e[t]=yl().prototype[t]})),yl().init(e),e);function pC(e,t,i){"function"==typeof e.component&&(e.component=Ty(e.component));const[n,o]=e.component&&e.component.__hooked?function(e,t,i){e.component.run!==Sy&&console.warn("Detected multiple supernova modules, this might cause problems.");const n=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const s={},r=["appLayout","constraints","interactions"],a={},l={};t.model&&t.model.session||(a.select=!0,a.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:n,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:i.deviceType,theme:void 0,translator:i.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:a,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(i){this.context.element=i,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let i=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(i=!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,i=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let n=!1;Object.keys(t.options).forEach((i=>{e[i]=t.options[i],this.context.options[i]!==t.options[i]&&(n=!0)})),n&&(this.context.options=e,i=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,i)=>{this.context.plugins[i]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],i=!0)}r.forEach((e=>{const n=t.context;if(n&&Object.prototype.hasOwnProperty.call(n,e)){let t=JSON.stringify(n[e]);"constraints"===e&&(t=JSON.stringify({...n[e],...a})),"interactions"===e&&(t=JSON.stringify({...n[e],...l})),t!==s[e]&&(i=!0,s[e]=t,this.context[e]=JSON.parse(t))}}))}else i=!0;return this.context.theme&&this.context.theme.name()!==s.themeName&&(i=!0,s.themeName=this.context.theme.name()),this.context.translator.language()!==s.language&&(i=!0,s.language=c.context.translator.language()),i?(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,i,n){return e.component.runMenu(this,t,i,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 r.forEach((e=>{s[e]=JSON.stringify(c.context[e])})),s.themeName=c.context.theme?c.context.theme.name():void 0,s.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,i):function(e,t){console.warn("Obsolete API - time to get hooked!");const i={...hC};gC(i);const n={emit(...e){i.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==uC.indexOf(t)?i[t]=e.component[t].bind(n):n[t]=e.component[t]}));const o=function({sn:e,component:t}){const i={},n=[],o=vy(t);return((e.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=o(e);i[e.key]=t,n.push(t)})),(e.definition.actions||[]).forEach((e=>{const t=o(e);i[e.key]=t})),{actions:i,selectionToolbarItems:n,destroy(){n.length=0}}}({sn:e,component:n}),s=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(n,{model:t.model,app:t.app,global:s,selections:t.selections,actions:o.actions}),Object.assign(i,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[i,o]}(e,t),s=[];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(...i){return e.qae.properties.onChange.call({model:t.model},...i),t.model.__snInterceptor.setProperties.call(this,...i)},t.model.applyPatches=function(i,n){const o=n?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const s=fy.clone(o),r=i.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));fy.apply(o,r),e.qae.properties.onChange.call({model:t.model},o);const a=fy.generate(s,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,a,n)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},s.push(t.model.__snInterceptor.teardown)),{generator:e,component:n,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){s.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const mC=()=>{};function fC(e,t){return void 0===e?()=>t:()=>e}function vC(e){const t=e||{};return{min:"function"==typeof t.min?t.min:fC(t.min,0),max:"function"==typeof t.max?t.max:fC(t.max,1e3),added:t.added||t.add||mC,description:t.description||mC,moved:t.moved||t.move||mC,removed:t.removed||t.remove||mC,replaced:t.replaced||t.replace||mC,isDefined:()=>!!e}}const _C=(e,t,i)=>{const n=t.split("/");let o=e;if(void 0===o)return i;for(let e=0;e<n.length;++e)if(""!==n[e]){if(void 0===o[n[e]])return i;o=o[n[e]]}return o};function bC(e){const t=e.path||"/qHyperCubeDef",i=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(i)){const e=i.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:i,resolveLayout:e=>_C(e,i,{}),dimensions:vC(e.dimensions),measures:vC(e.measures)}}function yC(e={}){let t,i=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(i=e.properties.initial,t=e.properties.onChange),{properties:{initial:i,onChange:t},data:{targets:((e.data||{}).targets||[]).map(bC)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function CC(e,t){let i;i="function"==typeof e?e(t):e;const n={qae:yC(i.qae),component:i.component||{},create:e=>pC(n,e,t),definition:{}};return Object.keys(i).forEach((e=>{n[e]||(n.definition[e]=i[e])})),n}const wC=(e,t,i)=>{if(!e)return Promise.resolve();let n=fy.generate(t,i);return ic()(!0,t,i),n&&n.length?(n=n.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,n,!0):e.applyPatches(n,!0)):Promise.resolve()},SC=()=>{};async function xC(e,t,n,o,r=(async()=>{})){const a=function({model:e,halo:t,initialError:n,onDestroy:o=(async()=>{})}={}){let r,a=SC,l=null,c=null,d=null,h=null;const u=new Promise((e=>{d=e})),g=new Promise((e=>{h=e})),p=e=>()=>{e&&e(),h()};let m={},f=[];const v=new(yl()),_={id:e.id,model:e,async destroy(){await o(),a(),a=SC},async convertTo(i,n=!0,o=!1){if(n){const n=await e.getLayout();if(ry(n)&&!o){const n=await vb({halo:t,model:e,cellRef:l,newType:i});return await ay(e,n.qProperty),n}const s=await e.getEffectiveProperties(),r=await vb({halo:t,model:e,cellRef:l,newType:i,properties:s}),a=r.qProperty;return await wC(e,s,a),r}return await vb({halo:t,model:e,cellRef:l,newType:i})},async toggleDataView(i){let n;if(r||!1===i)r&&!0!==i&&(n=e,await t.app.destroySessionObject(r),r=void 0);else{let i=t.config.context.dataViewType;const o=await e.getEffectiveProperties();if(!t.types.getSupportedVersion(i)){if(!t.types.getSupportedVersion("table"))throw new Error("No data view type registered");i="table"}const s=await vb({halo:t,model:e,cellRef:l,newType:i,properties:o,viewDataMode:!0});n=await t.app.createSessionObject(s.qProperty),r=n.id}n&&l.current.setModel(n)},addListener(e,t){v.addListener(e,t)},removeListener(e,t){v.removeListener(e,t)},getImperativeHandle:async()=>(await g,l.current.getImperativeHandle()),__DO_NOT_USE__:{mount(o){if(c)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return c=o,[a,l]=function({halo:e,element:t,model:n,initialSnOptions:o,initialSnPlugins:r,onMount:a,emitter:l,initialError:c}){const{root:d}=e,h=i.createRef(),u=d_(),g=s.createPortal(i.createElement(iy,{ref:h,halo:e,model:n,currentId:u,initialSnOptions:o,initialSnPlugins:r,initialError:c,onMount:a,emitter:l}),t,u),p=()=>{d.remove(g),n.removeListener("closed",p)};return n.on("closed",p),d.add(g),d.addCell(u,h),[p,h]}({halo:t,element:o,model:e,initialSnOptions:m,initialSnPlugins:f,initialError:n,onMount:d,emitter:v}),u},async applyProperties(t){const i=oy("/",t,await e.getEffectiveProperties());if(i.length)return e.applyPatches(i,!0)},options(e){(async e=>{const t=e.onInitialRender;c?(async()=>{await u,l.current.setSnOptions({...m,...e,onInitialRender:p(t)})})():m={...m,...e,onInitialRender:p(t)}})(e)},plugins(e){(async e=>{sy(e),c?(async()=>{await u,l.current.setSnPlugins(e)})():f=e})(e)},exportImage:()=>l.current.exportImage(),takeSnapshot:()=>l.current.takeSnapshot(),getModel:()=>e,convert:{async toType(i){const n=await e.getEffectiveProperties(),o=await vb({halo:t,model:e,cellRef:l,newType:i,properties:n}),s=o.qProperty;return await wC(e,n,s),o},async revert(){await e.clearSoftPatches()}}}};return _}({model:e,halo:n,initialError:o,onDestroy:r});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}async function LC({type:e,version:t,fields:i,properties:n,extendProperties:o},s,r){let a={};const l=[];try{const r=s.types.get({name:e,version:t});a=await r.initialProperties(n,o);const c=await r.supernova();i&&await ib({sn:c,properties:a,fields:i,children:l},s),n&&c&&c.qae.properties.onChange&&c.qae.properties.onChange.call({},a)}catch(t){a=r?null:{qInfo:{qType:e},visualization:e}}if(!r){const e=await s.app.createObject(a);return l.length>0&&await e.setFullPropertyTree({qProperty:a,qChildren:l}),Hc.set(e.id,e),e}return a}function kC(e,t,i){return e.bounds?e.bounds:{y:e.row/i*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/i*100}}const EC=function({model:e,halo:t,initialSnOptions:n,initialSnPlugins:o,initialError:s,onMount:r}){const{root:a}=t,[l]=Zc(e),{theme:c}=(0,i.useContext)(_c),[d,h]=(0,i.useState)([]),[u,g]=(0,i.useState)(void 0),[p,m]=(0,i.useState)(void 0),[f,v]=(0,i.useState)("");(0,i.useEffect)((()=>{if(l){const e=JSON.stringify(l.cells);if(e===f)return;v(e);const n=async()=>{d.forEach((e=>{a.removeCell(e.currentId)}));const e=l.cells,{columns:n,rows:o}=l,s=await Promise.all(e.map((async e=>{let s;const r=new Promise((e=>{s=e})),a=d.find((t=>t.id===e.name));if(a)return a.bounds=kC(e,n,o),delete a.mountedPromise,a;const l=await async function({id:e,options:t,plugins:i,element:n},o){const s=`${e}`;let r=Pc.get(s);r||(r=o.app.getObject(e),Pc.set(s,r));const a=await r;return Hc.set(s,a),xC(a,{options:t,plugins:i,element:n},o)}({id:e.name},t);return{model:l.model,id:e.name,bounds:kC(e,n,o),cellRef:i.createRef(),currentId:d_(),mounted:s,mountedPromise:r}})));s.forEach((e=>a.addCell(e.currentId,e.cellRef))),h(s)};n()}}),[l]);const _=(0,i.useMemo)((()=>d?d.map((e=>function(e,t,n,o,s,r){const{x:a,y:l,width:c,height:d}=e.bounds;return i.createElement("div",{style:{left:`${a}%`,top:`${l}%`,width:`${c}%`,height:`${d}%`,position:"absolute"}},i.createElement(iy,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:o,initialError:s,onMount:r}))}(e,t,n,o,s,e.mounted))):[]),[d]);(0,i.useEffect)((()=>{const e=l?.components?l.components.find((e=>"general"===e.key)):null;g(xv(e,t.public.theme)),m(Sv(e,t.app))}),[l,t.public.theme,t.app,c]);const b=!l||Number.isNaN(l.height)?"100%":`${Number(l.height)}%`,y=d.map((e=>e.mountedPromise));return y.filter((e=>!!e)).length&&Promise.all(y).then((()=>{r()})),i.createElement("div",{className:"njs-sheet",style:{width:"100%",height:b,position:"relative",backgroundColor:u,backgroundImage:p&&p.url?`url(${p.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:p&&p.size,backgroundPosition:p&&p.pos}},_)},DC=()=>{};async function IC({id:e,options:t,plugins:n,element:o},r){const a=`${e}`;let l=Pc.get(a);l||(l=r.app.getObject(e),Pc.set(a,l));const c=await l;return Hc.set(a,c),"sheet"===c.genericType?async function(e,t,n,o,r=(async()=>{})){const a=function({model:e,halo:t,initialError:n,onDestroy:o=(async()=>{})}={}){let r=DC,a=null,l=null,c=null;const d=new Promise((e=>{c=e}));let h={},u=[];const g={id:e.id,model:e,async destroy(){await o(),r(),r=DC},__DO_NOT_USE__:{mount(o){if(l)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return l=o,[r,a]=function({halo:e,element:t,model:n,initialSnOptions:o,initialSnPlugins:r,onMount:a,initialError:l}){const{root:c}=e,d=i.createRef(),h=s.createPortal(i.createElement(EC,{ref:d,halo:e,model:n,initialSnOptions:o,initialSnPlugins:r,initialError:l,onMount:a}),t,n.id),u=()=>{c.remove(h),n.removeListener("closed",u)};return n.on("closed",u),c.add(h),[u,d]}({halo:t,element:o,model:e,initialSnOptions:h,initialSnPlugins:u,initialError:n,onMount:c}),d},async applyProperties(t){const i=oy("/",t,await e.getEffectiveProperties());if(i.length)return e.applyPatches(i,!0)},options(e){(async e=>{l?(async()=>{await d,a.current.setSnOptions({...h,...e})})():h={...h,...e}})(e)},plugins(e){(async e=>{sy(e),l?(async()=>{await d,a.current.setSnPlugins(e)})():u=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return g}({model:e,halo:n,initialError:void 0,onDestroy:r});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}(c,{options:t,plugins:n,element:o},r):xC(c,{options:t,plugins:n,element:o},r)}function NC(e={}){return{isEnabled:t=>!0===e[t]}}var AC=r(1440),RC=r.n(AC);const TC={};function qC(e,t){const i={};let n=null;return{get:e=>i[e],register:(o,s)=>{if(i[o])throw new Error(`Supernova '${e}@${o}' already registered.`);i[o]=function(e,t,i={}){let n,o;const{meta:s}=i,r={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&s&&s.deps&&s.deps.properties)||RC()(e,s.deps.properties),supernova:()=>async function(e,t,{config:i},n){const o=`${e}__${t}`;if(!TC[o]){const s=`${e}${t&&` v${t}`||""}`;if(n&&"function"!=typeof n)throw new Error(`load of visualization '${s}' is not a fuction, wrap load promise in function`);const r=(n||i.load)({name:e,version:t}),a=Promise.resolve(r);TC[o]=a.then((e=>{if(!e)throw new Error(`load() of visualization '${s}' resolved to an invalid object`);return e})).catch((e=>{throw console.warn(e),new Error(`Failed to load visualization: '${s}'`)}))}return TC[o]}(r.name,r.version,t,i.load).then((e=>(n=n||CC(e,t.public.galaxy),o=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e,t=!1){return this.supernova().then((()=>{const i={qInfo:{qType:r.name},visualization:r.name,version:r.version,showTitles:!0,...JSON.parse(o)};return t?(ic()(!0,i,e),i):{...i,...e}}))}};return r}({name:e,version:o},t,s),n=null},getMatchingVersionFromProperties:e=>{var t;n||(t=Object.keys(i),n=[...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=n.length-1;t>=0;t--)if(i[n[t]].supportsPropertiesVersion(e))return n[t];return null},versions:i}}const MC={context:({},{theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"}),load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0},snapshot:{get:async e=>{const t=await fetch(`/njs/snapshot/${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()))}},OC=(e={},t={})=>({...e,...t}),PC=(e=[],t=[])=>[...e,...t].filter(((e,t,i)=>i.indexOf(e)===t)),FC=function e(t={}){const n=function(e){const t=vl({initial:e});return Object.keys(_l).forEach((e=>{t.translator.add(_l[e])})),{translator:t.translator}}(t.context.language);function r(e,a){if(a)return r.createConfiguration(a)(e);let l={...t.context,translator:n.translator};const[c]=function({app:e,context:t}){let n;const s=new Promise((e=>{n=e})),r=i.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.12.0"),a.setAttribute("data-app-id",e.id),document.body.appendChild(a),t&&Dc(t),o.createRoot(a).render(i.createElement(Ic,{ref:r,app:e,initialContext:t,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 s,c.push(e),r.current.setComps(c)})()},remove(e){(async()=>{await s;const t=c.indexOf(e);-1!==t&&c.splice(t,1),r.current.setComps(c)})()},setMuiThemeName(e){(async()=>{await s,r.current.setMuiThemeName(e)})()},context(e){(async()=>{await s,e&&Dc(e),r.current.setContext(e)})()},getAppSelections:async()=>(await s,r.current.getAppSelections())},r,s]}({app:e,context:l}),d=function({themes:e=[],loadTheme:t,root:i}={}){const n=vc();return{setTheme:async o=>{let s=e.filter((e=>e.id===o))[0],r="dark"===o?"dark":"light";if(!s&&t&&(s={load:t}),s&&s.load)try{const e=await Promise.race([s.load(o),(a=5e3,l={__timedOut:!0},new Promise((e=>{setTimeout((()=>e(l)),a)})))]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(r="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,o),i.setMuiThemeName(r))}catch(e){console.error(e)}else n.internalAPI.setTheme({type:r},o),i.setMuiThemeName(r);var a,l},externalAPI:n.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:c});l.themeApi=d.externalAPI;const h={galaxy:{translator:n.translator,flags:NC(t.flags),deviceType:(p=t.context.deviceType,"auto"!==p?p: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"),anything:t.anything},theme:d.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:c,config:t,public:h,context:l,types:null},g=function({halo:e,parent:t}){const i={},n=t||{get:()=>{}};return{register:(t,n)=>{i[t.name]||(i[t.name]=qC(t.name,e)),i[t.name].register(t.version,n)},getSupportedVersion:(e,t)=>{if(i[e])return i[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:o}=e;if(i[t]){if(!i[t].versions[o]){const e=Object.keys(i[t].versions)[0];console.warn(`Version ${o} of ${t} is not registered. Falling back to version ${e}`),o=e}}else console.warn(`Visualization ${t} is not registered. Adding it now.`),this.register({name:t,version:o});return i[t].get(o)||n.get(e)},getList:()=>Object.keys(i).map((e=>({name:e,versions:Object.keys(i[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{i[e]&&(i[e]=void 0),function(e){Object.keys(TC).forEach((t=>{t.split("__")[0]===e&&(TC[t]=void 0)}))}(e)}}}({halo:u});var p;t.types.forEach((e=>g.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let m=d.setTheme(t.context.theme),f=null,v=null;const _={render:async e=>(await m,e.id?IC(e,u):async function({type:e,version:t,fields:i,properties:n,options:o,plugins:s,element:r,extendProperties:a},l){let c={};const d=[];let h;try{const o=l.types.get({name:e,version:t});c=await o.initialProperties(n,a);const s=await o.supernova();i&&await ib({sn:s,properties:c,fields:i,children:d},l),n&&s&&s.qae.properties.onChange&&s.qae.properties.onChange.call({},c)}catch(t){h=t,c={qInfo:{qType:e},visualization:e}}const u=await l.app.createSessionObject(c);d.length>0&&await u.setFullPropertyTree({qProperty:c,qChildren:d}),Hc.set(u.id,u);const g=(e=>{const t=Vc({type:"SET",value:e});return()=>{t(),Hc.clear(e.id)}})(u);return xC(u,{options:o,plugins:s,element:r},l,h,(async()=>{await l.app.destroySessionObject(u.id),g()}))}(e,u)),create:async e=>LC(e,u,!1),generateProperties:async e=>LC(e,u,!0),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((i=>{Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==l[i]&&(t||(t={}),t[i]=e[i])})),t&&(l={...l,...t,translator:n.translator},t.theme&&(m=d.setTheme(t.theme),await m),t.language&&u.public.translator.language(t.language),c.context(l))},selections:async()=>(f||(f={mount(t){v?console.error("Already mounted"):(v=function({element:e,app:t}){return s.createPortal(i.createElement(h_,{app:t}),e,d_())}({element:t,app:e}),c.add(v))},unmount(){v&&(c.remove(v),v=null)}}),f),field:async t=>{let n;const o="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const r={fieldName:o,async mount(a,l={}){if(!a)throw new Error(`Element for ${o||n} not provided`);if(this._instance)throw new Error(`Field or object ${o||n} already mounted`);const d=()=>r.emit("selectionActivated"),h=()=>r.emit("selectionDeactivated");return new Promise((o=>{this._instance=function({element:e,app:t,fieldIdentifier:n,qId:o,stateName:r="$",options:a={},renderedCallback:l}){return s.createPortal(i.createElement(H_,{app:t,element:e,fieldIdentifier:n,qId:o,stateName:r,options:a,renderedCallback:l}),e,d_())}({element:a,app:e,fieldIdentifier:t,qId:n,options:z_({onSelectionActivated:d,onSelectionDeactivated:h,...l}),stateName:l.stateName||"$",renderedCallback:o}),c.add(this._instance)}))},unmount(){this._instance&&(c.remove(this._instance),this._instance=null)}};return Kf(r),r},getRegisteredTypes:g.getList,__DO_NOT_USE__:{types:g,popover(t,n,o){_._popoverInstance&&(c.remove(_._popoverInstance),_._popoverInstance=null);const s=((e={})=>{const t={...j_};return ic()(!0,t,e),t})({onPopoverClose:()=>_.emit("fieldPopoverClose"),...o});_._popoverInstance=i.createElement(U_,{element:t,key:d_(),app:e,fieldIdentifier:n,options:s,stateName:o.stateName||"$"}),c.add(_._popoverInstance)}}};return u.public.nebbie=_,u.types=g,Kf(_),_}return r.createConfiguration=i=>e(((e,t)=>({context:OC(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:PC(e.types,t.types),themes:PC(e.themes,t.themes),flags:OC(e.flags,t.flags),anything:OC(e.anything,t.anything)}))(t,i)),r.config=t,r}(MC),BC=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},WC=globalThis.crypto||{getRandomValues:()=>123456},VC=function(e){return t=>{const i=ic()({},t);i.qInfo=i.qInfo||{},i.qInfo.qId=i.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^WC.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const n=i._mock;let o=i;return n&&(delete i._mock,o=ic()({},i,n)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(i),getEffectiveProperties:()=>Promise.resolve(i),removeListener:()=>{},id:i.qInfo.qId,properties:i,session:e})}},zC=(e,{args:t=[],defaultValue:i}={})=>"function"==typeof e?e(...t):void 0!==e?e:i,HC=(e,{defaultValue:t,async:i=!0,delay:n=0}={})=>(...o)=>{const s=zC(e,{defaultValue:t,args:o});return i?new Promise((e=>{setTimeout((()=>e(s)),n)})):s},jC=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function UC(e){return!jC.includes(e)}function $C(e){const t=zC(e.getLayout);return t.qInfo&&t.qInfo.qId}function GC(e,t){let i=$C(e);const{delay:n}=t,{id:o,session:s,...r}=e;if(o&&i&&o!==i)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${i}, id: ${o}`);return i=i||o||"object - "+ +Date.now(),{[i]:{id:i,session:zC(s,{defaultValue:!0}),on:()=>{},once:()=>{},...Object.entries(r).reduce(((e,[t,i])=>({...e,[t]:HC(i,{async:UC(t),delay:n})})),{}),genericType:e.type}}}function KC(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!$C(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const XC=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(KC);const i=function(e,t){return e.reduce(((e,i)=>({...e,...GC(i,t)})),{})}(e,t);return async e=>Promise.resolve(i[e])},ZC=function(){return()=>Promise.resolve({id:"app-layout"})},YC={fromGenericObjects:(e,t={})=>function(e,t={}){const i=new BC,n=new VC(i),o=new XC(e,t),s=new ZC,r={id:"app - "+ +Date.now(),session:i,createSessionObject:n,destroySessionObject:async()=>{},getObject:o,getAppLayout:s};return Promise.resolve(r)}(e,t)},QC=YC,JC={generator:CC,hook:Ty,theme:vc,locale:vl};var ew=r(1052),tw=r(9860),iw=r(1211),nw=r(3675),ow=r(269);function sw(e){return(0,Ot.Ay)("MuiToolbar",e)}(0,Mt.A)("MuiToolbar",["root","gutters","regular","dense"]);const rw=["className","component","disableGutters","variant"],aw=(0,qt.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disableGutters&&t.gutters,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),lw=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:s=!1,variant:r="regular"}=i,a=(0,Et.A)(i,rw),l=(0,Dt.A)({},i,{component:o,disableGutters:s,variant:r}),c=(e=>{const{classes:t,disableGutters:i,variant:n}=e,o={root:["root",!i&&"gutters",n]};return(0,Nt.A)(o,sw,t)})(l);return(0,Ft.jsx)(aw,(0,Dt.A)({as:o,className:(0,It.A)(c.root,n),ref:t,ownerState:l},a))})),cw=lw;function dw(e){return(0,Ot.Ay)("MuiToggleButtonGroup",e)}const hw=(0,Mt.A)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),uw=i.createContext({}),gw=i.createContext(void 0);function pw(e){return(0,Ot.Ay)("MuiToggleButton",e)}const mw=(0,Mt.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),fw=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],vw=(0,qt.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${hw.grouped}`]:t.grouped},{[`& .${hw.grouped}`]:t[`grouped${(0,ui.A)(i.orientation)}`]},{[`& .${hw.firstButton}`]:t.firstButton},{[`& .${hw.lastButton}`]:t.lastButton},{[`& .${hw.middleButton}`]:t.middleButton},t.root,"vertical"===i.orientation&&t.vertical,i.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,Dt.A)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${hw.grouped}`]:(0,Dt.A)({},"horizontal"===e.orientation?{[`&.${hw.selected} + .${hw.grouped}.${hw.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${hw.selected} + .${hw.grouped}.${hw.selected}`]:{borderTop:0,marginTop:0}})},"horizontal"===e.orientation?{[`& .${hw.firstButton},& .${hw.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${hw.lastButton},& .${hw.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${hw.firstButton},& .${hw.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${hw.lastButton},& .${hw.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},"horizontal"===e.orientation?{[`& .${hw.lastButton}.${mw.disabled},& .${hw.middleButton}.${mw.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${hw.lastButton}.${mw.disabled},& .${hw.middleButton}.${mw.disabled}`]:{borderTop:"1px solid transparent"}}))),_w=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:s,color:r="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:h="horizontal",size:u="medium",value:g}=n,p=(0,Et.A)(n,fw),m=(0,Dt.A)({},n,{disabled:a,fullWidth:c,orientation:h,size:u}),f=(e=>{const{classes:t,orientation:i,fullWidth:n,disabled:o}=e,s={root:["root","vertical"===i&&"vertical",n&&"fullWidth"],grouped:["grouped",`grouped${(0,ui.A)(i)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,Nt.A)(s,dw,t)})(m),v=i.useCallback(((e,t)=>{if(!d)return;const i=g&&g.indexOf(t);let n;g&&i>=0?(n=g.slice(),n.splice(i,1)):n=g?g.concat(t):[t],d(e,n)}),[d,g]),_=i.useCallback(((e,t)=>{d&&d(e,g===t?null:t)}),[d,g]),b=i.useMemo((()=>({className:f.grouped,onChange:l?_:v,value:g,size:u,fullWidth:c,color:r,disabled:a})),[f.grouped,l,_,v,g,u,c,r,a]),y=function(e){return i.Children.toArray(e).filter((e=>i.isValidElement(e)))}(o),C=y.length,w=e=>{const t=0===e,i=e===C-1;return t&&i?"":t?f.firstButton:i?f.lastButton:f.middleButton};return(0,Ft.jsx)(vw,(0,Dt.A)({role:"group",className:(0,It.A)(f.root,s),ref:t,ownerState:m},p,{children:(0,Ft.jsx)(uw.Provider,{value:b,children:y.map(((e,t)=>(0,Ft.jsx)(gw.Provider,{value:w(t),children:e},t)))})}))})),bw=_w;var yw=r(5093);function Cw(e){if(e.type)return e;if("#"===e.charAt(0))return Cw(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let i=e.match(t);return i&&1===i[0].length&&(i=i.map((e=>e+e))),i?`rgb${4===i.length?"a":""}(${i.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),i=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(i))throw new Error((0,da.A)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===i){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,da.A)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:i,values:o,colorSpace:n}}function ww(e,t){return e=Cw(e),t=function(e,t=0,i=1){return(0,yw.A)(e,t,i)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:i}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${i} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Sw(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}const xw=["value"],Lw=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],kw=(0,qt.Ay)(Lo,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`size${(0,ui.A)(i.size)}`]]}})((({theme:e,ownerState:t})=>{let i,n="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(n="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,i="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,Dt.A)({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${mw.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ww(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mw.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${i} / ${e.vars.palette.action.selectedOpacity})`:ww(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${i} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ww(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${i} / ${e.vars.palette.action.selectedOpacity})`:ww(n,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})})),Ew=i.forwardRef((function(e,t){const n=i.useContext(uw),{value:o}=n,s=(0,Et.A)(n,xw),r=i.useContext(gw),a=(0,Pa.A)((0,Dt.A)({},s,{selected:Sw(e.value,o)}),e),l=(0,Tt.A)({props:a,name:"MuiToggleButton"}),{children:c,className:d,color:h="standard",disabled:u=!1,disableFocusRipple:g=!1,fullWidth:p=!1,onChange:m,onClick:f,selected:v,size:_="medium",value:b}=l,y=(0,Et.A)(l,Lw),C=(0,Dt.A)({},l,{color:h,disabled:u,disableFocusRipple:g,fullWidth:p,size:_}),w=(e=>{const{classes:t,fullWidth:i,selected:n,disabled:o,size:s,color:r}=e,a={root:["root",n&&"selected",o&&"disabled",i&&"fullWidth",`size${(0,ui.A)(s)}`,r]};return(0,Nt.A)(a,pw,t)})(C),S=r||"";return(0,Ft.jsx)(kw,(0,Dt.A)({className:(0,It.A)(s.className,w.root,d,S),disabled:u,focusRipple:!g,ref:t,onClick:e=>{f&&(f(e,b),e.defaultPrevented)||m&&m(e,b)},onChange:m,value:b,ownerState:C,"aria-pressed":v},y,{children:c}))})),Dw=Ew;function Iw(e){return(0,Ot.Ay)("MuiMenu",e)}(0,Mt.A)("MuiMenu",["root","paper","list"]);const Nw=["onEntering"],Aw=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Rw={vertical:"top",horizontal:"right"},Tw={vertical:"top",horizontal:"left"},qw=(0,qt.Ay)(th,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mw=(0,qt.Ay)(Jd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ow=(0,qt.Ay)(Sf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Pw=i.forwardRef((function(e,t){var n,o;const s=(0,Tt.A)({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:h,open:u,PaperProps:g={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:{onEntering:f}={},variant:v="selectedMenu",slots:_={},slotProps:b={}}=s,y=(0,Et.A)(s.TransitionProps,Nw),C=(0,Et.A)(s,Aw),w=_i(),S="rtl"===w.direction,x=(0,Dt.A)({},s,{autoFocus:r,disableAutoFocusItem:c,MenuListProps:d,onEntering:f,PaperProps:g,transitionDuration:m,TransitionProps:y,variant:v}),L=(e=>{const{classes:t}=e;return(0,Nt.A)({root:["root"],paper:["paper"],list:["list"]},Iw,t)})(x),k=r&&!c&&u,E=i.useRef(null);let D=-1;i.Children.map(a,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===D)&&(D=t))}));const I=null!=(n=_.paper)?n:Mw,N=null!=(o=b.paper)?o:g,A=mr({elementType:_.root,externalSlotProps:b.root,ownerState:x,className:[L.root,l]}),R=mr({elementType:I,externalSlotProps:N,ownerState:x,className:L.paper});return(0,Ft.jsx)(qw,(0,Dt.A)({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Rw:Tw,slots:{paper:I,root:_.root},slotProps:{root:A,paper:R},open:u,ref:t,transitionDuration:m,TransitionProps:(0,Dt.A)({onEntering:(e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,w),f&&f(e,t)}},y),ownerState:x},C,{classes:p,children:(0,Ft.jsx)(Ow,(0,Dt.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:E,autoFocus:r&&(-1===D||c),autoFocusItem:k,variant:v},d,{className:(0,It.A)(L.list,d.className),children:a}))}))})),Fw=Pw,Bw=new Map,Ww=[],Vw=Ww.map,zw=Ww.some,Hw=Ww.hasOwnProperty,jw=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,Uw=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,$w=/(?:\.[^/]*|\/)$/;class Gw extends Error{constructor(e){super(e)}}function Kw(e){const t=jw.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function Xw(e){const t=new Map,i=o(null);function n(e){if("string"!=typeof e)return e;let i=t.get(e);return i||t.set(e,i=new Promise(((t,i)=>{const n=document.createElement("script");n.onload=()=>{try{t(Ww.pop()(o(e)))}catch(e){i(new Gw("invalid module"))}n.remove()},n.onerror=()=>{i(new Gw("unable to load module")),n.remove()},n.async=!0,n.src=e,window.define=Jw,document.head.appendChild(n)}))),i}function o(t){return i=>Promise.resolve(e(i,t)).then(n)}function s(e){return arguments.length>1?Promise.all(Vw.call(arguments,i)).then(Zw):i(e)}return s.alias=function(t){return Xw(((i,n)=>i in t&&(n=null,"string"!=typeof(i=t[i]))?i:e(i,n)))},s.resolve=e,s}function Zw(e){const t={};for(const i of e)for(const e in i)Hw.call(i,e)&&(null==i[e]?Object.defineProperty(t,e,{get:Yw(i,e)}):t[e]=i[e]);return t}function Yw(e,t){return()=>e[t]}function Qw(e){return"exports"==(e+="")||"module"===e}function Jw(e,t,i){const n=arguments.length;n<2?(i=e,t=[]):n<3&&(i=t,t="string"==typeof e?[]:e),Ww.push(zw.call(t,Qw)?e=>{const n={},o={exports:n};return Promise.all(Vw.call(t,(t=>"exports"==(t+="")?n:"module"===t?o:e(t)))).then((e=>(i.apply(null,e),o.exports)))}:e=>Promise.all(Vw.call(t,e)).then((e=>"function"==typeof i?i.apply(null,e):i)))}Gw.prototype.name=Gw.name,Xw(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function i(t){const i=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let n=Bw.get(i);return n||Bw.set(i,n=fetch(i).then((e=>{if(!e.ok)throw new Gw("unable to load package.json");return e.redirected&&!Bw.has(e.url)&&Bw.set(e.url,n),e.json()}))),n}return async function(n,o){if(n.startsWith(e)&&(n=n.substring(e.length)),/^(\w+:)|\/\//i.test(n))return n;if(/^[.]{0,2}\//i.test(n))return new URL(n,null==o?location:o).href;if(!n.length||/^[\s._]/.test(n)||/\s$/.test(n))throw new Gw("illegal name");const s=Kw(n);if(!s)return`${e}${n}`;if(!s.version&&null!=o&&o.startsWith(e)){const t=await i(Kw(o.substring(e.length)));s.version=t.dependencies&&t.dependencies[s.name]||t.peerDependencies&&t.peerDependencies[s.name]}if(s.path&&!$w.test(s.path)&&(s.path+=".js"),s.path&&s.version&&Uw.test(s.version))return`${e}${s.name}@${s.version}/${s.path}`;const r=await i(s);return`${e}${r.name}@${r.version}/${s.path||function(e){for(const i of t){let t=e[i];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),$w.test(t)?t:`${t}.js`}}(r)||"index.js"}`}}()),Jw.amd={};const eS=(t,i)=>{const n=i?e=>e:e=>`/pkg/${encodeURIComponent(e)}`;return Xw((async e=>n(e))).alias({"@nebula.js/stardust":e})(i||t)},tS={};function iS(e){const[t]=zc(),i=t.get(e),[n,...o]=Xc(i,"getProperties");return[n,e=>i.setProperties(e),...o]}window.onHotChange=(e,t)=>(tS[e]||(tS[e]=[]),tS[e].push(t),window[e]&&t(),()=>{const i=tS[e].indexOf(t);tS[e].splice(i,1)});const nS=i.createContext(),oS=e=>({qDef:{qFieldDefs:[e]}});function sS({dc:e,def:t,properties:i,dimensions:n}){const o=i,s={dimensions:()=>n,measures:()=>[],addDimension(i){const n="string"==typeof i?oS(i):{...i,qDef:i.qDef||{}};return n.qDef.cId=n.qDef.cId||d_(),n.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(n,o),n},removeDimension(e){const i=n[e];return t.dimensions.removed(i,o,e),i},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>s.dimensions().length<s.maxDimensions(),canAddMeasure:()=>!1};return s}const rS={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},aS={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function lS(e,t="dimension"){const i="dimension"===t?rS:aS,[n]=jc(i,e),[o]=Zc(n);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function cS(e){return(0,Ot.Ay)("MuiListSubheader",e)}(0,Mt.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const dS=["className","color","component","disableGutters","disableSticky","inset"],hS=(0,qt.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"default"!==i.color&&t[`color${(0,ui.A)(i.color)}`],!i.disableGutters&&t.gutters,i.inset&&t.inset,!i.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,Dt.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),uS=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:s="li",disableGutters:r=!1,disableSticky:a=!1,inset:l=!1}=i,c=(0,Et.A)(i,dS),d=(0,Dt.A)({},i,{color:o,component:s,disableGutters:r,disableSticky:a,inset:l}),h=(e=>{const{classes:t,color:i,disableGutters:n,inset:o,disableSticky:s}=e,r={root:["root","default"!==i&&`color${(0,ui.A)(i)}`,!n&&"gutters",o&&"inset",!s&&"sticky"]};return(0,Nt.A)(r,cS,t)})(d);return(0,Ft.jsx)(hS,(0,Dt.A)({as:s,className:(0,It.A)(h.root,n),ref:t,ownerState:d},c))}));uS.muiSkipListHighlight=!0;const gS=uS;var pS=r(3657),mS=r.n(pS),fS=r(2339),vS=r.n(fS),_S=r(4980),bS=r(7781),yS=r(1941);function CS(e){return(0,Ot.Ay)("MuiInput",e)}const wS=(0,Dt.A)({},aa,(0,Mt.A)("MuiInput",["root","underline","input"])),SS=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xS=(0,qt.Ay)(ka,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[...xa(e,t),!i.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let i="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(i=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,Dt.A)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wS.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wS.disabled}, .${wS.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${i}`}},[`&.${wS.disabled}:before`]:{borderBottomStyle:"dotted"}})})),LS=(0,qt.Ay)(Ea,{name:"MuiInput",slot:"Input",overridesResolver:La})({}),kS=i.forwardRef((function(e,t){var i,n,o,s;const r=(0,Tt.A)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:u=!1,slotProps:g,slots:p={},type:m="text"}=r,f=(0,Et.A)(r,SS),v=(e=>{const{classes:t,disableUnderline:i}=e,n={root:["root",!i&&"underline"],input:["input"]},o=(0,Nt.A)(n,CS,t);return(0,Dt.A)({},t,o)})(r),_={root:{ownerState:{disableUnderline:a}}},b=(null!=g?g:c)?(0,Kt.A)(null!=g?g:c,_):_,y=null!=(i=null!=(n=p.root)?n:l.Root)?i:xS,C=null!=(o=null!=(s=p.input)?s:l.Input)?o:LS;return(0,Ft.jsx)(Na,(0,Dt.A)({slots:{root:y,input:C},slotProps:b,fullWidth:d,inputComponent:h,multiline:u,ref:t,type:m},f,{classes:v}))}));kS.muiName="Input";const ES=kS;function DS(e){return(0,Ot.Ay)("MuiFilledInput",e)}const IS=(0,Dt.A)({},aa,(0,Mt.A)("MuiFilledInput",["root","underline","input"])),NS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],AS=(0,qt.Ay)(ka,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[...xa(e,t),!i.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var i;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Dt.A)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${IS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${IS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(i=(e.vars||e).palette[t.color||"primary"])?void 0:i.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${IS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${IS.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${IS.disabled}, .${IS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${IS.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,Dt.A)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),RS=(0,qt.Ay)(Ea,{name:"MuiFilledInput",slot:"Input",overridesResolver:La})((({theme:e,ownerState:t})=>(0,Dt.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),TS=i.forwardRef((function(e,t){var i,n,o,s;const r=(0,Tt.A)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:h=!1,slotProps:u,slots:g={},type:p="text"}=r,m=(0,Et.A)(r,NS),f=(0,Dt.A)({},r,{fullWidth:c,inputComponent:d,multiline:h,type:p}),v=(e=>{const{classes:t,disableUnderline:i}=e,n={root:["root",!i&&"underline"],input:["input"]},o=(0,Nt.A)(n,DS,t);return(0,Dt.A)({},t,o)})(r),_={root:{ownerState:f},input:{ownerState:f}},b=(null!=u?u:l)?(0,Kt.A)(_,null!=u?u:l):_,y=null!=(i=null!=(n=g.root)?n:a.Root)?i:AS,C=null!=(o=null!=(s=g.input)?s:a.Input)?o:RS;return(0,Ft.jsx)(Na,(0,Dt.A)({slots:{root:y,input:C},componentsProps:b,fullWidth:c,inputComponent:d,multiline:h,ref:t,type:p},m,{classes:v}))}));TS.muiName="Input";const qS=TS;function MS(e){return(0,Ot.Ay)("MuiFormLabel",e)}const OS=(0,Mt.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),PS=["children","className","color","component","disabled","error","filled","focused","required"],FS=(0,qt.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,Dt.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,Dt.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${OS.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${OS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${OS.error}`]:{color:(e.vars||e).palette.error.main}}))),BS=(0,qt.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${OS.error}`]:{color:(e.vars||e).palette.error.main}}))),WS=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:s="label"}=i,r=(0,Et.A)(i,PS),a=sa({props:i,muiFormControl:oa(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Dt.A)({},i,{color:a.color||"primary",component:s,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:i,focused:n,disabled:o,error:s,filled:r,required:a}=e,l={root:["root",`color${(0,ui.A)(i)}`,o&&"disabled",s&&"error",r&&"filled",n&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return(0,Nt.A)(l,MS,t)})(l);return(0,Ft.jsxs)(FS,(0,Dt.A)({as:s,ownerState:l,className:(0,It.A)(c.root,o),ref:t},r,{children:[n,a.required&&(0,Ft.jsxs)(BS,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),VS=WS;function zS(e){return(0,Ot.Ay)("MuiInputLabel",e)}(0,Mt.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const HS=["disableAnimation","margin","shrink","variant","className"],jS=(0,qt.Ay)(VS,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${OS.asterisk}`]:t.asterisk},t.root,i.formControl&&t.formControl,"small"===i.size&&t.sizeSmall,i.shrink&&t.shrink,!i.disableAnimation&&t.animated,i.focused&&t.focused,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,Dt.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,Dt.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,Dt.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),US=i.forwardRef((function(e,t){const i=(0,Tt.A)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:s}=i,r=(0,Et.A)(i,HS),a=oa();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=sa({props:i,muiFormControl:a,states:["size","variant","required","focused"]}),d=(0,Dt.A)({},i,{disableAnimation:n,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),h=(e=>{const{classes:t,formControl:i,size:n,shrink:o,disableAnimation:s,variant:r,required:a}=e,l={root:["root",i&&"formControl",!s&&"animated",o&&"shrink",n&&"normal"!==n&&`size${(0,ui.A)(n)}`,r],asterisk:[a&&"asterisk"]},c=(0,Nt.A)(l,zS,t);return(0,Dt.A)({},t,c)})(d);return(0,Ft.jsx)(jS,(0,Dt.A)({"data-shrink":l,ownerState:d,ref:t,className:(0,It.A)(h.root,s)},r,{classes:h}))})),$S=US;function GS(e){return(0,Ot.Ay)("MuiFormControl",e)}(0,Mt.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const KS=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XS=(0,qt.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,Dt.A)({},t.root,t[`margin${(0,ui.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,Dt.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),ZS=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiFormControl"}),{children:o,className:s,color:r="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:h=!1,hiddenLabel:u=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined"}=n,v=(0,Et.A)(n,KS),_=(0,Dt.A)({},n,{color:r,component:a,disabled:l,error:c,fullWidth:h,hiddenLabel:u,margin:g,required:p,size:m,variant:f}),b=(e=>{const{classes:t,margin:i,fullWidth:n}=e,o={root:["root","none"!==i&&`margin${(0,ui.A)(i)}`,n&&"fullWidth"]};return(0,Nt.A)(o,GS,t)})(_),[y,C]=i.useState((()=>{let e=!1;return o&&i.Children.forEach(o,(t=>{if(!(0,Os.A)(t,["Input","Select"]))return;const i=(0,Os.A)(t,["Select"])?t.props.input:t;i&&i.props.startAdornment&&(e=!0)})),e})),[w,S]=i.useState((()=>{let e=!1;return o&&i.Children.forEach(o,(t=>{(0,Os.A)(t,["Input","Select"])&&(wa(t.props,!0)||wa(t.props.inputProps,!0))&&(e=!0)})),e})),[x,L]=i.useState(!1);l&&x&&L(!1);const k=void 0===d||l?x:d;let E;const D=i.useMemo((()=>({adornedStart:y,setAdornedStart:C,color:r,disabled:l,error:c,filled:w,focused:k,fullWidth:h,hiddenLabel:u,size:m,onBlur:()=>{L(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{L(!0)},registerEffect:E,required:p,variant:f})),[y,r,l,c,w,k,h,u,E,p,m,f]);return(0,Ft.jsx)(na.Provider,{value:D,children:(0,Ft.jsx)(XS,(0,Dt.A)({as:a,ownerState:_,className:(0,It.A)(b.root,s),ref:t},v,{children:o}))})})),YS=ZS;function QS(e){return(0,Ot.Ay)("MuiFormHelperText",e)}const JS=(0,Mt.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ex;const tx=["children","className","component","disabled","error","filled","focused","margin","required","variant"],ix=(0,qt.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.size&&t[`size${(0,ui.A)(i.size)}`],i.contained&&t.contained,i.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,Dt.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${JS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${JS.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),nx=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:s="p"}=i,r=(0,Et.A)(i,tx),a=sa({props:i,muiFormControl:oa(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Dt.A)({},i,{component:s,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,contained:i,size:n,disabled:o,error:s,filled:r,focused:a,required:l}=e,c={root:["root",o&&"disabled",s&&"error",n&&`size${(0,ui.A)(n)}`,i&&"contained",a&&"focused",r&&"filled",l&&"required"]};return(0,Nt.A)(c,QS,t)})(l);return(0,Ft.jsx)(ix,(0,Dt.A)({as:s,ownerState:l,className:(0,It.A)(c.root,o),ref:t},r,{children:" "===n?ex||(ex=(0,Ft.jsx)("span",{className:"notranslate",children:""})):n}))})),ox=nx;function sx(e){return(0,Ot.Ay)("MuiNativeSelect",e)}const rx=(0,Mt.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ax=["className","disabled","error","IconComponent","inputRef","variant"],lx=({ownerState:e,theme:t})=>(0,Dt.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Dt.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${rx.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),cx=(0,qt.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:qt.ep,overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.select,t[i.variant],i.error&&t.error,{[`&.${rx.multiple}`]:t.multiple}]}})(lx),dx=({ownerState:e,theme:t})=>(0,Dt.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${rx.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),hx=(0,qt.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${(0,ui.A)(i.variant)}`],i.open&&t.iconOpen]}})(dx),ux=i.forwardRef((function(e,t){const{className:n,disabled:o,error:s,IconComponent:r,inputRef:a,variant:l="standard"}=e,c=(0,Et.A)(e,ax),d=(0,Dt.A)({},e,{disabled:o,variant:l,error:s}),h=(e=>{const{classes:t,variant:i,disabled:n,multiple:o,open:s,error:r}=e,a={select:["select",i,n&&"disabled",o&&"multiple",r&&"error"],icon:["icon",`icon${(0,ui.A)(i)}`,s&&"iconOpen",n&&"disabled"]};return(0,Nt.A)(a,sx,t)})(d);return(0,Ft.jsxs)(i.Fragment,{children:[(0,Ft.jsx)(cx,(0,Dt.A)({ownerState:d,className:(0,It.A)(h.select,n),disabled:o,ref:a||t},c)),e.multiple?null:(0,Ft.jsx)(hx,{as:r,ownerState:d,className:h.icon})]})})),gx=ux;function px(e){return(0,Ot.Ay)("MuiSelect",e)}const mx=(0,Mt.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var fx;const vx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],_x=(0,qt.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`&.${mx.select}`]:t.select},{[`&.${mx.select}`]:t[i.variant]},{[`&.${mx.error}`]:t.error},{[`&.${mx.multiple}`]:t.multiple}]}})(lx,{[`&.${mx.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bx=(0,qt.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${(0,ui.A)(i.variant)}`],i.open&&t.iconOpen]}})(dx),yx=(0,qt.Ay)("input",{shouldForwardProp:e=>(0,qt._n)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Cx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function wx(e){return null==e||"string"==typeof e&&!e.trim()}const Sx=i.forwardRef((function(e,t){var n;const{"aria-describedby":o,"aria-label":s,autoFocus:r,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:h,disabled:u,displayEmpty:g,error:p=!1,IconComponent:m,inputRef:f,labelId:v,MenuProps:_={},multiple:b,name:y,onBlur:C,onChange:w,onClose:S,onFocus:x,onOpen:L,open:k,readOnly:E,renderValue:D,SelectDisplayProps:I={},tabIndex:N,value:A,variant:R="standard"}=e,T=(0,Et.A)(e,vx),[q,M]=(0,$h.A)({controlled:A,default:h,name:"Select"}),[O,P]=(0,$h.A)({controlled:k,default:d,name:"Select"}),F=i.useRef(null),B=i.useRef(null),[W,V]=i.useState(null),{current:z}=i.useRef(null!=k),[H,j]=i.useState(),U=(0,zn.A)(t,f),$=i.useCallback((e=>{B.current=e,e&&V(e)}),[]),G=null==W?void 0:W.parentNode;i.useImperativeHandle(U,(()=>({focus:()=>{B.current.focus()},node:F.current,value:q})),[q]),i.useEffect((()=>{d&&O&&W&&!z&&(j(a?null:G.clientWidth),B.current.focus())}),[W,a]),i.useEffect((()=>{r&&B.current.focus()}),[r]),i.useEffect((()=>{if(!v)return;const e=(0,qr.A)(B.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&B.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const K=(e,t)=>{e?L&&L(t):S&&S(t),z||(j(a?null:G.clientWidth),P(e))},X=i.Children.toArray(l),Z=e=>t=>{let i;if(t.currentTarget.hasAttribute("tabindex")){if(b){i=Array.isArray(q)?q.slice():[];const t=q.indexOf(e.props.value);-1===t?i.push(e.props.value):i.splice(t,1)}else i=e.props.value;if(e.props.onClick&&e.props.onClick(t),q!==i&&(M(i),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:i,name:y}}),w(o,e)}b||K(!1,t)}},Y=null!==W&&O;let Q,J;delete T["aria-invalid"];const ee=[];let te=!1,ie=!1;(wa({value:q})||g)&&(D?Q=D(q):te=!0);const ne=X.map((e=>{if(!i.isValidElement(e))return null;let t;if(b){if(!Array.isArray(q))throw new Error((0,da.A)(2));t=q.some((t=>Cx(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Cx(q,e.props.value),t&&te&&(J=e.props.children);return t&&(ie=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Z(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Q=b?0===ee.length?null:ee.reduce(((e,t,i)=>(e.push(t),i<ee.length-1&&e.push(", "),e)),[]):J);let oe,se=H;!a&&z&&W&&(se=G.clientWidth),oe=void 0!==N?N:u?null:0;const re=I.id||(y?`mui-component-select-${y}`:void 0),ae=(0,Dt.A)({},e,{variant:R,value:q,open:Y,error:p}),le=(e=>{const{classes:t,variant:i,disabled:n,multiple:o,open:s,error:r}=e,a={select:["select",i,n&&"disabled",o&&"multiple",r&&"error"],icon:["icon",`icon${(0,ui.A)(i)}`,s&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,Nt.A)(a,px,t)})(ae),ce=(0,Dt.A)({},_.PaperProps,null==(n=_.slotProps)?void 0:n.paper),de=(0,yS.A)();return(0,Ft.jsxs)(i.Fragment,{children:[(0,Ft.jsx)(_x,(0,Dt.A)({ref:$,tabIndex:oe,role:"combobox","aria-controls":de,"aria-disabled":u?"true":void 0,"aria-expanded":Y?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[v,re].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{E||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))},onMouseDown:u||E?null:e=>{0===e.button&&(e.preventDefault(),B.current.focus(),K(!0,e))},onBlur:e=>{!Y&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:y}}),C(e))},onFocus:x},I,{ownerState:ae,className:(0,It.A)(I.className,le.select,c),id:re,children:wx(Q)?fx||(fx=(0,Ft.jsx)("span",{className:"notranslate",children:""})):Q})),(0,Ft.jsx)(yx,(0,Dt.A)({"aria-invalid":p,value:Array.isArray(q)?q.join(","):q,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=X.find((t=>t.props.value===e.target.value));void 0!==t&&(M(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:u,className:le.nativeInput,autoFocus:r,ownerState:ae},T)),(0,Ft.jsx)(bx,{as:m,className:le.icon,ownerState:ae}),(0,Ft.jsx)(Fw,(0,Dt.A)({id:`menu-${y||""}`,anchorEl:G,open:Y,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:(0,Dt.A)({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:de},_.MenuListProps),slotProps:(0,Dt.A)({},_.slotProps,{paper:(0,Dt.A)({},ce,{style:(0,Dt.A)({minWidth:se},null!=ce?ce.style:null)})}),children:ne}))]})})),xx=Sx,Lx=(0,gn.A)((0,Ft.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),kx=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ex=["root"],Dx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,qt.ep)(e)&&"variant"!==e,slot:"Root"},Ix=(0,qt.Ay)(ES,Dx)(""),Nx=(0,qt.Ay)(Oa,Dx)(""),Ax=(0,qt.Ay)(qS,Dx)(""),Rx=i.forwardRef((function(e,t){const n=(0,Tt.A)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:s,classes:r={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=Lx,id:h,input:u,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:v=!1,native:_=!1,onClose:b,onOpen:y,open:C,renderValue:w,SelectDisplayProps:S,variant:x="outlined"}=n,L=(0,Et.A)(n,kx),k=_?gx:xx,E=sa({props:n,muiFormControl:oa(),states:["variant","error"]}),D=E.variant||x,I=(0,Dt.A)({},n,{variant:D,classes:r}),N=(e=>{const{classes:t}=e;return t})(I),A=(0,Et.A)(N,Ex),R=u||{standard:(0,Ft.jsx)(Ix,{ownerState:I}),outlined:(0,Ft.jsx)(Nx,{label:p,ownerState:I}),filled:(0,Ft.jsx)(Ax,{ownerState:I})}[D],T=(0,zn.A)(t,R.ref);return(0,Ft.jsx)(i.Fragment,{children:i.cloneElement(R,(0,Dt.A)({inputComponent:k,inputProps:(0,Dt.A)({children:s,error:E.error,IconComponent:d,variant:D,type:void 0,multiple:v},_?{id:h}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:b,onOpen:y,open:C,renderValue:w,SelectDisplayProps:(0,Dt.A)({id:h},S)},g,{classes:g?(0,Kt.A)(A,g.classes):A},u?u.props.inputProps:{})},(v&&_||c)&&"outlined"===D?{notched:!0}:{},{ref:T,className:(0,It.A)(R.props.className,a,N.root)},!u&&{variant:D},L))})}));Rx.muiName="Select";const Tx=Rx;function qx(e){return(0,Ot.Ay)("MuiTextField",e)}(0,Mt.A)("MuiTextField",["root"]);const Mx=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ox={standard:ES,filled:qS,outlined:Oa},Px=(0,qt.Ay)(YS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fx=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:s,className:r,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:u=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:v,inputRef:_,label:b,maxRows:y,minRows:C,multiline:w=!1,name:S,onBlur:x,onChange:L,onFocus:k,placeholder:E,required:D=!1,rows:I,select:N=!1,SelectProps:A,type:R,value:T,variant:q="outlined"}=i,M=(0,Et.A)(i,Mx),O=(0,Dt.A)({},i,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:u,multiline:w,required:D,select:N,variant:q}),P=(e=>{const{classes:t}=e;return(0,Nt.A)({root:["root"]},qx,t)})(O),F={};"outlined"===q&&(m&&void 0!==m.shrink&&(F.notched=m.shrink),F.label=b),N&&(A&&A.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=(0,yS.A)(p),W=g&&B?`${B}-helper-text`:void 0,V=b&&B?`${B}-label`:void 0,z=Ox[q],H=(0,Ft.jsx)(z,(0,Dt.A)({"aria-describedby":W,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:u,multiline:w,name:S,rows:I,maxRows:y,minRows:C,type:R,value:T,id:B,inputRef:_,onBlur:x,onChange:L,onFocus:k,placeholder:E,inputProps:f},F,v));return(0,Ft.jsxs)(Px,(0,Dt.A)({className:(0,It.A)(P.root,r),disabled:c,error:d,fullWidth:u,ref:t,required:D,color:a,variant:q,ownerState:O},M,{children:[null!=b&&""!==b&&(0,Ft.jsx)($S,(0,Dt.A)({htmlFor:B,id:V},m,{children:b})),N?(0,Ft.jsx)(Tx,(0,Dt.A)({"aria-describedby":W,id:B,labelId:V,value:T,input:H},A,{children:s})):H,g&&(0,Ft.jsx)(ox,(0,Dt.A)({id:W},h,{children:g}))]}))})),Bx=Fx,Wx="Search",Vx={gridContainer:`${Wx}-gridContainer`,gridItem:`${Wx}-gridItem`},zx=(0,qt.Ay)(Ho)((({theme:e})=>({[`& .${Vx.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${Vx.gridItem}`]:{padding:e.spacing(0,1,0,1)}})));function Hx(){const e=document.querySelector('meta[name="viewport"]');e instanceof HTMLMetaElement&&(e.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0")}function jx({onChange:e=(()=>{}),onEnter:t=(()=>{}),onEscape:n=(()=>{})}){const[o,s]=(0,i.useState)("");return i.createElement(zx,{className:Vx.gridContainer,item:!0,container:!0,direction:"row",alignItems:"center"},i.createElement(Ho,{item:!0},i.createElement(Hf,null)),i.createElement(Ho,{className:Vx.gridItem,item:!0,xs:!0},i.createElement(Bx,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{s(t.target.value),e(t.target.value)},onFocus:Hx,onKeyDown:e=>{switch(e.key){case"Enter":t(),s("");break;case"Escape":n()}}})))}function Ux({field:e,onSelect:t,sub:n,parts:o}){return i.createElement(Ys,{button:!0,onClick:()=>t(e.qName),"data-key":e.qName},i.createElement(nr,null,o.map(((e,t)=>i.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),n&&i.createElement(_S.A,{fontSize:"small"}))}function $x({item:e,onSelect:t,parts:n}){return i.createElement(Ys,{button:!0,onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId},i.createElement(nr,null,n.map(((e,t)=>i.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function Gx({aggr:e,field:t,onSelect:n}){return i.createElement(Ys,{button:!0,onClick:()=>n(e),"data-key":e},i.createElement(nr,null,`${e}(${t})`))}function Kx({app:e,onSelect:t,title:n="",type:o="dimension",searchTerm:s=""}){const[r]=lS(e,o),a=(0,i.useMemo)((()=>r.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[r]);return r.length>0?i.createElement(i.Fragment,null,i.createElement(gS,{component:"div",style:{backgroundColor:"inherit"}},n),a.map((e=>{const n=vS()(e.qData.title,s),o=mS()(e.qData.title,n);return s&&0===n.length?null:i.createElement($x,{key:e.qInfo.qId,item:e,onSelect:t,parts:o})}))):null}function Xx({alignTo:e,show:t,close:n,onSelected:o,type:s}){const r=(0,i.useContext)(nS),[a,l]=(0,i.useState)(null),[c,d]=(0,i.useState)(""),h=_i(),[u]=jc({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},r),[g]=Zc(u),p=(0,i.useMemo)((()=>(g&&g.qFieldList.qItems||[]).slice().sort(((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())))),[g]),m=e=>{e&&e.qId?(o(e),n()):"measure"===s?l(e):(o({field:e}),n())},f=e=>{o({field:a,aggregation:e}),n()};return i.createElement(th,{open:t,onClose:n,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:h.palette.background.lightest}}},!a&&i.createElement(jx,{onChange:d}),a&&i.createElement(qs,{dense:!0,component:"nav"},i.createElement(Ys,{button:!0,onClick:()=>l(null)},i.createElement(mf,null,i.createElement(bS.A,null)),i.createElement(nr,null,"Back")),i.createElement(Km,null),i.createElement(gS,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>i.createElement(Gx,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&i.createElement(qs,{dense:!0,component:"nav",style:{background:h.palette.background.lightest}},i.createElement(Kx,{app:r,onSelect:m,type:s,title:"measure"===s?"Measures":"Dimensions",searchTerm:c}),i.createElement(gS,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const t=vS()(e.qName,c),n=mS()(e.qName,t);return c&&0===t.length?null:i.createElement(Ux,{key:e.qName,field:e,onSelect:m,sub:"measure"===s,parts:n})}))))}const Zx=({field:e,libraryItems:t})=>{if(e.qLibraryId){const i=t.filter((t=>t.qInfo.qId===e.qLibraryId))[0];return i?i.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function Yx({items:e,type:t="dimension",label:n="",addLabel:o="Add",onAdded:s,onRemoved:r,canAdd:a=!0}){const[l,c]=(0,i.useState)(!1),d=(0,i.useRef)(null),h=(0,i.useContext)(nS),[u]=lS(h,t);return i.createElement("div",null,i.createElement(Zo,{variant:"overline"},n),i.createElement(qs,{dense:!0},e.map(((e,n)=>i.createElement(Ys,{disableGutters:!0,key:e.qDef&&e.qDef.cId||n},i.createElement(nr,null,i.createElement(Zx,{field:e,libraryItems:u,type:t})),i.createElement(Us,null,i.createElement(Ao,{onClick:()=>{r(n)},size:"large"},i.createElement(Ds,null))))))),i.createElement($a,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&i.createElement(Xx,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?s(e):e&&s("dimension"===t?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:t}))}const Qx=(e,t,i)=>{const n=t.split("/");let o=e;if(void 0===o)return i;for(let e=0;e<n.length;++e)if(""!==n[e]){if(void 0===o[n[e]])return i;o=o[n[e]]}return o};function Jx({setProperties:e,target:t,properties:n}){const[o,s]=(0,i.useState)([]),r=t.dimensions&&t.dimensions.max&&t.dimensions.max()>1?sS:Q_,a=t.propertyPath.match("/qHyperCube")?Z_:r,l=Qx(n,t.propertyPath),c=(0,i.useMemo)((()=>a({def:t,dc:l,properties:n,dimensions:o})),[l,t,n,o]);return i.createElement("div",{style:{width:"100%"}},i.createElement(Zo,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},t.propertyPath),i.createElement(Yx,{key:"dimensions",onAdded:t=>{const i="object"==typeof t?{qLibraryId:t.qId}:t,r=c.addDimension(i);e(n).then((()=>{s([...o,r])}))},onRemoved:t=>{c.removeDimension(t),e(n).then((()=>{s([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),i.createElement(Yx,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(n)},onRemoved:t=>{c.removeMeasure(t),e(n)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function eL({setProperties:e,sn:t,properties:n}){if(!t)return null;const{targets:o}=t.qae.data;return o.length?i.createElement(qs,null,o.map((t=>i.createElement(Ys,{key:t.propertyPath,divider:!0,disableGutters:!0},i.createElement(Jx,{target:t,properties:n,setProperties:e}))))):i.createElement(Zo,null,"No data targets found")}const tL=i.createContext({}),iL=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],nL=["component","slots","slotProps"],oL=["component"];function sL(e){return(0,Ot.Ay)("MuiAccordion",e)}const rL=(0,Mt.A)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),aL=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],lL=(0,qt.Ay)(Hd,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${rL.region}`]:t.region},t.root,!i.square&&t.rounded,!i.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${rL.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${rL.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,Dt.A)({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${rL.expanded}`]:{margin:"16px 0"}}))),cL=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiAccordion"}),{children:o,className:s,defaultExpanded:r=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:h=!1,slots:u={},slotProps:g={},TransitionComponent:p,TransitionProps:m}=n,f=(0,Et.A)(n,aL),[v,_]=(0,$h.A)({controlled:c,default:r,name:"Accordion",state:"expanded"}),b=i.useCallback((e=>{_(!v),d&&d(e,!v)}),[v,d,_]),[y,...C]=i.Children.toArray(o),w=i.useMemo((()=>({expanded:v,disabled:a,disableGutters:l,toggle:b})),[v,a,l,b]),S=(0,Dt.A)({},n,{square:h,disabled:a,disableGutters:l,expanded:v}),x=(e=>{const{classes:t,square:i,expanded:n,disabled:o,disableGutters:s}=e,r={root:["root",!i&&"rounded",n&&"expanded",o&&"disabled",!s&&"gutters"],region:["region"]};return(0,Nt.A)(r,sL,t)})(S),L=(0,Dt.A)({transition:p},u),k=(0,Dt.A)({transition:m},g),[E,D]=function(e,t){const{className:i,elementType:n,ownerState:o,externalForwardedProps:s,getSlotOwnerState:r,internalForwardedProps:a}=t,l=(0,Et.A)(t,iL),{component:c,slots:d={[e]:void 0},slotProps:h={[e]:void 0}}=s,u=(0,Et.A)(s,nL),g=d[e]||n,p=gr(h[e],o),m=ur((0,Dt.A)({className:i},l,{externalForwardedProps:"root"===e?u:void 0,externalSlotProps:p})),{props:{component:f},internalRef:v}=m,_=(0,Et.A)(m.props,oL),b=(0,lr.A)(v,null==p?void 0:p.ref,t.ref),y=r?r(_):{},C=(0,Dt.A)({},o,y),w="root"===e?f||c:f,S=cr(g,(0,Dt.A)({},"root"===e&&!c&&!d[e]&&a,"root"!==e&&!d[e]&&a,_,w&&{as:w},{ref:b}),C);return Object.keys(y).forEach((e=>{delete S[e]})),[g,S]}("transition",{elementType:Ss,externalForwardedProps:{slots:L,slotProps:k},ownerState:S});return(0,Ft.jsxs)(lL,(0,Dt.A)({className:(0,It.A)(x.root,s),ref:t,ownerState:S,square:h},f,{children:[(0,Ft.jsx)(tL.Provider,{value:w,children:y}),(0,Ft.jsx)(E,(0,Dt.A)({in:v,timeout:"auto"},D,{children:(0,Ft.jsx)("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:x.region,children:C})}))]}))})),dL=cL;function hL(e){return(0,Ot.Ay)("MuiAccordionSummary",e)}const uL=(0,Mt.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),gL=["children","className","expandIcon","focusVisibleClassName","onClick"],pL=(0,qt.Ay)(Lo,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const i={duration:e.transitions.duration.shortest};return(0,Dt.A)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],i),[`&.${uL.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uL.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${uL.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${uL.expanded}`]:{minHeight:64}})})),mL=(0,qt.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,Dt.A)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${uL.expanded}`]:{margin:"20px 0"}}))),fL=(0,qt.Ay)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${uL.expanded}`]:{transform:"rotate(180deg)"}}))),vL=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiAccordionSummary"}),{children:o,className:s,expandIcon:r,focusVisibleClassName:a,onClick:l}=n,c=(0,Et.A)(n,gL),{disabled:d=!1,disableGutters:h,expanded:u,toggle:g}=i.useContext(tL),p=(0,Dt.A)({},n,{expanded:u,disabled:d,disableGutters:h}),m=(e=>{const{classes:t,expanded:i,disabled:n,disableGutters:o}=e,s={root:["root",i&&"expanded",n&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",i&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",i&&"expanded"]};return(0,Nt.A)(s,hL,t)})(p);return(0,Ft.jsxs)(pL,(0,Dt.A)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":u,className:(0,It.A)(m.root,s),focusVisibleClassName:(0,It.A)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:t,ownerState:p},c,{children:[(0,Ft.jsx)(mL,{className:m.content,ownerState:p,children:o}),r&&(0,Ft.jsx)(fL,{className:m.expandIconWrapper,ownerState:p,children:r})]}))})),_L=vL;function bL(e){return(0,Ot.Ay)("MuiAccordionDetails",e)}(0,Mt.A)("MuiAccordionDetails",["root"]);const yL=["className"],CL=(0,qt.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),wL=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiAccordionDetails"}),{className:n}=i,o=(0,Et.A)(i,yL),s=i,r=(e=>{const{classes:t}=e;return(0,Nt.A)({root:["root"]},bL,t)})(s);return(0,Ft.jsx)(CL,(0,Dt.A)({className:(0,It.A)(r.root,n),ref:t,ownerState:s},o))})),SL=wL;var xL=r(2226);let LL=null;const kL="AutoComponents",EL={summary:`${kL}-summary`,details:`${kL}-details`,root:`${kL}-root`},DL=(0,qt.Ay)(Ho)((({theme:e})=>({[`& .${EL.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${EL.details}`]:{padding:e.spacing(1)}}))),IL=(0,qt.Ay)(dL)((({theme:e})=>({[`& .${EL.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),NL=(e,t)=>Array.isArray(e)?"array":TL&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":TL&&e&&"object"==typeof e&&"qStringExpression"in e?"expression":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"number"==typeof e?"number":e&&"object"==typeof e?"object":"unknown",AL={boolean:function({property:e,value:t,target:n,changed:o}){return i.createElement(Uh,{control:i.createElement(du,{checked:t,onChange:t=>{n[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:t,target:n,changed:o}){const[s,r]=(0,i.useState)(t);return i.createElement(Bx,{variant:"standard",fullWidth:!0,onChange:e=>{r(e.target.value)},onBlur:()=>{s!==t&&(n[e]=s,o())},label:e,value:s})},object:function({property:e,value:t,changed:n,app:o}){return i.createElement(IL,{square:!0,className:EL.root},i.createElement(_L,{expandIcon:i.createElement(xL.A,null),className:EL.summary},i.createElement(Zo,null,e)),i.createElement(SL,{className:EL.details},qL(t,n,o)))},number:function({property:e,value:t,target:n,changed:o}){const[s,r]=(0,i.useState)(+t);return i.createElement(Bx,{variant:"standard",fullWidth:!0,onChange:e=>{r(e.target.value)},onBlur:()=>{s!==t&&(n[e]=+s,o())},label:e,value:s})},expression:function({property:e,value:t,target:n,changed:o}){const s=t.qStringExpression&&t.qStringExpression.qExpr?t.qStringExpression.qExpr:"",[r,a]=(0,i.useState)(s);return i.createElement(Bx,{variant:"standard",InputProps:{startAdornment:i.createElement(zf,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{r!==t&&(n[e].qStringExpression={qExpr:`=${r}`},o())},label:e,value:r})},variable:function({property:e,value:t,target:n,changed:o,app:s}){const[r,a]=(0,i.useState)(t.name),[l,c]=(0,i.useState)([]);return(0,i.useEffect)((()=>{!async function(){const e=await async function(e){return LL||(LL=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await LL.getLayout()).qVariableList.qItems.map((e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName})))}(s);c(e)}()}),[]),0===l.length?i.createElement("em",null,"No variables in app"):i.createElement(YS,{size:"small",fullWidth:!0},i.createElement(Tx,{onChange:t=>{a(t.target.value),n[e].name=t.target.value,n[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:r,renderValue:e=>0===e.length?i.createElement("em",null,"Select a variable"):e},l.map((e=>i.createElement(hf,{key:e.value,value:e.value},e.label)))))}},RL=/^q[A-Z]/;let TL=!1;function qL(e,t,n,o){o&&o.PP_EXPRESSIONS&&(TL=!0);const s=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(RL.test(t))return!1;const i=NL(e[t],t);return!!AL[i]&&{Component:AL[i],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return i.createElement(DL,{container:!0,direction:"column",gap:0,alignItems:"stretch"},s.map((o=>i.createElement(Ho,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},i.createElement(o.Component,{key:o.key,app:n,property:o.property,value:o.value,target:e,changed:t})))))}function ML({viz:e,sn:t,isTemp:n,storage:o,flags:s}){const[r,a]=iS(e.id),l=(0,i.useContext)(nS),[c,d]=(0,i.useState)(!1!==o.get("readFromCache")),h=(0,i.useCallback)((()=>{a(r)}),[e,t,r]);return t&&e&&r?i.createElement("div",{style:{minWidth:"250px",padding:"8px"}},n&&i.createElement(i.Fragment,null,i.createElement(Ho,{item:!0,container:!0,alignItems:"center"},i.createElement(Uh,{control:i.createElement(du,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),i.createElement(Km,null)),i.createElement(eL,{properties:r,setProperties:a,sn:t}),qL(r,h,l,s)):null}function OL(e){return(0,Ot.Ay)("MuiDialog",e)}const PL=(0,Mt.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),FL=i.createContext({}),BL=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],WL=(0,qt.Ay)(Ad,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),VL=(0,qt.Ay)(Pd,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),zL=(0,qt.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.container,t[`scroll${(0,ui.A)(i.scroll)}`]]}})((({ownerState:e})=>(0,Dt.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),HL=(0,qt.Ay)(Hd,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.paper,t[`scrollPaper${(0,ui.A)(i.scroll)}`],t[`paperWidth${(0,ui.A)(String(i.maxWidth))}`],i.fullWidth&&t.paperFullWidth,i.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,Dt.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${PL.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${PL.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${PL.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),jL=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiDialog"}),o=_i(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":r,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:h,disableEscapeKeyDown:u=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClose:v,open:_,PaperComponent:b=Hd,PaperProps:y={},scroll:C="paper",TransitionComponent:w=kd,transitionDuration:S=s,TransitionProps:x}=n,L=(0,Et.A)(n,BL),k=(0,Dt.A)({},n,{disableEscapeKeyDown:u,fullScreen:g,fullWidth:p,maxWidth:m,scroll:C}),E=(e=>{const{classes:t,scroll:i,maxWidth:n,fullWidth:o,fullScreen:s}=e,r={root:["root"],container:["container",`scroll${(0,ui.A)(i)}`],paper:["paper",`paperScroll${(0,ui.A)(i)}`,`paperWidth${(0,ui.A)(String(n))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return(0,Nt.A)(r,OL,t)})(k),D=i.useRef(),I=(0,yS.A)(a),N=i.useMemo((()=>({titleId:I})),[I]);return(0,Ft.jsx)(VL,(0,Dt.A)({className:(0,It.A)(E.root,h),closeAfterTransition:!0,components:{Backdrop:WL},componentsProps:{backdrop:(0,Dt.A)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:u,onClose:v,open:_,ref:t,onClick:e=>{D.current&&(D.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:k},L,{children:(0,Ft.jsx)(w,(0,Dt.A)({appear:!0,in:_,timeout:S,role:"presentation"},x,{children:(0,Ft.jsx)(zL,{className:(0,It.A)(E.container),onMouseDown:e=>{D.current=e.target===e.currentTarget},ownerState:k,children:(0,Ft.jsx)(HL,(0,Dt.A)({as:b,elevation:24,role:"dialog","aria-describedby":r,"aria-labelledby":I},y,{className:(0,It.A)(E.paper,y.className),ownerState:k,children:(0,Ft.jsx)(FL.Provider,{value:N,children:d})}))})}))}))})),UL=jL;function $L(e){return(0,Ot.Ay)("MuiDialogTitle",e)}const GL=(0,Mt.A)("MuiDialogTitle",["root"]),KL=["className","id"],XL=(0,qt.Ay)(Zo,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),ZL=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiDialogTitle"}),{className:o,id:s}=n,r=(0,Et.A)(n,KL),a=n,l=(e=>{const{classes:t}=e;return(0,Nt.A)({root:["root"]},$L,t)})(a),{titleId:c=s}=i.useContext(FL);return(0,Ft.jsx)(XL,(0,Dt.A)({component:"h2",className:(0,It.A)(l.root,o),ownerState:a,ref:t,variant:"h6",id:null!=s?s:c},r))})),YL=ZL;function QL(e){return(0,Ot.Ay)("MuiDialogContent",e)}(0,Mt.A)("MuiDialogContent",["root","dividers"]);const JL=["className","dividers"],ek=(0,qt.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,Dt.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${GL.root} + &`]:{paddingTop:0}}))),tk=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=i,s=(0,Et.A)(i,JL),r=(0,Dt.A)({},i,{dividers:o}),a=(e=>{const{classes:t,dividers:i}=e,n={root:["root",i&&"dividers"]};return(0,Nt.A)(n,QL,t)})(r);return(0,Ft.jsx)(ek,(0,Dt.A)({className:(0,It.A)(a.root,n),ownerState:r,ref:t},s))})),ik=tk;function nk(e){return(0,Ot.Ay)("MuiDialogActions",e)}(0,Mt.A)("MuiDialogActions",["root","spacing"]);const ok=["className","disableSpacing"],sk=(0,qt.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,Dt.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),rk=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=i,s=(0,Et.A)(i,ok),r=(0,Dt.A)({},i,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:i}=e,n={root:["root",!i&&"spacing"]};return(0,Nt.A)(n,nk,t)})(r);return(0,Ft.jsx)(sk,(0,Dt.A)({className:(0,It.A)(a.root,n),ownerState:r,ref:t},s))})),ak=rk;var lk=r(9429);function ck({model:e,show:t,close:n}){const[o,s]=(0,i.useState)(""),[r,a]=(0,i.useState)(null),[l,c]=(0,i.useState)([]),[d,h,u]=Qc(),g=_i(),p=(0,i.useCallback)((()=>{l.length||e.setProperties(JSON.parse(r.getValue())).then(n)}));return(0,i.useEffect)((()=>{if(!t)return;const i=()=>{e&&t&&e.getProperties().then((e=>{t&&s(JSON.stringify(e||{},null,2))}))};return e.on("changed",i),i(),()=>{e&&e.removeListener("changed",i)}}),[e&&e.id,t]),(0,i.useEffect)((()=>{if(!(d&&u&&h&&o))return;const{left:e,top:t,width:i,height:n}=h;if(0===e&&0===t&&0===i&&0===n)return;const s=lk.editor.create(u,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});s.layout({width:h.width,height:h.height});const r=s.onDidChangeModelDecorations((()=>{const e=lk.editor.getModelMarkers();c(e)}));return s.focus(),a(s),()=>{r.dispose();const e=s.getModel();e&&e.dispose(),s.dispose()}}),[u,h,o]),i.createElement(UL,{disableEscapeKeyDown:!0,open:t,scroll:"paper",maxWidth:"md",onClose:n,PaperProps:{style:{height:"80%",width:"80%"}}},i.createElement(YL,null,"Modify object properties"),i.createElement(ik,{dividers:!0},i.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),i.createElement(ak,null,i.createElement($a,{variant:"contained",onClick:n},"Cancel"),i.createElement($a,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const dk=i.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),hk=i.createContext();function uk({id:e,onLoad:t}){const n=(0,i.useContext)(hk),o=(0,i.useRef)();return(0,i.useEffect)((()=>{const i=n.render({id:e,element:o.current});return i.then((e=>{t(e,o.current)})),()=>{i.then((e=>{e.destroy()}))}}),[e]),i.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const gk="Cell",pk={secondaryIcon:`${gk}-secondaryIcon`,drop:`${gk}-drop`},mk=(0,qt.Ay)(Ho)((({theme:e})=>({[`& .${pk.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${pk.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function fk({id:e,expandable:t,minHeight:n}){const o=(0,i.useContext)(nS),[s,r]=(0,i.useState)(null),[a,l]=(0,i.useState)(!1),[c,d]=(0,i.useState)(null),{currentThemeName:h,activeViz:u,setActiveViz:g,setExpandedObject:p,expandedObject:m}=(0,i.useContext)(dk),f=m===e,v=(0,i.useRef)();(0,i.useEffect)((()=>{const t=o.getObject(e).then((e=>(r(e),e)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[_,b]=(0,i.useState)(!1),y=(0,i.useCallback)((()=>{b(!1)}),[]),C=(0,i.useCallback)(((e,t)=>{v.current={viz:e,el:t},d(e)}),[e]),w=(0,i.useCallback)(((e=!1)=>{if(v.current)if(e)l(!0),v.current.viz.__DO_NOT_USE__.exportImage().then((e=>{e&&e.url&&window.open(e.url),l(!1)}));else{const e=v.current.el.getBoundingClientRect();v.current.viz.__DO_NOT_USE__.takeSnapshot().then((t=>{fetch("/njs/snapshot",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),window.open(`/render?snapshot=${t.key}`,"snapshot",`height=${Math.round(e.height)},width=${Math.round(e.width)}`)}))}}),[s,h]),S=!f&&v.current&&u&&u===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=u===c;return i.createElement(mk,{container:!0,direction:"column",style:{minHeight:n,height:"100%",position:"relative"}},i.createElement(Ho,{item:!0},i.createElement(cw,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},i.createElement(ck,{model:s,show:_,close:y}),i.createElement(Ao,{title:"Modify object properties",className:pk.secondaryIcon,disabled:!s,onClick:()=>b(!0),size:"large"},Es({size:"medium",viewBox:"0 0 16 16",shapes:[{type:"path",attrs:{d:"M14,8 C14,8.2 14,8.4 14,8.6 L16,9.6 L15.4,11.4 L13.2,11 C13,11.3 12.8,11.7 12.5,12 L13.6,14 L12,15 L10.4,13.4 C10,13.5 9.7,13.7 9.3,13.8 L9,16 L7,16 L6.7,13.8 C6.3,13.7 5.9,13.6 5.6,13.4 L4,15 L2.4,13.9 L3.5,11.9 C3.2,11.6 3,11.3 2.8,10.9 L0.6,11.3 L0,9.6 L2,8.6 C2,8.4 2,8.2 2,8 C2,7.8 2,7.6 2,7.4 L0,6.4 L0.6,4.6 L2.8,5 C3,4.7 3.2,4.3 3.5,4 L2.4,2 L4,1 L5.6,2.6 C6,2.4 6.3,2.3 6.7,2.2 L7,0 L9,0 L9.3,2.2 C9.7,2.3 10.1,2.4 10.4,2.6 L12,1 L13.6,2.1 L12.5,4.1 C12.8,4.4 13,4.7 13.2,5.1 L15.4,4.7 L16,6.4 L14,7.4 C14,7.6 14,7.8 14,8 Z M8,11 C9.7,11 11,9.7 11,8 C11,6.3 9.7,5 8,5 C6.3,5 5,6.3 5,8 C5,9.7 6.3,11 8,11 Z"}}]})),i.createElement(Ao,{title:"Open in single render view",className:pk.secondaryIcon,disabled:!s,href:s?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${s.id}&theme=${h}&language=en-US`:"",target:"_blank",size:"large"},Es({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})),i.createElement(Ao,{title:"Take and render as snapshot",className:pk.secondaryIcon,disabled:!s,onClick:()=>w(),size:"large"},Es({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})),a?i.createElement(ml,{size:24}):i.createElement(Ao,{title:"Export as image",className:pk.secondaryIcon,disabled:!s,onClick:()=>w(!0),size:"large"},Es({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})),i.createElement(Ho,{item:!0,xs:!0}),t&&i.createElement(Ao,{title:"Edit",className:pk.secondaryIcon,disabled:!c||x,onClick:()=>g(c),size:"large"},Es({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})),t&&i.createElement(Ao,{title:"Expand",disabled:!s||!c,className:pk.secondaryIcon,onClick:()=>{f?p(null):(p(e),g(c))},size:"large"},Es({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:f?"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z":"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})))),i.createElement(Ho,{item:!0,xs:!0,style:{...S},className:pk.drop},i.createElement(uk,{id:e,onLoad:C})))}function vk({info:e,storage:t,uid:n}){const o=(0,i.useContext)(hk),{activeViz:s,setActiveViz:r}=(0,i.useContext)(dk),[a]=iS(n);return(0,i.useEffect)((()=>{if(!n)return;const i=o.render({type:e.supernova.name,properties:{...!1!==t.get("readFromCache")?t.props(e.supernova.name):{},qInfo:{qId:n,qType:e.supernova.name}}});return i.then((e=>{r(e)})),()=>{i.then((e=>e.destroy()))}}),[n]),(0,i.useEffect)((()=>{a&&t.props(e.supernova.name,a)}),[a]),s&&s.id===n?i.createElement(Ho,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},i.createElement(Ho,{item:!0,xs:!0},i.createElement(fk,{id:n}))):null}function _k({types:e,cache:t}){const n=(0,i.useContext)(nS),[o]=Yc(n),[s,r]=(0,i.useState)(null),{expandedObject:a}=(0,i.useContext)(dk);if((0,i.useEffect)((()=>{n.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then((e=>{r(e.slice(0,20))}))}),[o,e.join(":")]),!s)return null;const l=a?s.filter((e=>e.qInfo.qId===a)):s;return i.createElement(Ho,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>i.createElement(Ho,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${t}`},i.createElement(fk,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):i.createElement(Ho,{item:!0},i.createElement("div",null,i.createElement(Zo,{display:"inline"},"Could not find any components with "),i.createElement(Zo,{display:"inline"},i.createElement("code",null,`qType: "${e[0]}"`)),i.createElement(Zo,{display:"inline"}," in the current app"))))}const bk=["en-US","it-IT","zh-CN","zh-TW","ko-KR","de-DE","sv-SE","es-ES","pt-BR","ja-JP","fr-FR","nl-NL","tr-TR","pl-PL","ru-RU"],yk=["select","active","passive"];function Ck(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function wk(){const e=(0,i.useRef)(),t=X(),{info:n}=_t(),{waiting:o,app:s}=(({info:e})=>{const[t,n]=(0,i.useState)(null),[o,s]=(0,i.useState)(!0);(0,i.useEffect)((()=>{s(!0),e&&r().then((e=>n(e))).catch((e=>console.log(e))).finally((()=>s(!1)))}),[e]);const r=async()=>{try{const{clientId:t,webIntegrationId:i,enigma:n=null,enigma:{host:o}={}}=e;let s="";if(i){const t=await vt({webIntegrationId:i,host:o});s=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/getSocketUrl/${e?.enigma.appId}`)).json();s=t}else s=be().buildUrl(n);return(await fe().create({schema:ve,url:s}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:t,setApp:n}})({info:n}),r=(0,i.useMemo)((()=>wt(s)),[s]),[a,l]=(0,i.useState)(null),[c,d]=(0,i.useState)(null),[h,u]=(0,i.useState)(null),[g,p]=(0,i.useState)(r.get("themeName")),[m,f]=(0,i.useState)(r.get("language")||"en-US"),[v,_]=(0,i.useState)("light"),[b,y]=(0,i.useState)(yk),[C,w]=(0,i.useState)(!0===r.get("objectListMode")),S=(0,i.useRef)(null),[x,L]=(0,i.useState)(),[k,E]=i.useState(null),[D,I]=i.useState(null),[N,A]=(0,i.useState)(!1),[R,T]=(0,i.useState)(null),q=Array.isArray(n?.themes)&&n.themes.length?["light","dark",...n.themes]:[],M=(0,i.useMemo)((()=>Ui(v)),[v]),O=(0,i.useMemo)((()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d})),[a,c,g]);(0,i.useEffect)((()=>{(async()=>{n&&(await function(e){const t=()=>{eS(e.supernova.name,e.supernova.url).then((t=>{var i;window[e.supernova.name]=t,i=e.supernova.name,tS[i]&&tS[i].forEach((e=>e()))}))};if(e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t(),e.types){const t=e.types.map((e=>eS(e.name,e.url).then((t=>{window[e.name]=t}))));return Promise.all(t)}return Promise.resolve()}(n),A(!0))})()}),[n]),(0,i.useEffect)((()=>{if(o||!N)return;const e=FC(s,{context:{theme:g,language:m,interactions:Ck(b),keyboardNavigation:n?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:n?.flags,themes:n?.themes?n?.themes.map((e=>({id:e,load:()=>fetch(`/theme/${e}`).then((e=>e.json())).then((e=>(_("dark"===e.type?"dark":"light"),e)))}))):null});e.__DO_NOT_USE__.types.register(n?.supernova),n?.types&&n?.types.forEach((t=>{e.__DO_NOT_USE__.types.register(t)})),T(e)}),[s,n,o,N]),(0,i.useLayoutEffect)((()=>{R&&(R.context({theme:g}),"light"!==g&&"dark"!==g||_(g))}),[R,g]);const P=()=>{window[n?.supernova.name]&&(e.current=String(Date.now()),L(e.current))};return(0,i.useEffect)((()=>{R&&(R.selections().then((e=>e.mount(S.current))),window.onHotChange(n?.supernova.name,(()=>{R.__DO_NOT_USE__.types.clearFromCache(n?.supernova.name),R.__DO_NOT_USE__.types.register(n?.supernova),P(),R.__DO_NOT_USE__.types.get({name:n?.supernova.name}).supernova().then(u)})),P())}),[R,n]),(0,i.useEffect)((()=>{const t=()=>{s&&s.destroySessionObject(e.current)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[s]),i.createElement(nS.Provider,{value:s},i.createElement(Ai.A,{injectFirst:!0},i.createElement(Ni,{theme:M},i.createElement(hk.Provider,{value:R},i.createElement(Ho,{container:!0,wrap:"nowrap",direction:"column",style:{background:M.palette.background.darkest,height:"100%"},gap:0},i.createElement(Ho,{item:!0},i.createElement(cw,{variant:"dense",style:{background:M.palette.background.paper,boxShadow:M.shadows[1]}},i.createElement(Ho,{container:!0,gap:1},i.createElement(Ho,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(Ho,{item:!0},i.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},i.createElement("img",{src:"/assets/logo.svg",alt:"nebula.js logo",href:"https://github.com/qlik-oss/nebula.js",style:{height:"24px",position:"relative",top:"2px"}})))),i.createElement(Ho,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(Ao,{title:"Home",onClick:()=>t("/"),size:"large"},i.createElement(ew.A,{style:{verticalAlign:"middle"}}))),i.createElement(Ho,{item:!0,xs:!0,zeroMinWidth:!0},i.createElement($r,{value:C?1:0,onChange:(e,t)=>{const i=1===t;r.save("objectListMode",i),i&&(l(null),d(null)),w(i)},"aria-label":"Navigation"},i.createElement(Qr,{label:i.createElement(Zo,null,"Create"),value:0}),i.createElement(Qr,{label:i.createElement(Zo,null,"Edit"),value:1}))),i.createElement(Ho,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(Ho,{item:!0,gap:1},i.createElement(Zo,null,"State:")),i.createElement(Ho,{item:!0,gap:2},i.createElement(bw,{size:"small",value:b,onChange:(e,t)=>{y(t),R&&R.context({interactions:Ck(t)})},color:"primary"},i.createElement(Dw,{value:"select"},"Select"),i.createElement(Dw,{value:"active"},"Active"),i.createElement(Dw,{value:"passive"},"Passive"),i.createElement(Dw,{value:"edit"},"Edit"))),i.createElement(Ho,{item:!0},q.length?i.createElement(i.Fragment,null,i.createElement(Ao,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},i.createElement(tw.A,{fontSize:"small"})),i.createElement(Fw,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},q.map((e=>i.createElement(hf,{key:e,selected:e===g,onClick:()=>(e=>{E(null),r.save("themeName",e),p(e)})(e)},e))))):i.createElement(Ao,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";r.save("themeName",e),p(e)},size:"large"},"dark"===g?i.createElement(iw.A,{fontSize:"small"}):i.createElement(nw.A,{fontSize:"small"}))),i.createElement(Ho,{item:!0},i.createElement($a,{startIcon:i.createElement(ow.A,null),title:"Select language",onClick:e=>I(e.currentTarget)},m),i.createElement(Fw,{anchorEl:D,open:!!D,keepMounted:!0,onClose:()=>I(null)},bk.map((e=>i.createElement(hf,{key:e,selected:e===m,onClick:()=>{return t=e,I(null),r.save("language",t),f(t),void(R&&R.context({language:t}));var t}},e))))))))),i.createElement(Ho,{item:!0,style:{padding:M.spacing(1,1,0,1)}},i.createElement("div",{ref:S,style:{flex:"0 0 auto",boxShadow:M.shadows[1]}})),i.createElement(Ho,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:M.spacing(0,1,1,1)}},i.createElement(dk.Provider,{value:O},h?i.createElement(Ho,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},i.createElement(Ho,{item:!0,xs:!0,zeroMinWidth:!0},C?i.createElement(_k,{cache:x,types:[n?.supernova.name]}):i.createElement(vk,{info:n,storage:r,uid:x})),a&&i.createElement(Ho,{item:!0,style:{background:M.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:M.shadows[1],padding:0}},i.createElement(ML,{sn:h,viz:a,isTemp:!C,storage:r,flags:n?.flags}))):i.createElement(Ho,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},i.createElement(Ho,{item:!0},i.createElement(ml,null))))))))))}const Sk=()=>i.createElement(ue,null,i.createElement(kt,null,i.createElement(ce,null,i.createElement(ae,{element:i.createElement(Bn,null)},i.createElement(ae,{path:"/",element:i.createElement(tl,null)}),i.createElement(ae,{path:"/app-list",element:i.createElement(fl,null)})),i.createElement(ae,{path:"/dev",element:i.createElement(wk,null)}))));o.createRoot(document.querySelector("#app")).render(i.createElement(Sk,null))})()})();
|
|
102
|
+
`),dl))),pl=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:s=!1,size:r=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=i,h=(0,Et.A)(i,nl),u=(0,Dt.A)({},i,{color:o,disableShrink:s,size:r,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:i,color:n,disableShrink:o}=e,s={root:["root",i,`color${(0,ui.A)(n)}`],svg:["svg"],circle:["circle",`circle${(0,ui.A)(i)}`,o&&"circleDisableShrink"]};return(0,Nt.A)(s,il,t)})(u),p={},m={},f={};if("determinate"===d){const e=2*Math.PI*((44-l)/2);p.strokeDasharray=e.toFixed(3),f["aria-valuenow"]=Math.round(c),p.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,Ft.jsx)(hl,(0,Dt.A)({className:(0,It.A)(g.root,n),style:(0,Dt.A)({width:r,height:r},m,a),ownerState:u,ref:t,role:"progressbar"},f,h,{children:(0,Ft.jsx)(ul,{className:g.svg,ownerState:u,viewBox:"22 22 44 44",children:(0,Ft.jsx)(gl,{className:g.circle,style:p,ownerState:u,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))})),ml=pl,fl=()=>{const e=X(),t=G(),{info:n,glob:o,treatAsDesktop:s}=Lt(),{loading:r,appList:a}=(({glob:e,info:t})=>{const n=X(),{setInfo:o,setActiveStep:s}=Lt(),[r,a]=(0,i.useState)(),[l,c]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{s(1),ft().then((e=>{o(e)}))}),[]),(0,i.useEffect)((()=>{if(r?.length)return;c(!0);const t=new URLSearchParams(window.location.search);t.get("qlik-client-id")&&!t.get("shouldFetchAppList")&&(async()=>{const{isAuthorized:e}=await(await fetch("/isAuthorized")).json();return{isAuthorized:e}})().then((({isAuthorized:e})=>{if(e){const e=new URL(window.location.href);e.search.includes("shouldFetchAppList")||e.searchParams.append("shouldFetchAppList",!0),n(decodeURIComponent(`${e.pathname}${e.search}`))}})),(t.get("shouldFetchAppList")?(async()=>await(await fetch("/apps")).json()||[])():e?.getDocList())?.then((e=>{a(e),e&&c(!1)}))}),[window.location.search,c,t,e]),{appList:r,loading:l}})({glob:o,info:n});return i.createElement(qn,null,i.createElement(Zo,{variant:"h5",gutterBottom:!0},"Select an app"),r&&i.createElement(ml,{"data-testid":"loading",size:32}),!r&&a&&!a.length&&i.createElement(Zo,{component:"span"},"No apps found!"),a&&a.length>0&&i.createElement(qs,null,a.map((o=>i.createElement(Ys,{button:!0,component:"a",key:o.qDocId,onClick:()=>(({navigate:e,location:t,targetApp:i,info:n})=>{const{search:o}=t,s=`${n.enigma.secure?"wss":"ws"}://${"localhost"===n.enigma.host?`${n.enigma.host}:${n.enigma.port}`:n.enigma.host}/app/${encodeURIComponent(i)}`;e(`/dev/${o.replace(n.engineUrl,s)}`.replace("&shouldFetchAppList=true",""))})({info:n,navigate:e,location:t,targetApp:s?o.qDocName:o.qDocId})},i.createElement(nr,{primary:o.qTitle,secondary:o.qDocId}))))))};r(8275);const vl=({initial:e="en-US",fallback:t="en-US"}={})=>{const i=function({initial:e="en-US",fallback:t="en-US"}={}){const i={};let n=e;const o={language:e=>(e&&(n=e),n),add:e=>{const{id:t,locale:n}=e;Object.keys(n).forEach((e=>{i[e]||(i[e]={}),i[e][t]=n[e]}))},get(e,o){let s;return s=i[n]&&void 0!==i[n][e]?i[n][e]:i[t]&&void 0!==i[t][e]?i[t][e]:e,void 0!==o?((e="",t=[])=>{const i="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==i[t]?i[t]:e))})(s,o):s}};return o}({initial:e,fallback:t});return{translator:i}},_l=JSON.parse('{"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_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},"Listbox_ScreenReader_SelectionMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},"Listbox_ScreenReaderInstructions":{"id":"Listbox.ScreenReaderInstructions","locale":{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L\'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L\'attivazione degli elementi sottostanti causerà l\'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},"Listbox_Search":{"id":"Listbox.Search","locale":{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},"Listbox_Search_ScreenReaderInstructions":{"id":"Listbox.Search.ScreenReaderInstructions","locale":{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},"Listbox_Unlock":{"id":"Listbox.Unlock","locale":{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},"Menu_More":{"id":"Menu.More","locale":{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},"Navigate_Back":{"id":"Navigate.Back","locale":{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},"Navigate_Forward":{"id":"Navigate.Forward","locale":{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},"OK":{"id":"OK","locale":{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},"Object_Listbox_Alternative":{"id":"Object.Listbox.Alternative","locale":{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},"Object_Listbox_Excluded":{"id":"Object.Listbox.Excluded","locale":{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},"Object_Listbox_ExcludedLock":{"id":"Object.Listbox.ExcludedLock","locale":{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},"Object_Listbox_Locked":{"id":"Object.Listbox.Locked","locale":{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},"Object_Listbox_Optional":{"id":"Object.Listbox.Optional","locale":{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},"Object_Listbox_Selected":{"id":"Object.Listbox.Selected","locale":{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},"Object_Listbox_SelectedExcluded":{"id":"Object.Listbox.SelectedExcluded","locale":{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},"Object_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":"重試"}},"ScreenReader_ManySearchResults":{"id":"ScreenReader.ManySearchResults","locale":{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},"ScreenReader_ManySelected":{"id":"ScreenReader.ManySelected","locale":{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},"ScreenReader_OneSearchResult":{"id":"ScreenReader.OneSearchResult","locale":{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},"ScreenReader_OneSelected":{"id":"ScreenReader.OneSelected","locale":{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},"ScreenReader_ZeroSelected":{"id":"ScreenReader.ZeroSelected","locale":{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n\'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},"Selection_Cancel":{"id":"Selection.Cancel","locale":{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},"Selection_Clear":{"id":"Selection.Clear","locale":{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},"Selection_ClearAll":{"id":"Selection.ClearAll","locale":{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},"Selection_ClearAllStates":{"id":"Selection.ClearAllStates","locale":{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},"Selection_Confirm":{"id":"Selection.Confirm","locale":{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},"Selection_Menu":{"id":"Selection.Menu","locale":{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":"Меню \\"Выборка\\"","sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},"Selection_SelectAll":{"id":"Selection.SelectAll","locale":{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},"Selection_SelectAlternative":{"id":"Selection.SelectAlternative","locale":{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},"Selection_SelectExcluded":{"id":"Selection.SelectExcluded","locale":{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},"Selection_SelectPossible":{"id":"Selection.SelectPossible","locale":{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},"SelectionToolbar_ClickToLock":{"id":"SelectionToolbar.ClickToLock","locale":{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},"SelectionToolbar_ClickToUnlock":{"id":"SelectionToolbar.ClickToUnlock","locale":{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},"Visualization_Incomplete":{"id":"Visualization.Incomplete","locale":{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},"Visualization_Incomplete_Dimensions":{"id":"Visualization.Incomplete.Dimensions","locale":{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},"Visualization_Incomplete_Measures":{"id":"Visualization.Incomplete.Measures","locale":{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},"Visualization_Invalid_Dimension":{"id":"Visualization.Invalid.Dimension","locale":{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},"Visualization_Invalid_Measure":{"id":"Visualization.Invalid.Measure","locale":{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},"Visualization_LayoutError":{"id":"Visualization.LayoutError","locale":{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},"Visualization_UnfulfilledCalculationCondition":{"id":"Visualization.UnfulfilledCalculationCondition","locale":{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}}');var bl=r(6775),yl=r.n(bl);function Cl(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function wl(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function Sl(){}var xl=.7,Ll=1/xl,kl="\\s*([+-]?\\d+)\\s*",El="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Il=/^#([0-9a-f]{3,8})$/,Nl=new RegExp(`^rgb\\(${kl},${kl},${kl}\\)$`),Al=new RegExp(`^rgb\\(${Dl},${Dl},${Dl}\\)$`),Rl=new RegExp(`^rgba\\(${kl},${kl},${kl},${El}\\)$`),Tl=new RegExp(`^rgba\\(${Dl},${Dl},${Dl},${El}\\)$`),ql=new RegExp(`^hsl\\(${El},${Dl},${Dl}\\)$`),Ml=new RegExp(`^hsla\\(${El},${Dl},${Dl},${El}\\)$`),Ol={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 Pl(){return this.rgb().formatHex()}function Fl(){return this.rgb().formatRgb()}function Bl(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=Il.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?Wl(t):3===i?new Hl(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?Vl(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?Vl(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=Nl.exec(e))?new Hl(t[1],t[2],t[3],1):(t=Al.exec(e))?new Hl(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Rl.exec(e))?Vl(t[1],t[2],t[3],t[4]):(t=Tl.exec(e))?Vl(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ql.exec(e))?Xl(t[1],t[2]/100,t[3]/100,1):(t=Ml.exec(e))?Xl(t[1],t[2]/100,t[3]/100,t[4]):Ol.hasOwnProperty(e)?Wl(Ol[e]):"transparent"===e?new Hl(NaN,NaN,NaN,0):null}function Wl(e){return new Hl(e>>16&255,e>>8&255,255&e,1)}function Vl(e,t,i,n){return n<=0&&(e=t=i=NaN),new Hl(e,t,i,n)}function zl(e,t,i,n){return 1===arguments.length?((o=e)instanceof Sl||(o=Bl(o)),o?new Hl((o=o.rgb()).r,o.g,o.b,o.opacity):new Hl):new Hl(e,t,i,null==n?1:n);var o}function Hl(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function jl(){return`#${Kl(this.r)}${Kl(this.g)}${Kl(this.b)}`}function Ul(){const e=$l(this.opacity);return`${1===e?"rgb(":"rgba("}${Gl(this.r)}, ${Gl(this.g)}, ${Gl(this.b)}${1===e?")":`, ${e})`}`}function $l(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kl(e){return((e=Gl(e))<16?"0":"")+e.toString(16)}function Xl(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Yl(e,t,i,n)}function Zl(e){if(e instanceof Yl)return new Yl(e.h,e.s,e.l,e.opacity);if(e instanceof Sl||(e=Bl(e)),!e)return new Yl;if(e instanceof Yl)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,o=Math.min(t,i,n),s=Math.max(t,i,n),r=NaN,a=s-o,l=(s+o)/2;return a?(r=t===s?(i-n)/a+6*(i<n):i===s?(n-t)/a+2:(t-i)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new Yl(r,a,l,e.opacity)}function Yl(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function Ql(e){return(e=(e||0)%360)<0?e+360:e}function Jl(e){return Math.max(0,Math.min(1,e||0))}function ec(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}Cl(Sl,Bl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pl,formatHex:Pl,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Zl(this).formatHsl()},formatRgb:Fl,toString:Fl}),Cl(Hl,zl,wl(Sl,{brighter(e){return e=null==e?Ll:Math.pow(Ll,e),new Hl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xl:Math.pow(xl,e),new Hl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Hl(Gl(this.r),Gl(this.g),Gl(this.b),$l(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:jl,formatHex:jl,formatHex8:function(){return`#${Kl(this.r)}${Kl(this.g)}${Kl(this.b)}${Kl(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ul,toString:Ul})),Cl(Yl,(function(e,t,i,n){return 1===arguments.length?Zl(e):new Yl(e,t,i,null==n?1:n)}),wl(Sl,{brighter(e){return e=null==e?Ll:Math.pow(Ll,e),new Yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xl:Math.pow(xl,e),new Yl(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,i=this.l,n=i+(i<.5?i:1-i)*t,o=2*i-n;return new Hl(ec(e>=240?e-240:e+120,o,n),ec(e,o,n),ec(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Yl(Ql(this.h),Jl(this.s),Jl(this.l),$l(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=$l(this.opacity);return`${1===e?"hsl(":"hsla("}${Ql(this.h)}, ${100*Jl(this.s)}%, ${100*Jl(this.l)}%${1===e?")":`, ${e})`}`}}));var tc=r(5205),ic=r.n(tc);const nc=JSON.parse('{"fontSize":"12px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"object":{"title":{"main":{"color":"@B50","fontSize":"15px"},"subTitle":{"color":"@B50","fontSize":"12px"},"footer":{"color":"@B50","fontSize":"12px","backgroundColor":"transparent"}}},"scales":[{"name":"Sequential Gradient","translation":"properties.colorScheme.sequential","type":"gradient","propertyValue":"sg","scale":["#26a0a7","#c7ea8b"]},{"name":"Sequential Classes","translation":"properties.colorScheme.sequentialC","propertyValue":"sc","type":"class","scale":["#26a0a7","#c7ea8b"]},{"name":"Diverging gradient","translation":"properties.colorScheme.diverging","propertyValue":"dg","type":"gradient","scale":["#26a0a7","#c3ea8c","#ec983d"]},{"name":"Diverging Classes","translation":"properties.colorScheme.divergingC","propertyValue":"dc","type":"class","scale":["#26a0a7","#c3ea8c","#ec983d"]}],"palettes":{"data":[{"name":"12 Colors","translation":"properties.colorNumberOfColors.12","propertyValue":"12","type":"pyramid","scale":[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],"ui":[{"name":"Palette","colors":["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}}'),oc=JSON.parse('{"_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"}'),sc=JSON.parse('{"_variables":{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},"type":"dark","color":"@B98","object":{"listBox":{"backgroundColor":"@B20","title":{"main":{"color":"@B98","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#@B98","fontSize":"12px"}}}}'),rc=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),ac=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Bl(e)}addColorPart(e,t,i){i=i||0,this.startLevel=Math.max(i,this.startLevel),this.colorParts[i]||(this.colorParts[i]=[]),this.colorParts[i].push([Bl(e),Bl(t)])}getColor(e,t){const i=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+i))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const n=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(i,this.colorParts[t].length);let o=Math.floor(n);o=o===n?o-1:o;const s=this.colorParts[t][o],r=s[0],a=s[1];if(e===this.min)return a;if(e===this.max)return r;const l=function(e,t,i){return zl(Math.floor(e.r+(t.r-e.r)*i),Math.floor(e.g+(t.g-e.g)*i),Math.floor(e.b+(t.b-e.b)*i),Math.floor(e.opacity+(t.opacity-e.opacity)*i))}(r,a,n-o);return l}};function lc(e,t,i){const n=.25+(t+1)/i*.25,o=.5-n;return o+e/1*(.5+n-o)}function cc(e,t,i){const n=[],o=new ac(t);n.push(e[0]),i||n.push(e[0]);let s=1;for(;s<e.length-1;s++)n.push(e[s]),n.push(e[s]);n.push(e[s]),i||n.push(e[s]);for(let e=0;e<n.length;e+=2)o.addColorPart(n[e],n[e+1]);return o}function dc(e,t,i){const n=[];for(let o=0;o<t+1;o++){let s;switch(t){case 0:s=e.getColor(.5);break;default:{const n=lc(1/t*o,t,i);s=e.getColor(n);break}}n.push(Bl(s).formatHex())}return n}function hc(e,t){const i=[];let n,o;if(e){let s=e.length;for(;s>=0;){for(n=t.slice(),o=n.length;o>=0;)i.push(n.concat(e)),n.pop(),o--;e.pop(),s--}}else for(n=t.slice(),o=n.length;o>=0;)i.push(n.concat()),n.pop(),o--;return i}function uc(e,t){let i=e;for(let e=0;e<t.length;e++){if(!i[t[e]])return;i=i[t[e]]}return i}function gc(e,t){const i=e.split(".");return{getStyle:(e,n)=>function(e,t,i,n){let o;return o=hc(""===e?null:e.split("."),i),function(e,t,i){const n=t.split(".");for(let t=0;t<e.length;t++){const o=uc(i,[...e[t],...n]);if(void 0!==o)return o}}(o,t,n)}(e,n,i.concat(),t)}}function pc(e,t){Object.keys(e).forEach((i=>{"object"==typeof e[i]&&null!==e[i]?pc(e[i],t):"string"==typeof e[i]&&"@"===e[i].charAt(0)&&(e[i]=t[e[i]])}))}function mc(e){const t=Bl(e).rgb(),{r:i,g:n,b:o}=t,[s,r,a]=[i,n,o].map((e=>e/255)),[l,c,d]=[s,r,a].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*d).toFixed(5)}gc.resolveRawTheme=e=>{const t=ic()(!0,{},e);return pc(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const i=function(e,t,i){const n=cc(e,i,!0),o=cc(dc(n,t-1,t),i,!1),s=[null];for(let e=0;e<t;e++)s.push(dc(o,e,t));return s}(e.scale,Math.max(e.scale.length,7),t);e.scale=i,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const fc=1e3;function vc(){let e,t,i,n={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>i.getBestContrastColor(e),getStyle:(t,i,o)=>(n[t]||(n[t]=gc(t,e)),n[t].getStyle(i,o)),validateColor(...e){const t=e[0];let i;if("string"==typeof t&&(i=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(i[1],10)/255;return`rgba(${parseInt(i[2],10)},${parseInt(i[3],10)},${parseInt(i[4],10)},${e})`}const n=Bl(...e);return n?n.toString():void 0}},s={setTheme(s,r){e=function(e,t){const i="dark"===e.type?sc:oc;let n=rc;!1!==e._inherit&&"false"!==e._inherit||(n={});const o=ic()(!0,{},nc,n,i),s=ic()(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return s.palettes.data&&s.palettes.data.length||(s.palettes.data=o.palettes.data),s.palettes.ui&&s.palettes.ui.length||(s.palettes.ui=o.palettes.ui),s.scales&&s.scales.length||(s.scales=o.scales),t(s)}(s,gc.resolveRawTheme),n={},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,i){if("number"==typeof e?.index&&!Number.isNaN(e?.index)||"string"==typeof e?.color)return i=!!i,e?.index<0||void 0===e?.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-i]?e.color:t.colors[e.index-i]:e.color)}}}(e);const a=o.getStyle("","","color"),l=mc(a);i=function(e=["#333333","#ffffff"]){let t={},i=0;const n=e.map(mc);return{getBestContrastColor(o){if(!t[o]){i>fc&&(t={},i=0);const s=mc(o),r=n.map((e=>{return t=s,i=e,+((Math.max(t,i)+.05)/(Math.min(t,i)+.05)).toFixed(5);var t,i})),a=e[r.indexOf(Math.max(...r))];t[o]=a,i++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>r}};return Object.keys(yl().prototype).forEach((e=>{o[e]=yl().prototype[e]})),yl().init(o),s.setTheme({},"light"),{externalAPI:o,internalAPI:s}}const _c=i.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),bc=(e={},t=(()=>{}))=>{const n=e,o=[],s={get:e=>n[e],set:(e,i)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return n[e]=i,t({type:"SET",value:i}),i},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);n[e]=null},dispatch:e=>{o.forEach((t=>t(e?{}:n)))}};return[()=>{const[,e]=(0,i.useState)(n);return(0,i.useEffect)((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[s]},s]},[yc,Cc]=bc({}),[wc,Sc]=bc({}),[xc,Lc]=bc({});function kc(e){if(!e.session)return[];const[t]=yc(),n=e?e.id:null;let o=t.get(n);return(0,i.useEffect)((()=>{e&&!o&&(o=function({app:e}){const t=`${e.id}`,i=async(e=!0)=>{const{model:i,objectSelections:n}=Lc.get(t)||{};i&&(await i.endSelections(e),Lc.clear(t),n.emit("deactivated"))},n={begin:async({model:n,paths:o,accept:s=!0,objectSelections:r})=>{if(r===Lc.get(t)?.objectSelections)return;i(s),Lc.set(t,{model:n,objectSelections:r});const a=Array.isArray(o)?o:[o],l=async i=>{try{await n.beginSelections(a),Lc.set(t,{model:n,objectSelections:r})}catch(n){6003!==n.code||i?Lc.clear(t):(await e.abortModal(s),l(!0))}};await l()},end:i};return Sc.set(t,n),{model:e,isInModal:()=>!!Lc.get(t),isModal:e=>e?Lc.get(t)?.objectSelections===e:!!Lc.get(t),forward:()=>n.end().then((()=>e.forward())),back:()=>n.end().then((()=>e.back())),clear:()=>n.end().then((()=>e.clearAll())),clearField:(t,i="$")=>n.end().then((()=>e.getField(t,i).then((e=>e.clear()))))}}({app:e}),t.set(n,o),t.dispatch(!0))}),[e]),[o]}const Ec={active:!0,select:!0,passive:!0,edit:!1};function Dc(e){const t={},i={},n=function(e){const{constraints:t={},interactions:i={}}=e;if(Object.keys(i).length>0)return i;const n={};return Object.keys(t).forEach((e=>{n[e]=!t[e]})),n}(e);Object.keys(Ec).forEach((e=>{void 0!==n[e]?(t[e]=n[e],i[e]=!n[e]):(t[e]=Ec[e],i[e]=!Ec[e])})),e.constraints=i,e.interactions=t}const Ic=(0,i.forwardRef)((({initialContext:e,app:t,renderCallback:n},o)=>{const[s]=kc(t),[r,a]=(0,i.useState)(e),[l,c]=(0,i.useState)(),{theme:d}=(0,i.useMemo)((()=>({theme:Ui(l)})),[l]),[h,u]=(0,i.useState)([]);return(0,i.useEffect)((()=>{n&&n()}),[]),(0,i.useImperativeHandle)(o,(()=>({setComps(e){u([...e])},setMuiThemeName:c,setContext:e=>a((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>s})),[]),i.createElement(Ai.A,{injectFirst:!0},i.createElement(Ni,{theme:d},i.createElement(_c.Provider,{value:r},h)))})),[Nc,Ac]=bc({}),[Rc,Tc]=bc({}),[qc,Mc]=bc({}),[Oc,Pc]=bc({}),[Fc,Bc]=bc({}),[,Wc]=bc({}),Vc=({type:e,value:t})=>{const i=Wc.get(t.id);Wc.set(t.id,{});const n=()=>{Tc.clear(t.id),Bc.set(t.id,{}),Bc.dispatch(!0)},o=()=>{t.removeListener("changed",n),Ac.clear(t.id),Tc.clear(t.id),Mc.clear(t.id),Pc.clear(t.id),Bc.clear(t.id),Wc.clear(t.id)};return"SET"===e&&(i||(t.on("changed",n),t.once("closed",(()=>{o()})))),o},[zc,Hc]=bc({},Vc);function jc(e,t,...n){const o=t?`${t.id}/${JSON.stringify(e)}`:null,[s]=zc(),[r]=qc(),[a,l]=(0,i.useState)();return(0,i.useEffect)((()=>{t&&(async()=>{let i=r.get(o);i||(i=t.createSessionObject(e),r.set(o,i));const n=await i;s.set(o,n),l(n)})()}),[t,...n]),[a]}const Uc={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function $c(e){return jc(Uc,e)}const Gc=e=>new Promise((t=>{setTimeout(t,e)})),Kc=(e,t)=>{const{rpcResultStore:i,key:n,method:o}=t;let s;switch(t.type){case"INVALID":s={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":s={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":s={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let r=i.get(n);return r||(r={}),r[o]=s,i.set(n,r),s};function Xc(e,t){const n=e?`${e.id}`:null,[o]=Nc(),[s,r]=(0,i.useReducer)(Kc,n?o.get(n):null),[a]=Fc(),[l]=Rc();let c;n&&(c=l.get(n),c||(c={},l.set(n,c)));const d=async i=>{let s=c[t];(!s||s&&s.rpcRetry)&&(s={rpc:e[t](),rpcRetry:!1},c[t]=s,r({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0}));try{await Gc(0);const i=await s.rpc;r({type:"VALID",result:i,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||i||(s.rpcRetry||(s.rpcRetry=!0),d(!0))}},h={cancel:async()=>{const i=e.session.getObjectApi({handle:-1});await i.cancelRequest(c[t].rpc.requestId),r({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:o})},retry:()=>{c[t].rpcRetry=!0,d()}};return(0,i.useEffect)((()=>{e&&d()}),[e,a.get(e&&e.id),n,t]),[s&&s.result,{validating:s&&s.validating,canCancel:s&&s.canCancel,canRetry:s&&s.canRetry},h]}function Zc(e){return Xc(e,"getLayout")}function Yc(e){return Xc(e,"getAppLayout")}function Qc(){const[e,t]=(0,i.useState)(),[n,o]=(0,i.useState)(),s=(0,i.useCallback)((e=>{e&&t(e)}),[]),r=()=>{const{left:t,top:i,width:n,height:s}=e.getBoundingClientRect();o({left:t,top:i,width:n,height:s})};return(0,i.useLayoutEffect)((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(r);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}}}),[e]),[s,n,e]}const Jc=e=>Es((e=>({...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)),ed=e=>({...e,viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}),td=e=>Es(ed(e)),id=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nd(e){return`scale(${e}, ${e**2})`}const od={entering:{opacity:1,transform:nd(1)},entered:{opacity:1,transform:"none"}},sd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rd=i.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:s,easing:r,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:h,onExited:u,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=gs}=e,v=(0,Et.A)(e,id),_=(0,oo.A)(),b=i.useRef(),y=_i(),C=i.useRef(null),w=(0,zn.A)(C,s.ref,t),S=e=>t=>{if(e){const i=C.current;void 0===t?e(i):e(i,t)}},x=S(d),L=S(((e,t)=>{ms(e);const{duration:i,delay:n,easing:o}=fs({style:p,timeout:m,easing:r},{mode:"enter"});let s;"auto"===m?(s=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=s):s=i,e.style.transition=[y.transitions.create("opacity",{duration:s,delay:n}),y.transitions.create("transform",{duration:sd?s:.666*s,delay:n,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(g),D=S((e=>{const{duration:t,delay:i,easing:n}=fs({style:p,timeout:m,easing:r},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:i}),y.transitions.create("transform",{duration:sd?o:.666*o,delay:sd?i:i||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=nd(.75),h&&h(e)})),I=S(u);return(0,Ft.jsx)(f,(0,Dt.A)({appear:o,in:a,nodeRef:C,onEnter:L,onEntered:k,onEntering:x,onExit:D,onExited:I,onExiting:E,addEndListener:e=>{"auto"===m&&_.start(b.current||0,e),n&&n(C.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(s,(0,Dt.A)({style:(0,Dt.A)({opacity:0,transform:nd(.75),visibility:"exited"!==e||a?void 0:"hidden"},od[e],p,s.props.style),ref:w},t))}))}));rd.muiSupportAuto=!0;const ad=rd;var ld=r(9301),cd=r(4795),dd=r(8961);function hd(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ud(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gd(e){return parseInt((0,ha.A)(e).getComputedStyle(e).paddingRight,10)||0}function pd(e,t,i,n,o){const s=[t,i,...n];[].forEach.call(e.children,(e=>{const t=-1===s.indexOf(e),i=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),i="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||i}(e);t&&i&&ud(e,o)}))}function md(e,t){let i=-1;return e.some(((e,n)=>!!t(e)&&(i=n,!0))),i}const fd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let i=this.modals.indexOf(e);if(-1!==i)return i;i=this.modals.length,this.modals.push(e),e.modalRef&&ud(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);pd(t,e.mount,e.modalRef,n,!0);const o=md(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),i):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),i)}mount(e,t){const i=md(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[i];n.restore||(n.restore=function(e,t){const i=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,ld.A)(e);return t.body===e?(0,ha.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=hd((0,ld.A)(n));i.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${gd(n)+e}px`;const t=(0,ld.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{i.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${gd(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,ld.A)(n).body;else{const t=n.parentElement,i=(0,ha.A)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===i.getComputedStyle(t).overflowY?t:n}i.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{i.forEach((({value:e,el:t,property:i})=>{e?t.style.setProperty(i,e):t.style.removeProperty(i)}))}}(n,t))}remove(e,t=!0){const i=this.modals.indexOf(e);if(-1===i)return i;const n=md(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(i,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ud(e.modalRef,t),pd(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ud(e.modalRef,!1)}return i}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const vd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _d(e){const t=[],i=[];return Array.from(e.querySelectorAll(vd)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let i=t(`[name="${e.name}"]:checked`);return i||(i=t(`[name="${e.name}"]`)),i!==e}(e))}(e)&&(0===o?t.push(e):i.push({documentOrder:n,tabIndex:o,node:e}))})),i.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function bd(){return!0}function yd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:r=_d,isEnabled:a=bd,open:l}=e,c=i.useRef(!1),d=i.useRef(null),h=i.useRef(null),u=i.useRef(null),g=i.useRef(null),p=i.useRef(!1),m=i.useRef(null),f=(0,lr.A)(t.ref,m),v=i.useRef(null);i.useEffect((()=>{l&&m.current&&(p.current=!n)}),[n,l]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,ld.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{s||(u.current&&u.current.focus&&(c.current=!0,u.current.focus()),u.current=null)}}),[l]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,ld.A)(m.current),t=t=>{v.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,h.current&&h.current.focus())},i=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==d.current&&e.activeElement!==h.current)return;if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let i=[];if(e.activeElement!==d.current&&e.activeElement!==h.current||(i=r(m.current)),i.length>0){var n,s;const e=Boolean((null==(n=v.current)?void 0:n.shiftKey)&&"Tab"===(null==(s=v.current)?void 0:s.key)),t=i[0],o=i[i.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",i),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&i()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",i),e.removeEventListener("keydown",t,!0)}}),[n,o,s,a,l,r]);const _=e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0};return(0,Ft.jsxs)(i.Fragment,{children:[(0,Ft.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:f,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0,g.current=e.target;const i=t.props.onFocus;i&&i(e)}}),(0,Ft.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:h,"data-testid":"sentinelEnd"})]})}var Cd=r(2357);const wd=i.forwardRef((function(e,t){const{children:n,container:o,disablePortal:r=!1}=e,[a,l]=i.useState(null),c=(0,lr.A)(i.isValidElement(n)?n.ref:null,t);if((0,ua.A)((()=>{r||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),(0,ua.A)((()=>{if(a&&!r)return(0,Cd.A)(t,a),()=>{(0,Cd.A)(t,null)}}),[t,a,r]),r){if(i.isValidElement(n)){const e={ref:c};return i.cloneElement(n,e)}return(0,Ft.jsx)(i.Fragment,{children:n})}return(0,Ft.jsx)(i.Fragment,{children:a?s.createPortal(n,a):a})})),Sd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xd={entering:{opacity:1},entered:{opacity:1}},Ld=i.forwardRef((function(e,t){const n=_i(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:r=!0,children:a,easing:l,in:c,onEnter:d,onEntered:h,onEntering:u,onExit:g,onExited:p,onExiting:m,style:f,timeout:v=o,TransitionComponent:_=gs}=e,b=(0,Et.A)(e,Sd),y=i.useRef(null),C=(0,zn.A)(y,a.ref,t),w=e=>t=>{if(e){const i=y.current;void 0===t?e(i):e(i,t)}},S=w(u),x=w(((e,t)=>{ms(e);const i=fs({style:f,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",i),e.style.transition=n.transitions.create("opacity",i),d&&d(e,t)})),L=w(h),k=w(m),E=w((e=>{const t=fs({style:f,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),D=w(p);return(0,Ft.jsx)(_,(0,Dt.A)({appear:r,in:c,nodeRef:y,onEnter:x,onEntered:L,onEntering:S,onExit:E,onExited:D,onExiting:k,addEndListener:e=>{s&&s(y.current,e)},timeout:v},b,{children:(e,t)=>i.cloneElement(a,(0,Dt.A)({style:(0,Dt.A)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},xd[e],f,a.props.style),ref:C},t))}))})),kd=Ld;function Ed(e){return(0,Ot.Ay)("MuiBackdrop",e)}(0,Mt.A)("MuiBackdrop",["root","invisible"]);const Dd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Id=(0,qt.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.invisible&&t.invisible]}})((({ownerState:e})=>(0,Dt.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Nd=i.forwardRef((function(e,t){var i,n,o;const s=(0,Tt.A)({props:e,name:"MuiBackdrop"}),{children:r,className:a,component:l="div",components:c={},componentsProps:d={},invisible:h=!1,open:u,slotProps:g={},slots:p={},TransitionComponent:m=kd,transitionDuration:f}=s,v=(0,Et.A)(s,Dd),_=(0,Dt.A)({},s,{component:l,invisible:h}),b=(e=>{const{classes:t,invisible:i}=e,n={root:["root",i&&"invisible"]};return(0,Nt.A)(n,Ed,t)})(_),y=null!=(i=g.root)?i:d.root;return(0,Ft.jsx)(m,(0,Dt.A)({in:u,timeout:f},v,{children:(0,Ft.jsx)(Id,(0,Dt.A)({"aria-hidden":!0},y,{as:null!=(n=null!=(o=p.root)?o:c.Root)?n:l,className:(0,It.A)(b.root,a,null==y?void 0:y.className),ownerState:(0,Dt.A)({},_,null==y?void 0:y.ownerState),classes:b,ref:t,children:r}))}))})),Ad=Nd;function Rd(e){return(0,Ot.Ay)("MuiModal",e)}(0,Mt.A)("MuiModal",["root","hidden","backdrop"]);const Td=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],qd=(0,qt.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.open&&i.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,Dt.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Md=(0,qt.Ay)(Ad,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Od=i.forwardRef((function(e,t){var n,o,s,r,a,l;const c=(0,Tt.A)({name:"MuiModal",props:e}),{BackdropComponent:d=Md,BackdropProps:h,className:u,closeAfterTransition:g=!1,children:p,container:m,component:f,components:v={},componentsProps:_={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:x=!1,hideBackdrop:L=!1,keepMounted:k=!1,onBackdropClick:E,open:D,slotProps:I,slots:N}=c,A=(0,Et.A)(c,Td),R=(0,Dt.A)({},c,{closeAfterTransition:g,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:S,disableScrollLock:x,hideBackdrop:L,keepMounted:k}),{getRootProps:T,getBackdropProps:q,getTransitionProps:M,portalRef:O,isTopModal:P,exited:F,hasTransition:B}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:s=fd,closeAfterTransition:r=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:h,rootRef:u}=e,g=i.useRef({}),p=i.useRef(null),m=i.useRef(null),f=(0,lr.A)(m,u),[v,_]=i.useState(!h),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const C=()=>(g.current.modalRef=m.current,g.current.mount=p.current,g.current),w=()=>{s.mount(C(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},S=(0,cd.A)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,ld.A)(p.current).body;s.add(C(),e),m.current&&w()})),x=i.useCallback((()=>s.isTopModal(C())),[s]),L=(0,cd.A)((e=>{p.current=e,e&&(h&&x()?w():m.current&&ud(m.current,y))})),k=i.useCallback((()=>{s.remove(C(),y)}),[y,s]);i.useEffect((()=>()=>{k()}),[k]),i.useEffect((()=>{h?S():b&&r||k()}),[h,k,b,r,S]);const E=e=>t=>{var i;null==(i=e.onKeyDown)||i.call(e,t),"Escape"===t.key&&229!==t.which&&x()&&(n||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},D=e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(t={})=>{const i=dr(e);delete i.onTransitionEnter,delete i.onTransitionExited;const n=rr({},i,t);return rr({role:"presentation"},n,{onKeyDown:E(n),ref:f})},getBackdropProps:(e={})=>rr({"aria-hidden":!0},e,{onClick:D(e),open:h}),getTransitionProps:()=>({onEnter:(0,dd.A)((()=>{_(!1),a&&a()}),null==c?void 0:c.props.onEnter),onExited:(0,dd.A)((()=>{_(!0),l&&l(),r&&k()}),null==c?void 0:c.props.onExited)}),rootRef:f,portalRef:L,isTopModal:x,exited:v,hasTransition:b}}((0,Dt.A)({},R,{rootRef:t})),W=(0,Dt.A)({},R,{exited:F}),V=(e=>{const{open:t,exited:i,classes:n}=e,o={root:["root",!t&&i&&"hidden"],backdrop:["backdrop"]};return(0,Nt.A)(o,Rd,n)})(W),z={};if(void 0===p.props.tabIndex&&(z.tabIndex="-1"),B){const{onEnter:e,onExited:t}=M();z.onEnter=e,z.onExited=t}const H=null!=(n=null!=(o=null==N?void 0:N.root)?o:v.Root)?n:qd,j=null!=(s=null!=(r=null==N?void 0:N.backdrop)?r:v.Backdrop)?s:d,U=null!=(a=null==I?void 0:I.root)?a:_.root,$=null!=(l=null==I?void 0:I.backdrop)?l:_.backdrop,G=mr({elementType:H,externalSlotProps:U,externalForwardedProps:A,getSlotProps:T,additionalProps:{ref:t,as:f},ownerState:W,className:(0,It.A)(u,null==U?void 0:U.className,null==V?void 0:V.root,!W.open&&W.exited&&(null==V?void 0:V.hidden))}),K=mr({elementType:j,externalSlotProps:$,additionalProps:h,getSlotProps:e=>q((0,Dt.A)({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,It.A)(null==$?void 0:$.className,null==h?void 0:h.className,null==V?void 0:V.backdrop),ownerState:W});return k||D||B&&!F?(0,Ft.jsx)(wd,{ref:O,container:m,disablePortal:w,children:(0,Ft.jsxs)(H,(0,Dt.A)({},G,{children:[!L&&d?(0,Ft.jsx)(j,(0,Dt.A)({},K)):null,(0,Ft.jsx)(yd,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:P,open:D,children:i.cloneElement(p,z)})]}))}):null})),Pd=Od,Fd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Bd(e){return(0,Ot.Ay)("MuiPaper",e)}(0,Mt.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Wd=["className","component","elevation","square","variant"],Vd=(0,qt.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],!i.square&&t.rounded,"elevation"===i.variant&&t[`elevation${i.elevation}`]]}})((({theme:e,ownerState:t})=>{var i;return(0,Dt.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,Dt.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Vn.X4)("#fff",Fd(t.elevation))}, ${(0,Vn.X4)("#fff",Fd(t.elevation))})`},e.vars&&{backgroundImage:null==(i=e.vars.overlays)?void 0:i[t.elevation]}))})),zd=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:s=1,square:r=!1,variant:a="elevation"}=i,l=(0,Et.A)(i,Wd),c=(0,Dt.A)({},i,{component:o,elevation:s,square:r,variant:a}),d=(e=>{const{square:t,elevation:i,variant:n,classes:o}=e,s={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${i}`]};return(0,Nt.A)(s,Bd,o)})(c);return(0,Ft.jsx)(Vd,(0,Dt.A)({as:o,ownerState:c,className:(0,It.A)(d.root,n),ref:t},l))})),Hd=zd;function jd(e){return(0,Ot.Ay)("MuiPopover",e)}(0,Mt.A)("MuiPopover",["root","paper"]);const Ud=["onEntering"],$d=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Gd=["slotProps"];function Kd(e,t){let i=0;return"number"==typeof t?i=t:"center"===t?i=e.height/2:"bottom"===t&&(i=e.height),i}function Xd(e,t){let i=0;return"number"==typeof t?i=t:"center"===t?i=e.width/2:"right"===t&&(i=e.width),i}function Zd(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Yd(e){return"function"==typeof e?e():e}const Qd=(0,qt.Ay)(Pd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jd=(0,qt.Ay)(Hd,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),eh=i.forwardRef((function(e,t){var n,o,s;const r=(0,Tt.A)({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:u,className:g,container:p,elevation:m=8,marginThreshold:f=16,open:v,PaperProps:_={},slots:b,slotProps:y,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=ad,transitionDuration:S="auto",TransitionProps:{onEntering:x}={},disableScrollLock:L=!1}=r,k=(0,Et.A)(r.TransitionProps,Ud),E=(0,Et.A)(r,$d),D=null!=(n=null==y?void 0:y.paper)?n:_,I=i.useRef(),N=(0,zn.A)(I,D.ref),A=(0,Dt.A)({},r,{anchorOrigin:c,anchorReference:h,elevation:m,marginThreshold:f,externalPaperSlotProps:D,transformOrigin:C,TransitionComponent:w,transitionDuration:S,TransitionProps:k}),R=(e=>{const{classes:t}=e;return(0,Nt.A)({root:["root"],paper:["paper"]},jd,t)})(A),T=i.useCallback((()=>{if("anchorPosition"===h)return d;const e=Yd(l),t=(e&&1===e.nodeType?e:(0,qr.A)(I.current).body).getBoundingClientRect();return{top:t.top+Kd(t,c.vertical),left:t.left+Xd(t,c.horizontal)}}),[l,c.horizontal,c.vertical,d,h]),q=i.useCallback((e=>({vertical:Kd(e,C.vertical),horizontal:Xd(e,C.horizontal)})),[C.horizontal,C.vertical]),M=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},i=q(t);if("none"===h)return{top:null,left:null,transformOrigin:Zd(i)};const n=T();let o=n.top-i.vertical,s=n.left-i.horizontal;const r=o+t.height,a=s+t.width,c=(0,Cr.A)(Yd(l)),d=c.innerHeight-f,u=c.innerWidth-f;if(null!==f&&o<f){const e=o-f;o-=e,i.vertical+=e}else if(null!==f&&r>d){const e=r-d;o-=e,i.vertical+=e}if(null!==f&&s<f){const e=s-f;s-=e,i.horizontal+=e}else if(a>u){const e=a-u;s-=e,i.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(s)}px`,transformOrigin:Zd(i)}}),[l,h,T,q,f]),[O,P]=i.useState(v),F=i.useCallback((()=>{const e=I.current;if(!e)return;const t=M(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[M]);i.useEffect((()=>(L&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,L,F]),i.useEffect((()=>{v&&F()})),i.useImperativeHandle(a,(()=>v?{updatePosition:()=>{F()}}:null),[v,F]),i.useEffect((()=>{if(!v)return;const e=(0,fr.A)((()=>{F()})),t=(0,Cr.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,v,F]);let B=S;"auto"!==S||w.muiSupportAuto||(B=void 0);const W=p||(l?(0,qr.A)(Yd(l)).body:void 0),V=null!=(o=null==b?void 0:b.root)?o:Qd,z=null!=(s=null==b?void 0:b.paper)?s:Jd,H=mr({elementType:z,externalSlotProps:(0,Dt.A)({},D,{style:O?D.style:(0,Dt.A)({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:N},ownerState:A,className:(0,It.A)(R.paper,null==D?void 0:D.className)}),j=mr({elementType:V,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:W,open:v},ownerState:A,className:(0,It.A)(R.root,g)}),{slotProps:U}=j,$=(0,Et.A)(j,Gd);return(0,Ft.jsx)(V,(0,Dt.A)({},$,!Ms(V)&&{slotProps:U,disableScrollLock:L},{children:(0,Ft.jsx)(w,(0,Dt.A)({appear:!0,in:v,onEntering:(e,t)=>{x&&x(e,t),F()},onExited:()=>{P(!1)},timeout:B},k,{children:(0,Ft.jsx)(z,(0,Dt.A)({},H,{children:u}))}))}))})),th=eh;var ih=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),nh=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};const oh=function(e){function t(){var e,i,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return i=n=nh(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),n._lastRenderedStartIndex=-1,n._lastRenderedStopIndex=-1,n._memoizedUnloadedRanges=[],n._onItemsRendered=function(e){var t=e.visibleStartIndex,i=e.visibleStopIndex;n._lastRenderedStartIndex=t,n._lastRenderedStopIndex=i,n._ensureRowsLoaded(t,i)},n._setRef=function(e){n._listRef=e},nh(n,i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ih(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 i=this.props,n=i.isItemLoaded,o=i.itemCount,s=i.minimumBatchSize,r=void 0===s?10:s,a=i.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,i=e.itemCount,n=e.minimumBatchSize,o=e.stopIndex,s=[],r=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(s.push(r,a),r=a=null):(a=l,null===r&&(r=l));if(null!==a){for(var c=Math.min(Math.max(a,r+n-1),i-1),d=a+1;d<=c&&!t(d);d++)a=d;s.push(r,a)}if(s.length)for(;s[1]-s[0]+1<n&&s[0]>0;){var h=s[0]-1;if(t(h))break;s[0]=h}return s}({isItemLoaded:n,itemCount:o,minimumBatchSize:r,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,i=this.props.loadMoreItems||this.props.loadMoreRows,n=function(n){var o=e[n],s=e[n+1],r=i(o,s);null!=r&&r.then((function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:s}).startIndex>e.lastRenderedStopIndex||e.stopIndex<e.lastRenderedStartIndex)){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())}var e}))},o=0;o<e.length;o+=2)n(o)}}]),t}(i.PureComponent),sh=["S","XS"],rh=e=>e.reduce(((e,t)=>e.concat(t)));async function ah({selections:e,elemNumbers:t,toggle:i,isSingleSelect:n}){if(0===t.length)return!1;let o=!1;if(!t.some((e=>Number.isNaN(e)))){const s=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",s,i]})}catch{o=!1}o||(n?e.cancel():e.clear())}return o}const lh="RowColumn",ch={row:`${lh}-row`,rowBorderBottom:`${lh}-rowBorderBottom`,column:`${lh}-column`,fieldRoot:`${lh}-fieldRoot`,cell:`${lh}-cell`,labelText:`${lh}-labelText`,labelDense:`${lh}-labelDense`,highlighted:`${lh}-highlighted`,checkboxLabel:`${lh}-checkboxLabel`,icon:`${lh}-icon`,S:`${lh}-S`,XS:`${lh}-XS`,A:`${lh}-A`,X:`${lh}-X`,frequencyCount:`${lh}-frequencyCount`,barContainer:`${lh}-barContainer`,bar:`${lh}-bar`,barSelected:`${lh}-barSelected`,barWithCheckbox:`${lh}-barWithCheckbox`,barSelectedWithCheckbox:`${lh}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${lh}-excludedTextWithCheckbox`},dh=`.${ch.fieldRoot}`,hh=e=>!(e?.metaKey||e?.ctrlKey);const uh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),gh=e=>Es(uh(e)),ph=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,mh=e=>e?"A"===e.qState:null,fh=({cell:e,checkboxes:t})=>(mh(e)||ph(e))&&t,vh=80,_h=32,bh=29,yh=20,Ch=4,wh=e=>e.filter((e=>!!e)).join(" ").trim(),Sh=e=>e||"-",xh=({sizes:e,frequencyMode:t,isGridMode:i,freqHitsValue:n})=>"P"===t?`${e.freqMinWidth}px`:i&&!n?"max-content":"25%",Lh=({sizes:e,frequencyMode:t,isGridMode:i})=>i?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,kh=({theme:e,styles:t,selectedState:i})=>{const n=t.selections,o=n[i],s=n[`${i}Contrast`];return{background:o,color:s,"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`,outline:"none"},"& $cell":{paddingRight:0},[`& .${ch.labelText}`]:{color:s},[`& .${ch.icon}`]:{color:s}}},Eh={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Dh=(0,qt.Ay)("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((({theme:e,checkboxes:t,isGridMode:i,isGridCol:n,dense:o,direction:s,sizes:r,frequencyMode:a,freqHitsValue:l,styles:c})=>{const{backgroundColor:d,...h}=c.content,u=kh({theme:e,styles:c,selectedState:"selected"}),g=kh({theme:e,styles:c,selectedState:"excluded"});return{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${ch.row}`]:{flexWrap:"nowrap",...c.content},[`& .${ch.rowBorderBottom}`]:{borderBottom:n?"none":`1px solid ${e.palette.divider}`,borderLeft:n?`1px solid ${e.palette.divider}`:"none"},[`& .${ch.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${ch.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${ch.labelText}`]:{lineHeight:"16px",userSelect:"none",paddingRight:"1px",...Eh,...h},[`& .${ch.labelDense}`]:{fontSize:12},[`& .${ch.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${ch.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...Eh,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${ch.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${ch.S}`]:{...u,border:i?"none":void 0},[`& .${ch.XS}`]:{...kh({theme:e,styles:c,selectedState:"selectedExcluded"}),border:i?"none":void 0},[`& .${ch.A}`]:{...kh({theme:e,styles:c,selectedState:"alternative"}),border:i?"none":void 0},[`& .${ch.X}`]:{...g,border:i?"none":void 0},[`& .${ch.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...Eh,flex:`0 0 ${xh({sizes:r,frequencyMode:a,isGridMode:i,freqHitsValue:l})}`,minWidth:!i&&"P"!==a&&l?r.freqMinWidth:"max-content",maxWidth:Lh({sizes:r,frequencyMode:a,isGridMode:i}),textAlign:"rtl"===s?"left":"right",paddingLeft:"rtl"!==s?"8px":0},[`&.${ch.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${ch.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{border:"1px solid",borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},[`& .${ch.barSelected}`]:{"& .bar-filled":{opacity:"30%",background:e.palette.background.lighter}},[`& .${ch.barWithCheckbox}`]:{left:"rtl"===s?4:29,width:"calc(100% - 33px)"},[`& .${ch.barSelectedWithCheckbox}`]:{"& .bar-filled":{opacity:"30%",background:u.background||"#BFE5D0",borderColor:u.background||"#BFE5D0"}},[`& .${ch.excludedTextWithCheckbox}`]:{color:"#828282",fontStyle:"italic"}}})),Ih=i.memo(Dh);var Nh=r(4580);const Ah=["component","direction","spacing","divider","children","className","useFlexGap"],Rh=(0,Xt.A)(),Th=ai("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function qh(e){return(0,$t.A)({props:e,name:"MuiStack",defaultTheme:Rh})}function Mh(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce(((e,o,s)=>(e.push(o),s<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${s}`})),e)),[])}const Oh=({ownerState:e,theme:t})=>{let i=(0,jt.A)({display:"flex",flexDirection:"column"},(0,Ro.NI)({theme:t},(0,Ro.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,Nh.LX)(t),o=Object.keys(t.breakpoints.values).reduce(((t,i)=>(("object"==typeof e.spacing&&null!=e.spacing[i]||"object"==typeof e.direction&&null!=e.direction[i])&&(t[i]=!0),t)),{}),s=(0,Ro.kW)({values:e.direction,base:o}),r=(0,Ro.kW)({values:e.spacing,base:o});"object"==typeof s&&Object.keys(s).forEach(((e,t,i)=>{if(!s[e]){const n=t>0?s[i[t-1]]:"column";s[e]=n}}));const a=(t,i)=>{return e.useFlexGap?{gap:(0,Nh._W)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=i?s[i]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,Nh._W)(n,t)}};var o};i=(0,Kt.A)(i,(0,Ro.NI)({theme:t},r,a))}return i=(0,Ro.iZ)(t.breakpoints,i),i},Ph=function(e={}){const{createStyledComponent:t=Th,useThemeProps:n=qh,componentName:o="MuiStack"}=e,s=t(Oh),r=i.forwardRef((function(e,t){const i=n(e),r=(0,Gi.A)(i),{component:a="div",direction:l="column",spacing:c=0,divider:d,children:h,className:u,useFlexGap:g=!1}=r,p=(0,Ht.A)(r,Ah),m={direction:l,spacing:c,useFlexGap:g},f=(0,Nt.A)({root:["root"]},(e=>(0,Ot.Ay)(o,e)),{});return(0,Ft.jsx)(s,(0,jt.A)({as:a,ownerState:m,ref:t,className:(0,It.A)(f.root,u)},p,{children:d?Mh(h,d):h}))}));return r}({createStyledComponent:(0,qt.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Tt.A)({props:e,name:"MuiStack"})}),Fh=Ph;function Bh(e){return(0,Ot.Ay)("MuiFormControlLabel",e)}const Wh=(0,Mt.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Vh=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],zh=(0,qt.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${Wh.label}`]:t.label},t.root,t[`labelPlacement${(0,ui.A)(i.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Wh.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Wh.label}`]:{[`&.${Wh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Hh=(0,qt.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Wh.error}`]:{color:(e.vars||e).palette.error.main}}))),jh=i.forwardRef((function(e,t){var n,o;const s=(0,Tt.A)({props:e,name:"MuiFormControlLabel"}),{className:r,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:h,labelPlacement:u="end",required:g,slotProps:p={}}=s,m=(0,Et.A)(s,Vh),f=oa(),v=null!=(n=null!=c?c:l.props.disabled)?n:null==f?void 0:f.disabled,_=null!=g?g:l.props.required,b={disabled:v,required:_};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==s[e]&&(b[e]=s[e])}));const y=sa({props:s,muiFormControl:f,states:["error"]}),C=(0,Dt.A)({},s,{disabled:v,labelPlacement:u,required:_,error:y.error}),w=(e=>{const{classes:t,disabled:i,labelPlacement:n,error:o,required:s}=e,r={root:["root",i&&"disabled",`labelPlacement${(0,ui.A)(n)}`,o&&"error",s&&"required"],label:["label",i&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,Nt.A)(r,Bh,t)})(C),S=null!=(o=p.typography)?o:a.typography;let x=h;return null==x||x.type===Zo||d||(x=(0,Ft.jsx)(Zo,(0,Dt.A)({component:"span"},S,{className:(0,It.A)(w.label,null==S?void 0:S.className),children:x}))),(0,Ft.jsxs)(zh,(0,Dt.A)({className:(0,It.A)(w.root,r),ownerState:C,ref:t},m,{children:[i.cloneElement(l,b),_?(0,Ft.jsxs)(Fh,{display:"block",children:[x,(0,Ft.jsxs)(Hh,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):x]}))})),Uh=jh;var $h=r(9778);function Gh(e){return(0,Ot.Ay)("PrivateSwitchBase",e)}(0,Mt.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kh=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Xh=(0,qt.Ay)(Lo)((({ownerState:e})=>(0,Dt.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Zh=(0,qt.Ay)("input",{shouldForwardProp:qt.ep})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Yh=i.forwardRef((function(e,t){const{autoFocus:i,checked:n,checkedIcon:o,className:s,defaultChecked:r,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:h,inputProps:u,inputRef:g,name:p,onBlur:m,onChange:f,onFocus:v,readOnly:_,required:b=!1,tabIndex:y,type:C,value:w}=e,S=(0,Et.A)(e,Kh),[x,L]=(0,$h.A)({controlled:n,default:Boolean(r),name:"SwitchBase",state:"checked"}),k=oa();let E=a;k&&void 0===E&&(E=k.disabled);const D="checkbox"===C||"radio"===C,I=(0,Dt.A)({},e,{checked:x,disabled:E,disableFocusRipple:l,edge:c}),N=(e=>{const{classes:t,checked:i,disabled:n,edge:o}=e,s={root:["root",i&&"checked",n&&"disabled",o&&`edge${(0,ui.A)(o)}`],input:["input"]};return(0,Nt.A)(s,Gh,t)})(I);return(0,Ft.jsxs)(Xh,(0,Dt.A)({component:"span",className:(0,It.A)(N.root,s),centerRipple:!0,focusRipple:!l,disabled:E,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),k&&k.onFocus&&k.onFocus(e)},onBlur:e=>{m&&m(e),k&&k.onBlur&&k.onBlur(e)},ownerState:I,ref:t},S,{children:[(0,Ft.jsx)(Zh,(0,Dt.A)({autoFocus:i,checked:n,defaultChecked:r,className:N.input,disabled:E,id:D?h:void 0,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),f&&f(e,t)},readOnly:_,ref:g,required:b,ownerState:I,tabIndex:y,type:C},"checkbox"===C&&void 0===w?{}:{value:w},u)),x?o:d]}))})),Qh=Yh,Jh=(0,gn.A)((0,Ft.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),eu=(0,gn.A)((0,Ft.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),tu=(0,gn.A)((0,Ft.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function iu(e){return(0,Ot.Ay)("MuiCheckbox",e)}const nu=(0,Mt.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ou=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],su=(0,qt.Ay)(Qh,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.indeterminate&&t.indeterminate,t[`size${(0,ui.A)(i.size)}`],"default"!==i.color&&t[`color${(0,ui.A)(i.color)}`]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Vn.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${nu.checked}, &.${nu.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${nu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),ru=(0,Ft.jsx)(eu,{}),au=(0,Ft.jsx)(Jh,{}),lu=(0,Ft.jsx)(tu,{}),cu=i.forwardRef((function(e,t){var n,o;const s=(0,Tt.A)({props:e,name:"MuiCheckbox"}),{checkedIcon:r=ru,color:a="primary",icon:l=au,indeterminate:c=!1,indeterminateIcon:d=lu,inputProps:h,size:u="medium",className:g}=s,p=(0,Et.A)(s,ou),m=c?d:l,f=c?d:r,v=(0,Dt.A)({},s,{color:a,indeterminate:c,size:u}),_=(e=>{const{classes:t,indeterminate:i,color:n,size:o}=e,s={root:["root",i&&"indeterminate",`color${(0,ui.A)(n)}`,`size${(0,ui.A)(o)}`]},r=(0,Nt.A)(s,iu,t);return(0,Dt.A)({},t,r)})(v);return(0,Ft.jsx)(su,(0,Dt.A)({type:"checkbox",inputProps:(0,Dt.A)({"data-indeterminate":c},h),icon:i.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:u}),checkedIcon:i.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:u}),ownerState:v,ref:t,className:(0,It.A)(_.root,g)},p,{classes:_}))})),du=cu,hu="ListBoxCheckbox",uu={cbIcon:`${hu}-cbIcon`,cbIconChecked:`${hu}-cbIconChecked`,cbIconExcluded:`${hu}-cbIconExcluded`,cbIconAlternative:`${hu}-cbIconAlternative`,checkbox:`${hu}-checkbox`,dense:`${hu}-dense`},gu=(0,qt.Ay)(du,{shouldForwardProp:e=>"styles"!==e})((({styles:e})=>({[`& .${uu.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"},[`& .${uu.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},[`& .${uu.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${uu.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${uu.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${uu.dense}`]:{padding:"4px 8px"}}))),pu=(e,t=!0,n=!1)=>i.createElement("span",{className:e.cbIcon},n&&i.createElement("span",{className:t&&n?e.cbIconExcluded:""}));function mu({onChange:e,checked:t,label:n,dense:o,excluded:s,styles:r,showGray:a=!0,dataN:l}){return i.createElement(gu,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[uu.checkbox,o&&uu.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":l},name:n,icon:pu(uu,a,s),checkedIcon:i.createElement("span",{className:uu.cbIconChecked}),styles:r})}const fu=(0,gn.A)((0,Ft.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),vu=(0,gn.A)((0,Ft.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),_u=(0,qt.Ay)("span",{shouldForwardProp:qt.ep})({position:"relative",display:"flex"}),bu=(0,qt.Ay)(fu)({transform:"scale(1)"}),yu=(0,qt.Ay)(vu)((({theme:e,ownerState:t})=>(0,Dt.A)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}))),Cu=function(e){const{checked:t=!1,classes:i={},fontSize:n}=e,o=(0,Dt.A)({},e,{checked:t});return(0,Ft.jsxs)(_u,{className:i.root,ownerState:o,children:[(0,Ft.jsx)(bu,{fontSize:n,className:i.background,ownerState:o}),(0,Ft.jsx)(yu,{fontSize:n,className:i.dot,ownerState:o})]})};var wu=r(4402);const Su=i.createContext(void 0);function xu(e){return(0,Ot.Ay)("MuiRadio",e)}const Lu=(0,Mt.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ku=["checked","checkedIcon","color","icon","name","onChange","size","className"],Eu=(0,qt.Ay)(Qh,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"medium"!==i.size&&t[`size${(0,ui.A)(i.size)}`],t[`color${(0,ui.A)(i.color)}`]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Vn.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Lu.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Lu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Du=(0,Ft.jsx)(Cu,{checked:!0}),Iu=(0,Ft.jsx)(Cu,{}),Nu=i.forwardRef((function(e,t){var n,o;const s=(0,Tt.A)({props:e,name:"MuiRadio"}),{checked:r,checkedIcon:a=Du,color:l="primary",icon:c=Iu,name:d,onChange:h,size:u="medium",className:g}=s,p=(0,Et.A)(s,ku),m=(0,Dt.A)({},s,{color:l,size:u}),f=(e=>{const{classes:t,color:i,size:n}=e,o={root:["root",`color${(0,ui.A)(i)}`,"medium"!==n&&`size${(0,ui.A)(n)}`]};return(0,Dt.A)({},t,(0,Nt.A)(o,xu,t))})(m),v=i.useContext(Su);let _=r;const b=(0,wu.A)(h,v&&v.onChange);let y=d;var C,w;return v&&(void 0===_&&(C=v.value,_="object"==typeof(w=s.value)&&null!==w?C===w:String(C)===String(w)),void 0===y&&(y=v.name)),(0,Ft.jsx)(Eu,(0,Dt.A)({type:"radio",icon:i.cloneElement(c,{fontSize:null!=(n=Iu.props.fontSize)?n:u}),checkedIcon:i.cloneElement(a,{fontSize:null!=(o=Du.props.fontSize)?o:u}),ownerState:m,classes:f,name:y,checked:_,onChange:b,ref:t,className:(0,It.A)(f.root,g)},p))})),Au=Nu,Ru="ListBoxRadioButton-radioButton",Tu=(0,qt.Ay)(Au,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((({checked:e,styles:t,dense:i})=>({[`&.${Ru}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:i?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}})));function qu({onChange:e,checked:t,label:n,dense:o,dataN:s,styles:r}){return i.createElement(Tu,{checked:t,onChange:e,value:n,name:n,className:Ru,inputProps:{"data-n":s},disableRipple:!0,size:o?"small":"medium",dense:o,styles:r})}const Mu=function({label:e,dense:t,showGray:n=!0,checkboxes:o,cell:s,valueTextAlign:r}){return i.createElement(Zo,{component:"span",variant:"body2",className:wh([ch.labelText,t&&ch.labelDense,n&&fh({cell:s,checkboxes:o})&&ch.excludedTextWithCheckbox]),align:r,dir:"auto"},i.createElement("span",null,e))},Ou=function({label:e,color:t,dense:n,showGray:o,checkboxes:s,cell:r,valueTextAlign:a}){return"string"==typeof e?i.createElement(Mu,{label:e,color:t,dense:n,showGray:o,checkboxes:s,cell:r,valueTextAlign:a}):e},Pu=function({onChange:e,label:t,qElemNumber:n,isSelected:o,dense:s,cell:r,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){const g=i.createElement(mu,{onChange:e,label:t,checked:o,dense:s,excluded:ph(r),isGridCol:a,showGray:l,dataN:n,styles:u}),p=i.createElement(qu,{onChange:e,label:t,checked:o,dense:s,dataN:n,styles:u});return i.createElement(Uh,{control:c?p:g,className:ch.checkboxLabel,label:i.createElement(Ou,{label:t,dense:s,showGray:l,checkboxes:d,cell:r,valueTextAlign:h}),key:n})};function Fu({labels:e,dense:t,showGray:n,checkboxes:o}){const s=e.map((([e,t],n)=>i.createElement("span",{id:n,className:t?ch.highlighted:""},e)));return i.createElement(Mu,{label:s,dense:t,showGray:n,checkboxes:o})}const Bu=function({onChange:e,labels:t,checkboxes:n,dense:o,showGray:s,qElemNumber:r,isSelected:a,cell:l,isGridCol:c,isSingleSelect:d,valueTextAlign:h,styles:u}){const g=i.createElement(Fu,{labels:t,dense:o,showGray:s,checkboxes:n});return n?i.createElement(Pu,{onChange:e,label:g,qElemNumber:r,isSelected:a,dense:o,cell:l,isGridCol:c,showGray:s,isSingleSelect:d,checkboxes:n,valueTextAlign:h,styles:u}):g};function Wu({onChange:e,label:t,qElemNumber:n,isSelected:o,dense:s,cell:r,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){return d?i.createElement(Pu,{onChange:e,label:t,qElemNumber:n,isSelected:o,dense:s,cell:r,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}):i.createElement(Mu,{label:t,dense:s,showGray:!0,checkboxes:d,cell:r,valueTextAlign:h})}const Vu=i.memo(Wu),zu=function({qFrequency:e,histogram:t,checkboxes:n,isSelected:o,frequencyMax:s}){if(!e||!t||"-"===Sh(e))return;const r=(({qFrequency:e,frequencyMax:t})=>{const i=String(e),n="%"===i.substring(i.length-1),o=parseFloat(n?i:e);return`${n?o:o/t*100}%`})({qFrequency:e,checkboxes:n,frequencyMax:s});return i.createElement(Ji,{className:wh([ch.bar,n&&ch.barWithCheckbox,o&&(n?ch.barSelectedWithCheckbox:ch.barSelected)])},i.createElement(Ji,{className:"bar-filled",width:r}))},Hu=function({cell:e,checkboxes:t,dense:n,showGray:o}){const s=Sh(e?.qFrequency);return i.createElement(Ho,{item:!0,style:{display:"flex",alignItems:"center"},className:ch.frequencyCount,"aria-label":s,title:s},i.createElement(Zo,{noWrap:!0,color:"inherit",variant:"body2",className:wh([n&&ch.labelDense,ch.labelText,o&&fh({cell:e,checkboxes:t})&&ch.excludedTextWithCheckbox])},s))};function ju({dataLayout:e,layoutOrder:t,itemPadding:i,fillHeight:n}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:n?"100%":`calc(100% - ${i}px)`,width:`calc(100% - ${2*i}px)`,position:"absolute",left:4};default:return{}}}const Uu=(0,qt.Ay)(Ho,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((({dataLayout:e,layoutOrder:t,itemPadding:i,cellPaddingRight:n,direction:o,fillHeight:s})=>{const r="padding"+("rtl"===o?"Left":"Right");return{[`&.${ch.fieldRoot}`]:{...ju({dataLayout:e,layoutOrder:t,itemPadding:i,fillHeight:s}),[r]:n?"8px":void 0}}})),$u={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function Gu({layout:e}){const{translator:t}=(0,i.useContext)(_c),{qStateCounts:n={}}=e?.qListObject?.qDimensionInfo||{},o=n.qSelected+n.qSelectedExcluded+n.qLocked+n.qLockedExcluded;let s;switch(o){case 0:s="ScreenReader.ZeroSelected";break;case 1:s="ScreenReader.OneSelected";break;default:s="ScreenReader.ManySelected"}const r=t.get(s,[o]);return i.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},r)}const Ku=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===Ku.ARROW_UP||e===Ku.ARROW_DOWN||e===Ku.ARROW_LEFT||e===Ku.ARROW_RIGHT}),Xu=Ku,Zu=e=>+e.getAttribute("data-n"),Yu=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},Qu=e=>{const t=e?.querySelector(".value.last-focused, .value.selector, .value");return t?.setAttribute("tabIndex",0),t?.focus(),t},Ju=function({index:e,rowIndex:t,columnIndex:n,style:o,data:s}){const{onChange:r,onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onTouchStart:h,onTouchEnd:u,pages:g,isLocked:p,column:m=!1,checkboxes:f=!1,textAlign:v,direction:_,layoutOptions:b={},freqIsAllowed:y,isSingleSelect:C,actions:w,frequencyMax:S="",histogram:x=!1,keyboard:L,showGray:k=!0,showTick:E=!0,columnCount:D=1,rowCount:I=1,dataOffset:N,deducedFrequencyMode:A,focusListItems:R,listCount:T,sizes:q,translator:M,showSearch:O,isModal:P,contentFontStyle:F,styles:B,fillHeight:W}=s,{dense:V=!1,dataLayout:z="singleColumn",layoutOrder:H}=b,{itemPadding:j}=q;let U,$;const G={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof n){"row"===H?(U=t*D+n,G.max=I,G.currentIndex=t):(U=n*I+t,G.max=D,G.currentIndex=n);const e=0;$={...o,height:W?"100%":o.height,left:e+(0===n?o.left:Number(o.left)+n*e),top:0===t?o.top:Number(o.top)+t*e}}else U=e,G.max=T,G.currentIndex=e,$={...o};U+=N;const[K,X]=(0,i.useState)(null);(0,i.useEffect)((()=>{null!==K&&(0===G.currentIndex&&R.first&&(K.focus(),R.setFirst(!1)),G.currentIndex===G.max-1&&R.last&&(K.focus(),R.setLast(!1)))}),[K,R.first,R.last]);const Z=(0,i.useCallback)(function({select:e,selectAll:t,onCtrlF:i,confirm:n,cancel:o,setScrollPosition:s,focusListItems:r,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:h,columnIndex:u,layoutOrder:g}){const p=(e,t,i=!1)=>{if(e===Xu.ARROW_LEFT||e===Xu.ARROW_RIGHT||"number"!=typeof h||"number"!=typeof u){const e=t?.parentElement[i?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const n=t?.parentElement.parentElement,o=n?.childElementCount;if(o){const i=(({rowIndex:e,columnIndex:t,rowCount:i,columnCount:n,layoutOrder:o,keyCode:s,numCells:r})=>{const a=e=>{let t;return"row"===o?(t=r%n,e<t?i:i-1):(t=r%i,e<n-1?i:t)};let l=e,c=t;if(s===Xu.ARROW_DOWN)if(e>=a(t)-1){if(t===n-1)return-1;l=0,c=t+1}else l=e+1;else if(0===e){if(0===t)return-1;l=a(t-1)-1,c=t-1}else l=e-1;if("row"===o)return l*n+c;const d=r%i;return 0===d||l<d?l*n+c:(l-d)*(n-1)+c+d*n})({rowIndex:h,columnIndex:u,rowCount:c,columnCount:d,layoutOrder:g,keyCode:e,numCells:o}),n=t?.parentElement.parentElement.children[i];return n?.querySelector("[role]")}};let m=!1;const f=e=>{m=e};return c=>{let d;const{currentTarget:h,nativeEvent:u}=c,{keyCode:g,shiftKey:v=!1,ctrlKey:_=!1,metaKey:b=!1}=u;switch(g){case Xu.TAB:{const e=h.closest(".listbox-container"),t=l();if(h.classList.add("last-focused"),v){Yu(e)||(t?a.focusSelection():a.blur(!0));break}t?a.focusSelection():(h.blur(),a.blur());break}case Xu.SHIFT:f(!0);break;case Xu.SPACE:e([Zu(h)],!1,c);break;case Xu.ARROW_DOWN:case Xu.ARROW_RIGHT:d=p(g,h,!0),v&&d&&(m&&(e([Zu(h)],!0),f(!1)),e([Zu(d)],!0));break;case Xu.ARROW_UP:case Xu.ARROW_LEFT:d=p(g,h,!1),v&&d&&(m&&(e([Zu(h)],!0),f(!1)),e([Zu(d)],!0));break;case Xu.ENTER:n();break;case Xu.ESCAPE:if(!l())return;o();break;case Xu.HOME:if(r.setFirst(!0),_){s?.("overflowStart");break}s?.("start");break;case Xu.END:if(r.setLast(!0),_){s?.("overflowEnd");break}s?.("end");break;case Xu.A:if(_||b){t();break}return;case Xu.F:if(_||b){i();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:R,keyboard:L,isModal:P,rowCount:I,columnCount:D,rowIndex:t,columnIndex:n,layoutOrder:H}),[w,L?.innerTabStops,I,D,t,n,H]),Y=(0,i.useMemo)((()=>function({pages:e,cellIndex:t}){let i;const n=e.filter((e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight))[0];if(n){const e=n.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([i]=n.qMatrix[t-e.qTop])}return i}({pages:g,cellIndex:U})),[g,U]),Q="S"===Y?.qState||"XS"===Y?.qState||"L"===Y?.qState||"XL"===Y?.qState,J=(0,i.useMemo)((()=>(({column:e,histogram:t,checkboxes:i,cell:n,showGray:o})=>{const s=[e?ch.column:ch.row];return t||s.push(ch.rowBorderBottom),n?(i||("XS"===n.qState?s.push(o?ch.XS:ch.S):"S"===n.qState||"L"===n.qState?s.push(ch.S):o&&mh(n)?s.push(ch.A):o&&ph(n)&&s.push(ch.X)),s):[]})({column:m,histogram:x,checkboxes:f,cell:Y,showGray:k})),[Y?.qState,x,V,f]),ee=(0,i.useCallback)((e=>{e.preventDefault()}),[f]),te=(0,i.useMemo)((()=>Y&&function({direction:e,cell:t,textAlign:i}){const n=!["NaN",void 0].includes(t?.qNum);let o;return o=!i||i.auto?n?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:i?.align||"left",["left","center","right"].includes(o)?o:"left"}({direction:_,cell:Y,textAlign:v})),[_,Y,v]);if(!Y)return null;const ie="grid"===z&&"column"===H,ne=Y?.qText??"";let oe;Y.qHighlightRanges?.qRanges?.length&&(oe=function(e,t){if(!t.length)return[];const i=t.reduce(((i,n,o)=>{const s=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;i.push(...function(e,t,i=0){const{qCharPos:n,qCharCount:o}=t,s=[];return n>i&&s.push([e.slice(i,n),!1]),s.push([e.slice(n,n+o),!0]),s}(e,n,s));const r=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return r&&a<e.length&&i.push([e.slice(a),!1]),i}),[]);return i}(ne,Y.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[]));const se={alignItems:"center",display:"flex",fontSize:"8px"},re="rtl"===_,ae={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:re?8:f?0:void 0,paddingRight:f?0:re?8:0,justifyContent:te,textAlign:te},le=0===e,ce=Q&&p,de=!f&&Q&&!p,he=!f&&E,ue=f||!E,ge=function({translator:e,label:t,qState:i,isSelected:n,currentIndex:o,maxIndex:s,showSearch:r}){const a=$u[i],l=e.get(a),c=[];if(n){const t=r?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",i=e.get(t);c.push(i)}const d=`${t} ${l}`,h=e.get("CurrentSelections.Of",[o+1,s+1]);return c.unshift(d,h),c.join(". ").trim()}({translator:M,label:ne,qState:Y.qState,currentIndex:G.currentIndex,maxIndex:G.max,showSearch:O}),pe=!re&&"right"===te||re&&"left"===te;return i.createElement(Ih,{className:ch.barContainer,checkboxes:f,style:$,styles:B,isGridCol:ie,isGridMode:"grid"===z,dense:V,direction:_,sizes:q,frequencyMode:A,freqHitsValue:pe,contentFontStyle:F,"data-testid":"listbox.item"},i.createElement(Uu,{role:"row","aria-label":ge,"aria-selected":Q,"aria-setsize":G.max,"aria-rowindex":G.currentIndex,ref:X,container:!0,dataLayout:z,cellPaddingRight:ue,layoutOrder:H,itemPadding:j,gap:0,className:wh(["value",...J]),classes:{root:ch.fieldRoot},onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:Z,onTouchStart:h,onTouchEnd:u,onContextMenu:ee,tabIndex:le&&L.innerTabStops?0:-1,"data-n":Y?.qElemNumber,direction:_,fillHeight:W},Y?.qFrequency&&i.createElement(zu,{qFrequency:Y?.qFrequency,histogram:x,checkboxes:f,isSelected:Q,frequencyMax:S}),i.createElement(Ho,{item:!0,style:ae,className:wh([ch.cell,ch.selectedCell]),title:`${ne}`},oe?i.createElement(Bu,{onChange:r,labels:oe,checkboxes:f,dense:V,showGray:k,qElemNumber:Y.qElemNumber,isSelected:Q,cell:Y,isGridCol:ie,isSingleSelect:C,valueTextAlign:te,styles:B}):i.createElement(Vu,{onChange:r,label:ne,qElemNumber:Y.qElemNumber,isSelected:Q,dense:V,cell:Y,isGridCol:ie,showGray:k,isSingleSelect:C,checkboxes:f,valueTextAlign:te,styles:B})),y&&i.createElement(Hu,{cell:Y,checkboxes:f,dense:V,showGray:k}),he&&i.createElement(Ho,{item:!0,className:ch.icon},ce&&i.createElement(Jc,{style:se,size:"small"}),de&&i.createElement(gh,{style:se,size:"small"}))))};var eg=r(837),tg=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ig(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!((n=e[i])===(o=t[i])||tg(n)&&tg(o)))return!1;var n,o;return!0}const ng=function(e,t){var i;void 0===t&&(t=ig);var n,o=[],s=!1;return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return s&&i===this&&t(r,o)||(n=e.apply(this,r),s=!0,i=this,o=r),n}};var og="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function sg(e){cancelAnimationFrame(e.id)}function rg(e,t){var i=og(),n={id:requestAnimationFrame((function o(){og()-i>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var ag=-1;function lg(e){if(void 0===e&&(e=!1),-1===ag||e){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",document.body.appendChild(t),ag=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ag}var cg=null;function dg(e){if(void 0===e&&(e=!1),null===cg||e){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",i.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?cg="positive-descending":(t.scrollLeft=1,cg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),cg}return cg}var hg=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ug(e){var t,n=e.getColumnOffset,o=e.getColumnStartIndexForOffset,s=e.getColumnStopIndexForStartIndex,r=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,h=e.getRowHeight,u=e.getRowOffset,g=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var i;return(i=e.call(this,t)||this)._instanceProps=m(i.props,Gn(i)),i._resetIsScrollingTimeoutId=null,i._outerRef=void 0,i.state={instance:Gn(i),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof i.props.initialScrollLeft?i.props.initialScrollLeft:0,scrollTop:"number"==typeof i.props.initialScrollTop?i.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},i._callOnItemsRendered=void 0,i._callOnItemsRendered=ng((function(e,t,n,o,s,r,a,l){return i.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:s,visibleColumnStopIndex:r,visibleRowStartIndex:a,visibleRowStopIndex:l})})),i._callOnScroll=void 0,i._callOnScroll=ng((function(e,t,n,o,s){return i.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:s})})),i._getItemStyle=void 0,i._getItemStyle=function(e,t){var o,s=i.props,a=s.columnWidth,l=s.direction,c=s.rowHeight,d=i._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=n(i.props,t,i._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:u(i.props,e,i._instanceProps),height:h(i.props,e,i._instanceProps),width:r(i.props,t,i._instanceProps)}}return o},i._getItemStyleCache=void 0,i._getItemStyleCache=ng((function(e,t,i){return{}})),i._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,s=t.scrollLeft,r=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;i.setState((function(e){if(e.scrollLeft===s&&e.scrollTop===r)return null;var t=i.props.direction,c=s;if("rtl"===t)switch(dg()){case"negative":c=-s;break;case"positive-descending":c=l-o-s}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(r,a-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<s?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<r?"forward":"backward",scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._outerRefSetter=function(e){var t=i.props.outerRef;i._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},i._resetIsScrollingDebounced=function(){null!==i._resetIsScrollingTimeoutId&&sg(i._resetIsScrollingTimeoutId),i._resetIsScrollingTimeoutId=rg(i._resetIsScrolling,150)},i._resetIsScrolling=function(){i._resetIsScrollingTimeoutId=null,i.setState({isScrolling:!1},(function(){i._getItemStyleCache(-1)}))},i}Xn(t,e),t.getDerivedStateFromProps=function(e,t){return gg(e,t),v(e),null};var _=t.prototype;return _.scrollTo=function(e){var t=e.scrollLeft,i=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==i&&(i=Math.max(0,i)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===i&&(i=e.scrollTop),e.scrollLeft===t&&e.scrollTop===i?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:i,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<i?"forward":"backward"}}),this._resetIsScrollingDebounced)},_.scrollToItem=function(e){var t=e.align,i=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,s=this.props,r=s.columnCount,h=s.height,u=s.rowCount,g=s.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,v=lg();void 0!==n&&(n=Math.max(0,Math.min(n,r-1))),void 0!==o&&(o=Math.max(0,Math.min(o,u-1)));var _=a(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>g?v:0,y=_>h?v:0;this.scrollTo({scrollLeft:void 0!==n?c(this.props,n,i,m,this._instanceProps,y):m,scrollTop:void 0!==o?d(this.props,o,i,f,this._instanceProps,b):f})},_.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,i=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof i&&(n.scrollTop=i)}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props.direction,t=this.state,i=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(dg()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var s=o.clientWidth,r=o.scrollWidth;o.scrollLeft=r-s-i}else o.scrollLeft=Math.max(0,i);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&sg(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,n=e.className,o=e.columnCount,s=e.direction,r=e.height,c=e.innerRef,d=e.innerElementType,h=e.innerTagName,u=e.itemData,g=e.itemKey,p=void 0===g?hg:g,m=e.outerElementType,f=e.outerTagName,v=e.rowCount,_=e.style,b=e.useIsScrolling,y=e.width,C=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],x=w[1],L=this._getVerticalRangeToRender(),k=L[0],E=L[1],D=[];if(o>0&&v)for(var I=k;I<=E;I++)for(var N=S;N<=x;N++)D.push((0,i.createElement)(t,{columnIndex:N,data:u,isScrolling:b?C:void 0,key:p({columnIndex:N,data:u,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,N)}));var A=a(this.props,this._instanceProps),R=l(this.props,this._instanceProps);return(0,i.createElement)(m||f||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:$n({position:"relative",height:r,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:s},_)},(0,i.createElement)(d||h||"div",{children:D,ref:c,style:{height:A,pointerEvents:C?"none":void 0,width:R}}))},_._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,i=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof i&&t>0&&o>0){var s=this._getHorizontalRangeToRender(),r=s[0],a=s[1],l=s[2],c=s[3],d=this._getVerticalRangeToRender(),h=d[0],u=d[1],g=d[2],p=d[3];this._callOnItemsRendered(r,a,h,u,l,c,g,p)}if("function"==typeof n){var m=this.state,f=m.horizontalScrollDirection,v=m.scrollLeft,_=m.scrollTop,b=m.scrollUpdateWasRequested,y=m.verticalScrollDirection;this._callOnScroll(v,_,f,y,b)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,i=e.overscanColumnCount,n=e.overscanColumnsCount,r=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,h=l.scrollLeft,u=i||n||r||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,h,this._instanceProps),p=s(this.props,g,h,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,u),f=d&&"forward"!==c?1:Math.max(1,u);return[Math.max(0,g-m),Math.max(0,Math.min(t-1,p+f)),g,p]},_._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,i=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,s=e.rowCount,r=this.state,a=r.isScrolling,l=r.verticalScrollDirection,c=r.scrollTop,d=n||o||i||1;if(0===t||0===s)return[0,0,0,0];var h=g(this.props,c,this._instanceProps),u=p(this.props,h,c,this._instanceProps),m=a&&"backward"!==l?1:Math.max(1,d),f=a&&"forward"!==l?1:Math.max(1,d);return[Math.max(0,h-m),Math.max(0,Math.min(s-1,u+f)),h,u]},t}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var gg=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},pg=function(e,t){return e};function mg(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,s=e.getItemSize,r=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,h=e.validateProps;return t=function(e){function t(t){var i;return(i=e.call(this,t)||this)._instanceProps=c(i.props,Gn(i)),i._outerRef=void 0,i._resetIsScrollingTimeoutId=null,i.state={instance:Gn(i),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof i.props.initialScrollOffset?i.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},i._callOnItemsRendered=void 0,i._callOnItemsRendered=ng((function(e,t,n,o){return i.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),i._callOnScroll=void 0,i._callOnScroll=ng((function(e,t,n){return i.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),i._getItemStyle=void 0,i._getItemStyle=function(e){var t,o=i.props,r=o.direction,a=o.itemSize,l=o.layout,c=i._getItemStyleCache(d&&a,d&&l,d&&r);if(c.hasOwnProperty(e))t=c[e];else{var h=n(i.props,e,i._instanceProps),u=s(i.props,e,i._instanceProps),g="horizontal"===r||"horizontal"===l,p="rtl"===r,m=g?h:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:h,height:g?"100%":u,width:g?u:"100%"}}return t},i._getItemStyleCache=void 0,i._getItemStyleCache=ng((function(e,t,i){return{}})),i._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,s=t.scrollWidth;i.setState((function(e){if(e.scrollOffset===o)return null;var t=i.props.direction,r=o;if("rtl"===t)switch(dg()){case"negative":r=-o;break;case"positive-descending":r=s-n-o}return r=Math.max(0,Math.min(r,s-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<r?"forward":"backward",scrollOffset:r,scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,s=t.scrollTop;i.setState((function(e){if(e.scrollOffset===s)return null;var t=Math.max(0,Math.min(s,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._outerRefSetter=function(e){var t=i.props.outerRef;i._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},i._resetIsScrollingDebounced=function(){null!==i._resetIsScrollingTimeoutId&&sg(i._resetIsScrollingTimeoutId),i._resetIsScrollingTimeoutId=rg(i._resetIsScrolling,150)},i._resetIsScrolling=function(){i._resetIsScrollingTimeoutId=null,i.setState({isScrolling:!1},(function(){i._getItemStyleCache(-1,null)}))},i}Xn(t,e),t.getDerivedStateFromProps=function(e,t){return fg(e,t),h(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 i=this.props,n=i.itemCount,o=i.layout,s=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?lg():0:l.scrollHeight>l.clientHeight?lg():0}this.scrollTo(r(this.props,e,t,s,this._instanceProps,a))},u.componentDidMount=function(){var e=this.props,t=e.direction,i=e.initialScrollOffset,n=e.layout;if("number"==typeof i&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=i:o.scrollTop=i}this._callPropsCallbacks()},u.componentDidUpdate=function(){var e=this.props,t=e.direction,i=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var s=this._outerRef;if("horizontal"===t||"horizontal"===i)if("rtl"===t)switch(dg()){case"negative":s.scrollLeft=-o;break;case"positive-ascending":s.scrollLeft=o;break;default:var r=s.clientWidth,a=s.scrollWidth;s.scrollLeft=a-r-o}else s.scrollLeft=o;else s.scrollTop=o}this._callPropsCallbacks()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&sg(this._resetIsScrollingTimeoutId)},u.render=function(){var e=this.props,t=e.children,n=e.className,s=e.direction,r=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,h=e.itemData,u=e.itemKey,g=void 0===u?pg:u,p=e.layout,m=e.outerElementType,f=e.outerTagName,v=e.style,_=e.useIsScrolling,b=e.width,y=this.state.isScrolling,C="horizontal"===s||"horizontal"===p,w=C?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),x=S[0],L=S[1],k=[];if(d>0)for(var E=x;E<=L;E++)k.push((0,i.createElement)(t,{data:h,key:g(E,h),index:E,isScrolling:_?y:void 0,style:this._getItemStyle(E)}));var D=o(this.props,this._instanceProps);return(0,i.createElement)(m||f||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:$n({position:"relative",height:r,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:s},v)},(0,i.createElement)(l||c||"div",{children:k,ref:a,style:{height:C?"100%":D,pointerEvents:y?"none":void 0,width:C?D:"100%"}}))},u._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],i=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,i,n,o)}if("function"==typeof this.props.onScroll){var s=this.state,r=s.scrollDirection,a=s.scrollOffset,l=s.scrollUpdateWasRequested;this._callOnScroll(r,a,l)}},u._getRangeToRender=function(){var e=this.props,t=e.itemCount,i=e.overscanCount,n=this.state,o=n.isScrolling,s=n.scrollDirection,r=n.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,r,this._instanceProps),d=l(this.props,c,r,this._instanceProps),h=o&&"backward"!==s?1:Math.max(1,i),u=o&&"forward"!==s?1:Math.max(1,i);return[Math.max(0,c-h),Math.max(0,Math.min(t-1,d+u)),c,d]},t}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var fg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},vg=ug({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,i,n,o,s){var r=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,r*a-l),d=Math.min(c,t*a),h=Math.max(0,t*a-l+s+a);switch("smart"===i&&(i=n>=h-l&&n<=d+l?"auto":"center"),i){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(l/2)?0:u>c+Math.floor(l/2)?c:u;default:return n>=h&&n<=d?n:h>d||n<h?h:d}},getOffsetForRowAndAlignment:function(e,t,i,n,o,s){var r=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*r-a),d=Math.min(c,t*r),h=Math.max(0,t*r-a+s+r);switch("smart"===i&&(i=n>=h-a&&n<=d+a?"auto":"center"),i){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(a/2)?0:u>c+Math.floor(a/2)?c:u;default:return n>=h&&n<=d?n:h>d||n<h?h:d}},getColumnStartIndexForOffset:function(e,t){var i=e.columnWidth,n=e.columnCount;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getColumnStopIndexForStartIndex:function(e,t,i){var n=e.columnWidth,o=e.columnCount,s=e.width,r=t*n,a=Math.ceil((s+i-r)/n);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var i=e.rowHeight,n=e.rowCount;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getRowStopIndexForStartIndex:function(e,t,i){var n=e.rowHeight,o=e.rowCount,s=e.height,r=t*n,a=Math.ceil((s+i-r)/n);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),_g=mg({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,i,n,o,s){var r=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,h=e.width,u="horizontal"===r||"horizontal"===d?h:a,g=Math.max(0,l*c-u),p=Math.min(g,t*c),m=Math.max(0,t*c-u+c+s);switch("smart"===i&&(i=n>=m-u&&n<=p+u?"auto":"center"),i){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(u/2)?0:f>g+Math.floor(u/2)?g:f;default:return n>=m&&n<=p?n:n<m?m:p}},getStartIndexForOffset:function(e,t){var i=e.itemCount,n=e.itemSize;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getStopIndexForStartIndex:function(e,t,i){var n=e.direction,o=e.height,s=e.itemCount,r=e.itemSize,a=e.layout,l=e.width,c=t*r,d="horizontal"===n||"horizontal"===a?l:o,h=Math.ceil((d+i-c)/r);return Math.max(0,Math.min(s-1,t+h-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const bg="#BBB",yg="#f1f1f1",Cg={styledScrollbars:"ListBox-styledScrollbars"},wg=(e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Sg=(e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,xg=(e,t,i,n)=>e===t*i+n+i;function Lg({renderProps:e,layoutOptions:t,maxCount:i,columnCount:n,rowCount:o,overflowDisclaimer:s,qCardinal:r,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=wg(e,l),d=l?i.column:i.row,h=(l?n:o)>=d,u=xg(r,c,l?o:n,a),g=!!a&&Sg(e,l),p=h&&!u&&c>=d-1||g||s.state.show;s.set(p)}function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},kg.apply(this,arguments)}const{StyledFixedSizeList:Eg,StyledFixedSizeGrid:Dg}=function(){const e=e=>({scrollbarColor:`${bg} ${yg}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:yg},"&::-webkit-scrollbar-thumb":{backgroundColor:bg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:(0,eg.A)(_g,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${Cg.styledScrollbars}`]:e(t)}))),StyledFixedSizeGrid:(0,eg.A)(vg,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${Cg.styledScrollbars}`]:e(t)})))}}(),Ig=e=>{const t=(0,i.useMemo)((()=>"text"in e?e:{}),[e]);return(0,i.useMemo)((()=>((e,t)=>{const i=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(i.font=t,Array.isArray(e))return Math.max(...e.map((e=>i.measureText(e).width)));const n=i.measureText(e);return Math.ceil(n.width||0)})(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Ng(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Ag({isGridMode:e,dense:t}){let i=t?yh:e?_h:bh;return e&&(i+=Ch),i}const Rg=function({layout:e,width:t,height:i,listCount:n,count:o,freqIsAllowed:s,checkboxes:r,styles:a}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:d={},maxVisibleColumns:h,dense:u,dataLayout:g}=l,{fontSize:p="12px",fontFamily:m="Source sans pro"}=a?.content||{},f=`${p} ${m}`,v=Ig({text:Ng(e),font:f}),_=Ig({text:Ng(5),font:f}),b=Ig({text:Ng(8),font:f}),y=s?_:0,C=r?20:0;let w=56+y+C;!r&&w>=vh&&(w+=20);let S,x,L,k,E=v+18+y+C;!r&&E>=vh&&(E+=20),E=Math.min(150,Math.max(E,w));const D=Ag({isGridMode:"grid"===g,dense:u}),I=i??8*D;if(c){let e=t;"row"===c?(S={overflowX:"hidden"},e+=2*Ch,({rowCount:k,columnWidth:L,columnCount:x}=function({maxVisibleColumns:e,listCount:t,containerWidth:i,columnAutoWidth:n,itemMinWidth:o}){const s=e?.maxColumns||3,r=i-10;let a;const l=Math.min(t,Math.max(1,Math.round(r/Math.max(o,n))));a=!1!==e?.auto?l:Math.min(t,s,l),a=Math.max(a,1);const c=r/a;return{rowCount:Math.ceil(t/a),columnWidth:c,columnCount:a}}({maxVisibleColumns:h,listCount:n,containerWidth:e,columnAutoWidth:E,itemMinWidth:w}))):(S={overflowY:"hidden"},({rowCount:k,columnWidth:L,columnCount:x}=function({maxVisibleRows:e,itemHeight:t,listCount:i,listHeight:n,columnAutoWidth:o,containerWidth:s,itemMinWidth:r}){let a;const l=e?.maxRows||3,c=Math.floor(n/t);a=!1!==e.auto?c:Math.min(i,l,c),a=Math.max(a,1);const d=Math.ceil(i/a);return{columnWidth:Math.max(o,s/d,r),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:D,listCount:n,listHeight:I,columnAutoWidth:E,containerWidth:e,itemMinWidth:w})))}x=("singleColumn"===g?1:x)||1,k=("singleColumn"===g?o:k)||n;const N=l.dense?838e3:577e3;k=Math.min(k,N);const A=Math.floor(3355e4/L);x=Math.min(x,A)||1;const R=k*x;return{columnCount:x,columnWidth:L,rowCount:k,overflowStyling:S,itemHeight:D,listHeight:I,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(n,R),maxCount:{row:N,column:A},itemPadding:Ch,textWidth:v,freqMinWidth:_,freqMaxWidth:b}},Tg=({pages:e=[],minimumBatchSize:t,count:i})=>{const n=e.some((e=>e.qArea.qHeight<t)),o=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return n?o:i},[qg,Mg]=bc({});function Og(e){const t=`${e.id}`,[i]=qg();return{setStoreValue:(e,n)=>i.set(`${t}/${e}`,n),getStoreValue:e=>i.get(`${t}/${e}`)}}function Pg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fg(e){return e instanceof Pg(e).Element||e instanceof Element}function Bg(e){return e instanceof Pg(e).HTMLElement||e instanceof HTMLElement}function Wg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Pg(e).ShadowRoot||e instanceof ShadowRoot)}var Vg=Math.max,zg=Math.min,Hg=Math.round;function jg(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ug(){return!/^((?!chrome|android).)*safari/i.test(jg())}function $g(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),o=1,s=1;t&&Bg(e)&&(o=e.offsetWidth>0&&Hg(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Hg(n.height)/e.offsetHeight||1);var r=(Fg(e)?Pg(e):window).visualViewport,a=!Ug()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/o,c=(n.top+(a&&r?r.offsetTop:0))/s,d=n.width/o,h=n.height/s;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function Gg(e){var t=Pg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kg(e){return e?(e.nodeName||"").toLowerCase():null}function Xg(e){return((Fg(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zg(e){return $g(Xg(e)).left+Gg(e).scrollLeft}function Yg(e){return Pg(e).getComputedStyle(e)}function Qg(e){var t=Yg(e),i=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function Jg(e,t,i){void 0===i&&(i=!1);var n,o,s=Bg(t),r=Bg(t)&&function(e){var t=e.getBoundingClientRect(),i=Hg(t.width)/e.offsetWidth||1,n=Hg(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=Xg(t),l=$g(e,r,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!i)&&(("body"!==Kg(t)||Qg(a))&&(c=(n=t)!==Pg(n)&&Bg(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Gg(n)),Bg(t)?((d=$g(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Zg(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ep(e){var t=$g(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function tp(e){return"html"===Kg(e)?e:e.assignedSlot||e.parentNode||(Wg(e)?e.host:null)||Xg(e)}function ip(e){return["html","body","#document"].indexOf(Kg(e))>=0?e.ownerDocument.body:Bg(e)&&Qg(e)?e:ip(tp(e))}function np(e,t){var i;void 0===t&&(t=[]);var n=ip(e),o=n===(null==(i=e.ownerDocument)?void 0:i.body),s=Pg(n),r=o?[s].concat(s.visualViewport||[],Qg(n)?n:[]):n,a=t.concat(r);return o?a:a.concat(np(tp(r)))}function op(e){return["table","td","th"].indexOf(Kg(e))>=0}function sp(e){return Bg(e)&&"fixed"!==Yg(e).position?e.offsetParent:null}function rp(e){for(var t=Pg(e),i=sp(e);i&&op(i)&&"static"===Yg(i).position;)i=sp(i);return i&&("html"===Kg(i)||"body"===Kg(i)&&"static"===Yg(i).position)?t:i||function(e){var t=/firefox/i.test(jg());if(/Trident/i.test(jg())&&Bg(e)&&"fixed"===Yg(e).position)return null;var i=tp(e);for(Wg(i)&&(i=i.host);Bg(i)&&["html","body"].indexOf(Kg(i))<0;){var n=Yg(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var ap="top",lp="bottom",cp="right",dp="left",hp="auto",up=[ap,lp,cp,dp],gp="start",pp="end",mp="viewport",fp="popper",vp=up.reduce((function(e,t){return e.concat([t+"-"+gp,t+"-"+pp])}),[]),_p=[].concat(up,[hp]).reduce((function(e,t){return e.concat([t,t+"-"+gp,t+"-"+pp])}),[]),bp=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function yp(e){var t=new Map,i=new Set,n=[];function o(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||o(e)})),n}var Cp={placement:"bottom",modifiers:[],strategy:"absolute"};function wp(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Sp(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,o=t.defaultOptions,s=void 0===o?Cp:o;return function(e,t,i){void 0===i&&(i=s);var o,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cp,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;h(),a.options=Object.assign({},s,a.options,o),a.scrollParents={reference:Fg(e)?np(e):e.contextElement?np(e.contextElement):[],popper:np(t)};var r,c,u=function(e){var t=yp(e);return bp.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=u.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,o=e.effect;if("function"==typeof o){var s=o({state:a,name:t,instance:d,options:n});l.push(s||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(wp(t,i)){a.rects={reference:Jg(t,rp(i),"fixed"===a.options.strategy),popper:ep(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],s=o.fn,r=o.options,l=void 0===r?{}:r,h=o.name;"function"==typeof s&&(a=s({state:a,options:l,name:h,instance:d})||a)}else a.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(o())}))}))),r}),destroy:function(){h(),c=!0}};if(!wp(e,t))return d;function h(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),d}}var xp={passive:!0};function Lp(e){return e.split("-")[0]}function kp(e){return e.split("-")[1]}function Ep(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dp(e){var t,i=e.reference,n=e.element,o=e.placement,s=o?Lp(o):null,r=o?kp(o):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case ap:t={x:a,y:i.y-n.height};break;case lp:t={x:a,y:i.y+i.height};break;case cp:t={x:i.x+i.width,y:l};break;case dp:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=s?Ep(s):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case gp:t[c]=t[c]-(i[d]/2-n[d]/2);break;case pp:t[c]=t[c]+(i[d]/2-n[d]/2)}}return t}var Ip={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Np(e){var t,i=e.popper,n=e.popperRect,o=e.placement,s=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=r.x,g=void 0===u?0:u,p=r.y,m=void 0===p?0:p,f="function"==typeof d?d({x:g,y:m}):{x:g,y:m};g=f.x,m=f.y;var v=r.hasOwnProperty("x"),_=r.hasOwnProperty("y"),b=dp,y=ap,C=window;if(c){var w=rp(i),S="clientHeight",x="clientWidth";w===Pg(i)&&"static"!==Yg(w=Xg(i)).position&&"absolute"===a&&(S="scrollHeight",x="scrollWidth"),(o===ap||(o===dp||o===cp)&&s===pp)&&(y=lp,m-=(h&&w===C&&C.visualViewport?C.visualViewport.height:w[S])-n.height,m*=l?1:-1),o!==dp&&(o!==ap&&o!==lp||s!==pp)||(b=cp,g-=(h&&w===C&&C.visualViewport?C.visualViewport.width:w[x])-n.width,g*=l?1:-1)}var L,k=Object.assign({position:a},c&&Ip),E=!0===d?function(e,t){var i=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Hg(i*o)/o||0,y:Hg(n*o)/o||0}}({x:g,y:m},Pg(i)):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},k,((L={})[y]=_?"0":"",L[b]=v?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L)):Object.assign({},k,((t={})[y]=_?m+"px":"",t[b]=v?g+"px":"",t.transform="",t))}const Ap={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Bg(o)&&Kg(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});Bg(n)&&Kg(n)&&(Object.assign(n.style,s),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Rp={left:"right",right:"left",bottom:"top",top:"bottom"};function Tp(e){return e.replace(/left|right|bottom|top/g,(function(e){return Rp[e]}))}var qp={start:"end",end:"start"};function Mp(e){return e.replace(/start|end/g,(function(e){return qp[e]}))}function Op(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Wg(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Pp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fp(e,t,i){return t===mp?Pp(function(e,t){var i=Pg(e),n=Xg(e),o=i.visualViewport,s=n.clientWidth,r=n.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;var c=Ug();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a+Zg(e),y:l}}(e,i)):Fg(t)?function(e,t){var i=$g(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Pp(function(e){var t,i=Xg(e),n=Gg(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=Vg(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=Vg(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Zg(e),l=-n.scrollTop;return"rtl"===Yg(o||i).direction&&(a+=Vg(i.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}(Xg(e)))}function Bp(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Wp(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function Vp(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=void 0===n?e.placement:n,s=i.strategy,r=void 0===s?e.strategy:s,a=i.boundary,l=void 0===a?"clippingParents":a,c=i.rootBoundary,d=void 0===c?mp:c,h=i.elementContext,u=void 0===h?fp:h,g=i.altBoundary,p=void 0!==g&&g,m=i.padding,f=void 0===m?0:m,v=Bp("number"!=typeof f?f:Wp(f,up)),_=u===fp?"reference":fp,b=e.rects.popper,y=e.elements[p?_:u],C=function(e,t,i,n){var o="clippingParents"===t?function(e){var t=np(tp(e)),i=["absolute","fixed"].indexOf(Yg(e).position)>=0&&Bg(e)?rp(e):e;return Fg(i)?t.filter((function(e){return Fg(e)&&Op(e,i)&&"body"!==Kg(e)})):[]}(e):[].concat(t),s=[].concat(o,[i]),r=s[0],a=s.reduce((function(t,i){var o=Fp(e,i,n);return t.top=Vg(o.top,t.top),t.right=zg(o.right,t.right),t.bottom=zg(o.bottom,t.bottom),t.left=Vg(o.left,t.left),t}),Fp(e,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Fg(y)?y:y.contextElement||Xg(e.elements.popper),l,d,r),w=$g(e.elements.reference),S=Dp({reference:w,element:b,strategy:"absolute",placement:o}),x=Pp(Object.assign({},b,S)),L=u===fp?x:w,k={top:C.top-L.top+v.top,bottom:L.bottom-C.bottom+v.bottom,left:C.left-L.left+v.left,right:L.right-C.right+v.right},E=e.modifiersData.offset;if(u===fp&&E){var D=E[o];Object.keys(k).forEach((function(e){var t=[cp,lp].indexOf(e)>=0?1:-1,i=[ap,lp].indexOf(e)>=0?"y":"x";k[e]+=D[i]*t}))}return k}function zp(e,t,i){return Vg(e,zg(t,i))}function Hp(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function jp(e){return[ap,cp,lp,dp].some((function(t){return e[t]>=0}))}var Up=Sp({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,o=n.scroll,s=void 0===o||o,r=n.resize,a=void 0===r||r,l=Pg(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",i.update,xp)})),a&&l.addEventListener("resize",i.update,xp),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",i.update,xp)})),a&&l.removeEventListener("resize",i.update,xp)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Dp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,o=void 0===n||n,s=i.adaptive,r=void 0===s||s,a=i.roundOffsets,l=void 0===a||a,c={placement:Lp(t.placement),variation:kp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Np(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Np(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ap,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.offset,s=void 0===o?[0,0]:o,r=_p.reduce((function(e,i){return e[i]=function(e,t,i){var n=Lp(e),o=[dp,ap].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[dp,cp].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,t.rects,s),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=r}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=i.mainAxis,s=void 0===o||o,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,d=i.boundary,h=i.rootBoundary,u=i.altBoundary,g=i.flipVariations,p=void 0===g||g,m=i.allowedAutoPlacements,f=t.options.placement,v=Lp(f),_=l||(v!==f&&p?function(e){if(Lp(e)===hp)return[];var t=Tp(e);return[Mp(e),t,Mp(t)]}(f):[Tp(f)]),b=[f].concat(_).reduce((function(e,i){return e.concat(Lp(i)===hp?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=i.boundary,s=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?_p:l,d=kp(n),h=d?a?vp:vp.filter((function(e){return kp(e)===d})):up,u=h.filter((function(e){return c.indexOf(e)>=0}));0===u.length&&(u=h);var g=u.reduce((function(t,i){return t[i]=Vp(e,{placement:i,boundary:o,rootBoundary:s,padding:r})[Lp(i)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:i,boundary:d,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=t.rects.reference,C=t.rects.popper,w=new Map,S=!0,x=b[0],L=0;L<b.length;L++){var k=b[L],E=Lp(k),D=kp(k)===gp,I=[ap,lp].indexOf(E)>=0,N=I?"width":"height",A=Vp(t,{placement:k,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),R=I?D?cp:dp:D?lp:ap;y[N]>C[N]&&(R=Tp(R));var T=Tp(R),q=[];if(s&&q.push(A[E]<=0),a&&q.push(A[R]<=0,A[T]<=0),q.every((function(e){return e}))){x=k,S=!1;break}w.set(k,q)}if(S)for(var M=function(e){var t=b.find((function(t){var i=w.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},O=p?3:1;O>0&&"break"!==M(O);O--);t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.mainAxis,s=void 0===o||o,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,h=i.padding,u=i.tether,g=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,f=Vp(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),v=Lp(t.placement),_=kp(t.placement),b=!_,y=Ep(v),C="x"===y?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,x=t.rects.popper,L="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(w){if(s){var I,N="y"===y?ap:dp,A="y"===y?lp:cp,R="y"===y?"height":"width",T=w[y],q=T+f[N],M=T-f[A],O=g?-x[R]/2:0,P=_===gp?S[R]:x[R],F=_===gp?-x[R]:-S[R],B=t.elements.arrow,W=g&&B?ep(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[N],H=V[A],j=zp(0,S[R],W[R]),U=b?S[R]/2-O-j-z-k.mainAxis:P-j-z-k.mainAxis,$=b?-S[R]/2+O+j+H+k.mainAxis:F+j+H+k.mainAxis,G=t.elements.arrow&&rp(t.elements.arrow),K=G?"y"===y?G.clientTop||0:G.clientLeft||0:0,X=null!=(I=null==E?void 0:E[y])?I:0,Z=T+$-X,Y=zp(g?zg(q,T+U-X-K):q,T,g?Vg(M,Z):M);w[y]=Y,D[y]=Y-T}if(a){var Q,J="x"===y?ap:dp,ee="x"===y?lp:cp,te=w[C],ie="y"===C?"height":"width",ne=te+f[J],oe=te-f[ee],se=-1!==[ap,dp].indexOf(v),re=null!=(Q=null==E?void 0:E[C])?Q:0,ae=se?ne:te-S[ie]-x[ie]-re+k.altAxis,le=se?te+S[ie]+x[ie]-re-k.altAxis:oe,ce=g&&se?function(e,t,i){var n=zp(e,t,i);return n>i?i:n}(ae,te,le):zp(g?ae:ne,te,g?le:oe);w[C]=ce,D[C]=ce-te}t.modifiersData[n]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,o=e.options,s=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Lp(i.placement),l=Ep(a),c=[dp,cp].indexOf(a)>=0?"height":"width";if(s&&r){var d=function(e,t){return Bp("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Wp(e,up))}(o.padding,i),h=ep(s),u="y"===l?ap:dp,g="y"===l?lp:cp,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],f=rp(s),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,_=p/2-m/2,b=d[u],y=v-h[c]-d[g],C=v/2-h[c]/2+_,w=zp(b,C,y),S=l;i.modifiersData[n]=((t={})[S]=w,t.centerOffset=w-C,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Op(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,r=Vp(t,{elementContext:"reference"}),a=Vp(t,{altBoundary:!0}),l=Hp(r,n),c=Hp(a,o,s),d=jp(l),h=jp(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}}]});const $p="base";function Gp(e,t){const i=Ot.li[t];return i?`${$p}--${i}`:function(e,t){return`${$p}-${e}-${t}`}(e,t)}const Kp="Popper";function Xp(e){return Gp(Kp,e)}!function(e,t){const i={};["root"].forEach((t=>{i[t]=Gp(e,t)}))}(Kp);const Zp={disableDefaultClasses:!1},Yp=i.createContext(Zp),Qp=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Jp=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function em(e){return"function"==typeof e?e():e}const tm={},im=i.forwardRef((function(e,t){var n;const{anchorEl:o,children:s,direction:r,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:h,popperRef:u,slotProps:g={},slots:p={},TransitionProps:m}=e,f=ar(e,Qp),v=i.useRef(null),_=(0,lr.A)(v,t),b=i.useRef(null),y=(0,lr.A)(b,u),C=i.useRef(y);(0,ua.A)((()=>{C.current=y}),[y]),i.useImperativeHandle(u,(()=>b.current),[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,r),[S,x]=i.useState(w),[L,k]=i.useState(em(o));i.useEffect((()=>{b.current&&b.current.forceUpdate()})),i.useEffect((()=>{o&&k(em(o))}),[o]),(0,ua.A)((()=>{if(!L||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{x(e.placement)}}];null!=l&&(e=e.concat(l)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const t=Up(L,v.current,rr({placement:w},h,{modifiers:e}));return C.current(t),()=>{t.destroy(),C.current(null)}}),[L,a,l,c,h,w]);const E={placement:S};null!==m&&(E.TransitionProps=m);const D=(0,Nt.A)({root:["root"]},function(e){const{disableDefaultClasses:t}=i.useContext(Yp);return i=>t?"":e(i)}(Xp)),I=null!=(n=p.root)?n:"div",N=mr({elementType:I,externalSlotProps:g.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:D.root});return(0,Ft.jsx)(I,rr({},N,{children:"function"==typeof s?s(E):s}))})),nm=i.forwardRef((function(e,t){const{anchorEl:n,children:o,container:s,direction:r="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:u=tm,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:v={}}=e,_=ar(e,Jp),[b,y]=i.useState(!0);if(!l&&!d&&(!m||b))return null;let C;if(s)C=s;else if(n){const e=em(n);C=e&&void 0!==e.nodeType?(0,ld.A)(e).body:(0,ld.A)(null).body}const w=d||!l||m&&!b?void 0:"none",S=m?{in:d,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return(0,Ft.jsx)(wd,{disablePortal:a,container:C,children:(0,Ft.jsx)(im,rr({anchorEl:n,direction:r,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:h,popperOptions:u,popperRef:g,slotProps:f,slots:v},_,{style:rr({position:"fixed",top:0,left:0,display:w},p),TransitionProps:S,children:o}))})}));var om=r(6471);const sm=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],rm=(0,qt.Ay)(nm,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),am=i.forwardRef((function(e,t){var i;const n=(0,om.A)(),o=(0,Tt.A)({props:e,name:"MuiPopper"}),{anchorEl:s,component:r,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:h,modifiers:u,open:g,placement:p,popperOptions:m,popperRef:f,transition:v,slots:_,slotProps:b}=o,y=(0,Et.A)(o,sm),C=null!=(i=null==_?void 0:_.root)?i:null==a?void 0:a.Root,w=(0,Dt.A)({anchorEl:s,container:c,disablePortal:d,keepMounted:h,modifiers:u,open:g,placement:p,popperOptions:m,popperRef:f,transition:v},y);return(0,Ft.jsx)(rm,(0,Dt.A)({as:r,direction:null==n?void 0:n.direction,slots:{root:C},slotProps:null!=b?b:l},w,{ref:t}))}));var lm=r(9456);function cm(e){return(0,Ot.Ay)("MuiTooltip",e)}const dm=(0,Mt.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),hm=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],um=(0,qt.Ay)(am,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.popper,!i.disableInteractive&&t.popperInteractive,i.arrow&&t.popperArrow,!i.open&&t.popperClose]}})((({theme:e,ownerState:t,open:i})=>(0,Dt.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${dm.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${dm.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${dm.arrow}`]:(0,Dt.A)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${dm.arrow}`]:(0,Dt.A)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),gm=(0,qt.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.tooltip,i.touch&&t.touch,i.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,ui.A)(i.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Vn.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${dm.popper}[data-popper-placement*="left"] &`]:(0,Dt.A)({transformOrigin:"right center"},t.isRtl?(0,Dt.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,Dt.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${dm.popper}[data-popper-placement*="right"] &`]:(0,Dt.A)({transformOrigin:"left center"},t.isRtl?(0,Dt.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,Dt.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${dm.popper}[data-popper-placement*="top"] &`]:(0,Dt.A)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${dm.popper}[data-popper-placement*="bottom"] &`]:(0,Dt.A)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),pm=(0,qt.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,Vn.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let mm=!1;const fm=new oo.E;let vm={x:0,y:0};function _m(e,t){return i=>{t&&t(i),e(i)}}const bm=i.forwardRef((function(e,t){var n,o,s,r,a,l,c,d,h,u,g,p,m,f,v,_,b,y,C;const w=(0,Tt.A)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:x,components:L={},componentsProps:k={},describeChild:E=!1,disableFocusListener:D=!1,disableHoverListener:I=!1,disableInteractive:N=!1,disableTouchListener:A=!1,enterDelay:R=100,enterNextDelay:T=0,enterTouchDelay:q=700,followCursor:M=!1,id:O,leaveDelay:P=0,leaveTouchDelay:F=1500,onClose:B,onOpen:W,open:V,placement:z="bottom",PopperComponent:H,PopperProps:j={},slotProps:U={},slots:$={},title:G,TransitionComponent:K=ad,TransitionProps:X}=w,Z=(0,Et.A)(w,hm),Y=i.isValidElement(x)?x:(0,Ft.jsx)("span",{children:x}),Q=_i(),J="rtl"===Q.direction,[ee,te]=i.useState(),[ie,ne]=i.useState(null),oe=i.useRef(!1),se=N||M,re=(0,oo.A)(),ae=(0,oo.A)(),le=(0,oo.A)(),ce=(0,oo.A)(),[de,he]=(0,$h.A)({controlled:V,default:!1,name:"Tooltip",state:"open"});let ue=de;const ge=(0,lm.A)(O),pe=i.useRef(),me=(0,Hn.A)((()=>{void 0!==pe.current&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),ce.clear()}));i.useEffect((()=>me),[me]);const fe=e=>{fm.clear(),mm=!0,he(!0),W&&!ue&&W(e)},ve=(0,Hn.A)((e=>{fm.start(800+P,(()=>{mm=!1})),he(!1),B&&ue&&B(e),re.start(Q.transitions.duration.shortest,(()=>{oe.current=!1}))})),_e=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),ae.clear(),le.clear(),R||mm&&T?ae.start(mm?T:R,(()=>{fe(e)})):fe(e))},be=e=>{ae.clear(),le.start(P,(()=>{ve(e)}))},{isFocusVisibleRef:ye,onBlur:Ce,onFocus:we,ref:Se}=(0,jn.A)(),[,xe]=i.useState(!1),Le=e=>{Ce(e),!1===ye.current&&(xe(!1),be(e))},ke=e=>{ee||te(e.currentTarget),we(e),!0===ye.current&&(xe(!0),_e(e))},Ee=e=>{oe.current=!0;const t=Y.props;t.onTouchStart&&t.onTouchStart(e)};i.useEffect((()=>{if(ue)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,ue]);const De=(0,zn.A)(Y.ref,Se,te,t);G||0===G||(ue=!1);const Ie=i.useRef(),Ne={},Ae="string"==typeof G;E?(Ne.title=ue||!Ae||I?null:G,Ne["aria-describedby"]=ue?ge:null):(Ne["aria-label"]=Ae?G:null,Ne["aria-labelledby"]=ue&&!Ae?ge:null);const Re=(0,Dt.A)({},Ne,Z,Y.props,{className:(0,It.A)(Z.className,Y.props.className),onTouchStart:Ee,ref:De},M?{onMouseMove:e=>{const t=Y.props;t.onMouseMove&&t.onMouseMove(e),vm={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()}}:{}),Te={};A||(Re.onTouchStart=e=>{Ee(e),le.clear(),re.clear(),me(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(q,(()=>{document.body.style.WebkitUserSelect=pe.current,_e(e)}))},Re.onTouchEnd=e=>{Y.props.onTouchEnd&&Y.props.onTouchEnd(e),me(),le.start(F,(()=>{ve(e)}))}),I||(Re.onMouseOver=_m(_e,Re.onMouseOver),Re.onMouseLeave=_m(be,Re.onMouseLeave),se||(Te.onMouseOver=_e,Te.onMouseLeave=be)),D||(Re.onFocus=_m(ke,Re.onFocus),Re.onBlur=_m(Le,Re.onBlur),se||(Te.onFocus=ke,Te.onBlur=Le));const qe=i.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ie),options:{element:ie,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),(0,Dt.A)({},j.popperOptions,{modifiers:t})}),[ie,j]),Me=(0,Dt.A)({},w,{isRtl:J,arrow:S,disableInteractive:se,placement:z,PopperComponentProp:H,touch:oe.current}),Oe=(e=>{const{classes:t,disableInteractive:i,arrow:n,touch:o,placement:s}=e,r={popper:["popper",!i&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,ui.A)(s.split("-")[0])}`],arrow:["arrow"]};return(0,Nt.A)(r,cm,t)})(Me),Pe=null!=(n=null!=(o=$.popper)?o:L.Popper)?n:um,Fe=null!=(s=null!=(r=null!=(a=$.transition)?a:L.Transition)?r:K)?s:ad,Be=null!=(l=null!=(c=$.tooltip)?c:L.Tooltip)?l:gm,We=null!=(d=null!=(h=$.arrow)?h:L.Arrow)?d:pm,Ve=cr(Pe,(0,Dt.A)({},j,null!=(u=U.popper)?u:k.popper,{className:(0,It.A)(Oe.popper,null==j?void 0:j.className,null==(g=null!=(p=U.popper)?p:k.popper)?void 0:g.className)}),Me),ze=cr(Fe,(0,Dt.A)({},X,null!=(m=U.transition)?m:k.transition),Me),He=cr(Be,(0,Dt.A)({},null!=(f=U.tooltip)?f:k.tooltip,{className:(0,It.A)(Oe.tooltip,null==(v=null!=(_=U.tooltip)?_:k.tooltip)?void 0:v.className)}),Me),je=cr(We,(0,Dt.A)({},null!=(b=U.arrow)?b:k.arrow,{className:(0,It.A)(Oe.arrow,null==(y=null!=(C=U.arrow)?C:k.arrow)?void 0:y.className)}),Me);return(0,Ft.jsxs)(i.Fragment,{children:[i.cloneElement(Y,Re),(0,Ft.jsx)(Pe,(0,Dt.A)({as:null!=H?H:am,placement:z,anchorEl:M?{getBoundingClientRect:()=>({top:vm.y,left:vm.x,right:vm.x,bottom:vm.y,width:0,height:0})}:ee,popperRef:Ie,open:!!ee&&ue,id:ge,transition:!0},Te,Ve,{popperOptions:qe,children:({TransitionProps:e})=>(0,Ft.jsx)(Fe,(0,Dt.A)({timeout:Q.transitions.duration.shorter},e,ze,{children:(0,Ft.jsxs)(Be,(0,Dt.A)({},He,{children:[G,S?(0,Ft.jsx)(We,(0,Dt.A)({},je,{ref:ne})):null]}))}))}))]})})),ym=bm,Cm=(0,qt.Ay)(Zo,{shouldForwardProp:e=>!["width","dense"].includes(e)})((({width:e,dense:t})=>({minWidth:`${e}px`,textAlign:"center",fontSize:t?"12px":"14px",...t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}})));function wm({width:e,text:t,dense:n,tooltip:o}){const{translator:s}=(0,i.useContext)(_c);return i.createElement(ym,{title:o?s.get(t):""},i.createElement(Cm,{width:e,dense:n,component:"div",variant:"body1",py:"12px"},s.get(t)))}var Sm=r(6171);const xm=(0,qt.Ay)(Hd)((({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t}))),Lm=(0,qt.Ay)("div")((()=>({paddingLeft:"6px",flexGrow:1}))),km=(0,qt.Ay)("div")((({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"}))),Em=(0,qt.Ay)(Sm.A)((()=>({fontSize:"14px"})));function Dm({text:e,dismiss:t,dense:n,parentWidth:o=0}){const s="function"==typeof t,r=n?370:282,a=Math.max(o/2-r/2,0),l=Math.min(r,o)-42,c=n&&o<r;return i.createElement(xm,{left:a,style:{maxWidth:r}},i.createElement(Lm,null,i.createElement(wm,{text:e,dense:n,width:l,tooltip:c})),i.createElement(km,{dense:n},s&&i.createElement(Ao,{"aria-label":"close",onClick:()=>t()},i.createElement(Em,null))))}const Im=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t,Nm=80;function Am({itemWidth:e,layout:t,frequencyMode:i}){const n=e>Nm,{frequencyEnabled:o=!1}=t?.qListObject||{},s=!["N",void 0].includes(i);return!(!n||!s&&!o)}const Rm=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e)(e);return`Max(AGGR(Count(${t}), ${t}))`},Tm=(e,t)=>{const n=(e=>"fetch"===e?.frequencyMax)(t),[o,s]=(0,i.useState)(),[r,a]=(0,i.useState)(n);return(0,i.useEffect)((()=>{n&&(async()=>{const i=await(async(e,t)=>{const i=e.qListObject.qDimensionInfo,n=i.qGroupFieldDefs[i.qGroupPos],o=Rm(n);return(await t.evaluateEx(o)).qNumber})(t,e);s(i),a(!1)})()}),[n&&t]),{frequencyMax:n?o:t?.frequencyMax,awaitingFrequencyMax:r}},qm=100,Mm=(0,qt.Ay)("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function Om({model:e,app:t,constraints:n,layout:o,selections:s,selectionState:r,direction:a,checkboxes:l,height:c,width:d,frequencyMode:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m=!1,keyboard:f={},showGray:v=!0,scrollState:_,keyScroll:b={state:{},reset:()=>{}},currentScrollIndex:y={set:()=>{}},renderedCallback:C,onCtrlF:w,showSearch:S,isModal:x,styles:L}){const{translator:k}=(0,i.useContext)(_c),[E,D]=(0,i.useState)(!1),I=!(!o||!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:N=l,histogram:A}=o??{},[R,T]=(0,i.useState)(""),q=(0,i.useRef)(null),M=(0,i.useRef)({queue:[],validPages:!1,dataOffset:0}),O=(0,i.useRef)({pages:[]}),{frequencyMax:P,awaitingFrequencyMax:F}=Tm(t,o),{isLoadingData:B,...W}=function({local:e,loaderRef:t,model:n,fetchStart:o,scrollTimeout:s,postProcessPages:r,listData:a}){const[l,c]=(0,i.useState)(!1),[d,h]=(0,i.useState)([]);let[u]=(0,i.useState)(0);const g=(i,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:i+d,stop:l+d});const g=!!t.current&&t.current._listRef&&t.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise((t=>{e.current.timeout=setTimeout((()=>{const i=e.current.queue.slice(-1)[0],s=n.getListObjectData("/qListObjectDef",[{qTop:i.start>u?i.start-u:0,qHeight:u,qLeft:0,qWidth:1},{qTop:i.start,qHeight:u,qLeft:0,qWidth:1}]).then((i=>{const n=r?r(i):i;e.current.validPages=!0,a.current.pages=n,h(n),c(!1),t()}));o&&o(s)}),g?s:0)}))};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(u=e),g)},pages:d,isLoading:l}}({local:M,loaderRef:q,model:e,fetchStart:g,scrollTimeout:0,postProcessPages:p,listData:O}),{getStoreValue:V,setStoreValue:z}=Og(e),H=(0,i.useCallback)(W.loadMoreItems,[o]),[j,U]=(0,i.useState)({show:!1,dismissed:!1}),[$,G]=(0,i.useState)([]);W?.pages&&r.update({setPages:G,pages:W.pages,isSingleSelect:I,layout:o});const K=o?.qListObject.qDimensionInfo.qCardinal;(W?.pages.length&&!F||0===K)&&C?.();const X=(0,i.useCallback)((e=>{if(!$?.length||!M.current.validPages)return!1;M.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,i=$.filter((e=>t(e)))[0];return i&&t(i)}),[o,$]),{interactionEvents:Z,select:Y}=function({selectionState:e,selections:t,checkboxes:n=!1,doc:o=document,loaderRef:s}){const r=(0,i.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,i.useEffect)((()=>{if(!s.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),i=e=>e.preventDefault(),n=s.current._listRef._outerRef;return n.addEventListener("gesturestart",e),n.addEventListener("gesturechange",t),n.addEventListener("gestureend",i),()=>{n.removeEventListener("gesturestart",e),n.removeEventListener("gesturechange",t),n.removeEventListener("gestureend",i)}}),[s.current?._listRef?._outerRef]);const a=async()=>!e.selectDisabled?.()&&(e.setSelectableValuesUpdating(),ah({selections:t,elemNumbers:r.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:r.current.toggle})),l=(t,i)=>function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:i,max:n}=function(e,t){let i=1/0,n=-1/0;return e.forEach((e=>{const o=t.indexOf(e);i=o<i?o:i,n=o>n?o:n})),{min:i,max:n}}(e,t);return t.slice(i,n+1)}([t,i],function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return rh(t)}(e.enginePages)),c=t=>{const{startElemNumber:i}=r.current;if(i===t)return;const n=l(r.current.startElemNumber,t);e.updateItems(n,!0,r.current.elemNumbers)},d=(0,i.useCallback)((t=>{if(e.selectDisabled())return;const i=+t.target.getAttribute("data-n"),n=!e.isSingleSelect&&hh(t.nativeEvent);r.current.elemNumbers=[i],r.current.toggle=n,n||e.clearItemStates(!0),e.updateItem(i),r.current.active=!1,a()}),[]),h=(0,i.useCallback)((t=>{if(0!==t.button||e.selectDisabled())return;const i=+t.currentTarget.getAttribute("data-n"),n=!e.isSingleSelect&&hh(t);r.current.isRange=!1,r.current.startElemNumber=i,r.current.elemNumbers=[i],r.current.toggle=n,r.current.active=!0,n||e.clearItemStates(!0),e.updateItem(i),e.isSingleSelect&&(r.current.active=!1,a()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)}),[]),u=(0,i.useCallback)((e=>{if(0===e.button&&r.current.active){if(r.current.active=!1,r.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}a()}}),[]),g=(0,i.useCallback)((e=>{0===e.button&&r.current.active&&(r.current.active=!1,a())}),[]),p=(0,i.useCallback)((t=>{if(!r.current.active)return;r.current.isRange||(r.current.isRange=!0,e.isSelected(r.current.startElemNumber)||(e.updateItem(r.current.startElemNumber,!0),r.current.elemNumbers=[]));const i=+t.currentTarget.getAttribute("data-n");c(i)}),[]),m=(0,i.useCallback)((t=>{if(r.current.active||r.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void a();const i=Number(t.touches[0].target?.closest(dh)?.getAttribute("data-n")),n=Number(t.touches[1].target?.closest(dh)?.getAttribute("data-n"));Number.isNaN(i)||Number.isNaN(i)?a():(r.current.active=!0,l(i,n).length<7&&(r.current.touchRangeSmall=!0),r.current.elemNumbers=[],r.current.touchElemNumbers=[i,n])}),[]),f=(0,i.useCallback)((()=>{if(2!==r.current.touchElemNumbers.length)return;if(r.current.touchRangeSmall)return r.current.touchRangeSmall=!1,r.current.touchElemNumbers=[],void(r.current.active=!1);const[e,t]=r.current.touchElemNumbers;r.current.startElemNumber=e,c(t),r.current.touchElemNumbers=[],r.current.active=!1,r.current.toggle=!0,a()}),[]);(0,i.useEffect)((()=>(o.addEventListener("mouseup",g),()=>{o.removeEventListener("mouseup",g)})),[g]),(0,i.useEffect)((()=>{const i=()=>{e.clearItemStates(!1)},n=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return t.on("clearItemStates",i),t.on("deactivated",i),t.on("cleared",n),()=>{t.removeListener("clearItemStates",i),t.removeListener("deactivated",i),t.removeListener("cleared",n)}}),[t]);const v={};return n?Object.assign(v,{onChange:d}):Object.assign(v,{onMouseUp:u,onMouseDown:h,onMouseEnter:p,onTouchStart:m,onTouchEnd:f}),{interactionEvents:v,select:async(i=[],n=!1,o=void 0)=>{if(e.selectDisabled?.())return!1;const s=!e.isSingleSelect&&hh(o?.nativeEvent);s||e.clearItemStates(!0);const r=[];return e.updateItems(i,n,r),e.setSelectableValuesUpdating(),ah({selections:t,elemNumbers:n?r:i,isSingleSelect:e.isSingleSelect,toggle:s})}}}({selectionState:r,selections:s,checkboxes:N,doc:document,loaderRef:q}),{layoutOptions:Q={}}=o||{};let J=!0;Q.dataLayout&&(J="singleColumn"===Q.dataLayout||"row"===Q?.layoutOrder);const ee="grid"===Q?.dataLayout,te=e=>{const t={...J?{rowIndex:e}:{columnIndex:e}},i=ee?t:e;q.current._listRef.scrollToItem(i)},ie=()=>{if(M.current.queue=[],M.current.validPages=!1,q.current){q.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===b.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&b.reset());M.current.dataOffset=0,te(0)}};u&&u.call(null,ie),(0,i.useEffect)((()=>{_&&!E&&q.current&&(q.current._listRef.scrollToItem(_.initScrollPos),D(!0))}),[q.current]),(0,i.useEffect)((()=>{ie()}),[o,M.current.dataOffset]);let ne=qm;const oe="grid"!==Q.dataLayout,se=o?.qListObject.qSize?.qcy,re=function({pages:e,minimumBatchSize:t,count:i,calculatePagesHeight:n=!1}){return(e?.length&&n?Tg({pages:e,minimumBatchSize:t,count:i}):i)||0}({pages:$,minimumBatchSize:ne,count:se,calculatePagesHeight:m,layoutOptions:Q,model:e});let ae=Am({itemWidth:d,layout:o,frequencyMode:h});const le=function(e){return e.some((({qMatrix:e})=>e.some((([e])=>!!e.qFrequency?.match("%")))))?"P":"-"}($),ce=Rg({layout:o,width:d,height:c,listCount:re,count:se,freqIsAllowed:ae,checkboxes:N,styles:L});ce.columnWidth&&(ae=Am({itemWidth:ce.columnWidth,layout:o,frequencyMode:h}));const{listCount:de}=ce;z("listCount",de);const he=V("inputText");(0,i.useEffect)((()=>{if(he){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(de),t=k.get(e,[de]);T(t)}}),[he,de]);const ue=e=>{const{scrollIndex:t,offset:i,triggerRerender:n}=function({position:e,isRow:t,sizes:i,layout:n,offset:o}){let s,r=!1,a=o??0;switch(e){case"start":s=0;break;case"end":s=t?i.rowCount:i.columnCount;break;case"overflowStart":a=0,s=0,r=!0;break;case"overflowEnd":a=Im(n,i.listCount),s=n.qListObject.qDimensionInfo.qCardinal,r=!0}return{scrollIndex:s,offset:a,triggerRerender:r}}({position:e,isRow:J,sizes:ce,layout:o,offset:M.current.dataOffset});M.current.dataOffset=i,n&&r.triggerStateChanged(),te(t)};(0,i.useEffect)((()=>{const e=b.state;e.up?te(y.state.start-e.up):e.down?te(y.state.stop+e.down):e.scrollPosition&&ue(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&b.reset()}),[b.state.up,b.state.down,b.state.scrollPosition]);const{textAlign:ge}=o?.qListObject.qDimensionInfo||{},[pe,me]=(0,i.useState)({first:!1,last:!1}),{List:fe,Grid:ve}=function({layout:e,width:t,checkboxes:n,local:o,isVertical:s,pages:r,selectionState:a,interactionEvents:l,deducedFrequencyMode:c,histogram:d,isSingleSelect:h,select:u,selectAll:g,onCtrlF:p,textAlign:m,selections:f,keyboard:v,showGray:_,scrollState:b,direction:y,sizes:C,listCount:w,overflowDisclaimer:S,setScrollPosition:x,focusListItems:L,setCurrentScrollIndex:k,constraints:E,frequencyMax:D,freqIsAllowed:I,translator:N,showSearch:A,isModal:R,styles:T}){const{layoutOptions:q={}}=e||{},{columnWidth:M,listHeight:O,itemHeight:P,rowCount:F,columnCount:B}=C||{},W=("grid"===q.dataLayout?M:t)>vh,V={direction:"rtl"===y?"rtl":"ltr",useIsScrolling:!0,className:Cg.styledScrollbars},z=e?.qListObject.qDimensionInfo.qLocked,H=O<=P,j={isLocked:z,column:!s,pages:r,...z||a.selectDisabled()?{}:l,checkboxes:n,layoutOptions:q,deducedFrequencyMode:c,freqIsAllowed:I,isSingleSelect:h,textAlign:m,sizes:C,actions:{select:u,confirm:()=>f?.confirm.call(f),cancel:()=>f?.cancel.call(f),setScrollPosition:x,selectAll:g,onCtrlF:p},frequencyMax:D,histogram:d,keyboard:v,showGray:_,showTick:W,dataOffset:o.current.dataOffset,focusListItems:L,direction:y,translator:N,showSearch:A,isModal:R,styles:T,fillHeight:H};return{List:({onItemsRendered:n,ref:s})=>(o.current.listRef=s,i.createElement(Eg,kg({},V,{dataTestid:"fixed-size-list",scrollDisabled:E?.active,height:O,width:t,itemCount:w,itemData:{...j,listCount:w},itemSize:P,onItemsRendered:t=>{k({start:t.visibleStartIndex,stop:t.visibleStopIndex}),b&&b.setScrollPos(t.visibleStopIndex),Lg({renderProps:t,layoutOptions:q,maxCount:C.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),n({...t})},ref:s}),Ju)),Grid:({onItemsRendered:n,ref:s})=>{const{overflowStyling:r,scrollBarWidth:a}=C,{layoutOrder:l}=q||{},c=Math.min(O,F*P+a);return o.current.listRef=s,i.createElement(Dg,kg({},V,{dataTestid:"fixed-size-grid",scrollDisabled:E?.active,height:c,width:t,columnCount:B,columnWidth:M,rowCount:F,rowHeight:P,style:{...r},itemData:{...j,column:void 0,columnCount:B,rowCount:F},onItemsRendered:t=>{const i="row"===l;k({start:i?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:i?t.visibleRowStopIndex:t.visibleColumnStopIndex});const s=function(e){const{renderProps:t,scrollState:i,layoutOrder:n,rowCount:o,columnCount:s}=e,{overscanRowStartIndex:r,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let h,u,g,p;return i&&i.setScrollPos(d),"column"===n?(h=l*o,u=r,g=c*o,p=a):(h=l,u=r*s,g=c,p=a*s),{visibleStartIndex:h+u,visibleStopIndex:g+p}}({renderProps:t,scrollState:b,layoutOrder:l,rowCount:F,columnCount:B});Lg({renderProps:t,layoutOptions:q,maxCount:C.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),n(s)},ref:s}),Ju)}}}({direction:a,layout:o,height:c,width:d,checkboxes:N,deducedFrequencyMode:le,histogram:A,keyboard:f,showGray:v,interactionEvents:Z,select:Y,selectAll:()=>{r.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:w,textAlign:ge,isVertical:oe,pages:$,selectionState:r,isSingleSelect:I,selections:s,scrollState:_,local:M,sizes:ce,listCount:de,overflowDisclaimer:{state:j,set:e=>U((t=>({...t,show:e})))},setScrollPosition:ue,focusListItems:{first:pe.first,setFirst:e=>me((t=>({...t,first:e}))),last:pe.last,setLast:e=>me((t=>({...t,last:e})))},setCurrentScrollIndex:y.set,constraints:n,frequencyMax:P,freqIsAllowed:ae,translator:k,showSearch:S,isModal:x,styles:L}),{columnWidth:_e,listHeight:be,itemHeight:ye}=ce||{};return oe||(ne=function({width:e,columnWidth:t,listHeight:i,itemHeight:n}){return Math.ceil(e/t)*Math.ceil(i/n)*2}({width:d,columnWidth:_e,listHeight:be,itemHeight:ye})),i.createElement(Mm,null,i.createElement(Gu,{className:"screenReaderOnly",layout:o}),i.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},R),!de&&K>0&&i.createElement(wm,{width:d,text:"Listbox.NoMatchesForYourTerms"}),i.createElement(oh,{isItemLoaded:X,itemCount:de||1,loadMoreItems:H.with({minimumBatchSize:ne}),threshold:0,minimumBatchSize:ne,ref:q,role:"grid"},oe?fe:ve),j.show&&!j.dismissed&&i.createElement(Dm,{text:"Listbox.ItemsOverflow",dismiss:()=>U((e=>({...e,dismissed:!0}))),parentWidth:q?.current?._listRef?.props?.width,dense:Q?.dense}))}const Pm=e=>({...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"}}]}),Fm=e=>({...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"}}]}),Bm=e=>({...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"}}]}),Wm=e=>({...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"}}]}),Vm=({layout:e,model:t,translator:i,selectionState:n,isDirectQuery:o=!1})=>e.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:i.get("Selection.SelectAll"),getSvgIconShape:Pm,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:i.get("Selection.SelectPossible"),getSvgIconShape:Bm,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectPossible("/qListObjectDef")}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:i.get("Selection.SelectAlternative"),getSvgIconShape:Fm,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectAlternative("/qListObjectDef")}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:i.get("Selection.SelectExcluded"),getSvgIconShape:Wm,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{n.clearItemStates(!1),t.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean);function zm(e){return(0,Ot.Ay)("MuiDivider",e)}const Hm=(0,Mt.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),jm=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Um=(0,qt.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.absolute&&t.absolute,t[i.variant],i.light&&t.light,"vertical"===i.orientation&&t.vertical,i.flexItem&&t.flexItem,i.children&&t.withChildren,i.children&&"vertical"===i.orientation&&t.withChildrenVertical,"right"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignRight,"left"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,Dt.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,Vn.X4)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,Dt.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,Dt.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,Dt.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,Dt.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),$m=(0,qt.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.wrapper,"vertical"===i.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,Dt.A)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Gm=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:s,component:r=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==r?"separator":void 0),textAlign:h="center",variant:u="fullWidth"}=i,g=(0,Et.A)(i,jm),p=(0,Dt.A)({},i,{absolute:n,component:r,flexItem:a,light:l,orientation:c,role:d,textAlign:h,variant:u}),m=(e=>{const{absolute:t,children:i,classes:n,flexItem:o,light:s,orientation:r,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,s&&"light","vertical"===r&&"vertical",o&&"flexItem",i&&"withChildren",i&&"vertical"===r&&"withChildrenVertical","right"===a&&"vertical"!==r&&"textAlignRight","left"===a&&"vertical"!==r&&"textAlignLeft"],wrapper:["wrapper","vertical"===r&&"wrapperVertical"]};return(0,Nt.A)(c,zm,n)})(p);return(0,Ft.jsx)(Um,(0,Dt.A)({as:r,className:(0,It.A)(m.root,s),role:d,ref:t,ownerState:p},g,{children:o?(0,Ft.jsx)($m,{className:m.wrapper,ownerState:p,children:o}):null}))}));Gm.muiSkipListHighlight=!0;const Km=Gm,Xm=e=>({...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 Zm(e){const t=_i(),i="function"==typeof e.enabled?!e.enabled():!!e.disabled,n="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:i,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:n}}const Ym={className:"njs-cell-action"},Qm=i.forwardRef((({ariaExpanded:e=!1,item:t,addAnchor:n=!1},o)=>{const s=_i(),{hidden:r,disabled:a,style:l,hasSvgIconShape:c}=Zm(t);if(r)return null;const d=Number.parseInt(s.spacing(.5),10),h=t.keyboardAction||t.action,u=h?e=>["Enter"].includes(e.key)&&h():null,g=h?e=>[" ","Spacebar"].includes(e.key)&&h():null,p=`actions-toolbar-${t.key}`;return i.createElement(Ao,{ref:n?null:o,title:t.label,onClick:t.action,onKeyDown:u,onKeyUp:g,disabled:a,style:l,className:[Ym.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":e,"aria-controls":"moreMenuList","data-testid":p},c&&Es(t.getSvgIconShape()),n&&i.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Jm=Qm,ef=e=>({...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"}}]}),tf=e=>({...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"}}]}),nf=e=>Es(tf(e));function of(e){return(0,Ot.Ay)("MuiListItemIcon",e)}const sf=(0,Mt.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);function rf(e){return(0,Ot.Ay)("MuiMenuItem",e)}const af=(0,Mt.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],cf=(0,qt.Ay)(Lo,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.dense&&t.dense,i.divider&&t.divider,!i.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,Dt.A)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${af.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Vn.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${af.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Vn.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${af.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Vn.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Vn.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${af.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${af.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Hm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Hm.inset}`]:{marginLeft:52},[`& .${Js.root}`]:{marginTop:0,marginBottom:0},[`& .${Js.inset}`]:{paddingLeft:36},[`& .${sf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,Dt.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${sf.root} svg`]:{fontSize:"1.25rem"}})))),df=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:r=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:u}=n,g=(0,Et.A)(n,lf),p=i.useContext(Is),m=i.useMemo((()=>({dense:r||p.dense||!1,disableGutters:l})),[p.dense,r,l]),f=i.useRef(null);(0,Ps.A)((()=>{o&&f.current&&f.current.focus()}),[o]);const v=(0,Dt.A)({},n,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:i,divider:n,disableGutters:o,selected:s,classes:r}=e,a={root:["root",i&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",s&&"selected"]},l=(0,Nt.A)(a,rf,r);return(0,Dt.A)({},r,l)})(n),b=(0,zn.A)(f,t);let y;return n.disabled||(y=void 0!==h?h:-1),(0,Ft.jsx)(Is.Provider,{value:m,children:(0,Ft.jsx)(cf,(0,Dt.A)({ref:b,role:d,tabIndex:y,component:s,focusVisibleClassName:(0,It.A)(_.focusVisible,c),className:(0,It.A)(_.root,u)},g,{ownerState:v,classes:_}))})})),hf=df,uf=["className"],gf=(0,qt.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"flex-start"===i.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,Dt.A)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),pf=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiListItemIcon"}),{className:o}=n,s=(0,Et.A)(n,uf),r=i.useContext(Is),a=(0,Dt.A)({},n,{alignItems:r.alignItems}),l=(e=>{const{alignItems:t,classes:i}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Nt.A)(n,of,i)})(a);return(0,Ft.jsx)(gf,(0,Dt.A)({className:(0,It.A)(l.root,o),ownerState:a,ref:t},s))})),mf=pf,ff=hd,vf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _f(e,t,i){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:i?null:e.firstChild}function bf(e,t,i){return e===t?i?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:i?null:e.lastChild}function yf(e,t){if(void 0===t)return!0;let i=e.innerText;return void 0===i&&(i=e.textContent),i=i.trim().toLowerCase(),0!==i.length&&(t.repeating?i[0]===t.keys[0]:0===i.indexOf(t.keys.join("")))}function Cf(e,t,i,n,o,s){let r=!1,a=o(e,t,!!t&&i);for(;a;){if(a===e.firstChild){if(r)return!1;r=!0}const t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&yf(a,s)&&!t)return a.focus(),!0;a=o(e,a,i)}return!1}const wf=i.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:s=!1,children:r,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:h="selectedMenu"}=e,u=(0,Et.A)(e,vf),g=i.useRef(null),p=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Ps.A)((()=>{o&&g.current.focus()}),[o]),i.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const i=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&i){const i=`${ff((0,qr.A)(e))}px`;g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=i,g.current.style.width=`calc(100% + ${i})`}return g.current}})),[]);const m=(0,zn.A)(g,t);let f=-1;i.Children.forEach(r,((e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===f)&&(f=t),f===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=r.length&&(f=-1))):f===t&&(f+=1,f>=r.length&&(f=-1))}));const v=i.Children.map(r,((e,t)=>{if(t===f){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return(0,Ft.jsx)(qs,(0,Dt.A)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,i=e.key,n=(0,qr.A)(t).activeElement;if("ArrowDown"===i)e.preventDefault(),Cf(t,n,c,l,_f);else if("ArrowUp"===i)e.preventDefault(),Cf(t,n,c,l,bf);else if("Home"===i)e.preventDefault(),Cf(t,null,c,l,_f);else if("End"===i)e.preventDefault(),Cf(t,null,c,l,bf);else if(1===i.length){const o=p.current,s=i.toLowerCase(),r=performance.now();o.keys.length>0&&(r-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&s!==o.keys[0]&&(o.repeating=!1)),o.lastTime=r,o.keys.push(s);const a=n&&!o.repeating&&yf(n,o);o.previousKeyMatched&&(a||Cf(t,n,!1,l,_f,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},u,{children:v}))})),Sf=wf;function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},xf.apply(this,arguments)}const Lf="More-icon",kf=(0,qt.Ay)(th)((({theme:e})=>({pointerEvents:"none",[`& .${Lf} *`]:{color:e.palette.text.primary}})));function Ef({item:e,autoFocus:t,onActionClick:n=(()=>{})}){const{hidden:o,disabled:s,hasSvgIconShape:r}=Zm(e);return o?null:i.createElement(hf,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:s,tabindex:"0"},r&&i.createElement(mf,{className:Lf},Es(e.getSvgIconShape())),i.createElement(Zo,{noWrap:!0},e.label))}const Df=i.forwardRef((({actions:e=[],show:t=!0,alignTo:n,popoverProps:o={},popoverPaperStyle:s={},onCloseOrActionClick:r=(()=>{})},a)=>{const l=e.length>0,c=e.findIndex((e=>!e.disabled));return l&&i.createElement(kf,xf({},o,{onClose:r,ref:a,open:t,anchorEl:n.current,getContentAnchorEl:null,container:n.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:{pointerEvents:"auto",maxWidth:"250px",...s}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),i.createElement(Sf,{id:"moreMenuList"},e.map(((e,t)=>i.createElement(Ef,{key:t,item:e,autoFocus:t===c,onActionClick:r})))))})),If="ActionsToolbar",Nf={item:`${If}-item`,itemSpacing:`${If}-itemSpacing`},Af=(0,qt.Ay)(th)((({theme:e})=>({[`& .${Nf.itemSpacing}`]:{padding:e.spacing(0,.25)}}))),Rf=i.forwardRef((({className:e,ariaExpanded:t=!1,actions:n=[],addAnchor:o=!1,isRtl:s=!1},r)=>n.length>0?i.createElement(Ho,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:e},n.map(((e,n)=>i.createElement(Ho,{item:!0,key:e.key,className:`${Nf.itemSpacing} ${Nf.item}`},i.createElement(Jm,{ariaExpanded:t,key:e.key,item:e,ref:0===n?r:null,addAnchor:o}))))):null)),Tf={pointerEvents:"none"},qf={vertical:"bottom",horizontal:"right"},Mf=function({show:e=!0,actions:t=[],maxItems:n=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:r={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:a={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:c=null,isRtl:d,autoConfirm:h=!1,layout:u}){const g=function({api:e,layout:t,onConfirm:n=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:s=(()=>{})}){const{translator:r}=(0,i.useContext)(_c);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(t),action:()=>e.clear(),getSvgIconShape:tf},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(t),action:()=>{o(),e.cancel()},keyboardAction:()=>{s(),o(),e.cancel()},getSvgIconShape:ef},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(t),action:()=>{n(),e.confirm()},keyboardAction:()=>{s(),n(),e.confirm()},getSvgIconShape:uh}]}({...o,layout:u}),{translator:p,keyboardNavigation:m}=(0,i.useContext)(_c),[f,v]=(0,i.useState)(!1),_={vertical:12,horizontal:(a.anchorEl?.clientWidth??0)-7},b=(0,i.useRef)(),y=(0,i.useRef)(),C=_i(),w=(0,i.useMemo)((()=>({margin:C.spacing(.5,0)}))),S=e=>{const t=b.current||c;if(!t)return null;const i=t.querySelectorAll("button:not(.Mui-disabled)");return i[e?i.length-1:0]},x=(0,i.useMemo)((()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:i,selections:n,isRtl:o}){return s=>{const{target:r,nativeEvent:a}=s,{keyCode:l}=a;switch(l){case Xu.ARROW_LEFT:case Xu.ARROW_DOWN:case Xu.ARROW_RIGHT:case Xu.ARROW_UP:if(r.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),i=t?.querySelectorAll(".njs-cell-action");return Array.from(i).indexOf(e)})(r);let t=[Xu.ARROW_LEFT,Xu.ARROW_DOWN].includes(l);t=o?!t:t,(e=>{const t=document.querySelector("#actions-toolbar"),i=t?.querySelectorAll(".njs-cell-action");i.length&&i[Math.min(Math.max(0,e),i.length-1)].focus()})(t?e-1:e+1)}s.stopPropagation(),s.preventDefault();break;case Xu.SPACE:s.preventDefault();break;case Xu.TAB:e&&t?.refocusContent&&(s.shiftKey&&i(!1)===s.target||!s.shiftKey&&i(!0)===s.target)&&(s.preventDefault(),s.stopPropagation(),t.refocusContent());break;case Xu.ESCAPE:n&&(n.onCancel(),n.api.cancel(),s.preventDefault(),s.stopPropagation())}}}({keyboardNavigation:m,focusHandler:l,getEnabledButton:S,selections:o,isRtl:d})),[m,l,S,o,d]);if((0,i.useEffect)((()=>()=>{v(!1)}),[a.show,e,o.show]),(0,i.useEffect)((()=>{l&&(l.on("focus_toolbar_first",(()=>{const e=S(!1);e?.focus()})),l.on("focus_toolbar_last",(()=>{const e=S(!0);e?.focus()})))}),[]),h)return;let L=r.enabled,k=r.actions;const E=r.alignTo||y,D=t.filter((e=>!e.hidden));if(D.length>n){const e=D.splice(-(D.length-n)-1);L=!0,k=[...e,...r.actions]}if(!o.show&&0===D.length)return null;const I={key:"more",label:p.get("Menu.More"),getSvgIconShape:Xm,hidden:!1,active:f,enabled:()=>L,action:()=>v(!f)},N=D.length>0,A=k.length>0,R=N&&o.show||A&&o.show,T=i.createElement(Ho,{ref:b,onKeyDown:x,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:d?"row-reverse":"row"}},s?.length&&i.createElement(Rf,{className:"actions-toolbar-extra-actions",actions:s,isRtl:d}),N&&i.createElement(Rf,{actions:D}),A&&i.createElement(Rf,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:f,actions:[I],addAnchor:!0}),R&&i.createElement(Ho,{item:!0,className:Nf.itemSpacing,style:w},i.createElement(Km,{orientation:"vertical"})),o.show&&i.createElement(Rf,{className:"actions-toolbar-default-actions",actions:g,isRtl:d}),f&&i.createElement(Df,{show:f,actions:k,alignTo:E,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)}}));return a.show?i.createElement(Af,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:_,transformOrigin:qf,hideBackdrop:!0,style:Tf,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:C.spacing(.5,.25)}}}},T):e&&T};function Of(e){return(0,Ot.Ay)("MuiInputAdornment",e)}const Pf=(0,Mt.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ff;const Bf=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Wf=(0,qt.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`position${(0,ui.A)(i.position)}`],!0===i.disablePointerEvents&&t.disablePointerEvents,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Pf.positionStart}&:not(.${Pf.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Vf=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiInputAdornment"}),{children:o,className:s,component:r="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=n,h=(0,Et.A)(n,Bf),u=oa()||{};let g=d;d&&u.variant,u&&!g&&(g=u.variant);const p=(0,Dt.A)({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:i,hiddenLabel:n,position:o,size:s,variant:r}=e,a={root:["root",i&&"disablePointerEvents",o&&`position${(0,ui.A)(o)}`,r,n&&"hiddenLabel",s&&`size${(0,ui.A)(s)}`]};return(0,Nt.A)(a,Of,t)})(p);return(0,Ft.jsx)(na.Provider,{value:null,children:(0,Ft.jsx)(Wf,(0,Dt.A)({as:r,ownerState:p,className:(0,It.A)(m.root,s),ref:t},h,{children:"string"!=typeof o||l?(0,Ft.jsxs)(i.Fragment,{children:["start"===c?Ff||(Ff=(0,Ft.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,Ft.jsx)(Zo,{color:"text.secondary",children:o})}))})})),zf=Vf,Hf=e=>Es((e=>({...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)),jf="/qListObjectDef",Uf="**",$f=(0,qt.Ay)(Oa,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((({theme:e,styles:t,dense:i,isRtl:n})=>{let o={};return i&&(o={fontSize:12,paddingLeft:e.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),{display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:"9px",flexDirection:n?"row-reverse":"row","& fieldset":{borderColor:`${t.search.borderColor}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:`${t.search.highlightBorderColor} !important`},"& .MuiInputBase-root":{...t.search},"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:n?"right":"left"},...o}}));function Gf({selections:e,selectionState:t,model:n,keyboard:o,dense:s=!1,visible:r=!0,autoFocus:a=!0,wildCardSearch:l=!1,searchEnabled:c,direction:d,hide:h,styles:u}){const{translator:g}=(0,i.useContext)(_c),[p,m]=(0,i.useState)(""),[f,v]=(0,i.useState)(!1),_=(0,i.useRef)(),{getStoreValue:b,setStoreValue:y}=Og(n),C="rtl"===d,w=async()=>{if(t.selectDisabled()||e.isModal())try{await n.abortListObjectSearch(jf)}finally{m("")}};(0,i.useEffect)((()=>{r||w()}),[r]),(0,i.useEffect)((()=>(e.on("deactivated",w),()=>{e.removeListener&&e.removeListener("deactivated",w)})),[]),(0,i.useEffect)((()=>{if(f&&_.current){const e=p.length-1;_.current.setSelectionRange(e,e),v(!1)}}),[f,_.current]),(0,i.useEffect)((()=>{y("inputText",p)}),[p]);function S(e){const t=e?.querySelector(".last-focused")||e?.querySelector('[role="row"]:first-child');t?.setAttribute("tabIndex",0),t?.focus()}return r&&!1!==c?i.createElement($f,{styles:u,dense:s,isRtl:C,startAdornment:i.createElement(zf,{position:"start"},i.createElement(Hf,{size:s?"small":"normal"})),className:"search",inputRef:_,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:p,onFocus:()=>{l&&(m(Uf),v(!0)),t.selectDisabled()||e.isModal()||e.begin(["/qListObjectDef"])},onChange:async e=>(m(e.target.value),e.target.value.length?n.searchListObjectFor(jf,e.target.value):w()),onKeyDown:async i=>{const{currentTarget:s}=i,r=s.closest(".listbox-container");switch(i.key){case"Enter":(async()=>{let i;const o=await n.searchListObjectFor(jf,p);t.selectDisabled()||o&&p.length&&b("listCount")>0&&(i=n.acceptListObjectSearch(jf,!0),e.selectionsMade=!0,t.clearItemStates(!1),m(""))})();break;case"Escape":S(r),e.isActive()&&e.cancel();break;case"Tab":i.shiftKey?o.focusSelection():(S(r),r?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!i.ctrlKey&&!i.metaKey)return;h&&(h(),S(r));break;default:return}i.preventDefault(),i.stopPropagation()},autoFocus:a,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}function Kf(e){return Object.keys(yl().prototype).forEach((t=>{e[t]=yl().prototype[t]})),yl().init(e),e}const Xf=({appSelections:e,appModal:t,model:i})=>{let n,o=!1,s=!1;const r={id:i.id,setLayout(e){n=e},begin(e){const n=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",n),n.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:i,paths:e,accept:!0,objectSelections:r}))},clear(){return s=!1,this.emit("cleared"),n.qListObject?i.clearSelections("/qListObjectDef"):i.resetMadeSelections()},confirm(){return s=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return s=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const n=this.begin([t.params[0]]);if(!e.isModal())return!1;await n;const o=await i[t.method](...t.params);return s="resetMadeSelections"!==t.method,!!o||(i.resetMadeSelections(),!1)},canClear:()=>n&&n.qListObject&&n.qListObject.qDimensionInfo?!n.qListObject.qDimensionInfo.qLocked&&!n.qListObject.qDimensionInfo.qIsOneAndOnlyOne:s,canConfirm:()=>n&&n.qListObject&&n.qListObject.qDimensionInfo?!n.qListObject.qDimensionInfo.qLocked:s,canCancel:()=>!(n&&n.qListObject&&n.qListObject.qDimensionInfo&&n.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(r),goModal:e=>t.begin({model:i,paths:e,accept:!1,objectSelections:r}),noModal:(e=!1)=>t.end(e)};return Kf(r),r},Zf=({elements:e,objectSelections:t,options:i={}})=>{const n=function({elements:e,handleClickOutside:t}){return i=>{if(!document.contains(i.target))return;const n=e.map((e=>"string"==typeof e?document.querySelector(e):e?.current)).filter((e=>!!e&&!!document.contains(e)));n.length&&!n.some((e=>e.contains(i.target)))&&t(i)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",n),i?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",n),i?.onSelectionDeactivated?.()}}};function Yf(e,t,n,o){const s=Array.isArray(n)?n:[n],[r]=kc(e),[a]=Zc(t),[l]=wc(),c=l.get(e.id),[d,h]=(0,i.useState)();return(0,i.useEffect)((()=>{r&&t&&!d&&h(Xf({appSelections:r,appModal:c,model:t}))}),[r,t]),(0,i.useEffect)((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Zf({elements:s,objectSelections:d,options:o});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),(0,i.useEffect)((()=>{d&&d.setLayout(a)}),[d,a]),[d]}function Qf(e={}){const t={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0,...e,update({setPages:e,pages:i,isSingleSelect:n,selectDisabled:o,layout:s}){this.setPages=e;const r=this.lastRowCount===s.qListObject.qSize.qcy,a=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;r&&a||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),t.enginePages!==i&&void 0!==i&&(t.enginePages=i??[],t.selectedInEngine=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return i=t.qState,!!sh.includes(i)&&t.qElemNumber;var i})).filter((e=>!1!==e))));return rh(t)}(i),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=n,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=s?.qListObject?.qDimensionInfo?.qIsCalculated??!1},allowedToSelect:()=>!(t.selectDisabled()||t.isDimCalculated&&t.selectableValuesUpdating),setSelectableValuesUpdating(){t.selectableValuesUpdating=!0},useClientItemState:e=>t.ignoreSelectionState||e in t.itemStates,isSelected:e=>t.useClientItemState(e)?!!t.itemStates[e]:t.selectedInEngine.includes(e),getState(e){const{qElemNumber:i,qState:n}=e;return t.useClientItemState(i)?t.itemStates[i]?"XS"===n?"XS":"S":"S"===n||"XS"===n?"A":n:n},updateItemNoEvents(e,i,n){const o=t.isSelected(e);o&&!i?t.itemStates[e]=!1:o||(n?.push(e),t.itemStates[e]=!0)},triggerStateChanged(){if(this.setPages){const e=t.applySelectionsOnPages(t.enginePages);this.setPages(e)}},applySelectionsOnPages:e=>e.map((e=>{const i=e.qMatrix.map((e=>{const[i]=e,n=t.getState(i);return[{...i,qState:n},...e.slice(1)]}));return{...e,qMatrix:i}})),updateItem(e,i,n){t.updateItemNoEvents(e,i,n),t.triggerStateChanged()},updateItems(e,i,n){e.forEach((e=>{t.updateItemNoEvents(e,i,n)})),t.triggerStateChanged()},clearItemStates(e){t.itemStates={},t.ignoreSelectionState=e}};return t}const Jf=(e,t,i=void 0)=>e?.[t]??i;function ev(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return Jf(t,"qSelected",0)+Jf(t,"qSelectedExcluded",0)+Jf(t,"qLocked",0)+Jf(t,"qLockedExcluded",0)>0}const tv={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},iv=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,nv=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,ov=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,sv=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,rv=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,av=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:lv}=Math,{round:cv}=Math;class dv{constructor(...e){let t,i,n,o,s,r,a,l,c,d,h,u,g=0,p=0,m=0,f=1;if(this._invalid=!1,e[0]instanceof dv)g=e[0]._r,p=e[0]._g,m=e[0]._b,f=e[0]._a,this._invalid=e[0]._invalid;else if(e.length<3)if("string"==typeof e[0])if(u=e[0],h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10),f=parseFloat(h[4]);else if(h=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))f=parseInt(h[1],10)/255,g=parseInt(h[2],10),p=parseInt(h[3],10),m=parseInt(h[4],10);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(u))g=parseInt(h[1],16),p=parseInt(h[2],16),m=parseInt(h[3],16),f=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(u))g=parseInt(h[1]+h[1],16),p=parseInt(h[2]+h[2],16),m=parseInt(h[3]+h[3],16),f=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),i=parseFloat(h[3]),o=parseFloat(h[5]),t%=360,i/=100,o/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,o=o<0?0:o>1?1:o,r=o<=.5?2*o*i:(2-2*o)*i,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=o-.5*r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=cv(255*g),p=cv(255*p),m=cv(255*m),f=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(u)){switch(t=parseFloat(h[1]),i=parseFloat(h[3]),o=parseFloat(h[5]),f=parseFloat(h[7]),t%=360,i/=100,o/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,o=o<0?0:o>1?1:o,r=o<=.5?2*o*i:(2-2*o)*i,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=o-.5*r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=cv(255*g),p=cv(255*p),m=cv(255*m)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),i=parseFloat(h[3]),s=parseFloat(h[5]),t%=360,i/=100,s/=100,t=t<0?0:t>360?360:t,i=i<0?0:i>1?1:i,s=s<0?0:s>1?1:s,r=s*i,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=s-r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=cv(255*g),p=cv(255*p),m=cv(255*m),f=1}else tv[u.toLowerCase()]?(n=u.toLowerCase(),g=tv[n].r,p=tv[n].g,m=tv[n].b,f="number"==typeof tv[n].a?tv[n].a:1):this._invalid=!0;else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(f=(4278190080&e[0])>>>24,f/=255,g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):this._invalid=!0;else e.length>=3?(g=e[0],p=e[1],m=e[2],f=arguments.length>=4?e[3]:1):this._invalid=!0;Number.isNaN(+g+p+m+f)&&(this._invalid=!0),this._r=lv(g),this._g=lv(p),this._b=lv(m),this._a=f,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=dv.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=dv.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=dv.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=dv.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=dv.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=dv.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return`hsv(${e.h},${e.s},${e.v})`}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=dv.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=dv.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),i=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),n=parseFloat(i[1]),o=parseFloat(i[3]);let s=parseFloat(i[5]);const r=parseFloat(i[7]);return s+=e,s=Math.max(0,Math.min(s,100)),`hsla(${n},${o},${s},${r})`}isEqual(e){return e instanceof dv||(e=new dv(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[lv(this._r+(e._r-this._r)*t),lv(this._g+(e._g-this._g)*t),lv(this._b+(e._b-this._b)*t),lv(this._a+(e._a-this._a)*t)].join(",")})`}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),i=this._g<126?1:1+this._g/512,n=this.shiftLuminance(20*(t*i<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new dv(n)}static toRGB(e){return e instanceof dv?`rgb(${[e._r,e._g,e._b].join(",")})`:("string"==typeof e&&(e=dv.toNumber(e)),`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`)}static toRGBA(e,t){return e instanceof dv?`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`:("string"==typeof e&&(e=dv.toNumber(e)),`rgba(${(16711680&e)>>16},${(65280&e)>>8},${255&e},${void 0!==t?t:e._a})`)}static toHex(e){let t,i,n;return e instanceof dv?(t=e._r.toString(16),i=e._g.toString(16),n=e._b.toString(16),1===t.length&&(t=`0${t}`),1===i.length&&(i=`0${i}`),1===n.length&&(n=`0${n}`),`#${[t,i,n].join("")}`):("string"==typeof e&&(e=dv.toNumber(e)),t=((16711680&e)>>16).toString(16),i=((65280&e)>>8).toString(16),n=(255&e).toString(16),1===t.length&&(t=`0${t}`),1===i.length&&(i=`0${i}`),1===n.length&&(n=`0${n}`),`#${t}${i}${n}`)}static toHSL(e,t){let i,n,o,s=0;"string"==typeof e&&(e=new dv(e));const r=e._r/255,a=e._g/255,l=e._b/255,c=Math.max(r,a,l),d=Math.min(r,a,l);if(n=t?.21*r+.72*a+.07*l:(c+d)/2,c===d)i=0,s=0;else{switch(o=c-d,i=n>.5?o/(2-c-d):o/(c+d),c){case r:s=(a-l)/o+(a<l?6:0);break;case a:s=(l-r)/o+2;break;case l:s=(r-a)/o+4}s/=6}return`hsl(${360*s},${100*i},${100*n})`}static toHSLA(e,t){let i,n,o,s=0;"string"==typeof e&&(e=new dv(e));const r=e._r/255,a=e._g/255,l=e._b/255,c=e._a,d=Math.max(r,a,l),h=Math.min(r,a,l);if(n=t?.21*r+.72*a+.07*l:(d+h)/2,d===h)i=0,s=0;else{switch(o=d-h,i=n>.5?o/(2-d-h):o/(d+h),d){case r:s=(a-l)/o+(a<l?6:0);break;case a:s=(l-r)/o+2;break;case l:s=(r-a)/o+4}s/=6}return`hsla(${360*s},${100*i},${100*n},${c})`}static toHSVComponents(e){let t,i,n=0;"string"==typeof e&&(e=new dv(e));const o=e._r/255,s=e._g/255,r=e._b/255,a=Math.max(o,s,r),l=Math.min(o,s,r),c=a;if(a===l)t=0,n=0;else{switch(i=a-l,t=0===i?0:i/c,a){case o:n=(s-r)/i+(s<r?6:0);break;case s:n=(r-o)/i+2;break;case r:n=(o-s)/i+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}static toNumber(...e){if(1===e.length&&e[0]instanceof dv)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,i,n=0,o=0,s=0;return 1===e.length&&"string"==typeof e[0]&&(i=e[0],(t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(i))?(n=parseInt(t[1],10),o=parseInt(t[2],10),s=parseInt(t[3],10)):(t=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(i))?(n=parseInt(t[1],16),o=parseInt(t[2],16),s=parseInt(t[3],16)):(t=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(i))&&(n=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),s=parseInt(t[3]+t[3],16))),(n<<16)+(o<<8)+s}static blend(e,t,i){const n=(16711680&(e=dv.toNumber(e)))>>16,o=(65280&e)>>8,s=255&e;return(n+(((16711680&(t=dv.toNumber(t)))>>16)-n)*i<<16)+(o+(((65280&t)>>8)-o)*i<<8)+(s+((255&t)-s)*i)}static getBlend(e,t,i){const n=e._r+(t._r-e._r)*i,o=e._g+(t._g-e._g)*i,s=e._b+(t._b-e._b)*i,r=e._a+(t._a-e._a)*i;return new dv(n,o,s,r)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(iv.test(e)||nv.test(e)||ov.test(e)||sv.test(e)||rv.test(e)||av.test(e)||tv[e.toLowerCase()])}static getBestContrast(e,t,i){const n=e.getLuminance();return Math.abs(n-t.getLuminance())>Math.abs(n-i.getLuminance())?t:i}static getContrast(e,t){if(!e||!t)return;const i=e.getLuminance()/100,n=t.getLuminance()/100;return i>n?(i+.05)/(n+.05):(n+.05)/(i+.05)}static isDark(...e){return new dv(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const hv=dv,uv=/,(?![^(]*\))/,gv=/\s(?![^(]*\))/,pv=/^[0-9]+[a-zA-Z%]+?$/,mv=["none","inset","initial","inherit"],fv=e=>{if(!e)return;const t=e.split(gv).filter((e=>!mv.includes(e.toLowerCase()))).at(-1);var i;return!t||"0"===(i=t)||pv.test(i)||mv.includes(t.toLowerCase())?void 0:t},vv=e=>e?e.split(uv).map((e=>e.trim())):[];function _v(e,t,i,n){return i&&n?i.getStyle(`object.${n}`,e,t):i?i.getStyle("",e,t):void 0}const bv=!0;function yv(e,t,i,n,o){return e&&n?"none"!==e.color?n.getColorPickerColor(e,bv):void 0:_v(t,i,n,o)}const Cv={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},wv={"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 Sv(e,t){const i=e?.bgImage;if(i){let n="";if("media"===i.mode||"media"===e.useImage){const e=i?.mediaUrl,{qUrl:o}=e?.qStaticContentUrl||{};n=o?decodeURIComponent(o):void 0,n=function(e,t){return t?function(e){let t,i,n,o;return e?.session?.config?(t=e.session.config,i=new URL(t.url),o="wss:"===i.protocol,n=o?"https://":"http://",n+i.host):""}(e)+t:void 0}(t,n)}"expression"===i.mode&&(n=i.expressionUrl?decodeURIComponent(i.expressionUrl):void 0);const o=function(e){let t="center center";return e?.bgImage?.position&&(t=wv[e.bgImage.position]),t}(e),s=function(e){let t=Cv.originalSize;const i=e?.bgImage?.sizing;return i&&(t=Cv[i]),t}(e);return n?{url:n,pos:o,size:s}:void 0}}function xv(e,t,i){const n=e?.bgColor;return n&&t&&(n.useExpression||n.useColorExpression)?t.validateColor(n.colorExpression):yv(n?.color,"","backgroundColor",t,i)}function Lv(e,t,i){const n=_v("shadow","boxShadow",t,i);return((e,t,i)=>{if(e&&mv.includes(e.toLowerCase()))return e.toLowerCase();const n=vv(e);if(1!==n.length)return e;let o=i;if(!o){const i=vv(t);if(1!==i.length)return e;o=fv(i[0])}if(!o)return e;const s=fv(n[0]);return s?e.replace(s,o):`${e} ${o}`})(e?.shadow?.boxShadow||n,n,yv(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,i))}function kv(e,t,i,n){const o=e?.title?.[t]||{},s=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(o.fontStyle,t);return{fontFamily:o.fontFamily||i.getStyle(`object.${n}`,`title.${t}`,"fontFamily"),fontSize:o.fontSize||i.getStyle(`object.${n}`,`title.${t}`,"fontSize"),color:o.color&&"none"!==o.color.color?i.getColorPickerColor(o.color,!0):i.getStyle(`object.${n}`,t,"color"),fontWeight:s.includes("bold")?"bold":"normal",fontStyle:s.includes("italic")?"italic":"normal",textDecoration:s.includes("underline")?"underline":"initial"}}const Ev="#FFF",Dv="#000",Iv=1.5,Nv=3,Av=(e,t)=>{let i=!1;const n=new hv(e),o=new hv(t);if(!(o.isInvalid()||n.isInvalid()||o.getAlpha()<1||n.getAlpha()<1)){try{i=hv.getContrast(n,o)}catch(e){i=void 0}return i}};function Rv(e,t=void 0,i=Dv,n=Ev){const o=new hv(n),s=new hv(e),r=new hv(t);if(s.isInvalid()||r.isInvalid()||s.getAlpha()<1||r.getAlpha()<1)return t;const a=Av(o,s),l=Av(r,s),c=a>l||a>Nv;let d;return d=t&&l>Iv&&!c?t:c?n:i,d}const Tv=["theme","selections"];function qv({app:e,themeApi:t,theme:i,components:n=[],checkboxes:o=!1}){const s=function(e=[]){const t={};return e.forEach((e=>{const i=e?.key;Tv.includes(i)&&(t[i]=e)})),t}(n),r=(e,i)=>t.getStyle("object.listBox",e,i),a=e=>e?.index>0||e?.color?t.getColorPickerColor(e,!1):void 0,l=function({getColorPickerColor:e,theme:t,getListboxStyle:i,overrides:n,checkboxes:o}){const s=n.theme?.content?.fontColor,r=e(s)||i("content","color")||t.palette?.text.primary,a=!o&&(n.theme?.content?.useContrastColor??!0),l=n.selections?.colors||{},c=e(l.selected)||t.palette?.selected.main||"#009845",d=e(l.alternative)||t.palette?.selected.alternative||"#E4E4E4",h=e(l.excluded)||t.palette?.selected.excluded||"#A9A9A9",u=e(l.selectedExcluded)||t.palette?.selected.selectedExcluded||"#A9A9A9",g=e(l.possible)||i("","backgroundColor")||t.palette?.selected.possible||"#FFFFFF";let p=r||t.palette?.selected.selectedContrastText,m=r||t.palette?.selected.alternativeContrastText,f=r||t.palette?.selected.excludedContrastText,v=r||t.palette?.selected.selectedExcludedContrastText,_=r||t.palette?.selected.possibleContrastText;return a&&(p=Rv(c,r),m=Rv(d,r),f=Rv(h,r),v=Rv(u,r),_=Rv(g,r)),{selected:c,alternative:d,excluded:h,selectedExcluded:u,possible:g,selectedContrast:p,alternativeContrast:m,excludedContrast:f,selectedExcludedContrast:v,possibleContrast:_}}({getColorPickerColor:a,theme:i,getListboxStyle:r,overrides:s,checkboxes:o}),c=s.theme||{},d=a(c.header?.fontColor)||r("title.main","color"),h=function({themeApi:e,themeOverrides:t}){let i;const n=t?.background;return n?(i=n?.useExpression?xv({bgColor:n},e,"listBox"):e.getColorPickerColor(n?.color,!1),i):i}({themeApi:t,themeOverrides:c}),u=c.background?.image?Sv({bgImage:c.background.image},e):void 0,g=h||r("","backgroundColor")||i.palette.background.default,p=function(e,t){const i=new hv(t("","backgroundColor"));return i.setAlpha(.7),i.isInvalid()?e:i.toRGBA()}(g,r),m=function(e){return Rv("#fff",e("content","color"))}(r),f=c.header?.fontStyle||{},v=c.content?.fontStyle||{},_=(e,t,i)=>!0===e&&t||!1===e&&i||void 0;return{background:{backgroundColor:g,backgroundImage:u?.url&&!u?.url.startsWith("url(")?`url('${u.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:u?.size,backgroundPosition:u?.pos},header:{color:d,fontSize:c.header?.fontSize||r("title.main","fontSize"),fontFamily:c.header?.fontFamily||r("title.main","fontFamily"),fontWeight:_(f.bold,"bold","normal")||r("title.main","fontWeight")||"bold",textDecoration:f.underline?"underline":"initial",fontStyle:_(f.italic,"italic","normal")||r("title.main","fontStyle")||"initial"},content:{backgroundColor:o?void 0:l.possible,color:l.possibleContrast||r("content","color"),fontSize:c.content?.fontSize||r("content","fontSize"),fontFamily:c.content?.fontFamily||r("content","fontFamily"),fontWeight:_(v.bold,"bold","normal")||r("content","fontWeight")||"normal",textDecoration:v.underline?"underline":"initial",fontStyle:_(v.italic,"italic","normal")||r("content","fontStyle")||"initial"},search:{color:m,borderColor:i.palette.divider,highlightBorderColor:i.palette.custom.focusBorder,backgroundColor:p,backdropFilter:"blur(8px)"},selections:l}}function Mv({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:n={vertical:"top",horizontal:"center"},show:o,close:s,app:r,fieldName:a,stateName:l="$",autoFocus:c,components:d,checkboxes:h,selectDisabled:u=(()=>!1)}){const g=Boolean(a?.qLibraryId),p=o&&Boolean(e.current),[m,f]=(0,i.useState)(0),v=_i(),_=(0,i.useRef)(),[b]=jc({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,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:[a]},qLibraryId:g?a.qLibraryId:void 0}},r,a,l),y=(0,i.useCallback)((()=>{b.lock("/qListObjectDef")}),[b]),C=(0,i.useCallback)((()=>{b.unlock("/qListObjectDef")}),[b]),{translator:w,themeApi:S}=(0,i.useContext)(_c),x=(0,i.useRef)(),L=(0,i.useRef)(),[k]=Yf(r,b,L),[E]=Zc(b),[D]=(0,i.useState)((()=>Qf({selectDisabled:u}))),{checkboxes:I=h}=E||{},N=qv({themeApi:S,theme:v,components:d,checkboxes:I});if((0,i.useEffect)((()=>{k&&p&&(k.isModal(b)||k.goModal("/qListObjectDef"))}),[k,p]),!b||!E||!w)return null;const A=!0===E.qListObject.qDimensionInfo.qLocked,R=(e,t)=>{const i="escapeKeyDown"!==t;k.noModal(i),s()},T=Vm({layout:E,model:b,translator:w,selectionState:D}),q=ev(E);return i.createElement(th,{open:p,onClose:R,anchorEl:e.current,anchorOrigin:t,transformOrigin:n,slotProps:{paper:{style:{minWidth:"250px"}}}},i.createElement(Ho,{container:!0,direction:"column",gap:0,ref:L},i.createElement(Ho,{item:!0,container:!0,style:{padding:v.spacing(1)}},i.createElement(Ho,{item:!0},A?i.createElement(Ao,{onClick:C,disabled:!A,size:"large"},i.createElement(Jc,{title:w.get("Listbox.Unlock")})):i.createElement(Ao,{onClick:y,disabled:!q,size:"large"},i.createElement(td,{title:w.get("Listbox.Lock")}))),i.createElement(Ho,{item:!0,xs:!0}),i.createElement(Ho,{item:!0},i.createElement(Mf,{layout:E,more:{enabled:!A,actions:T,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:k,onConfirm:R,onCancel:()=>R(0,"escapeKeyDown")}}))),i.createElement(Ho,{item:!0,xs:!0},i.createElement("div",{ref:x}),i.createElement(Ho,{item:!0,ref:_},i.createElement(Gf,{styles:N,visible:!0,model:b,listCount:m,selections:k,selectionState:D,keyboard:{enabled:!1},autoFocus:c??!0})),i.createElement(Om,{model:b,app:r,layout:E,selections:k,selectionState:D,direction:"ltr",onSetListCount:e=>f(e),onCtrlF:()=>{const e=_.current.querySelector("input");e?.focus()},styles:N}))))}function Ov({field:e,api:t,stateIx:n=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:s=null,onClose:r=(()=>{})}){const{translator:a}=(0,i.useContext)(_c),l=s||(0,i.useRef)(),c=_i(),[d,h]=(0,i.useState)(!1),u=()=>{h(!1),r()},g=e.selections[n];void 0===g.qTotal&&(g.qTotal=0);const p=g.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},m=(p.qSelected+p.qLocked)/g.qTotal,f=p.qAlternative/g.qTotal,v=(p.qExcluded+p.qLockedExcluded+p.qSelectedExcluded)/g.qTotal,_=p.qSelected+p.qSelectedExcluded+p.qLocked+p.qLockedExcluded,b=0===_&&0===g.qTotal;let y="";g.qTotal===_&&g.qTotal>1?y=a.get("CurrentSelections.All"):_>1&&g.qTotal?y=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(y=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[n]&&(y=`${e.states[n]}: ${y}`);const C=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:v}];C.forEach(((e,t)=>{e.offset=t?C[t-1].offset+C[t-1].ratio:0}));let w=null,S=null,x=null,L=null;return s||(w=i.createElement(Ho,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},i.createElement(Zo,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g.qField),i.createElement(Zo,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},y)),g.qLocked?S=i.createElement(Ho,{item:!0},i.createElement(Ao,{size:"large"},i.createElement(Jc,null))):g.qOneAndOnlyOne||(S=i.createElement(Ho,{item:!0},i.createElement(Ao,{title:a.get("Selection.Clear"),onClick:i=>{i.stopPropagation(),t.clearField(g.qField,e.states[n])},size:"large"},i.createElement(Ds,null)))),x=i.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===b&&C.map((e=>i.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),L=i.createElement(Ho,{container:!0,gap:1,ref:l,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&(e=>{e.currentTarget.contains(e.target)&&h(!d)})||null},w,S,x,d&&i.createElement(Mv,{alignTo:l,show:d,close:u,app:t.model,fieldName:g.qField,stateName:e.states[n]}))),s?i.createElement(Mv,{alignTo:l,show:!0,close:u,app:t.model,fieldName:g.qField,stateName:e.states[n]}):L}const Pv=e=>{const t=i.useRef({});return i.useEffect((()=>{t.current=e})),t.current};function Fv(e){return(0,Ot.Ay)("MuiBadge",e)}const Bv=(0,Mt.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Wv=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Vv=Tt.A,zv=(0,qt.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Hv=(0,qt.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.badge,t[i.variant],t[`anchorOrigin${(0,ui.A)(i.anchorOrigin.vertical)}${(0,ui.A)(i.anchorOrigin.horizontal)}${(0,ui.A)(i.overlap)}`],"default"!==i.color&&t[`color${(0,ui.A)(i.color)}`],i.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var i,n;return(null!=(i=e.vars)?i:e).palette[t].main&&(null!=(n=e.vars)?n:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Bv.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),jv=i.forwardRef((function(e,t){var i,n,o,s,r,a;const l=Vv({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:h,components:u={},componentsProps:g={},children:p,overlap:m="rectangular",color:f="default",invisible:v=!1,max:_=99,badgeContent:b,slots:y,slotProps:C,showZero:w=!1,variant:S="standard"}=l,x=(0,Et.A)(l,Wv),{badgeContent:L,invisible:k,max:E,displayValue:D}=function(e){const{badgeContent:t,invisible:i=!1,max:n=99,showZero:o=!1}=e,s=Pv({badgeContent:t,max:n});let r=i;!1!==i||0!==t||o||(r=!0);const{badgeContent:a,max:l=n}=r?s:e;return{badgeContent:a,invisible:r,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:_,invisible:v,badgeContent:b,showZero:w}),I=Pv({anchorOrigin:c,color:f,overlap:m,variant:S,badgeContent:b}),N=k||null==L&&"dot"!==S,{color:A=f,overlap:R=m,anchorOrigin:T=c,variant:q=S}=N?I:l,M="dot"!==q?D:void 0,O=(0,Dt.A)({},l,{badgeContent:L,invisible:N,max:E,displayValue:M,showZero:w,anchorOrigin:T,color:A,overlap:R,variant:q}),P=(e=>{const{color:t,anchorOrigin:i,invisible:n,overlap:o,variant:s,classes:r={}}=e,a={root:["root"],badge:["badge",s,n&&"invisible",`anchorOrigin${(0,ui.A)(i.vertical)}${(0,ui.A)(i.horizontal)}`,`anchorOrigin${(0,ui.A)(i.vertical)}${(0,ui.A)(i.horizontal)}${(0,ui.A)(o)}`,`overlap${(0,ui.A)(o)}`,"default"!==t&&`color${(0,ui.A)(t)}`]};return(0,Nt.A)(a,Fv,r)})(O),F=null!=(i=null!=(n=null==y?void 0:y.root)?n:u.Root)?i:zv,B=null!=(o=null!=(s=null==y?void 0:y.badge)?s:u.Badge)?o:Hv,W=null!=(r=null==C?void 0:C.root)?r:g.root,V=null!=(a=null==C?void 0:C.badge)?a:g.badge,z=mr({elementType:F,externalSlotProps:W,externalForwardedProps:x,additionalProps:{ref:t,as:h},ownerState:O,className:(0,It.A)(null==W?void 0:W.className,P.root,d)}),H=mr({elementType:B,externalSlotProps:V,ownerState:O,className:(0,It.A)(P.badge,null==V?void 0:V.className)});return(0,Ft.jsxs)(F,(0,Dt.A)({},z,{children:[p,(0,Ft.jsx)(B,(0,Dt.A)({},H,{children:M}))]}))})),Uv=jv,$v=e=>Es((e=>({...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)),Gv={item:"MultiState-item"},Kv=(0,qt.Ay)(Ho)((({theme:e})=>({[`&.${Gv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}})));function Xv({field:e,api:t,moreAlignTo:n=null,onClose:o=(()=>{})}){const[s,r]=(0,i.useState)(!!n),[a,l]=(0,i.useState)(-1),[c,d]=(0,i.useState)(n?n.current:null),h=n||(0,i.useRef)(),{translator:u}=(0,i.useContext)(_c),g=u.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;n||(m=i.createElement(i.Fragment,null,i.createElement(Ho,{item:!0,xs:!0,zeroMinWidth:!0},i.createElement(Uv,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},i.createElement(Zo,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.name))),i.createElement(Ho,{item:!0},i.createElement("div",{style:{width:"12px"}})),i.createElement(Ho,{item:!0},i.createElement(Ao,{size:"large"},i.createElement($v,null)))));const f=i.createElement(qs,{dense:!0},i.createElement(Ys,{title:g,onClick:()=>{e.states.forEach((i=>t.clearField(e.name,i)))}},i.createElement($a,{variant:"contained",fullWidth:!0},g)),e.states.map(((n,o)=>i.createElement(Ys,{key:o,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),l(t)})(e,o)},i.createElement(Ji,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},i.createElement(Ov,{field:e,api:t,stateIx:o,skipHandleShowListBoxPopover:!0})))))),v=i.createElement(th,{open:s,onClose:()=>{r(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},f),_=n?v:i.createElement(Kv,{container:!0,gap:0,className:Gv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,r(!s))}},m,s&&v,a>-1&&i.createElement(Mv,{alignTo:h,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return n&&a>-1?i.createElement(Mv,{alignTo:h,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const Zv="More",Yv={item:`${Zv}-item`,badge:`${Zv}-badge`},Qv=(0,qt.Ay)(Ho)((({theme:e})=>({[`&.${Yv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${Yv.badge}`]:{padding:e.spacing(0,1)}})));function Jv({items:e=[],api:t}){const n=_i(),[o,s]=(0,i.useState)(!1),[r,a]=(0,i.useState)(-1),[l,c]=(0,i.useState)(null),d=(0,i.useRef)(),h=()=>{a(-1)};let u=null;return r>-1&&(u=e[r].states.length>1?i.createElement(Xv,{field:e[r],api:t,moreAlignTo:d,onClose:h}):i.createElement(Ov,{field:e[r],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:h})),i.createElement(Qv,{container:!0,gap:0,className:Yv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,s(!o))}},i.createElement(Ho,{item:!0},i.createElement(Ji,{borderRadius:n.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:n.palette.selected.main,color:n.palette.selected.mainContrastText}},i.createElement(Zo,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),i.createElement(Ho,{item:!0},i.createElement(Ao,{size:"large"},i.createElement($v,null))),o&&i.createElement(th,{open:o,onClose:()=>{s(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},i.createElement(qs,{dense:!0},e.map(((e,n)=>i.createElement(Ys,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),a(t)})(e,n)},i.createElement(Ji,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?i.createElement(Xv,{field:e,api:t}):i.createElement(Ov,{field:e,api:t}))))))),u)}const e_=120,t_=72;function i_(e,t,i="$"){e.qSelections.forEach((e=>{const n=e.qField,o=t[n]=t[n]||{name:n,states:[],selections:[]};-1===o.states.indexOf(i)&&(o.states.push(i),o.selections.push(e))}))}function n_({api:e,app:t}){const n=_i(),[o]=$c(t),[s]=Zc(o),[r,a]=(0,i.useState)({items:[],more:[]}),[l]=xc(),[c,d]=Qc(),[h,u]=(0,i.useState)(0);return(0,i.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-t_,i=Math.floor(t/e_);u(i)}),[d]),(0,i.useEffect)((()=>{if(!(t&&o&&s&&h))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&i_(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>i_(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(s);a((i=>{const n=e;if((()=>{const{model:e}=l.get(t.id)||{};return"njsListbox"===e?.genericType})()&&n.length+1===i.items.length){const e=i.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:t}=e.selections[0];e.selections=[{qField:t}];const o=i.items.indexOf(e);n.splice(o,0,e)}let o=[];return h<n.length&&(o=n.splice(h-n.length)),{items:n,more:o}}))}),[t,o,s,e.isInModal(),h]),i.createElement(Ho,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},r.items.map((t=>i.createElement(Ho,{item:!0,key:`${t.states.join("::")}::${t.name}`,style:{position:"relative",maxWidth:"240px",minWidth:`${e_}px`,background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`}},t.states.length>1?i.createElement(Xv,{field:t,api:e}):i.createElement(Ov,{field:t,api:e})))),r.more.length>0&&i.createElement(Ho,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:`${t_}px`,background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`}},i.createElement(Jv,{items:r.more,api:e})))}const o_=e=>Es((e=>({...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)),s_=e=>Es((e=>({...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)),r_=(e,t,i)=>{const n=[...i.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(i.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(n)}],!0)};function a_({api:e,app:t}){const{translator:n}=(0,i.useContext)(_c),[o]=function(e){const[t]=$c(e),[n]=Zc(t),[o]=Yc(e),[s,r]=(0,i.useState)(null);return(0,i.useEffect)((()=>{o&&t&&n&&r_(t,n,o)}),[o,t,n]),(0,i.useEffect)((()=>{if(!n)return;let e=!1,t=!1,i=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,i=i||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),r({canGoBack:e,canGoForward:t,canClear:i})}),[n]),[s,t,n]}(t);return i.createElement(Ho,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},i.createElement(Ho,{item:!0},i.createElement(Ao,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:n.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},i.createElement(o_,null))),i.createElement(Ho,{item:!0},i.createElement(Ao,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:n.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},i.createElement(s_,null))),i.createElement(Ho,{item:!0},i.createElement(Ao,{disabled:!o||!o.canClear,title:n.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},i.createElement(nf,null))))}const l_=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function c_([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function d_(){return l_.map(c_).join("")}function h_({app:e}){const t=_i(),[n]=kc(e);return n?i.createElement(Ho,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"}},i.createElement(Ho,{item:!0,style:{borderRight:`1px solid ${t.palette.divider}`}},i.createElement(a_,{api:n,app:e})),i.createElement(Ho,{item:!0,xs:!0,style:{backgroundColor:t.palette.background.darker,overflow:"hidden"}},i.createElement(n_,{api:n,app:e}))):null}let u_;u_="undefined"!=typeof window?window:"undefined"!=typeof self?self:r.g;let g_=null,p_=null;const m_=u_.clearTimeout,f_=u_.setTimeout,v_=u_.cancelAnimationFrame||u_.mozCancelAnimationFrame||u_.webkitCancelAnimationFrame,__=u_.requestAnimationFrame||u_.mozRequestAnimationFrame||u_.webkitRequestAnimationFrame;null==v_||null==__?(g_=m_,p_=function(e){return f_(e,20)}):(g_=function([e,t]){v_(e),m_(t)},p_=function(e){const t=__((function(){m_(i),e()})),i=f_((function(){v_(t),e()}),20);return[t,i]});class b_ extends i.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:i}=this.props;if(this._parentNode){const n=window.getComputedStyle(this._parentNode)||{},o=parseFloat(n.paddingLeft||"0"),s=parseFloat(n.paddingRight||"0"),r=parseFloat(n.paddingTop||"0"),a=parseFloat(n.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-r-a,d=l.width-o-s,h=this._parentNode.offsetHeight-r-a,u=this._parentNode.offsetWidth-o-s;(e||this.state.height===h&&this.state.scaledHeight===c)&&(t||this.state.width===u&&this.state.scaledWidth===d)||(this.setState({height:h,width:u,scaledHeight:c,scaledWidth:d}),"function"==typeof i&&i({height:h,scaledHeight:c,scaledWidth:d,width:u}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const i=t.ownerDocument.defaultView.ResizeObserver;null!=i?(this._resizeObserver=new i((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,i,n,o,s,r,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){r=function(e){const t=e.__resizeTriggers__,i=t.firstElementChild,n=t.lastElementChild,o=i.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,o.style.width=i.offsetWidth+1+"px",o.style.height=i.offsetHeight+1+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight},s=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;r(this),this.__resizeRAF__&&g_(this.__resizeRAF__),this.__resizeRAF__=p_((function(){s(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(i){i.call(t,e)})))}))};let e=!1,l="";n="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let i=0;i<c.length;i++)if(void 0!==t.style[c[i]+"AnimationName"]){h=c[i],l="-"+h.toLowerCase()+"-",n=d[i],e=!0;break}}i="resizeanim",t="@"+l+"keyframes "+i+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+i+"; "}return{addResizeListener:function(s,c){if(l)s.attachEvent("onresize",c);else{if(!s.__resizeTriggers__){const l=s.ownerDocument,c=u_.getComputedStyle(s);c&&"static"===c.position&&(s.style.position="relative"),function(i){if(!i.getElementById("detectElementResize")){const n=(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%; }',s=i.head||i.getElementsByTagName("head")[0],r=i.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(i.createTextNode(n)),s.appendChild(r)}}(l),s.__resizeLast__={},s.__resizeListeners__=[],(s.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const h=l.createElement("div");h.className="contract-trigger",s.__resizeTriggers__.appendChild(d),s.__resizeTriggers__.appendChild(h),s.appendChild(s.__resizeTriggers__),r(s),s.addEventListener("scroll",a,!0),n&&(s.__resizeTriggers__.__animationListener__=function(e){e.animationName===i&&r(s)},s.__resizeTriggers__.addEventListener(n,s.__resizeTriggers__.__animationListener__))}s.__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",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(n,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o=!1,disableWidth:s=!1,nonce:r,onResize:a,style:l={},tagName:c="div",...d}=this.props,{height:h,scaledHeight:u,scaledWidth:g,width:p}=this.state,m={overflow:"visible"},f={};let v=!1;return o||(0===h&&(v=!0),m.height=0,f.height=h,f.scaledHeight=u),s||(0===p&&(v=!0),m.width=0,f.width=p,f.scaledWidth=g),(0,i.createElement)(c,{ref:this._setRef,style:{...m,...l},...d},!v&&e(f))}}function y_(e){e?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function C_(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")}function w_({keyboard:e,hovering:t,updateKeyScroll:i,containerRef:n,currentScrollIndex:o,isModal:s,constraints:r}){return{handleKeyDown:t=>{const{keyCode:i,shiftKey:o=!1}=t.nativeEvent,r=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=s();switch(i){case Xu.TAB:if(l)o?Qu(a)||Yu(a):Yu(a)||Qu(a);else{if(!o)break;e.blur(!0)}r();break;case Xu.ENTER:case Xu.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),r();break;case Xu.ESCAPE:(t=>{const{currentTarget:i,target:o}=t,s=o.classList.contains("listbox-container"),r=C_(i.closest(".listbox-container")),a=1===r?.querySelectorAll(".listbox-container").length;if(s||a)e.blur(!0);else{y_(n.current),i.classList.add("last-focused"),e.blur();const t=i.closest(".listbox-container");t.setAttribute("tabIndex",-1),t?.focus()}})(t)}},handleOnMouseEnter:()=>{(()=>{const e=r?.select||r?.active,t=s();return e||t})()||(t.current=!0)},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current)return;const{keyCode:n,ctrlKey:s=!1,shiftKey:r=!1}=e;switch(n){case Xu.ARROW_UP:i({up:1});break;case Xu.ARROW_DOWN:i({down:1});break;case Xu.PAGE_UP:i({up:o.stop-o.start});break;case Xu.PAGE_DOWN:i({down:o.stop-o.start});break;case Xu.HOME:i({scrollPosition:s&&r?"overflowStart":"start"});break;case Xu.END:i({scrollPosition:s&&r?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const S_=(0,qt.Ay)("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function x_({text:e}){const{translator:t}=(0,i.useContext)(_c);return i.createElement(S_,null,t.get(e))}const L_=e=>Es((e=>({...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)),k_={fontSize:"12px"},E_=(0,qt.Ay)(Lo)((({theme:e,isLoading:t})=>({position:"absolute",top:0,left:0,height:48,zIndex:2,background:e.palette.custom.disabledBackground,opacity:1,color:e.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:t?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:e.palette.custom.disabledContrastText},"& i":{padding:"7px"}}))),D_=(0,qt.Ay)(Ho,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((({styles:e,isRtl:t})=>({flexDirection:t?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center",...e.header,"& *":{color:e.header.color}}))),I_=(0,qt.Ay)(Zo)((({styles:e})=>({...e.header,display:"block",alignItems:"center",paddingRight:"1px"})));function N_({translator:e,toggleLock:t,keyboard:n,isLoading:o}){const s=e.get("SelectionToolbar.ClickToUnlock");return i.createElement(E_,{title:s,tabIndex:n.enabled?0:-1,onClick:t,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?i.createElement(ml,{size:16,variant:"indeterminate",color:"primary"}):i.createElement(Jc,{disableRipple:!0,style:k_}),!o&&i.createElement(Zo,{fontSize:"14px"},s))}function A_(){return A_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},A_.apply(this,arguments)}let R_=0;const T_=function({layout:e,translator:t,styles:n,isRtl:o,showLock:s,showSearchIcon:r,isDrillDown:a,constraints:l,onShowSearch:c,classes:d,containerRect:h,isPopover:u,showToolbar:g,showDetachedToolbarOnly:p,containerRef:m,model:f,selectionState:v,isDirectQuery:_,selections:b,keyboard:y,autoConfirm:C}){const[w,S]=(0,i.useState)(p),[x,L]=(0,i.useState)(e?.qListObject?.qDimensionInfo?.qLocked),[k,E]=(0,i.useState)(!1);(0,i.useEffect)((()=>{L(e?.qListObject?.qDimensionInfo?.qLocked)}),[e?.qListObject?.qDimensionInfo?.qLocked]);const D=(0,i.useRef)(null),I=s&&x,N=!s&&x,A=r||N||a,R=9-(A?7:0),T=o?9-(A?7:0):4,q=(r?28:0)+(N?28:0)+(a?28:0),M=function({isLocked:e,setLocked:t,settingLockedState:i,model:n,setSettingLockedState:o}){return()=>{const s=new Date;if(s-R_<500)return Promise.resolve();if(i)return()=>{};o(!0),R_=s;const r=e?n.unlock:n.lock;return t(!e),r.call(n,"/qListObjectDef").catch((()=>{t(e)})).finally((()=>{setTimeout((()=>{o(!1)}),0)}))}}({isLocked:x,setLocked:L,settingLockedState:k,setSettingLockedState:E,model:f}),O=Vm({layout:e,model:f,translator:t,selectionState:v,isDirectQuery:_}),P=x||!s?void 0:[{key:"lock",type:void 0,label:t.get("SelectionToolbar.ClickToLock"),getSvgIconShape:ed,enabled:()=>!k&&!v.selectDisabled()&&ev(e),action:M}],F=l?.active?i.createElement(Hf,{title:t.get("Listbox.Search"),size:"large",style:{...k_,padding:"7px"}}):i.createElement(Ao,{onClick:c,tabIndex:-1,title:t.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},i.createElement(Hf,{style:k_}));(0,i.useEffect)((()=>{if(!D.current||!h)return;const e=function({containerRect:e,titleRef:t,iconsWidth:i,paddingLeft:n,paddingRight:o}){const s=n+o;return!!(e.width<(t?.current?.clientWidth??0)+i+s+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:h,titleRef:D,iconsWidth:q,paddingLeft:R,paddingRight:T});S(p||e)}),[q,R,T,D.current,p,Object.entries(h||{}).sort().join(",")]);const B=function({isDetached:e,showToolbar:t,containerRef:i,isLocked:n,listboxSelectionToolbarItems:o,extraItems:s,selections:r,keyboard:a,autoConfirm:l}){return{autoConfirm:l,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:i.current},extraItems:s,more:{enabled:!n,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:t,api:r,onConfirm:()=>{a?.focus()},onCancel:()=>{a?.focus()}}}}({isDetached:!u&&w,showToolbar:g,containerRef:m,isLocked:x,extraItems:P,listboxSelectionToolbarItems:O,selections:b,keyboard:y,autoConfirm:C}),W=i.createElement(Mf,A_({isRtl:o,layout:e},B));if(p)return W;const V=N?i.createElement(Jc,{size:"large",style:{...k_,padding:"7px"}}):void 0;return i.createElement(D_,{item:!0,container:!0,styles:n,isRtl:o,marginY:1,paddingLeft:`${R}px`,paddingRight:`${T}px`,className:"header-container"},I&&i.createElement(N_,{isLoading:k,translator:t,toggleLock:M,keyboard:y}),A&&i.createElement(Ho,{item:!0,container:!0,alignItems:"center",width:q,className:"header-action-container"},V||r&&F,a&&i.createElement(L_,{tabIndex:-1,title:t.get("Listbox.DrillDown"),style:{...k_,padding:"7px"}})),i.createElement(Ho,{item:!0,xs:!0,minWidth:0,justifyContent:o?"flex-end":"flex-start",className:d.listBoxHeader},i.createElement(I_,{variant:"h6",noWrap:!0,ref:D,title:e.title,styles:n},e.title)),i.createElement(Ho,{item:!0,display:"flex"},W))},q_="ListBoxInline",M_={listBoxHeader:`${q_}-listBoxHeader`,screenReaderOnly:`${q_}-screenReaderOnly`,listboxWrapper:`${q_}-listboxWrapper`},O_=(0,qt.Ay)(Ho,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((({theme:e,containerPadding:t,isGridMode:i,styles:n})=>({...n.background,[`& .${M_.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${M_.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${M_.listboxWrapper}`]:{padding:t},"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})));function P_({options:e,layout:t}){const{app:n,direction:o,frequencyMode:s,checkboxes:r,search:a=!0,focusSearch:l=!1,rangeSelect:c=!0,model:d,selections:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,showGray:f=!0,scrollState:v,renderedCallback:_,toolbar:b=!0,isPopover:y=!1,showLock:C=!1,components:w,selectDisabled:S=(()=>!1)}=e,x=_i(),{translator:L,keyboardNavigation:k,themeApi:E,constraints:D}=(0,i.useContext)(_c),{checkboxes:I=r}=t||{},N=qv({app:n,themeApi:E,theme:x,components:w,checkboxes:I}),A=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:n?.layout}),R=(0,i.useRef)(),[T,q]=Qc(),[M,O]=(()=>{const[e,t]=(0,i.useState)({});return[e,(0,i.useCallback)((e=>{t({current:e})}),[t])]})(),[P,F]=(0,i.useState)(!1),[B,W]=(0,i.useState)(!1),V=(0,i.useRef)(!1),[z,H]=(0,i.useState)({down:0,up:0,scrollPosition:""}),j=e=>H((t=>({...t,...e}))),[U,$]=(0,i.useState)({start:0,stop:0}),[G]=kc(n),[K]=(0,i.useState)((()=>Qf({selectDisabled:S}))),X=function({containerRef:e,enabled:t}){const[n,o]=(0,i.useState)(!1);return{enabled:t,active:n,innerTabStops:!t||n,blur(i){if(!t)return;o(!1);const n=C_(e.current)||e.current?.parentElement;var s;s=e.current,s?.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),y_(e.current),i&&n&&(n.setAttribute("tabIndex",0),n.focus())},focus(){if(!t)return;o(!0);const i=e.current,n=i?.querySelector(".search input"),s=i?.querySelector(".value.last-focused"),r=i?.querySelector(".value.selector, .value"),a=i?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=i?.querySelector("#listbox-unlock-button"),c=n||s||r||l||a;c?.setAttribute("tabIndex",0),c?.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),i=e||t;i?.setAttribute("tabIndex",0),i?.focus()}}}({containerRef:R,enabled:k}),Z=(0,i.useCallback)((()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:n,appSelections:G})),[n,G]),Y=t?.qListObject.qDimensionInfo.qError,Q=Y&&D.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:J,handleOnMouseEnter:ee,handleOnMouseLeave:te,globalKeyDown:ie}=(0,i.useMemo)((()=>w_({keyboard:X,hovering:V,updateKeyScroll:j,containerRef:R,currentScrollIndex:U,app:n,appSelections:G,constraints:D,isModal:Z})),[X,V,j,R,U,n,G,D,Z]);(0,i.useEffect)((()=>(document.addEventListener("keydown",ie),()=>{document.removeEventListener("keydown",ie)})),[ie]),(0,i.useEffect)((()=>{!0===a&&W(!0);const e=()=>{F(!0)},t=()=>{F(!1),"toggle"===a&&W(!1)};return y&&(h.isActive()||(h.begin("/qListObjectDef"),h.on("activated",e),h.on("deactivated",t)),F(y)),b&&h&&(h.isModal()||(h.on("activated",e),h.on("deactivated",t)),F(h.isActive())),()=>{h&&h.removeListener&&(h.removeListener("activated",e),h.removeListener("deactivated",t))}}),[b,h,y]),(0,i.useEffect)((()=>{if(M&&M.current&&(a&&l||"toggle"===a&&B)){const e=M.current.querySelector("input");e&&e.focus()}}),[M&&M.current,B,a,l]);const{wildCardSearch:ne,searchEnabled:oe,autoConfirm:se=!1,layoutOptions:re={}}=t??{},ae=t?.qListObject?.qDimensionInfo?.qLocked,le=!1!==oe&&"toggle"===a&&!ae,ce="H"===t?.qListObject?.qDimensionInfo?.qGrouping,de=t?.title?.length&&!1!==t?.showTitle,he=b&&!de&&!y,ue=b&&de||y,ge="rtl"===o;if(!d||!t||!L)return null;const pe=!0===a||"toggle"===a&&B&&!1!==oe,me=re.dense??!1,fe=()=>{W(!B)},ve=()=>{if("toggle"===a)fe();else{const e=M.current.querySelector("input");e?.focus()}},_e=pe&&"toggle"===a,be="grid"===re?.dataLayout,ye=function({isGridMode:e,dense:t,height:i,layoutOrder:n}){let o;if(e){let s;s=Ag({isGridMode:e,dense:t})>i?"0px":"2px",o="row"===n?`${s} 4px`:`${s} 6px ${s} 4px`}else o=void 0;return o}({isGridMode:be,dense:me,height:R.current?.clientHeight,layoutOrder:re.layoutOrder});Y&&_?.();const Ce=ue?yh+10:0,we=i.createElement(T_,{showSearchIcon:le,isDrillDown:ce,onShowSearch:fe,isPopover:y,showToolbar:P,isDirectQuery:A,autoConfirm:se,showDetachedToolbarOnly:he,layout:t,translator:L,styles:N,isRtl:ge,showLock:C,constraints:D,classes:M_,containerRect:q,containerRef:R,model:d,selectionState:K,selections:h,keyboard:X});return i.createElement(i.Fragment,null,he&&we,i.createElement(O_,{className:"listbox-container",container:!0,tabIndex:X.enabled?-1:void 0,direction:"column",gap:0,containerPadding:ye,styles:N,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:J,onMouseEnter:ee,onMouseLeave:te,ref:e=>{R.current=e,T(e)},isGridMode:be,"aria-label":X.active?L.get("Listbox.ScreenReaderInstructions"):""},ue&&we,i.createElement(Ho,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Ce,role:"region","aria-label":L.get("Listbox.ResultFilterLabel")},i.createElement(Ho,{item:!0,ref:O},i.createElement(Gf,{selections:h,selectionState:K,model:d,dense:me,keyboard:X,visible:pe,search:a,autoFocus:_e,wildCardSearch:ne,searchEnabled:oe,direction:o,hide:le&&fe,styles:N})),i.createElement(Ho,{item:!0,xs:!0,className:M_.listboxWrapper},Y?i.createElement(x_,{text:Q}):i.createElement(b_,null,(({height:e,width:r})=>i.createElement(Om,{model:d,app:n,constraints:D,layout:t,selections:h,selectionState:K,direction:o,frequencyMode:s,rangeSelect:c,checkboxes:I,height:e,width:r,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,keyboard:X,showGray:f,scrollState:v,keyScroll:{state:z,reset:()=>H({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:U,set:$},renderedCallback:_,onCtrlF:ve,isModal:Z,styles:N})))))))}const F_=i.memo(P_),B_=function({options:e={}}){const{model:t}=e,[n]=Zc(t);return i.createElement(F_,{options:e,layout:n})};const W_={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function V_(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const z_=(e={})=>{const{__DO_NOT_USE__:t={},...i}=e;return{...i,update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1,...t}};function H_({app:e,fieldIdentifier:t,qId:n,stateName:o,element:s,options:r,renderedCallback:a}){const{isExistingObject:l,hasExternalSelectionsApi:c}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:n,options:r});l||Object.assign(r,{frequencyMode:V_(r.frequencyMode)});const[d,h]=(0,i.useState)(0);(0,i.useEffect)((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");h(d+1)}),[l,c]);const u=l?function({app:e,qId:t,options:n={}}){const[o,s]=(0,i.useState)(),[r]=zc(),{sessionModel:a}=n,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(n).filter((e=>l.includes(e)));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,i.useEffect)((()=>{Promise.resolve(a||async function(t){return r.get(t)||await e.getObject(t)}(t)).then((e=>{!function(e){r.get(e.id)||(r.set(e.id,e),e.once("closed",(()=>{r.clear(e.id)})))}(e),s(e)}))}),[]),o}({app:e,qId:n,options:r}):function({app:e,fieldIdentifier:t,stateName:n,options:o={}}){const[s,r]=(0,i.useState)(""),[a,l]=(0,i.useState)(!0),[c,d]=(0,i.useState)(),[h,u]=(0,i.useState)(),g=o.title??h;let{histogram:p=!1,frequencyMode:m="N"}=o;s&&s.failedToFetchFieldDef&&(p=!1,m="N"),(0,i.useEffect)((()=>{const i=p||"N"!==m;t.qLibraryId&&i?async function(){try{const i=await e.getDimension(t.qLibraryId),n=await i.getLayout();u(n.qDim.title),"N"===n.qDim.qGrouping?r(n.qDim.qFieldDefs?n.qDim.qFieldDefs[0]:""):r({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),r({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),u(t))}),[]);const{dense:f,checkboxes:v,listLayout:_,properties:b={}}=o,y={dense:f};"horizontal"===_&&(y.dataLayout="grid",y.layoutOrder="column",y.maxVisibleColumns={auto:!0},y.maxVisibleRows={auto:!1,maxRows:1});const C=(0,i.useRef)();C.current||(C.current=d_());const w=ic()(!0,{},W_,{qInfo:{qId:C.current},qListObjectDef:{qStateName:n,qFrequencyMode:p&&"N"===m?"V":m},histogram:p,checkboxes:v,layoutOptions:y,title:g});let S;if(ic()(!0,w,b),t.qLibraryId?(w.qListObjectDef.qLibraryId=t.qLibraryId,S=t.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[t],S=t),"P"!==m&&p)if(s?.multiFieldDim)w.frequencyMax="fetch";else{const e=t.qLibraryId?s:S;w.frequencyMax={qValueExpression:Rm(e)}}const[x]=jc(w,a?null:e,S,n);return(0,i.useEffect)((()=>{x&&d(x)}),[x]),c}({app:e,fieldIdentifier:t,stateName:o,options:r}),g=(0,i.useRef)(s),p=c?r.selectionsApi:Yf(e,u,[g,".njs-action-toolbar-more",".njs-action-toolbar-popover"],r)[0],m=(0,i.useMemo)((()=>({...r,selections:p,model:u,app:e,renderedCallback:a})),[r,p,u,e]);return p&&u?i.createElement(B_,{options:m}):null}const j_={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function U_({app:e,fieldIdentifier:t,stateName:n,element:o,options:s={}}){const[r,a]=(0,i.useState)(!!s.show);return i.createElement(Mv,{show:r,app:e,alignTo:{current:o},anchorOrigin:s.anchorOrigin,transformOrigin:s.transformOrigin,close:()=>{a(!1),s.onPopoverClose&&s.onPopoverClose()},fieldName:t,stateName:n,autoFocus:s.autoFocus,components:s.components})}function $_(e,t){for(let i=0;i<e.length;++i)e[i]>=0&&e[i]>=t&&++e[i];e.push(t)}function G_(e,t){let i=0;for(let n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i}const K_=e=>({qDef:{qFieldDefs:[e]}}),X_=e=>({qDef:{qDef:e}});function Z_({dc:e,def:t,properties:i}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const n=i,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(i){const s="string"==typeof i?K_(i):{...i,qDef:i.qDef||{}};return s.qDef.cId=s.qDef.cId||d_(),s.qDef.qSortCriterias=s.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],s.qOtherTotalSpec=s.qOtherTotalSpec||{},s.qAttributeExpressions=s.qAttributeExpressions||[],s.qAttributeDimensions=s.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(s),$_(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(s,n)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)),s},removeDimension(i){const o=e.qDimensions.splice(i,1)[0];return G_(e.qInterColumnSortOrder,i),t.dimensions.removed(o,n,i),o},addMeasure(i){const s="string"==typeof i?X_(i):{...i,qDef:i.qDef||{}};s.qDef.cId=s.qDef.cId||d_(),s.qSortBy=s.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},s.qAttributeDimensions=s.qAttributeDimensions||[],s.qAttributeExpressions=s.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(s),$_(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(s,n)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(s))},removeMeasure(i){const o=e.qMeasures.splice(i,1)[0];G_(e.qInterColumnSortOrder,e.qDimensions.length+i),t.measures.removed(o,n,i)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}const Y_=e=>({qDef:{qFieldDefs:[e]}});function Q_({dc:e,def:t,properties:i}){e.qInitialDataFetch=e.qInitialDataFetch||[];const n=i,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(i){const o="string"==typeof i?Y_(i):{...i,qDef:i.qDef||{}};return o.qDef.cId=o.qDef.cId||d_(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach((t=>{e[t]=o[t]})),t.dimensions.added(o,n),o},removeDimension(i){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,n,i),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const J_=e=>{let t;var i;return t="string"==typeof e?ic()(!0,{},W_,{qListObjectDef:(i=e,{qDef:{qFieldDefs:[i]}})}):e.qListObjectDef?ic()(!0,{},W_,e):ic()(!0,{},W_,{qListObjectDef:e}),t};function eb({children:e,halo:t}){return{async addDimension(i){const n=J_(i),o=n.qListObjectDef;if(o.qDef.cId=o.qDef.cId||d_(),!n.title)if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),i=await e.getProperties();i.qDim.qLabelExpression?n.title={qStringExpression:{qExpr:i.qDim.qLabelExpression}}:n.title=i.qDim.title}else n.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:n,qChildren:[]})},addMeasure(){}}}function tb(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function ib({sn:e,properties:t,fields:i,children:n},o){if(!i.length)return;const s=e.qae.data.targets[0];if(!s)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:r}=s,a=r.split("/");let l=t;for(let e=0;e<a.length;e++){const t=a[e];l=t?l[t]:l}const c=function(e){return e.match("/qListObjectDef")?Q_:e.match("/qChildListDef")?eb:Z_}(r),d=c({dc:l,def:s,properties:t,children:n,halo:o});for(let e=0;e<i.length;++e){const t=i[e];"measure"===tb(t)?await d.addMeasure(t):await d.addDimension(t)}}const nb=(e,t,i)=>{if(null==e||null==t)return i;const n=t.split(".");let o=e;for(let e=0;e<n.length;++e){const t=n[e];if(""!==t){if(void 0===o[t]||null===o[t])return i;o=o[t]}}return o},ob=(e,t,i)=>{if(null==e||null==t)return;const n=t.split("."),o=n[n.length-1];let s=e;for(let e=0;e<n.length-1;++e){const t=n[e];void 0!==s[t]&&null!==s[t]||(s[t]=Number.isNaN(+n[e+1])?{}:[]),s=s[t]}void 0!==i&&"__proto__"!==o&&"constructor"!==o?s[o]=i:delete s[o]},sb=e=>0===Object.keys(e).length&&e.constructor===Object,rb=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let i=e.indexOf(t[0]);if(-1!==i){for(let n=0;n<t.length;n++){const o=e.indexOf(t[n]);if(i>o)return!1;i=o}return!0}return!1},ab=function(e,t){let i;for(i=0;i<e.length;++i)e[i]>=0&&e[i]>=t&&++e[i];e.push(t)},lb=function(e,t){let i,n=0;for(i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n},cb=2**53-1;function db(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function hb(e,t){const i=ic()(!0,{},t,e);return nb(i,"qOtherTotalSpec.qOtherCounted")||ob(i,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),nb(i,"qOtherTotalSpec.qOtherLimit")||ob(i,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),i.hasOwnProperty("othersLabel")||(i.othersLabel="Others"),i}function ub(e,t){return ic()(!0,{},t,e)}function gb(e,t,i){return"function"==typeof e?e(t):Number.isNaN(+e)?i:e}const pb={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===nb(e,t)&&ob(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:db,importCommonProperties:function(e,t,i){const n="masterobject"===nb(t,"properties.qInfo.qType")?"masterobject":nb(i,"qInfo.qType");ob(e,"qInfo.qType",n),e.visualization=i.visualization},copyPropertyIfExist:function(e,t,i){t.hasOwnProperty(e)&&(i[e]=t[e])},copyPropertyOrSetDefault:function(e,t,i,n){t.hasOwnProperty(e)?i[e]=t[e]:i[e]=n},createDefaultDimension:hb,createDefaultMeasure:ub,resolveValue:gb,getHypercubePath:function(e){const t=nb(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({exportFormat:e,newHyperCubeDef:t}){const i=e.data[0],n=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=i.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==n)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=i.interColumnSortOrder.concat());o!==n;)o<n?(ab(t.qInterColumnSortOrder,o),++o):(--o,lb(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:i}){let n={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach((o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(n.qLayoutExclude.quarantine=ic()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&i?ob(n,`${i}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||db(o)?n[o]=e.properties[o]:n.qLayoutExclude.disabled[o]=e.properties[o]})),n=ic()(!0,{},t,n),null===n.components&&(n.components=[]),n},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const i=e.data[0],n=t.dimensions||{max:0},o=t.measures||{max:0},s=gb(o.max,i.dimensions.length,cb),r=gb(o.min,i.dimensions.length,0);return{maxDimensions:gb(n.max,s,cb),minDimensions:gb(n.min,r,0),maxMeasures:s,minMeasures:r}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:i,maxMeasures:n,minMeasures:o}){const s=e.data[0];return s.dimensions.length>t&&t>0||s.measures.length>n&&n>0||s.excludedDimensions.length>0&&s.dimensions.length+s.excludedDimensions.length>i||s.excludedMeasures.length>0&&s.measures.length+s.excludedMeasures.length>o||!n&&s.measures.length>0||!t&&s.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:i,maxMeasures:n,minMeasures:o,newHyperCubeDef:s}){const r=e.data[0];s.qLayoutExclude||(s.qLayoutExclude={}),s.qLayoutExclude.qHyperCubeDef||(s.qLayoutExclude.qHyperCubeDef={}),(r.dimensions.length>t&&t>0||r.excludedDimensions&&r.excludedDimensions.length&&r.dimensions.length+r.excludedDimensions.length>i)&&(s.qLayoutExclude.qHyperCubeDef.qDimensions||(s.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(r.measures.length>n&&n>0||r.excludedMeasures&&r.excludedMeasures.length&&r.measures.length+r.excludedMeasures.length>o)&&(s.qLayoutExclude.qHyperCubeDef.qMeasures||(s.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&r.measures.length&&(s.qLayoutExclude.qHyperCubeDef.qMeasures||(s.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&r.dimensions.length&&(s.qLayoutExclude.qHyperCubeDef.qDimensions||(s.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:i,newHyperCubeDef:n,defaultDimension:o}){const s=e.data[0];let r;if(t>0)for(r=0;r<s.dimensions.length;++r)n.qDimensions.length<t?n.qDimensions.push(hb(s.dimensions[r],o)):n.qLayoutExclude.qHyperCubeDef.qDimensions.push(hb(s.dimensions[r],o));else if(s.dimensions.length)for(r=0;r<s.dimensions.length;++r)n.qLayoutExclude.qHyperCubeDef.qDimensions.push(hb(s.dimensions[r],o));if(s.excludedDimensions.length)for(r=0;r<s.excludedDimensions.length;++r)n.qDimensions.length<i?n.qDimensions.push(hb(s.excludedDimensions[r],o)):n.qLayoutExclude.qHyperCubeDef.qDimensions.push(hb(s.excludedDimensions[r],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:i,newHyperCubeDef:n,defaultMeasure:o}){const s=e.data[0];let r;if(t>0)for(r=0;r<s.measures.length;++r)n.qMeasures.length<t?n.qMeasures.push(ub(s.measures[r],o)):n.qLayoutExclude.qHyperCubeDef.qMeasures.push(ub(s.measures[r],o));else if(s.measures.length)for(r=0;r<s.measures.length;++r)n.qLayoutExclude.qHyperCubeDef.qMeasures.push(ub(s.measures[r],o));if(s.excludedMeasures.length)for(r=0;r<s.excludedMeasures.length;++r)n.qMeasures.length<i?n.qMeasures.push(ub(s.excludedMeasures[r],o)):n.qLayoutExclude.qHyperCubeDef.qMeasures.push(ub(s.excludedMeasures[r],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:i}){if(t.dimensions&&"function"==typeof t.dimensions.added){const n=nb(e,i||"").qHyperCubeDef,o=[...n.qDimensions];n.qDimensions=[],o.forEach((i=>{n.qDimensions.push(i),t.dimensions.added(i,e)}))}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:i}){if(t.measures&&"function"==typeof t.measures.added){const n=nb(e,i||"").qHyperCubeDef,o=[...n.qMeasures];n.qMeasures=[],o.forEach((i=>{n.qMeasures.push(i),t.measures.added(i,e)}))}}},mb={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const i=function(e=1){const t={data:[],properties:{}};for(let i=0;i<e;++i)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),n=e.qProperty,o=nb(n,t||""),s=o.qHyperCubeDef,r=i.data[0];if(s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),r.dimensions.push(...s.qDimensions),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qDimensions&&r.excludedDimensions.push(...s.qLayoutExclude.qHyperCubeDef.qDimensions),r.measures.push(...s.qMeasures),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qMeasures&&r.excludedMeasures.push(...s.qLayoutExclude.qHyperCubeDef.qMeasures),r.interColumnSortOrder=s.qInterColumnSortOrder.concat(),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=s.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();rb(e,r.interColumnSortOrder)&&(r.interColumnSortOrder=e)}return delete s.qLayoutExclude,Object.keys(n).forEach((e=>{i.properties[e]=n[e]})),t&&(i.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((e=>{i.properties.hasOwnProperty(e)||(i.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(pb.restoreChangedProperties(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!sb(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude,i}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:i={},defaultPropertyValues:n={},hypercubePath:o}){const s={qChildren:[]},r=pb.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=nb(t,o||"").qHyperCubeDef,l=nb(r,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u}=pb.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:i}),{defaultDimension:g=pb.getDefaultDimension(),defaultMeasure:p=pb.getDefaultMeasure()}=n;return l.qDimensions.length=0,l.qMeasures.length=0,pb.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u})&&pb.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u,newHyperCubeDef:l}),pb.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),pb.addDefaultMeasures({exportFormat:e,maxMeasures:h,minMeasures:u,newHyperCubeDef:l,defaultMeasure:p}),pb.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),pb.copyPropertyIfExist("qMaxStackedCells",a,l),pb.copyPropertyIfExist("qNoOfLeftDims",a,l),pb.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),pb.copyPropertyOrSetDefault("qMode",a,l,"S"),pb.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),pb.copyPropertyOrSetDefault("qSortbyYValue",a,l),pb.copyPropertyOrSetDefault("qIndentMode",a,l),pb.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),pb.importCommonProperties(r,e,t),pb.updateDimensionsOnAdded({newProperties:r,dataDefinition:i,hypercubePath:o}),pb.updateMeasuresOnAdded({newProperties:r,dataDefinition:i,hypercubePath:o}),s.qProperty=r,s}(e)},fb=e=>nb(e,"data.targets.0.propertyPath"),vb=async({halo:e,model:t,cellRef:i,newType:n,properties:o,viewDataMode:s=!1})=>{const r=o?{qProperty:o}:await t.getFullPropertyTree(),a=i.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return mb.exportProperties})(fb(e)))(a);if(!l)throw new Error("Source chart does not support conversion");const c=await(async({halo:e,name:t,version:i})=>{const{types:n}=e;return await n.get({name:t,version:i}).supernova()})({halo:e,name:n}),d=c.qae,h=(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return mb.importProperties})(fb(e)))(d);if(!h)throw new Error("Target chart does not support conversion");return h({exportFormat:l({propertyTree:r,hypercubePath:pb.getHypercubePath(a),viewDataMode:s}),initialProperties:{qInfo:{qType:n},visualization:n,...nb(d,"properties.initial",{})},dataDefinition:nb(d,"data.targets.0.",{}),hypercubePath:pb.getHypercubePath(d),viewDataMode:s})},_b={hypercube:mb};function bb(e){return(0,Ot.Ay)("MuiIcon",e)}(0,Mt.A)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yb=["baseClassName","className","color","component","fontSize"],Cb=(0,qt.Ay)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"inherit"!==i.color&&t[`color${(0,ui.A)(i.color)}`],t[`fontSize${(0,ui.A)(i.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),wb=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiIcon"}),{baseClassName:n="material-icons",className:o,color:s="inherit",component:r="span",fontSize:a="medium"}=i,l=(0,Et.A)(i,yb),c=(0,Dt.A)({},i,{baseClassName:n,color:s,component:r,fontSize:a}),d=(e=>{const{color:t,fontSize:i,classes:n}=e,o={root:["root","inherit"!==t&&`color${(0,ui.A)(t)}`,`fontSize${(0,ui.A)(i)}`]};return(0,Nt.A)(o,bb,n)})(c);return(0,Ft.jsx)(Cb,(0,Dt.A)({as:r,className:(0,It.A)(n,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));wb.muiName="Icon";const Sb=wb,xb=e=>Es((e=>({...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 Lb({d:e}){const t=_i();let n="inherit",o=t.palette.success.main;e.missing?o=t.palette.warning.main:e.error&&(n="error",o=t.palette.error.main);const s={color:o},r=i.createElement(Zo,{style:{lineHeight:"30px",paddingRight:t.spacing(1)}},i.createElement(Sb,null,e.missing||e.error?i.createElement(xb,{style:s}):i.createElement(gh,{style:s})));return i.createElement(Ho,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},i.createElement(Ho,{item:!0},r),i.createElement(Ho,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},i.createElement(Zo,{noWrap:!0,component:"p"},i.createElement(Zo,{component:"span",variant:"subtitle2",color:n},e.description),i.createElement(Zo,{component:"span"}," "),i.createElement(Zo,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function kb({data:e}){const t=_i();return i.createElement(Ho,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,n)=>{const o=e.descriptions.map(((e,t)=>i.createElement(Lb,{d:e,key:t})));return o.length>0&&i.createElement(Ho,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:t.spacing(2)}},i.createElement(Zo,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function Eb({title:e="Error",message:t="",data:n=[]}){return i.createElement(Ho,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},i.createElement(Ho,{item:!0},i.createElement(xb,{style:{fontSize:"38px"}})),i.createElement(Ho,{item:!0},i.createElement(Zo,{variant:"h6",align:"center","data-tid":"error-title"},e)),i.createElement(Ho,{item:!0},i.createElement(Zo,{variant:"subtitle1",align:"center","data-tid":"error-message"},t)),i.createElement(kb,{data:n}))}function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Db.apply(this,arguments)}const Ib="Progress",Nb={root:`${Ib}-root`,front:`${Ib}-front`,back:`${Ib}-back`},Ab=(0,qt.Ay)("div")((({theme:e})=>({[`&.${Nb.root}`]:{position:"relative",display:"inline-block"},[`& .${Nb.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${Nb.back}`]:{color:e.palette.divider}}))),Rb={small:16,medium:32,large:64,xlarge:128};function Tb({size:e="medium",...t}){const n=Rb[e];return i.createElement(Ab,{className:Nb.root},i.createElement(ml,Db({variant:"determinate",value:100,className:Nb.back,size:n,thickness:3},t)),i.createElement(ml,Db({variant:"indeterminate",disableShrink:!0,className:Nb.front,size:n,thickness:3},t)))}function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},qb.apply(this,arguments)}const Mb={stripes:"LongRunningQuery-stripes"},Ob=(0,qt.Ay)(Ho)((()=>({[`& .${Mb.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 Pb({cancel:e,translator:t,...n}){return i.createElement(i.Fragment,null,i.createElement(Ob,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},i.createElement(Ho,{item:!0},i.createElement(Tb,null)),i.createElement(Ho,{item:!0},i.createElement(Zo,{variant:"h6",align:"center","data-tid":"update-active"},t.get("Object.Update.Active")))),i.createElement(Ho,qb({item:!0},n),i.createElement($a,{variant:"contained",onClick:e},t.get("Cancel"))))}function Fb({retry:e,translator:t,...n}){return i.createElement(i.Fragment,null,i.createElement(Ho,{item:!0},i.createElement(xb,{style:{fontSize:"38px"}})),i.createElement(Ho,{item:!0},i.createElement(Zo,{variant:"h6",align:"center","data-tid":"update-cancelled"},t.get("Object.Update.Cancelled"))),i.createElement(Ho,{item:!0},i.createElement($a,qb({variant:"contained",onClick:e},n),t.get("Retry"))))}function Bb({canCancel:e,canRetry:t,api:n}){const{translator:o}=(0,i.useContext)(_c);return i.createElement(Ho,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Mb.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&i.createElement(Pb,{cancel:n.cancel,translator:o,className:Mb.cancel}),t&&i.createElement(Fb,{retry:n.retry,translator:o,className:Mb.retry}))}function Wb(){return i.createElement(Ho,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},i.createElement(Tb,{size:"large"}))}const Vb="Header",zb={containerStyle:`${Vb}-containerStyle`,containerTitleStyle:`${Vb}-containerTitleStyle`},Hb=(0,qt.Ay)(Ho)((({theme:e})=>({[`&.${zb.containerStyle}`]:{flexGrow:0},[`&.${zb.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}}))),jb=function({layout:e,sn:t,anchorEl:n,hovering:o,focusHandler:s,titleStyles:r={}}){const a=e.showTitles&&!!e.title,l=e.showTitles&&!!e.subtitle,c=e.qSelectionInfo&&e.qSelectionInfo.qInSelections,[d,h]=(0,i.useState)([]),[u,g]=Qc(),[p,m]=(0,i.useState)(!1);(0,i.useEffect)((()=>{t&&t.component&&t.component.isHooked&&t.component.observeActions((e=>{h([...e,...t&&t.selectionToolbar&&t.selectionToolbar.items||[]])}))}),[t]),(0,i.useEffect)((()=>{if(!g)return;const{width:e}=g;m(e<221)}),[g]);const f=a||l,v=[zb.containerStyle,...f?[zb.containerTitleStyle]:[]],_=(o||c)&&(p||!f),b=f&&!_&&!p,y=i.createElement(Mf,{show:b,selections:{show:c,api:t.component.selections,onKeyDeactivate:s.refocusContent},actions:d,popover:{show:_,anchorEl:n},focusHandler:s,layout:e});return i.createElement(Hb,{ref:u,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},i.createElement(Ho,{item:!0,zeroMinWidth:!0,xs:!0},i.createElement(Ho,{container:!0,wrap:"nowrap",direction:"column"},a&&i.createElement(Zo,{variant:"h6",noWrap:!0,className:"njs-cell-title",style:r.main},e.title),l&&i.createElement(Zo,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:r.subTitle},e.subtitle))),i.createElement(Ho,{item:!0},y))},Ub="Footer-itemStyle",$b=(0,qt.Ay)(Ho)((({theme:e})=>({[`& .${Ub}`]:{minWidth:0,paddingTop:e.spacing(1)}}))),Gb=function({layout:e,titleStyles:t={}}){return e&&e.showTitles&&e.footnote?i.createElement($b,{container:!0},i.createElement(Ho,{item:!0,className:Ub},i.createElement(Zo,{noWrap:!0,variant:"body2",className:"njs-cell-footer",style:t.footer},e.footnote))):null};class Kb{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 Xb=function({sn:e,snOptions:t,snPlugins:n,layout:o,appLayout:s,halo:r}){const{component:a}=e,{theme:l,language:c,constraints:d,interactions:h,keyboardNavigation:u}=(0,i.useContext)(_c),[g]=(0,i.useState)((()=>new Kb)),[p,m]=(0,i.useState)(!1),[f,v]=(0,i.useState)(0),[_,b,y]=Qc(),[C,w]=(0,i.useState)(null),S=(0,i.useCallback)((e=>{e&&w(e)}),[]);return(0,i.useEffect)((()=>{if(C)return a.created({options:t}),a.mounted(C),m(!0),()=>{g.stop(),a.willUnmount()}}),[C,a]),(0,i.useEffect)((()=>{p&&C&&b&&(!a.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||g.schedule((()=>{const i=[];return d.passive||i.push("passive"),d.active||i.push("interact"),d.select||i.push("select"),d.edit||i.push("edit"),r.app&&r.app.session&&i.push("fetch"),Promise.resolve(a.render({layout:o,options:t,plugins:n,embed:r.public.nebbie,context:{constraints:d,interactions:h,theme:r.public.theme,appLayout:s,keyboardNavigation:u,...a.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(s||{}).qLocaleInfo,permissions:i}}})).then((e=>{!1!==e&&(0===f&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),v(f+1))}))})))}),[b,t,n,C,y,o,s,l,c,d,h,p,u]),i.createElement("div",{ref:_,"data-render-count":f,style:{position:"relative",height:"100%"},className:"njs-viz"},i.createElement("div",{ref:S,style:{position:"absolute",width:"100%",height:"100%"}}))},Zb=(e,t)=>{switch(t.type){case"LOADING":return{...e,loading:!0};case"LOADED":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization};case"RENDER":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null};case"LONG_RUNNING_QUERY":return{...e,longRunningQuery:!0};case"ERROR":return{...e,loading:!1,longRunningQuery:!1,error:t.error};default:throw new Error(`Unhandled type: ${t.type}`)}};function Yb({delay:e=750}){const[t,n]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const t=setTimeout((()=>n(!0)),e);return()=>clearTimeout(t)}),[]),t?i.createElement(Wb,null):null}const Qb=e=>!e.qError||7005===e.qError.qErrorCode,Jb=(e,t,i,n,o)=>[...Array(e).keys()].map((e=>{const s=!(!t||!t[e]),r=s&&t[e].qError&&7005===t[e].qError.qErrorCode,a=s&&!r&&t[e].qError,l=r&&t[e].qCalcCondMsg,c=`${a?n:r?l||o:s&&t[e].qFallbackTitle||""}`,d=i(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!s&&!a&&e>=t.length||r,error:a}})),ey=e=>e&&(Array.isArray(e)?e:[e])||[],ty=(e,t,i,n)=>{const o=n.dimensions.min(),s=n.measures.min(),r=n.resolveLayout(t);return{reqDimErrors:Jb(o,ey(r.qDimensionInfo||r.qItems),(e=>n.dimensions.description(i,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Jb(s,ey(r.qMeasureInfo),(e=>n.measures.description(i,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},iy=(0,i.forwardRef)((({halo:e,model:t,initialSnOptions:n,initialSnPlugins:o,initialError:s,onMount:r,currentId:a,emitter:l},c)=>{const{app:d,types:h}=e,{nebbie:u}=e.public,{theme:g,translator:p,language:m,keyboardNavigation:f,disableCellPadding:v=!1}=(0,i.useContext)(_c),_=_i(),[b,y,C]=Qc(),[w,S]=(0,i.useReducer)(Zb,{loading:!1,loaded:!1,longRunningQuery:!1,error:(x=s)?{title:x.message}:null,sn:null,visualization:null});var x;const[L,k]=(0,i.useState)(t),[E,{validating:D,canCancel:I,canRetry:N},A]=Zc(L),[R]=Yc(d),[T,q,M]=Qc(),[O,P]=(0,i.useState)(n),[F,B]=(0,i.useState)(o),W=`njs-cell-${a}`,[V]=Yf(d,L,[`#${W}`,".njs-action-toolbar-popover"]),[z,H]=(0,i.useState)(!1),j=(0,i.useRef)({enter:null,leave:null}),{titleStyles:U,bgColor:$,bgImage:G,border:K,borderRadius:X,boxShadow:Z}=((e,t,n,o)=>(0,i.useMemo)((()=>{if(e&&t){const i=e.components?e.components.find((e=>"general"===e.key)):null,o={main:kv(i,"main",t,e.visualization),footer:kv(i,"footer",t,e.visualization),subTitle:kv(i,"subTitle",t,e.visualization)},s=xv(i,t,e.visualization),r=Sv(i,n),a=function(e,t,i){const n=yv(e?.borderColor,"","borderColor",t,i),o=e?.borderWidth||_v("","borderWidth",t,i);return o&&n?`${o} solid ${n}`:void 0}(i,t,e.visualization),l=function(e,t,i){return e?.borderRadius||_v("","borderRadius",t,i)}(i,t,e.visualization);return{titleStyles:o,bgColor:s,bgImage:r,border:a,borderRadius:l,boxShadow:Lv(i,t,e.visualization)}}return{}}),[e,t,n,o]))(E,e.public.theme,e.app,g),Y=(0,i.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,i.useEffect)((()=>{Kf(Y.current)}),[]),Y.current.blurCallback=t=>{e.root.toggleFocusOfCells(),t&&M&&M.focus()},Y.current.refocusContent=()=>{w.sn.component&&"function"==typeof w.sn.component.focus&&w.sn.component.focus()},(0,i.useEffect)((()=>{if(s)return void r();if(!R||!E)return;if(w.visualization===E.visualization&&w.sn)return void(async e=>{const[t,i]=await(async(e,t,{targets:i},n)=>{const{hasUnfulfilledErrors:o,aggMinD:s,aggMinM:r,hasLayoutErrors:a,layoutErrors:l}=((e,t,i)=>{let n=!1,o=0,s=0,r=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],h=d.dimensions.min(),u=d.measures.min(),g=d.resolveLayout(i),p=ey(g.qDimensionInfo||g.qItems).filter(Qb),m=ey(g.qMeasureInfo).filter(Qb);if(o+=h,s+=u,(p.length<h||m.length<u)&&(n=!0),g.qError){r=!0,a=7005===g.qError.qErrorCode;const t=a&&g.qCalcCondMsg?g.qCalcCondMsg:a?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:n,aggMinD:o,aggMinM:s,hasLayoutErrors:r,layoutErrors:l}})(e,i,t),c=[],d=[];let h=null;for(let s=0;s<i.length;++s){const r=i[s];if(!a&&o){const i=h||await n.getProperties();h=i;const o=ty(e,t,i,r);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const u=c.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Dimensions",[u,s]),p=d.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Measures",[p,r]),f=[{title:g,descriptions:[...c]},{title:m,descriptions:[...d]}],v=a?l:f;return[a||o,{title:a?l[0].title:e.get("Visualization.Incomplete"),data:v}]})(p,E,e.generator.qae.data,L);S(t?{type:"ERROR",error:i}:{type:"RENDER"}),(({sn:e,layout:t,model:i})=>{const n=e&&e.component&&e.component.selections;if(n&&n.id&&i.id&&n.id===i.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!n.isModal()){const{targets:t}=e.generator.qae.data,i=t[0].propertyPath;n.goModal(i)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||n.isModal()&&n.noModal()}})({sn:w.sn,layout:E,model:L})})(w.sn);const e=h.getSupportedVersion(E.visualization,E.version);return(async(e,t)=>{S({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:i,version:n,model:o,app:s,selections:r,nebbie:a,focusHandler:l,emitter:c,onMount:d})=>{try{const h=await(async({types:e,name:t,version:i})=>await e.get({name:t,version:i}).supernova())({types:t,name:i,version:n}),u=h.create({model:o,app:s,selections:r,nebbie:a,focusHandler:l,emitter:c});u&&(e({type:"LOADED",sn:u,visualization:i}),d())}catch(t){e(n?{type:"ERROR",error:{title:t.message}}:{type:"ERROR",error:{title:`Could not find a version of '${i}' that supports current object version. Did you forget to register ${i}?`}}),d()}})({dispatch:S,types:h,visualization:e,version:t,model:L,app:d,selections:V,nebbie:u,focusHandler:Y.current,emitter:l,onMount:r})})(E.visualization,e),()=>{}}),[h,w.sn,L,V,E,R,m]),(0,i.useEffect)((()=>{if(!D)return;const e=setTimeout((()=>S({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[D]),(0,i.useImperativeHandle)(c,(()=>({getQae:()=>w.sn.generator.qae,toggleFocus(e){"function"==typeof w.sn.component.focus&&(e?w.sn.component.focus():w.sn.component.blur())},setSnOptions:P,setSnPlugins:B,setModel:k,getImperativeHandle:()=>w.sn?.component&&"function"==typeof w.sn.component.getImperativeHandle?w.sn.component.getImperativeHandle():{},async takeSnapshot(){const{width:e,height:t}=y;let i=JSON.parse(JSON.stringify(E));return"function"==typeof w.sn.component.setSnapshotData&&(i=await w.sn.component.setSnapshotData(i)||i),{key:String(+Date.now()),meta:{language:p.language(),theme:_.name,appLayout:R,size:{width:Math.round(e),height:Math.round(t)}},layout:i}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)}})),[w.sn,q,y,E,_.name,R]);let Q=null;return w.loading&&!w.longRunningQuery?Q=i.createElement(Yb,null):w.error?Q=i.createElement(Eb,w.error):w.loaded&&(Q=i.createElement(Xb,{key:E.visualization,sn:w.sn,halo:e,snOptions:O,snPlugins:F,layout:E,appLayout:R})),i.createElement(Hd,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:$||"unset",backgroundImage:G&&G.url?`url(${G.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:G&&G.size,backgroundPosition:G&&G.pos,border:K,borderRadius:X,boxShadow:Z,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:b,id:W,onMouseEnter:()=>{j.current.leave&&clearTimeout(j.current.leave),j.enter||(j.current.enter=setTimeout((()=>{H(!0),j.current.enter=null}),250))},onMouseLeave:()=>{j.current.enter&&clearTimeout(j.current.enter),j.current.leave||(j.current.leave=setTimeout((()=>{H(!1),j.current.leave=null}),750))}},i.createElement(Ho,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...v?{}:{padding:_.spacing(1)},...w.longRunningQuery?{opacity:"0.3"}:{}}},C&&E&&w.sn&&i.createElement(jb,{layout:E,sn:w.sn,anchorEl:C,hovering:z,focusHandler:Y.current,titleStyles:U}," "),i.createElement(Ho,{tabIndex:f?0:-1,onKeyDown:f?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,item:!0,xs:!0,style:{height:"100%"},ref:T},Q),C&&E&&w.sn&&i.createElement(Gb,{layout:E,titleStyles:U})),w.longRunningQuery&&i.createElement(Bb,{canCancel:I,canRetry:N,api:A}))}));function ny(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function oy(e="/",t,i){const n=[];return Object.keys(t).forEach((o=>{const s=t[o];var r,a;"object"!=typeof i[o]||"object"!=typeof s||Array.isArray(s)?(r=s,a=i[o],(ny(r)&&ny(a)?JSON.stringify(r)===JSON.stringify(a):!Array.isArray(r)&&!Array.isArray(a)&&r===a)||n.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):n.push(...oy(`${e}${o}/`,t[o],i[o]))})),n}function sy(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 "${e.info.name}" has no "fn" function`)}))}const ry=e=>!(!e||e.qHasSoftPatches||e.qExtendsId||!((e.qMeta?.privileges||[]).indexOf("update")>-1)),ay=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),ly=ic().bind(null,!0),cy={},{isArray:dy}=Array;function hy(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function uy(e){return void 0===e}function gy(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function py(e,t){const i=t.substring(1).split("/").slice(0,-1);let n;return i.forEach(((t,o)=>{if(o===i.length)return;n=+t;const s=isNaN(n)?{}:[];e[n||t]=uy(e[n||t])?s:e[t],e=e[n||t]})),e}function my(e,t){let i=!0;if(hy(e)&&hy(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((n=>{my(e[n],t[n])||(i=!1)})),i);if(dy(e)&&dy(t)){if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i+=1)if(!my(e[i],t[i]))return!1;return!0}return e===t}cy.generate=function(e,t,i){i=i||"";let n=[];return Object.keys(t).forEach((o=>{const s=function(e){return e?ly({},{val:e}).val:e}(t[o]),r=e[o],a=`${i}/${o}`;my(s,r)||gy(t,o)||(uy(r)?n.push({op:"add",path:a,value:s}):hy(s)&&hy(r)?n=n.concat(cy.generate(r,s,a)):dy(s)&&dy(r)?n=n.concat(function(e,t,i){let n=[];const o=e.slice();let s=-1;function r(e,t,i){if(e[i]&&uy(e[i].qInfo))return null;if(e[i]&&e[i].qInfo.qId===t)return i;for(let i=0,n=e.length;i<n;i+=1)if(e[i]&&e[i].qInfo.qId===t)return i;return-1}if(my(t,o))return n;if(!uy(t[0])&&uy(t[0].qInfo))return n.push({op:"replace",path:i,value:t}),n;for(let e=o.length-1;e>=0;e-=1)s=r(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===s?(n.push({op:"remove",path:`${i}/${e}`}),o.splice(e,1)):n=n.concat(cy.generate(o[e],t[s],`${i}/${e}`));for(let e=0,a=t.length;e<a;e+=1)s=r(o,t[e].qInfo&&t[e].qInfo.qId),-1===s?(n.push({op:"add",path:`${i}/${e}`,value:t[e]}),o.splice(e,0,t[e])):s!==e&&(n.push({op:"move",path:`${i}/${e}`,from:`${i}/${s}`}),o.splice(e,0,o.splice(s,1)[0]));return n}(r,s,a)):n.push({op:"replace",path:`${i}/${o}`,value:s}))})),Object.keys(e).forEach((o=>{uy(t[o])&&!gy(e,o)&&n.push({op:"remove",path:`${i}/${o}`})})),n},cy.apply=function(e,t){t.forEach((t=>{let i=py(e,t.path),n=t.path.split("/").splice(-1)[0],o=n&&isNaN(+n)?i[n]:i[+n]||i;const s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,o=e),"add"===t.op||"replace"===t.op)if(dy(i))"-"===n&&(n=i.length),i.splice(+n,"add"===t.op?0:1,t.value);else if(dy(o)&&dy(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(hy(o)&&hy(t.value))r=o,Object.keys(r).forEach((e=>{Object.getOwnPropertyDescriptor(r,e).configurable&&!gy(r,e)&&delete r[e]})),ly(o,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[n]=t.value}else if("move"===t.op){const o=py(e,t.from);dy(i)?i.splice(+n,0,o.splice(+s,1)[0]):(i[n]=o[s],delete o[s])}else"remove"===t.op&&(dy(i)?i.splice(+n,1):delete i[n]);var r}))},cy.clone=function(e){return ly({},e)},cy.createPatch=function(e,t,i){const n={op:e.toLowerCase(),path:i};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},cy.updateObject=function(e,t){Object.keys(e).length?cy.apply(e,cy.generate(e,t)):ly(e,t)};const fy=cy,vy=e=>t=>{const i=(n={...t,action(){"function"==typeof t.action&&t.action.call(i,e),i.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(i,e),active:"function"==typeof t.active?function(){return t.active.call(i,e)}:void 0},Object.keys(yl().prototype).forEach((e=>{n[e]=yl().prototype[e]})),yl().init(n),n);var n;return i};let _y,by;function yy(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let i=0;i<t.length;i++)if(e[i]!==t[i])return!0;return!1}function Cy(e,{explicitResize:t=!1}={}){e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function wy(e){xy(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 Sy(e){if(e.__hooks.obsolete)return Promise.resolve();by=-1,_y=e;let t=-1;_y.__hooks.initiated&&(t=_y.__hooks.list.length);try{_y.fn.call(null)}catch(e){console.error(e)}_y.__hooks.initiated=!0,t>-1&&t!==_y.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const i=_y.__hooks;return Dy(_y),by=void 0,_y=void 0,i.chain.promise||(i.chain.promise=new Promise((e=>{i.chain.resolve=e}))),function(e){xy(e.pendingLayoutEffects)}(i),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){xy(e.pendingEffects),e.macro=null,function(e){e.pendingPromises.length||e.micro||e.macro||(e.chain.promise=null,e.chain.resolve(!e.waitForData))}(e)}(e)})))}(i),i.chain.promise}function xy(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 Ly(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 ky(e,t,i,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,i,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Ey(e){return e.__hooks.imperativeHandle}function Dy(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Iy(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Dy(e))}function Ny(e){if(void 0===_y)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=_y.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Ay(e){return Ny(++by),_y.context[e]}function Ry(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Ty(e){return{__hooked:!0,fn:e,initiate:Cy,run:Sy,teardown:wy,runSnaps:Ly,runMenu:ky,focus:cC,blur:dC,observeActions:Iy,getImperativeHandle:Ey,updateRectOnNextRun:Ry}}function qy(e){const t=Ny(++by);if(!t.value){t.component=_y;const i=e=>{if(t.component.__hooks.obsolete)throw new Error("Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.");const i="function"==typeof e?e(t.value[0]):e;var n;i!==t.value[0]&&(t.value[0]=i,(n=t.component).__hooks.micro||(n.__hooks.micro=setTimeout((()=>{n.__hooks.micro=null,Sy(n)}),0)))};t.value=["function"==typeof e?e():e,i]}return t.value}function My(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const i=Ny(++by);yy(i.value?i.value[1]:void 0,t)&&(i.value=[e,t],-1===_y.__hooks.pendingEffects.indexOf(i)&&_y.__hooks.pendingEffects.push(i))}function Oy(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const i=Ny(++by);yy(i.value?i.value[1]:void 0,t)&&(i.value=[e,t],_y.__hooks.pendingLayoutEffects.push(i))}function Py(e,t){t||console.warn("useMemo called without dependencies.");const i=Ny(++by);return yy(i.value?i.value[0]:void 0,t)&&(i.value=[t,e()]),i.value[1]}function Fy(e,t){const[i,n]=qy((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Ny(++by);return o.component||(o.component=_y),Oy((()=>{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(),n({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),n({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[i.resolved,i.rejected]}function By(){return Ay("element")}function Wy(){const e=By(),t=_y.__hooks.resizer,[i,n]=qy((()=>{const{left:t,top:i,width:n,height:o}=e.getBoundingClientRect();return{left:t,top:i,width:n,height:o}}));return t.current=i,-1===t.setters.indexOf(n)&&t.setters.push(n),t.update&&t.resize&&(t.update=!1,t.resize()),Oy((()=>{if(t.initiated)return;t.initiated=!0;const i=()=>{const{left:i,top:n,width:o,height:s}=e.getBoundingClientRect(),r=t.current;r.width===o&&r.height===s&&r.left===i&&r.top===n||t.setters.forEach((e=>e({left:i,top:n,width:o,height:s})))};if(t.resize=()=>{i()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let n=new ResizeObserver(i);return n.observe(e),()=>{n.unobserve(e),n.disconnect(e),n=null,t.resize=void 0}}}),[e]),i}function Vy(){return Ay("layout")}function zy(){const e=Ay("layout"),[t]=qy({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Hy(){return Ay("appLayout")}function jy(){const e=Ay("model");return e&&e.session?e:void 0}function Uy(){const e=Ay("app");return e&&e.session?e:void 0}function $y(){const e=Ay("global");return e&&e.session?e:void 0}function Gy(){return Ay("selections")}function Ky(){return Ay("theme")}function Xy(){return Ay("nebbie")}function Zy(){return Ay("translator")}function Yy(){return Ay("deviceType")}function Qy(){return Ay("plugins")}function Jy(e,t){const[i]=qy({action(){i._config.action.call(null)}});return i.component||(i.component=_y,_y.__hooks.actions.list.push(i)),Py((()=>{const t=e();i._config=t,i.active=t.active||!1,i.disabled=t.disabled||!1,i.hidden=t.hidden||!1,i.label=t.label||"",i.getSvgIconShape=t.icon?()=>t.icon:void 0,i.key=t.key||i.component.__hooks.actions.list.length,i.component.__hooks.actions.changed=!0}),t),i.action}function eC(){return _y.__hooks.contraintsWarning&&(console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),_y.__hooks.contraintsWarning=!1),Ay("constraints")}function tC(){return Ay("interactions")}function iC(){return Ay("options")}function nC(e,t){const i=Ny(++by);if(!i.imperative){if(_y.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");i.imperative=!0}if(yy(i.value?i.value[0]:void 0,t)){const n=e();i.value=[t,n],_y.__hooks.imperativeHandle=n}}function oC(e){const t=Ny(++by);t.value||(t.value=1,_y.__hooks.snaps.push(t)),t.fn=e}function sC(e){const t=Ny(++by);t.value||(t.value=1,_y.__hooks.menus.push(t)),t.fn=e}function rC(){Ny(++by);const e=_y.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function aC(){return Ay("emitter")}function lC(){const e=Ay("keyboardNavigation"),t=Ay("focusHandler");if(!_y.__hooks.accessibility.exitFunction){const e=function(e=!1){const i=this.__hooks.accessibility;i.enabled&&i.active&&(dC(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(_y);_y.__hooks.accessibility.exitFunction=e;const i=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),cC(this))}.bind(_y);_y.__hooks.accessibility.focusFunction=i;const n=function(e=!1){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(_y);_y.__hooks.accessibility.focusSelectionFunction=n}const i=_y.__hooks.accessibility.focusFunction,n=_y.__hooks.accessibility.exitFunction,o=_y.__hooks.accessibility.focusSelectionFunction,[s,r]=qy({active:!1,enabled:e,blur:n,focus:i,focusSelection:o});return _y.__hooks.accessibility.setter=r,_y.__hooks.accessibility.enabled=e,My((()=>r({active:!1,enabled:e,blur:n,focus:i,focusSelection:o})),[e]),s}function cC(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 dC(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 hC={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},uC=Object.keys(hC),gC=e=>(Object.keys(yl().prototype).forEach((t=>{e[t]=yl().prototype[t]})),yl().init(e),e);function pC(e,t,i){"function"==typeof e.component&&(e.component=Ty(e.component));const[n,o]=e.component&&e.component.__hooked?function(e,t,i){e.component.run!==Sy&&console.warn("Detected multiple supernova modules, this might cause problems.");const n=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const s={},r=["appLayout","constraints","interactions"],a={},l={};t.model&&t.model.session||(a.select=!0,a.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:n,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:i.deviceType,theme:void 0,translator:i.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:a,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(i){this.context.element=i,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let i=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(i=!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,i=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let n=!1;Object.keys(t.options).forEach((i=>{e[i]=t.options[i],this.context.options[i]!==t.options[i]&&(n=!0)})),n&&(this.context.options=e,i=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,i)=>{this.context.plugins[i]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],i=!0)}r.forEach((e=>{const n=t.context;if(n&&Object.prototype.hasOwnProperty.call(n,e)){let t=JSON.stringify(n[e]);"constraints"===e&&(t=JSON.stringify({...n[e],...a})),"interactions"===e&&(t=JSON.stringify({...n[e],...l})),t!==s[e]&&(i=!0,s[e]=t,this.context[e]=JSON.parse(t))}}))}else i=!0;return this.context.theme&&this.context.theme.name()!==s.themeName&&(i=!0,s.themeName=this.context.theme.name()),this.context.translator.language()!==s.language&&(i=!0,s.language=c.context.translator.language()),i?(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,i,n){return e.component.runMenu(this,t,i,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 r.forEach((e=>{s[e]=JSON.stringify(c.context[e])})),s.themeName=c.context.theme?c.context.theme.name():void 0,s.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,i):function(e,t){console.warn("Obsolete API - time to get hooked!");const i={...hC};gC(i);const n={emit(...e){i.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==uC.indexOf(t)?i[t]=e.component[t].bind(n):n[t]=e.component[t]}));const o=function({sn:e,component:t}){const i={},n=[],o=vy(t);return((e.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=o(e);i[e.key]=t,n.push(t)})),(e.definition.actions||[]).forEach((e=>{const t=o(e);i[e.key]=t})),{actions:i,selectionToolbarItems:n,destroy(){n.length=0}}}({sn:e,component:n}),s=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(n,{model:t.model,app:t.app,global:s,selections:t.selections,actions:o.actions}),Object.assign(i,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[i,o]}(e,t),s=[];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(...i){return e.qae.properties.onChange.call({model:t.model},...i),t.model.__snInterceptor.setProperties.call(this,...i)},t.model.applyPatches=function(i,n){const o=n?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const s=fy.clone(o),r=i.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));fy.apply(o,r),e.qae.properties.onChange.call({model:t.model},o);const a=fy.generate(s,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,a,n)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},s.push(t.model.__snInterceptor.teardown)),{generator:e,component:n,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){s.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const mC=()=>{};function fC(e,t){return void 0===e?()=>t:()=>e}function vC(e){const t=e||{};return{min:"function"==typeof t.min?t.min:fC(t.min,0),max:"function"==typeof t.max?t.max:fC(t.max,1e3),added:t.added||t.add||mC,description:t.description||mC,moved:t.moved||t.move||mC,removed:t.removed||t.remove||mC,replaced:t.replaced||t.replace||mC,isDefined:()=>!!e}}const _C=(e,t,i)=>{const n=t.split("/");let o=e;if(void 0===o)return i;for(let e=0;e<n.length;++e)if(""!==n[e]){if(void 0===o[n[e]])return i;o=o[n[e]]}return o};function bC(e){const t=e.path||"/qHyperCubeDef",i=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(i)){const e=i.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:i,resolveLayout:e=>_C(e,i,{}),dimensions:vC(e.dimensions),measures:vC(e.measures)}}function yC(e={}){let t,i=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(i=e.properties.initial,t=e.properties.onChange),{properties:{initial:i,onChange:t},data:{targets:((e.data||{}).targets||[]).map(bC)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function CC(e,t){let i;i="function"==typeof e?e(t):e;const n={qae:yC(i.qae),component:i.component||{},create:e=>pC(n,e,t),definition:{}};return Object.keys(i).forEach((e=>{n[e]||(n.definition[e]=i[e])})),n}const wC=(e,t,i)=>{if(!e)return Promise.resolve();let n=fy.generate(t,i);return ic()(!0,t,i),n&&n.length?(n=n.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,n,!0):e.applyPatches(n,!0)):Promise.resolve()},SC=()=>{};async function xC(e,t,n,o,r=(async()=>{})){const a=function({model:e,halo:t,initialError:n,onDestroy:o=(async()=>{})}={}){let r,a=SC,l=null,c=null,d=null,h=null;const u=new Promise((e=>{d=e})),g=new Promise((e=>{h=e})),p=e=>()=>{e&&e(),h()};let m={},f=[];const v=new(yl()),_={id:e.id,model:e,async destroy(){await o(),a(),a=SC},async convertTo(i,n=!0,o=!1){if(n){const n=await e.getLayout();if(ry(n)&&!o){const n=await vb({halo:t,model:e,cellRef:l,newType:i});return await ay(e,n.qProperty),n}const s=await e.getEffectiveProperties(),r=await vb({halo:t,model:e,cellRef:l,newType:i,properties:s}),a=r.qProperty;return await wC(e,s,a),r}return await vb({halo:t,model:e,cellRef:l,newType:i})},async toggleDataView(i){let n;if(r||!1===i)r&&!0!==i&&(n=e,await t.app.destroySessionObject(r),r=void 0);else{let i=t.config.context.dataViewType;const o=await e.getEffectiveProperties();if(!t.types.getSupportedVersion(i)){if(!t.types.getSupportedVersion("table"))throw new Error("No data view type registered");i="table"}const s=await vb({halo:t,model:e,cellRef:l,newType:i,properties:o,viewDataMode:!0});n=await t.app.createSessionObject(s.qProperty),r=n.id}n&&l.current.setModel(n)},addListener(e,t){v.addListener(e,t)},removeListener(e,t){v.removeListener(e,t)},getImperativeHandle:async()=>(await g,l.current.getImperativeHandle()),__DO_NOT_USE__:{mount(o){if(c)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return c=o,[a,l]=function({halo:e,element:t,model:n,initialSnOptions:o,initialSnPlugins:r,onMount:a,emitter:l,initialError:c}){const{root:d}=e,h=i.createRef(),u=d_(),g=s.createPortal(i.createElement(iy,{ref:h,halo:e,model:n,currentId:u,initialSnOptions:o,initialSnPlugins:r,initialError:c,onMount:a,emitter:l}),t,u),p=()=>{d.remove(g),n.removeListener("closed",p)};return n.on("closed",p),d.add(g),d.addCell(u,h),[p,h]}({halo:t,element:o,model:e,initialSnOptions:m,initialSnPlugins:f,initialError:n,onMount:d,emitter:v}),u},async applyProperties(t){const i=oy("/",t,await e.getEffectiveProperties());if(i.length)return e.applyPatches(i,!0)},options(e){(async e=>{const t=e.onInitialRender;c?(async()=>{await u,l.current.setSnOptions({...m,...e,onInitialRender:p(t)})})():m={...m,...e,onInitialRender:p(t)}})(e)},plugins(e){(async e=>{sy(e),c?(async()=>{await u,l.current.setSnPlugins(e)})():f=e})(e)},exportImage:()=>l.current.exportImage(),takeSnapshot:()=>l.current.takeSnapshot(),getModel:()=>e,convert:{async toType(i){const n=await e.getEffectiveProperties(),o=await vb({halo:t,model:e,cellRef:l,newType:i,properties:n}),s=o.qProperty;return await wC(e,n,s),o},async revert(){await e.clearSoftPatches()}}}};return _}({model:e,halo:n,initialError:o,onDestroy:r});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}async function LC({type:e,version:t,fields:i,properties:n,extendProperties:o},s,r){let a={};const l=[];try{const r=s.types.get({name:e,version:t});a=await r.initialProperties(n,o);const c=await r.supernova();i&&await ib({sn:c,properties:a,fields:i,children:l},s),n&&c&&c.qae.properties.onChange&&c.qae.properties.onChange.call({},a)}catch(t){a=r?null:{qInfo:{qType:e},visualization:e}}if(!r){const e=await s.app.createObject(a);return l.length>0&&await e.setFullPropertyTree({qProperty:a,qChildren:l}),Hc.set(e.id,e),e}return a}function kC(e,t,i){return e.bounds?e.bounds:{y:e.row/i*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/i*100}}const EC=function({model:e,halo:t,initialSnOptions:n,initialSnPlugins:o,initialError:s,onMount:r}){const{root:a}=t,[l]=Zc(e),{theme:c}=(0,i.useContext)(_c),[d,h]=(0,i.useState)([]),[u,g]=(0,i.useState)(void 0),[p,m]=(0,i.useState)(void 0),[f,v]=(0,i.useState)("");(0,i.useEffect)((()=>{if(l){const e=JSON.stringify(l.cells);if(e===f)return;v(e);const n=async()=>{d.forEach((e=>{a.removeCell(e.currentId)}));const e=l.cells,{columns:n,rows:o}=l,s=await Promise.all(e.map((async e=>{let s;const r=new Promise((e=>{s=e})),a=d.find((t=>t.id===e.name));if(a)return a.bounds=kC(e,n,o),delete a.mountedPromise,a;const l=await async function({id:e,options:t,plugins:i,element:n},o){const s=`${e}`;let r=Pc.get(s);r||(r=o.app.getObject(e),Pc.set(s,r));const a=await r;return Hc.set(s,a),xC(a,{options:t,plugins:i,element:n},o)}({id:e.name},t);return{model:l.model,id:e.name,bounds:kC(e,n,o),cellRef:i.createRef(),currentId:d_(),mounted:s,mountedPromise:r}})));s.forEach((e=>a.addCell(e.currentId,e.cellRef))),h(s)};n()}}),[l]);const _=(0,i.useMemo)((()=>d?d.map((e=>function(e,t,n,o,s,r){const{x:a,y:l,width:c,height:d}=e.bounds;return i.createElement("div",{style:{left:`${a}%`,top:`${l}%`,width:`${c}%`,height:`${d}%`,position:"absolute"}},i.createElement(iy,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:o,initialError:s,onMount:r}))}(e,t,n,o,s,e.mounted))):[]),[d]);(0,i.useEffect)((()=>{const e=l?.components?l.components.find((e=>"general"===e.key)):null;g(xv(e,t.public.theme)),m(Sv(e,t.app))}),[l,t.public.theme,t.app,c]);const b=!l||Number.isNaN(l.height)?"100%":`${Number(l.height)}%`,y=d.map((e=>e.mountedPromise));return y.filter((e=>!!e)).length&&Promise.all(y).then((()=>{r()})),i.createElement("div",{className:"njs-sheet",style:{width:"100%",height:b,position:"relative",backgroundColor:u,backgroundImage:p&&p.url?`url(${p.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:p&&p.size,backgroundPosition:p&&p.pos}},_)},DC=()=>{};async function IC({id:e,options:t,plugins:n,element:o},r){const a=`${e}`;let l=Pc.get(a);l||(l=r.app.getObject(e),Pc.set(a,l));const c=await l;return Hc.set(a,c),"sheet"===c.genericType?async function(e,t,n,o,r=(async()=>{})){const a=function({model:e,halo:t,initialError:n,onDestroy:o=(async()=>{})}={}){let r=DC,a=null,l=null,c=null;const d=new Promise((e=>{c=e}));let h={},u=[];const g={id:e.id,model:e,async destroy(){await o(),r(),r=DC},__DO_NOT_USE__:{mount(o){if(l)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return l=o,[r,a]=function({halo:e,element:t,model:n,initialSnOptions:o,initialSnPlugins:r,onMount:a,initialError:l}){const{root:c}=e,d=i.createRef(),h=s.createPortal(i.createElement(EC,{ref:d,halo:e,model:n,initialSnOptions:o,initialSnPlugins:r,initialError:l,onMount:a}),t,n.id),u=()=>{c.remove(h),n.removeListener("closed",u)};return n.on("closed",u),c.add(h),[u,d]}({halo:t,element:o,model:e,initialSnOptions:h,initialSnPlugins:u,initialError:n,onMount:c}),d},async applyProperties(t){const i=oy("/",t,await e.getEffectiveProperties());if(i.length)return e.applyPatches(i,!0)},options(e){(async e=>{l?(async()=>{await d,a.current.setSnOptions({...h,...e})})():h={...h,...e}})(e)},plugins(e){(async e=>{sy(e),l?(async()=>{await d,a.current.setSnPlugins(e)})():u=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return g}({model:e,halo:n,initialError:void 0,onDestroy:r});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}(c,{options:t,plugins:n,element:o},r):xC(c,{options:t,plugins:n,element:o},r)}function NC(e={}){return{isEnabled:t=>!0===e[t]}}var AC=r(1440),RC=r.n(AC);const TC={};function qC(e,t){const i={};let n=null;return{get:e=>i[e],register:(o,s)=>{if(i[o])throw new Error(`Supernova '${e}@${o}' already registered.`);i[o]=function(e,t,i={}){let n,o;const{meta:s}=i,r={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&s&&s.deps&&s.deps.properties)||RC()(e,s.deps.properties),supernova:()=>async function(e,t,{config:i},n){const o=`${e}__${t}`;if(!TC[o]){const s=`${e}${t&&` v${t}`||""}`;if(n&&"function"!=typeof n)throw new Error(`load of visualization '${s}' is not a fuction, wrap load promise in function`);const r=(n||i.load)({name:e,version:t}),a=Promise.resolve(r);TC[o]=a.then((e=>{if(!e)throw new Error(`load() of visualization '${s}' resolved to an invalid object`);return e})).catch((e=>{throw console.warn(e),new Error(`Failed to load visualization: '${s}'`)}))}return TC[o]}(r.name,r.version,t,i.load).then((e=>(n=n||CC(e,t.public.galaxy),o=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e,t=!1){return this.supernova().then((()=>{const i={qInfo:{qType:r.name},visualization:r.name,version:r.version,showTitles:!0,...JSON.parse(o)};return t?(ic()(!0,i,e),i):{...i,...e}}))}};return r}({name:e,version:o},t,s),n=null},getMatchingVersionFromProperties:e=>{var t;n||(t=Object.keys(i),n=[...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=n.length-1;t>=0;t--)if(i[n[t]].supportsPropertiesVersion(e))return n[t];return null},versions:i}}const MC={context:({},{theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"}),load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0},snapshot:{get:async e=>{const t=await fetch(`/njs/snapshot/${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()))}},OC=(e={},t={})=>({...e,...t}),PC=(e=[],t=[])=>[...e,...t].filter(((e,t,i)=>i.indexOf(e)===t)),FC=function e(t={}){const n=function(e){const t=vl({initial:e});return Object.keys(_l).forEach((e=>{t.translator.add(_l[e])})),{translator:t.translator}}(t.context.language);function r(e,a){if(a)return r.createConfiguration(a)(e);let l={...t.context,translator:n.translator};const[c]=function({app:e,context:t}){let n;const s=new Promise((e=>{n=e})),r=i.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.13.0"),a.setAttribute("data-app-id",e.id),document.body.appendChild(a),t&&Dc(t),o.createRoot(a).render(i.createElement(Ic,{ref:r,app:e,initialContext:t,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 s,c.push(e),r.current.setComps(c)})()},remove(e){(async()=>{await s;const t=c.indexOf(e);-1!==t&&c.splice(t,1),r.current.setComps(c)})()},setMuiThemeName(e){(async()=>{await s,r.current.setMuiThemeName(e)})()},context(e){(async()=>{await s,e&&Dc(e),r.current.setContext(e)})()},getAppSelections:async()=>(await s,r.current.getAppSelections())},r,s]}({app:e,context:l}),d=function({themes:e=[],loadTheme:t,root:i}={}){const n=vc();return{setTheme:async o=>{let s=e.filter((e=>e.id===o))[0],r="dark"===o?"dark":"light";if(!s&&t&&(s={load:t}),s&&s.load)try{const e=await Promise.race([s.load(o),(a=5e3,l={__timedOut:!0},new Promise((e=>{setTimeout((()=>e(l)),a)})))]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(r="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,o),i.setMuiThemeName(r))}catch(e){console.error(e)}else n.internalAPI.setTheme({type:r},o),i.setMuiThemeName(r);var a,l},externalAPI:n.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:c});l.themeApi=d.externalAPI;const h={galaxy:{translator:n.translator,flags:NC(t.flags),deviceType:(p=t.context.deviceType,"auto"!==p?p: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"),anything:t.anything},theme:d.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:c,config:t,public:h,context:l,types:null},g=function({halo:e,parent:t}){const i={},n=t||{get:()=>{}};return{register:(t,n)=>{i[t.name]||(i[t.name]=qC(t.name,e)),i[t.name].register(t.version,n)},getSupportedVersion:(e,t)=>{if(i[e])return i[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:o}=e;if(i[t]){if(!i[t].versions[o]){const e=Object.keys(i[t].versions)[0];console.warn(`Version ${o} of ${t} is not registered. Falling back to version ${e}`),o=e}}else console.warn(`Visualization ${t} is not registered. Adding it now.`),this.register({name:t,version:o});return i[t].get(o)||n.get(e)},getList:()=>Object.keys(i).map((e=>({name:e,versions:Object.keys(i[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{i[e]&&(i[e]=void 0),function(e){Object.keys(TC).forEach((t=>{t.split("__")[0]===e&&(TC[t]=void 0)}))}(e)}}}({halo:u});var p;t.types.forEach((e=>g.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let m=d.setTheme(t.context.theme),f=null,v=null;const _={render:async e=>(await m,e.id?IC(e,u):async function({type:e,version:t,fields:i,properties:n,options:o,plugins:s,element:r,extendProperties:a},l){let c={};const d=[];let h;try{const o=l.types.get({name:e,version:t});c=await o.initialProperties(n,a);const s=await o.supernova();i&&await ib({sn:s,properties:c,fields:i,children:d},l),n&&s&&s.qae.properties.onChange&&s.qae.properties.onChange.call({},c)}catch(t){h=t,c={qInfo:{qType:e},visualization:e}}const u=await l.app.createSessionObject(c);d.length>0&&await u.setFullPropertyTree({qProperty:c,qChildren:d}),Hc.set(u.id,u);const g=(e=>{const t=Vc({type:"SET",value:e});return()=>{t(),Hc.clear(e.id)}})(u);return xC(u,{options:o,plugins:s,element:r},l,h,(async()=>{await l.app.destroySessionObject(u.id),g()}))}(e,u)),create:async e=>LC(e,u,!1),generateProperties:async e=>LC(e,u,!0),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((i=>{Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==l[i]&&(t||(t={}),t[i]=e[i])})),t&&(l={...l,...t,translator:n.translator},t.theme&&(m=d.setTheme(t.theme),await m),t.language&&u.public.translator.language(t.language),c.context(l))},selections:async()=>(f||(f={mount(t){v?console.error("Already mounted"):(v=function({element:e,app:t}){return s.createPortal(i.createElement(h_,{app:t}),e,d_())}({element:t,app:e}),c.add(v))},unmount(){v&&(c.remove(v),v=null)}}),f),field:async t=>{let n;const o="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const r={fieldName:o,async mount(a,l={}){if(!a)throw new Error(`Element for ${o||n} not provided`);if(this._instance)throw new Error(`Field or object ${o||n} already mounted`);const d=()=>r.emit("selectionActivated"),h=()=>r.emit("selectionDeactivated");return new Promise((o=>{this._instance=function({element:e,app:t,fieldIdentifier:n,qId:o,stateName:r="$",options:a={},renderedCallback:l}){return s.createPortal(i.createElement(H_,{app:t,element:e,fieldIdentifier:n,qId:o,stateName:r,options:a,renderedCallback:l}),e,d_())}({element:a,app:e,fieldIdentifier:t,qId:n,options:z_({onSelectionActivated:d,onSelectionDeactivated:h,...l}),stateName:l.stateName||"$",renderedCallback:o}),c.add(this._instance)}))},unmount(){this._instance&&(c.remove(this._instance),this._instance=null)}};return Kf(r),r},getRegisteredTypes:g.getList,__DO_NOT_USE__:{types:g,popover(t,n,o){_._popoverInstance&&(c.remove(_._popoverInstance),_._popoverInstance=null);const s=((e={})=>{const t={...j_};return ic()(!0,t,e),t})({onPopoverClose:()=>_.emit("fieldPopoverClose"),...o});_._popoverInstance=i.createElement(U_,{element:t,key:d_(),app:e,fieldIdentifier:n,options:s,stateName:o.stateName||"$"}),c.add(_._popoverInstance)}}};return u.public.nebbie=_,u.types=g,Kf(_),_}return r.createConfiguration=i=>e(((e,t)=>({context:OC(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:PC(e.types,t.types),themes:PC(e.themes,t.themes),flags:OC(e.flags,t.flags),anything:OC(e.anything,t.anything)}))(t,i)),r.config=t,r}(MC),BC=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},WC=globalThis.crypto||{getRandomValues:()=>123456},VC=function(e){return t=>{const i=ic()({},t);i.qInfo=i.qInfo||{},i.qInfo.qId=i.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^WC.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const n=i._mock;let o=i;return n&&(delete i._mock,o=ic()({},i,n)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(i),getEffectiveProperties:()=>Promise.resolve(i),removeListener:()=>{},id:i.qInfo.qId,properties:i,session:e})}},zC=(e,{args:t=[],defaultValue:i}={})=>"function"==typeof e?e(...t):void 0!==e?e:i,HC=(e,{defaultValue:t,async:i=!0,delay:n=0}={})=>(...o)=>{const s=zC(e,{defaultValue:t,args:o});return i?new Promise((e=>{setTimeout((()=>e(s)),n)})):s},jC=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function UC(e){return!jC.includes(e)}function $C(e){const t=zC(e.getLayout);return t.qInfo&&t.qInfo.qId}function GC(e,t){let i=$C(e);const{delay:n}=t,{id:o,session:s,...r}=e;if(o&&i&&o!==i)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${i}, id: ${o}`);return i=i||o||"object - "+ +Date.now(),{[i]:{id:i,session:zC(s,{defaultValue:!0}),on:()=>{},once:()=>{},...Object.entries(r).reduce(((e,[t,i])=>({...e,[t]:HC(i,{async:UC(t),delay:n})})),{}),genericType:e.type}}}function KC(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!$C(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const XC=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(KC);const i=function(e,t){return e.reduce(((e,i)=>({...e,...GC(i,t)})),{})}(e,t);return async e=>Promise.resolve(i[e])},ZC=function(){return()=>Promise.resolve({id:"app-layout"})},YC={fromGenericObjects:(e,t={})=>function(e,t={}){const i=new BC,n=new VC(i),o=new XC(e,t),s=new ZC,r={id:"app - "+ +Date.now(),session:i,createSessionObject:n,destroySessionObject:async()=>{},getObject:o,getAppLayout:s};return Promise.resolve(r)}(e,t)},QC=YC,JC={generator:CC,hook:Ty,theme:vc,locale:vl};var ew=r(1052),tw=r(9860),iw=r(1211),nw=r(3675),ow=r(269);function sw(e){return(0,Ot.Ay)("MuiToolbar",e)}(0,Mt.A)("MuiToolbar",["root","gutters","regular","dense"]);const rw=["className","component","disableGutters","variant"],aw=(0,qt.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disableGutters&&t.gutters,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),lw=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:s=!1,variant:r="regular"}=i,a=(0,Et.A)(i,rw),l=(0,Dt.A)({},i,{component:o,disableGutters:s,variant:r}),c=(e=>{const{classes:t,disableGutters:i,variant:n}=e,o={root:["root",!i&&"gutters",n]};return(0,Nt.A)(o,sw,t)})(l);return(0,Ft.jsx)(aw,(0,Dt.A)({as:o,className:(0,It.A)(c.root,n),ref:t,ownerState:l},a))})),cw=lw;function dw(e){return(0,Ot.Ay)("MuiToggleButtonGroup",e)}const hw=(0,Mt.A)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),uw=i.createContext({}),gw=i.createContext(void 0);function pw(e){return(0,Ot.Ay)("MuiToggleButton",e)}const mw=(0,Mt.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),fw=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],vw=(0,qt.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${hw.grouped}`]:t.grouped},{[`& .${hw.grouped}`]:t[`grouped${(0,ui.A)(i.orientation)}`]},{[`& .${hw.firstButton}`]:t.firstButton},{[`& .${hw.lastButton}`]:t.lastButton},{[`& .${hw.middleButton}`]:t.middleButton},t.root,"vertical"===i.orientation&&t.vertical,i.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,Dt.A)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${hw.grouped}`]:(0,Dt.A)({},"horizontal"===e.orientation?{[`&.${hw.selected} + .${hw.grouped}.${hw.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${hw.selected} + .${hw.grouped}.${hw.selected}`]:{borderTop:0,marginTop:0}})},"horizontal"===e.orientation?{[`& .${hw.firstButton},& .${hw.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${hw.lastButton},& .${hw.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${hw.firstButton},& .${hw.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${hw.lastButton},& .${hw.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},"horizontal"===e.orientation?{[`& .${hw.lastButton}.${mw.disabled},& .${hw.middleButton}.${mw.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${hw.lastButton}.${mw.disabled},& .${hw.middleButton}.${mw.disabled}`]:{borderTop:"1px solid transparent"}}))),_w=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:s,color:r="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:h="horizontal",size:u="medium",value:g}=n,p=(0,Et.A)(n,fw),m=(0,Dt.A)({},n,{disabled:a,fullWidth:c,orientation:h,size:u}),f=(e=>{const{classes:t,orientation:i,fullWidth:n,disabled:o}=e,s={root:["root","vertical"===i&&"vertical",n&&"fullWidth"],grouped:["grouped",`grouped${(0,ui.A)(i)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,Nt.A)(s,dw,t)})(m),v=i.useCallback(((e,t)=>{if(!d)return;const i=g&&g.indexOf(t);let n;g&&i>=0?(n=g.slice(),n.splice(i,1)):n=g?g.concat(t):[t],d(e,n)}),[d,g]),_=i.useCallback(((e,t)=>{d&&d(e,g===t?null:t)}),[d,g]),b=i.useMemo((()=>({className:f.grouped,onChange:l?_:v,value:g,size:u,fullWidth:c,color:r,disabled:a})),[f.grouped,l,_,v,g,u,c,r,a]),y=function(e){return i.Children.toArray(e).filter((e=>i.isValidElement(e)))}(o),C=y.length,w=e=>{const t=0===e,i=e===C-1;return t&&i?"":t?f.firstButton:i?f.lastButton:f.middleButton};return(0,Ft.jsx)(vw,(0,Dt.A)({role:"group",className:(0,It.A)(f.root,s),ref:t,ownerState:m},p,{children:(0,Ft.jsx)(uw.Provider,{value:b,children:y.map(((e,t)=>(0,Ft.jsx)(gw.Provider,{value:w(t),children:e},t)))})}))})),bw=_w;var yw=r(5093);function Cw(e){if(e.type)return e;if("#"===e.charAt(0))return Cw(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let i=e.match(t);return i&&1===i[0].length&&(i=i.map((e=>e+e))),i?`rgb${4===i.length?"a":""}(${i.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),i=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(i))throw new Error((0,da.A)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===i){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,da.A)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:i,values:o,colorSpace:n}}function ww(e,t){return e=Cw(e),t=function(e,t=0,i=1){return(0,yw.A)(e,t,i)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:i}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${i} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Sw(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}const xw=["value"],Lw=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],kw=(0,qt.Ay)(Lo,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`size${(0,ui.A)(i.size)}`]]}})((({theme:e,ownerState:t})=>{let i,n="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(n="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,i="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,Dt.A)({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${mw.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ww(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mw.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${i} / ${e.vars.palette.action.selectedOpacity})`:ww(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${i} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ww(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${i} / ${e.vars.palette.action.selectedOpacity})`:ww(n,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})})),Ew=i.forwardRef((function(e,t){const n=i.useContext(uw),{value:o}=n,s=(0,Et.A)(n,xw),r=i.useContext(gw),a=(0,Pa.A)((0,Dt.A)({},s,{selected:Sw(e.value,o)}),e),l=(0,Tt.A)({props:a,name:"MuiToggleButton"}),{children:c,className:d,color:h="standard",disabled:u=!1,disableFocusRipple:g=!1,fullWidth:p=!1,onChange:m,onClick:f,selected:v,size:_="medium",value:b}=l,y=(0,Et.A)(l,Lw),C=(0,Dt.A)({},l,{color:h,disabled:u,disableFocusRipple:g,fullWidth:p,size:_}),w=(e=>{const{classes:t,fullWidth:i,selected:n,disabled:o,size:s,color:r}=e,a={root:["root",n&&"selected",o&&"disabled",i&&"fullWidth",`size${(0,ui.A)(s)}`,r]};return(0,Nt.A)(a,pw,t)})(C),S=r||"";return(0,Ft.jsx)(kw,(0,Dt.A)({className:(0,It.A)(s.className,w.root,d,S),disabled:u,focusRipple:!g,ref:t,onClick:e=>{f&&(f(e,b),e.defaultPrevented)||m&&m(e,b)},onChange:m,value:b,ownerState:C,"aria-pressed":v},y,{children:c}))})),Dw=Ew;function Iw(e){return(0,Ot.Ay)("MuiMenu",e)}(0,Mt.A)("MuiMenu",["root","paper","list"]);const Nw=["onEntering"],Aw=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Rw={vertical:"top",horizontal:"right"},Tw={vertical:"top",horizontal:"left"},qw=(0,qt.Ay)(th,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mw=(0,qt.Ay)(Jd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ow=(0,qt.Ay)(Sf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Pw=i.forwardRef((function(e,t){var n,o;const s=(0,Tt.A)({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:h,open:u,PaperProps:g={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:{onEntering:f}={},variant:v="selectedMenu",slots:_={},slotProps:b={}}=s,y=(0,Et.A)(s.TransitionProps,Nw),C=(0,Et.A)(s,Aw),w=_i(),S="rtl"===w.direction,x=(0,Dt.A)({},s,{autoFocus:r,disableAutoFocusItem:c,MenuListProps:d,onEntering:f,PaperProps:g,transitionDuration:m,TransitionProps:y,variant:v}),L=(e=>{const{classes:t}=e;return(0,Nt.A)({root:["root"],paper:["paper"],list:["list"]},Iw,t)})(x),k=r&&!c&&u,E=i.useRef(null);let D=-1;i.Children.map(a,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===D)&&(D=t))}));const I=null!=(n=_.paper)?n:Mw,N=null!=(o=b.paper)?o:g,A=mr({elementType:_.root,externalSlotProps:b.root,ownerState:x,className:[L.root,l]}),R=mr({elementType:I,externalSlotProps:N,ownerState:x,className:L.paper});return(0,Ft.jsx)(qw,(0,Dt.A)({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Rw:Tw,slots:{paper:I,root:_.root},slotProps:{root:A,paper:R},open:u,ref:t,transitionDuration:m,TransitionProps:(0,Dt.A)({onEntering:(e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,w),f&&f(e,t)}},y),ownerState:x},C,{classes:p,children:(0,Ft.jsx)(Ow,(0,Dt.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:E,autoFocus:r&&(-1===D||c),autoFocusItem:k,variant:v},d,{className:(0,It.A)(L.list,d.className),children:a}))}))})),Fw=Pw,Bw=new Map,Ww=[],Vw=Ww.map,zw=Ww.some,Hw=Ww.hasOwnProperty,jw=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,Uw=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,$w=/(?:\.[^/]*|\/)$/;class Gw extends Error{constructor(e){super(e)}}function Kw(e){const t=jw.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function Xw(e){const t=new Map,i=o(null);function n(e){if("string"!=typeof e)return e;let i=t.get(e);return i||t.set(e,i=new Promise(((t,i)=>{const n=document.createElement("script");n.onload=()=>{try{t(Ww.pop()(o(e)))}catch(e){i(new Gw("invalid module"))}n.remove()},n.onerror=()=>{i(new Gw("unable to load module")),n.remove()},n.async=!0,n.src=e,window.define=Jw,document.head.appendChild(n)}))),i}function o(t){return i=>Promise.resolve(e(i,t)).then(n)}function s(e){return arguments.length>1?Promise.all(Vw.call(arguments,i)).then(Zw):i(e)}return s.alias=function(t){return Xw(((i,n)=>i in t&&(n=null,"string"!=typeof(i=t[i]))?i:e(i,n)))},s.resolve=e,s}function Zw(e){const t={};for(const i of e)for(const e in i)Hw.call(i,e)&&(null==i[e]?Object.defineProperty(t,e,{get:Yw(i,e)}):t[e]=i[e]);return t}function Yw(e,t){return()=>e[t]}function Qw(e){return"exports"==(e+="")||"module"===e}function Jw(e,t,i){const n=arguments.length;n<2?(i=e,t=[]):n<3&&(i=t,t="string"==typeof e?[]:e),Ww.push(zw.call(t,Qw)?e=>{const n={},o={exports:n};return Promise.all(Vw.call(t,(t=>"exports"==(t+="")?n:"module"===t?o:e(t)))).then((e=>(i.apply(null,e),o.exports)))}:e=>Promise.all(Vw.call(t,e)).then((e=>"function"==typeof i?i.apply(null,e):i)))}Gw.prototype.name=Gw.name,Xw(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function i(t){const i=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let n=Bw.get(i);return n||Bw.set(i,n=fetch(i).then((e=>{if(!e.ok)throw new Gw("unable to load package.json");return e.redirected&&!Bw.has(e.url)&&Bw.set(e.url,n),e.json()}))),n}return async function(n,o){if(n.startsWith(e)&&(n=n.substring(e.length)),/^(\w+:)|\/\//i.test(n))return n;if(/^[.]{0,2}\//i.test(n))return new URL(n,null==o?location:o).href;if(!n.length||/^[\s._]/.test(n)||/\s$/.test(n))throw new Gw("illegal name");const s=Kw(n);if(!s)return`${e}${n}`;if(!s.version&&null!=o&&o.startsWith(e)){const t=await i(Kw(o.substring(e.length)));s.version=t.dependencies&&t.dependencies[s.name]||t.peerDependencies&&t.peerDependencies[s.name]}if(s.path&&!$w.test(s.path)&&(s.path+=".js"),s.path&&s.version&&Uw.test(s.version))return`${e}${s.name}@${s.version}/${s.path}`;const r=await i(s);return`${e}${r.name}@${r.version}/${s.path||function(e){for(const i of t){let t=e[i];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),$w.test(t)?t:`${t}.js`}}(r)||"index.js"}`}}()),Jw.amd={};const eS=(t,i)=>{const n=i?e=>e:e=>`/pkg/${encodeURIComponent(e)}`;return Xw((async e=>n(e))).alias({"@nebula.js/stardust":e})(i||t)},tS={};function iS(e){const[t]=zc(),i=t.get(e),[n,...o]=Xc(i,"getProperties");return[n,e=>i.setProperties(e),...o]}window.onHotChange=(e,t)=>(tS[e]||(tS[e]=[]),tS[e].push(t),window[e]&&t(),()=>{const i=tS[e].indexOf(t);tS[e].splice(i,1)});const nS=i.createContext(),oS=e=>({qDef:{qFieldDefs:[e]}});function sS({dc:e,def:t,properties:i,dimensions:n}){const o=i,s={dimensions:()=>n,measures:()=>[],addDimension(i){const n="string"==typeof i?oS(i):{...i,qDef:i.qDef||{}};return n.qDef.cId=n.qDef.cId||d_(),n.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(n,o),n},removeDimension(e){const i=n[e];return t.dimensions.removed(i,o,e),i},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>s.dimensions().length<s.maxDimensions(),canAddMeasure:()=>!1};return s}const rS={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},aS={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function lS(e,t="dimension"){const i="dimension"===t?rS:aS,[n]=jc(i,e),[o]=Zc(n);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function cS(e){return(0,Ot.Ay)("MuiListSubheader",e)}(0,Mt.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const dS=["className","color","component","disableGutters","disableSticky","inset"],hS=(0,qt.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,"default"!==i.color&&t[`color${(0,ui.A)(i.color)}`],!i.disableGutters&&t.gutters,i.inset&&t.inset,!i.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,Dt.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),uS=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:s="li",disableGutters:r=!1,disableSticky:a=!1,inset:l=!1}=i,c=(0,Et.A)(i,dS),d=(0,Dt.A)({},i,{color:o,component:s,disableGutters:r,disableSticky:a,inset:l}),h=(e=>{const{classes:t,color:i,disableGutters:n,inset:o,disableSticky:s}=e,r={root:["root","default"!==i&&`color${(0,ui.A)(i)}`,!n&&"gutters",o&&"inset",!s&&"sticky"]};return(0,Nt.A)(r,cS,t)})(d);return(0,Ft.jsx)(hS,(0,Dt.A)({as:s,className:(0,It.A)(h.root,n),ref:t,ownerState:d},c))}));uS.muiSkipListHighlight=!0;const gS=uS;var pS=r(3657),mS=r.n(pS),fS=r(2339),vS=r.n(fS),_S=r(4980),bS=r(7781),yS=r(1941);function CS(e){return(0,Ot.Ay)("MuiInput",e)}const wS=(0,Dt.A)({},aa,(0,Mt.A)("MuiInput",["root","underline","input"])),SS=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xS=(0,qt.Ay)(ka,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[...xa(e,t),!i.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let i="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(i=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,Dt.A)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wS.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wS.disabled}, .${wS.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${i}`}},[`&.${wS.disabled}:before`]:{borderBottomStyle:"dotted"}})})),LS=(0,qt.Ay)(Ea,{name:"MuiInput",slot:"Input",overridesResolver:La})({}),kS=i.forwardRef((function(e,t){var i,n,o,s;const r=(0,Tt.A)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:u=!1,slotProps:g,slots:p={},type:m="text"}=r,f=(0,Et.A)(r,SS),v=(e=>{const{classes:t,disableUnderline:i}=e,n={root:["root",!i&&"underline"],input:["input"]},o=(0,Nt.A)(n,CS,t);return(0,Dt.A)({},t,o)})(r),_={root:{ownerState:{disableUnderline:a}}},b=(null!=g?g:c)?(0,Kt.A)(null!=g?g:c,_):_,y=null!=(i=null!=(n=p.root)?n:l.Root)?i:xS,C=null!=(o=null!=(s=p.input)?s:l.Input)?o:LS;return(0,Ft.jsx)(Na,(0,Dt.A)({slots:{root:y,input:C},slotProps:b,fullWidth:d,inputComponent:h,multiline:u,ref:t,type:m},f,{classes:v}))}));kS.muiName="Input";const ES=kS;function DS(e){return(0,Ot.Ay)("MuiFilledInput",e)}const IS=(0,Dt.A)({},aa,(0,Mt.A)("MuiFilledInput",["root","underline","input"])),NS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],AS=(0,qt.Ay)(ka,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[...xa(e,t),!i.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var i;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Dt.A)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${IS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${IS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(i=(e.vars||e).palette[t.color||"primary"])?void 0:i.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${IS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${IS.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${IS.disabled}, .${IS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${IS.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,Dt.A)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),RS=(0,qt.Ay)(Ea,{name:"MuiFilledInput",slot:"Input",overridesResolver:La})((({theme:e,ownerState:t})=>(0,Dt.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),TS=i.forwardRef((function(e,t){var i,n,o,s;const r=(0,Tt.A)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:h=!1,slotProps:u,slots:g={},type:p="text"}=r,m=(0,Et.A)(r,NS),f=(0,Dt.A)({},r,{fullWidth:c,inputComponent:d,multiline:h,type:p}),v=(e=>{const{classes:t,disableUnderline:i}=e,n={root:["root",!i&&"underline"],input:["input"]},o=(0,Nt.A)(n,DS,t);return(0,Dt.A)({},t,o)})(r),_={root:{ownerState:f},input:{ownerState:f}},b=(null!=u?u:l)?(0,Kt.A)(_,null!=u?u:l):_,y=null!=(i=null!=(n=g.root)?n:a.Root)?i:AS,C=null!=(o=null!=(s=g.input)?s:a.Input)?o:RS;return(0,Ft.jsx)(Na,(0,Dt.A)({slots:{root:y,input:C},componentsProps:b,fullWidth:c,inputComponent:d,multiline:h,ref:t,type:p},m,{classes:v}))}));TS.muiName="Input";const qS=TS;function MS(e){return(0,Ot.Ay)("MuiFormLabel",e)}const OS=(0,Mt.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),PS=["children","className","color","component","disabled","error","filled","focused","required"],FS=(0,qt.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,Dt.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,Dt.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${OS.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${OS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${OS.error}`]:{color:(e.vars||e).palette.error.main}}))),BS=(0,qt.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${OS.error}`]:{color:(e.vars||e).palette.error.main}}))),WS=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:s="label"}=i,r=(0,Et.A)(i,PS),a=sa({props:i,muiFormControl:oa(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Dt.A)({},i,{color:a.color||"primary",component:s,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:i,focused:n,disabled:o,error:s,filled:r,required:a}=e,l={root:["root",`color${(0,ui.A)(i)}`,o&&"disabled",s&&"error",r&&"filled",n&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return(0,Nt.A)(l,MS,t)})(l);return(0,Ft.jsxs)(FS,(0,Dt.A)({as:s,ownerState:l,className:(0,It.A)(c.root,o),ref:t},r,{children:[n,a.required&&(0,Ft.jsxs)(BS,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),VS=WS;function zS(e){return(0,Ot.Ay)("MuiInputLabel",e)}(0,Mt.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const HS=["disableAnimation","margin","shrink","variant","className"],jS=(0,qt.Ay)(VS,{shouldForwardProp:e=>(0,qt.ep)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${OS.asterisk}`]:t.asterisk},t.root,i.formControl&&t.formControl,"small"===i.size&&t.sizeSmall,i.shrink&&t.shrink,!i.disableAnimation&&t.animated,i.focused&&t.focused,t[i.variant]]}})((({theme:e,ownerState:t})=>(0,Dt.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,Dt.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,Dt.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,Dt.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),US=i.forwardRef((function(e,t){const i=(0,Tt.A)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:s}=i,r=(0,Et.A)(i,HS),a=oa();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=sa({props:i,muiFormControl:a,states:["size","variant","required","focused"]}),d=(0,Dt.A)({},i,{disableAnimation:n,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),h=(e=>{const{classes:t,formControl:i,size:n,shrink:o,disableAnimation:s,variant:r,required:a}=e,l={root:["root",i&&"formControl",!s&&"animated",o&&"shrink",n&&"normal"!==n&&`size${(0,ui.A)(n)}`,r],asterisk:[a&&"asterisk"]},c=(0,Nt.A)(l,zS,t);return(0,Dt.A)({},t,c)})(d);return(0,Ft.jsx)(jS,(0,Dt.A)({"data-shrink":l,ownerState:d,ref:t,className:(0,It.A)(h.root,s)},r,{classes:h}))})),$S=US;function GS(e){return(0,Ot.Ay)("MuiFormControl",e)}(0,Mt.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const KS=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XS=(0,qt.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,Dt.A)({},t.root,t[`margin${(0,ui.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,Dt.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),ZS=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiFormControl"}),{children:o,className:s,color:r="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:h=!1,hiddenLabel:u=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined"}=n,v=(0,Et.A)(n,KS),_=(0,Dt.A)({},n,{color:r,component:a,disabled:l,error:c,fullWidth:h,hiddenLabel:u,margin:g,required:p,size:m,variant:f}),b=(e=>{const{classes:t,margin:i,fullWidth:n}=e,o={root:["root","none"!==i&&`margin${(0,ui.A)(i)}`,n&&"fullWidth"]};return(0,Nt.A)(o,GS,t)})(_),[y,C]=i.useState((()=>{let e=!1;return o&&i.Children.forEach(o,(t=>{if(!(0,Os.A)(t,["Input","Select"]))return;const i=(0,Os.A)(t,["Select"])?t.props.input:t;i&&i.props.startAdornment&&(e=!0)})),e})),[w,S]=i.useState((()=>{let e=!1;return o&&i.Children.forEach(o,(t=>{(0,Os.A)(t,["Input","Select"])&&(wa(t.props,!0)||wa(t.props.inputProps,!0))&&(e=!0)})),e})),[x,L]=i.useState(!1);l&&x&&L(!1);const k=void 0===d||l?x:d;let E;const D=i.useMemo((()=>({adornedStart:y,setAdornedStart:C,color:r,disabled:l,error:c,filled:w,focused:k,fullWidth:h,hiddenLabel:u,size:m,onBlur:()=>{L(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{L(!0)},registerEffect:E,required:p,variant:f})),[y,r,l,c,w,k,h,u,E,p,m,f]);return(0,Ft.jsx)(na.Provider,{value:D,children:(0,Ft.jsx)(XS,(0,Dt.A)({as:a,ownerState:_,className:(0,It.A)(b.root,s),ref:t},v,{children:o}))})})),YS=ZS;function QS(e){return(0,Ot.Ay)("MuiFormHelperText",e)}const JS=(0,Mt.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ex;const tx=["children","className","component","disabled","error","filled","focused","margin","required","variant"],ix=(0,qt.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.size&&t[`size${(0,ui.A)(i.size)}`],i.contained&&t.contained,i.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,Dt.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${JS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${JS.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),nx=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:s="p"}=i,r=(0,Et.A)(i,tx),a=sa({props:i,muiFormControl:oa(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Dt.A)({},i,{component:s,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,contained:i,size:n,disabled:o,error:s,filled:r,focused:a,required:l}=e,c={root:["root",o&&"disabled",s&&"error",n&&`size${(0,ui.A)(n)}`,i&&"contained",a&&"focused",r&&"filled",l&&"required"]};return(0,Nt.A)(c,QS,t)})(l);return(0,Ft.jsx)(ix,(0,Dt.A)({as:s,ownerState:l,className:(0,It.A)(c.root,o),ref:t},r,{children:" "===n?ex||(ex=(0,Ft.jsx)("span",{className:"notranslate",children:""})):n}))})),ox=nx;function sx(e){return(0,Ot.Ay)("MuiNativeSelect",e)}const rx=(0,Mt.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ax=["className","disabled","error","IconComponent","inputRef","variant"],lx=({ownerState:e,theme:t})=>(0,Dt.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Dt.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${rx.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),cx=(0,qt.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:qt.ep,overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.select,t[i.variant],i.error&&t.error,{[`&.${rx.multiple}`]:t.multiple}]}})(lx),dx=({ownerState:e,theme:t})=>(0,Dt.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${rx.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),hx=(0,qt.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${(0,ui.A)(i.variant)}`],i.open&&t.iconOpen]}})(dx),ux=i.forwardRef((function(e,t){const{className:n,disabled:o,error:s,IconComponent:r,inputRef:a,variant:l="standard"}=e,c=(0,Et.A)(e,ax),d=(0,Dt.A)({},e,{disabled:o,variant:l,error:s}),h=(e=>{const{classes:t,variant:i,disabled:n,multiple:o,open:s,error:r}=e,a={select:["select",i,n&&"disabled",o&&"multiple",r&&"error"],icon:["icon",`icon${(0,ui.A)(i)}`,s&&"iconOpen",n&&"disabled"]};return(0,Nt.A)(a,sx,t)})(d);return(0,Ft.jsxs)(i.Fragment,{children:[(0,Ft.jsx)(cx,(0,Dt.A)({ownerState:d,className:(0,It.A)(h.select,n),disabled:o,ref:a||t},c)),e.multiple?null:(0,Ft.jsx)(hx,{as:r,ownerState:d,className:h.icon})]})})),gx=ux;function px(e){return(0,Ot.Ay)("MuiSelect",e)}const mx=(0,Mt.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var fx;const vx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],_x=(0,qt.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`&.${mx.select}`]:t.select},{[`&.${mx.select}`]:t[i.variant]},{[`&.${mx.error}`]:t.error},{[`&.${mx.multiple}`]:t.multiple}]}})(lx,{[`&.${mx.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bx=(0,qt.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${(0,ui.A)(i.variant)}`],i.open&&t.iconOpen]}})(dx),yx=(0,qt.Ay)("input",{shouldForwardProp:e=>(0,qt._n)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Cx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function wx(e){return null==e||"string"==typeof e&&!e.trim()}const Sx=i.forwardRef((function(e,t){var n;const{"aria-describedby":o,"aria-label":s,autoFocus:r,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:h,disabled:u,displayEmpty:g,error:p=!1,IconComponent:m,inputRef:f,labelId:v,MenuProps:_={},multiple:b,name:y,onBlur:C,onChange:w,onClose:S,onFocus:x,onOpen:L,open:k,readOnly:E,renderValue:D,SelectDisplayProps:I={},tabIndex:N,value:A,variant:R="standard"}=e,T=(0,Et.A)(e,vx),[q,M]=(0,$h.A)({controlled:A,default:h,name:"Select"}),[O,P]=(0,$h.A)({controlled:k,default:d,name:"Select"}),F=i.useRef(null),B=i.useRef(null),[W,V]=i.useState(null),{current:z}=i.useRef(null!=k),[H,j]=i.useState(),U=(0,zn.A)(t,f),$=i.useCallback((e=>{B.current=e,e&&V(e)}),[]),G=null==W?void 0:W.parentNode;i.useImperativeHandle(U,(()=>({focus:()=>{B.current.focus()},node:F.current,value:q})),[q]),i.useEffect((()=>{d&&O&&W&&!z&&(j(a?null:G.clientWidth),B.current.focus())}),[W,a]),i.useEffect((()=>{r&&B.current.focus()}),[r]),i.useEffect((()=>{if(!v)return;const e=(0,qr.A)(B.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&B.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const K=(e,t)=>{e?L&&L(t):S&&S(t),z||(j(a?null:G.clientWidth),P(e))},X=i.Children.toArray(l),Z=e=>t=>{let i;if(t.currentTarget.hasAttribute("tabindex")){if(b){i=Array.isArray(q)?q.slice():[];const t=q.indexOf(e.props.value);-1===t?i.push(e.props.value):i.splice(t,1)}else i=e.props.value;if(e.props.onClick&&e.props.onClick(t),q!==i&&(M(i),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:i,name:y}}),w(o,e)}b||K(!1,t)}},Y=null!==W&&O;let Q,J;delete T["aria-invalid"];const ee=[];let te=!1,ie=!1;(wa({value:q})||g)&&(D?Q=D(q):te=!0);const ne=X.map((e=>{if(!i.isValidElement(e))return null;let t;if(b){if(!Array.isArray(q))throw new Error((0,da.A)(2));t=q.some((t=>Cx(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Cx(q,e.props.value),t&&te&&(J=e.props.children);return t&&(ie=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Z(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Q=b?0===ee.length?null:ee.reduce(((e,t,i)=>(e.push(t),i<ee.length-1&&e.push(", "),e)),[]):J);let oe,se=H;!a&&z&&W&&(se=G.clientWidth),oe=void 0!==N?N:u?null:0;const re=I.id||(y?`mui-component-select-${y}`:void 0),ae=(0,Dt.A)({},e,{variant:R,value:q,open:Y,error:p}),le=(e=>{const{classes:t,variant:i,disabled:n,multiple:o,open:s,error:r}=e,a={select:["select",i,n&&"disabled",o&&"multiple",r&&"error"],icon:["icon",`icon${(0,ui.A)(i)}`,s&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,Nt.A)(a,px,t)})(ae),ce=(0,Dt.A)({},_.PaperProps,null==(n=_.slotProps)?void 0:n.paper),de=(0,yS.A)();return(0,Ft.jsxs)(i.Fragment,{children:[(0,Ft.jsx)(_x,(0,Dt.A)({ref:$,tabIndex:oe,role:"combobox","aria-controls":de,"aria-disabled":u?"true":void 0,"aria-expanded":Y?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[v,re].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{E||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))},onMouseDown:u||E?null:e=>{0===e.button&&(e.preventDefault(),B.current.focus(),K(!0,e))},onBlur:e=>{!Y&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:y}}),C(e))},onFocus:x},I,{ownerState:ae,className:(0,It.A)(I.className,le.select,c),id:re,children:wx(Q)?fx||(fx=(0,Ft.jsx)("span",{className:"notranslate",children:""})):Q})),(0,Ft.jsx)(yx,(0,Dt.A)({"aria-invalid":p,value:Array.isArray(q)?q.join(","):q,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=X.find((t=>t.props.value===e.target.value));void 0!==t&&(M(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:u,className:le.nativeInput,autoFocus:r,ownerState:ae},T)),(0,Ft.jsx)(bx,{as:m,className:le.icon,ownerState:ae}),(0,Ft.jsx)(Fw,(0,Dt.A)({id:`menu-${y||""}`,anchorEl:G,open:Y,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:(0,Dt.A)({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:de},_.MenuListProps),slotProps:(0,Dt.A)({},_.slotProps,{paper:(0,Dt.A)({},ce,{style:(0,Dt.A)({minWidth:se},null!=ce?ce.style:null)})}),children:ne}))]})})),xx=Sx,Lx=(0,gn.A)((0,Ft.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),kx=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ex=["root"],Dx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,qt.ep)(e)&&"variant"!==e,slot:"Root"},Ix=(0,qt.Ay)(ES,Dx)(""),Nx=(0,qt.Ay)(Oa,Dx)(""),Ax=(0,qt.Ay)(qS,Dx)(""),Rx=i.forwardRef((function(e,t){const n=(0,Tt.A)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:s,classes:r={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=Lx,id:h,input:u,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:v=!1,native:_=!1,onClose:b,onOpen:y,open:C,renderValue:w,SelectDisplayProps:S,variant:x="outlined"}=n,L=(0,Et.A)(n,kx),k=_?gx:xx,E=sa({props:n,muiFormControl:oa(),states:["variant","error"]}),D=E.variant||x,I=(0,Dt.A)({},n,{variant:D,classes:r}),N=(e=>{const{classes:t}=e;return t})(I),A=(0,Et.A)(N,Ex),R=u||{standard:(0,Ft.jsx)(Ix,{ownerState:I}),outlined:(0,Ft.jsx)(Nx,{label:p,ownerState:I}),filled:(0,Ft.jsx)(Ax,{ownerState:I})}[D],T=(0,zn.A)(t,R.ref);return(0,Ft.jsx)(i.Fragment,{children:i.cloneElement(R,(0,Dt.A)({inputComponent:k,inputProps:(0,Dt.A)({children:s,error:E.error,IconComponent:d,variant:D,type:void 0,multiple:v},_?{id:h}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:b,onOpen:y,open:C,renderValue:w,SelectDisplayProps:(0,Dt.A)({id:h},S)},g,{classes:g?(0,Kt.A)(A,g.classes):A},u?u.props.inputProps:{})},(v&&_||c)&&"outlined"===D?{notched:!0}:{},{ref:T,className:(0,It.A)(R.props.className,a,N.root)},!u&&{variant:D},L))})}));Rx.muiName="Select";const Tx=Rx;function qx(e){return(0,Ot.Ay)("MuiTextField",e)}(0,Mt.A)("MuiTextField",["root"]);const Mx=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ox={standard:ES,filled:qS,outlined:Oa},Px=(0,qt.Ay)(YS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fx=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:s,className:r,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:u=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:v,inputRef:_,label:b,maxRows:y,minRows:C,multiline:w=!1,name:S,onBlur:x,onChange:L,onFocus:k,placeholder:E,required:D=!1,rows:I,select:N=!1,SelectProps:A,type:R,value:T,variant:q="outlined"}=i,M=(0,Et.A)(i,Mx),O=(0,Dt.A)({},i,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:u,multiline:w,required:D,select:N,variant:q}),P=(e=>{const{classes:t}=e;return(0,Nt.A)({root:["root"]},qx,t)})(O),F={};"outlined"===q&&(m&&void 0!==m.shrink&&(F.notched=m.shrink),F.label=b),N&&(A&&A.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=(0,yS.A)(p),W=g&&B?`${B}-helper-text`:void 0,V=b&&B?`${B}-label`:void 0,z=Ox[q],H=(0,Ft.jsx)(z,(0,Dt.A)({"aria-describedby":W,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:u,multiline:w,name:S,rows:I,maxRows:y,minRows:C,type:R,value:T,id:B,inputRef:_,onBlur:x,onChange:L,onFocus:k,placeholder:E,inputProps:f},F,v));return(0,Ft.jsxs)(Px,(0,Dt.A)({className:(0,It.A)(P.root,r),disabled:c,error:d,fullWidth:u,ref:t,required:D,color:a,variant:q,ownerState:O},M,{children:[null!=b&&""!==b&&(0,Ft.jsx)($S,(0,Dt.A)({htmlFor:B,id:V},m,{children:b})),N?(0,Ft.jsx)(Tx,(0,Dt.A)({"aria-describedby":W,id:B,labelId:V,value:T,input:H},A,{children:s})):H,g&&(0,Ft.jsx)(ox,(0,Dt.A)({id:W},h,{children:g}))]}))})),Bx=Fx,Wx="Search",Vx={gridContainer:`${Wx}-gridContainer`,gridItem:`${Wx}-gridItem`},zx=(0,qt.Ay)(Ho)((({theme:e})=>({[`& .${Vx.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${Vx.gridItem}`]:{padding:e.spacing(0,1,0,1)}})));function Hx(){const e=document.querySelector('meta[name="viewport"]');e instanceof HTMLMetaElement&&(e.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0")}function jx({onChange:e=(()=>{}),onEnter:t=(()=>{}),onEscape:n=(()=>{})}){const[o,s]=(0,i.useState)("");return i.createElement(zx,{className:Vx.gridContainer,item:!0,container:!0,direction:"row",alignItems:"center"},i.createElement(Ho,{item:!0},i.createElement(Hf,null)),i.createElement(Ho,{className:Vx.gridItem,item:!0,xs:!0},i.createElement(Bx,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{s(t.target.value),e(t.target.value)},onFocus:Hx,onKeyDown:e=>{switch(e.key){case"Enter":t(),s("");break;case"Escape":n()}}})))}function Ux({field:e,onSelect:t,sub:n,parts:o}){return i.createElement(Ys,{button:!0,onClick:()=>t(e.qName),"data-key":e.qName},i.createElement(nr,null,o.map(((e,t)=>i.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),n&&i.createElement(_S.A,{fontSize:"small"}))}function $x({item:e,onSelect:t,parts:n}){return i.createElement(Ys,{button:!0,onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId},i.createElement(nr,null,n.map(((e,t)=>i.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function Gx({aggr:e,field:t,onSelect:n}){return i.createElement(Ys,{button:!0,onClick:()=>n(e),"data-key":e},i.createElement(nr,null,`${e}(${t})`))}function Kx({app:e,onSelect:t,title:n="",type:o="dimension",searchTerm:s=""}){const[r]=lS(e,o),a=(0,i.useMemo)((()=>r.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[r]);return r.length>0?i.createElement(i.Fragment,null,i.createElement(gS,{component:"div",style:{backgroundColor:"inherit"}},n),a.map((e=>{const n=vS()(e.qData.title,s),o=mS()(e.qData.title,n);return s&&0===n.length?null:i.createElement($x,{key:e.qInfo.qId,item:e,onSelect:t,parts:o})}))):null}function Xx({alignTo:e,show:t,close:n,onSelected:o,type:s}){const r=(0,i.useContext)(nS),[a,l]=(0,i.useState)(null),[c,d]=(0,i.useState)(""),h=_i(),[u]=jc({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},r),[g]=Zc(u),p=(0,i.useMemo)((()=>(g&&g.qFieldList.qItems||[]).slice().sort(((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())))),[g]),m=e=>{e&&e.qId?(o(e),n()):"measure"===s?l(e):(o({field:e}),n())},f=e=>{o({field:a,aggregation:e}),n()};return i.createElement(th,{open:t,onClose:n,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:h.palette.background.lightest}}},!a&&i.createElement(jx,{onChange:d}),a&&i.createElement(qs,{dense:!0,component:"nav"},i.createElement(Ys,{button:!0,onClick:()=>l(null)},i.createElement(mf,null,i.createElement(bS.A,null)),i.createElement(nr,null,"Back")),i.createElement(Km,null),i.createElement(gS,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>i.createElement(Gx,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&i.createElement(qs,{dense:!0,component:"nav",style:{background:h.palette.background.lightest}},i.createElement(Kx,{app:r,onSelect:m,type:s,title:"measure"===s?"Measures":"Dimensions",searchTerm:c}),i.createElement(gS,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const t=vS()(e.qName,c),n=mS()(e.qName,t);return c&&0===t.length?null:i.createElement(Ux,{key:e.qName,field:e,onSelect:m,sub:"measure"===s,parts:n})}))))}const Zx=({field:e,libraryItems:t})=>{if(e.qLibraryId){const i=t.filter((t=>t.qInfo.qId===e.qLibraryId))[0];return i?i.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function Yx({items:e,type:t="dimension",label:n="",addLabel:o="Add",onAdded:s,onRemoved:r,canAdd:a=!0}){const[l,c]=(0,i.useState)(!1),d=(0,i.useRef)(null),h=(0,i.useContext)(nS),[u]=lS(h,t);return i.createElement("div",null,i.createElement(Zo,{variant:"overline"},n),i.createElement(qs,{dense:!0},e.map(((e,n)=>i.createElement(Ys,{disableGutters:!0,key:e.qDef&&e.qDef.cId||n},i.createElement(nr,null,i.createElement(Zx,{field:e,libraryItems:u,type:t})),i.createElement(Us,null,i.createElement(Ao,{onClick:()=>{r(n)},size:"large"},i.createElement(Ds,null))))))),i.createElement($a,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&i.createElement(Xx,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?s(e):e&&s("dimension"===t?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:t}))}const Qx=(e,t,i)=>{const n=t.split("/");let o=e;if(void 0===o)return i;for(let e=0;e<n.length;++e)if(""!==n[e]){if(void 0===o[n[e]])return i;o=o[n[e]]}return o};function Jx({setProperties:e,target:t,properties:n}){const[o,s]=(0,i.useState)([]),r=t.dimensions&&t.dimensions.max&&t.dimensions.max()>1?sS:Q_,a=t.propertyPath.match("/qHyperCube")?Z_:r,l=Qx(n,t.propertyPath),c=(0,i.useMemo)((()=>a({def:t,dc:l,properties:n,dimensions:o})),[l,t,n,o]);return i.createElement("div",{style:{width:"100%"}},i.createElement(Zo,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},t.propertyPath),i.createElement(Yx,{key:"dimensions",onAdded:t=>{const i="object"==typeof t?{qLibraryId:t.qId}:t,r=c.addDimension(i);e(n).then((()=>{s([...o,r])}))},onRemoved:t=>{c.removeDimension(t),e(n).then((()=>{s([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),i.createElement(Yx,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(n)},onRemoved:t=>{c.removeMeasure(t),e(n)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function eL({setProperties:e,sn:t,properties:n}){if(!t)return null;const{targets:o}=t.qae.data;return o.length?i.createElement(qs,null,o.map((t=>i.createElement(Ys,{key:t.propertyPath,divider:!0,disableGutters:!0},i.createElement(Jx,{target:t,properties:n,setProperties:e}))))):i.createElement(Zo,null,"No data targets found")}const tL=i.createContext({}),iL=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],nL=["component","slots","slotProps"],oL=["component"];function sL(e){return(0,Ot.Ay)("MuiAccordion",e)}const rL=(0,Mt.A)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),aL=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],lL=(0,qt.Ay)(Hd,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${rL.region}`]:t.region},t.root,!i.square&&t.rounded,!i.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${rL.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${rL.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,Dt.A)({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${rL.expanded}`]:{margin:"16px 0"}}))),cL=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiAccordion"}),{children:o,className:s,defaultExpanded:r=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:h=!1,slots:u={},slotProps:g={},TransitionComponent:p,TransitionProps:m}=n,f=(0,Et.A)(n,aL),[v,_]=(0,$h.A)({controlled:c,default:r,name:"Accordion",state:"expanded"}),b=i.useCallback((e=>{_(!v),d&&d(e,!v)}),[v,d,_]),[y,...C]=i.Children.toArray(o),w=i.useMemo((()=>({expanded:v,disabled:a,disableGutters:l,toggle:b})),[v,a,l,b]),S=(0,Dt.A)({},n,{square:h,disabled:a,disableGutters:l,expanded:v}),x=(e=>{const{classes:t,square:i,expanded:n,disabled:o,disableGutters:s}=e,r={root:["root",!i&&"rounded",n&&"expanded",o&&"disabled",!s&&"gutters"],region:["region"]};return(0,Nt.A)(r,sL,t)})(S),L=(0,Dt.A)({transition:p},u),k=(0,Dt.A)({transition:m},g),[E,D]=function(e,t){const{className:i,elementType:n,ownerState:o,externalForwardedProps:s,getSlotOwnerState:r,internalForwardedProps:a}=t,l=(0,Et.A)(t,iL),{component:c,slots:d={[e]:void 0},slotProps:h={[e]:void 0}}=s,u=(0,Et.A)(s,nL),g=d[e]||n,p=gr(h[e],o),m=ur((0,Dt.A)({className:i},l,{externalForwardedProps:"root"===e?u:void 0,externalSlotProps:p})),{props:{component:f},internalRef:v}=m,_=(0,Et.A)(m.props,oL),b=(0,lr.A)(v,null==p?void 0:p.ref,t.ref),y=r?r(_):{},C=(0,Dt.A)({},o,y),w="root"===e?f||c:f,S=cr(g,(0,Dt.A)({},"root"===e&&!c&&!d[e]&&a,"root"!==e&&!d[e]&&a,_,w&&{as:w},{ref:b}),C);return Object.keys(y).forEach((e=>{delete S[e]})),[g,S]}("transition",{elementType:Ss,externalForwardedProps:{slots:L,slotProps:k},ownerState:S});return(0,Ft.jsxs)(lL,(0,Dt.A)({className:(0,It.A)(x.root,s),ref:t,ownerState:S,square:h},f,{children:[(0,Ft.jsx)(tL.Provider,{value:w,children:y}),(0,Ft.jsx)(E,(0,Dt.A)({in:v,timeout:"auto"},D,{children:(0,Ft.jsx)("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:x.region,children:C})}))]}))})),dL=cL;function hL(e){return(0,Ot.Ay)("MuiAccordionSummary",e)}const uL=(0,Mt.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),gL=["children","className","expandIcon","focusVisibleClassName","onClick"],pL=(0,qt.Ay)(Lo,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const i={duration:e.transitions.duration.shortest};return(0,Dt.A)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],i),[`&.${uL.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uL.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${uL.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${uL.expanded}`]:{minHeight:64}})})),mL=(0,qt.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,Dt.A)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${uL.expanded}`]:{margin:"20px 0"}}))),fL=(0,qt.Ay)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${uL.expanded}`]:{transform:"rotate(180deg)"}}))),vL=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiAccordionSummary"}),{children:o,className:s,expandIcon:r,focusVisibleClassName:a,onClick:l}=n,c=(0,Et.A)(n,gL),{disabled:d=!1,disableGutters:h,expanded:u,toggle:g}=i.useContext(tL),p=(0,Dt.A)({},n,{expanded:u,disabled:d,disableGutters:h}),m=(e=>{const{classes:t,expanded:i,disabled:n,disableGutters:o}=e,s={root:["root",i&&"expanded",n&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",i&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",i&&"expanded"]};return(0,Nt.A)(s,hL,t)})(p);return(0,Ft.jsxs)(pL,(0,Dt.A)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":u,className:(0,It.A)(m.root,s),focusVisibleClassName:(0,It.A)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:t,ownerState:p},c,{children:[(0,Ft.jsx)(mL,{className:m.content,ownerState:p,children:o}),r&&(0,Ft.jsx)(fL,{className:m.expandIconWrapper,ownerState:p,children:r})]}))})),_L=vL;function bL(e){return(0,Ot.Ay)("MuiAccordionDetails",e)}(0,Mt.A)("MuiAccordionDetails",["root"]);const yL=["className"],CL=(0,qt.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),wL=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiAccordionDetails"}),{className:n}=i,o=(0,Et.A)(i,yL),s=i,r=(e=>{const{classes:t}=e;return(0,Nt.A)({root:["root"]},bL,t)})(s);return(0,Ft.jsx)(CL,(0,Dt.A)({className:(0,It.A)(r.root,n),ref:t,ownerState:s},o))})),SL=wL;var xL=r(2226);let LL=null;const kL="AutoComponents",EL={summary:`${kL}-summary`,details:`${kL}-details`,root:`${kL}-root`},DL=(0,qt.Ay)(Ho)((({theme:e})=>({[`& .${EL.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${EL.details}`]:{padding:e.spacing(1)}}))),IL=(0,qt.Ay)(dL)((({theme:e})=>({[`& .${EL.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),NL=(e,t)=>Array.isArray(e)?"array":TL&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":TL&&e&&"object"==typeof e&&"qStringExpression"in e?"expression":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"number"==typeof e?"number":e&&"object"==typeof e?"object":"unknown",AL={boolean:function({property:e,value:t,target:n,changed:o}){return i.createElement(Uh,{control:i.createElement(du,{checked:t,onChange:t=>{n[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:t,target:n,changed:o}){const[s,r]=(0,i.useState)(t);return i.createElement(Bx,{variant:"standard",fullWidth:!0,onChange:e=>{r(e.target.value)},onBlur:()=>{s!==t&&(n[e]=s,o())},label:e,value:s})},object:function({property:e,value:t,changed:n,app:o}){return i.createElement(IL,{square:!0,className:EL.root},i.createElement(_L,{expandIcon:i.createElement(xL.A,null),className:EL.summary},i.createElement(Zo,null,e)),i.createElement(SL,{className:EL.details},qL(t,n,o)))},number:function({property:e,value:t,target:n,changed:o}){const[s,r]=(0,i.useState)(+t);return i.createElement(Bx,{variant:"standard",fullWidth:!0,onChange:e=>{r(e.target.value)},onBlur:()=>{s!==t&&(n[e]=+s,o())},label:e,value:s})},expression:function({property:e,value:t,target:n,changed:o}){const s=t.qStringExpression&&t.qStringExpression.qExpr?t.qStringExpression.qExpr:"",[r,a]=(0,i.useState)(s);return i.createElement(Bx,{variant:"standard",InputProps:{startAdornment:i.createElement(zf,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{r!==t&&(n[e].qStringExpression={qExpr:`=${r}`},o())},label:e,value:r})},variable:function({property:e,value:t,target:n,changed:o,app:s}){const[r,a]=(0,i.useState)(t.name),[l,c]=(0,i.useState)([]);return(0,i.useEffect)((()=>{!async function(){const e=await async function(e){return LL||(LL=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await LL.getLayout()).qVariableList.qItems.map((e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName})))}(s);c(e)}()}),[]),0===l.length?i.createElement("em",null,"No variables in app"):i.createElement(YS,{size:"small",fullWidth:!0},i.createElement(Tx,{onChange:t=>{a(t.target.value),n[e].name=t.target.value,n[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:r,renderValue:e=>0===e.length?i.createElement("em",null,"Select a variable"):e},l.map((e=>i.createElement(hf,{key:e.value,value:e.value},e.label)))))}},RL=/^q[A-Z]/;let TL=!1;function qL(e,t,n,o){o&&o.PP_EXPRESSIONS&&(TL=!0);const s=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(RL.test(t))return!1;const i=NL(e[t],t);return!!AL[i]&&{Component:AL[i],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return i.createElement(DL,{container:!0,direction:"column",gap:0,alignItems:"stretch"},s.map((o=>i.createElement(Ho,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},i.createElement(o.Component,{key:o.key,app:n,property:o.property,value:o.value,target:e,changed:t})))))}function ML({viz:e,sn:t,isTemp:n,storage:o,flags:s}){const[r,a]=iS(e.id),l=(0,i.useContext)(nS),[c,d]=(0,i.useState)(!1!==o.get("readFromCache")),h=(0,i.useCallback)((()=>{a(r)}),[e,t,r]);return t&&e&&r?i.createElement("div",{style:{minWidth:"250px",padding:"8px"}},n&&i.createElement(i.Fragment,null,i.createElement(Ho,{item:!0,container:!0,alignItems:"center"},i.createElement(Uh,{control:i.createElement(du,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),i.createElement(Km,null)),i.createElement(eL,{properties:r,setProperties:a,sn:t}),qL(r,h,l,s)):null}function OL(e){return(0,Ot.Ay)("MuiDialog",e)}const PL=(0,Mt.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),FL=i.createContext({}),BL=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],WL=(0,qt.Ay)(Ad,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),VL=(0,qt.Ay)(Pd,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),zL=(0,qt.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.container,t[`scroll${(0,ui.A)(i.scroll)}`]]}})((({ownerState:e})=>(0,Dt.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),HL=(0,qt.Ay)(Hd,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.paper,t[`scrollPaper${(0,ui.A)(i.scroll)}`],t[`paperWidth${(0,ui.A)(String(i.maxWidth))}`],i.fullWidth&&t.paperFullWidth,i.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,Dt.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${PL.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${PL.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${PL.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),jL=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiDialog"}),o=_i(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":r,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:h,disableEscapeKeyDown:u=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClose:v,open:_,PaperComponent:b=Hd,PaperProps:y={},scroll:C="paper",TransitionComponent:w=kd,transitionDuration:S=s,TransitionProps:x}=n,L=(0,Et.A)(n,BL),k=(0,Dt.A)({},n,{disableEscapeKeyDown:u,fullScreen:g,fullWidth:p,maxWidth:m,scroll:C}),E=(e=>{const{classes:t,scroll:i,maxWidth:n,fullWidth:o,fullScreen:s}=e,r={root:["root"],container:["container",`scroll${(0,ui.A)(i)}`],paper:["paper",`paperScroll${(0,ui.A)(i)}`,`paperWidth${(0,ui.A)(String(n))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return(0,Nt.A)(r,OL,t)})(k),D=i.useRef(),I=(0,yS.A)(a),N=i.useMemo((()=>({titleId:I})),[I]);return(0,Ft.jsx)(VL,(0,Dt.A)({className:(0,It.A)(E.root,h),closeAfterTransition:!0,components:{Backdrop:WL},componentsProps:{backdrop:(0,Dt.A)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:u,onClose:v,open:_,ref:t,onClick:e=>{D.current&&(D.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:k},L,{children:(0,Ft.jsx)(w,(0,Dt.A)({appear:!0,in:_,timeout:S,role:"presentation"},x,{children:(0,Ft.jsx)(zL,{className:(0,It.A)(E.container),onMouseDown:e=>{D.current=e.target===e.currentTarget},ownerState:k,children:(0,Ft.jsx)(HL,(0,Dt.A)({as:b,elevation:24,role:"dialog","aria-describedby":r,"aria-labelledby":I},y,{className:(0,It.A)(E.paper,y.className),ownerState:k,children:(0,Ft.jsx)(FL.Provider,{value:N,children:d})}))})}))}))})),UL=jL;function $L(e){return(0,Ot.Ay)("MuiDialogTitle",e)}const GL=(0,Mt.A)("MuiDialogTitle",["root"]),KL=["className","id"],XL=(0,qt.Ay)(Zo,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),ZL=i.forwardRef((function(e,t){const n=(0,Tt.A)({props:e,name:"MuiDialogTitle"}),{className:o,id:s}=n,r=(0,Et.A)(n,KL),a=n,l=(e=>{const{classes:t}=e;return(0,Nt.A)({root:["root"]},$L,t)})(a),{titleId:c=s}=i.useContext(FL);return(0,Ft.jsx)(XL,(0,Dt.A)({component:"h2",className:(0,It.A)(l.root,o),ownerState:a,ref:t,variant:"h6",id:null!=s?s:c},r))})),YL=ZL;function QL(e){return(0,Ot.Ay)("MuiDialogContent",e)}(0,Mt.A)("MuiDialogContent",["root","dividers"]);const JL=["className","dividers"],ek=(0,qt.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,Dt.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${GL.root} + &`]:{paddingTop:0}}))),tk=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=i,s=(0,Et.A)(i,JL),r=(0,Dt.A)({},i,{dividers:o}),a=(e=>{const{classes:t,dividers:i}=e,n={root:["root",i&&"dividers"]};return(0,Nt.A)(n,QL,t)})(r);return(0,Ft.jsx)(ek,(0,Dt.A)({className:(0,It.A)(a.root,n),ownerState:r,ref:t},s))})),ik=tk;function nk(e){return(0,Ot.Ay)("MuiDialogActions",e)}(0,Mt.A)("MuiDialogActions",["root","spacing"]);const ok=["className","disableSpacing"],sk=(0,qt.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,Dt.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),rk=i.forwardRef((function(e,t){const i=(0,Tt.A)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=i,s=(0,Et.A)(i,ok),r=(0,Dt.A)({},i,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:i}=e,n={root:["root",!i&&"spacing"]};return(0,Nt.A)(n,nk,t)})(r);return(0,Ft.jsx)(sk,(0,Dt.A)({className:(0,It.A)(a.root,n),ownerState:r,ref:t},s))})),ak=rk;var lk=r(9429);function ck({model:e,show:t,close:n}){const[o,s]=(0,i.useState)(""),[r,a]=(0,i.useState)(null),[l,c]=(0,i.useState)([]),[d,h,u]=Qc(),g=_i(),p=(0,i.useCallback)((()=>{l.length||e.setProperties(JSON.parse(r.getValue())).then(n)}));return(0,i.useEffect)((()=>{if(!t)return;const i=()=>{e&&t&&e.getProperties().then((e=>{t&&s(JSON.stringify(e||{},null,2))}))};return e.on("changed",i),i(),()=>{e&&e.removeListener("changed",i)}}),[e&&e.id,t]),(0,i.useEffect)((()=>{if(!(d&&u&&h&&o))return;const{left:e,top:t,width:i,height:n}=h;if(0===e&&0===t&&0===i&&0===n)return;const s=lk.editor.create(u,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});s.layout({width:h.width,height:h.height});const r=s.onDidChangeModelDecorations((()=>{const e=lk.editor.getModelMarkers();c(e)}));return s.focus(),a(s),()=>{r.dispose();const e=s.getModel();e&&e.dispose(),s.dispose()}}),[u,h,o]),i.createElement(UL,{disableEscapeKeyDown:!0,open:t,scroll:"paper",maxWidth:"md",onClose:n,PaperProps:{style:{height:"80%",width:"80%"}}},i.createElement(YL,null,"Modify object properties"),i.createElement(ik,{dividers:!0},i.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),i.createElement(ak,null,i.createElement($a,{variant:"contained",onClick:n},"Cancel"),i.createElement($a,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const dk=i.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),hk=i.createContext();function uk({id:e,onLoad:t}){const n=(0,i.useContext)(hk),o=(0,i.useRef)();return(0,i.useEffect)((()=>{const i=n.render({id:e,element:o.current});return i.then((e=>{t(e,o.current)})),()=>{i.then((e=>{e.destroy()}))}}),[e]),i.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const gk="Cell",pk={secondaryIcon:`${gk}-secondaryIcon`,drop:`${gk}-drop`},mk=(0,qt.Ay)(Ho)((({theme:e})=>({[`& .${pk.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${pk.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function fk({id:e,expandable:t,minHeight:n}){const o=(0,i.useContext)(nS),[s,r]=(0,i.useState)(null),[a,l]=(0,i.useState)(!1),[c,d]=(0,i.useState)(null),{currentThemeName:h,activeViz:u,setActiveViz:g,setExpandedObject:p,expandedObject:m}=(0,i.useContext)(dk),f=m===e,v=(0,i.useRef)();(0,i.useEffect)((()=>{const t=o.getObject(e).then((e=>(r(e),e)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[_,b]=(0,i.useState)(!1),y=(0,i.useCallback)((()=>{b(!1)}),[]),C=(0,i.useCallback)(((e,t)=>{v.current={viz:e,el:t},d(e)}),[e]),w=(0,i.useCallback)(((e=!1)=>{if(v.current)if(e)l(!0),v.current.viz.__DO_NOT_USE__.exportImage().then((e=>{e&&e.url&&window.open(e.url),l(!1)}));else{const e=v.current.el.getBoundingClientRect();v.current.viz.__DO_NOT_USE__.takeSnapshot().then((t=>{fetch("/njs/snapshot",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),window.open(`/render?snapshot=${t.key}`,"snapshot",`height=${Math.round(e.height)},width=${Math.round(e.width)}`)}))}}),[s,h]),S=!f&&v.current&&u&&u===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=u===c;return i.createElement(mk,{container:!0,direction:"column",style:{minHeight:n,height:"100%",position:"relative"}},i.createElement(Ho,{item:!0},i.createElement(cw,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},i.createElement(ck,{model:s,show:_,close:y}),i.createElement(Ao,{title:"Modify object properties",className:pk.secondaryIcon,disabled:!s,onClick:()=>b(!0),size:"large"},Es({size:"medium",viewBox:"0 0 16 16",shapes:[{type:"path",attrs:{d:"M14,8 C14,8.2 14,8.4 14,8.6 L16,9.6 L15.4,11.4 L13.2,11 C13,11.3 12.8,11.7 12.5,12 L13.6,14 L12,15 L10.4,13.4 C10,13.5 9.7,13.7 9.3,13.8 L9,16 L7,16 L6.7,13.8 C6.3,13.7 5.9,13.6 5.6,13.4 L4,15 L2.4,13.9 L3.5,11.9 C3.2,11.6 3,11.3 2.8,10.9 L0.6,11.3 L0,9.6 L2,8.6 C2,8.4 2,8.2 2,8 C2,7.8 2,7.6 2,7.4 L0,6.4 L0.6,4.6 L2.8,5 C3,4.7 3.2,4.3 3.5,4 L2.4,2 L4,1 L5.6,2.6 C6,2.4 6.3,2.3 6.7,2.2 L7,0 L9,0 L9.3,2.2 C9.7,2.3 10.1,2.4 10.4,2.6 L12,1 L13.6,2.1 L12.5,4.1 C12.8,4.4 13,4.7 13.2,5.1 L15.4,4.7 L16,6.4 L14,7.4 C14,7.6 14,7.8 14,8 Z M8,11 C9.7,11 11,9.7 11,8 C11,6.3 9.7,5 8,5 C6.3,5 5,6.3 5,8 C5,9.7 6.3,11 8,11 Z"}}]})),i.createElement(Ao,{title:"Open in single render view",className:pk.secondaryIcon,disabled:!s,href:s?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${s.id}&theme=${h}&language=en-US`:"",target:"_blank",size:"large"},Es({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})),i.createElement(Ao,{title:"Take and render as snapshot",className:pk.secondaryIcon,disabled:!s,onClick:()=>w(),size:"large"},Es({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})),a?i.createElement(ml,{size:24}):i.createElement(Ao,{title:"Export as image",className:pk.secondaryIcon,disabled:!s,onClick:()=>w(!0),size:"large"},Es({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})),i.createElement(Ho,{item:!0,xs:!0}),t&&i.createElement(Ao,{title:"Edit",className:pk.secondaryIcon,disabled:!c||x,onClick:()=>g(c),size:"large"},Es({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})),t&&i.createElement(Ao,{title:"Expand",disabled:!s||!c,className:pk.secondaryIcon,onClick:()=>{f?p(null):(p(e),g(c))},size:"large"},Es({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:f?"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z":"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})))),i.createElement(Ho,{item:!0,xs:!0,style:{...S},className:pk.drop},i.createElement(uk,{id:e,onLoad:C})))}function vk({info:e,storage:t,uid:n}){const o=(0,i.useContext)(hk),{activeViz:s,setActiveViz:r}=(0,i.useContext)(dk),[a]=iS(n);return(0,i.useEffect)((()=>{if(!n)return;const i=o.render({type:e.supernova.name,properties:{...!1!==t.get("readFromCache")?t.props(e.supernova.name):{},qInfo:{qId:n,qType:e.supernova.name}}});return i.then((e=>{r(e)})),()=>{i.then((e=>e.destroy()))}}),[n]),(0,i.useEffect)((()=>{a&&t.props(e.supernova.name,a)}),[a]),s&&s.id===n?i.createElement(Ho,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},i.createElement(Ho,{item:!0,xs:!0},i.createElement(fk,{id:n}))):null}function _k({types:e,cache:t}){const n=(0,i.useContext)(nS),[o]=Yc(n),[s,r]=(0,i.useState)(null),{expandedObject:a}=(0,i.useContext)(dk);if((0,i.useEffect)((()=>{n.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then((e=>{r(e.slice(0,20))}))}),[o,e.join(":")]),!s)return null;const l=a?s.filter((e=>e.qInfo.qId===a)):s;return i.createElement(Ho,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>i.createElement(Ho,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${t}`},i.createElement(fk,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):i.createElement(Ho,{item:!0},i.createElement("div",null,i.createElement(Zo,{display:"inline"},"Could not find any components with "),i.createElement(Zo,{display:"inline"},i.createElement("code",null,`qType: "${e[0]}"`)),i.createElement(Zo,{display:"inline"}," in the current app"))))}const bk=["en-US","it-IT","zh-CN","zh-TW","ko-KR","de-DE","sv-SE","es-ES","pt-BR","ja-JP","fr-FR","nl-NL","tr-TR","pl-PL","ru-RU"],yk=["select","active","passive"];function Ck(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function wk(){const e=(0,i.useRef)(),t=X(),{info:n}=_t(),{waiting:o,app:s}=(({info:e})=>{const[t,n]=(0,i.useState)(null),[o,s]=(0,i.useState)(!0);(0,i.useEffect)((()=>{s(!0),e&&r().then((e=>n(e))).catch((e=>console.log(e))).finally((()=>s(!1)))}),[e]);const r=async()=>{try{const{clientId:t,webIntegrationId:i,enigma:n=null,enigma:{host:o}={}}=e;let s="";if(i){const t=await vt({webIntegrationId:i,host:o});s=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/getSocketUrl/${e?.enigma.appId}`)).json();s=t}else s=be().buildUrl(n);return(await fe().create({schema:ve,url:s}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:t,setApp:n}})({info:n}),r=(0,i.useMemo)((()=>wt(s)),[s]),[a,l]=(0,i.useState)(null),[c,d]=(0,i.useState)(null),[h,u]=(0,i.useState)(null),[g,p]=(0,i.useState)(r.get("themeName")),[m,f]=(0,i.useState)(r.get("language")||"en-US"),[v,_]=(0,i.useState)("light"),[b,y]=(0,i.useState)(yk),[C,w]=(0,i.useState)(!0===r.get("objectListMode")),S=(0,i.useRef)(null),[x,L]=(0,i.useState)(),[k,E]=i.useState(null),[D,I]=i.useState(null),[N,A]=(0,i.useState)(!1),[R,T]=(0,i.useState)(null),q=Array.isArray(n?.themes)&&n.themes.length?["light","dark",...n.themes]:[],M=(0,i.useMemo)((()=>Ui(v)),[v]),O=(0,i.useMemo)((()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d})),[a,c,g]);(0,i.useEffect)((()=>{(async()=>{n&&(await function(e){const t=()=>{eS(e.supernova.name,e.supernova.url).then((t=>{var i;window[e.supernova.name]=t,i=e.supernova.name,tS[i]&&tS[i].forEach((e=>e()))}))};if(e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t(),e.types){const t=e.types.map((e=>eS(e.name,e.url).then((t=>{window[e.name]=t}))));return Promise.all(t)}return Promise.resolve()}(n),A(!0))})()}),[n]),(0,i.useEffect)((()=>{if(o||!N)return;const e=FC(s,{context:{theme:g,language:m,interactions:Ck(b),keyboardNavigation:n?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:n?.flags,themes:n?.themes?n?.themes.map((e=>({id:e,load:()=>fetch(`/theme/${e}`).then((e=>e.json())).then((e=>(_("dark"===e.type?"dark":"light"),e)))}))):null});e.__DO_NOT_USE__.types.register(n?.supernova),n?.types&&n?.types.forEach((t=>{e.__DO_NOT_USE__.types.register(t)})),T(e)}),[s,n,o,N]),(0,i.useLayoutEffect)((()=>{R&&(R.context({theme:g}),"light"!==g&&"dark"!==g||_(g))}),[R,g]);const P=()=>{window[n?.supernova.name]&&(e.current=String(Date.now()),L(e.current))};return(0,i.useEffect)((()=>{R&&(R.selections().then((e=>e.mount(S.current))),window.onHotChange(n?.supernova.name,(()=>{R.__DO_NOT_USE__.types.clearFromCache(n?.supernova.name),R.__DO_NOT_USE__.types.register(n?.supernova),P(),R.__DO_NOT_USE__.types.get({name:n?.supernova.name}).supernova().then(u)})),P())}),[R,n]),(0,i.useEffect)((()=>{const t=()=>{s&&s.destroySessionObject(e.current)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[s]),i.createElement(nS.Provider,{value:s},i.createElement(Ai.A,{injectFirst:!0},i.createElement(Ni,{theme:M},i.createElement(hk.Provider,{value:R},i.createElement(Ho,{container:!0,wrap:"nowrap",direction:"column",style:{background:M.palette.background.darkest,height:"100%"},gap:0},i.createElement(Ho,{item:!0},i.createElement(cw,{variant:"dense",style:{background:M.palette.background.paper,boxShadow:M.shadows[1]}},i.createElement(Ho,{container:!0,gap:1},i.createElement(Ho,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(Ho,{item:!0},i.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},i.createElement("img",{src:"/assets/logo.svg",alt:"nebula.js logo",href:"https://github.com/qlik-oss/nebula.js",style:{height:"24px",position:"relative",top:"2px"}})))),i.createElement(Ho,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(Ao,{title:"Home",onClick:()=>t("/"),size:"large"},i.createElement(ew.A,{style:{verticalAlign:"middle"}}))),i.createElement(Ho,{item:!0,xs:!0,zeroMinWidth:!0},i.createElement($r,{value:C?1:0,onChange:(e,t)=>{const i=1===t;r.save("objectListMode",i),i&&(l(null),d(null)),w(i)},"aria-label":"Navigation"},i.createElement(Qr,{label:i.createElement(Zo,null,"Create"),value:0}),i.createElement(Qr,{label:i.createElement(Zo,null,"Edit"),value:1}))),i.createElement(Ho,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},i.createElement(Ho,{item:!0,gap:1},i.createElement(Zo,null,"State:")),i.createElement(Ho,{item:!0,gap:2},i.createElement(bw,{size:"small",value:b,onChange:(e,t)=>{y(t),R&&R.context({interactions:Ck(t)})},color:"primary"},i.createElement(Dw,{value:"select"},"Select"),i.createElement(Dw,{value:"active"},"Active"),i.createElement(Dw,{value:"passive"},"Passive"),i.createElement(Dw,{value:"edit"},"Edit"))),i.createElement(Ho,{item:!0},q.length?i.createElement(i.Fragment,null,i.createElement(Ao,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},i.createElement(tw.A,{fontSize:"small"})),i.createElement(Fw,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},q.map((e=>i.createElement(hf,{key:e,selected:e===g,onClick:()=>(e=>{E(null),r.save("themeName",e),p(e)})(e)},e))))):i.createElement(Ao,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";r.save("themeName",e),p(e)},size:"large"},"dark"===g?i.createElement(iw.A,{fontSize:"small"}):i.createElement(nw.A,{fontSize:"small"}))),i.createElement(Ho,{item:!0},i.createElement($a,{startIcon:i.createElement(ow.A,null),title:"Select language",onClick:e=>I(e.currentTarget)},m),i.createElement(Fw,{anchorEl:D,open:!!D,keepMounted:!0,onClose:()=>I(null)},bk.map((e=>i.createElement(hf,{key:e,selected:e===m,onClick:()=>{return t=e,I(null),r.save("language",t),f(t),void(R&&R.context({language:t}));var t}},e))))))))),i.createElement(Ho,{item:!0,style:{padding:M.spacing(1,1,0,1)}},i.createElement("div",{ref:S,style:{flex:"0 0 auto",boxShadow:M.shadows[1]}})),i.createElement(Ho,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:M.spacing(0,1,1,1)}},i.createElement(dk.Provider,{value:O},h?i.createElement(Ho,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},i.createElement(Ho,{item:!0,xs:!0,zeroMinWidth:!0},C?i.createElement(_k,{cache:x,types:[n?.supernova.name]}):i.createElement(vk,{info:n,storage:r,uid:x})),a&&i.createElement(Ho,{item:!0,style:{background:M.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:M.shadows[1],padding:0}},i.createElement(ML,{sn:h,viz:a,isTemp:!C,storage:r,flags:n?.flags}))):i.createElement(Ho,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},i.createElement(Ho,{item:!0},i.createElement(ml,null))))))))))}const Sk=()=>i.createElement(ue,null,i.createElement(kt,null,i.createElement(ce,null,i.createElement(ae,{element:i.createElement(Bn,null)},i.createElement(ae,{path:"/",element:i.createElement(tl,null)}),i.createElement(ae,{path:"/app-list",element:i.createElement(fl,null)})),i.createElement(ae,{path:"/dev",element:i.createElement(wk,null)}))));o.createRoot(document.querySelector("#app")).render(i.createElement(Sk,null))})()})();
|