@nebula.js/cli-serve 3.1.0 → 3.1.1
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 +1 -1
- package/package.json +9 -9
package/dist/eHub.js
CHANGED
|
@@ -99,4 +99,4 @@
|
|
|
99
99
|
animation: ${0} 1.4s linear infinite;
|
|
100
100
|
`),Ba))),za=(0,vt.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ha=(0,vt.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,Ft.Z)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,ut.Z)({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&&Pi(Pa||(Pa=Fa`
|
|
101
101
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
102
|
-
`),Va))),ja=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,u=(0,dt.Z)(n,Oa),h=(0,ut.Z)({},n,{color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,r={root:["root",n,`color${(0,Ft.Z)(i)}`],svg:["svg"],circle:["circle",`circle${(0,Ft.Z)(n)}`,o&&"circleDisableShrink"]};return(0,gt.Z)(r,Ra,t)})(h),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,yt.jsx)(Wa,(0,ut.Z)({className:(0,ht.Z)(g.root,i),style:(0,ut.Z)({width:s,height:s},m,a),ownerState:h,ref:t,role:"progressbar"},f,u,{children:(0,yt.jsx)(za,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,yt.jsx)(Ha,{className:g.circle,style:p,ownerState:h,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))})),Ua=ja,$a=()=>{const e=K(),t=$(),{info:i,glob:o,treatAsDesktop:r}=lt(),{loading:s,appList:a}=(({glob:e,info:t})=>{const i=K(),{setInfo:o,setActiveStep:r}=lt(),[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{r(1),Je().then((e=>{o(e)}))}),[]),(0,n.useEffect)((()=>{if(s?.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),i(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:s,loading:l}})({glob:o,info:i});return n.createElement(di,null,n.createElement(Io,{variant:"h5",gutterBottom:!0},"Select an app"),s&&n.createElement(Ua,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&n.createElement(Io,{component:"span"},"No apps found!"),a&&a.length>0&&n.createElement(mr,null,a.map((o=>n.createElement(Rr,{button:!0,component:"a",key:o.qDocId,onClick:()=>(({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,r=`${i.enigma.secure?"wss":"ws"}://${"localhost"===i.enigma.host?`${i.enigma.host}:${i.enigma.port}`:i.enigma.host}/app/${encodeURIComponent(n)}`;e(`/dev/${o.replace(i.engineUrl,r)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:t,targetApp:r?o.qDocName:o.qDocId})},n.createElement(Fr,{primary:o.qTitle,secondary:o.qDocId}))))))};s(16595);const Ka=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let i=e;const o={language:e=>(e&&(i=e),i),add:e=>{const{id:t,locale:i}=e;Object.keys(i).forEach((e=>{n[e]||(n[e]={}),n[e][t]=i[e]}))},get(e,o){let r;return r=n[i]&&void 0!==n[i][e]?n[i][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))})(r,o):r}};return o}({initial:e,fallback:t});return{translator:n}},Ga=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_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_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_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 esistono corrispondenze per la 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_ScreenReaderInstructions":{"id":"Listbox.ScreenReaderInstructions","locale":{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L\'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L\'attivazione degli elementi sottostanti causerà l\'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},"Listbox_Search":{"id":"Listbox.Search","locale":{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},"Listbox_Search_ScreenReaderInstructions":{"id":"Listbox.Search.ScreenReaderInstructions","locale":{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},"Listbox_Unlock":{"id":"Listbox.Unlock","locale":{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},"Menu_More":{"id":"Menu.More","locale":{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},"Navigate_Back":{"id":"Navigate.Back","locale":{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},"Navigate_Forward":{"id":"Navigate.Forward","locale":{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},"OK":{"id":"OK","locale":{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},"Object_Update_Active":{"id":"Object.Update.Active","locale":{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},"Object_Update_Cancelled":{"id":"Object.Update.Cancelled","locale":{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},"Retry":{"id":"Retry","locale":{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},"Selection_Cancel":{"id":"Selection.Cancel","locale":{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},"Selection_Clear":{"id":"Selection.Clear","locale":{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},"Selection_ClearAll":{"id":"Selection.ClearAll","locale":{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},"Selection_ClearAllStates":{"id":"Selection.ClearAllStates","locale":{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},"Selection_Confirm":{"id":"Selection.Confirm","locale":{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},"Selection_Menu":{"id":"Selection.Menu","locale":{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":"Меню \\"Выборка\\"","sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},"Selection_SelectAll":{"id":"Selection.SelectAll","locale":{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},"Selection_SelectAlternative":{"id":"Selection.SelectAlternative","locale":{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},"Selection_SelectExcluded":{"id":"Selection.SelectExcluded","locale":{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},"Selection_SelectPossible":{"id":"Selection.SelectPossible","locale":{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},"Visualization_Incomplete":{"id":"Visualization.Incomplete","locale":{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},"Visualization_Incomplete_Dimensions":{"id":"Visualization.Incomplete.Dimensions","locale":{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},"Visualization_Incomplete_Measures":{"id":"Visualization.Incomplete.Measures","locale":{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},"Visualization_Invalid_Dimension":{"id":"Visualization.Invalid.Dimension","locale":{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},"Visualization_Invalid_Measure":{"id":"Visualization.Invalid.Measure","locale":{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},"Visualization_LayoutError":{"id":"Visualization.LayoutError","locale":{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},"Visualization_UnfulfilledCalculationCondition":{"id":"Visualization.UnfulfilledCalculationCondition","locale":{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}}');var Za=s(25476),Qa=s.n(Za);function Ya(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Xa(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Ja(){}var el=.7,tl=1/el,nl="\\s*([+-]?\\d+)\\s*",il="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ol="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rl=/^#([0-9a-f]{3,8})$/,sl=new RegExp(`^rgb\\(${nl},${nl},${nl}\\)$`),al=new RegExp(`^rgb\\(${ol},${ol},${ol}\\)$`),ll=new RegExp(`^rgba\\(${nl},${nl},${nl},${il}\\)$`),cl=new RegExp(`^rgba\\(${ol},${ol},${ol},${il}\\)$`),dl=new RegExp(`^hsl\\(${il},${ol},${ol}\\)$`),ul=new RegExp(`^hsla\\(${il},${ol},${ol},${il}\\)$`),hl={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 gl(){return this.rgb().formatHex()}function pl(){return this.rgb().formatRgb()}function ml(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rl.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?fl(t):3===n?new Cl(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?vl(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?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=sl.exec(e))?new Cl(t[1],t[2],t[3],1):(t=al.exec(e))?new Cl(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ll.exec(e))?vl(t[1],t[2],t[3],t[4]):(t=cl.exec(e))?vl(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dl.exec(e))?kl(t[1],t[2]/100,t[3]/100,1):(t=ul.exec(e))?kl(t[1],t[2]/100,t[3]/100,t[4]):hl.hasOwnProperty(e)?fl(hl[e]):"transparent"===e?new Cl(NaN,NaN,NaN,0):null}function fl(e){return new Cl(e>>16&255,e>>8&255,255&e,1)}function vl(e,t,n,i){return i<=0&&(e=t=n=NaN),new Cl(e,t,n,i)}function _l(e){return e instanceof Ja||(e=ml(e)),e?new Cl((e=e.rgb()).r,e.g,e.b,e.opacity):new Cl}function bl(e,t,n,i){return 1===arguments.length?_l(e):new Cl(e,t,n,null==i?1:i)}function Cl(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function yl(){return`#${Ll(this.r)}${Ll(this.g)}${Ll(this.b)}`}function wl(){const e=Sl(this.opacity);return`${1===e?"rgb(":"rgba("}${xl(this.r)}, ${xl(this.g)}, ${xl(this.b)}${1===e?")":`, ${e})`}`}function Sl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ll(e){return((e=xl(e))<16?"0":"")+e.toString(16)}function kl(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Nl(e,t,n,i)}function El(e){if(e instanceof Nl)return new Nl(e.h,e.s,e.l,e.opacity);if(e instanceof Ja||(e=ml(e)),!e)return new Nl;if(e instanceof Nl)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Nl(s,a,l,e.opacity)}function Nl(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Dl(e){return(e=(e||0)%360)<0?e+360:e}function Il(e){return Math.max(0,Math.min(1,e||0))}function ql(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ya(Ja,ml,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:gl,formatHex:gl,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return El(this).formatHsl()},formatRgb:pl,toString:pl}),Ya(Cl,bl,Xa(Ja,{brighter(e){return e=null==e?tl:Math.pow(tl,e),new Cl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?el:Math.pow(el,e),new Cl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cl(xl(this.r),xl(this.g),xl(this.b),Sl(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:yl,formatHex:yl,formatHex8:function(){return`#${Ll(this.r)}${Ll(this.g)}${Ll(this.b)}${Ll(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wl,toString:wl})),Ya(Nl,(function(e,t,n,i){return 1===arguments.length?El(e):new Nl(e,t,n,null==i?1:i)}),Xa(Ja,{brighter(e){return e=null==e?tl:Math.pow(tl,e),new Nl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?el:Math.pow(el,e),new Nl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new Cl(ql(e>=240?e-240:e+120,o,i),ql(e,o,i),ql(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Nl(Dl(this.h),Il(this.s),Il(this.l),Sl(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=Sl(this.opacity);return`${1===e?"hsl(":"hsla("}${Dl(this.h)}, ${100*Il(this.s)}%, ${100*Il(this.l)}%${1===e?")":`, ${e})`}`}}));var Rl=s(34415),Ol=s.n(Rl);const Tl=JSON.parse('{"fontSize":"13px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"scales":[{"name":"Sequential Gradient","translation":"properties.colorScheme.sequential","type":"gradient","propertyValue":"sg","scale":["#26a0a7","#c7ea8b"]},{"name":"Sequential Classes","translation":"properties.colorScheme.sequentialC","propertyValue":"sc","type":"class","scale":["#26a0a7","#c7ea8b"]},{"name":"Diverging gradient","translation":"properties.colorScheme.diverging","propertyValue":"dg","type":"gradient","scale":["#26a0a7","#c3ea8c","#ec983d"]},{"name":"Diverging Classes","translation":"properties.colorScheme.divergingC","propertyValue":"dc","type":"class","scale":["#26a0a7","#c3ea8c","#ec983d"]}],"palettes":{"data":[{"name":"12 Colors","translation":"properties.colorNumberOfColors.12","propertyValue":"12","type":"pyramid","scale":[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],"ui":[{"name":"Palette","colors":["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}}'),Al=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"}'),Ml=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"}');function Pl(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function Fl(e,t,n){const i=[],o=new class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ml(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([ml(e),ml(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const i=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(i);o=o===i?o-1:o;const r=this.colorParts[t][o],s=r[0],a=r[1];if(e===this.min)return a;if(e===this.max)return s;const l=function(e,t,n){return bl(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(s,a,i-o);return l}}(t);i.push(e[0]),n||i.push(e[0]);let r=1;for(;r<e.length-1;r++)i.push(e[r]),i.push(e[r]);i.push(e[r]),n||i.push(e[r]);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function Bl(e,t,n){const i=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const i=Pl(1/t*o,t,n);r=e.getColor(i);break}}i.push(ml(r).formatHex())}return i}function Vl(e,t){const n=[];let i,o;if(e){let r=e.length;for(;r>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),r--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function Wl(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function zl(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=Vl(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=Wl(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function Hl(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?Hl(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function jl(e){const t=ml(e).rgb(),{r:n,g:i,b:o}=t,[r,s,a]=[n,i,o].map((e=>e/255)),[l,c,d]=[r,s,a].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*d).toFixed(5)}function Ul(){let e,t,n,i={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(i[t]||(i[t]=zl(t,e)),i[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^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(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const i=ml(...e);return i?i.toString():void 0}},r={setTheme(r,s){e=function(e,t){const n="dark"===e.type?Ml:Al,i=Ol()(!0,{},Tl,n),o=Ol()(!0,{},i,{scales:null,palettes:{data:null,ui:null}},e);return o.palettes.data&&o.palettes.data.length||(o.palettes.data=i.palettes.data),o.palettes.ui&&o.palettes.ui.length||(o.palettes.ui=i.palettes.ui),o.scales&&o.scales.length||(o.scales=i.scales),t(o)}(r,zl.resolveRawTheme),i={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const a=o.getStyle("","","color"),l=jl(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(jl);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const r=jl(o),s=i.map((e=>{return t=r,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),a=e[s.indexOf(Math.max(...s))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(Qa().prototype).forEach((e=>{o[e]=Qa().prototype[e]})),Qa().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}zl.resolveRawTheme=e=>{const t=Ol()(!0,{},e);return Hl(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const i=Fl(e,n,!0),o=Fl(Bl(i,t-1,t),n,!1),r=[null];for(let e=0;e<t;e++)r.push(Bl(o,e,t));return r}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const $l=n.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),Kl=(e={},t=(()=>{}))=>{const i=e,o=[],r={get:e=>i[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return i[e]=n,t({type:"SET",value:n}),n},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);i[e]=null},dispatch:e=>{o.forEach((t=>t(e?{}:i)))}};return[()=>{const[,e]=(0,n.useState)(i);return(0,n.useEffect)((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[r]},r]},[Gl,Zl]=Kl({}),[Ql,Yl]=Kl({}),[Xl,Jl]=Kl({}),[ec,tc]=Kl({}),[nc,ic]=Kl({}),[,oc]=Kl({}),rc=({type:e,value:t})=>{const n=oc.get(t.id);oc.set(t.id,{});const i=()=>{Yl.clear(t.id),ic.set(t.id,{}),ic.dispatch(!0)},o=()=>{t.removeListener("changed",i),Zl.clear(t.id),Yl.clear(t.id),Jl.clear(t.id),tc.clear(t.id),ic.clear(t.id),oc.clear(t.id)};return"SET"===e&&(n||(t.on("changed",i),t.once("closed",(()=>{o()})))),o},[sc,ac]=Kl({},rc),lc=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let r;switch(t.type){case"INVALID":r={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":r={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":r={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let s=n.get(i);return s||(s={}),s[o]=r,n.set(i,s),r};function cc(e,t){const i=e?`${e.id}`:null,[o]=Gl(),[r,s]=(0,n.useReducer)(lc,i?o.get(i):null),[a]=nc(),[l]=Ql();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async n=>{let r=c[t];(!r||r&&r.rpcRetry)&&(r={rpc:e[t](),rpcRetry:!1},c[t]=r,s({type:"INVALID",method:t,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{const n=await r.rpc;s({type:"VALID",result:n,key:i,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||n||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},u={cancel:async()=>{const n=e.session.getObjectApi({handle:-1});await n.cancelRequest(c[t].rpc.requestId),s({type:"CANCELLED",key:i,method:t,model:e,rpcResultStore:o})},retry:()=>{c[t].rpcRetry=!0,d()}};return(0,n.useEffect)((()=>{e&&d()}),[e,a.get(e&&e.id),i,t]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},u]}function dc(e){return cc(e,"getLayout")}function uc(e){return cc(e,"getAppLayout")}function hc(e,t,...i){const o=t?`${t.id}/${JSON.stringify(e)}`:null,[r]=sc(),[s]=Xl(),[a,l]=(0,n.useState)();let c;return o&&(c=s.get(o)),(0,n.useEffect)((()=>{t&&(async()=>{if(!c){const n=t.createSessionObject(e);c=n,s.set(o,c)}const n=await c;r.set(o,n),l(n)})()}),[t,...i]),[a]}const gc={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function pc(e){return hc(gc,e)}function mc(e){const[t]=pc(e),[i]=dc(t),[o]=uc(e),[r,s]=(0,n.useState)(null);return(0,n.useEffect)((()=>{o&&t&&i&&((e,t,n)=>{const i=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(i)}],!0)})(t,i,o)}),[o,t,i]),(0,n.useEffect)((()=>{if(!i)return;let e=!1,t=!1,n=!1;[i,...i.alternateStates||[]].forEach((i=>{e=e||i.qSelectionObject&&i.qSelectionObject.qBackCount>0,t=t||i.qSelectionObject&&i.qSelectionObject.qForwardCount>0,n=n||(i.qSelectionObject&&i.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[i]),[r,t,i]}const[fc,vc]=Kl({}),[_c,bc]=Kl({}),[Cc,yc]=Kl({}),[wc,Sc]=Kl({});function xc(e){if(!e.session)return[];const[t,i,o]=mc(e),[r]=fc(),s=e?e.id:null;let a=r.get(s);return(0,n.useEffect)((()=>{e&&i&&o&&t&&!a&&(a=function({app:e,currentSelectionsLayout:t,navState:n}){const i=`${e.id}`,o=async(e=!0)=>{const t=Sc.get(i);t&&(await t.endSelections(e),Sc.clear(i),yc.get(t.id).emit("deactivated"))},r={begin:async(t,n,r=!0)=>{if(t===Sc.get(i))return;o(r),Sc.set(i,t);const s=Array.isArray(n)?n:[n],a=async n=>{try{await t.beginSelections(s),Sc.set(i,t)}catch(t){6003!==t.code||n?Sc.clear(i):(await e.abortModal(r),a(!0))}};await a()},end:o};return bc.set(i,r),{model:e,isInModal:()=>!!Sc.get(i),isModal:e=>e?Sc.get(i)===e:!!Sc.get(i),canGoForward:()=>n.canGoForward,canGoBack:()=>n.canGoBack,canClear:()=>n.canClear,layout:()=>t,forward:()=>r.end().then((()=>e.forward())),back:()=>r.end().then((()=>e.back())),clear:()=>r.end().then((()=>e.clearAll())),clearField:(t,n="$")=>r.end().then((()=>e.getField(t,n).then((e=>e.clear()))))}}({app:e,currentSelectionsLayout:o,navState:t}),r.set(s,a),r.dispatch(!0))}),[e,i,o,t]),[a,t]}const Lc=(0,n.forwardRef)((({initialContext:e,app:t},i)=>{const[o]=xc(t),[r,s]=(0,n.useState)(e),[a,l]=(0,n.useState)(),{theme:c}=(0,n.useMemo)((()=>({theme:bn(a)})),[a]),[d,u]=(0,n.useState)([]);return(0,n.useImperativeHandle)(i,(()=>({addComponent(e){u([...d,e])},removeComponent(e){const t=d.indexOf(e);-1!==t&&(d.splice(t,1),u([...d]))},setMuiThemeName:l,setContext:s,getAppSelections:()=>o}))),n.createElement(en,{injectFirst:!0},n.createElement(Xt,{theme:c},n.createElement($l.Provider,{value:r},d)))}));function kc(){const[e,t]=(0,n.useState)(),[i,o]=(0,n.useState)(),r=(0,n.useCallback)((e=>{e&&t(e)}),[]),s=()=>{const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:r})};return(0,n.useLayoutEffect)((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(s);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}}),[e]),[r,i,e]}const Ec=e=>lr((e=>({...e,shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e)),Nc=e=>lr((e=>({...e,shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e)),Dc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ic(e){return`scale(${e}, ${e**2})`}const qc={entering:{opacity:1,transform:Ic(1)},entered:{opacity:1,transform:"none"}},Rc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Oc=n.forwardRef((function(e,t){const{addEndListener:i,appear:o=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:h,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=Go}=e,v=(0,dt.Z)(e,Dc),_=n.useRef(),b=n.useRef(),C=Ht(),y=n.useRef(null),w=(0,_i.Z)(y,r.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},x=S(d),L=S(((e,t)=>{Qo(e);const{duration:n,delay:i,easing:o}=Yo({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=n,e.style.transition=[C.transitions.create("opacity",{duration:r,delay:i}),C.transitions.create("transform",{duration:Rc?r:.666*r,delay:i,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(g),N=S((e=>{const{duration:t,delay:n,easing:i}=Yo({style:p,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:n}),C.transitions.create("transform",{duration:Rc?o:.666*o,delay:Rc?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Ic(.75),u&&u(e)})),D=S(h);return n.useEffect((()=>()=>{clearTimeout(_.current)}),[]),(0,yt.jsx)(f,(0,ut.Z)({appear:o,in:a,nodeRef:y,onEnter:L,onEntered:k,onEntering:x,onExit:N,onExited:D,onExiting:E,addEndListener:e=>{"auto"===m&&(_.current=setTimeout(e,b.current||0)),i&&i(y.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>n.cloneElement(r,(0,ut.Z)({style:(0,ut.Z)({opacity:0,transform:Ic(.75),visibility:"exited"!==e||a?void 0:"hidden"},qc[e],p,r.props.style),ref:w},t))}))}));Oc.muiSupportAuto=!0;const Tc=Oc;var Ac=s(67653),Mc=s(69781),Pc=s(24784),Fc=s(44068);const Bc=n.forwardRef((function(e,t){const{children:i,container:o,disablePortal:r=!1}=e,[s,a]=n.useState(null),l=(0,Vs.Z)(n.isValidElement(i)?i.ref:null,t);if((0,Hs.Z)((()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),(0,Hs.Z)((()=>{if(s&&!r)return(0,Fc.Z)(t,s),()=>{(0,Fc.Z)(t,null)}}),[t,s,r]),r){if(n.isValidElement(i)){const e={ref:l};return n.cloneElement(i,e)}return(0,yt.jsx)(n.Fragment,{children:i})}return(0,yt.jsx)(n.Fragment,{children:s?Vo.createPortal(i,s):s})}));function Vc(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Wc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zc(e){return parseInt((0,Ws.Z)(e).getComputedStyle(e).paddingRight,10)||0}function Hc(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,(e=>{const t=-1===r.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Wc(e,o)}))}function jc(e,t){let n=-1;return e.some(((e,i)=>!!t(e)&&(n=i,!0))),n}const Uc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $c(e){const t=[],n=[];return Array.from(e.querySelectorAll(Uc)).forEach(((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Kc(){return!0}const Gc=function(e){const{children:t,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=$c,isEnabled:a=Kc,open:l}=e,c=n.useRef(!1),d=n.useRef(null),u=n.useRef(null),h=n.useRef(null),g=n.useRef(null),p=n.useRef(!1),m=n.useRef(null),f=(0,Vs.Z)(t.ref,m),v=n.useRef(null);n.useEffect((()=>{l&&m.current&&(p.current=!i)}),[i,l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,Ac.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{r||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}}),[l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,Ac.Z)(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!o&&a()&&!c.current){if(!n.contains(e.activeElement)){if(t&&g.current!==t.target||e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let o=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(o=s(m.current)),o.length>0){var i,r;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(r=v.current)?void 0:r.key)),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else c.current=!1},n=t=>{v.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[i,o,r,a,l,s]);const _=e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0};return(0,yt.jsxs)(n.Fragment,{children:[(0,yt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:f,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0,g.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,yt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:u,"data-testid":"sentinelEnd"})]})};function Zc(e){return(0,bt.Z)("MuiModal",e)}function Qc(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Qc(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}(0,_t.Z)("MuiModal",["root","hidden"]);const Yc=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Qc(e))&&(i&&(i+=" "),i+=t);return i};function Xc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Jc(e,t){return"function"==typeof e?e(t):e}const ed=["elementType","externalSlotProps","ownerState"];function td(e){var t;const{elementType:n,externalSlotProps:i,ownerState:o}=e,r=Bs(e,ed),s=Jc(i,o),{props:a,internalRef:l}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:r}=e;if(!t){const e=Yc(null==o?void 0:o.className,null==i?void 0:i.className,r,null==n?void 0:n.className),t=Fs({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),s=Fs({},n,o,i);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(Fs({},o,i)),a=Xc(i),l=Xc(o),c=t(s),d=Yc(null==c?void 0:c.className,null==n?void 0:n.className,r,null==o?void 0:o.className,null==i?void 0:i.className),u=Fs({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),h=Fs({},c,n,l,a);return d.length>0&&(h.className=d),Object.keys(u).length>0&&(h.style=u),{props:h,internalRef:c.ref}}(Fs({},r,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||fr(e)?t:Fs({},t,{ownerState:Fs({},t.ownerState,n)})}(n,Fs({},a,{ref:(0,Vs.Z)(l,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const nd=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],id=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Wc(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Hc(t,e.mount,e.modalRef,i,!0);const o=jc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=jc(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];i.restore||(i.restore=function(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Ac.Z)(e);return t.body===e?(0,Ws.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=Vc((0,Ac.Z)(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${zc(i)+e}px`;const t=(0,Ac.Z)(i).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${zc(t)+e}px`}))}let e;if(i.parentNode instanceof DocumentFragment)e=(0,Ac.Z)(i).body;else{const t=i.parentElement,n=(0,Ws.Z)(i);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=jc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Wc(e.modalRef,t),Hc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Wc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},od=n.forwardRef((function(e,t){var i,o;const{children:r,classes:s,closeAfterTransition:a=!1,component:l,container:c,disableAutoFocus:d=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:p=!1,disableScrollLock:m=!1,hideBackdrop:f=!1,keepMounted:v=!1,manager:_=id,onBackdropClick:b,onClose:C,onKeyDown:y,open:w,onTransitionEnter:S,onTransitionExited:x,slotProps:L={},slots:k={}}=e,E=Bs(e,nd),[N,D]=n.useState(!w),I=n.useRef({}),q=n.useRef(null),R=n.useRef(null),O=(0,Vs.Z)(R,t),T=function(e){return!!e&&e.props.hasOwnProperty("in")}(r),A=null==(i=e["aria-hidden"])||i,M=()=>(I.current.modalRef=R.current,I.current.mountNode=q.current,I.current),P=()=>{_.mount(M(),{disableScrollLock:m}),R.current&&(R.current.scrollTop=0)},F=(0,Mc.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(c)||(0,Ac.Z)(q.current).body;_.add(M(),e),R.current&&P()})),B=n.useCallback((()=>_.isTopModal(M())),[_]),V=(0,Mc.Z)((e=>{q.current=e,e&&R.current&&(w&&B()?P():Wc(R.current,A))})),W=n.useCallback((()=>{_.remove(M(),A)}),[_,A]);n.useEffect((()=>()=>{W()}),[W]),n.useEffect((()=>{w?F():T&&a||W()}),[w,W,T,a,F]);const z=Fs({},e,{classes:s,closeAfterTransition:a,disableAutoFocus:d,disableEnforceFocus:u,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:p,disableScrollLock:m,exited:N,hideBackdrop:f,keepMounted:v}),H=(e=>{const{open:t,exited:n,classes:i}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,gt.Z)(o,Zc,i)})(z),j={};void 0===r.props.tabIndex&&(j.tabIndex="-1"),T&&(j.onEnter=(0,Pc.Z)((()=>{D(!1),S&&S()}),r.props.onEnter),j.onExited=(0,Pc.Z)((()=>{D(!0),x&&x(),a&&W()}),r.props.onExited));const U=null!=(o=null!=l?l:k.root)?o:"div",$=td({elementType:U,externalSlotProps:L.root,externalForwardedProps:E,additionalProps:{ref:O,role:"presentation",onKeyDown:e=>{y&&y(e),"Escape"===e.key&&B()&&(h||(e.stopPropagation(),C&&C(e,"escapeKeyDown")))}},className:H.root,ownerState:z}),K=k.backdrop,G=td({elementType:K,externalSlotProps:L.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(b&&b(e),C&&C(e,"backdropClick"))},open:w},className:H.backdrop,ownerState:z});return v||w||T&&!N?(0,yt.jsx)(Bc,{ref:V,container:c,disablePortal:g,children:(0,yt.jsxs)(U,Fs({},$,{children:[!f&&K?(0,yt.jsx)(K,Fs({},G)):null,(0,yt.jsx)(Gc,{disableEnforceFocus:u,disableAutoFocus:d,disableRestoreFocus:p,isEnabled:B,open:w,children:n.cloneElement(r,j)})]}))}):null})),rd=od,sd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ad={entering:{opacity:1},entered:{opacity:1}},ld=n.forwardRef((function(e,t){const i=Ht(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:u,onEntering:h,onExit:g,onExited:p,onExiting:m,style:f,timeout:v=o,TransitionComponent:_=Go}=e,b=(0,dt.Z)(e,sd),C=n.useRef(null),y=(0,_i.Z)(C,a.ref,t),w=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},S=w(h),x=w(((e,t)=>{Qo(e);const n=Yo({style:f,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",n),e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)})),L=w(u),k=w(m),E=w((e=>{const t=Yo({style:f,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)})),N=w(p);return(0,yt.jsx)(_,(0,ut.Z)({appear:s,in:c,nodeRef:C,onEnter:x,onEntered:L,onEntering:S,onExit:E,onExited:N,onExiting:k,addEndListener:e=>{r&&r(C.current,e)},timeout:v},b,{children:(e,t)=>n.cloneElement(a,(0,ut.Z)({style:(0,ut.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},ad[e],f,a.props.style),ref:y},t))}))})),cd=ld;function dd(e){return(0,bt.Z)("MuiBackdrop",e)}(0,_t.Z)("MuiBackdrop",["root","invisible"]);const ud=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],hd=(0,vt.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,ut.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),gd=n.forwardRef((function(e,t){var n,i,o;const r=(0,ft.Z)({props:e,name:"MuiBackdrop"}),{children:s,component:a="div",components:l={},componentsProps:c={},className:d,invisible:u=!1,open:h,slotProps:g={},slots:p={},transitionDuration:m,TransitionComponent:f=cd}=r,v=(0,dt.Z)(r,ud),_=(0,ut.Z)({},r,{component:a,invisible:u}),b=(e=>{const{classes:t,invisible:n}=e,i={root:["root",n&&"invisible"]};return(0,gt.Z)(i,dd,t)})(_),C=null!=(n=g.root)?n:c.root;return(0,yt.jsx)(f,(0,ut.Z)({in:h,timeout:m},v,{children:(0,yt.jsx)(hd,(0,ut.Z)({"aria-hidden":!0},C,{as:null!=(i=null!=(o=p.root)?o:l.Root)?i:a,className:(0,ht.Z)(b.root,d,null==C?void 0:C.className),ownerState:(0,ut.Z)({},_,null==C?void 0:C.ownerState),classes:b,ref:t,children:s}))}))})),pd=gd,md=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],fd=(0,vt.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,ut.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),vd=(0,vt.ZP)(pd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),_d=n.forwardRef((function(e,t){var i,o,r,s,a,l;const c=(0,ft.Z)({name:"MuiModal",props:e}),{BackdropComponent:d=vd,BackdropProps:u,closeAfterTransition:h=!1,children:g,component:p,components:m={},componentsProps:f={},disableAutoFocus:v=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:b=!1,disablePortal:C=!1,disableRestoreFocus:y=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:x=!1,slotProps:L,slots:k,theme:E}=c,N=(0,dt.Z)(c,md),[D,I]=n.useState(!0),q={closeAfterTransition:h,disableAutoFocus:v,disableEnforceFocus:_,disableEscapeKeyDown:b,disablePortal:C,disableRestoreFocus:y,disableScrollLock:w,hideBackdrop:S,keepMounted:x},R=(0,ut.Z)({},c,q,{exited:D}),O=(e=>e.classes)(R),T=null!=(i=null!=(o=null==k?void 0:k.root)?o:m.Root)?i:fd,A=null!=(r=null!=(s=null==k?void 0:k.backdrop)?s:m.Backdrop)?r:d,M=null!=(a=null==L?void 0:L.root)?a:f.root,P=null!=(l=null==L?void 0:L.backdrop)?l:f.backdrop;return(0,yt.jsx)(rd,(0,ut.Z)({slots:{root:T,backdrop:A},slotProps:{root:()=>(0,ut.Z)({},Jc(M,R),!fr(T)&&{as:p,theme:E}),backdrop:()=>(0,ut.Z)({},u,Jc(P,R))},onTransitionEnter:()=>I(!1),onTransitionExited:()=>I(!0),ref:t},N,{classes:O},q,{children:g}))})),bd=_d,Cd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function yd(e){return(0,bt.Z)("MuiPaper",e)}(0,_t.Z)("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"],Sd=(0,vt.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,ut.Z)({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,ut.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,vi.Fq)("#fff",Cd(t.elevation))}, ${(0,vi.Fq)("#fff",Cd(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),xd=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiPaper"}),{className:i,component:o="div",elevation:r=1,square:s=!1,variant:a="elevation"}=n,l=(0,dt.Z)(n,wd),c=(0,ut.Z)({},n,{component:o,elevation:r,square:s,variant:a}),d=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e,r={root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]};return(0,gt.Z)(r,yd,o)})(c);return(0,yt.jsx)(Sd,(0,ut.Z)({as:o,ownerState:c,className:(0,ht.Z)(d.root,i),ref:t},l))})),Ld=xd;function kd(e){return(0,bt.Z)("MuiPopover",e)}(0,_t.Z)("MuiPopover",["root","paper"]);const Ed=["onEntering"],Nd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Dd(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Id(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function qd(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Rd(e){return"function"==typeof e?e():e}const Od=(0,vt.ZP)(bd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Td=(0,vt.ZP)(Ld,{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}),Ad=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiPopover"}),{action:o,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:d,container:u,elevation:h=8,marginThreshold:g=16,open:p,PaperProps:m={},transformOrigin:f={vertical:"top",horizontal:"left"},TransitionComponent:v=Tc,transitionDuration:_="auto",TransitionProps:{onEntering:b}={}}=i,C=(0,dt.Z)(i.TransitionProps,Ed),y=(0,dt.Z)(i,Nd),w=n.useRef(),S=(0,_i.Z)(w,m.ref),x=(0,ut.Z)({},i,{anchorOrigin:s,anchorReference:l,elevation:h,marginThreshold:g,PaperProps:m,transformOrigin:f,TransitionComponent:v,transitionDuration:_,TransitionProps:C}),L=(e=>{const{classes:t}=e;return(0,gt.Z)({root:["root"],paper:["paper"]},kd,t)})(x),k=n.useCallback((()=>{if("anchorPosition"===l)return a;const e=Rd(r),t=(e&&1===e.nodeType?e:(0,as.Z)(w.current).body).getBoundingClientRect();return{top:t.top+Dd(t,s.vertical),left:t.left+Id(t,s.horizontal)}}),[r,s.horizontal,s.vertical,a,l]),E=n.useCallback((e=>({vertical:Dd(e,f.vertical),horizontal:Id(e,f.horizontal)})),[f.horizontal,f.vertical]),N=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===l)return{top:null,left:null,transformOrigin:qd(n)};const i=k();let o=i.top-n.vertical,s=i.left-n.horizontal;const a=o+t.height,c=s+t.width,d=(0,$r.Z)(Rd(r)),u=d.innerHeight-g,h=d.innerWidth-g;if(o<g){const e=o-g;o-=e,n.vertical+=e}else if(a>u){const e=a-u;o-=e,n.vertical+=e}if(s<g){const e=s-g;s-=e,n.horizontal+=e}else if(c>h){const e=c-h;s-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(s)}px`,transformOrigin:qd(n)}}),[r,l,k,E,g]),[D,I]=n.useState(p),q=n.useCallback((()=>{const e=w.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);n.useEffect((()=>{p&&q()})),n.useImperativeHandle(o,(()=>p?{updatePosition:()=>{q()}}:null),[p,q]),n.useEffect((()=>{if(!p)return;const e=(0,Wr.Z)((()=>{q()})),t=(0,$r.Z)(r);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r,p,q]);let R=_;"auto"!==_||v.muiSupportAuto||(R=void 0);const O=u||(r?(0,as.Z)(Rd(r)).body:void 0);return(0,yt.jsx)(Od,(0,ut.Z)({BackdropProps:{invisible:!0},className:(0,ht.Z)(L.root,d),container:O,open:p,ref:t,ownerState:x},y,{children:(0,yt.jsx)(v,(0,ut.Z)({appear:!0,in:p,onEntering:(e,t)=>{b&&b(e,t),q()},onExited:()=>{I(!1)},timeout:R},C,{children:(0,yt.jsx)(Td,(0,ut.Z)({elevation:h},m,{ref:S,className:(0,ht.Z)(L.paper,m.className)},D?void 0:{style:(0,ut.Z)({},m.style,{opacity:0})},{ownerState:x,children:c}))}))}))})),Md=Ad;var Pd=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Fd=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Bd=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 Vd=function(e){function t(){var e,n,i;Pd(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=Bd(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;i._lastRenderedStartIndex=t,i._lastRenderedStopIndex=n,i._ensureRowsLoaded(t,n)},i._setRef=function(e){i._listRef=e},Bd(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Fd(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,i=n.isItemLoaded,o=n.itemCount,r=n.minimumBatchSize,s=void 0===r?10:r,a=n.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,o=e.stopIndex,r=[],s=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(r.push(s,a),s=a=null):(a=l,null===s&&(s=l));if(null!==a){for(var c=Math.min(Math.max(a,s+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<i&&r[0]>0;){var u=r[0]-1;if(t(u))break;r[0]=u}return r}({isItemLoaded:i,itemCount:o,minimumBatchSize:s,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,i=function(i){var o=e[i],r=e[i+1],s=n(o,r);null!=s&&s.then((function(){if(e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r},!(e.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)i(o)}}]),t}(n.PureComponent),Wd=["S","XS"],zd=e=>e.reduce(((e,t)=>e.concat(t)));function Hd(e){return Wd.includes(e)}function jd({layout:e,selections:t,pages:i=[],checkboxes:o=!1,selectDisabled:r,doc:s=document,isSingleSelect:a=!1}){const[l,c]=(0,n.useState)(i),[d,u]=(0,n.useState)(!1),[h,g]=(0,n.useState)(!1),[p,m]=(0,n.useState)(a),[f,v]=(0,n.useState)([]),[_,b]=(0,n.useState)(!1),[C,y]=(0,n.useState)([]),w=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return zd(t)}(i);(0,n.useEffect)((()=>{m(a)}),[a]);const S=async(e=[],n=!1)=>{if(r())return;g(!0);const i=n?e.filter((e=>!f.includes(e))):e;await async function({selections:e,elemNumbers:t,isSingleSelect:n=!1}){let i=Promise.resolve(!1);if(!t.some((e=>Number.isNaN(e)))){const o=t;i=e.select({method:"selectListObjectValues",params:["/qListObjectDef",o,!n]}).then((e=>!1!==e)).catch((()=>!1))}return i}({selections:t,elemNumbers:i,isSingleSelect:p}),g(!1),y([])},x=(e,t=!1)=>{r()||y((n=>{const i=(o=[...n,...e],Array.isArray(o)?Array.from(new Set(o)):void 0);var o;const r=t?i.filter((e=>!f.includes(e))):i,s=t?function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:i}=function(e,t){let n=1/0,i=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,i=o>i?o:i})),{min:n,max:i}}(e,t);return t.slice(n,i+1)}(i,w):r;return s}))},L=e=>{(e.ctrlKey||e.metaKey)&&(m(!0),e.currentTarget.focus(),e.preventDefault())},k=(0,n.useCallback)((e=>{if(h||r())return;const t=+e.currentTarget.getAttribute("data-n");y([t]),L(e)}),[h,r]),E=(0,n.useCallback)((e=>{if(h||r())return;b(!1),u(!0);const t=+e.currentTarget.getAttribute("data-n");y([t]),L(e)}),[h,r]),N=(0,n.useCallback)((e=>{const t=+e.currentTarget.getAttribute("data-n");p||!d||h||1===C.length&&C[0]===t||x([t])}),[d,h,C,f,_,r]),D=(0,n.useCallback)((()=>{u(!1),g(!1),b(!1),m(a)}),[a]),I=(0,n.useCallback)((e=>{if(p||!d||h||r())return;b(!0);const t=+e.currentTarget.getAttribute("data-n");x([t],!0)}),[d,h,_,C,f,r,e&&e.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);(0,n.useEffect)((()=>{const t=!d;C&&C.length&&!h&&t&&e&&S(C,_)}),[C,d,r()]),(0,n.useEffect)((()=>(s.addEventListener("mouseup",D),()=>{s.removeEventListener("mouseup",D)})),[D]),(0,n.useEffect)((()=>{if(h||d)return;const e=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return!!Hd(t.qState)&&t.qElemNumber})).filter((e=>!1!==e))));return zd(t)}(i);v(e)}),[i]),(0,n.useEffect)((()=>{if(h||!i||!o&&!d)return;const e=function(e,t,n=!1){return e.map((e=>{const i=e.qMatrix.map((e=>{const[i]=e,o=t.includes(i.qElemNumber);let r;return r=n?o?"S":"A":o?(e=>t.length<=1&&Hd(e)?"A":"S")(i.qState):i.qState,[{...i,qState:r},e.slice(1)]}));return{...e,qMatrix:i}}))}(i,C,p);c(e)}),[C]);const q={};return o?Object.assign(q,{onClick:k}):Object.assign(q,{onMouseUp:N,onMouseDown:E,onMouseEnter:I}),{instantPages:l,interactionEvents:q,select:(e=[],t=!1)=>{b(!1),u(!0),x(e,t||_);const n=S(e,t||_);return u(!1),n}}}function Ud(e){return(0,bt.Z)("MuiFormControlLabel",e)}const $d=(0,_t.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),Kd=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],Gd=(0,vt.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$d.label}`]:t.label},t.root,t[`labelPlacement${(0,Ft.Z)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$d.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},{[`& .${$d.label}`]:{[`&.${$d.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Zd=n.forwardRef((function(e,t){var i;const o=(0,ft.Z)({props:e,name:"MuiFormControlLabel"}),{className:r,componentsProps:s={},control:a,disabled:l,disableTypography:c,label:d,labelPlacement:u="end",slotProps:h={}}=o,g=(0,dt.Z)(o,Kd),p=qs();let m=l;void 0===m&&void 0!==a.props.disabled&&(m=a.props.disabled),void 0===m&&p&&(m=p.disabled);const f={disabled:m};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===a.props[e]&&void 0!==o[e]&&(f[e]=o[e])}));const v=Rs({props:o,muiFormControl:p,states:["error"]}),_=(0,ut.Z)({},o,{disabled:m,labelPlacement:u,error:v.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:i,error:o}=e,r={root:["root",n&&"disabled",`labelPlacement${(0,Ft.Z)(i)}`,o&&"error"],label:["label",n&&"disabled"]};return(0,gt.Z)(r,Ud,t)})(_),C=null!=(i=h.typography)?i:s.typography;let y=d;return null==y||y.type===Io||c||(y=(0,yt.jsx)(Io,(0,ut.Z)({component:"span"},C,{className:(0,ht.Z)(b.label,null==C?void 0:C.className),children:y}))),(0,yt.jsxs)(Gd,(0,ut.Z)({className:(0,ht.Z)(b.root,r),ownerState:_,ref:t},g,{children:[n.cloneElement(a,f),y]}))})),Qd=Zd,Yd=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),Xd=e=>lr(Yd(e));var Jd=s(12076);function eu(e){return(0,bt.Z)("PrivateSwitchBase",e)}(0,_t.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const tu=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],nu=(0,vt.ZP)(oo)((({ownerState:e})=>(0,ut.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),iu=(0,vt.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ou=n.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,className:r,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:u,inputProps:h,inputRef:g,name:p,onBlur:m,onChange:f,onFocus:v,readOnly:_,required:b,tabIndex:C,type:y,value:w}=e,S=(0,dt.Z)(e,tu),[x,L]=(0,Jd.Z)({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),k=qs();let E=a;k&&void 0===E&&(E=k.disabled);const N="checkbox"===y||"radio"===y,D=(0,ut.Z)({},e,{checked:x,disabled:E,disableFocusRipple:l,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,r={root:["root",n&&"checked",i&&"disabled",o&&`edge${(0,Ft.Z)(o)}`],input:["input"]};return(0,gt.Z)(r,eu,t)})(D);return(0,yt.jsxs)(nu,(0,ut.Z)({component:"span",className:(0,ht.Z)(I.root,r),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:D,ref:t},S,{children:[(0,yt.jsx)(iu,(0,ut.Z)({autoFocus:n,checked:i,defaultChecked:s,className:I.input,disabled:E,id:N&&u,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:D,tabIndex:C,type:y},"checkbox"===y&&void 0===w?{}:{value:w},h)),x?o:d]}))})),ru=ou,su=(0,Hn.Z)((0,yt.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"),au=(0,Hn.Z)((0,yt.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"),lu=(0,Hn.Z)((0,yt.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 cu(e){return(0,bt.Z)("MuiCheckbox",e)}const du=(0,_t.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),uu=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],hu=(0,vt.ZP)(ru,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,Ft.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,vi.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${du.checked}, &.${du.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${du.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),gu=(0,yt.jsx)(au,{}),pu=(0,yt.jsx)(su,{}),mu=(0,yt.jsx)(lu,{}),fu=n.forwardRef((function(e,t){var i,o;const r=(0,ft.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=gu,color:a="primary",icon:l=pu,indeterminate:c=!1,indeterminateIcon:d=mu,inputProps:u,size:h="medium",className:g}=r,p=(0,dt.Z)(r,uu),m=c?d:l,f=c?d:s,v=(0,ut.Z)({},r,{color:a,indeterminate:c,size:h}),_=(e=>{const{classes:t,indeterminate:n,color:i}=e,o={root:["root",n&&"indeterminate",`color${(0,Ft.Z)(i)}`]},r=(0,gt.Z)(o,cu,t);return(0,ut.Z)({},t,r)})(v);return(0,yt.jsx)(hu,(0,ut.Z)({type:"checkbox",inputProps:(0,ut.Z)({"data-indeterminate":c},u),icon:n.cloneElement(m,{fontSize:null!=(i=m.props.fontSize)?i:h}),checkedIcon:n.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:h}),ownerState:v,ref:t,className:(0,ht.Z)(_.root,g)},p,{classes:_}))})),vu=fu,_u="ListBoxCheckbox",bu={cbIcon:`${_u}-cbIcon`,cbIconChecked:`${_u}-cbIconChecked`,cbIconExcluded:`${_u}-cbIconExcluded`,cbIconAlternative:`${_u}-cbIconAlternative`,checkbox:`${_u}-checkbox`,dense:`${_u}-dense`},Cu=(0,vt.ZP)(vu)((({theme:e})=>({[`& .${bu.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"},[`& .${bu.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},[`& .${bu.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.excluded},[`& .${bu.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.alternative},[`&.${bu.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${bu.dense}`]:{padding:"4px 8px"}}))),yu=(e,t=!0,i=!1)=>n.createElement("span",{className:e.cbIcon},i&&n.createElement("span",{className:t&&i?e.cbIconExcluded:""}));function wu({checked:e,label:t,dense:i,excluded:o,showGray:r=!0}){return n.createElement(Cu,{edge:"start",checked:e,disableRipple:!0,className:[bu.checkbox,i&&bu.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":t},name:t,icon:yu(bu,r,o),checkedIcon:n.createElement("span",{className:bu.cbIconChecked})})}const Su=(0,Hn.Z)((0,yt.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"),xu=(0,Hn.Z)((0,yt.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"),Lu=(0,vt.ZP)("span")({position:"relative",display:"flex"}),ku=(0,vt.ZP)(Su)({transform:"scale(1)"}),Eu=(0,vt.ZP)(xu)((({theme:e,ownerState:t})=>(0,ut.Z)({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})}))),Nu=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o=(0,ut.Z)({},e,{checked:t});return(0,yt.jsxs)(Lu,{className:n.root,ownerState:o,children:[(0,yt.jsx)(ku,{fontSize:i,className:n.background,ownerState:o}),(0,yt.jsx)(Eu,{fontSize:i,className:n.dot,ownerState:o})]})};var Du=s(80062);const Iu=n.createContext(void 0);function qu(e){return(0,bt.Z)("MuiRadio",e)}const Ru=(0,_t.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),Ou=["checked","checkedIcon","color","icon","name","onChange","size","className"],Tu=(0,vt.ZP)(ru,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,Ft.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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,vi.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Ru.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Ru.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Au=(0,yt.jsx)(Nu,{checked:!0}),Mu=(0,yt.jsx)(Nu,{}),Pu=n.forwardRef((function(e,t){var i,o;const r=(0,ft.Z)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=Au,color:l="primary",icon:c=Mu,name:d,onChange:u,size:h="medium",className:g}=r,p=(0,dt.Z)(r,Ou),m=(0,ut.Z)({},r,{color:l,size:h}),f=(e=>{const{classes:t,color:n}=e,i={root:["root",`color${(0,Ft.Z)(n)}`]};return(0,ut.Z)({},t,(0,gt.Z)(i,qu,t))})(m),v=n.useContext(Iu);let _=s;const b=(0,Du.Z)(u,v&&v.onChange);let C=d;var y,w;return v&&(void 0===_&&(y=v.value,_="object"==typeof(w=r.value)&&null!==w?y===w:String(y)===String(w)),void 0===C&&(C=v.name)),(0,yt.jsx)(Tu,(0,ut.Z)({type:"radio",icon:n.cloneElement(c,{fontSize:null!=(i=Mu.props.fontSize)?i:h}),checkedIcon:n.cloneElement(a,{fontSize:null!=(o=Au.props.fontSize)?o:h}),ownerState:m,classes:f,name:C,checked:_,onChange:b,ref:t,className:(0,ht.Z)(f.root,g)},p))})),Fu=Pu,Bu="ListBoxRadioButton-radioButton",Vu=(0,vt.ZP)(Fu)((({theme:e,checked:t})=>({[`&.${Bu}`]:{right:"5px",color:t?e.palette.selected.main:e.palette.main}})));function Wu({checked:e,label:t,dense:i}){return n.createElement(Vu,{checked:e,value:t,name:t,className:Bu,style:{backgroundColor:"transparent"},disableRipple:!0,size:i?"small":"medium",sx:i&&{padding:"0px 0px 0px 12px"}})}const zu=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===zu.ARROW_UP||e===zu.ARROW_DOWN||e===zu.ARROW_LEFT||e===zu.ARROW_RIGHT}),Hu=zu;const ju={row:"RowColumn-row",rowBorderBottom:"RowColumn-rowBorderBottom",column:"RowColumn-column",fieldRoot:"RowColumn-fieldRoot",cell:"RowColumn-cell",labelText:"RowColumn-labelText",labelDense:"RowColumn-labelDense",highlighted:"RowColumn-highlighted",checkboxLabel:"RowColumn-checkboxLabel",icon:"RowColumn-icon",S:"RowColumn-S",XS:"RowColumn-XS",A:"RowColumn-A",X:"RowColumn-X",frequencyCount:"RowColumn-frequencyCount",barContainer:"RowColumn-barContainer",bar:"RowColumn-bar",barSelected:"RowColumn-barSelected",barWithCheckbox:"RowColumn-barWithCheckbox",barSelectedWithCheckbox:"RowColumn-barSelectedWithCheckbox",excludedTextWithCheckbox:"RowColumn-excludedTextWithCheckbox"},Uu={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},$u=({theme:e})=>({background:e.palette.selected.main,color:e.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"},"& $cell":{paddingRight:0}}),Ku=(0,vt.ZP)("div",{shouldForwardProp:e=>"flexBasisProp"!==e})((({theme:e,flexBasisProp:t,dense:n})=>({[`& .${ju.row}`]:{flexWrap:"nowrap",color:e.listBox?.content?.color??e.palette.text.primary},[`& .${ju.rowBorderBottom}`]:{borderBottom:`1px solid ${e.palette.divider}`},[`& .${ju.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,color:e.listBox?.content?.color??e.palette.text.primary},[`& .${ju.fieldRoot}`]:{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${ju.cell}`]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},[`& .${ju.labelText}`]:{flexBasis:t,lineHeight:"16px",userSelect:"none",whiteSpace:"pre",paddingRight:"9px",...Uu,fontSize:e.listBox?.content?.fontSize,fontFamily:e.listBox?.content?.fontFamily},[`& .${ju.labelDense}`]:{fontSize:12},[`& .${ju.highlighted}`]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},[`& .${ju.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...Uu,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${ju.icon}`]:{display:"flex",padding:e.spacing(1,1,1,0)},[`& .${ju.S}`]:{...$u({theme:e})},[`& .${ju.XS}`]:{...$u({theme:e}),background:e.palette.selected.excluded,color:e.palette.selected.mainContrastText},[`& .${ju.A}`]:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText},[`& .${ju.X}`]:{background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText},[`& .${ju.frequencyCount}`]:{width:"66px",justifyContent:"flex-end"},[`&.${ju.barContainer}`]:{height:"100%",display:"inline-block"},[`& .${ju.bar}`]:{border:"1px solid",borderColor:"#D9D9D9",height:n?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"4px",transition:"width 0.2s",backgroundColor:"#FAFAFA"},[`& .${ju.barSelected}`]:{opacity:"30%",zIndex:"0",background:e.palette.background.lighter},[`& .${ju.barWithCheckbox}`]:{left:"29px"},[`& .${ju.barSelectedWithCheckbox}`]:{background:"#BFE5D0",borderColor:"#BFE5D0"},[`& .${ju.excludedTextWithCheckbox}`]:{color:"#828282",fontStyle:"italic"}}))),Gu=function({index:e,rowIndex:t,columnIndex:i,style:o,data:r}){const{onClick:s,onMouseDown:a,onMouseUp:l,onMouseEnter:c,pages:d,isLocked:u,column:h=!1,checkboxes:g=!1,textAlign:p,direction:m,dense:f=!1,freqIsAllowed:v,isSingleSelect:_,actions:b,frequencyMax:C="",histogram:y=!1,keyboard:w,showGray:S=!0,columnCount:x=1,rowCount:L=1,layoutOrder:k}=r;let E,N;if("number"==typeof t&&"number"==typeof i){E="row"===k?t*x+i:i*L+t;const e=0;N={...o,left:e+(0===i?o.left:Number(o.left)+i*e),top:0===t?o.top:Number(o.top)+t*e}}else E=e,N={...o};const D=(0,n.useCallback)(function({select:e,confirm:t,cancel:n}){const i=(e,t=!1)=>{const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let o=!1;const r=e=>{o=e};return s=>{let a;const{keyCode:l,shiftKey:c=!1}=s.nativeEvent;switch(l){case Hu.SHIFT:r(!0);break;case Hu.SPACE:e([+s.currentTarget.getAttribute("data-n")]);break;case Hu.ARROW_DOWN:case Hu.ARROW_RIGHT:a=i(s.currentTarget,!0),c&&a&&(o&&(e([+s.currentTarget.getAttribute("data-n")],!0),r(!1)),e([+a.getAttribute("data-n")],!0));break;case Hu.ARROW_UP:case Hu.ARROW_LEFT:a=i(s.currentTarget,!1),c&&a&&(o&&(e([+s.currentTarget.getAttribute("data-n")],!0),r(!1)),e([+a.getAttribute("data-n")],!0));break;case Hu.ENTER:t();break;case Hu.ESCAPE:return void n();default:return}a&&a.focus(),s.preventDefault(),s.stopPropagation()}}(b),[b]),[I,q]=(0,n.useState)(!1),[R,O]=(0,n.useState)(),[T,A]=(0,n.useState)([]);(0,n.useEffect)((()=>{if(!d)return;let e;const t=d.filter((e=>e.qArea.qTop<=E&&E<e.qArea.qTop+e.qArea.qHeight))[0];if(t){const n=t.qArea;E>=n.qTop&&E<n.qTop+n.qHeight&&([e]=t.qMatrix[E-n.qTop])}O(e)}),[d]);const M=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,P=e=>e?"A"===e.qState:null;if((0,n.useEffect)((()=>{if(!R)return;const e="S"===R.qState||"XS"===R.qState||"L"===R.qState;q(e);const t=[h?ju.column:ju.row];y&&f||g||t.push(ju.rowBorderBottom),g||("XS"===R.qState?t.push(S?ju.XS:ju.S):"S"===R.qState||"L"===R.qState?t.push(ju.S):S&&P(R)?t.push(ju.A):S&&M(R)&&t.push(ju.X)),A(t)}),[R&&R.qState,y,f,g]),!R)return null;const F=e=>e.filter((e=>!!e)).join(" ").trim(),B=()=>(P(R)||M(R))&&g,V=!["NaN",void 0].includes(R?.qNum);let W;const z=!p||p.auto;W=z?V?"right":{rtl:"right",ltr:"left"}[m]:p?.align||"left";const H=({lbl:e,ix:t,color:i,highlighted:o=!1})=>n.createElement(Io,{component:"span",variant:"body2",key:t,className:F([ju.labelText,o&&ju.highlighted,f&&ju.labelDense,S&&B()&&ju.excludedTextWithCheckbox]),color:i,justifyContent:W},n.createElement("span",{style:{whiteSpace:"pre"}},e)),j=({lbl:e,color:t,qElemNumber:i})=>{const o=n.createElement(wu,{label:e,checked:I,dense:f,excluded:M(R),showGray:S}),r=n.createElement(Wu,{label:e,checked:I,dense:f}),s="string"==typeof e?H({lbl:e,color:t,highlighted:!1}):e;return n.createElement(Qd,{color:t,control:_?r:o,className:ju.checkboxLabel,label:s,key:i})},U=R?R.qText:"",$=()=>R?R.qFrequency?R.qFrequency:"-":"",K=R&&R.qHighlightRanges&&R.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],G=function(e,t){if(!t.length)return[];const n=t.reduce(((n,i,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,r=[];return i>n&&r.push([e.slice(n,i),!1]),r.push([e.slice(i,i+o),!0]),r}(e,i,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&n.push([e.slice(a),!1]),n}),[]);return n}(U,K),Z=g?j:H,Q={alignItems:"center",display:"flex"},Y=I&&u,X=!g&&I&&!u,J={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:g?0:void 0,justifyContent:W},ee=0===e,te=g?"auto":"max-content";return n.createElement(Ku,{className:ju.barContainer,flexBasisProp:te,dense:f},n.createElement(So,{container:!0,gap:0,className:F(["value",...T]),classes:{root:ju.fieldRoot},style:N,onClick:s,onMouseDown:a,onMouseUp:l,onMouseEnter:c,onKeyDown:D,onContextMenu:e=>{g&&s(e),e.preventDefault()},role:h?"column":"row",tabIndex:!ee||w.enabled&&!w.active?-1:0,"data-n":R&&R.qElemNumber},R&&y&&"-"!==$()&&n.createElement("div",{className:F([ju.bar,g&&ju.barWithCheckbox,I&&(g?ju.barSelectedWithCheckbox:ju.barSelected)]),style:{width:(e=>{const t=String(e),n="%"===t.substring(t.length-1),i=parseFloat(n?t:e);return`calc(${n?i:i/C*100}% - ${g?"(29px + 6px)":"10px"})`})(R.qFrequency)}}),n.createElement(So,{item:!0,style:J,className:F([ju.cell,ju.selectedCell]),title:`${U}`},0===K.length?Z({lbl:U,color:"inherit"}):(({lbls:e})=>{const t=e.map((([e,t],n)=>H({ix:n,highlighted:t,lbl:e})));return g?j({lbl:t}):t})({lbls:G})),v&&n.createElement(So,{item:!0,style:{display:"flex",alignItems:"center"},className:ju.frequencyCount},n.createElement(Io,{noWrap:!0,color:"inherit",variant:"body2",className:F([f&&ju.labelDense,ju.labelText,S&&B()&&ju.excludedTextWithCheckbox])},$())),!g&&n.createElement(So,{item:!0,className:ju.icon},!Y&&!X&&n.createElement("span",{style:{minWidth:"12px"}}),Y&&n.createElement(Ec,{style:Q,size:"small"}),X&&n.createElement(Xd,{style:Q,size:"small"}))))};function Zu({width:e,layout:t,frequencyMode:n}){const i=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["none",void 0].includes(n);return!(!i||!r&&!o)}var Qu=s(18367),Yu=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Xu(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((i=e[n])===(o=t[n])||Yu(i)&&Yu(o)))return!1;var i,o;return!0}const Ju=function(e,t){var n;void 0===t&&(t=Xu);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}};var eh="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function th(e){cancelAnimationFrame(e.id)}function nh(e,t){var n=eh(),i={id:requestAnimationFrame((function o(){eh()-n>=t?e.call(null):i.id=requestAnimationFrame(o)}))};return i}var ih=-1;function oh(e){if(void 0===e&&(e=!1),-1===ih||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ih=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ih}var rh=null;function sh(e){if(void 0===e&&(e=!1),null===rh||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?rh="positive-descending":(t.scrollLeft=1,rh=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),rh}return rh}var ah=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function lh(e){var t,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,r=e.getColumnStopIndexForStartIndex,s=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,u=e.getRowHeight,h=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 n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Si(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Si(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Ju((function(e,t,i,o,r,s,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=Ju((function(e,t,i,o,r){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,r=n.props,a=r.columnWidth,l=r.direction,c=r.rowHeight,d=n._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=i(n.props,t,n._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:h(n.props,e,n._instanceProps),height:u(n.props,e,n._instanceProps),width:s(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Ju((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=n.props.direction,c=r;if("rtl"===t)switch(sh()){case"negative":c=-r;break;case"positive-descending":c=l-o-r}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(s,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&th(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=nh(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Li(t,e),t.getDerivedStateFromProps=function(e,t){return ch(e,t),v(e),null};var _=t.prototype;return _.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},_.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,r=this.props,s=r.columnCount,u=r.height,h=r.rowCount,g=r.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,v=oh();void 0!==i&&(i=Math.max(0,Math.min(i,s-1))),void 0!==o&&(o=Math.max(0,Math.min(o,h-1)));var _=a(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>g?v:0,C=_>u?v:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,C):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,b):f})},_.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var i=this._outerRef;"number"==typeof t&&(i.scrollLeft=t),"number"==typeof n&&(i.scrollTop=n)}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,i=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(sh()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&th(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,i=e.className,o=e.columnCount,r=e.direction,s=e.height,c=e.innerRef,d=e.innerElementType,u=e.innerTagName,h=e.itemData,g=e.itemKey,p=void 0===g?ah:g,m=e.outerElementType,f=e.outerTagName,v=e.rowCount,_=e.style,b=e.useIsScrolling,C=e.width,y=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],x=w[1],L=this._getVerticalRangeToRender(),k=L[0],E=L[1],N=[];if(o>0&&v)for(var D=k;D<=E;D++)for(var I=S;I<=x;I++)N.push((0,n.createElement)(t,{columnIndex:I,data:h,isScrolling:b?y:void 0,key:p({columnIndex:I,data:h,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,I)}));var q=a(this.props,this._instanceProps),R=l(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:this._onScroll,ref:this._outerRefSetter,style:wi({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,n.createElement)(d||u||"div",{children:N,ref:c,style:{height:q,pointerEvents:y?"none":void 0,width:R}}))},_._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,i=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var r=this._getHorizontalRangeToRender(),s=r[0],a=r[1],l=r[2],c=r[3],d=this._getVerticalRangeToRender(),u=d[0],h=d[1],g=d[2],p=d[3];this._callOnItemsRendered(s,a,u,h,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,v=m.scrollLeft,_=m.scrollTop,b=m.scrollUpdateWasRequested,C=m.verticalScrollDirection;this._callOnScroll(v,_,f,C,b)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,u=l.scrollLeft,h=n||i||s||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,u,this._instanceProps),p=r(this.props,g,u,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,h),f=d&&"forward"!==c?1:Math.max(1,h);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,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=i||o||n||1;if(0===t||0===r)return[0,0,0,0];var u=g(this.props,c,this._instanceProps),h=p(this.props,u,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,u-m),Math.max(0,Math.min(r-1,h+f)),u,h]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var ch=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},dh=function(e,t){return e};function uh(e){var t,i=e.getItemOffset,o=e.getEstimatedTotalSize,r=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,Si(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Si(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Ju((function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Ju((function(e,t,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,s=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var u=i(n.props,e,n._instanceProps),h=r(n.props,e,n._instanceProps),g="horizontal"===s||"horizontal"===l,p="rtl"===s,m=g?u:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:u,height:g?"100%":h,width:g?h:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Ju((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,s=o;if("rtl"===t)switch(sh()){case"negative":s=-o;break;case"positive-descending":s=r-i-o}return s=Math.max(0,Math.min(s,r-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;n.setState((function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&th(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=nh(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Li(t,e),t.getDerivedStateFromProps=function(e,t){return hh(e,t),u(e),null};var h=t.prototype;return h.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)},h.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,o=n.layout,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?oh():0:l.scrollHeight>l.clientHeight?oh():0}this.scrollTo(s(this.props,e,t,r,this._instanceProps,a))},h.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},h.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(sh()){case"negative":r.scrollLeft=-o;break;case"positive-ascending":r.scrollLeft=o;break;default:var s=r.clientWidth,a=r.scrollWidth;r.scrollLeft=a-s-o}else r.scrollLeft=o;else r.scrollTop=o}this._callPropsCallbacks()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&th(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,i=e.className,r=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,u=e.itemData,h=e.itemKey,g=void 0===h?dh:h,p=e.layout,m=e.outerElementType,f=e.outerTagName,v=e.style,_=e.useIsScrolling,b=e.width,C=this.state.isScrolling,y="horizontal"===r||"horizontal"===p,w=y?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,n.createElement)(t,{data:u,key:g(E,u),index:E,isScrolling:_?C:void 0,style:this._getItemStyle(E)}));var N=o(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:wi({position:"relative",height:s,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},v)},(0,n.createElement)(l||c||"div",{children:k,ref:a,style:{height:y?"100%":N,pointerEvents:C?"none":void 0,width:y?N:"100%"}}))},h._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,n,i,o)}if("function"==typeof this.props.onScroll){var r=this.state,s=r.scrollDirection,a=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},h._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,r=i.scrollDirection,s=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),d=l(this.props,c,s,this._instanceProps),u=o&&"backward"!==r?1:Math.max(1,n),h=o&&"forward"!==r?1:Math.max(1,n);return[Math.max(0,c-u),Math.max(0,Math.min(t-1,d+h)),c,d]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var hh=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},gh=lh({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,i,o,r){var s=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,s*a-l),d=Math.min(c,t*a),u=Math.max(0,t*a-l+r+a);switch("smart"===n&&(n=i>=u-l&&i<=d+l?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getOffsetForRowAndAlignment:function(e,t,n,i,o,r){var s=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*s-a),d=Math.min(c,t*s),u=Math.max(0,t*s-a+r+s);switch("smart"===n&&(n=i>=u-a&&i<=d+a?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(a/2)?0:h>c+Math.floor(a/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var i=e.columnWidth,o=e.columnCount,r=e.width,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var i=e.rowHeight,o=e.rowCount,r=e.height,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),ph=uh({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,i,o,r){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,u=e.width,h="horizontal"===s||"horizontal"===d?u:a,g=Math.max(0,l*c-h),p=Math.min(g,t*c),m=Math.max(0,t*c-h+c+r);switch("smart"===n&&(n=i>=m-h&&i<=p+h?"auto":"center"),n){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(h/2)?0:f>g+Math.floor(h/2)?g:f;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,o=e.height,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===i||"horizontal"===a?l:o,u=Math.ceil((d+n-c)/s);return Math.max(0,Math.min(r-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const mh="#BBB",fh="#555",vh="#f1f1f1",_h="ListBox-styledScrollbars";function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bh.apply(this,arguments)}const{StyledFixedSizeList:Ch,StyledFixedSizeGrid:yh}=function(){const e={scrollbarColor:"#BBB #f1f1f1","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:vh},"&::-webkit-scrollbar-thumb":{backgroundColor:mh,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:fh}};return{StyledFixedSizeList:(0,Qu.Z)(ph)((()=>({[`&.${_h}`]:e,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:vh},"&::-webkit-scrollbar-thumb":{backgroundColor:mh,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:fh}}))),StyledFixedSizeGrid:(0,Qu.Z)(gh)((()=>({[`&.${_h}`]:e,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:vh},"&::-webkit-scrollbar-thumb":{backgroundColor:mh,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:fh}})))}}(),wh=e=>{const t=(0,n.useMemo)((()=>"text"in e?e:{}),[e]);return(0,n.useMemo)((()=>((e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();return n.font=t,Array.isArray(e)?Math.max(...e.map((e=>n.measureText(e).width))):n.measureText(e).width})(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])};function Sh(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}const[xh,Lh]=Kl({});function kh(e){const t=`${e.id}`,[n]=xh();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}function Eh({width:e}){const{translator:t}=(0,n.useContext)($l);return n.createElement(Io,{component:"div",variant:"body1",minWidth:e,textAlign:"center",py:"16px"},t.get("Listbox.NoMatchesForYourTerms"))}function Nh({model:e,selections:t,direction:i,checkboxes:o,height:r,width:s,listLayout:a="vertical",frequencyMode:l,update:c,fetchStart:d,postProcessPages:u,calculatePagesHeight:h=!1,keyboard:g={},showGray:p=!0,scrollState:m,selectDisabled:f=(()=>!1)}){const[v,_]=(0,n.useState)(!1),[b]=dc(e),C=!(!b||!b.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:y=o,histogram:w}=b??{},S=(0,n.useRef)(null),x=(0,n.useRef)({queue:[],validPages:!1}),L=(0,n.useRef)({pages:[]}),{isLoadingData:k,...E}=function({local:e,loaderRef:t,model:i,fetchStart:o,scrollTimeout:r,postProcessPages:s,listData:a}){const[l,c]=(0,n.useState)(!1),[d,u]=(0,n.useState)([]);let[h]=(0,n.useState)(0);const g=(n,l)=>{e.current.queue.push({start:n,stop:l});const d=!!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 n=e.current.queue.slice(-1)[0],r=i.getListObjectData("/qListObjectDef",[{qTop:n.start>h?n.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:n.start,qHeight:h,qLeft:0,qWidth:1}]).then((n=>{const i=s?s(n):n;e.current.validPages=!0,a.current.pages=i,u(i),c(!1),t()}));o&&o(r)}),d?r:0)}))};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(h=e),g)},pages:d,isLoading:l}}({local:x,loaderRef:S,model:e,fetchStart:d,scrollTimeout:0,postProcessPages:u,listData:L}),[N,D]=(0,n.useState)([]),{setStoreValue:I}=kh(e),q=(0,n.useCallback)(E.loadMoreItems,[b]);(0,n.useEffect)((()=>{D(E?.pages||[])}),[E?.pages]);const R=(0,n.useCallback)((e=>{if(!N?.length||!x.current.validPages)return!1;x.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=N.filter((e=>t(e)))[0];return n&&t(n)}),[b,N]),{instantPages:O=[],interactionEvents:T,select:A}=jd({layout:b,selections:t,pages:N,checkboxes:y,selectDisabled:f,doc:document,isSingleSelect:C}),M=()=>{if(x.current.queue=[],x.current.validPages=!1,S.current){if(S.current.resetloadMoreItemsCache(!0),b&&b.qSelectionInfo.qInSelections)return;S.current._listRef.scrollToItem(0)}};c&&c.call(null,M),(0,n.useEffect)((()=>{O&&!k&&D(O)}),[O]),(0,n.useEffect)((()=>{m&&!v&&S.current&&(S.current._listRef.scrollToItem(m.initScrollPos),_(!0))}),[S.current]),(0,n.useEffect)((()=>{M()}),[b]);const P=wh({text:Sh(b),font:"14px Source sans pro"}),{layoutOptions:F={}}=b||{};let B=100;const V=F.dataLayout?"singleColumn"===F.dataLayout:"horizontal"!==a,W=b?.qListObject.qSize?.qcy,z=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:i=!1}){const o=e?.length&&i?(({pages:e=[],minimumBatchSize:t,count:n})=>{const i=e.some((e=>e.qArea.qHeight<t)),o=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return i?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}({pages:N,minimumBatchSize:B,count:W,calculatePagesHeight:h});I("listCount",z);const H=function({layout:e,width:t,height:n,listCount:i,count:o,textWidth:r}){const{layoutOptions:s={}}=e||{},{layoutOrder:a,maxVisibleRows:l={},maxVisibleColumns:c,dense:d}=s,u=Math.min(150,r+18);let h,g,p,m;const f=d?20:29,v=n||8*f;if(a)if("row"===a){h={overflowX:"hidden"};const e=c.maxColumns||3;g=!1!==c.auto?Math.min(i,Math.ceil((t-10)/u)):Math.min(i,e),m=Math.ceil(i/g),p=(t-10)/g}else{h={overflowY:"hidden"};const e=l.maxRows||3;m=!1!==l.auto?Math.floor(v/f):Math.min(i,e),g=Math.ceil(i/m),p=Math.max(u,t/g)}return{columnCount:g,columnWidth:p,rowCount:m,overflowStyling:h,itemSize:f,listHeight:v,scrollBarWidth:10,count:o,listCount:i}}({layout:b,width:s,height:r,listCount:z,count:W,textWidth:P}),{textAlign:j}=b?.qListObject.qDimensionInfo||{},{List:U,Grid:$}=function({layout:e,width:t,checkboxes:i,local:o,isVertical:r,pages:s,selectDisabled:a,interactionEvents:l,frequencyMode:c,histogram:d,isSingleSelect:u,select:h,textAlign:g,selections:p,keyboard:m,showGray:f,scrollState:v,direction:_,listLayout:b,sizes:C,listCount:y}){const{layoutOptions:w={},frequencyMax:S}=e||{},{dense:x=!1}=w||{},{listHeight:L,itemSize:k,rowCount:E,columnCount:N}=C||{},D={direction:"rtl"===_?"rtl":"ltr",useIsScrolling:!0,className:_h},I=e?.qListObject.qDimensionInfo.qLocked,q={isLocked:I,column:!r,pages:s,...I||a()?{}:l,checkboxes:i,dense:x,frequencyMode:c,freqIsAllowed:Zu({width:t,layout:e,frequencyMode:c}),isSingleSelect:u,textAlign:g,actions:{select:h,confirm:()=>p?.confirm.call(p),cancel:()=>p?.cancel.call(p)},frequencyMax:S,histogram:d,keyboard:m,showGray:f};return{List:({onItemsRendered:e,ref:i})=>(o.current.listRef=i,n.createElement(Ch,bh({},D,{dataTestid:"fixed-size-list",height:L,width:t,itemCount:y,layout:b,itemData:{...q},itemSize:k,onItemsRendered:t=>{v&&v.setScrollPos(t.visibleStopIndex),e({...t})},ref:i}),Gu)),Grid:({onItemsRendered:e,ref:i})=>{const{columnWidth:r,overflowStyling:s,scrollBarWidth:a}=C,{layoutOrder:l}=w||{},c=Math.min(L,E*k+a);return o.current.listRef=i,n.createElement(yh,bh({},D,{dataTestid:"fixed-size-grid",height:c,width:t,columnCount:N,columnWidth:r,rowCount:E,rowHeight:k,style:{...s},itemData:{...q,column:void 0,columnCount:N,rowCount:E,layoutOrder:l},onItemsRendered:t=>{const n=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let u,h,g,p;return n&&n.setScrollPos(d),"column"===i?(u=l*o,h=s,g=c*o,p=a):(u=l,h=s*r,g=c,p=a*r),{visibleStartIndex:u+h,visibleStopIndex:g+p}}({renderProps:t,scrollState:v,layoutOrder:l,rowCount:E,columnCount:N});e(n)},ref:i}),Gu)}}}({direction:i,layout:b,height:r,width:s,checkboxes:y,frequencyMode:l,histogram:w,keyboard:g,showGray:p,interactionEvents:T,select:A,textAlign:j,isVertical:V,pages:N,selectDisabled:f,isSingleSelect:C,selections:t,scrollState:m,local:x,sizes:H,listCount:z}),{columnWidth:K,listHeight:G,itemSize:Z}=H||{};return V||(B=function({width:e,columnWidth:t,listHeight:n,itemSize:i}){return Math.ceil(e/t)*Math.ceil(n/i)*2}({width:s,columnWidth:K,listHeight:G,itemSize:Z})),n.createElement(n.Fragment,null,!z&&n.createElement(Eh,{width:s}),n.createElement(Vd,{isItemLoaded:R,itemCount:z||1,loadMoreItems:q.with({minimumBatchSize:B}),threshold:0,minimumBatchSize:B,ref:S},V?U:$))}const Dh=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"}}]}),Ih=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"}}]}),qh=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"}}]}),Rh=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"}}]}),Oh=({layout:e,model:t,translator:n})=>e.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:Dh,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:qh,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:Ih,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:Rh,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectExcluded("/qListObjectDef")}}];function Th(e){return(0,bt.Z)("MuiDivider",e)}const Ah=(0,_t.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Mh=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ph=(0,vt.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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,vi.Fq)(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"})),(({theme:e,ownerState:t})=>(0,ut.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,ut.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,ut.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Fh=(0,vt.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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)`}))),Bh=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==s?"separator":void 0),textAlign:u="center",variant:h="fullWidth"}=n,g=(0,dt.Z)(n,Mh),p=(0,ut.Z)({},n,{absolute:i,component:s,flexItem:a,light:l,orientation:c,role:d,textAlign:u,variant:h}),m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,gt.Z)(c,Th,i)})(p);return(0,yt.jsx)(Ph,(0,ut.Z)({as:s,className:(0,ht.Z)(m.root,r),role:d,ref:t,ownerState:p},g,{children:o?(0,yt.jsx)(Fh,{className:m.wrapper,ownerState:p,children:o}):null}))})),Vh=Bh,Wh=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 zh(e){const t=Ht(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,i="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:i}}const Hh=n.forwardRef((({ariaExpanded:e=!1,item:t,addAnchor:i=!1},o)=>{const r=Ht(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=zh(t);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),u=t.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&t.keyboardAction():null;return n.createElement(uo,{ref:i?null:o,title:t.label,onClick:t.action,onKeyDown:u,disabled:a,style:l,className:"njs-cell-action",size:"large","aria-expanded":e,"aria-controls":"moreMenuList"},c&&lr(t.getSvgIconShape()),i&&n.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),jh=Hh,Uh=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"}}]}),$h=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"}}]}),Kh=e=>lr($h(e));function Gh(e){return(0,bt.Z)("MuiListItemIcon",e)}const Zh=(0,_t.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function Qh(e){return(0,bt.Z)("MuiMenuItem",e)}const Yh=(0,_t.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jh=(0,vt.ZP)(oo,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,ut.Z)({},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"}},[`&.${Yh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,vi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Yh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,vi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Yh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,vi.Fq)(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,vi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Yh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ah.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ah.inset}`]:{marginLeft:52},[`& .${Tr.root}`]:{marginTop:0,marginBottom:0},[`& .${Tr.inset}`]:{paddingLeft:36},[`& .${Zh.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,ut.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Zh.root} svg`]:{fontSize:"1.25rem"}})))),eg=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:u,className:h}=i,g=(0,dt.Z)(i,Xh),p=n.useContext(dr),m=n.useMemo((()=>({dense:s||p.dense||!1,disableGutters:l})),[p.dense,s,l]),f=n.useRef(null);(0,_r.Z)((()=>{o&&f.current&&f.current.focus()}),[o]);const v=(0,ut.Z)({},i,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:s}=e,a={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},l=(0,gt.Z)(a,Qh,s);return(0,ut.Z)({},s,l)})(i),b=(0,_i.Z)(f,t);let C;return i.disabled||(C=void 0!==u?u:-1),(0,yt.jsx)(dr.Provider,{value:m,children:(0,yt.jsx)(Jh,(0,ut.Z)({ref:b,role:d,tabIndex:C,component:r,focusVisibleClassName:(0,ht.Z)(_.focusVisible,c),className:(0,ht.Z)(_.root,h)},g,{ownerState:v,classes:_}))})})),tg=eg,ng=["className"],ig=(0,vt.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,ut.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),og=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiListItemIcon"}),{className:o}=i,r=(0,dt.Z)(i,ng),s=n.useContext(dr),a=(0,ut.Z)({},i,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,i={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,gt.Z)(i,Gh,n)})(a);return(0,yt.jsx)(ig,(0,ut.Z)({className:(0,ht.Z)(l.root,o),ownerState:a,ref:t},r))})),rg=og,sg=Vc,ag=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function cg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function dg(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ug(e,t,n,i,o,r){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&dg(a,r)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const hg=n.forwardRef((function(e,t){const{actions:i,autoFocus:o=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu"}=e,h=(0,dt.Z)(e,ag),g=n.useRef(null),p=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,_r.Z)((()=>{o&&g.current.focus()}),[o]),n.useImperativeHandle(i,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){const n=`${sg((0,as.Z)(e))}px`;g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}})),[]);const m=(0,_i.Z)(g,t);let f=-1;n.Children.forEach(s,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===f)&&(f=t))}));const v=n.Children.map(s,((e,t)=>{if(t===f){const t={};return r&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,yt.jsx)(mr,(0,ut.Z)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,n=e.key,i=(0,as.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ug(t,i,c,l,lg);else if("ArrowUp"===n)e.preventDefault(),ug(t,i,c,l,cg);else if("Home"===n)e.preventDefault(),ug(t,null,c,l,lg);else if("End"===n)e.preventDefault(),ug(t,null,c,l,cg);else if(1===n.length){const o=p.current,r=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(r);const a=i&&!o.repeating&&dg(i,o);o.previousKeyMatched&&(a||ug(t,i,!1,l,lg,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},h,{children:v}))})),gg=hg;function pg(){return pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pg.apply(this,arguments)}const mg="More-icon",fg=(0,vt.ZP)(Md)((({theme:e})=>({[`& .${mg}`]:{color:e.palette.text.primary}})));function vg({item:e,onActionClick:t=(()=>{})}){const{hidden:i,disabled:o,hasSvgIconShape:r}=zh(e);return i?null:n.createElement(tg,{title:e.label,onClick:()=>{e.action(),t()},disabled:o,tabindex:"0"},r&&n.createElement(rg,{className:mg},lr(e.getSvgIconShape())),n.createElement(Io,{noWrap:!0},e.label))}const _g=n.forwardRef((({actions:e=[],show:t=!0,alignTo:i,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=(()=>{})},a)=>e.length>0&&n.createElement(fg,pg({},o,{onClose:s,ref:a,open:t,anchorEl:i.current,getContentAnchorEl:null,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{style:{pointerEvents:"auto",maxWidth:"250px",...r}}}),n.createElement(gg,{id:"moreMenuList"},e.map(((e,t)=>n.createElement(vg,{key:t,item:e,onActionClick:s}))))))),bg="ActionsToolbar-itemSpacing",Cg="ActionsToolbar-firstItemSpacing",yg="ActionsToolbar-lastItemSpacing",wg=(0,vt.ZP)(Md)((({theme:e})=>({[`& .${bg}`]:{padding:e.spacing(0,.5)},[`& .${Cg}`]:{padding:e.spacing(0,.5,0,0)},[`& .${yg}`]:{padding:e.spacing(0,0,0,.5)}}))),Sg=n.forwardRef((({ariaExpanded:e=!1,actions:t=[],first:i=!1,last:o=!1,addAnchor:r=!1},s)=>t.length>0?n.createElement(So,{item:!0,container:!0,gap:0,wrap:"nowrap"},t.map(((a,l)=>{let c=[];const d=i&&0===l,u=o&&t.length-1===l;return d&&!u&&(c=[Cg]),u&&!d&&(c=[...c,yg]),d||u||0!==c.length||(c=[bg]),n.createElement(So,{item:!0,key:a.key,className:c.join(" ").trim()},n.createElement(jh,{ariaExpanded:e,key:a.key,item:a,ref:0===l?s:null,addAnchor:r}))}))):null)),xg={pointerEvents:"none"},Lg={vertical:"top",horizontal:"right"},kg={vertical:"bottom",horizontal:"right"},Eg=function({show:e=!0,actions:t=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:r={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:a=null,actionsRefMock:l=null}){const c=function({api:e,onConfirm:t=(()=>{}),onCancel:i=(()=>{}),onKeyDeactivate:o=(()=>{})}){const{translator:r}=(0,n.useContext)($l);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(),action:()=>e.clear(),getSvgIconShape:$h},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(),action:()=>{i(),e.cancel()},keyboardAction:t=>{o(t),i(),e.cancel()},getSvgIconShape:Uh},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(),action:()=>{t(),e.confirm()},keyboardAction:n=>{o(n),t(),e.confirm()},getSvgIconShape:Yd}]}(o),{translator:d,keyboardNavigation:u}=(0,n.useContext)($l),[h,g]=(0,n.useState)(!1),[p,m]=(0,n.useState)(r.enabled),[f,v]=(0,n.useState)(r.actions),_=(0,n.useRef)(),b=(0,n.useRef)(),C=Ht(),y=(0,n.useMemo)((()=>({margin:C.spacing(.5,0)}))),w=e=>{const t=b.current||l;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};(0,n.useEffect)((()=>()=>g(!1)),[s.show]),(0,n.useEffect)((()=>{m(r.enabled)}),[r.enabled]),(0,n.useEffect)((()=>{a&&(a.on("focus_toolbar_first",(()=>{const e=w(!1);e&&e.focus()})),a.on("focus_toolbar_last",(()=>{const e=w(!0);e&&e.focus()})))}),[]);const S=(0,n.useMemo)((()=>t.filter((e=>!e.hidden))),[t]);if(!o.show&&0===S.length)return null;const x={key:"more",label:d.get("Menu.More"),getSvgIconShape:Wh,hidden:!1,active:h,enabled:()=>p,action:()=>g(!h)};if(S.length>i){const e=S.splice(-(S.length-i)-1);m(!0),v([...e,...r.actions])}const L=u&&a&&a.refocusContent?e=>{"Tab"===e.key&&(e.shiftKey&&w(!1)===e.target||!e.shiftKey&&w(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),a.refocusContent())}:null,k=S.length>0,E=f.length>0,N=k&&o.show||E&&o.show,D=n.createElement(So,{ref:b,onKeyDown:L,container:!0,gap:0,wrap:"nowrap"},k&&n.createElement(Sg,{actions:S,first:!0,last:!E&&!o.show}),E&&n.createElement(Sg,{ref:_,ariaExpanded:h,actions:[x],first:!k,last:!o.show,addAnchor:!0}),N&&n.createElement(So,{item:!0,className:bg,style:y},n.createElement(Vh,{orientation:"vertical"})),o.show&&n.createElement(Sg,{actions:c,first:!k&&!E,last:!0}),h&&n.createElement(_g,{show:h,actions:f,alignTo:_,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{g(!1)}}));return s.show?n.createElement(wg,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:Lg,transformOrigin:kg,hideBackdrop:!0,style:xg,PaperProps:{className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:C.spacing(1,1)}}},D):e&&D};function Ng(e){return(0,bt.Z)("MuiInputAdornment",e)}const Dg=(0,_t.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ig;const qg=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Rg=(0,vt.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Ft.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Dg.positionStart}&:not(.${Dg.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Og=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=i,u=(0,dt.Z)(i,qg),h=qs()||{};let g=d;d&&h.variant,h&&!g&&(g=h.variant);const p=(0,ut.Z)({},i,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:r,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${(0,Ft.Z)(o)}`,s,i&&"hiddenLabel",r&&`size${(0,Ft.Z)(r)}`]};return(0,gt.Z)(a,Ng,t)})(p);return(0,yt.jsx)(Is.Provider,{value:null,children:(0,yt.jsx)(Rg,(0,ut.Z)({as:s,ownerState:p,className:(0,ht.Z)(m.root,r),ref:t},u,{children:"string"!=typeof o||l?(0,yt.jsxs)(n.Fragment,{children:["start"===c?Ig||(Ig=(0,yt.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,yt.jsx)(Io,{color:"text.secondary",children:o})}))})})),Tg=Og,Ag=e=>lr((e=>({...e,shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e)),Mg="/qListObjectDef",Pg=(0,vt.ZP)(Tg)((({theme:e})=>({color:e.listBox?.content?.color}))),Fg=(0,vt.ZP)(ga)((({theme:e})=>({color:e.listBox?.content?.color})));function Bg({selections:e,model:t,keyboard:i,dense:o=!1,visible:r=!0}){const{translator:s}=(0,n.useContext)($l),[a,l]=(0,n.useState)(""),c=Ht(),{getStoreValue:d}=kh(t),u=async()=>{if(e.isModal())try{await t.abortListObjectSearch(Mg)}finally{l("")}};(0,n.useEffect)((()=>{r||u()}),[r]),(0,n.useEffect)((()=>(e.on("deactivated",u),()=>{e.removeListener&&e.removeListener("deactivated",u)})),[]);return r?n.createElement(Fg,{startAdornment:n.createElement(Pg,{position:"start"},n.createElement(Ag,{size:o?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,backgroundColor:"transparent","& fieldset":{border:`1px solid ${c.palette.divider}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},o&&{fontSize:12,paddingLeft:c.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],size:"small",fullWidth:!0,placeholder:s.get("Listbox.Search"),value:a,onFocus:()=>{e.isModal()||e.begin(["/qListObjectDef"])},onChange:async e=>(l(e.target.value),e.target.value.length?t.searchListObjectFor(Mg,e.target.value):u()),onKeyDown:async n=>{let i;switch(n.key){case"Enter":i=await(async()=>{let n;return await t.searchListObjectFor(Mg,a)&&a.length&&d("listCount")>0&&(n=t.acceptListObjectSearch(Mg,!0),e.selectionsMade=!0,l("")),n})();break;case"Escape":i=e.isActive()&&e.cancel(),n.preventDefault(),n.stopPropagation()}return i},inputProps:{tabIndex:!i||i.enabled&&!i.active?-1:0}}):null}function Vg(e){return Object.keys(Qa().prototype).forEach((t=>{e[t]=Qa().prototype[t]})),Qa().init(e),e}const Wg=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,r=!1;const s={id:n.id,setLayout(e){i=e},begin(e){const i=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",i),i.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin(n,e,!0))},clear(){return r=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return r=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return r=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const i=this.begin([t.params[0]]);if(!e.isModal())return!1;await i;const o=await n[t.method](...t.params);return r="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(n),goModal:e=>t.begin(n,e,!1),noModal:(e=!1)=>t.end(e)};return Vg(s),s};function zg(e,t,i){const o=Array.isArray(i)?i:[i],[r]=xc(e),[s]=dc(t),a=t?t.id:null,[l]=_c(),[c]=Cc(),d=l.get(e.id);let u=c.get(a);return(0,n.useEffect)((()=>{r&&t&&!u&&(u=Wg({appSelections:r,appModal:d,model:t}),c.set(a,u),c.dispatch(!0))}),[r,t]),(0,n.useEffect)((()=>{if(!u)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=(({elements:e,objectSelections:t})=>{const n=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const i=e.map((e=>"string"==typeof e?document.querySelector(e):e?.current)).filter((e=>!!e&&!!document.contains(e)));i.length&&!i.some((e=>e.contains(n.target)))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",n)},deactivateClickOut(){document.removeEventListener("mousedown",n)}}})({elements:o,objectSelections:u});return u.addListener("activated",e),u.addListener("deactivated",t),()=>{u.removeListener("activated",e),u.removeListener("deactivated",t)}}),[u]),(0,n.useEffect)((()=>{u&&u.setLayout(s)}),[u,s]),[u]}const Hg=(e,t,n)=>e?.[t]??n;function jg(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return Hg(t,"qSelected",0)+Hg(t,"qSelectedExcluded",0)+Hg(t,"qLocked",0)+Hg(t,"qLockedExcluded",0)>0}function Ug({alignTo:e,show:t,close:i,app:o,fieldName:r,stateName:s="$"}){const a=t&&Boolean(e.current),[l,c]=(0,n.useState)(0),d=Ht(),[u]=hc({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[r]}}},o,r,s),h=(0,n.useCallback)((()=>{u.lock("/qListObjectDef")}),[u]),g=(0,n.useCallback)((()=>{u.unlock("/qListObjectDef")}),[u]),{translator:p}=(0,n.useContext)($l),m=(0,n.useRef)(),f=(0,n.useRef)(),[v]=zg(o,u,f),[_]=dc(u);if((0,n.useEffect)((()=>{v&&a&&(v.isModal(u)||v.goModal("/qListObjectDef"))}),[v,a]),!u||!_||!p)return null;const b=!0===_.qListObject.qDimensionInfo.qLocked,C=(e,t)=>{const n="escapeKeyDown"!==t;v.noModal(n),i()},y=Oh({layout:_,model:u,translator:p}),w=jg(_);return n.createElement(Md,{open:a,onClose:C,anchorEl:e.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},n.createElement(So,{container:!0,direction:"column",gap:0,ref:f},n.createElement(So,{item:!0,container:!0,style:{padding:d.spacing(1)}},n.createElement(So,{item:!0},b?n.createElement(uo,{onClick:g,disabled:!b,size:"large"},n.createElement(Ec,{title:p.get("Listbox.Unlock")})):n.createElement(uo,{onClick:h,disabled:!w,size:"large"},n.createElement(Nc,{title:p.get("Listbox.Lock")}))),n.createElement(So,{item:!0,xs:!0}),n.createElement(So,{item:!0},n.createElement(Eg,{more:{enabled:!b,actions:y,alignTo:m,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:v,onConfirm:C,onCancel:()=>C(0,"escapeKeyDown")}}))),n.createElement(So,{item:!0,xs:!0},n.createElement("div",{ref:m}),n.createElement(Bg,{selections:v,model:u,listCount:l,visible:!0}),n.createElement(Nh,{model:u,selections:v,direction:"ltr",onSetListCount:e=>c(e)}))))}function $g({field:e,api:t,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=(()=>{})}){const{translator:a}=(0,n.useContext)($l),l=r||(0,n.useRef)(),c=Ht(),[d,u]=(0,n.useState)(!1),h=()=>{u(!1),s()},g=e.selections[i];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 C="";g.qTotal===_&&g.qTotal>1?C=a.get("CurrentSelections.All"):_>1&&g.qTotal?C=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(C=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[i]&&(C=`${e.states[i]}: ${C}`);const y=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:v}];y.forEach(((e,t)=>{e.offset=t?y[t-1].offset+y[t-1].ratio:0}));let w=null,S=null,x=null,L=null;return r||(w=n.createElement(So,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},n.createElement(Io,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g.qField),n.createElement(Io,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},C)),g.qLocked?S=n.createElement(So,{item:!0},n.createElement(uo,{size:"large"},n.createElement(Ec,null))):g.qOneAndOnlyOne||(S=n.createElement(So,{item:!0},n.createElement(uo,{title:a.get("Selection.Clear"),onClick:n=>{n.stopPropagation(),t.clearField(g.qField,e.states[i])},size:"large"},n.createElement(cr,null)))),x=n.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===b&&y.map((e=>n.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),L=n.createElement(So,{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)&&u(!d)})||null},w,S,x,d&&n.createElement(Ug,{alignTo:l,show:d,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}))),r?n.createElement(Ug,{alignTo:l,show:!0,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}):L}const Kg=e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current};function Gg(e){return(0,bt.Z)("MuiBadge",e)}(0,_t.Z)("MuiBadge",["root","badge","invisible"]);const Zg=["badgeContent","component","children","invisible","max","slotProps","slots","showZero"],Qg=n.forwardRef((function(e,t){const{component:n,children:i,max:o=99,slotProps:r={},slots:s={},showZero:a=!1}=e,l=Bs(e,Zg),{badgeContent:c,max:d,displayValue:u,invisible:h}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=Kg({badgeContent:t,max:i});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=i}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}(Fs({},e,{max:o})),g=Fs({},e,{badgeContent:c,invisible:h,max:d,showZero:a}),p=(e=>{const{invisible:t}=e,n={root:["root"],badge:["badge",t&&"invisible"]};return(0,gt.Z)(n,Gg,void 0)})(g),m=n||s.root||"span",f=td({elementType:m,externalSlotProps:r.root,externalForwardedProps:l,additionalProps:{ref:t},ownerState:g,className:p.root}),v=s.badge||"span",_=td({elementType:v,externalSlotProps:r.badge,ownerState:g,className:p.badge});return(0,yt.jsxs)(m,Fs({},f,{children:[i,(0,yt.jsx)(v,Fs({},_,{children:u}))]}))})),Yg=Qg,Xg=e=>!e||!fr(e);function Jg(e){return(0,bt.Z)("MuiBadge",e)}const ep=(0,_t.Z)("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"]),tp=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],np=(0,vt.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ip=(0,vt.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,Ft.Z)(n.anchorOrigin.vertical)}${(0,Ft.Z)(n.anchorOrigin.horizontal)}${(0,Ft.Z)(n.overlap)}`],"default"!==n.color&&t[`color${(0,Ft.Z)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),op=n.forwardRef((function(e,t){var n,i,o,r,s,a;const l=(0,ft.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:u="span",components:h={},componentsProps:g={},overlap:p="rectangular",color:m="default",invisible:f=!1,max:v,badgeContent:_,slots:b,slotProps:C,showZero:y=!1,variant:w="standard"}=l,S=(0,dt.Z)(l,tp),x=Kg({anchorOrigin:c,color:m,overlap:p,variant:w});let L=f;!1===f&&(0===_&&!y||null==_&&"dot"!==w)&&(L=!0);const{color:k=m,overlap:E=p,anchorOrigin:N=c,variant:D=w}=L?x:l,I=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=e,a={root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${(0,Ft.Z)(n.vertical)}${(0,Ft.Z)(n.horizontal)}`,`anchorOrigin${(0,Ft.Z)(n.vertical)}${(0,Ft.Z)(n.horizontal)}${(0,Ft.Z)(o)}`,`overlap${(0,Ft.Z)(o)}`,"default"!==t&&`color${(0,Ft.Z)(t)}`]};return(0,gt.Z)(a,Jg,s)})((0,ut.Z)({},l,{anchorOrigin:N,invisible:L,color:k,overlap:E,variant:D}));let q;"dot"!==D&&(q=_&&Number(_)>v?`${v}+`:_);const R=null!=(n=null!=(i=null==b?void 0:b.root)?i:h.Root)?n:np,O=null!=(o=null!=(r=null==b?void 0:b.badge)?r:h.Badge)?o:ip,T=null!=(s=null==C?void 0:C.root)?s:g.root,A=null!=(a=null==C?void 0:C.badge)?a:g.badge;return(0,yt.jsx)(Yg,(0,ut.Z)({invisible:f,badgeContent:q,showZero:y,max:v},S,{slots:{root:R,badge:O},className:(0,ht.Z)(null==T?void 0:T.className,I.root,d),slotProps:{root:(0,ut.Z)({},T,Xg(R)&&{as:u,ownerState:(0,ut.Z)({},null==T?void 0:T.ownerState,{anchorOrigin:N,color:k,overlap:E,variant:D})}),badge:(0,ut.Z)({},A,{className:(0,ht.Z)(I.badge,null==A?void 0:A.className)},Xg(O)&&{ownerState:(0,ut.Z)({},null==A?void 0:A.ownerState,{anchorOrigin:N,color:k,overlap:E,variant:D})})},ref:t}))})),rp=op,sp=e=>lr((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)),ap="MultiState-item",lp=(0,vt.ZP)(So)((({theme:e})=>({[`&.${ap}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}})));function cp({field:e,api:t,moreAlignTo:i=null,onClose:o=(()=>{})}){const[r,s]=(0,n.useState)(!!i),[a,l]=(0,n.useState)(-1),[c,d]=(0,n.useState)(i?i.current:null),u=i||(0,n.useRef)(),{translator:h}=(0,n.useContext)($l),g=h.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=n.createElement(n.Fragment,null,n.createElement(So,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(rp,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},n.createElement(Io,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.name))),n.createElement(So,{item:!0},n.createElement("div",{style:{width:"12px"}})),n.createElement(So,{item:!0},n.createElement(uo,{size:"large"},n.createElement(sp,null)))));const f=n.createElement(mr,{dense:!0},n.createElement(Rr,{title:g,onClick:()=>{e.states.forEach((n=>t.clearField(e.name,n)))}},n.createElement(wa,{variant:"contained",fullWidth:!0},g)),e.states.map(((i,o)=>n.createElement(Rr,{key:o,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},n.createElement(In,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},n.createElement($g,{field:e,api:t,stateIx:o,skipHandleShowListBoxPopover:!0})))))),v=n.createElement(Md,{open:r,onClose:()=>{s(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},f),_=i?v:n.createElement(lp,{container:!0,gap:0,className:ap,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),u.current=e.currentTarget,s(!r))}},m,r&&v,a>-1&&n.createElement(Ug,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return i&&a>-1?n.createElement(Ug,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const dp="More-item",up="More-badge",hp=(0,vt.ZP)(So)((({theme:e})=>({[`&.${dp}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${up}`]:{padding:e.spacing(0,1)}})));function gp({items:e=[],api:t}){const i=Ht(),[o,r]=(0,n.useState)(!1),[s,a]=(0,n.useState)(-1),[l,c]=(0,n.useState)(null),d=(0,n.useRef)(),u=()=>{a(-1)};let h=null;return s>-1&&(h=e[s].states.length>1?n.createElement(cp,{field:e[s],api:t,moreAlignTo:d,onClose:u}):n.createElement($g,{field:e[s],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:u})),n.createElement(hp,{container:!0,gap:0,className:dp,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},n.createElement(So,{item:!0},n.createElement(In,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},n.createElement(Io,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),n.createElement(So,{item:!0},n.createElement(uo,{size:"large"},n.createElement(sp,null))),o&&n.createElement(Md,{open:o,onClose:()=>{r(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},n.createElement(mr,{dense:!0},e.map(((e,i)=>n.createElement(Rr,{key:i,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,i)},n.createElement(In,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?n.createElement(cp,{field:e,api:t}):n.createElement($g,{field:e,api:t}))))))),h)}function pp(e,t,n="$"){e.qSelections.forEach((e=>{const i=e.qField,o=t[i]=t[i]||{name:i,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function mp({api:e,app:t}){const i=Ht(),[o]=pc(t),[r]=dc(o),[s,a]=(0,n.useState)({items:[],more:[]}),[l]=wc(),[c,d]=kc(),[u,h]=(0,n.useState)(0);return(0,n.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-72,n=Math.floor(t/120);h(n)}),[d]),(0,n.useEffect)((()=>{if(!(t&&o&&r&&u))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&pp(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>pp(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e]))}(r);a((n=>{const i=e;if((()=>{const e=l.get(t.id);return e&&"njsListbox"===e.genericType})()&&i.length+1===n.items.length){const e=n.items.filter((e=>!1===i.some((t=>e.name===t.name))))[0],{qField:t}=e.selections[0];e.selections=[{qField:t}];const o=n.items.indexOf(e);i.splice(o,0,e)}let o=[];return u<i.length&&(o=i.splice(u-i.length)),{items:i,more:o}}))}),[t,o,r,e.isInModal(),u]),n.createElement(So,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map((t=>n.createElement(So,{item:!0,key:`${t.states.join("::")}::${t.name}`,style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},t.states.length>1?n.createElement(cp,{field:t,api:e}):n.createElement($g,{field:t,api:e})))),s.more.length>0&&n.createElement(So,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},n.createElement(gp,{items:s.more,api:e})))}const fp=e=>lr((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)),vp=e=>lr((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));function _p({api:e,app:t}){const{translator:i}=(0,n.useContext)($l),[o]=mc(t);return n.createElement(So,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},n.createElement(So,{item:!0},n.createElement(uo,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},n.createElement(fp,null))),n.createElement(So,{item:!0},n.createElement(uo,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},n.createElement(vp,null))),n.createElement(So,{item:!0},n.createElement(uo,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},n.createElement(Kh,null))))}function bp({app:e}){const t=Ht(),[i]=xc(e);return i?n.createElement(So,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"}},n.createElement(So,{item:!0,style:{borderRight:`1px solid ${t.palette.divider}`}},n.createElement(_p,{api:i,app:e})),n.createElement(So,{item:!0,xs:!0,style:{backgroundColor:t.palette.background.darker,overflow:"hidden"}},n.createElement(mp,{api:i,app:e}))):null}var Cp=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},yp=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),wp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Sp=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},xp=void 0;xp="undefined"!=typeof window?window:"undefined"!=typeof self?self:s.g;var Lp=null,kp=null,Ep=xp.clearTimeout,Np=xp.setTimeout,Dp=xp.cancelAnimationFrame||xp.mozCancelAnimationFrame||xp.webkitCancelAnimationFrame,Ip=xp.requestAnimationFrame||xp.mozRequestAnimationFrame||xp.webkitRequestAnimationFrame;null==Dp||null==Ip?(Lp=Ep,kp=function(e){return Np(e,20)}):(Lp=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,2),n=t[0],i=t[1];Dp(n),Ep(i)},kp=function(e){var t=Ip((function(){Ep(n),e()})),n=Np((function(){Dp(t),e()}),20);return[t,n]});var qp=function(e){function t(){var e,n,i;Cp(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=Sp(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var e=i.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(i._parentNode){var r=i._parentNode.offsetHeight||0,s=i._parentNode.offsetWidth||0,a=window.getComputedStyle(i._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,c=parseInt(a.paddingRight,10)||0,d=parseInt(a.paddingTop,10)||0,u=parseInt(a.paddingBottom,10)||0,h=r-d-u,g=s-l-c;(!t&&i.state.height!==h||!n&&i.state.width!==g)&&(i.setState({height:r-d-u,width:s-l-c}),o({height:r,width:s}))}},i._setRef=function(e){i._autoSizer=e},Sp(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),yp(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=function(e){var t=void 0,n=void 0,i=void 0,o=void 0,r=void 0,s=void 0,a=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,o=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=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)){var t=this;s(this),this.__resizeRAF__&&Lp(this.__resizeRAF__),this.__resizeRAF__=kp((function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,d="";i="animationstart";var u="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g=document.createElement("fakeelement");if(void 0!==g.style.animationName&&(c=!0),!1===c)for(var p=0;p<u.length;p++)if(void 0!==g.style[u[p]+"AnimationName"]){d="-"+u[p].toLowerCase()+"-",i=h[p],c=!0;break}t="@"+d+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=d+"animation: 1ms "+n+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){var d=r.ownerDocument,u=xp.getComputedStyle(r);u&&"static"===u.position&&(r.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var i=(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%; }',r=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(n.createTextNode(i)),r.appendChild(s)}}(d),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=d.createElement("div")).className="resize-triggers";var h=d.createElement("div");h.className="expand-trigger",h.appendChild(d.createElement("div"));var g=d.createElement("div");g.className="contract-trigger",r.__resizeTriggers__.appendChild(h),r.__resizeTriggers__.appendChild(g),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),i&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(r)},r.__resizeTriggers__.addEventListener(i,r.__resizeTriggers__.__animationListener__))}r.__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(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,i=e.className,o=e.disableHeight,r=e.disableWidth,s=e.style,a=this.state,l=a.height,c=a.width,d={overflow:"visible"},u={},h=!1;return o||(0===l&&(h=!0),d.height=0,u.height=l),r||(0===c&&(h=!0),d.width=0,u.width=c),(0,n.createElement)("div",{className:i,ref:this._setRef,style:wp({},d,s)},!h&&t(u))}}]),t}(n.PureComponent);qp.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const Rp=qp,Op="ListBoxInline-listBoxHeader",Tp="ListBoxInline-screenReaderOnly",Ap=(0,vt.ZP)(So)((({theme:e})=>({backgroundColor:e.listBox?.backgroundColor??e.palette.background.default,[`& .${Op}`]:{alignSelf:"center",display:"inline-flex"},[`& .${Tp}`]:{position:"absolute",height:0,width:0,overflow:"hidden"}}))),Mp=(0,vt.ZP)(Io)((({theme:e})=>({color:e.listBox?.title?.main?.color,fontSize:e.listBox?.title?.main?.fontSize,fontFamily:e.listBox?.title?.main?.fontFamily})));function Pp({options:e={}}){const{direction:t,frequencyMode:i,listLayout:o,checkboxes:r,search:s=!0,focusSearch:a=!1,toolbar:l=!0,rangeSelect:c=!0,model:d,selections:u,update:h,fetchStart:g,selectDisabled:p=(()=>!1),postProcessPages:m,calculatePagesHeight:f,showGray:v=!0,scrollState:_}=e,b=Ht(),C=(0,n.useCallback)((()=>{d.lock("/qListObjectDef")}),[d]),y=(0,n.useCallback)((()=>{d.unlock("/qListObjectDef")}),[d]),{translator:w,keyboardNavigation:S,themeApi:x}=(0,n.useContext)($l);b.listBox=(e=>{const t=t=>e.getStyle("object","",`listBox.${t}`);return{backgroundColor:t("backgroundColor"),title:{main:{color:t("title.main.color"),fontSize:t("title.main.fontSize"),fontFamily:t("title.main.fontFamily")}},content:{color:t("content.color"),fontSize:t("content.fontSize"),fontFamily:t("content.fontFamily")}}})(x);const L=(0,n.useRef)(),[k,E]=(()=>{const[e,t]=(0,n.useState)({});return[e,(0,n.useCallback)((e=>{t({current:e})}),[t])]})(),[N]=dc(d),[D,I]=(0,n.useState)(!1),[q,R]=(0,n.useState)(!1),[O,T]=(0,n.useState)(!1),A=function({setKeyboardActive:e}){return t=>{const{keyCode:n}=t.nativeEvent;switch(n){case Hu.ENTER:case Hu.SPACE:if(!t.target.classList.contains("listbox-container"))return;(t=>{const n=t.querySelector(".search input, .value.selector, .value, .ActionsToolbar-* button");e(!0),n&&n.focus()})(t.currentTarget);break;case Hu.ESCAPE:i=t.currentTarget,e(!1),i.focus();break;default:return}var i;t.preventDefault()}}({setKeyboardActive:T}),M={enabled:S,active:O};if((0,n.useEffect)((()=>{const e=()=>{I(!0)},t=()=>{I(!1),"toggle"===s&&R(!1)};return u&&(u.isModal()||(u.on("deactivated",t),u.on("activated",e)),I(u.isActive())),()=>{u&&u.removeListener&&(u.removeListener("deactivated",e),u.removeListener("activated",t))}}),[u]),(0,n.useEffect)((()=>{if(k&&k.current&&(s&&a||"toggle"===s&&q)){const e=k.current.querySelector("input");e&&e.focus()}}),[k&&k.current,q,s,a]),!d||!N||!w)return null;const P=!0===N.qListObject.qDimensionInfo.qLocked,F=l?Oh({layout:N,model:d,translator:w}):[],B=jg(N),V=(!0===s||"toggle"===s&&q)&&!p(),W=N.layoutOptions?.dense??!1,z=49+(V?W?27:40:0)+(W?39:49);return n.createElement(Ap,{className:"listbox-container",container:!0,tabIndex:M.enabled&&!M.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:`${z}px`,flexFlow:"column nowrap"},onKeyDown:A},l&&n.createElement(So,{item:!0,container:!0,style:{padding:b.spacing(1)}},n.createElement(So,{item:!0},P?n.createElement(uo,{tabIndex:-1,onClick:y,disabled:!P,size:"large"},n.createElement(Ec,{title:w.get("Listbox.Unlock")})):"toggle"!==s||B?n.createElement(uo,{onClick:C,tabIndex:-1,disabled:!B,size:"large"},n.createElement(Nc,null)):n.createElement(uo,{onClick:()=>{R(!q)},tabIndex:-1,title:w.get("Listbox.Search"),size:"large"},n.createElement(Ag,null))),n.createElement(So,{item:!0,className:Op},n.createElement(Mp,{variant:"h6",noWrap:!0},N.title||N.qListObject.qDimensionInfo.qFallbackTitle)),n.createElement(So,{item:!0,xs:!0}),n.createElement(So,{item:!0},n.createElement(Eg,{more:{enabled:!P,actions:F,alignTo:L,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:D,api:u,onConfirm:()=>{},onCancel:()=>{}}}))),n.createElement(So,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:`${z}px`},role:"region","aria-label":w.get("Listbox.ResultFilterLabel")},n.createElement(So,{item:!0,ref:E},n.createElement("div",{className:Tp},w.get("Listbox.Search.ScreenReaderInstructions")),n.createElement(Bg,{selections:u,model:d,dense:W,keyboard:M,visible:V,searchContainerRef:E})),n.createElement(So,{item:!0,xs:!0},n.createElement("div",{ref:L}),n.createElement("div",{className:Tp},w.get("Listbox.ScreenReaderInstructions")),n.createElement(Rp,null,(({height:e,width:s})=>n.createElement(Nh,{model:d,selections:u,direction:t,listLayout:o,frequencyMode:i,rangeSelect:c,checkboxes:r,height:e,width:s,update:h,fetchStart:g,postProcessPages:m,calculatePagesHeight:f,selectDisabled:p,keyboard:M,showGray:v,scrollState:_}))))))}function Fp({app:e,fieldIdentifier:t,qId:i,stateName:o,element:r,options:s}){const{isExistingObject:a,hasExternalSelectionsApi:l}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:s}),[c,d]=(0,n.useState)(0);(0,n.useEffect)((()=>{if(c)throw new Error("Source or selection Api can not change after a listbox has been mounted");d(c+1)}),[a,l]);const u=a?function({app:e,qId:t,options:i={}}){const[o,r]=(0,n.useState)(),[s]=sc(),{sessionModel:a}=i,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(i).filter((e=>l.includes(e)));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,n.useEffect)((()=>{a?r(a):async function(){const n=s.get(t);if(n)r(n);else{const n=await e.getObject(t);s.set(n.id,n),r(n)}}()}),[]),o}({app:e,qId:i,options:s}):function({app:e,fieldIdentifier:t,stateName:i,options:o={}}){const[r,s]=(0,n.useState)(""),[a,l]=(0,n.useState)(!0),[c,d]=(0,n.useState)();(0,n.useEffect)((()=>{const n=o.histogram||"N"!==o.frequencyMode;t.qLibraryId&&n?async function(){try{const n=await e.getDimension(t.qLibraryId),i=await n.getLayout();s(i.qDim.qFieldDefs?i.qDim.qFieldDefs[0]:""),l(!1)}catch(e){throw l(!1),s({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():l(!1)}),[]);const{title:u,dense:h,checkboxes:g,properties:p={}}=o;let{frequencyMode:m,histogram:f=!1}=o;switch(r&&r.failedToFetchFieldDef&&(f=!1,m="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(m):m="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(m):m="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(m):m="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(m):m="R";break;default:m="N"}const v={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:i,qShowAlternatives:!0,qFrequencyMode:f&&"N"===m?"V":m,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:f,checkboxes:g,layoutOptions:{dense:h},title:u};let _;if(Ol()(!0,v,p),t.qLibraryId?(v.qListObjectDef.qLibraryId=t.qLibraryId,_=t.qLibraryId):(v.qListObjectDef.qDef.qFieldDefs=[t],_=t),"N"!==m||f){const e=t.qLibraryId?r:_;v.frequencyMax={qValueExpression:`Max(AGGR(Count([${e}]), [${e}]))`}}const[b]=hc(v,a?null:e,_,i);return(0,n.useEffect)((()=>{b&&d(b)}),[b]),c}({app:e,fieldIdentifier:t,stateName:o,options:s}),h=(0,n.useRef)(r),g=l?s.selectionsApi:zg(e,u,h)[0];if(!g||!u)return null;const p={...s,selections:g,model:u};return n.createElement(Pp,{options:p})}const Bp=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Vp([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function Wp(){return Bp.map(Vp).join("")}function zp(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Hp(e,t){let n=0;for(let i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n}function jp({dc:e,def:t,properties:n}){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 i=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const r="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return r.qDef.cId=r.qDef.cId||Wp(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(r),zp(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,i)):(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(r)),r},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return Hp(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const r="string"==typeof n?{qDef:{qDef:n}}:{...n,qDef:n.qDef||{}};r.qDef.cId=r.qDef.cId||Wp(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(r),zp(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,i)):(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(r))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];Hp(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,i,n)},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 Up=(e,t,n)=>{if(null==e||null==t)return n;const i=t.split(".");let o=e;for(let e=0;e<i.length;++e){const t=i[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},$p=(e,t,n)=>{if(null==e||null==t)return;const i=t.split("."),o=i[i.length-1];let r=e;for(let e=0;e<i.length-1;++e){const t=i[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+i[e+1])?{}:[]),r=r[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?r[o]=n:delete r[o]},Kp=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);if(n>o)return!1;n=o}return!0}return!1},Gp=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},Zp=function(e,t){let n,i=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i},Qp=2**53-1;function Yp(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Xp(e,t){const n=Ol()(!0,{},t,e);return Up(n,"qOtherTotalSpec.qOtherCounted")||$p(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Up(n,"qOtherTotalSpec.qOtherLimit")||$p(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Jp(e,t){return Ol()(!0,{},t,e)}function em(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const tm={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===Up(e,t)&&$p(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Yp,importCommonProperties:function(e,t,n){const i="masterobject"===Up(t,"properties.qInfo.qType")?"masterobject":Up(n,"qInfo.qType");$p(e,"qInfo.qType",i),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,i){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=i},createDefaultDimension:Xp,createDefaultMeasure:Jp,resolveValue:em,getHypercubePath:function(e){const t=Up(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 n=e.data[0],i=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==i)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(Gp(t.qInterColumnSortOrder,o),++o):(--o,Zp(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach((o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(i.qLayoutExclude.quarantine=Ol()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?$p(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||Yp(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]})),i=Ol()(!0,{},t,i),null===i.components&&(i.components=[]),i},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],i=t.dimensions||{max:0},o=t.measures||{max:0},r=em(o.max,n.dimensions.length,Qp),s=em(o.min,n.dimensions.length,0);return{maxDimensions:em(i.max,r,Qp),minDimensions:em(i.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>i&&i>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>n||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!i&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:r}){const s=e.data[0];r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.qHyperCubeDef||(r.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>t&&t>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&s.dimensions.length&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)i.qDimensions.length<t?i.qDimensions.push(Xp(r.dimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(Xp(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(Xp(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)i.qDimensions.length<n?i.qDimensions.push(Xp(r.excludedDimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(Xp(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)i.qMeasures.length<t?i.qMeasures.push(Jp(r.measures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Jp(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Jp(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)i.qMeasures.length<n?i.qMeasures.push(Jp(r.excludedMeasures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Jp(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=Up(e,n||"").qHyperCubeDef,o=[...i.qDimensions];i.qDimensions=[],o.forEach((n=>{i.qDimensions.push(n),t.dimensions.added(n,e)}))}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const i=Up(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach((n=>{i.qMeasures.push(n),t.measures.added(n,e)}))}}},nm={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),i=e.qProperty,o=Up(i,t||""),r=o.qHyperCubeDef,s=n.data[0];if(r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),s.dimensions.push(...r.qDimensions),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...r.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...r.qMeasures),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...r.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=r.qInterColumnSortOrder.concat(),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();Kp(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.qLayoutExclude,Object.keys(i).forEach((e=>{n.properties[e]=i[e]})),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.disabled&&(Object.keys(i.qLayoutExclude.disabled).forEach((e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=i.qLayoutExclude.disabled[e])})),delete i.qLayoutExclude.disabled),i.qLayoutExclude.changed&&(tm.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&(a=i.qLayoutExclude.quarantine,!(0===Object.keys(a).length&&a.constructor===Object))||delete i.qLayoutExclude,n;var a}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const r={qChildren:[]},s=tm.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=Up(t,o||"").qHyperCubeDef,l=Up(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h}=tm.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=tm.getDefaultDimension(),defaultMeasure:p=tm.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,tm.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h})&&tm.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h,newHyperCubeDef:l}),tm.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),tm.addDefaultMeasures({exportFormat:e,maxMeasures:u,minMeasures:h,newHyperCubeDef:l,defaultMeasure:p}),tm.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),tm.copyPropertyIfExist("qMaxStackedCells",a,l),tm.copyPropertyIfExist("qNoOfLeftDims",a,l),tm.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),tm.copyPropertyOrSetDefault("qMode",a,l,"S"),tm.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),tm.copyPropertyOrSetDefault("qSortbyYValue",a,l),tm.copyPropertyOrSetDefault("qIndentMode",a,l),tm.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),tm.importCommonProperties(s,e,t),tm.updateDimensionsOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),tm.updateMeasuresOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),r.qProperty=s,r}(e)},im=e=>Up(e,"data.targets.0.propertyPath"),om={hypercube:nm};function rm(e){return(0,bt.Z)("MuiIcon",e)}(0,_t.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const sm=["baseClassName","className","color","component","fontSize"],am=(0,vt.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,Ft.Z)(n.color)}`],t[`fontSize${(0,Ft.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),lm=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium"}=n,l=(0,dt.Z)(n,sm),c=(0,ut.Z)({},n,{baseClassName:i,color:r,component:s,fontSize:a}),d=(e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root","inherit"!==t&&`color${(0,Ft.Z)(t)}`,`fontSize${(0,Ft.Z)(n)}`]};return(0,gt.Z)(o,rm,i)})(c);return(0,yt.jsx)(am,(0,ut.Z)({as:s,className:(0,ht.Z)(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));lm.muiName="Icon";const cm=lm,dm=e=>lr((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 um({d:e}){const t=Ht();let i="inherit",o=t.palette.success.main;e.missing?o=t.palette.warning.main:e.error&&(i="error",o=t.palette.error.main);const r={color:o},s=n.createElement(Io,{style:{lineHeight:"30px",paddingRight:t.spacing(1)}},n.createElement(cm,null,e.missing||e.error?n.createElement(dm,{style:r}):n.createElement(Xd,{style:r})));return n.createElement(So,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},n.createElement(So,{item:!0},s),n.createElement(So,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},n.createElement(Io,{noWrap:!0,component:"p"},n.createElement(Io,{component:"span",variant:"subtitle2",color:i},e.description),n.createElement(Io,{component:"span"}," "),n.createElement(Io,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function hm({data:e}){const t=Ht();return n.createElement(So,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,i)=>{const o=e.descriptions.map(((e,t)=>n.createElement(um,{d:e,key:t})));return o.length>0&&n.createElement(So,{container:!0,item:!0,key:i,direction:"column",style:{paddingBottom:t.spacing(2)}},n.createElement(Io,{noWrap:!0,key:i,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function gm({title:e="Error",message:t="",data:i=[]}){return n.createElement(So,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},n.createElement(So,{item:!0},n.createElement(dm,{style:{fontSize:"38px"}})),n.createElement(So,{item:!0},n.createElement(Io,{variant:"h6",align:"center","data-tid":"error-title"},e)),n.createElement(So,{item:!0},n.createElement(Io,{variant:"subtitle1",align:"center","data-tid":"error-message"},t)),n.createElement(hm,{data:i}))}function pm(){return pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pm.apply(this,arguments)}const mm="Progress-root",fm="Progress-front",vm="Progress-back",_m=(0,vt.ZP)("div")((({theme:e})=>({[`&.${mm}`]:{position:"relative",display:"inline-block"},[`& .${fm}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${vm}`]:{color:e.palette.divider}}))),bm={small:16,medium:32,large:64,xlarge:128};function Cm({size:e="medium",...t}){const i=bm[e];return n.createElement(_m,{className:mm},n.createElement(Ua,pm({variant:"determinate",value:100,className:vm,size:i,thickness:3},t)),n.createElement(Ua,pm({variant:"indeterminate",disableShrink:!0,className:fm,size:i,thickness:3},t)))}function ym(){return ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ym.apply(this,arguments)}const wm={stripes:"LongRunningQuery-stripes"},Sm=(0,vt.ZP)(So)((()=>({[`& .${wm.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 xm({cancel:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(Sm,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},n.createElement(So,{item:!0},n.createElement(Cm,null)),n.createElement(So,{item:!0},n.createElement(Io,{variant:"h6",align:"center","data-tid":"update-active"},t.get("Object.Update.Active")))),n.createElement(So,ym({item:!0},i),n.createElement(wa,{variant:"contained",onClick:e},t.get("Cancel"))))}function Lm({retry:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(So,{item:!0},n.createElement(dm,{style:{fontSize:"38px"}})),n.createElement(So,{item:!0},n.createElement(Io,{variant:"h6",align:"center","data-tid":"update-cancelled"},t.get("Object.Update.Cancelled"))),n.createElement(So,{item:!0},n.createElement(wa,ym({variant:"contained",onClick:e},i),t.get("Retry"))))}function km({canCancel:e,canRetry:t,api:i}){const{translator:o}=(0,n.useContext)($l);return n.createElement(So,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:wm.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&n.createElement(xm,{cancel:i.cancel,translator:o,className:wm.cancel}),t&&n.createElement(Lm,{retry:i.retry,translator:o,className:wm.retry}))}function Em(){return n.createElement(So,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n.createElement(Cm,{size:"large"}))}const Nm="Header-containerStyle",Dm="Header-containerTitleStyle",Im=(0,vt.ZP)(So)((({theme:e})=>({[`&.${Nm}`]:{flexGrow:0},[`&.${Dm}`]:{paddingBottom:e.spacing(1)}}))),qm=function({layout:e,sn:t,anchorEl:i,hovering:o,focusHandler:r}){const s=e.showTitles&&!!e.title,a=e.showTitles&&!!e.subtitle,l=e.qSelectionInfo&&e.qSelectionInfo.qInSelections,[c,d]=(0,n.useState)([]),[u,h]=kc(),[g,p]=(0,n.useState)(!1);(0,n.useEffect)((()=>{t&&t.component&&t.component.isHooked&&t.component.observeActions((e=>{d([...e,...t&&t.selectionToolbar&&t.selectionToolbar.items||[]])}))}),[t]),(0,n.useEffect)((()=>{if(!h)return;const{width:e}=h;p(e<221)}),[h]);const m=s||a,f=[Nm,...m?[Dm]:[]],v=(o||l)&&(g||!m),_=m&&!v&&!g,b=n.createElement(Eg,{show:_,selections:{show:l,api:t.component.selections,onKeyDeactivate:r.refocusContent},actions:c,popover:{show:v,anchorEl:i},focusHandler:r});return n.createElement(Im,{ref:u,item:!0,container:!0,wrap:"nowrap",className:f.join(" ")},n.createElement(So,{item:!0,zeroMinWidth:!0,xs:!0},n.createElement(So,{container:!0,wrap:"nowrap",direction:"column"},s&&n.createElement(Io,{variant:"h6",noWrap:!0,className:"njs-cell-title"},e.title),a&&n.createElement(Io,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title"},e.subtitle))),n.createElement(So,{item:!0},b))},Rm="Footer-itemStyle",Om=(0,vt.ZP)(So)((({theme:e})=>({[`& .${Rm}`]:{minWidth:0,paddingTop:e.spacing(1)}}))),Tm=function({layout:e}){return e&&e.showTitles&&e.footnote?n.createElement(Om,{container:!0},n.createElement(So,{item:!0,className:Rm},n.createElement(Io,{noWrap:!0,variant:"body2",className:"njs-cell-footer"},e.footnote))):null};class Am{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 Mm=function({sn:e,snOptions:t,snPlugins:i,layout:o,appLayout:r,halo:s}){const{component:a}=e,{theme:l,language:c,constraints:d,keyboardNavigation:u}=(0,n.useContext)($l),[h]=(0,n.useState)((()=>new Am)),[g,p]=(0,n.useState)(!1),[m,f]=(0,n.useState)(0),[v,_,b]=kc(),[C,y]=(0,n.useState)(null),w=(0,n.useCallback)((e=>{e&&y(e)}),[]);return(0,n.useEffect)((()=>{if(C)return a.created({options:t}),a.mounted(C),p(!0),()=>{h.stop(),a.willUnmount()}}),[C,a]),(0,n.useEffect)((()=>{g&&C&&_&&(!a.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const n=[];return d.passive||n.push("passive"),d.active||n.push("interact"),d.select||n.push("select"),s.app&&s.app.session&&n.push("fetch"),Promise.resolve(a.render({layout:o,options:t,plugins:i,embed:s.public.nebbie,context:{constraints:d,theme:s.public.theme,appLayout:r,keyboardNavigation:u,...a.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:n}}})).then((e=>{!1!==e&&(0===m&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),f(m+1))}))})))}),[_,t,i,C,b,o,r,l,c,d,g,u]),n.createElement("div",{ref:v,"data-render-count":m,style:{position:"relative",height:"100%"},className:"njs-viz"},n.createElement("div",{ref:w,style:{position:"absolute",width:"100%",height:"100%"}}))},Pm={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Fm={"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"};const Bm=(e,t)=>{const n=e?.bgImage;if(n){let i="";"media"!==n.mode&&"media"!==e.useImage||(i=n?.mediaUrl?.qStaticContentUrl?.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=function(e,t){return t?function(e){let t,n,i,o;if(e?.session?.config)return t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://",i+n.host}(e)+t:void 0}(t,i)),"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){let t="center center";return e?.bgImage?.position&&(t=Fm[e.bgImage.position]),t}(e),r=function(e){let t=Pm.originalSize;return e?.bgImage?.sizing&&(t=Pm[e.bgImage.sizing]),t}(e);return i?{url:i,pos:o,size:r}:void 0}},Vm=(e,t)=>{const n=e?.bgColor;if(n&&t)return n.useExpression?t.validateColor(n.colorExpression):n.color&&"none"!==n.color.color?t.getColorPickerColor(n.color,!0):void 0},Wm=(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 zm({delay:e=750}){const[t,i]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const t=setTimeout((()=>i(!0)),e);return()=>clearTimeout(t)}),[]),t?n.createElement(Em,null):null}const Hm=e=>!e.qError||7005===e.qError.qErrorCode,jm=(e,t,n,i,o)=>[...Array(e).keys()].map((e=>{const r=!(!t||!t[e]),s=r&&t[e].qError&&7005===t[e].qError.qErrorCode,a=r&&!s&&t[e].qError,l=s&&t[e].qCalcCondMsg,c=`${a?i:s?l||o:r&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}})),Um=e=>e&&(Array.isArray(e)?e:[e])||[],$m=(e,t,n,i)=>{const o=i.dimensions.min(),r=i.measures.min(),s=i.resolveLayout(t);return{reqDimErrors:jm(o,Um(s.qDimensionInfo),(e=>i.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:jm(r,Um(s.qMeasureInfo),(e=>i.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Km=(0,n.forwardRef)((({halo:e,model:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,currentId:a},l)=>{const{app:c,types:d}=e,{nebbie:u}=e.public,{disableCellPadding:h=!1}=e.context||{},{theme:g,translator:p,language:m,keyboardNavigation:f}=(0,n.useContext)($l),v=Ht(),[_,b,C]=kc(),[y,w]=(0,n.useReducer)(Wm,{loading:!1,loaded:!1,longRunningQuery:!1,error:(S=r)?{title:S.message}:null,sn:null,visualization:null});var S;const[x,{validating:L,canCancel:k,canRetry:E},N]=dc(t),[D]=uc(c),[I,q,R]=kc(),[O,T]=(0,n.useState)(i),[A,M]=(0,n.useState)(o),P=`njs-cell-${a}`,[F]=zg(c,t,[`#${P}`,".njs-action-toolbar-popover"]),[B,V]=(0,n.useState)(!1),W=(0,n.useRef)({enter:null,leave:null}),[z,H]=(0,n.useState)(void 0),[j,U]=(0,n.useState)(void 0),$=(0,n.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,n.useEffect)((()=>{Vg($.current)}),[]),(0,n.useEffect)((()=>{const t=x?.components?x.components.find((e=>"general"===e.key)):null;H(Vm(t,e.public.theme)),U(Bm(t,e.app))}),[x,e.public.theme,e.app,g]),$.current.blurCallback=t=>{e.root.toggleFocusOfCells(),t&&R&&R.focus()},$.current.refocusContent=()=>{y.sn.component&&"function"==typeof y.sn.component.focus&&y.sn.component.focus()},(0,n.useEffect)((()=>{if(r||!D||!x)return;if(y.visualization===x.visualization&&y.sn)return void(async e=>{const[n,i]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,r=0,s=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],u=d.dimensions.min(),h=d.measures.min(),g=d.resolveLayout(n),p=Um(g.qDimensionInfo).filter(Hm),m=Um(g.qMeasureInfo).filter(Hm);if(o+=u,r+=h,(p.length<u||m.length<h)&&(i=!0),g.qError){s=!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:i,aggMinD:o,aggMinM:r,hasLayoutErrors:s,layoutErrors:l}})(e,n,t),c=[],d=[];let u=null;for(let r=0;r<n.length;++r){const s=n[r];if(!a&&o){const n=u||await i.getProperties();u=n;const o=$m(e,t,n,s);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=c.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Dimensions",[h,r]),p=d.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Measures",[p,s]),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,x,e.generator.qae.data,t);w(n?{type:"ERROR",error:i}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const i=e&&e.component&&e.component.selections;if(i&&i.id&&n.id&&i.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!i.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;i.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||i.isModal()&&i.noModal()}})({sn:y.sn,layout:x,model:t})})(y.sn);const e=d.getSupportedVersion(x.visualization,x.version);if(e)return(async(e,n)=>{w({type:"LOADING"});const i=await(async({dispatch:e,types:t,visualization:n,version:i,model:o,app:r,selections:s,nebbie:a,focusHandler:l})=>{try{const e=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:i});return e.create({model:o,app:r,selections:s,nebbie:a,focusHandler:l})}catch(t){e({type:"ERROR",error:{title:t.message}})}})({dispatch:w,types:d,visualization:e,version:n,model:t,app:c,selections:F,nebbie:u,focusHandler:$.current});i&&(w({type:"LOADED",sn:i,visualization:e}),s())})(x.visualization,e),()=>{};w({type:"ERROR",error:{title:`Could not find a version of '${x.visualization}' that supports current object version. Did you forget to register ${x.visualization}?`}})}),[d,y.sn,t,F,x,D,m]),(0,n.useEffect)((()=>{if(!L)return;const e=setTimeout((()=>w({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[L]),(0,n.useImperativeHandle)(l,(()=>({getQae:()=>y.sn.generator.qae,toggleFocus(e){"function"==typeof y.sn.component.focus&&(e?y.sn.component.focus():y.sn.component.blur())},setSnOptions:T,setSnPlugins:M,async takeSnapshot(){const{width:e,height:t}=b;let n=JSON.parse(JSON.stringify(x));return"function"==typeof y.sn.component.setSnapshotData&&(n=await y.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:p.language(),theme:v.name,appLayout:D,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},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)}})),[y.sn,q,b,x,v.name,D]);let K=null;return y.loading&&!y.longRunningQuery?K=n.createElement(zm,null):y.error?K=n.createElement(gm,y.error):y.loaded&&(K=n.createElement(Mm,{key:x.visualization,sn:y.sn,halo:e,snOptions:O,snPlugins:A,layout:x,appLayout:D})),n.createElement(Ld,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:z||"unset",backgroundImage:j&&j.url?`url(${j.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:j&&j.size,backgroundPosition:j&&j.pos},elevation:0,square:!0,className:"njs-cell",ref:_,id:P,onMouseEnter:()=>{W.current.leave&&clearTimeout(W.current.leave),W.enter||(W.current.enter=setTimeout((()=>{V(!0),W.current.enter=null}),250))},onMouseLeave:()=>{W.current.enter&&clearTimeout(W.current.enter),W.current.leave||(W.current.leave=setTimeout((()=>{V(!1),W.current.leave=null}),750))}},n.createElement(So,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...h?{}:{padding:v.spacing(1)},...y.longRunningQuery?{opacity:"0.3"}:{}}},C&&x&&y.sn&&n.createElement(qm,{layout:x,sn:y.sn,anchorEl:C,hovering:B,focusHandler:$.current}," "),n.createElement(So,{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:I},K),n.createElement(Tm,{layout:x})),y.longRunningQuery&&n.createElement(km,{canCancel:k,canRetry:E,api:N}))}));function Gm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Zm(e="/",t,n){const i=[];return Object.keys(t).forEach((o=>{const r=t[o];var s,a;"object"!=typeof n[o]||"object"!=typeof r||Array.isArray(r)?(s=r,a=n[o],(Gm(s)&&Gm(a)?JSON.stringify(s)===JSON.stringify(a):!Array.isArray(s)&&!Array.isArray(a)&&s===a)||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):i.push(...Zm(`${e}${o}/`,t[o],n[o]))})),i}function Qm(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 Ym=()=>{};function Xm({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=Ym,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h={id:e.id,model:e,async destroy(){await o(),r(),r=Ym},async convertTo(n,i=!0){const o=await(async({halo:e,model:t,cellRef:n,newType:i})=>{const o=await t.getFullPropertyTree(),r=n.current.getQae(),s=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return nm.exportProperties})(im(e)))(r),a=await(async({halo:e,name:t,version:n})=>{const{types:i}=e;return await i.get({name:t,version:n}).supernova()})({halo:e,name:i}),l=a.qae;return(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return nm.importProperties})(im(e)))(l)({exportFormat:s({propertyTree:o,hypercubePath:tm.getHypercubePath(r)}),initialProperties:{qInfo:{qType:i},visualization:i,...Up(l,"properties.initial",{})},dataDefinition:Up(l,"data.targets.0.",{}),hypercubePath:tm.getHypercubePath(l)})})({halo:t,model:e,cellRef:s,newType:n});return i&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a}){const{root:l}=e,c=n.createRef(),d=Wp(),u=Vo.createPortal(n.createElement(Km,{ref:c,halo:e,model:i,currentId:d,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s}),t,i.id),h=()=>{l.remove(u),i.removeListener("closed",h)};return i.on("closed",h),l.add(u),l.addCell(d,c),[h,c]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l}),c},async applyProperties(t){const n=Zm("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{Qm(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage:()=>s.current.exportImage(),takeSnapshot:()=>s.current.takeSnapshot(),getModel:()=>e}};return h}async function Jm(e,t,n,i,o=(async()=>{})){const r=Xm({model:e,halo:n,initialError:i,onDestroy:o});return t.options&&r.__DO_NOT_USE__.options(t.options),t.plugins&&r.__DO_NOT_USE__.plugins(t.plugins),t.element&&await r.__DO_NOT_USE__.mount(t.element),r}const ef=function({model:e,halo:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}){const{root:a}=t,[l]=dc(e),{theme:c}=(0,n.useContext)($l),[d,u]=(0,n.useState)([]),[h,g]=(0,n.useState)(void 0),[p,m]=(0,n.useState)(void 0),[f,v]=(0,n.useState)("");(0,n.useEffect)((()=>{if(l){const e=JSON.stringify(l.cells);if(e===f)return;v(e);const i=async()=>{d.forEach((e=>{a.removeCell(e.currentId)}));const e=l.cells,i=await Promise.all(e.map((async e=>{let i;const o=new Promise((e=>{i=e})),r=d.find((t=>t.id===e.name));if(r)return r.bounds=e.bounds,delete r.mountedPromise,r;const s=await async function({id:e,options:t,plugins:n,element:i},o){const r=`${e}`;let s=tc.get(r);s||(s=o.app.getObject(e),tc.set(r,s));const a=await s;return ac.set(r,a),Jm(a,{options:t,plugins:n,element:i},o)}({id:e.name},t);return{model:s.model,id:e.name,bounds:e.bounds,cellRef:n.createRef(),currentId:Wp(),mounted:i,mountedPromise:o}})));i.forEach((e=>a.addCell(e.currentId,e.cellRef))),u(i)};i()}}),[l]);const _=(0,n.useMemo)((()=>d?d.map((e=>function(e,t,i,o,r,s){const{x:a,y:l,width:c,height:d}=e.bounds;return n.createElement("div",{style:{left:`${a}%`,top:`${l}%`,width:`${c}%`,height:`${d}%`,position:"absolute"}},n.createElement(Km,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}))}(e,t,i,o,r,e.mounted))):[]),[d]);(0,n.useEffect)((()=>{const e=l?.components?l.components.find((e=>"general"===e.key)):null;g(Vm(e,t.public.theme)),m(Bm(e,t.app))}),[l,t.public.theme,t.app,c]);const b=!l||Number.isNaN(l.height)?"100%":`${Number(l.height)}%`,C=d.map((e=>e.mountedPromise));return C.filter((e=>!!e)).length&&Promise.all(C).then((()=>{s()})),n.createElement("div",{className:"njs-sheet",style:{width:"100%",height:b,position:"relative",backgroundColor:h,backgroundImage:p&&p.url?`url(${p.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:p&&p.size,backgroundPosition:p&&p.pos}},_)},tf=()=>{};async function nf({id:e,options:t,plugins:i,element:o},r){const s=`${e}`;let a=tc.get(s);a||(a=r.app.getObject(e),tc.set(s,a));const l=await a;return ac.set(s,l),"sheet"===l.genericType?async function(e,t,i,o,r=(async()=>{})){const s=function({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=tf,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h={id:e.id,model:e,async destroy(){await o(),r(),r=tf},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a}){const{root:l}=e,c=n.createRef(),d=Vo.createPortal(n.createElement(ef,{ref:c,halo:e,model:i,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s}),t,i.id),u=()=>{l.remove(d),i.removeListener("closed",u)};return i.on("closed",u),l.add(d),[u,c]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l}),c},async applyProperties(t){const n=Zm("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{Qm(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}({model:e,halo:i,initialError:void 0,onDestroy:r});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(l,{options:t,plugins:i,element:o},r):Jm(l,{options:t,plugins:i,element:o},r)}function of(e={}){return{isEnabled:t=>!0===e[t]}}const rf=Ol().bind(null,!0),sf={},{isArray:af}=Array;function lf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function cf(e){return void 0===e}function df(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function uf(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach(((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=cf(e[i||t])?r:e[t],e=e[i||t]})),e}function hf(e,t){let n=!0;if(lf(e)&&lf(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((i=>{hf(e[i],t[i])||(n=!1)})),n);if(af(e)&&af(t)){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!hf(e[n],t[n]))return!1;return!0}return e===t}sf.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach((o=>{const r=function(e){return e?rf({},{val:e}).val:e}(t[o]),s=e[o],a=`${n}/${o}`;hf(r,s)||df(t,o)||(cf(s)?i.push({op:"add",path:a,value:r}):lf(r)&&lf(s)?i=i.concat(sf.generate(s,r,a)):af(r)&&af(s)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function s(e,t,n){if(e[n]&&cf(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(hf(t,o))return i;if(!cf(t[0])&&cf(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(sf.generate(o[e],t[r],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(s,r,a)):i.push({op:"replace",path:`${n}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{cf(t[o])&&!df(e,o)&&i.push({op:"remove",path:`${n}/${o}`})})),i},sf.apply=function(e,t){t.forEach((t=>{let n=uf(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(af(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(af(o)&&af(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(lf(o)&&lf(t.value))s=o,Object.keys(s).forEach((e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!df(s,e)&&delete s[e]})),rf(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=uf(e,t.from);af(n)?n.splice(+i,0,o.splice(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(af(n)?n.splice(+i,1):delete n[i]);var s}))},sf.clone=function(e){return rf({},e)},sf.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},sf.updateObject=function(e,t){Object.keys(e).length?sf.apply(e,sf.generate(e,t)):rf(e,t)};const gf=sf;let pf,mf;function ff(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function vf(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}}}function _f(e){Cf(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 bf(e){if(e.__hooks.obsolete)return Promise.resolve();mf=-1,pf=e;let t=-1;pf.__hooks.initiated&&(t=pf.__hooks.list.length);try{pf.fn.call(null)}catch(e){console.error(e)}pf.__hooks.initiated=!0,t>-1&&t!==pf.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=pf.__hooks;return xf(pf),mf=void 0,pf=void 0,n.chain.promise||(n.chain.promise=new Promise((e=>{n.chain.resolve=e}))),function(e){Cf(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){Cf(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)})))}(n),n.chain.promise}function Cf(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 yf(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 wf(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Sf(e){return e.__hooks.imperativeHandle}function xf(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Lf(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,xf(e))}function kf(e){if(void 0===pf)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=pf.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Ef(e){return kf(++mf),pf.context[e]}function Nf(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Df(e){return{__hooked:!0,fn:e,initiate:vf,run:bf,teardown:_f,runSnaps:yf,runMenu:wf,focus:iv,blur:ov,observeActions:Lf,getImperativeHandle:Sf,updateRectOnNextRun:Nf}}function If(e){const t=kf(++mf);if(!t.value){t.component=pf;const n=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 n="function"==typeof e?e(t.value[0]):e;var i;n!==t.value[0]&&(t.value[0]=n,(i=t.component).__hooks.micro||(i.__hooks.micro=setTimeout((()=>{i.__hooks.micro=null,bf(i)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function qf(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=kf(++mf);ff(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===pf.__hooks.pendingEffects.indexOf(n)&&pf.__hooks.pendingEffects.push(n))}function Rf(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=kf(++mf);ff(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],pf.__hooks.pendingLayoutEffects.push(n))}function Of(e,t){t||console.warn("useMemo called without dependencies.");const n=kf(++mf);return ff(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Tf(e,t){const[n,i]=If((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=kf(++mf);return o.component||(o.component=pf),Rf((()=>{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(),i({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),i({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]}function Af(){return Ef("element")}function Mf(){const e=Af(),t=pf.__hooks.resizer,[n,i]=If((()=>{const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:i,height:o}}));return t.current=n,-1===t.setters.indexOf(i)&&t.setters.push(i),t.update&&t.resize&&(t.update=!1,t.resize()),Rf((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===n&&s.top===i||t.setters.forEach((e=>e({left:n,top:i,width:o,height:r})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let i=new ResizeObserver(n);return i.observe(e),()=>{i.unobserve(e),i.disconnect(e),i=null,t.resize=void 0}}}),[e]),n}function Pf(){return Ef("layout")}function Ff(){const e=Ef("layout"),[t]=If({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Bf(){return Ef("appLayout")}function Vf(){const e=Ef("model");return e&&e.session?e:void 0}function Wf(){const e=Ef("app");return e&&e.session?e:void 0}function zf(){const e=Ef("global");return e&&e.session?e:void 0}function Hf(){return Ef("selections")}function jf(){return Ef("theme")}function Uf(){return Ef("nebbie")}function $f(){return Ef("translator")}function Kf(){return Ef("deviceType")}function Gf(){return Ef("plugins")}function Zf(e,t){const[n]=If({action(){n._config.action.call(null)}});return n.component||(n.component=pf,pf.__hooks.actions.list.push(n)),Of((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action}function Qf(){return Ef("constraints")}function Yf(){return Ef("options")}function Xf(e,t){const n=kf(++mf);if(!n.imperative){if(pf.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(ff(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],pf.__hooks.imperativeHandle=i}}function Jf(e){const t=kf(++mf);t.value||(t.value=1,pf.__hooks.snaps.push(t)),t.fn=e}function ev(e){const t=kf(++mf);t.value||(t.value=1,pf.__hooks.menus.push(t)),t.fn=e}function tv(){kf(++mf);const e=pf.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function nv(){const e=Ef("keyboardNavigation"),t=Ef("focusHandler");if(!pf.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(ov(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(pf);pf.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),iv(this))}.bind(pf);pf.__hooks.accessibility.focusFunction=n;const i=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(pf);pf.__hooks.accessibility.focusSelectionFunction=i}const n=pf.__hooks.accessibility.focusFunction,i=pf.__hooks.accessibility.exitFunction,o=pf.__hooks.accessibility.focusSelectionFunction,[r,s]=If({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return pf.__hooks.accessibility.setter=s,pf.__hooks.accessibility.enabled=e,qf((()=>s({active:!1,enabled:e,blur:i,focus:n,focusSelection:o})),[e]),r}function iv(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 ov(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 rv={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},sv=Object.keys(rv);function av(e,t){console.warn("Obsolete API - time to get hooked!");const n={...rv};var i;i=n,Object.keys(Qa().prototype).forEach((e=>{i[e]=Qa().prototype[e]})),Qa().init(i);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==sv.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const r=function({sn:e,component:t}){const n={},i=[],o=(e=>t=>{const n=(i={...t,action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0},Object.keys(Qa().prototype).forEach((e=>{i[e]=Qa().prototype[e]})),Qa().init(i),i);var i;return n})(t);return((e.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=o(e);n[e.key]=t,i.push(t)})),(e.definition.actions||[]).forEach((e=>{const t=o(e);n[e.key]=t})),{actions:n,selectionToolbarItems:i,destroy(){i.length=0}}}({sn:e,component:o}),s=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:s,selections:t.selections,actions:r.actions}),Object.assign(n,{actions:r.actions,model:t.model,app:t.app,selections:t.selections}),[n,r]}const lv=()=>{};function cv(e,t){return void 0===e?()=>t:()=>e}function dv(e){const t=e||{};return{min:"function"==typeof t.min?t.min:cv(t.min,0),max:"function"==typeof t.max?t.max:cv(t.max,1e3),added:t.added||t.add||lv,description:t.description||lv,moved:t.moved||t.move||lv,removed:t.removed||t.remove||lv,replaced:t.replaced||t.replace||lv,isDefined:()=>!!e}}function uv(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef or /qListObjectDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(e,n,{}),dimensions:dv(e.dimensions),measures:dv(e.measures)}}function hv(e={}){let t,n=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange),{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(uv)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function gv(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:hv(n.qae),component:n.component||{},create:e=>function(e,t,n){"function"==typeof e.component&&(e.component=Df(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==bf&&console.warn("Detected multiple supernova modules, this might cause problems.");const i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const r={},s=["appLayout","constraints"],a={};t.model&&t.model.session||(a.select=!0);const l={context:{model:t.model,app:t.app,global:i,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:a,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(l,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let i=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(i=!0)})),i&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}s.forEach((e=>{const i=t.context;if(i&&Object.prototype.hasOwnProperty.call(i,e)){let t=JSON.stringify(i[e]);"constraints"===e&&(t=JSON.stringify({...i[e],...a})),t!==r[e]&&(n=!0,r[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(n=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(n=!0,r.language=l.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return s.forEach((e=>{r[e]=JSON.stringify(l.context[e])})),r.themeName=l.context.theme?l.context.theme.name():void 0,r.language=l.context.translator?l.context.translator.language():void 0,Object.assign(l,{selections:t.selections}),[l,null]}(e,t,n):av(e,t),r=[];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(...n){return e.qae.properties.onChange.call({model:t.model},...n),t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,i){const o=i?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const r=gf.clone(o),s=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));gf.apply(o,s),e.qae.properties.onChange.call({model:t.model},o);const a=gf.generate(r,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,a,i)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}(i,e,t),definition:{}};return Object.keys(n).forEach((e=>{i[e]||(i.definition[e]=n[e])})),i}var pv=s(91068);const mv={};function fv(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,r)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:r}=n,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||(0,pv.satisfies)(e,r.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!mv[o]){const r=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(i||n.load)({name:e,version:t}),a=Promise.resolve(s);mv[o]=a.then((e=>{if(!e)throw new Error(`load() of visualization '${r}' resolved to an invalid object`);return e})).catch((e=>{throw console.warn(e),new Error(`Failed to load visualization: '${r}'`)}))}return mv[o]}(s.name,s.version,t,n.load).then((e=>(i=i||gv(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i))),initialProperties(e){return this.supernova().then((()=>({qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o),...e})))}};return s}({name:e,version:o},t,r),i=null},getMatchingVersionFromProperties:e=>{var t;i||(t=Object.keys(n),i=[...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=i.length-1;t>=0;t--)if(n[i[t]].supportsPropertiesVersion(e))return i[t];return null},versions:n}}const vv=(e={},t={})=>({...e,...t}),_v=(e=[],t=[])=>[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t)),bv=(e={})=>{const{__DO_NOT_USE__:t={},...n}=e;return{...n,update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1,...t}},Cv=function e(t={}){const i=function(e){const t=Ka({initial:e});return Object.keys(Ga).forEach((e=>{t.translator.add(Ga[e])})),{translator:t.translator}}(t.context.language);function o(e,r){if(r)return o.createConfiguration(r)(e);let s={...t.context,translator:i.translator};const[a]=function({app:e,context:t}){let i;const o=new Promise((e=>{i=e})),r=n.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","3.1.0"),s.setAttribute("data-app-id",e.id),document.body.appendChild(s),Vo.render(n.createElement(Lc,{ref:r,app:e,initialContext:t}),s,i);const a={};return[{toggleFocusOfCells(e){Object.keys(a).forEach((t=>{a[t].current.toggleFocus(t===e)}))},cells:a,addCell(e,t){a[e]=t},removeCell(e){delete a[e]},add(e){(async()=>{await o,r.current.addComponent(e)})()},remove(e){(async()=>{await o,r.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await o,r.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,r.current.setContext(e)})()},getAppSelections:async()=>(await o,r.current.getAppSelections())},r,o]}({app:e,context:s}),l=function({themes:e=[],root:t}={}){const n=Ul();return{setTheme:async i=>{const o=e.filter((e=>e.id===i))[0];let r="dark"===i?"dark":"light";if(o&&o.load)try{const e=await Promise.race([o.load(),(5e3,s={__timedOut:!0},new Promise((e=>{setTimeout((()=>e(s)),5e3)})))]);e.__timedOut?console.warn(`Timeout when loading theme '${i}'`):(r="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,i),t.setMuiThemeName(r))}catch(e){console.error(e)}else n.internalAPI.setTheme({type:r},i),t.setMuiThemeName(r);var s},externalAPI:n.externalAPI}}({themes:t.themes,root:a});s.themeApi=l.externalAPI;const c={galaxy:{translator:i.translator,flags:of(t.flags),deviceType:(h=t.context.deviceType,"auto"!==h?h: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:l.externalAPI,translator:i.translator,nebbie:null},d={app:e,root:a,config:t,public:c,context:s,types:null},u=function({halo:e,parent:t}){const n={},i=t||{get:()=>{}};return{register:(t,i)=>{n[t.name]||(n[t.name]=fv(t.name,e)),n[t.name].register(t.version,i)},getSupportedVersion:(e,t)=>n[e]?n[e].getMatchingVersionFromProperties(t):null,get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){const e=Object.keys(n[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.`),this.register({name:t,version:o});return n[t].get(o)||i.get(e)},getList:()=>Object.keys(n).map((e=>({name:e,versions:Object.keys(n[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(mv).forEach((t=>{t.split("__")[0]===e&&(mv[t]=void 0)}))}(e)}}}({halo:d});var h;t.types.forEach((e=>u.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let g=l.setTheme(t.context.theme),p=null,m=null;const f={render:async e=>(await g,e.id?nf(e,d):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:r,element:s},a){let l,c={};try{const o=a.types.get({name:e,version:t});c=await o.initialProperties(i);const r=await o.supernova();n&&function({sn:e,properties:t,fields:n}){if(!n.length)return;const i=e.qae.data.targets[0];if(!i)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:o}=i,r=o.split("/");let s=t;for(let e=0;e<r.length;e++){const t=r[e];s=t?s[t]:s}const a=jp({dc:s,def:i,properties:t});n.forEach((e=>{const t=function(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}(e);"measure"===t?a.addMeasure(e):a.addDimension(e)}))}({sn:r,properties:c,fields:n}),i&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},c)}catch(t){l=t,c={qInfo:{qType:e},visualization:e}}const d=await a.app.createSessionObject(c);ac.set(d.id,d);const u=(e=>{const t=rc({type:"SET",value:e});return()=>{t(),ac.clear(e.id)}})(d);return Jm(d,{options:o,plugins:r,element:s},a,l,(async()=>{await a.app.destroySessionObject(d.id),u()}))}(e,d)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==s[n]&&(t||(t={}),t[n]=e[n])})),t&&(s={...s,...t,translator:i.translator},d.context=s,t.theme&&(g=l.setTheme(t.theme),await g),t.language&&d.public.translator.language(t.language),a.context(s))},selections:async()=>(p||(p={mount(t){m?console.error("Already mounted"):(m=function({element:e,app:t}){return Vo.createPortal(n.createElement(bp,{app:t}),e)}({element:t,app:e}),a.add(m))},unmount(){m&&(a.remove(m),m=null)}}),p),field:async t=>{let i;const o="string"==typeof t?t:t.qLibraryId;if(t.qId)i=t.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const r={fieldName:o,mount(r,s={}){if(!r)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);this._instance=function({element:e,app:t,fieldIdentifier:i,qId:o,stateName:r="$",options:s={}}){return Vo.createPortal(n.createElement(Fp,{app:t,element:e,fieldIdentifier:i,qId:o,stateName:r,options:s}),e)}({element:r,app:e,fieldIdentifier:t,qId:i,options:bv(s),stateName:s.stateName||"$"}),a.add(this._instance)},unmount(){this._instance&&(a.remove(this._instance),this._instance=null)}};return r},getRegisteredTypes:u.getList,__DO_NOT_USE__:{types:u}};return d.public.nebbie=f,d.types=u,f}return o.createConfiguration=n=>e(((e,t)=>({context:vv(e.context,t.context),load:t.load||e.load,snapshot:{...t.snapshot||e.snapshot},types:_v(e.types,t.types),themes:_v(e.themes,t.themes),flags:vv(e.flags,t.flags),anything:vv(e.anything,t.anything)}))(t,n)),o.config=t,o}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1},load:()=>{},types:[],themes:[],anything:{},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()))}}),yv=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},wv=globalThis.crypto||{getRandomValues:()=>123456},Sv=function(){return e=>{const t=Ol()({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^wv.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const n=t._mock;let i=t;return n&&(delete t._mock,i=Ol()({},t,n)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(i),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId,...t})}},xv=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,Lv=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const r=xv(e,{defaultValue:t,args:o});return n?new Promise((e=>{setTimeout((()=>e(r)),i)})):r},kv=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Ev(e){return!kv.includes(e)}function Nv(e){const t=xv(e.getLayout);return t.qInfo&&t.qInfo.qId}function Dv(e,t){let n=Nv(e);const{delay:i}=t,{id:o,session:r,...s}=e;if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);return n=n||o||"object - "+ +Date.now(),{[n]:{id:n,session:xv(r,{defaultValue:!0}),on:()=>{},once:()=>{},...Object.entries(s).reduce(((e,[t,n])=>({...e,[t]:Lv(n,{async:Ev(t),delay:i})})),{}),genericType:e.type}}}function Iv(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Nv(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const qv=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(Iv);const n=function(e,t){return e.reduce(((e,n)=>({...e,...Dv(n,t)})),{})}(e,t);return async e=>Promise.resolve(n[e])},Rv=function(){return()=>Promise.resolve({id:"app-layout"})},Ov={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new yv,i=new Sv,o=new qv(e,t),r=new Rv,s={id:"app - "+ +Date.now(),session:n,createSessionObject:i,getObject:o,getAppLayout:r};return Promise.resolve(s)}(e,t)},Tv=Ov,Av={generator:gv,hook:Df,theme:Ul,locale:Ka};var Mv=s(32981),Pv=s(16254),Fv=s(26613),Bv=s(82665),Vv=s(70200);function Wv(e){return(0,bt.Z)("MuiToolbar",e)}(0,_t.Z)("MuiToolbar",["root","gutters","regular","dense"]);const zv=["className","component","disableGutters","variant"],Hv=(0,vt.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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)),jv=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:s="regular"}=n,a=(0,dt.Z)(n,zv),l=(0,ut.Z)({},n,{component:o,disableGutters:r,variant:s}),c=(e=>{const{classes:t,disableGutters:n,variant:i}=e,o={root:["root",!n&&"gutters",i]};return(0,gt.Z)(o,Wv,t)})(l);return(0,yt.jsx)(Hv,(0,ut.Z)({as:o,className:(0,ht.Z)(c.root,i),ref:t,ownerState:l},a))})),Uv=jv;function $v(e){return(0,bt.Z)("MuiMenu",e)}(0,_t.Z)("MuiMenu",["root","paper","list"]);const Kv=["onEntering"],Gv=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Zv={vertical:"top",horizontal:"right"},Qv={vertical:"top",horizontal:"left"},Yv=(0,vt.ZP)(Md,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xv=(0,vt.ZP)(Ld,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jv=(0,vt.ZP)(gg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),e_=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:r,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:l,open:c,PaperProps:d={},PopoverClasses:u,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:p="selectedMenu"}=i,m=(0,dt.Z)(i.TransitionProps,Kv),f=(0,dt.Z)(i,Gv),v=Ht(),_="rtl"===v.direction,b=(0,ut.Z)({},i,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:g,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:p}),C=(e=>{const{classes:t}=e;return(0,gt.Z)({root:["root"],paper:["paper"],list:["list"]},$v,t)})(b),y=o&&!s&&c,w=n.useRef(null);let S=-1;return n.Children.map(r,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===S)&&(S=t))})),(0,yt.jsx)(Yv,(0,ut.Z)({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?Zv:Qv,PaperProps:(0,ut.Z)({component:Xv},d,{classes:(0,ut.Z)({},d.classes,{root:C.paper})}),className:C.root,open:c,ref:t,transitionDuration:h,TransitionProps:(0,ut.Z)({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,v),g&&g(e,t)}},m),ownerState:b},f,{classes:u,children:(0,yt.jsx)(Jv,(0,ut.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:w,autoFocus:o&&(-1===S||s),autoFocusItem:y,variant:p},a,{className:(0,ht.Z)(C.list,a.className),children:r}))}))})),t_=e_,n_=new Map,i_=[],o_=i_.map,r_=i_.some,s_=i_.hasOwnProperty,a_=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,l_=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,c_=/(?:\.[^/]*|\/)$/;class d_ extends Error{constructor(e){super(e)}}function u_(e){const t=a_.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function h_(e){const t=new Map,n=o(null);function i(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise(((t,n)=>{const i=document.createElement("script");i.onload=()=>{try{t(i_.pop()(o(e)))}catch(e){n(new d_("invalid module"))}i.remove()},i.onerror=()=>{n(new d_("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=f_,document.head.appendChild(i)}))),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function r(e){return arguments.length>1?Promise.all(o_.call(arguments,n)).then(g_):n(e)}return r.alias=function(t){return h_(((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i)))},r.resolve=e,r}function g_(e){const t={};for(const n of e)for(const e in n)s_.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:p_(n,e)}):t[e]=n[e]);return t}function p_(e,t){return()=>e[t]}function m_(e){return"exports"==(e+="")||"module"===e}function f_(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),i_.push(r_.call(t,m_)?e=>{const i={},o={exports:i};return Promise.all(o_.call(t,(t=>"exports"==(t+="")?i:"module"===t?o:e(t)))).then((e=>(n.apply(null,e),o.exports)))}:e=>Promise.all(o_.call(t,e)).then((e=>"function"==typeof n?n.apply(null,e):n)))}d_.prototype.name=d_.name,h_(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function n(t){const n=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let i=n_.get(n);return i||n_.set(n,i=fetch(n).then((e=>{if(!e.ok)throw new d_("unable to load package.json");return e.redirected&&!n_.has(e.url)&&n_.set(e.url,i),e.json()}))),i}return async function(i,o){if(i.startsWith(e)&&(i=i.substring(e.length)),/^(\w+:)|\/\//i.test(i))return i;if(/^[.]{0,2}\//i.test(i))return new URL(i,null==o?location:o).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new d_("illegal name");const r=u_(i);if(!r)return`${e}${i}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await n(u_(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!c_.test(r.path)&&(r.path+=".js"),r.path&&r.version&&l_.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await n(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),c_.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),f_.amd={};const v_=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`;return h_((async e=>i(e))).alias({"@nebula.js/stardust":e})(n||t)},__={};function b_(e){const[t]=sc(),n=t.get(e),[i,...o]=cc(n,"getProperties");return[i,e=>n.setProperties(e),...o]}window.onHotChange=(e,t)=>(__[e]||(__[e]=[]),__[e].push(t),window[e]&&t(),()=>{const n=__[e].indexOf(t);__[e].splice(n,1)});const C_=n.createContext();function y_({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const i=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return o.qDef.cId=o.qDef.cId||Wp(),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,i),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,i,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}function w_({dc:e,def:t,properties:n,dimensions:i}){const o=n,r={dimensions:()=>i,measures:()=>[],addDimension(n){const i="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||Wp(),i.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(i,o),i},removeDimension(e){const n=i[e];return t.dimensions.removed(n,o,e),n},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>r.dimensions().length<r.maxDimensions(),canAddMeasure:()=>!1};return r}const S_={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},x_={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function L_(e,t="dimension"){const n="dimension"===t?S_:x_,[i]=hc(n,e),[o]=dc(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function k_(e){return(0,bt.Z)("MuiListSubheader",e)}(0,_t.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const E_=["className","color","component","disableGutters","disableSticky","inset"],N_=(0,vt.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Ft.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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}))),D_=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=n,c=(0,dt.Z)(n,E_),d=(0,ut.Z)({},n,{color:o,component:r,disableGutters:s,disableSticky:a,inset:l}),u=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:r}=e,s={root:["root","default"!==n&&`color${(0,Ft.Z)(n)}`,!i&&"gutters",o&&"inset",!r&&"sticky"]};return(0,gt.Z)(s,k_,t)})(d);return(0,yt.jsx)(N_,(0,ut.Z)({as:r,className:(0,ht.Z)(u.root,i),ref:t,ownerState:d},c))})),I_=D_;var q_=s(25138),R_=s.n(q_),O_=s(18258),T_=s.n(O_),A_=s(38866),M_=s(44526),P_=s(7833);function F_(e){return(0,bt.Z)("MuiInput",e)}const B_=(0,ut.Z)({},Ts,(0,_t.Z)("MuiInput",["root","underline","input"])),V_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],W_=(0,vt.ZP)(ia,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ta(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,ut.Z)({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"},[`&.${B_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${B_.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${B_.disabled}, .${B_.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${B_.disabled}:before`]:{borderBottomStyle:"dotted"}})})),z_=(0,vt.ZP)(oa,{name:"MuiInput",slot:"Input",overridesResolver:na})({}),H_=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,ft.Z)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:u="input",multiline:h=!1,slotProps:g,slots:p={},type:m="text"}=s,f=(0,dt.Z)(s,V_),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,gt.Z)(i,F_,t);return(0,ut.Z)({},t,o)})(s),_={root:{ownerState:{disableUnderline:a}}},b=(null!=g?g:c)?(0,Sn.Z)(null!=g?g:c,_):_,C=null!=(n=null!=(i=p.root)?i:l.Root)?n:W_,y=null!=(o=null!=(r=p.input)?r:l.Input)?o:z_;return(0,yt.jsx)(aa,(0,ut.Z)({slots:{root:C,input:y},slotProps:b,fullWidth:d,inputComponent:u,multiline:h,ref:t,type:m},f,{classes:v}))}));H_.muiName="Input";const j_=H_;function U_(e){return(0,bt.Z)("MuiFilledInput",e)}const $_=(0,ut.Z)({},Ts,(0,_t.Z)("MuiFilledInput",["root","underline","input"])),K_=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],G_=(0,vt.ZP)(ia,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ta(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const i="light"===e.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,ut.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${$_.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${$_.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$_.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(.${$_.disabled}, .${$_.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$_.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,ut.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Z_=(0,vt.ZP)(oa,{name:"MuiFilledInput",slot:"Input",overridesResolver:na})((({theme:e,ownerState:t})=>(0,ut.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),Q_=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,ft.Z)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:h,slots:g={},type:p="text"}=s,m=(0,dt.Z)(s,K_),f=(0,ut.Z)({},s,{fullWidth:c,inputComponent:d,multiline:u,type:p}),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,gt.Z)(i,U_,t);return(0,ut.Z)({},t,o)})(s),_={root:{ownerState:f},input:{ownerState:f}},b=(null!=h?h:l)?(0,Sn.Z)(null!=h?h:l,_):_,C=null!=(n=null!=(i=g.root)?i:a.Root)?n:G_,y=null!=(o=null!=(r=g.input)?r:a.Input)?o:Z_;return(0,yt.jsx)(aa,(0,ut.Z)({slots:{root:C,input:y},componentsProps:b,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:p},m,{classes:v}))}));Q_.muiName="Input";const Y_=Q_;function X_(e){return(0,bt.Z)("MuiFormLabel",e)}const J_=(0,_t.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),eb=["children","className","color","component","disabled","error","filled","focused","required"],tb=(0,vt.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,ut.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,ut.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${J_.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${J_.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${J_.error}`]:{color:(e.vars||e).palette.error.main}}))),nb=(0,vt.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${J_.error}`]:{color:(e.vars||e).palette.error.main}}))),ib=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:o,component:r="label"}=n,s=(0,dt.Z)(n,eb),a=Rs({props:n,muiFormControl:qs(),states:["color","required","focused","disabled","error","filled"]}),l=(0,ut.Z)({},n,{color:a.color||"primary",component:r,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:n,focused:i,disabled:o,error:r,filled:s,required:a}=e,l={root:["root",`color${(0,Ft.Z)(n)}`,o&&"disabled",r&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return(0,gt.Z)(l,X_,t)})(l);return(0,yt.jsxs)(tb,(0,ut.Z)({as:r,ownerState:l,className:(0,ht.Z)(c.root,o),ref:t},s,{children:[i,a.required&&(0,yt.jsxs)(nb,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),ob=ib;function rb(e){return(0,bt.Z)("MuiInputLabel",e)}(0,_t.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const sb=["disableAnimation","margin","shrink","variant","className"],ab=(0,vt.ZP)(ob,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${J_.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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,ut.Z)({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,ut.Z)({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,ut.Z)({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% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),lb=n.forwardRef((function(e,t){const n=(0,ft.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:o,className:r}=n,s=(0,dt.Z)(n,sb),a=qs();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=Rs({props:n,muiFormControl:a,states:["size","variant","required"]}),d=(0,ut.Z)({},n,{disableAnimation:i,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required}),u=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:r,variant:s,required:a}=e,l={root:["root",n&&"formControl",!r&&"animated",o&&"shrink","small"===i&&"sizeSmall",s],asterisk:[a&&"asterisk"]},c=(0,gt.Z)(l,rb,t);return(0,ut.Z)({},t,c)})(d);return(0,yt.jsx)(ab,(0,ut.Z)({"data-shrink":l,ownerState:d,ref:t,className:(0,ht.Z)(u.root,r)},s,{classes:u}))})),cb=lb;function db(e){return(0,bt.Z)("MuiFormControl",e)}(0,_t.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ub=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],hb=(0,vt.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,ut.Z)({},t.root,t[`margin${(0,Ft.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,ut.Z)({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%"}))),gb=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiFormControl"}),{children:o,className:r,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:h=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined"}=i,v=(0,dt.Z)(i,ub),_=(0,ut.Z)({},i,{color:s,component:a,disabled:l,error:c,fullWidth:u,hiddenLabel:h,margin:g,required:p,size:m,variant:f}),b=(e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root","none"!==n&&`margin${(0,Ft.Z)(n)}`,i&&"fullWidth"]};return(0,gt.Z)(o,db,t)})(_),[C,y]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{if(!(0,vr.Z)(t,["Input","Select"]))return;const n=(0,vr.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[w,S]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{(0,vr.Z)(t,["Input","Select"])&&Js(t.props,!0)&&(e=!0)})),e})),[x,L]=n.useState(!1);l&&x&&L(!1);const k=void 0===d||l?x:d;let E;const N=n.useMemo((()=>({adornedStart:C,setAdornedStart:y,color:s,disabled:l,error:c,filled:w,focused:k,fullWidth:u,hiddenLabel:h,size:m,onBlur:()=>{L(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{L(!0)},registerEffect:E,required:p,variant:f})),[C,s,l,c,w,k,u,h,E,p,m,f]);return(0,yt.jsx)(Is.Provider,{value:N,children:(0,yt.jsx)(hb,(0,ut.Z)({as:a,ownerState:_,className:(0,ht.Z)(b.root,r),ref:t},v,{children:o}))})})),pb=gb;function mb(e){return(0,bt.Z)("MuiFormHelperText",e)}const fb=(0,_t.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var vb;const _b=["children","className","component","disabled","error","filled","focused","margin","required","variant"],bb=(0,vt.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Ft.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,ut.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${fb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fb.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),Cb=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:r="p"}=n,s=(0,dt.Z)(n,_b),a=Rs({props:n,muiFormControl:qs(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,ut.Z)({},n,{component:r,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:n,size:i,disabled:o,error:r,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",r&&"error",i&&`size${(0,Ft.Z)(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,gt.Z)(c,mb,t)})(l);return(0,yt.jsx)(bb,(0,ut.Z)({as:r,ownerState:l,className:(0,ht.Z)(c.root,o),ref:t},s,{children:" "===i?vb||(vb=(0,yt.jsx)("span",{className:"notranslate",children:""})):i}))})),yb=Cb;function wb(e){return(0,bt.Z)("MuiNativeSelect",e)}const Sb=(0,_t.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),xb=["className","disabled","IconComponent","inputRef","variant"],Lb=({ownerState:e,theme:t})=>(0,ut.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,ut.Z)({},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"},[`&.${Sb.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}}),kb=(0,vt.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:vt.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${Sb.multiple}`]:t.multiple}]}})(Lb),Eb=({ownerState:e,theme:t})=>(0,ut.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Sb.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Nb=(0,vt.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ft.Z)(n.variant)}`],n.open&&t.iconOpen]}})(Eb),Db=n.forwardRef((function(e,t){const{className:i,disabled:o,IconComponent:r,inputRef:s,variant:a="standard"}=e,l=(0,dt.Z)(e,xb),c=(0,ut.Z)({},e,{disabled:o,variant:a}),d=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r}=e,s={select:["select",n,i&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,Ft.Z)(n)}`,r&&"iconOpen",i&&"disabled"]};return(0,gt.Z)(s,wb,t)})(c);return(0,yt.jsxs)(n.Fragment,{children:[(0,yt.jsx)(kb,(0,ut.Z)({ownerState:c,className:(0,ht.Z)(d.select,i),disabled:o,ref:s||t},l)),e.multiple?null:(0,yt.jsx)(Nb,{as:r,ownerState:c,className:d.icon})]})})),Ib=Db;function qb(e){return(0,bt.Z)("MuiSelect",e)}const Rb=(0,_t.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var Ob;const Tb=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Ab=(0,vt.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Rb.select}`]:t.select},{[`&.${Rb.select}`]:t[n.variant]},{[`&.${Rb.multiple}`]:t.multiple}]}})(Lb,{[`&.${Rb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Mb=(0,vt.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ft.Z)(n.variant)}`],n.open&&t.iconOpen]}})(Eb),Pb=(0,vt.ZP)("input",{shouldForwardProp:e=>(0,vt.Dz)(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 Fb(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Bb(e){return null==e||"string"==typeof e&&!e.trim()}const Vb=n.forwardRef((function(e,t){const{"aria-describedby":i,"aria-label":o,autoFocus:r,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:u,displayEmpty:h,IconComponent:g,inputRef:p,labelId:m,MenuProps:f={},multiple:v,name:_,onBlur:b,onChange:C,onClose:y,onFocus:w,onOpen:S,open:x,readOnly:L,renderValue:k,SelectDisplayProps:E={},tabIndex:N,value:D,variant:I="standard"}=e,q=(0,dt.Z)(e,Tb),[R,O]=(0,Jd.Z)({controlled:D,default:d,name:"Select"}),[T,A]=(0,Jd.Z)({controlled:x,default:c,name:"Select"}),M=n.useRef(null),P=n.useRef(null),[F,B]=n.useState(null),{current:V}=n.useRef(null!=x),[W,z]=n.useState(),H=(0,_i.Z)(t,p),j=n.useCallback((e=>{P.current=e,e&&B(e)}),[]),U=null==F?void 0:F.parentNode;n.useImperativeHandle(H,(()=>({focus:()=>{P.current.focus()},node:M.current,value:R})),[R]),n.useEffect((()=>{c&&T&&F&&!V&&(z(s?null:U.clientWidth),P.current.focus())}),[F,s]),n.useEffect((()=>{r&&P.current.focus()}),[r]),n.useEffect((()=>{if(!m)return;const e=(0,as.Z)(P.current).getElementById(m);if(e){const t=()=>{getSelection().isCollapsed&&P.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[m]);const $=(e,t)=>{e?S&&S(t):y&&y(t),V||(z(s?null:U.clientWidth),A(e))},K=n.Children.toArray(a),G=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(R)?R.slice():[];const t=R.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),R!==n&&(O(n),C)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:_}}),C(o,e)}v||$(!1,t)}},Z=null!==F&&T;let Q,Y;delete q["aria-invalid"];const X=[];let J=!1,ee=!1;(Js({value:R})||h)&&(k?Q=k(R):J=!0);const te=K.map(((e,t,i)=>{var o,r,s,a;if(!n.isValidElement(e))return null;let l;if(v){if(!Array.isArray(R))throw new Error((0,Ps.Z)(2));l=R.some((t=>Fb(t,e.props.value))),l&&J&&X.push(e.props.children)}else l=Fb(R,e.props.value),l&&J&&(Y=e.props.children);return l&&(ee=!0),void 0===e.props.value?n.cloneElement(e,{"aria-readonly":!0,role:"option"}):n.cloneElement(e,{"aria-selected":l?"true":"false",onClick:G(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===(null==(o=i[0])||null==(r=o.props)?void 0:r.value)||!0===(null==(s=i[0])||null==(a=s.props)?void 0:a.disabled)?(()=>{if(R)return l;const t=i.find((e=>{var t;return void 0!==(null==e||null==(t=e.props)?void 0:t.value)&&!0!==e.props.disabled}));return e===t||l})():l,value:void 0,"data-value":e.props.value})}));J&&(Q=v?0===X.length?null:X.reduce(((e,t,n)=>(e.push(t),n<X.length-1&&e.push(", "),e)),[]):Y);let ne,ie=W;!s&&V&&F&&(ie=U.clientWidth),ne=void 0!==N?N:u?null:0;const oe=E.id||(_?`mui-component-select-${_}`:void 0),re=(0,ut.Z)({},e,{variant:I,value:R,open:Z}),se=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r}=e,s={select:["select",n,i&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,Ft.Z)(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return(0,gt.Z)(s,qb,t)})(re);return(0,yt.jsxs)(n.Fragment,{children:[(0,yt.jsx)(Ab,(0,ut.Z)({ref:j,tabIndex:ne,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[m,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:e=>{L||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),$(!0,e))},onMouseDown:u||L?null:e=>{0===e.button&&(e.preventDefault(),P.current.focus(),$(!0,e))},onBlur:e=>{!Z&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:R,name:_}}),b(e))},onFocus:w},E,{ownerState:re,className:(0,ht.Z)(E.className,se.select,l),id:oe,children:Bb(Q)?Ob||(Ob=(0,yt.jsx)("span",{className:"notranslate",children:""})):Q})),(0,yt.jsx)(Pb,(0,ut.Z)({value:Array.isArray(R)?R.join(","):R,name:_,ref:M,"aria-hidden":!0,onChange:e=>{const t=K.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=K[t];O(n.props.value),C&&C(e,n)},tabIndex:-1,disabled:u,className:se.nativeInput,autoFocus:r,ownerState:re},q)),(0,yt.jsx)(Mb,{as:g,className:se.icon,ownerState:re}),(0,yt.jsx)(t_,(0,ut.Z)({id:`menu-${_||""}`,anchorEl:U,open:Z,onClose:e=>{$(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},f,{MenuListProps:(0,ut.Z)({"aria-labelledby":m,role:"listbox",disableListWrap:!0},f.MenuListProps),PaperProps:(0,ut.Z)({},f.PaperProps,{style:(0,ut.Z)({minWidth:ie},null!=f.PaperProps?f.PaperProps.style:null)}),children:te}))]})})),Wb=Vb,zb=(0,Hn.Z)((0,yt.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var Hb,jb;const Ub=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],$b={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,vt.FO)(e)&&"variant"!==e,slot:"Root"},Kb=(0,vt.ZP)(j_,$b)(""),Gb=(0,vt.ZP)(ga,$b)(""),Zb=(0,vt.ZP)(Y_,$b)(""),Qb=n.forwardRef((function(e,t){const i=(0,ft.Z)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=zb,id:u,input:h,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:v=!1,native:_=!1,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:S,variant:x="outlined"}=i,L=(0,dt.Z)(i,Ub),k=_?Ib:Wb,E=Rs({props:i,muiFormControl:qs(),states:["variant"]}).variant||x,N=h||{standard:Hb||(Hb=(0,yt.jsx)(Kb,{})),outlined:(0,yt.jsx)(Gb,{label:p}),filled:jb||(jb=(0,yt.jsx)(Zb,{}))}[E],D=(e=>{const{classes:t}=e;return t})((0,ut.Z)({},i,{variant:E,classes:s})),I=(0,_i.Z)(t,N.ref);return(0,yt.jsx)(n.Fragment,{children:n.cloneElement(N,(0,ut.Z)({inputComponent:k,inputProps:(0,ut.Z)({children:r,IconComponent:d,variant:E,type:void 0,multiple:v},_?{id:u}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:(0,ut.Z)({id:u},S)},g,{classes:g?(0,Sn.Z)(D,g.classes):D},h?h.props.inputProps:{})},v&&_&&"outlined"===E?{notched:!0}:{},{ref:I,className:(0,ht.Z)(N.props.className,a)},!h&&{variant:E},L))})}));Qb.muiName="Select";const Yb=Qb;function Xb(e){return(0,bt.Z)("MuiTextField",e)}(0,_t.Z)("MuiTextField",["root"]);const Jb=["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"],eC={standard:j_,filled:Y_,outlined:ga},tC=(0,vt.ZP)(pb,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nC=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:r,className:s,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:u,fullWidth:h=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:v,inputRef:_,label:b,maxRows:C,minRows:y,multiline:w=!1,name:S,onBlur:x,onChange:L,onFocus:k,placeholder:E,required:N=!1,rows:D,select:I=!1,SelectProps:q,type:R,value:O,variant:T="outlined"}=n,A=(0,dt.Z)(n,Jb),M=(0,ut.Z)({},n,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:h,multiline:w,required:N,select:I,variant:T}),P=(e=>{const{classes:t}=e;return(0,gt.Z)({root:["root"]},Xb,t)})(M),F={};"outlined"===T&&(m&&void 0!==m.shrink&&(F.notched=m.shrink),F.label=b),I&&(q&&q.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=(0,P_.Z)(p),V=g&&B?`${B}-helper-text`:void 0,W=b&&B?`${B}-label`:void 0,z=eC[T],H=(0,yt.jsx)(z,(0,ut.Z)({"aria-describedby":V,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:h,multiline:w,name:S,rows:D,maxRows:C,minRows:y,type:R,value:O,id:B,inputRef:_,onBlur:x,onChange:L,onFocus:k,placeholder:E,inputProps:f},F,v));return(0,yt.jsxs)(tC,(0,ut.Z)({className:(0,ht.Z)(P.root,s),disabled:c,error:d,fullWidth:h,ref:t,required:N,color:a,variant:T,ownerState:M},A,{children:[null!=b&&""!==b&&(0,yt.jsx)(cb,(0,ut.Z)({htmlFor:B,id:W},m,{children:b})),I?(0,yt.jsx)(Yb,(0,ut.Z)({"aria-describedby":V,id:B,labelId:W,value:O,input:H},q,{children:r})):H,g&&(0,yt.jsx)(yb,(0,ut.Z)({id:V},u,{children:g}))]}))})),iC=nC,oC="Search-gridContainer",rC="Search-gridItem",sC=(0,vt.ZP)(So)((({theme:e})=>({[`& .${oC}`]:{padding:e.spacing(0,1,0,1)},[`& .${rC}`]:{padding:e.spacing(0,1,0,1)}})));function aC({onChange:e=(()=>{}),onEnter:t=(()=>{}),onEscape:i=(()=>{})}){const[o,r]=(0,n.useState)("");return n.createElement(sC,{className:oC,item:!0,container:!0,direction:"row",alignItems:"center"},n.createElement(So,{item:!0},n.createElement(Ag,null)),n.createElement(So,{className:rC,item:!0,xs:!0},n.createElement(iC,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{r(t.target.value),e(t.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":t(),r("");break;case"Escape":i()}}})))}function lC({field:e,onSelect:t,sub:i,parts:o}){return n.createElement(Rr,{button:!0,onClick:()=>t(e.qName),"data-key":e.qName},n.createElement(Fr,null,o.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),i&&n.createElement(A_.Z,{fontSize:"small"}))}function cC({item:e,onSelect:t,parts:i}){return n.createElement(Rr,{button:!0,onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId},n.createElement(Fr,null,i.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function dC({aggr:e,field:t,onSelect:i}){return n.createElement(Rr,{button:!0,onClick:()=>i(e),"data-key":e},n.createElement(Fr,null,`${e}(${t})`))}function uC({app:e,onSelect:t,title:i="",type:o="dimension",searchTerm:r=""}){const[s]=L_(e,o),a=(0,n.useMemo)((()=>s.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[s]);return s.length>0?n.createElement(n.Fragment,null,n.createElement(I_,{component:"div",style:{backgroundColor:"inherit"}},i),a.map((e=>{const i=T_()(e.qData.title,r),o=R_()(e.qData.title,i);return r&&0===i.length?null:n.createElement(cC,{key:e.qInfo.qId,item:e,onSelect:t,parts:o})}))):null}function hC({alignTo:e,show:t,close:i,onSelected:o,type:r}){const s=(0,n.useContext)(C_),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(""),u=Ht(),[h]=hc({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=dc(h),p=(0,n.useMemo)((()=>(g&&g.qFieldList.qItems||[]).slice().sort(((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())))),[g]),m=e=>{e&&e.qId?(o(e),i()):"measure"===r?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return n.createElement(Md,{open:t,onClose:i,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:u.palette.background.lightest}}},!a&&n.createElement(aC,{onChange:d}),a&&n.createElement(mr,{dense:!0,component:"nav"},n.createElement(Rr,{button:!0,onClick:()=>l(null)},n.createElement(rg,null,n.createElement(M_.Z,null)),n.createElement(Fr,null,"Back")),n.createElement(Vh,null),n.createElement(I_,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>n.createElement(dC,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&n.createElement(mr,{dense:!0,component:"nav",style:{background:u.palette.background.lightest}},n.createElement(uC,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),n.createElement(I_,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const t=T_()(e.qName,c),i=R_()(e.qName,t);return c&&0===t.length?null:n.createElement(lC,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:i})}))))}const gC=({field:e,libraryItems:t})=>{if(e.qLibraryId){const n=t.filter((t=>t.qInfo.qId===e.qLibraryId))[0];return n?n.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function pC({items:e,type:t="dimension",label:i="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),u=(0,n.useContext)(C_),[h]=L_(u,t);return n.createElement("div",null,n.createElement(Io,{variant:"overline"},i),n.createElement(mr,{dense:!0},e.map(((e,i)=>n.createElement(Rr,{disableGutters:!0,key:e.qDef&&e.qDef.cId||i},n.createElement(Fr,null,n.createElement(gC,{field:e,libraryItems:h,type:t})),n.createElement(kr,null,n.createElement(uo,{onClick:()=>{s(i)},size:"large"},n.createElement(cr,null))))))),n.createElement(wa,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&n.createElement(hC,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?r(e):e&&r("dimension"===t?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:t}))}function mC({setProperties:e,target:t,properties:i}){const[o,r]=(0,n.useState)([]),s=t.dimensions&&t.dimensions.max&&t.dimensions.max()>1?w_:y_,a=t.propertyPath.match("/qHyperCube")?jp:s,l=((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(i,t.propertyPath),c=(0,n.useMemo)((()=>a({def:t,dc:l,properties:i,dimensions:o})),[l,t,i,o]);return n.createElement("div",{style:{width:"100%"}},n.createElement(Io,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},t.propertyPath),n.createElement(pC,{key:"dimensions",onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(n);e(i).then((()=>{r([...o,s])}))},onRemoved:t=>{c.removeDimension(t),e(i).then((()=>{r([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),n.createElement(pC,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(i)},onRemoved:t=>{c.removeMeasure(t),e(i)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function fC({setProperties:e,sn:t,properties:i}){if(!t)return null;const{targets:o}=t.qae.data;return o.length?n.createElement(mr,null,o.map((t=>n.createElement(Rr,{key:t.propertyPath,divider:!0,disableGutters:!0},n.createElement(mC,{target:t,properties:i,setProperties:e}))))):n.createElement(Io,null,"No data targets found")}const vC=n.createContext({});function _C(e){return(0,bt.Z)("MuiAccordion",e)}const bC=(0,_t.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),CC=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],yC=(0,vt.ZP)(Ld,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bC.region}`]:t.region},t.root,!n.square&&t.rounded,!n.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"}},[`&.${bC.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${bC.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,ut.Z)({},!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&&{[`&.${bC.expanded}`]:{margin:"16px 0"}}))),wC=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiAccordion"}),{children:o,className:r,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:u=!1,TransitionComponent:h=or,TransitionProps:g}=i,p=(0,dt.Z)(i,CC),[m,f]=(0,Jd.Z)({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=n.useCallback((e=>{f(!m),d&&d(e,!m)}),[m,d,f]),[_,...b]=n.Children.toArray(o),C=n.useMemo((()=>({expanded:m,disabled:a,disableGutters:l,toggle:v})),[m,a,l,v]),y=(0,ut.Z)({},i,{square:u,disabled:a,disableGutters:l,expanded:m}),w=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:r}=e,s={root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return(0,gt.Z)(s,_C,t)})(y);return(0,yt.jsxs)(yC,(0,ut.Z)({className:(0,ht.Z)(w.root,r),ref:t,ownerState:y,square:u},p,{children:[(0,yt.jsx)(vC.Provider,{value:C,children:_}),(0,yt.jsx)(h,(0,ut.Z)({in:m,timeout:"auto"},g,{children:(0,yt.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:w.region,children:b})}))]}))})),SC=wC;function xC(e){return(0,bt.Z)("MuiAccordionSummary",e)}const LC=(0,_t.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),kC=["children","className","expandIcon","focusVisibleClassName","onClick"],EC=(0,vt.ZP)(oo,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return(0,ut.Z)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${LC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${LC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${LC.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${LC.expanded}`]:{minHeight:64}})})),NC=(0,vt.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,ut.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${LC.expanded}`]:{margin:"20px 0"}}))),DC=(0,vt.ZP)("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}),[`&.${LC.expanded}`]:{transform:"rotate(180deg)"}}))),IC=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l}=i,c=(0,dt.Z)(i,kC),{disabled:d=!1,disableGutters:u,expanded:h,toggle:g}=n.useContext(vC),p=(0,ut.Z)({},i,{expanded:h,disabled:d,disableGutters:u}),m=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e,r={root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,gt.Z)(r,xC,t)})(p);return(0,yt.jsxs)(EC,(0,ut.Z)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":h,className:(0,ht.Z)(m.root,r),focusVisibleClassName:(0,ht.Z)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:t,ownerState:p},c,{children:[(0,yt.jsx)(NC,{className:m.content,ownerState:p,children:o}),s&&(0,yt.jsx)(DC,{className:m.expandIconWrapper,ownerState:p,children:s})]}))})),qC=IC;function RC(e){return(0,bt.Z)("MuiAccordionDetails",e)}(0,_t.Z)("MuiAccordionDetails",["root"]);const OC=["className"],TC=(0,vt.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),AC=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiAccordionDetails"}),{className:i}=n,o=(0,dt.Z)(n,OC),r=n,s=(e=>{const{classes:t}=e;return(0,gt.Z)({root:["root"]},RC,t)})(r);return(0,yt.jsx)(TC,(0,ut.Z)({className:(0,ht.Z)(s.root,i),ref:t,ownerState:r},o))})),MC=AC;var PC=s(59579);let FC=null;const BC="AutoComponents-summary",VC="AutoComponents-details",WC="AutoComponents-root",zC=(0,vt.ZP)(So)((({theme:e})=>({[`& .${BC}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${VC}`]:{padding:e.spacing(1)}}))),HC=(0,vt.ZP)(SC)((({theme:e})=>({[`& .${WC}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),jC={boolean:function({property:e,value:t,target:i,changed:o}){return n.createElement(Qd,{control:n.createElement(vu,{checked:t,onChange:t=>{i[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(t);return n.createElement(iC,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=r,o())},label:e,value:r})},object:function({property:e,value:t,changed:i,app:o}){return n.createElement(HC,{square:!0,className:WC},n.createElement(qC,{expandIcon:n.createElement(PC.Z,null),className:BC},n.createElement(Io,null,e)),n.createElement(MC,{className:VC},KC(t,i,o)))},number:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(+t);return n.createElement(iC,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:t,target:i,changed:o}){const r=t.qStringExpression&&t.qStringExpression.qExpr?t.qStringExpression.qExpr:"",[s,a]=(0,n.useState)(r);return n.createElement(iC,{variant:"standard",InputProps:{startAdornment:n.createElement(Tg,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==t&&(i[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:t,target:i,changed:o,app:r}){const[s,a]=(0,n.useState)(t.name),[l,c]=(0,n.useState)([]);return(0,n.useEffect)((()=>{!async function(){const e=await async function(e){return FC||(FC=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await FC.getLayout()).qVariableList.qItems.map((e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName})))}(r);c(e)}()}),[]),0===l.length?n.createElement("em",null,"No variables in app"):n.createElement(pb,{size:"small",fullWidth:!0},n.createElement(Yb,{onChange:t=>{a(t.target.value),i[e].name=t.target.value,i[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:s,renderValue:e=>0===e.length?n.createElement("em",null,"Select a variable"):e},l.map((e=>n.createElement(tg,{key:e.value,value:e.value},e.label)))))}},UC=/^q[A-Z]/;let $C=!1;function KC(e,t,i,o){o&&o.PP_EXPRESSIONS&&($C=!0);const r=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(UC.test(t))return!1;const n=((e,t)=>Array.isArray(e)?"array":$C&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":$C&&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")(e[t],t);return!!jC[n]&&{Component:jC[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return n.createElement(zC,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map((o=>n.createElement(So,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},n.createElement(o.Component,{key:o.key,app:i,property:o.property,value:o.value,target:e,changed:t})))))}function GC({viz:e,sn:t,isTemp:i,storage:o,flags:r}){const[s,a]=b_(e.id),l=(0,n.useContext)(C_),[c,d]=(0,n.useState)(!1!==o.get("readFromCache")),u=(0,n.useCallback)((()=>{a(s)}),[e,t,s]);return t&&e&&s?n.createElement("div",{style:{minWidth:"250px",padding:"8px"}},i&&n.createElement(n.Fragment,null,n.createElement(So,{item:!0,container:!0,alignItems:"center"},n.createElement(Qd,{control:n.createElement(vu,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),n.createElement(Vh,null)),n.createElement(fC,{properties:s,setProperties:a,sn:t}),KC(s,u,l,r)):null}function ZC(e){return(0,bt.Z)("MuiDialog",e)}const QC=(0,_t.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),YC=(0,n.createContext)({}),XC=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],JC=(0,vt.ZP)(pd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ey=(0,vt.ZP)(bd,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ty=(0,vt.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,Ft.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,ut.Z)({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"}}))),ny=(0,vt.ZP)(Ld,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,Ft.Z)(n.scroll)}`],t[`paperWidth${(0,Ft.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${QC.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}`,[`&.${QC.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,[`&.${QC.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),iy=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiDialog"}),o=Ht(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:u,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClose:v,open:_,PaperComponent:b=Ld,PaperProps:C={},scroll:y="paper",TransitionComponent:w=cd,transitionDuration:S=r,TransitionProps:x}=i,L=(0,dt.Z)(i,XC),k=(0,ut.Z)({},i,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:p,maxWidth:m,scroll:y}),E=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${(0,Ft.Z)(n)}`],paper:["paper",`paperScroll${(0,Ft.Z)(n)}`,`paperWidth${(0,Ft.Z)(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return(0,gt.Z)(s,ZC,t)})(k),N=n.useRef(),D=(0,P_.Z)(a),I=n.useMemo((()=>({titleId:D})),[D]);return(0,yt.jsx)(ey,(0,ut.Z)({className:(0,ht.Z)(E.root,u),closeAfterTransition:!0,components:{Backdrop:JC},componentsProps:{backdrop:(0,ut.Z)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:h,onClose:v,open:_,ref:t,onClick:e=>{N.current&&(N.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:k},L,{children:(0,yt.jsx)(w,(0,ut.Z)({appear:!0,in:_,timeout:S,role:"presentation"},x,{children:(0,yt.jsx)(ty,{className:(0,ht.Z)(E.container),onMouseDown:e=>{N.current=e.target===e.currentTarget},ownerState:k,children:(0,yt.jsx)(ny,(0,ut.Z)({as:b,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},C,{className:(0,ht.Z)(E.paper,C.className),ownerState:k,children:(0,yt.jsx)(YC.Provider,{value:I,children:d})}))})}))}))})),oy=iy;function ry(e){return(0,bt.Z)("MuiDialogTitle",e)}const sy=(0,_t.Z)("MuiDialogTitle",["root"]),ay=["className","id"],ly=(0,vt.ZP)(Io,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),cy=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:r}=i,s=(0,dt.Z)(i,ay),a=i,l=(e=>{const{classes:t}=e;return(0,gt.Z)({root:["root"]},ry,t)})(a),{titleId:c=r}=n.useContext(YC);return(0,yt.jsx)(ly,(0,ut.Z)({component:"h2",className:(0,ht.Z)(l.root,o),ownerState:a,ref:t,variant:"h6",id:c},s))})),dy=cy;function uy(e){return(0,bt.Z)("MuiDialogContent",e)}(0,_t.Z)("MuiDialogContent",["root","dividers"]);const hy=["className","dividers"],gy=(0,vt.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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}`}:{[`.${sy.root} + &`]:{paddingTop:0}}))),py=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,r=(0,dt.Z)(n,hy),s=(0,ut.Z)({},n,{dividers:o}),a=(e=>{const{classes:t,dividers:n}=e,i={root:["root",n&&"dividers"]};return(0,gt.Z)(i,uy,t)})(s);return(0,yt.jsx)(gy,(0,ut.Z)({className:(0,ht.Z)(a.root,i),ownerState:s,ref:t},r))})),my=py;function fy(e){return(0,bt.Z)("MuiDialogActions",e)}(0,_t.Z)("MuiDialogActions",["root","spacing"]);const vy=["className","disableSpacing"],_y=(0,vt.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,ut.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),by=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,r=(0,dt.Z)(n,vy),s=(0,ut.Z)({},n,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:n}=e,i={root:["root",!n&&"spacing"]};return(0,gt.Z)(i,fy,t)})(s);return(0,yt.jsx)(_y,(0,ut.Z)({className:(0,ht.Z)(a.root,i),ownerState:s,ref:t},r))})),Cy=by;var yy=s(1599);function wy({model:e,show:t,close:i}){const[o,r]=(0,n.useState)(""),[s,a]=(0,n.useState)(null),[l,c]=(0,n.useState)([]),[d,u,h]=kc(),g=Ht(),p=(0,n.useCallback)((()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(i)}));return(0,n.useEffect)((()=>{if(!t)return;const n=()=>{e&&t&&e.getProperties().then((e=>{t&&r(JSON.stringify(e||{},null,2))}))};return e.on("changed",n),n(),()=>{e&&e.removeListener("changed",n)}}),[e&&e.id,t]),(0,n.useEffect)((()=>{if(!(d&&h&&u&&o))return;const{left:e,top:t,width:n,height:i}=u;if(0===e&&0===t&&0===n&&0===i)return;const r=yy.editor.create(h,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});r.layout({width:u.width,height:u.height});const s=r.onDidChangeModelDecorations((()=>{const e=yy.editor.getModelMarkers();c(e)}));return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}}),[h,u,o]),n.createElement(oy,{disableEscapeKeyDown:!0,open:t,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}}},n.createElement(dy,null,"Modify object properties"),n.createElement(my,{dividers:!0},n.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),n.createElement(Cy,null,n.createElement(wa,{variant:"contained",onClick:i},"Cancel"),n.createElement(wa,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const Sy=n.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),xy=n.createContext();function Ly({id:e,onLoad:t}){const i=(0,n.useContext)(xy),o=(0,n.useRef)();return(0,n.useEffect)((()=>{const n=i.render({id:e,element:o.current});return n.then((e=>{t(e,o.current)})),()=>{n.then((e=>{e.destroy()}))}}),[e]),n.createElement("div",{ref:o,style:{height:"100%"}})}const ky="Cell-secondaryIcon",Ey="Cell-drop",Ny=(0,vt.ZP)(So)((({theme:e})=>({[`& .${ky}`]:{color:e.palette.text.secondary},[`& .${Ey}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function Dy({id:e,expandable:t,minHeight:i}){const o=(0,n.useContext)(C_),[r,s]=(0,n.useState)(null),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(null),{currentThemeName:u,activeViz:h,setActiveViz:g,setExpandedObject:p,expandedObject:m}=(0,n.useContext)(Sy),f=m===e,v=(0,n.useRef)();(0,n.useEffect)((()=>{const t=o.getObject(e).then((e=>(s(e),e)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[_,b]=(0,n.useState)(!1),C=(0,n.useCallback)((()=>{b(!1)}),[]),y=(0,n.useCallback)(((e,t)=>{v.current={viz:e,el:t},d(e)}),[e]),w=(0,n.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)}`)}))}}),[r,u]),S=!f&&v.current&&h&&h===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=h===c;return n.createElement(Ny,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"}},n.createElement(So,{item:!0},n.createElement(Uv,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},n.createElement(wy,{model:r,show:_,close:C}),n.createElement(uo,{title:"Modify object properties",className:ky,disabled:!r,onClick:()=>b(!0),size:"large"},lr({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"}}]})),n.createElement(uo,{title:"Open in single render view",className:ky,disabled:!r,href:r?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${r.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large"},lr({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"}}]})),n.createElement(uo,{title:"Take and render as snapshot",className:ky,disabled:!r,onClick:()=>w(),size:"large"},lr({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?n.createElement(Ua,{size:24}):n.createElement(uo,{title:"Export as image",className:ky,disabled:!r,onClick:()=>w(!0),size:"large"},lr({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"}}]})),n.createElement(So,{item:!0,xs:!0}),t&&n.createElement(uo,{title:"Edit",className:ky,disabled:!c||x,onClick:()=>g(c),size:"large"},lr({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&&n.createElement(uo,{title:"Expand",disabled:!r||!c,className:ky,onClick:()=>{f?p(null):(p(e),g(c))},size:"large"},lr({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"}}]})))),n.createElement(So,{item:!0,xs:!0,style:{...S},className:Ey},n.createElement(Ly,{id:e,onLoad:y})))}function Iy({info:e,storage:t,uid:i}){const o=(0,n.useContext)(xy),{activeViz:r,setActiveViz:s}=(0,n.useContext)(Sy),[a]=b_(i);return(0,n.useEffect)((()=>{if(!i)return;const n=o.render({type:e.supernova.name,properties:{...!1!==t.get("readFromCache")?t.props(e.supernova.name):{},qInfo:{qId:i,qType:e.supernova.name}}});return n.then((e=>{s(e)})),()=>{n.then((e=>e.destroy()))}}),[i]),(0,n.useEffect)((()=>{a&&t.props(e.supernova.name,a)}),[a]),r&&r.id===i?n.createElement(So,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},n.createElement(So,{item:!0,xs:!0},n.createElement(Dy,{id:i}))):null}function qy({types:e,cache:t}){const i=(0,n.useContext)(C_),[o]=uc(i),[r,s]=(0,n.useState)(null),{expandedObject:a}=(0,n.useContext)(Sy);if((0,n.useEffect)((()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then((e=>{s(e.slice(0,20))}))}),[o,e.join(":")]),!r)return null;const l=a?r.filter((e=>e.qInfo.qId===a)):r;return n.createElement(So,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>n.createElement(So,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${t}`},n.createElement(Dy,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):n.createElement(So,{item:!0},n.createElement("div",null,n.createElement(Io,{display:"inline"},"Could not find any components with "),n.createElement(Io,{display:"inline"},n.createElement("code",null,`qType: "${e[0]}"`)),n.createElement(Io,{display:"inline"}," in the current app"))))}const Ry=["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"];function Oy(){const e=(0,n.useRef)(),t=K(),{info:i}=tt(),{waiting:o,app:r}=(({info:e})=>{const[t,i]=(0,n.useState)(null),[o,r]=(0,n.useState)(!0);(0,n.useEffect)((()=>{r(!0),e&&s().then((e=>i(e))).catch((e=>console.log(e))).finally((()=>r(!1)))}),[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:n,enigma:i=null,enigma:{host:o}={}}=e;let r="";if(n){const t=await et({webIntegrationId:n,host:o});r=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/getSocketUrl/${e?.enigma.appId}`)).json();r=t}else r=ge().buildUrl(i);return(await de().create({schema:ue,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:t,setApp:i}})({info:i}),s=(0,n.useMemo)((()=>rt(r)),[r]),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[u,h]=(0,n.useState)(null),[g,p]=(0,n.useState)(s.get("themeName")),[m,f]=(0,n.useState)(s.get("language")||"en-US"),[v,_]=(0,n.useState)("light"),[b,C]=(0,n.useState)(!0===s.get("objectListMode")),y=(0,n.useRef)(null),[w,S]=(0,n.useState)(),[x,L]=n.useState(null),[k,E]=n.useState(null),[N,D]=(0,n.useState)(null),I=Array.isArray(i?.themes)&&i.themes.length?["light","dark",...i.themes]:[],q=(0,n.useMemo)((()=>bn(v)),[v]),R=(0,n.useMemo)((()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d})),[a,c,g]);(0,n.useEffect)((()=>{i&&function(e){const t=()=>{v_(e.supernova.name,e.supernova.url).then((t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,__[n]&&__[n].forEach((e=>e()))})),e.types&&e.types.forEach((e=>{v_(e.name,e.url).then((t=>{window[e.name]=t}))}))};e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t()}(i)}),[i]),(0,n.useEffect)((()=>{if(o)return;const e=Cv(r,{context:{theme:g,language:m,keyboardNavigation:i?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:i?.flags,themes:i?.themes?i?.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(i?.supernova),i?.types&&i?.types.forEach((t=>{e.__DO_NOT_USE__.types.register(t)})),D(e)}),[r,i,o]),(0,n.useLayoutEffect)((()=>{N&&(N.context({theme:g}),"light"!==g&&"dark"!==g||_(g))}),[N,g]),(0,n.useEffect)((()=>{N&&(N.selections().then((e=>e.mount(y.current))),window.onHotChange(i?.supernova.name,(()=>{N.__DO_NOT_USE__.types.clearFromCache(i?.supernova.name),N.__DO_NOT_USE__.types.register(i?.supernova),O(),N.__DO_NOT_USE__.types.get({name:i?.supernova.name}).supernova().then(h)})),O())}),[N,i]),(0,n.useEffect)((()=>{const t=()=>{r&&r.destroySessionObject(e.current)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[r]);const O=()=>{window[i?.supernova.name]&&(e.current=String(Date.now()),S(e.current))};return n.createElement(C_.Provider,{value:r},n.createElement(en,{injectFirst:!0},n.createElement(Xt,{theme:q},n.createElement(xy.Provider,{value:N},n.createElement(So,{container:!0,wrap:"nowrap",direction:"column",style:{background:q.palette.background.darkest,height:"100%"},gap:0},n.createElement(So,{item:!0},n.createElement(Uv,{variant:"dense",style:{background:q.palette.background.paper,boxShadow:q.shadows[1]}},n.createElement(So,{container:!0,gap:1},n.createElement(So,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(So,{item:!0},n.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},n.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"}})))),n.createElement(So,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(uo,{title:"Home",onClick:()=>t("/"),size:"large"},n.createElement(Mv.Z,{style:{verticalAlign:"middle"}}))),n.createElement(So,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(bs,{value:b?1:0,onChange:(e,t)=>{const n=1===t;s.save("objectListMode",n),n&&(l(null),d(null)),C(n)},"aria-label":"Navigation"},n.createElement(Ls,{label:n.createElement(Io,null,"Create"),value:0}),n.createElement(Ls,{label:n.createElement(Io,null,"Edit"),value:1}))),n.createElement(So,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(So,{item:!0},I.length?n.createElement(n.Fragment,null,n.createElement(uo,{title:"Select theme",onClick:e=>L(e.currentTarget),size:"large"},n.createElement(Pv.Z,{fontSize:"small"})),n.createElement(t_,{anchorEl:x,open:!!x,keepMounted:!0,onClose:()=>L(null)},I.map((e=>n.createElement(tg,{key:e,selected:e===g,onClick:()=>(e=>{L(null),s.save("themeName",e),p(e)})(e)},e))))):n.createElement(uo,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?n.createElement(Fv.Z,{fontSize:"small"}):n.createElement(Bv.Z,{fontSize:"small"}))),n.createElement(So,{item:!0},n.createElement(wa,{startIcon:n.createElement(Vv.Z,null),title:"Select language",onClick:e=>E(e.currentTarget)},m),n.createElement(t_,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},Ry.map((e=>n.createElement(tg,{key:e,selected:e===m,onClick:()=>{return t=e,E(null),s.save("language",t),f(t),void N.context({language:t});var t}},e))))))))),n.createElement(So,{item:!0,style:{padding:q.spacing(1,1,0,1)}},n.createElement("div",{ref:y,style:{flex:"0 0 auto",boxShadow:q.shadows[1]}})),n.createElement(So,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:q.spacing(0,1,1,1)}},n.createElement(Sy.Provider,{value:R},u?n.createElement(So,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},n.createElement(So,{item:!0,xs:!0,zeroMinWidth:!0},b?n.createElement(qy,{cache:w,types:[i?.supernova.name]}):n.createElement(Iy,{info:i,storage:s,uid:w})),a&&n.createElement(So,{item:!0,style:{background:q.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:q.shadows[1],padding:0}},n.createElement(GC,{sn:u,viz:a,isTemp:!b,storage:s,flags:i?.flags}))):n.createElement(So,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},n.createElement(So,{item:!0},n.createElement(Ua,null))))))))))}const Ty=()=>n.createElement(le,null,n.createElement(ct,null,n.createElement(se,null,n.createElement(oe,{element:n.createElement(mi,null)},n.createElement(oe,{path:"/",element:n.createElement(qa,null)}),n.createElement(oe,{path:"/app-list",element:n.createElement($a,null)})),n.createElement(oe,{path:"/dev",element:n.createElement(Oy,null)}))));o.s(document.querySelector("#app")).render(n.createElement(Ty,null))})()})();
|
|
102
|
+
`),Va))),ja=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,u=(0,dt.Z)(n,Oa),h=(0,ut.Z)({},n,{color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,r={root:["root",n,`color${(0,Ft.Z)(i)}`],svg:["svg"],circle:["circle",`circle${(0,Ft.Z)(n)}`,o&&"circleDisableShrink"]};return(0,gt.Z)(r,Ra,t)})(h),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,yt.jsx)(Wa,(0,ut.Z)({className:(0,ht.Z)(g.root,i),style:(0,ut.Z)({width:s,height:s},m,a),ownerState:h,ref:t,role:"progressbar"},f,u,{children:(0,yt.jsx)(za,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,yt.jsx)(Ha,{className:g.circle,style:p,ownerState:h,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))})),Ua=ja,$a=()=>{const e=K(),t=$(),{info:i,glob:o,treatAsDesktop:r}=lt(),{loading:s,appList:a}=(({glob:e,info:t})=>{const i=K(),{setInfo:o,setActiveStep:r}=lt(),[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{r(1),Je().then((e=>{o(e)}))}),[]),(0,n.useEffect)((()=>{if(s?.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),i(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:s,loading:l}})({glob:o,info:i});return n.createElement(di,null,n.createElement(Io,{variant:"h5",gutterBottom:!0},"Select an app"),s&&n.createElement(Ua,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&n.createElement(Io,{component:"span"},"No apps found!"),a&&a.length>0&&n.createElement(mr,null,a.map((o=>n.createElement(Rr,{button:!0,component:"a",key:o.qDocId,onClick:()=>(({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,r=`${i.enigma.secure?"wss":"ws"}://${"localhost"===i.enigma.host?`${i.enigma.host}:${i.enigma.port}`:i.enigma.host}/app/${encodeURIComponent(n)}`;e(`/dev/${o.replace(i.engineUrl,r)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:t,targetApp:r?o.qDocName:o.qDocId})},n.createElement(Fr,{primary:o.qTitle,secondary:o.qDocId}))))))};s(16595);const Ka=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let i=e;const o={language:e=>(e&&(i=e),i),add:e=>{const{id:t,locale:i}=e;Object.keys(i).forEach((e=>{n[e]||(n[e]={}),n[e][t]=i[e]}))},get(e,o){let r;return r=n[i]&&void 0!==n[i][e]?n[i][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))})(r,o):r}};return o}({initial:e,fallback:t});return{translator:n}},Ga=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_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_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_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 esistono corrispondenze per la 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_ScreenReaderInstructions":{"id":"Listbox.ScreenReaderInstructions","locale":{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L\'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L\'attivazione degli elementi sottostanti causerà l\'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},"Listbox_Search":{"id":"Listbox.Search","locale":{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},"Listbox_Search_ScreenReaderInstructions":{"id":"Listbox.Search.ScreenReaderInstructions","locale":{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},"Listbox_Unlock":{"id":"Listbox.Unlock","locale":{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},"Menu_More":{"id":"Menu.More","locale":{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},"Navigate_Back":{"id":"Navigate.Back","locale":{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},"Navigate_Forward":{"id":"Navigate.Forward","locale":{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},"OK":{"id":"OK","locale":{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},"Object_Update_Active":{"id":"Object.Update.Active","locale":{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},"Object_Update_Cancelled":{"id":"Object.Update.Cancelled","locale":{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},"Retry":{"id":"Retry","locale":{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},"Selection_Cancel":{"id":"Selection.Cancel","locale":{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},"Selection_Clear":{"id":"Selection.Clear","locale":{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},"Selection_ClearAll":{"id":"Selection.ClearAll","locale":{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},"Selection_ClearAllStates":{"id":"Selection.ClearAllStates","locale":{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},"Selection_Confirm":{"id":"Selection.Confirm","locale":{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},"Selection_Menu":{"id":"Selection.Menu","locale":{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":"Меню \\"Выборка\\"","sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},"Selection_SelectAll":{"id":"Selection.SelectAll","locale":{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},"Selection_SelectAlternative":{"id":"Selection.SelectAlternative","locale":{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},"Selection_SelectExcluded":{"id":"Selection.SelectExcluded","locale":{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},"Selection_SelectPossible":{"id":"Selection.SelectPossible","locale":{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},"Visualization_Incomplete":{"id":"Visualization.Incomplete","locale":{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},"Visualization_Incomplete_Dimensions":{"id":"Visualization.Incomplete.Dimensions","locale":{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},"Visualization_Incomplete_Measures":{"id":"Visualization.Incomplete.Measures","locale":{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},"Visualization_Invalid_Dimension":{"id":"Visualization.Invalid.Dimension","locale":{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},"Visualization_Invalid_Measure":{"id":"Visualization.Invalid.Measure","locale":{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},"Visualization_LayoutError":{"id":"Visualization.LayoutError","locale":{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},"Visualization_UnfulfilledCalculationCondition":{"id":"Visualization.UnfulfilledCalculationCondition","locale":{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}}');var Za=s(25476),Qa=s.n(Za);function Ya(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Xa(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Ja(){}var el=.7,tl=1/el,nl="\\s*([+-]?\\d+)\\s*",il="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ol="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rl=/^#([0-9a-f]{3,8})$/,sl=new RegExp(`^rgb\\(${nl},${nl},${nl}\\)$`),al=new RegExp(`^rgb\\(${ol},${ol},${ol}\\)$`),ll=new RegExp(`^rgba\\(${nl},${nl},${nl},${il}\\)$`),cl=new RegExp(`^rgba\\(${ol},${ol},${ol},${il}\\)$`),dl=new RegExp(`^hsl\\(${il},${ol},${ol}\\)$`),ul=new RegExp(`^hsla\\(${il},${ol},${ol},${il}\\)$`),hl={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 gl(){return this.rgb().formatHex()}function pl(){return this.rgb().formatRgb()}function ml(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rl.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?fl(t):3===n?new Cl(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?vl(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?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=sl.exec(e))?new Cl(t[1],t[2],t[3],1):(t=al.exec(e))?new Cl(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ll.exec(e))?vl(t[1],t[2],t[3],t[4]):(t=cl.exec(e))?vl(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dl.exec(e))?kl(t[1],t[2]/100,t[3]/100,1):(t=ul.exec(e))?kl(t[1],t[2]/100,t[3]/100,t[4]):hl.hasOwnProperty(e)?fl(hl[e]):"transparent"===e?new Cl(NaN,NaN,NaN,0):null}function fl(e){return new Cl(e>>16&255,e>>8&255,255&e,1)}function vl(e,t,n,i){return i<=0&&(e=t=n=NaN),new Cl(e,t,n,i)}function _l(e){return e instanceof Ja||(e=ml(e)),e?new Cl((e=e.rgb()).r,e.g,e.b,e.opacity):new Cl}function bl(e,t,n,i){return 1===arguments.length?_l(e):new Cl(e,t,n,null==i?1:i)}function Cl(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function yl(){return`#${Ll(this.r)}${Ll(this.g)}${Ll(this.b)}`}function wl(){const e=Sl(this.opacity);return`${1===e?"rgb(":"rgba("}${xl(this.r)}, ${xl(this.g)}, ${xl(this.b)}${1===e?")":`, ${e})`}`}function Sl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ll(e){return((e=xl(e))<16?"0":"")+e.toString(16)}function kl(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Nl(e,t,n,i)}function El(e){if(e instanceof Nl)return new Nl(e.h,e.s,e.l,e.opacity);if(e instanceof Ja||(e=ml(e)),!e)return new Nl;if(e instanceof Nl)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Nl(s,a,l,e.opacity)}function Nl(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Dl(e){return(e=(e||0)%360)<0?e+360:e}function Il(e){return Math.max(0,Math.min(1,e||0))}function ql(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ya(Ja,ml,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:gl,formatHex:gl,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return El(this).formatHsl()},formatRgb:pl,toString:pl}),Ya(Cl,bl,Xa(Ja,{brighter(e){return e=null==e?tl:Math.pow(tl,e),new Cl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?el:Math.pow(el,e),new Cl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cl(xl(this.r),xl(this.g),xl(this.b),Sl(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:yl,formatHex:yl,formatHex8:function(){return`#${Ll(this.r)}${Ll(this.g)}${Ll(this.b)}${Ll(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wl,toString:wl})),Ya(Nl,(function(e,t,n,i){return 1===arguments.length?El(e):new Nl(e,t,n,null==i?1:i)}),Xa(Ja,{brighter(e){return e=null==e?tl:Math.pow(tl,e),new Nl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?el:Math.pow(el,e),new Nl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new Cl(ql(e>=240?e-240:e+120,o,i),ql(e,o,i),ql(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Nl(Dl(this.h),Il(this.s),Il(this.l),Sl(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=Sl(this.opacity);return`${1===e?"hsl(":"hsla("}${Dl(this.h)}, ${100*Il(this.s)}%, ${100*Il(this.l)}%${1===e?")":`, ${e})`}`}}));var Rl=s(34415),Ol=s.n(Rl);const Tl=JSON.parse('{"fontSize":"13px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"scales":[{"name":"Sequential Gradient","translation":"properties.colorScheme.sequential","type":"gradient","propertyValue":"sg","scale":["#26a0a7","#c7ea8b"]},{"name":"Sequential Classes","translation":"properties.colorScheme.sequentialC","propertyValue":"sc","type":"class","scale":["#26a0a7","#c7ea8b"]},{"name":"Diverging gradient","translation":"properties.colorScheme.diverging","propertyValue":"dg","type":"gradient","scale":["#26a0a7","#c3ea8c","#ec983d"]},{"name":"Diverging Classes","translation":"properties.colorScheme.divergingC","propertyValue":"dc","type":"class","scale":["#26a0a7","#c3ea8c","#ec983d"]}],"palettes":{"data":[{"name":"12 Colors","translation":"properties.colorNumberOfColors.12","propertyValue":"12","type":"pyramid","scale":[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],"ui":[{"name":"Palette","colors":["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}}'),Al=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"}'),Ml=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"}');function Pl(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function Fl(e,t,n){const i=[],o=new class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ml(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([ml(e),ml(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const i=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(i);o=o===i?o-1:o;const r=this.colorParts[t][o],s=r[0],a=r[1];if(e===this.min)return a;if(e===this.max)return s;const l=function(e,t,n){return bl(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(s,a,i-o);return l}}(t);i.push(e[0]),n||i.push(e[0]);let r=1;for(;r<e.length-1;r++)i.push(e[r]),i.push(e[r]);i.push(e[r]),n||i.push(e[r]);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function Bl(e,t,n){const i=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const i=Pl(1/t*o,t,n);r=e.getColor(i);break}}i.push(ml(r).formatHex())}return i}function Vl(e,t){const n=[];let i,o;if(e){let r=e.length;for(;r>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),r--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function Wl(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function zl(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=Vl(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=Wl(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function Hl(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?Hl(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function jl(e){const t=ml(e).rgb(),{r:n,g:i,b:o}=t,[r,s,a]=[n,i,o].map((e=>e/255)),[l,c,d]=[r,s,a].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*d).toFixed(5)}function Ul(){let e,t,n,i={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(i[t]||(i[t]=zl(t,e)),i[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^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(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const i=ml(...e);return i?i.toString():void 0}},r={setTheme(r,s){e=function(e,t){const n="dark"===e.type?Ml:Al,i=Ol()(!0,{},Tl,n),o=Ol()(!0,{},i,{scales:null,palettes:{data:null,ui:null}},e);return o.palettes.data&&o.palettes.data.length||(o.palettes.data=i.palettes.data),o.palettes.ui&&o.palettes.ui.length||(o.palettes.ui=i.palettes.ui),o.scales&&o.scales.length||(o.scales=i.scales),t(o)}(r,zl.resolveRawTheme),i={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const a=o.getStyle("","","color"),l=jl(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(jl);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const r=jl(o),s=i.map((e=>{return t=r,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),a=e[s.indexOf(Math.max(...s))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(Qa().prototype).forEach((e=>{o[e]=Qa().prototype[e]})),Qa().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}zl.resolveRawTheme=e=>{const t=Ol()(!0,{},e);return Hl(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const i=Fl(e,n,!0),o=Fl(Bl(i,t-1,t),n,!1),r=[null];for(let e=0;e<t;e++)r.push(Bl(o,e,t));return r}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const $l=n.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),Kl=(e={},t=(()=>{}))=>{const i=e,o=[],r={get:e=>i[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return i[e]=n,t({type:"SET",value:n}),n},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);i[e]=null},dispatch:e=>{o.forEach((t=>t(e?{}:i)))}};return[()=>{const[,e]=(0,n.useState)(i);return(0,n.useEffect)((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[r]},r]},[Gl,Zl]=Kl({}),[Ql,Yl]=Kl({}),[Xl,Jl]=Kl({}),[ec,tc]=Kl({}),[nc,ic]=Kl({}),[,oc]=Kl({}),rc=({type:e,value:t})=>{const n=oc.get(t.id);oc.set(t.id,{});const i=()=>{Yl.clear(t.id),ic.set(t.id,{}),ic.dispatch(!0)},o=()=>{t.removeListener("changed",i),Zl.clear(t.id),Yl.clear(t.id),Jl.clear(t.id),tc.clear(t.id),ic.clear(t.id),oc.clear(t.id)};return"SET"===e&&(n||(t.on("changed",i),t.once("closed",(()=>{o()})))),o},[sc,ac]=Kl({},rc),lc=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let r;switch(t.type){case"INVALID":r={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":r={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":r={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let s=n.get(i);return s||(s={}),s[o]=r,n.set(i,s),r};function cc(e,t){const i=e?`${e.id}`:null,[o]=Gl(),[r,s]=(0,n.useReducer)(lc,i?o.get(i):null),[a]=nc(),[l]=Ql();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async n=>{let r=c[t];(!r||r&&r.rpcRetry)&&(r={rpc:e[t](),rpcRetry:!1},c[t]=r,s({type:"INVALID",method:t,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{const n=await r.rpc;s({type:"VALID",result:n,key:i,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||n||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},u={cancel:async()=>{const n=e.session.getObjectApi({handle:-1});await n.cancelRequest(c[t].rpc.requestId),s({type:"CANCELLED",key:i,method:t,model:e,rpcResultStore:o})},retry:()=>{c[t].rpcRetry=!0,d()}};return(0,n.useEffect)((()=>{e&&d()}),[e,a.get(e&&e.id),i,t]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},u]}function dc(e){return cc(e,"getLayout")}function uc(e){return cc(e,"getAppLayout")}function hc(e,t,...i){const o=t?`${t.id}/${JSON.stringify(e)}`:null,[r]=sc(),[s]=Xl(),[a,l]=(0,n.useState)();let c;return o&&(c=s.get(o)),(0,n.useEffect)((()=>{t&&(async()=>{if(!c){const n=t.createSessionObject(e);c=n,s.set(o,c)}const n=await c;r.set(o,n),l(n)})()}),[t,...i]),[a]}const gc={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function pc(e){return hc(gc,e)}function mc(e){const[t]=pc(e),[i]=dc(t),[o]=uc(e),[r,s]=(0,n.useState)(null);return(0,n.useEffect)((()=>{o&&t&&i&&((e,t,n)=>{const i=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(i)}],!0)})(t,i,o)}),[o,t,i]),(0,n.useEffect)((()=>{if(!i)return;let e=!1,t=!1,n=!1;[i,...i.alternateStates||[]].forEach((i=>{e=e||i.qSelectionObject&&i.qSelectionObject.qBackCount>0,t=t||i.qSelectionObject&&i.qSelectionObject.qForwardCount>0,n=n||(i.qSelectionObject&&i.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[i]),[r,t,i]}const[fc,vc]=Kl({}),[_c,bc]=Kl({}),[Cc,yc]=Kl({}),[wc,Sc]=Kl({});function xc(e){if(!e.session)return[];const[t,i,o]=mc(e),[r]=fc(),s=e?e.id:null;let a=r.get(s);return(0,n.useEffect)((()=>{e&&i&&o&&t&&!a&&(a=function({app:e,currentSelectionsLayout:t,navState:n}){const i=`${e.id}`,o=async(e=!0)=>{const t=Sc.get(i);t&&(await t.endSelections(e),Sc.clear(i),yc.get(t.id).emit("deactivated"))},r={begin:async(t,n,r=!0)=>{if(t===Sc.get(i))return;o(r),Sc.set(i,t);const s=Array.isArray(n)?n:[n],a=async n=>{try{await t.beginSelections(s),Sc.set(i,t)}catch(t){6003!==t.code||n?Sc.clear(i):(await e.abortModal(r),a(!0))}};await a()},end:o};return bc.set(i,r),{model:e,isInModal:()=>!!Sc.get(i),isModal:e=>e?Sc.get(i)===e:!!Sc.get(i),canGoForward:()=>n.canGoForward,canGoBack:()=>n.canGoBack,canClear:()=>n.canClear,layout:()=>t,forward:()=>r.end().then((()=>e.forward())),back:()=>r.end().then((()=>e.back())),clear:()=>r.end().then((()=>e.clearAll())),clearField:(t,n="$")=>r.end().then((()=>e.getField(t,n).then((e=>e.clear()))))}}({app:e,currentSelectionsLayout:o,navState:t}),r.set(s,a),r.dispatch(!0))}),[e,i,o,t]),[a,t]}const Lc=(0,n.forwardRef)((({initialContext:e,app:t},i)=>{const[o]=xc(t),[r,s]=(0,n.useState)(e),[a,l]=(0,n.useState)(),{theme:c}=(0,n.useMemo)((()=>({theme:bn(a)})),[a]),[d,u]=(0,n.useState)([]);return(0,n.useImperativeHandle)(i,(()=>({addComponent(e){u([...d,e])},removeComponent(e){const t=d.indexOf(e);-1!==t&&(d.splice(t,1),u([...d]))},setMuiThemeName:l,setContext:s,getAppSelections:()=>o}))),n.createElement(en,{injectFirst:!0},n.createElement(Xt,{theme:c},n.createElement($l.Provider,{value:r},d)))}));function kc(){const[e,t]=(0,n.useState)(),[i,o]=(0,n.useState)(),r=(0,n.useCallback)((e=>{e&&t(e)}),[]),s=()=>{const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:r})};return(0,n.useLayoutEffect)((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(s);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}}),[e]),[r,i,e]}const Ec=e=>lr((e=>({...e,shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e)),Nc=e=>lr((e=>({...e,shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e)),Dc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ic(e){return`scale(${e}, ${e**2})`}const qc={entering:{opacity:1,transform:Ic(1)},entered:{opacity:1,transform:"none"}},Rc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Oc=n.forwardRef((function(e,t){const{addEndListener:i,appear:o=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:h,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=Go}=e,v=(0,dt.Z)(e,Dc),_=n.useRef(),b=n.useRef(),C=Ht(),y=n.useRef(null),w=(0,_i.Z)(y,r.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},x=S(d),L=S(((e,t)=>{Qo(e);const{duration:n,delay:i,easing:o}=Yo({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=n,e.style.transition=[C.transitions.create("opacity",{duration:r,delay:i}),C.transitions.create("transform",{duration:Rc?r:.666*r,delay:i,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(g),N=S((e=>{const{duration:t,delay:n,easing:i}=Yo({style:p,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:n}),C.transitions.create("transform",{duration:Rc?o:.666*o,delay:Rc?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Ic(.75),u&&u(e)})),D=S(h);return n.useEffect((()=>()=>{clearTimeout(_.current)}),[]),(0,yt.jsx)(f,(0,ut.Z)({appear:o,in:a,nodeRef:y,onEnter:L,onEntered:k,onEntering:x,onExit:N,onExited:D,onExiting:E,addEndListener:e=>{"auto"===m&&(_.current=setTimeout(e,b.current||0)),i&&i(y.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>n.cloneElement(r,(0,ut.Z)({style:(0,ut.Z)({opacity:0,transform:Ic(.75),visibility:"exited"!==e||a?void 0:"hidden"},qc[e],p,r.props.style),ref:w},t))}))}));Oc.muiSupportAuto=!0;const Tc=Oc;var Ac=s(67653),Mc=s(69781),Pc=s(24784),Fc=s(44068);const Bc=n.forwardRef((function(e,t){const{children:i,container:o,disablePortal:r=!1}=e,[s,a]=n.useState(null),l=(0,Vs.Z)(n.isValidElement(i)?i.ref:null,t);if((0,Hs.Z)((()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),(0,Hs.Z)((()=>{if(s&&!r)return(0,Fc.Z)(t,s),()=>{(0,Fc.Z)(t,null)}}),[t,s,r]),r){if(n.isValidElement(i)){const e={ref:l};return n.cloneElement(i,e)}return(0,yt.jsx)(n.Fragment,{children:i})}return(0,yt.jsx)(n.Fragment,{children:s?Vo.createPortal(i,s):s})}));function Vc(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Wc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zc(e){return parseInt((0,Ws.Z)(e).getComputedStyle(e).paddingRight,10)||0}function Hc(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,(e=>{const t=-1===r.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Wc(e,o)}))}function jc(e,t){let n=-1;return e.some(((e,i)=>!!t(e)&&(n=i,!0))),n}const Uc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $c(e){const t=[],n=[];return Array.from(e.querySelectorAll(Uc)).forEach(((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Kc(){return!0}const Gc=function(e){const{children:t,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=$c,isEnabled:a=Kc,open:l}=e,c=n.useRef(!1),d=n.useRef(null),u=n.useRef(null),h=n.useRef(null),g=n.useRef(null),p=n.useRef(!1),m=n.useRef(null),f=(0,Vs.Z)(t.ref,m),v=n.useRef(null);n.useEffect((()=>{l&&m.current&&(p.current=!i)}),[i,l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,Ac.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{r||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}}),[l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,Ac.Z)(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!o&&a()&&!c.current){if(!n.contains(e.activeElement)){if(t&&g.current!==t.target||e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let o=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(o=s(m.current)),o.length>0){var i,r;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(r=v.current)?void 0:r.key)),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else c.current=!1},n=t=>{v.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[i,o,r,a,l,s]);const _=e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0};return(0,yt.jsxs)(n.Fragment,{children:[(0,yt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:f,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0,g.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,yt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:u,"data-testid":"sentinelEnd"})]})};function Zc(e){return(0,bt.Z)("MuiModal",e)}function Qc(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Qc(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}(0,_t.Z)("MuiModal",["root","hidden"]);const Yc=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Qc(e))&&(i&&(i+=" "),i+=t);return i};function Xc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Jc(e,t){return"function"==typeof e?e(t):e}const ed=["elementType","externalSlotProps","ownerState"];function td(e){var t;const{elementType:n,externalSlotProps:i,ownerState:o}=e,r=Bs(e,ed),s=Jc(i,o),{props:a,internalRef:l}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:r}=e;if(!t){const e=Yc(null==o?void 0:o.className,null==i?void 0:i.className,r,null==n?void 0:n.className),t=Fs({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),s=Fs({},n,o,i);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(Fs({},o,i)),a=Xc(i),l=Xc(o),c=t(s),d=Yc(null==c?void 0:c.className,null==n?void 0:n.className,r,null==o?void 0:o.className,null==i?void 0:i.className),u=Fs({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),h=Fs({},c,n,l,a);return d.length>0&&(h.className=d),Object.keys(u).length>0&&(h.style=u),{props:h,internalRef:c.ref}}(Fs({},r,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||fr(e)?t:Fs({},t,{ownerState:Fs({},t.ownerState,n)})}(n,Fs({},a,{ref:(0,Vs.Z)(l,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const nd=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],id=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Wc(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Hc(t,e.mount,e.modalRef,i,!0);const o=jc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=jc(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];i.restore||(i.restore=function(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Ac.Z)(e);return t.body===e?(0,Ws.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=Vc((0,Ac.Z)(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${zc(i)+e}px`;const t=(0,Ac.Z)(i).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${zc(t)+e}px`}))}let e;if(i.parentNode instanceof DocumentFragment)e=(0,Ac.Z)(i).body;else{const t=i.parentElement,n=(0,Ws.Z)(i);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=jc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Wc(e.modalRef,t),Hc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Wc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},od=n.forwardRef((function(e,t){var i,o;const{children:r,classes:s,closeAfterTransition:a=!1,component:l,container:c,disableAutoFocus:d=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:p=!1,disableScrollLock:m=!1,hideBackdrop:f=!1,keepMounted:v=!1,manager:_=id,onBackdropClick:b,onClose:C,onKeyDown:y,open:w,onTransitionEnter:S,onTransitionExited:x,slotProps:L={},slots:k={}}=e,E=Bs(e,nd),[N,D]=n.useState(!w),I=n.useRef({}),q=n.useRef(null),R=n.useRef(null),O=(0,Vs.Z)(R,t),T=function(e){return!!e&&e.props.hasOwnProperty("in")}(r),A=null==(i=e["aria-hidden"])||i,M=()=>(I.current.modalRef=R.current,I.current.mountNode=q.current,I.current),P=()=>{_.mount(M(),{disableScrollLock:m}),R.current&&(R.current.scrollTop=0)},F=(0,Mc.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(c)||(0,Ac.Z)(q.current).body;_.add(M(),e),R.current&&P()})),B=n.useCallback((()=>_.isTopModal(M())),[_]),V=(0,Mc.Z)((e=>{q.current=e,e&&R.current&&(w&&B()?P():Wc(R.current,A))})),W=n.useCallback((()=>{_.remove(M(),A)}),[_,A]);n.useEffect((()=>()=>{W()}),[W]),n.useEffect((()=>{w?F():T&&a||W()}),[w,W,T,a,F]);const z=Fs({},e,{classes:s,closeAfterTransition:a,disableAutoFocus:d,disableEnforceFocus:u,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:p,disableScrollLock:m,exited:N,hideBackdrop:f,keepMounted:v}),H=(e=>{const{open:t,exited:n,classes:i}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,gt.Z)(o,Zc,i)})(z),j={};void 0===r.props.tabIndex&&(j.tabIndex="-1"),T&&(j.onEnter=(0,Pc.Z)((()=>{D(!1),S&&S()}),r.props.onEnter),j.onExited=(0,Pc.Z)((()=>{D(!0),x&&x(),a&&W()}),r.props.onExited));const U=null!=(o=null!=l?l:k.root)?o:"div",$=td({elementType:U,externalSlotProps:L.root,externalForwardedProps:E,additionalProps:{ref:O,role:"presentation",onKeyDown:e=>{y&&y(e),"Escape"===e.key&&B()&&(h||(e.stopPropagation(),C&&C(e,"escapeKeyDown")))}},className:H.root,ownerState:z}),K=k.backdrop,G=td({elementType:K,externalSlotProps:L.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(b&&b(e),C&&C(e,"backdropClick"))},open:w},className:H.backdrop,ownerState:z});return v||w||T&&!N?(0,yt.jsx)(Bc,{ref:V,container:c,disablePortal:g,children:(0,yt.jsxs)(U,Fs({},$,{children:[!f&&K?(0,yt.jsx)(K,Fs({},G)):null,(0,yt.jsx)(Gc,{disableEnforceFocus:u,disableAutoFocus:d,disableRestoreFocus:p,isEnabled:B,open:w,children:n.cloneElement(r,j)})]}))}):null})),rd=od,sd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ad={entering:{opacity:1},entered:{opacity:1}},ld=n.forwardRef((function(e,t){const i=Ht(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:u,onEntering:h,onExit:g,onExited:p,onExiting:m,style:f,timeout:v=o,TransitionComponent:_=Go}=e,b=(0,dt.Z)(e,sd),C=n.useRef(null),y=(0,_i.Z)(C,a.ref,t),w=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},S=w(h),x=w(((e,t)=>{Qo(e);const n=Yo({style:f,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",n),e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)})),L=w(u),k=w(m),E=w((e=>{const t=Yo({style:f,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)})),N=w(p);return(0,yt.jsx)(_,(0,ut.Z)({appear:s,in:c,nodeRef:C,onEnter:x,onEntered:L,onEntering:S,onExit:E,onExited:N,onExiting:k,addEndListener:e=>{r&&r(C.current,e)},timeout:v},b,{children:(e,t)=>n.cloneElement(a,(0,ut.Z)({style:(0,ut.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},ad[e],f,a.props.style),ref:y},t))}))})),cd=ld;function dd(e){return(0,bt.Z)("MuiBackdrop",e)}(0,_t.Z)("MuiBackdrop",["root","invisible"]);const ud=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],hd=(0,vt.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,ut.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),gd=n.forwardRef((function(e,t){var n,i,o;const r=(0,ft.Z)({props:e,name:"MuiBackdrop"}),{children:s,component:a="div",components:l={},componentsProps:c={},className:d,invisible:u=!1,open:h,slotProps:g={},slots:p={},transitionDuration:m,TransitionComponent:f=cd}=r,v=(0,dt.Z)(r,ud),_=(0,ut.Z)({},r,{component:a,invisible:u}),b=(e=>{const{classes:t,invisible:n}=e,i={root:["root",n&&"invisible"]};return(0,gt.Z)(i,dd,t)})(_),C=null!=(n=g.root)?n:c.root;return(0,yt.jsx)(f,(0,ut.Z)({in:h,timeout:m},v,{children:(0,yt.jsx)(hd,(0,ut.Z)({"aria-hidden":!0},C,{as:null!=(i=null!=(o=p.root)?o:l.Root)?i:a,className:(0,ht.Z)(b.root,d,null==C?void 0:C.className),ownerState:(0,ut.Z)({},_,null==C?void 0:C.ownerState),classes:b,ref:t,children:s}))}))})),pd=gd,md=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],fd=(0,vt.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,ut.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),vd=(0,vt.ZP)(pd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),_d=n.forwardRef((function(e,t){var i,o,r,s,a,l;const c=(0,ft.Z)({name:"MuiModal",props:e}),{BackdropComponent:d=vd,BackdropProps:u,closeAfterTransition:h=!1,children:g,component:p,components:m={},componentsProps:f={},disableAutoFocus:v=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:b=!1,disablePortal:C=!1,disableRestoreFocus:y=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:x=!1,slotProps:L,slots:k,theme:E}=c,N=(0,dt.Z)(c,md),[D,I]=n.useState(!0),q={closeAfterTransition:h,disableAutoFocus:v,disableEnforceFocus:_,disableEscapeKeyDown:b,disablePortal:C,disableRestoreFocus:y,disableScrollLock:w,hideBackdrop:S,keepMounted:x},R=(0,ut.Z)({},c,q,{exited:D}),O=(e=>e.classes)(R),T=null!=(i=null!=(o=null==k?void 0:k.root)?o:m.Root)?i:fd,A=null!=(r=null!=(s=null==k?void 0:k.backdrop)?s:m.Backdrop)?r:d,M=null!=(a=null==L?void 0:L.root)?a:f.root,P=null!=(l=null==L?void 0:L.backdrop)?l:f.backdrop;return(0,yt.jsx)(rd,(0,ut.Z)({slots:{root:T,backdrop:A},slotProps:{root:()=>(0,ut.Z)({},Jc(M,R),!fr(T)&&{as:p,theme:E}),backdrop:()=>(0,ut.Z)({},u,Jc(P,R))},onTransitionEnter:()=>I(!1),onTransitionExited:()=>I(!0),ref:t},N,{classes:O},q,{children:g}))})),bd=_d,Cd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function yd(e){return(0,bt.Z)("MuiPaper",e)}(0,_t.Z)("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"],Sd=(0,vt.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,ut.Z)({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,ut.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,vi.Fq)("#fff",Cd(t.elevation))}, ${(0,vi.Fq)("#fff",Cd(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),xd=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiPaper"}),{className:i,component:o="div",elevation:r=1,square:s=!1,variant:a="elevation"}=n,l=(0,dt.Z)(n,wd),c=(0,ut.Z)({},n,{component:o,elevation:r,square:s,variant:a}),d=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e,r={root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]};return(0,gt.Z)(r,yd,o)})(c);return(0,yt.jsx)(Sd,(0,ut.Z)({as:o,ownerState:c,className:(0,ht.Z)(d.root,i),ref:t},l))})),Ld=xd;function kd(e){return(0,bt.Z)("MuiPopover",e)}(0,_t.Z)("MuiPopover",["root","paper"]);const Ed=["onEntering"],Nd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Dd(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Id(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function qd(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Rd(e){return"function"==typeof e?e():e}const Od=(0,vt.ZP)(bd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Td=(0,vt.ZP)(Ld,{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}),Ad=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiPopover"}),{action:o,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:d,container:u,elevation:h=8,marginThreshold:g=16,open:p,PaperProps:m={},transformOrigin:f={vertical:"top",horizontal:"left"},TransitionComponent:v=Tc,transitionDuration:_="auto",TransitionProps:{onEntering:b}={}}=i,C=(0,dt.Z)(i.TransitionProps,Ed),y=(0,dt.Z)(i,Nd),w=n.useRef(),S=(0,_i.Z)(w,m.ref),x=(0,ut.Z)({},i,{anchorOrigin:s,anchorReference:l,elevation:h,marginThreshold:g,PaperProps:m,transformOrigin:f,TransitionComponent:v,transitionDuration:_,TransitionProps:C}),L=(e=>{const{classes:t}=e;return(0,gt.Z)({root:["root"],paper:["paper"]},kd,t)})(x),k=n.useCallback((()=>{if("anchorPosition"===l)return a;const e=Rd(r),t=(e&&1===e.nodeType?e:(0,as.Z)(w.current).body).getBoundingClientRect();return{top:t.top+Dd(t,s.vertical),left:t.left+Id(t,s.horizontal)}}),[r,s.horizontal,s.vertical,a,l]),E=n.useCallback((e=>({vertical:Dd(e,f.vertical),horizontal:Id(e,f.horizontal)})),[f.horizontal,f.vertical]),N=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===l)return{top:null,left:null,transformOrigin:qd(n)};const i=k();let o=i.top-n.vertical,s=i.left-n.horizontal;const a=o+t.height,c=s+t.width,d=(0,$r.Z)(Rd(r)),u=d.innerHeight-g,h=d.innerWidth-g;if(o<g){const e=o-g;o-=e,n.vertical+=e}else if(a>u){const e=a-u;o-=e,n.vertical+=e}if(s<g){const e=s-g;s-=e,n.horizontal+=e}else if(c>h){const e=c-h;s-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(s)}px`,transformOrigin:qd(n)}}),[r,l,k,E,g]),[D,I]=n.useState(p),q=n.useCallback((()=>{const e=w.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);n.useEffect((()=>{p&&q()})),n.useImperativeHandle(o,(()=>p?{updatePosition:()=>{q()}}:null),[p,q]),n.useEffect((()=>{if(!p)return;const e=(0,Wr.Z)((()=>{q()})),t=(0,$r.Z)(r);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r,p,q]);let R=_;"auto"!==_||v.muiSupportAuto||(R=void 0);const O=u||(r?(0,as.Z)(Rd(r)).body:void 0);return(0,yt.jsx)(Od,(0,ut.Z)({BackdropProps:{invisible:!0},className:(0,ht.Z)(L.root,d),container:O,open:p,ref:t,ownerState:x},y,{children:(0,yt.jsx)(v,(0,ut.Z)({appear:!0,in:p,onEntering:(e,t)=>{b&&b(e,t),q()},onExited:()=>{I(!1)},timeout:R},C,{children:(0,yt.jsx)(Td,(0,ut.Z)({elevation:h},m,{ref:S,className:(0,ht.Z)(L.paper,m.className)},D?void 0:{style:(0,ut.Z)({},m.style,{opacity:0})},{ownerState:x,children:c}))}))}))})),Md=Ad;var Pd=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Fd=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Bd=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 Vd=function(e){function t(){var e,n,i;Pd(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=Bd(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;i._lastRenderedStartIndex=t,i._lastRenderedStopIndex=n,i._ensureRowsLoaded(t,n)},i._setRef=function(e){i._listRef=e},Bd(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Fd(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,i=n.isItemLoaded,o=n.itemCount,r=n.minimumBatchSize,s=void 0===r?10:r,a=n.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,o=e.stopIndex,r=[],s=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(r.push(s,a),s=a=null):(a=l,null===s&&(s=l));if(null!==a){for(var c=Math.min(Math.max(a,s+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<i&&r[0]>0;){var u=r[0]-1;if(t(u))break;r[0]=u}return r}({isItemLoaded:i,itemCount:o,minimumBatchSize:s,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,i=function(i){var o=e[i],r=e[i+1],s=n(o,r);null!=s&&s.then((function(){if(e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r},!(e.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)i(o)}}]),t}(n.PureComponent),Wd=["S","XS"],zd=e=>e.reduce(((e,t)=>e.concat(t)));function Hd(e){return Wd.includes(e)}function jd({layout:e,selections:t,pages:i=[],checkboxes:o=!1,selectDisabled:r,doc:s=document,isSingleSelect:a=!1}){const[l,c]=(0,n.useState)(i),[d,u]=(0,n.useState)(!1),[h,g]=(0,n.useState)(!1),[p,m]=(0,n.useState)(a),[f,v]=(0,n.useState)([]),[_,b]=(0,n.useState)(!1),[C,y]=(0,n.useState)([]),w=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return zd(t)}(i);(0,n.useEffect)((()=>{m(a)}),[a]);const S=async(e=[],n=!1)=>{if(r())return;g(!0);const i=n?e.filter((e=>!f.includes(e))):e;await async function({selections:e,elemNumbers:t,isSingleSelect:n=!1}){let i=Promise.resolve(!1);if(!t.some((e=>Number.isNaN(e)))){const o=t;i=e.select({method:"selectListObjectValues",params:["/qListObjectDef",o,!n]}).then((e=>!1!==e)).catch((()=>!1))}return i}({selections:t,elemNumbers:i,isSingleSelect:p}),g(!1),y([])},x=(e,t=!1)=>{r()||y((n=>{const i=(o=[...n,...e],Array.isArray(o)?Array.from(new Set(o)):void 0);var o;const r=t?i.filter((e=>!f.includes(e))):i,s=t?function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:i}=function(e,t){let n=1/0,i=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,i=o>i?o:i})),{min:n,max:i}}(e,t);return t.slice(n,i+1)}(i,w):r;return s}))},L=e=>{(e.ctrlKey||e.metaKey)&&(m(!0),e.currentTarget.focus(),e.preventDefault())},k=(0,n.useCallback)((e=>{if(h||r())return;const t=+e.currentTarget.getAttribute("data-n");y([t]),L(e)}),[h,r]),E=(0,n.useCallback)((e=>{if(h||r())return;b(!1),u(!0);const t=+e.currentTarget.getAttribute("data-n");y([t]),L(e)}),[h,r]),N=(0,n.useCallback)((e=>{const t=+e.currentTarget.getAttribute("data-n");p||!d||h||1===C.length&&C[0]===t||x([t])}),[d,h,C,f,_,r]),D=(0,n.useCallback)((()=>{u(!1),g(!1),b(!1),m(a)}),[a]),I=(0,n.useCallback)((e=>{if(p||!d||h||r())return;b(!0);const t=+e.currentTarget.getAttribute("data-n");x([t],!0)}),[d,h,_,C,f,r,e&&e.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);(0,n.useEffect)((()=>{const t=!d;C&&C.length&&!h&&t&&e&&S(C,_)}),[C,d,r()]),(0,n.useEffect)((()=>(s.addEventListener("mouseup",D),()=>{s.removeEventListener("mouseup",D)})),[D]),(0,n.useEffect)((()=>{if(h||d)return;const e=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return!!Hd(t.qState)&&t.qElemNumber})).filter((e=>!1!==e))));return zd(t)}(i);v(e)}),[i]),(0,n.useEffect)((()=>{if(h||!i||!o&&!d)return;const e=function(e,t,n=!1){return e.map((e=>{const i=e.qMatrix.map((e=>{const[i]=e,o=t.includes(i.qElemNumber);let r;return r=n?o?"S":"A":o?(e=>t.length<=1&&Hd(e)?"A":"S")(i.qState):i.qState,[{...i,qState:r},e.slice(1)]}));return{...e,qMatrix:i}}))}(i,C,p);c(e)}),[C]);const q={};return o?Object.assign(q,{onClick:k}):Object.assign(q,{onMouseUp:N,onMouseDown:E,onMouseEnter:I}),{instantPages:l,interactionEvents:q,select:(e=[],t=!1)=>{b(!1),u(!0),x(e,t||_);const n=S(e,t||_);return u(!1),n}}}function Ud(e){return(0,bt.Z)("MuiFormControlLabel",e)}const $d=(0,_t.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),Kd=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],Gd=(0,vt.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$d.label}`]:t.label},t.root,t[`labelPlacement${(0,Ft.Z)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$d.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},{[`& .${$d.label}`]:{[`&.${$d.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Zd=n.forwardRef((function(e,t){var i;const o=(0,ft.Z)({props:e,name:"MuiFormControlLabel"}),{className:r,componentsProps:s={},control:a,disabled:l,disableTypography:c,label:d,labelPlacement:u="end",slotProps:h={}}=o,g=(0,dt.Z)(o,Kd),p=qs();let m=l;void 0===m&&void 0!==a.props.disabled&&(m=a.props.disabled),void 0===m&&p&&(m=p.disabled);const f={disabled:m};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===a.props[e]&&void 0!==o[e]&&(f[e]=o[e])}));const v=Rs({props:o,muiFormControl:p,states:["error"]}),_=(0,ut.Z)({},o,{disabled:m,labelPlacement:u,error:v.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:i,error:o}=e,r={root:["root",n&&"disabled",`labelPlacement${(0,Ft.Z)(i)}`,o&&"error"],label:["label",n&&"disabled"]};return(0,gt.Z)(r,Ud,t)})(_),C=null!=(i=h.typography)?i:s.typography;let y=d;return null==y||y.type===Io||c||(y=(0,yt.jsx)(Io,(0,ut.Z)({component:"span"},C,{className:(0,ht.Z)(b.label,null==C?void 0:C.className),children:y}))),(0,yt.jsxs)(Gd,(0,ut.Z)({className:(0,ht.Z)(b.root,r),ownerState:_,ref:t},g,{children:[n.cloneElement(a,f),y]}))})),Qd=Zd,Yd=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),Xd=e=>lr(Yd(e));var Jd=s(12076);function eu(e){return(0,bt.Z)("PrivateSwitchBase",e)}(0,_t.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const tu=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],nu=(0,vt.ZP)(oo)((({ownerState:e})=>(0,ut.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),iu=(0,vt.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ou=n.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,className:r,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:u,inputProps:h,inputRef:g,name:p,onBlur:m,onChange:f,onFocus:v,readOnly:_,required:b,tabIndex:C,type:y,value:w}=e,S=(0,dt.Z)(e,tu),[x,L]=(0,Jd.Z)({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),k=qs();let E=a;k&&void 0===E&&(E=k.disabled);const N="checkbox"===y||"radio"===y,D=(0,ut.Z)({},e,{checked:x,disabled:E,disableFocusRipple:l,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,r={root:["root",n&&"checked",i&&"disabled",o&&`edge${(0,Ft.Z)(o)}`],input:["input"]};return(0,gt.Z)(r,eu,t)})(D);return(0,yt.jsxs)(nu,(0,ut.Z)({component:"span",className:(0,ht.Z)(I.root,r),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:D,ref:t},S,{children:[(0,yt.jsx)(iu,(0,ut.Z)({autoFocus:n,checked:i,defaultChecked:s,className:I.input,disabled:E,id:N&&u,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:D,tabIndex:C,type:y},"checkbox"===y&&void 0===w?{}:{value:w},h)),x?o:d]}))})),ru=ou,su=(0,Hn.Z)((0,yt.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"),au=(0,Hn.Z)((0,yt.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"),lu=(0,Hn.Z)((0,yt.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 cu(e){return(0,bt.Z)("MuiCheckbox",e)}const du=(0,_t.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),uu=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],hu=(0,vt.ZP)(ru,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,Ft.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,vi.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${du.checked}, &.${du.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${du.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),gu=(0,yt.jsx)(au,{}),pu=(0,yt.jsx)(su,{}),mu=(0,yt.jsx)(lu,{}),fu=n.forwardRef((function(e,t){var i,o;const r=(0,ft.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=gu,color:a="primary",icon:l=pu,indeterminate:c=!1,indeterminateIcon:d=mu,inputProps:u,size:h="medium",className:g}=r,p=(0,dt.Z)(r,uu),m=c?d:l,f=c?d:s,v=(0,ut.Z)({},r,{color:a,indeterminate:c,size:h}),_=(e=>{const{classes:t,indeterminate:n,color:i}=e,o={root:["root",n&&"indeterminate",`color${(0,Ft.Z)(i)}`]},r=(0,gt.Z)(o,cu,t);return(0,ut.Z)({},t,r)})(v);return(0,yt.jsx)(hu,(0,ut.Z)({type:"checkbox",inputProps:(0,ut.Z)({"data-indeterminate":c},u),icon:n.cloneElement(m,{fontSize:null!=(i=m.props.fontSize)?i:h}),checkedIcon:n.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:h}),ownerState:v,ref:t,className:(0,ht.Z)(_.root,g)},p,{classes:_}))})),vu=fu,_u="ListBoxCheckbox",bu={cbIcon:`${_u}-cbIcon`,cbIconChecked:`${_u}-cbIconChecked`,cbIconExcluded:`${_u}-cbIconExcluded`,cbIconAlternative:`${_u}-cbIconAlternative`,checkbox:`${_u}-checkbox`,dense:`${_u}-dense`},Cu=(0,vt.ZP)(vu)((({theme:e})=>({[`& .${bu.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"},[`& .${bu.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},[`& .${bu.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.excluded},[`& .${bu.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.alternative},[`&.${bu.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${bu.dense}`]:{padding:"4px 8px"}}))),yu=(e,t=!0,i=!1)=>n.createElement("span",{className:e.cbIcon},i&&n.createElement("span",{className:t&&i?e.cbIconExcluded:""}));function wu({checked:e,label:t,dense:i,excluded:o,showGray:r=!0}){return n.createElement(Cu,{edge:"start",checked:e,disableRipple:!0,className:[bu.checkbox,i&&bu.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":t},name:t,icon:yu(bu,r,o),checkedIcon:n.createElement("span",{className:bu.cbIconChecked})})}const Su=(0,Hn.Z)((0,yt.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"),xu=(0,Hn.Z)((0,yt.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"),Lu=(0,vt.ZP)("span")({position:"relative",display:"flex"}),ku=(0,vt.ZP)(Su)({transform:"scale(1)"}),Eu=(0,vt.ZP)(xu)((({theme:e,ownerState:t})=>(0,ut.Z)({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})}))),Nu=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o=(0,ut.Z)({},e,{checked:t});return(0,yt.jsxs)(Lu,{className:n.root,ownerState:o,children:[(0,yt.jsx)(ku,{fontSize:i,className:n.background,ownerState:o}),(0,yt.jsx)(Eu,{fontSize:i,className:n.dot,ownerState:o})]})};var Du=s(80062);const Iu=n.createContext(void 0);function qu(e){return(0,bt.Z)("MuiRadio",e)}const Ru=(0,_t.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),Ou=["checked","checkedIcon","color","icon","name","onChange","size","className"],Tu=(0,vt.ZP)(ru,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,Ft.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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,vi.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Ru.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Ru.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Au=(0,yt.jsx)(Nu,{checked:!0}),Mu=(0,yt.jsx)(Nu,{}),Pu=n.forwardRef((function(e,t){var i,o;const r=(0,ft.Z)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=Au,color:l="primary",icon:c=Mu,name:d,onChange:u,size:h="medium",className:g}=r,p=(0,dt.Z)(r,Ou),m=(0,ut.Z)({},r,{color:l,size:h}),f=(e=>{const{classes:t,color:n}=e,i={root:["root",`color${(0,Ft.Z)(n)}`]};return(0,ut.Z)({},t,(0,gt.Z)(i,qu,t))})(m),v=n.useContext(Iu);let _=s;const b=(0,Du.Z)(u,v&&v.onChange);let C=d;var y,w;return v&&(void 0===_&&(y=v.value,_="object"==typeof(w=r.value)&&null!==w?y===w:String(y)===String(w)),void 0===C&&(C=v.name)),(0,yt.jsx)(Tu,(0,ut.Z)({type:"radio",icon:n.cloneElement(c,{fontSize:null!=(i=Mu.props.fontSize)?i:h}),checkedIcon:n.cloneElement(a,{fontSize:null!=(o=Au.props.fontSize)?o:h}),ownerState:m,classes:f,name:C,checked:_,onChange:b,ref:t,className:(0,ht.Z)(f.root,g)},p))})),Fu=Pu,Bu="ListBoxRadioButton-radioButton",Vu=(0,vt.ZP)(Fu)((({theme:e,checked:t})=>({[`&.${Bu}`]:{right:"5px",color:t?e.palette.selected.main:e.palette.main}})));function Wu({checked:e,label:t,dense:i}){return n.createElement(Vu,{checked:e,value:t,name:t,className:Bu,style:{backgroundColor:"transparent"},disableRipple:!0,size:i?"small":"medium",sx:i&&{padding:"0px 0px 0px 12px"}})}const zu=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===zu.ARROW_UP||e===zu.ARROW_DOWN||e===zu.ARROW_LEFT||e===zu.ARROW_RIGHT}),Hu=zu;const ju={row:"RowColumn-row",rowBorderBottom:"RowColumn-rowBorderBottom",column:"RowColumn-column",fieldRoot:"RowColumn-fieldRoot",cell:"RowColumn-cell",labelText:"RowColumn-labelText",labelDense:"RowColumn-labelDense",highlighted:"RowColumn-highlighted",checkboxLabel:"RowColumn-checkboxLabel",icon:"RowColumn-icon",S:"RowColumn-S",XS:"RowColumn-XS",A:"RowColumn-A",X:"RowColumn-X",frequencyCount:"RowColumn-frequencyCount",barContainer:"RowColumn-barContainer",bar:"RowColumn-bar",barSelected:"RowColumn-barSelected",barWithCheckbox:"RowColumn-barWithCheckbox",barSelectedWithCheckbox:"RowColumn-barSelectedWithCheckbox",excludedTextWithCheckbox:"RowColumn-excludedTextWithCheckbox"},Uu={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},$u=({theme:e})=>({background:e.palette.selected.main,color:e.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"},"& $cell":{paddingRight:0}}),Ku=(0,vt.ZP)("div",{shouldForwardProp:e=>"flexBasisProp"!==e})((({theme:e,flexBasisProp:t,dense:n})=>({[`& .${ju.row}`]:{flexWrap:"nowrap",color:e.listBox?.content?.color??e.palette.text.primary},[`& .${ju.rowBorderBottom}`]:{borderBottom:`1px solid ${e.palette.divider}`},[`& .${ju.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,color:e.listBox?.content?.color??e.palette.text.primary},[`& .${ju.fieldRoot}`]:{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${ju.cell}`]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},[`& .${ju.labelText}`]:{flexBasis:t,lineHeight:"16px",userSelect:"none",whiteSpace:"pre",paddingRight:"9px",...Uu,fontSize:e.listBox?.content?.fontSize,fontFamily:e.listBox?.content?.fontFamily},[`& .${ju.labelDense}`]:{fontSize:12},[`& .${ju.highlighted}`]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},[`& .${ju.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...Uu,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${ju.icon}`]:{display:"flex",padding:e.spacing(1,1,1,0)},[`& .${ju.S}`]:{...$u({theme:e})},[`& .${ju.XS}`]:{...$u({theme:e}),background:e.palette.selected.excluded,color:e.palette.selected.mainContrastText},[`& .${ju.A}`]:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText},[`& .${ju.X}`]:{background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText},[`& .${ju.frequencyCount}`]:{width:"66px",justifyContent:"flex-end"},[`&.${ju.barContainer}`]:{height:"100%",display:"inline-block"},[`& .${ju.bar}`]:{border:"1px solid",borderColor:"#D9D9D9",height:n?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"4px",transition:"width 0.2s",backgroundColor:"#FAFAFA"},[`& .${ju.barSelected}`]:{opacity:"30%",zIndex:"0",background:e.palette.background.lighter},[`& .${ju.barWithCheckbox}`]:{left:"29px"},[`& .${ju.barSelectedWithCheckbox}`]:{background:"#BFE5D0",borderColor:"#BFE5D0"},[`& .${ju.excludedTextWithCheckbox}`]:{color:"#828282",fontStyle:"italic"}}))),Gu=function({index:e,rowIndex:t,columnIndex:i,style:o,data:r}){const{onClick:s,onMouseDown:a,onMouseUp:l,onMouseEnter:c,pages:d,isLocked:u,column:h=!1,checkboxes:g=!1,textAlign:p,direction:m,dense:f=!1,freqIsAllowed:v,isSingleSelect:_,actions:b,frequencyMax:C="",histogram:y=!1,keyboard:w,showGray:S=!0,columnCount:x=1,rowCount:L=1,layoutOrder:k}=r;let E,N;if("number"==typeof t&&"number"==typeof i){E="row"===k?t*x+i:i*L+t;const e=0;N={...o,left:e+(0===i?o.left:Number(o.left)+i*e),top:0===t?o.top:Number(o.top)+t*e}}else E=e,N={...o};const D=(0,n.useCallback)(function({select:e,confirm:t,cancel:n}){const i=(e,t=!1)=>{const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let o=!1;const r=e=>{o=e};return s=>{let a;const{keyCode:l,shiftKey:c=!1}=s.nativeEvent;switch(l){case Hu.SHIFT:r(!0);break;case Hu.SPACE:e([+s.currentTarget.getAttribute("data-n")]);break;case Hu.ARROW_DOWN:case Hu.ARROW_RIGHT:a=i(s.currentTarget,!0),c&&a&&(o&&(e([+s.currentTarget.getAttribute("data-n")],!0),r(!1)),e([+a.getAttribute("data-n")],!0));break;case Hu.ARROW_UP:case Hu.ARROW_LEFT:a=i(s.currentTarget,!1),c&&a&&(o&&(e([+s.currentTarget.getAttribute("data-n")],!0),r(!1)),e([+a.getAttribute("data-n")],!0));break;case Hu.ENTER:t();break;case Hu.ESCAPE:return void n();default:return}a&&a.focus(),s.preventDefault(),s.stopPropagation()}}(b),[b]),[I,q]=(0,n.useState)(!1),[R,O]=(0,n.useState)(),[T,A]=(0,n.useState)([]);(0,n.useEffect)((()=>{if(!d)return;let e;const t=d.filter((e=>e.qArea.qTop<=E&&E<e.qArea.qTop+e.qArea.qHeight))[0];if(t){const n=t.qArea;E>=n.qTop&&E<n.qTop+n.qHeight&&([e]=t.qMatrix[E-n.qTop])}O(e)}),[d]);const M=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,P=e=>e?"A"===e.qState:null;if((0,n.useEffect)((()=>{if(!R)return;const e="S"===R.qState||"XS"===R.qState||"L"===R.qState;q(e);const t=[h?ju.column:ju.row];y&&f||g||t.push(ju.rowBorderBottom),g||("XS"===R.qState?t.push(S?ju.XS:ju.S):"S"===R.qState||"L"===R.qState?t.push(ju.S):S&&P(R)?t.push(ju.A):S&&M(R)&&t.push(ju.X)),A(t)}),[R&&R.qState,y,f,g]),!R)return null;const F=e=>e.filter((e=>!!e)).join(" ").trim(),B=()=>(P(R)||M(R))&&g,V=!["NaN",void 0].includes(R?.qNum);let W;const z=!p||p.auto;W=z?V?"right":{rtl:"right",ltr:"left"}[m]:p?.align||"left";const H=({lbl:e,ix:t,color:i,highlighted:o=!1})=>n.createElement(Io,{component:"span",variant:"body2",key:t,className:F([ju.labelText,o&&ju.highlighted,f&&ju.labelDense,S&&B()&&ju.excludedTextWithCheckbox]),color:i,justifyContent:W},n.createElement("span",{style:{whiteSpace:"pre"}},e)),j=({lbl:e,color:t,qElemNumber:i})=>{const o=n.createElement(wu,{label:e,checked:I,dense:f,excluded:M(R),showGray:S}),r=n.createElement(Wu,{label:e,checked:I,dense:f}),s="string"==typeof e?H({lbl:e,color:t,highlighted:!1}):e;return n.createElement(Qd,{color:t,control:_?r:o,className:ju.checkboxLabel,label:s,key:i})},U=R?R.qText:"",$=()=>R?R.qFrequency?R.qFrequency:"-":"",K=R&&R.qHighlightRanges&&R.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],G=function(e,t){if(!t.length)return[];const n=t.reduce(((n,i,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,r=[];return i>n&&r.push([e.slice(n,i),!1]),r.push([e.slice(i,i+o),!0]),r}(e,i,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&n.push([e.slice(a),!1]),n}),[]);return n}(U,K),Z=g?j:H,Q={alignItems:"center",display:"flex"},Y=I&&u,X=!g&&I&&!u,J={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:g?0:void 0,justifyContent:W},ee=0===e,te=g?"auto":"max-content";return n.createElement(Ku,{className:ju.barContainer,flexBasisProp:te,dense:f},n.createElement(So,{container:!0,gap:0,className:F(["value",...T]),classes:{root:ju.fieldRoot},style:N,onClick:s,onMouseDown:a,onMouseUp:l,onMouseEnter:c,onKeyDown:D,onContextMenu:e=>{g&&s(e),e.preventDefault()},role:h?"column":"row",tabIndex:!ee||w.enabled&&!w.active?-1:0,"data-n":R&&R.qElemNumber},R&&y&&"-"!==$()&&n.createElement("div",{className:F([ju.bar,g&&ju.barWithCheckbox,I&&(g?ju.barSelectedWithCheckbox:ju.barSelected)]),style:{width:(e=>{const t=String(e),n="%"===t.substring(t.length-1),i=parseFloat(n?t:e);return`calc(${n?i:i/C*100}% - ${g?"(29px + 6px)":"10px"})`})(R.qFrequency)}}),n.createElement(So,{item:!0,style:J,className:F([ju.cell,ju.selectedCell]),title:`${U}`},0===K.length?Z({lbl:U,color:"inherit"}):(({lbls:e})=>{const t=e.map((([e,t],n)=>H({ix:n,highlighted:t,lbl:e})));return g?j({lbl:t}):t})({lbls:G})),v&&n.createElement(So,{item:!0,style:{display:"flex",alignItems:"center"},className:ju.frequencyCount},n.createElement(Io,{noWrap:!0,color:"inherit",variant:"body2",className:F([f&&ju.labelDense,ju.labelText,S&&B()&&ju.excludedTextWithCheckbox])},$())),!g&&n.createElement(So,{item:!0,className:ju.icon},!Y&&!X&&n.createElement("span",{style:{minWidth:"12px"}}),Y&&n.createElement(Ec,{style:Q,size:"small"}),X&&n.createElement(Xd,{style:Q,size:"small"}))))};function Zu({width:e,layout:t,frequencyMode:n}){const i=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["none",void 0].includes(n);return!(!i||!r&&!o)}var Qu=s(18367),Yu=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Xu(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((i=e[n])===(o=t[n])||Yu(i)&&Yu(o)))return!1;var i,o;return!0}const Ju=function(e,t){var n;void 0===t&&(t=Xu);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}};var eh="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function th(e){cancelAnimationFrame(e.id)}function nh(e,t){var n=eh(),i={id:requestAnimationFrame((function o(){eh()-n>=t?e.call(null):i.id=requestAnimationFrame(o)}))};return i}var ih=-1;function oh(e){if(void 0===e&&(e=!1),-1===ih||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ih=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ih}var rh=null;function sh(e){if(void 0===e&&(e=!1),null===rh||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?rh="positive-descending":(t.scrollLeft=1,rh=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),rh}return rh}var ah=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function lh(e){var t,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,r=e.getColumnStopIndexForStartIndex,s=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,u=e.getRowHeight,h=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 n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Si(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Si(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Ju((function(e,t,i,o,r,s,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=Ju((function(e,t,i,o,r){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,r=n.props,a=r.columnWidth,l=r.direction,c=r.rowHeight,d=n._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=i(n.props,t,n._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:h(n.props,e,n._instanceProps),height:u(n.props,e,n._instanceProps),width:s(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Ju((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=n.props.direction,c=r;if("rtl"===t)switch(sh()){case"negative":c=-r;break;case"positive-descending":c=l-o-r}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(s,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&th(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=nh(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Li(t,e),t.getDerivedStateFromProps=function(e,t){return ch(e,t),v(e),null};var _=t.prototype;return _.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},_.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,r=this.props,s=r.columnCount,u=r.height,h=r.rowCount,g=r.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,v=oh();void 0!==i&&(i=Math.max(0,Math.min(i,s-1))),void 0!==o&&(o=Math.max(0,Math.min(o,h-1)));var _=a(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>g?v:0,C=_>u?v:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,C):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,b):f})},_.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var i=this._outerRef;"number"==typeof t&&(i.scrollLeft=t),"number"==typeof n&&(i.scrollTop=n)}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,i=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(sh()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&th(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,i=e.className,o=e.columnCount,r=e.direction,s=e.height,c=e.innerRef,d=e.innerElementType,u=e.innerTagName,h=e.itemData,g=e.itemKey,p=void 0===g?ah:g,m=e.outerElementType,f=e.outerTagName,v=e.rowCount,_=e.style,b=e.useIsScrolling,C=e.width,y=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],x=w[1],L=this._getVerticalRangeToRender(),k=L[0],E=L[1],N=[];if(o>0&&v)for(var D=k;D<=E;D++)for(var I=S;I<=x;I++)N.push((0,n.createElement)(t,{columnIndex:I,data:h,isScrolling:b?y:void 0,key:p({columnIndex:I,data:h,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,I)}));var q=a(this.props,this._instanceProps),R=l(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:this._onScroll,ref:this._outerRefSetter,style:wi({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,n.createElement)(d||u||"div",{children:N,ref:c,style:{height:q,pointerEvents:y?"none":void 0,width:R}}))},_._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,i=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var r=this._getHorizontalRangeToRender(),s=r[0],a=r[1],l=r[2],c=r[3],d=this._getVerticalRangeToRender(),u=d[0],h=d[1],g=d[2],p=d[3];this._callOnItemsRendered(s,a,u,h,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,v=m.scrollLeft,_=m.scrollTop,b=m.scrollUpdateWasRequested,C=m.verticalScrollDirection;this._callOnScroll(v,_,f,C,b)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,u=l.scrollLeft,h=n||i||s||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,u,this._instanceProps),p=r(this.props,g,u,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,h),f=d&&"forward"!==c?1:Math.max(1,h);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,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=i||o||n||1;if(0===t||0===r)return[0,0,0,0];var u=g(this.props,c,this._instanceProps),h=p(this.props,u,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,u-m),Math.max(0,Math.min(r-1,h+f)),u,h]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var ch=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},dh=function(e,t){return e};function uh(e){var t,i=e.getItemOffset,o=e.getEstimatedTotalSize,r=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,Si(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Si(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Ju((function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Ju((function(e,t,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,s=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var u=i(n.props,e,n._instanceProps),h=r(n.props,e,n._instanceProps),g="horizontal"===s||"horizontal"===l,p="rtl"===s,m=g?u:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:u,height:g?"100%":h,width:g?h:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Ju((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,s=o;if("rtl"===t)switch(sh()){case"negative":s=-o;break;case"positive-descending":s=r-i-o}return s=Math.max(0,Math.min(s,r-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;n.setState((function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&th(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=nh(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Li(t,e),t.getDerivedStateFromProps=function(e,t){return hh(e,t),u(e),null};var h=t.prototype;return h.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)},h.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,o=n.layout,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?oh():0:l.scrollHeight>l.clientHeight?oh():0}this.scrollTo(s(this.props,e,t,r,this._instanceProps,a))},h.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},h.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(sh()){case"negative":r.scrollLeft=-o;break;case"positive-ascending":r.scrollLeft=o;break;default:var s=r.clientWidth,a=r.scrollWidth;r.scrollLeft=a-s-o}else r.scrollLeft=o;else r.scrollTop=o}this._callPropsCallbacks()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&th(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,i=e.className,r=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,u=e.itemData,h=e.itemKey,g=void 0===h?dh:h,p=e.layout,m=e.outerElementType,f=e.outerTagName,v=e.style,_=e.useIsScrolling,b=e.width,C=this.state.isScrolling,y="horizontal"===r||"horizontal"===p,w=y?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,n.createElement)(t,{data:u,key:g(E,u),index:E,isScrolling:_?C:void 0,style:this._getItemStyle(E)}));var N=o(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:wi({position:"relative",height:s,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},v)},(0,n.createElement)(l||c||"div",{children:k,ref:a,style:{height:y?"100%":N,pointerEvents:C?"none":void 0,width:y?N:"100%"}}))},h._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,n,i,o)}if("function"==typeof this.props.onScroll){var r=this.state,s=r.scrollDirection,a=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},h._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,r=i.scrollDirection,s=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),d=l(this.props,c,s,this._instanceProps),u=o&&"backward"!==r?1:Math.max(1,n),h=o&&"forward"!==r?1:Math.max(1,n);return[Math.max(0,c-u),Math.max(0,Math.min(t-1,d+h)),c,d]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var hh=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},gh=lh({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,i,o,r){var s=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,s*a-l),d=Math.min(c,t*a),u=Math.max(0,t*a-l+r+a);switch("smart"===n&&(n=i>=u-l&&i<=d+l?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getOffsetForRowAndAlignment:function(e,t,n,i,o,r){var s=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*s-a),d=Math.min(c,t*s),u=Math.max(0,t*s-a+r+s);switch("smart"===n&&(n=i>=u-a&&i<=d+a?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(a/2)?0:h>c+Math.floor(a/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var i=e.columnWidth,o=e.columnCount,r=e.width,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var i=e.rowHeight,o=e.rowCount,r=e.height,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),ph=uh({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,i,o,r){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,u=e.width,h="horizontal"===s||"horizontal"===d?u:a,g=Math.max(0,l*c-h),p=Math.min(g,t*c),m=Math.max(0,t*c-h+c+r);switch("smart"===n&&(n=i>=m-h&&i<=p+h?"auto":"center"),n){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(h/2)?0:f>g+Math.floor(h/2)?g:f;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,o=e.height,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===i||"horizontal"===a?l:o,u=Math.ceil((d+n-c)/s);return Math.max(0,Math.min(r-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const mh="#BBB",fh="#555",vh="#f1f1f1",_h="ListBox-styledScrollbars";function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bh.apply(this,arguments)}const{StyledFixedSizeList:Ch,StyledFixedSizeGrid:yh}=function(){const e={scrollbarColor:"#BBB #f1f1f1","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:vh},"&::-webkit-scrollbar-thumb":{backgroundColor:mh,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:fh}};return{StyledFixedSizeList:(0,Qu.Z)(ph)((()=>({[`&.${_h}`]:e,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:vh},"&::-webkit-scrollbar-thumb":{backgroundColor:mh,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:fh}}))),StyledFixedSizeGrid:(0,Qu.Z)(gh)((()=>({[`&.${_h}`]:e,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:vh},"&::-webkit-scrollbar-thumb":{backgroundColor:mh,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:fh}})))}}(),wh=e=>{const t=(0,n.useMemo)((()=>"text"in e?e:{}),[e]);return(0,n.useMemo)((()=>((e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();return n.font=t,Array.isArray(e)?Math.max(...e.map((e=>n.measureText(e).width))):n.measureText(e).width})(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])};function Sh(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}const[xh,Lh]=Kl({});function kh(e){const t=`${e.id}`,[n]=xh();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}function Eh({width:e}){const{translator:t}=(0,n.useContext)($l);return n.createElement(Io,{component:"div",variant:"body1",minWidth:e,textAlign:"center",py:"16px"},t.get("Listbox.NoMatchesForYourTerms"))}function Nh({model:e,selections:t,direction:i,checkboxes:o,height:r,width:s,listLayout:a="vertical",frequencyMode:l,update:c,fetchStart:d,postProcessPages:u,calculatePagesHeight:h=!1,keyboard:g={},showGray:p=!0,scrollState:m,selectDisabled:f=(()=>!1)}){const[v,_]=(0,n.useState)(!1),[b]=dc(e),C=!(!b||!b.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:y=o,histogram:w}=b??{},S=(0,n.useRef)(null),x=(0,n.useRef)({queue:[],validPages:!1}),L=(0,n.useRef)({pages:[]}),{isLoadingData:k,...E}=function({local:e,loaderRef:t,model:i,fetchStart:o,scrollTimeout:r,postProcessPages:s,listData:a}){const[l,c]=(0,n.useState)(!1),[d,u]=(0,n.useState)([]);let[h]=(0,n.useState)(0);const g=(n,l)=>{e.current.queue.push({start:n,stop:l});const d=!!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 n=e.current.queue.slice(-1)[0],r=i.getListObjectData("/qListObjectDef",[{qTop:n.start>h?n.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:n.start,qHeight:h,qLeft:0,qWidth:1}]).then((n=>{const i=s?s(n):n;e.current.validPages=!0,a.current.pages=i,u(i),c(!1),t()}));o&&o(r)}),d?r:0)}))};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(h=e),g)},pages:d,isLoading:l}}({local:x,loaderRef:S,model:e,fetchStart:d,scrollTimeout:0,postProcessPages:u,listData:L}),[N,D]=(0,n.useState)([]),{setStoreValue:I}=kh(e),q=(0,n.useCallback)(E.loadMoreItems,[b]);(0,n.useEffect)((()=>{D(E?.pages||[])}),[E?.pages]);const R=(0,n.useCallback)((e=>{if(!N?.length||!x.current.validPages)return!1;x.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=N.filter((e=>t(e)))[0];return n&&t(n)}),[b,N]),{instantPages:O=[],interactionEvents:T,select:A}=jd({layout:b,selections:t,pages:N,checkboxes:y,selectDisabled:f,doc:document,isSingleSelect:C}),M=()=>{if(x.current.queue=[],x.current.validPages=!1,S.current){if(S.current.resetloadMoreItemsCache(!0),b&&b.qSelectionInfo.qInSelections)return;S.current._listRef.scrollToItem(0)}};c&&c.call(null,M),(0,n.useEffect)((()=>{O&&!k&&D(O)}),[O]),(0,n.useEffect)((()=>{m&&!v&&S.current&&(S.current._listRef.scrollToItem(m.initScrollPos),_(!0))}),[S.current]),(0,n.useEffect)((()=>{M()}),[b]);const P=wh({text:Sh(b),font:"14px Source sans pro"}),{layoutOptions:F={}}=b||{};let B=100;const V=F.dataLayout?"singleColumn"===F.dataLayout:"horizontal"!==a,W=b?.qListObject.qSize?.qcy,z=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:i=!1}){const o=e?.length&&i?(({pages:e=[],minimumBatchSize:t,count:n})=>{const i=e.some((e=>e.qArea.qHeight<t)),o=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return i?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}({pages:N,minimumBatchSize:B,count:W,calculatePagesHeight:h});I("listCount",z);const H=function({layout:e,width:t,height:n,listCount:i,count:o,textWidth:r}){const{layoutOptions:s={}}=e||{},{layoutOrder:a,maxVisibleRows:l={},maxVisibleColumns:c,dense:d}=s,u=Math.min(150,r+18);let h,g,p,m;const f=d?20:29,v=n||8*f;if(a)if("row"===a){h={overflowX:"hidden"};const e=c.maxColumns||3;g=!1!==c.auto?Math.min(i,Math.ceil((t-10)/u)):Math.min(i,e),m=Math.ceil(i/g),p=(t-10)/g}else{h={overflowY:"hidden"};const e=l.maxRows||3;m=!1!==l.auto?Math.floor(v/f):Math.min(i,e),g=Math.ceil(i/m),p=Math.max(u,t/g)}return{columnCount:g,columnWidth:p,rowCount:m,overflowStyling:h,itemSize:f,listHeight:v,scrollBarWidth:10,count:o,listCount:i}}({layout:b,width:s,height:r,listCount:z,count:W,textWidth:P}),{textAlign:j}=b?.qListObject.qDimensionInfo||{},{List:U,Grid:$}=function({layout:e,width:t,checkboxes:i,local:o,isVertical:r,pages:s,selectDisabled:a,interactionEvents:l,frequencyMode:c,histogram:d,isSingleSelect:u,select:h,textAlign:g,selections:p,keyboard:m,showGray:f,scrollState:v,direction:_,listLayout:b,sizes:C,listCount:y}){const{layoutOptions:w={},frequencyMax:S}=e||{},{dense:x=!1}=w||{},{listHeight:L,itemSize:k,rowCount:E,columnCount:N}=C||{},D={direction:"rtl"===_?"rtl":"ltr",useIsScrolling:!0,className:_h},I=e?.qListObject.qDimensionInfo.qLocked,q={isLocked:I,column:!r,pages:s,...I||a()?{}:l,checkboxes:i,dense:x,frequencyMode:c,freqIsAllowed:Zu({width:t,layout:e,frequencyMode:c}),isSingleSelect:u,textAlign:g,actions:{select:h,confirm:()=>p?.confirm.call(p),cancel:()=>p?.cancel.call(p)},frequencyMax:S,histogram:d,keyboard:m,showGray:f};return{List:({onItemsRendered:e,ref:i})=>(o.current.listRef=i,n.createElement(Ch,bh({},D,{dataTestid:"fixed-size-list",height:L,width:t,itemCount:y,layout:b,itemData:{...q},itemSize:k,onItemsRendered:t=>{v&&v.setScrollPos(t.visibleStopIndex),e({...t})},ref:i}),Gu)),Grid:({onItemsRendered:e,ref:i})=>{const{columnWidth:r,overflowStyling:s,scrollBarWidth:a}=C,{layoutOrder:l}=w||{},c=Math.min(L,E*k+a);return o.current.listRef=i,n.createElement(yh,bh({},D,{dataTestid:"fixed-size-grid",height:c,width:t,columnCount:N,columnWidth:r,rowCount:E,rowHeight:k,style:{...s},itemData:{...q,column:void 0,columnCount:N,rowCount:E,layoutOrder:l},onItemsRendered:t=>{const n=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let u,h,g,p;return n&&n.setScrollPos(d),"column"===i?(u=l*o,h=s,g=c*o,p=a):(u=l,h=s*r,g=c,p=a*r),{visibleStartIndex:u+h,visibleStopIndex:g+p}}({renderProps:t,scrollState:v,layoutOrder:l,rowCount:E,columnCount:N});e(n)},ref:i}),Gu)}}}({direction:i,layout:b,height:r,width:s,checkboxes:y,frequencyMode:l,histogram:w,keyboard:g,showGray:p,interactionEvents:T,select:A,textAlign:j,isVertical:V,pages:N,selectDisabled:f,isSingleSelect:C,selections:t,scrollState:m,local:x,sizes:H,listCount:z}),{columnWidth:K,listHeight:G,itemSize:Z}=H||{};return V||(B=function({width:e,columnWidth:t,listHeight:n,itemSize:i}){return Math.ceil(e/t)*Math.ceil(n/i)*2}({width:s,columnWidth:K,listHeight:G,itemSize:Z})),n.createElement(n.Fragment,null,!z&&n.createElement(Eh,{width:s}),n.createElement(Vd,{isItemLoaded:R,itemCount:z||1,loadMoreItems:q.with({minimumBatchSize:B}),threshold:0,minimumBatchSize:B,ref:S},V?U:$))}const Dh=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"}}]}),Ih=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"}}]}),qh=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"}}]}),Rh=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"}}]}),Oh=({layout:e,model:t,translator:n})=>e.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:Dh,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:qh,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:Ih,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:Rh,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{t.selectListObjectExcluded("/qListObjectDef")}}];function Th(e){return(0,bt.Z)("MuiDivider",e)}const Ah=(0,_t.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Mh=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ph=(0,vt.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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,vi.Fq)(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"})),(({theme:e,ownerState:t})=>(0,ut.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,ut.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,ut.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Fh=(0,vt.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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)`}))),Bh=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==s?"separator":void 0),textAlign:u="center",variant:h="fullWidth"}=n,g=(0,dt.Z)(n,Mh),p=(0,ut.Z)({},n,{absolute:i,component:s,flexItem:a,light:l,orientation:c,role:d,textAlign:u,variant:h}),m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,gt.Z)(c,Th,i)})(p);return(0,yt.jsx)(Ph,(0,ut.Z)({as:s,className:(0,ht.Z)(m.root,r),role:d,ref:t,ownerState:p},g,{children:o?(0,yt.jsx)(Fh,{className:m.wrapper,ownerState:p,children:o}):null}))})),Vh=Bh,Wh=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 zh(e){const t=Ht(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,i="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:i}}const Hh=n.forwardRef((({ariaExpanded:e=!1,item:t,addAnchor:i=!1},o)=>{const r=Ht(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=zh(t);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),u=t.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&t.keyboardAction():null;return n.createElement(uo,{ref:i?null:o,title:t.label,onClick:t.action,onKeyDown:u,disabled:a,style:l,className:"njs-cell-action",size:"large","aria-expanded":e,"aria-controls":"moreMenuList"},c&&lr(t.getSvgIconShape()),i&&n.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),jh=Hh,Uh=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"}}]}),$h=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"}}]}),Kh=e=>lr($h(e));function Gh(e){return(0,bt.Z)("MuiListItemIcon",e)}const Zh=(0,_t.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function Qh(e){return(0,bt.Z)("MuiMenuItem",e)}const Yh=(0,_t.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jh=(0,vt.ZP)(oo,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,ut.Z)({},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"}},[`&.${Yh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,vi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Yh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,vi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Yh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,vi.Fq)(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,vi.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Yh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ah.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ah.inset}`]:{marginLeft:52},[`& .${Tr.root}`]:{marginTop:0,marginBottom:0},[`& .${Tr.inset}`]:{paddingLeft:36},[`& .${Zh.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,ut.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Zh.root} svg`]:{fontSize:"1.25rem"}})))),eg=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:u,className:h}=i,g=(0,dt.Z)(i,Xh),p=n.useContext(dr),m=n.useMemo((()=>({dense:s||p.dense||!1,disableGutters:l})),[p.dense,s,l]),f=n.useRef(null);(0,_r.Z)((()=>{o&&f.current&&f.current.focus()}),[o]);const v=(0,ut.Z)({},i,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:s}=e,a={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},l=(0,gt.Z)(a,Qh,s);return(0,ut.Z)({},s,l)})(i),b=(0,_i.Z)(f,t);let C;return i.disabled||(C=void 0!==u?u:-1),(0,yt.jsx)(dr.Provider,{value:m,children:(0,yt.jsx)(Jh,(0,ut.Z)({ref:b,role:d,tabIndex:C,component:r,focusVisibleClassName:(0,ht.Z)(_.focusVisible,c),className:(0,ht.Z)(_.root,h)},g,{ownerState:v,classes:_}))})})),tg=eg,ng=["className"],ig=(0,vt.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,ut.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),og=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiListItemIcon"}),{className:o}=i,r=(0,dt.Z)(i,ng),s=n.useContext(dr),a=(0,ut.Z)({},i,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,i={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,gt.Z)(i,Gh,n)})(a);return(0,yt.jsx)(ig,(0,ut.Z)({className:(0,ht.Z)(l.root,o),ownerState:a,ref:t},r))})),rg=og,sg=Vc,ag=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function cg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function dg(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ug(e,t,n,i,o,r){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&dg(a,r)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const hg=n.forwardRef((function(e,t){const{actions:i,autoFocus:o=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu"}=e,h=(0,dt.Z)(e,ag),g=n.useRef(null),p=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,_r.Z)((()=>{o&&g.current.focus()}),[o]),n.useImperativeHandle(i,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){const n=`${sg((0,as.Z)(e))}px`;g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}})),[]);const m=(0,_i.Z)(g,t);let f=-1;n.Children.forEach(s,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===f)&&(f=t))}));const v=n.Children.map(s,((e,t)=>{if(t===f){const t={};return r&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,yt.jsx)(mr,(0,ut.Z)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,n=e.key,i=(0,as.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ug(t,i,c,l,lg);else if("ArrowUp"===n)e.preventDefault(),ug(t,i,c,l,cg);else if("Home"===n)e.preventDefault(),ug(t,null,c,l,lg);else if("End"===n)e.preventDefault(),ug(t,null,c,l,cg);else if(1===n.length){const o=p.current,r=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(r);const a=i&&!o.repeating&&dg(i,o);o.previousKeyMatched&&(a||ug(t,i,!1,l,lg,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},h,{children:v}))})),gg=hg;function pg(){return pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pg.apply(this,arguments)}const mg="More-icon",fg=(0,vt.ZP)(Md)((({theme:e})=>({[`& .${mg}`]:{color:e.palette.text.primary}})));function vg({item:e,onActionClick:t=(()=>{})}){const{hidden:i,disabled:o,hasSvgIconShape:r}=zh(e);return i?null:n.createElement(tg,{title:e.label,onClick:()=>{e.action(),t()},disabled:o,tabindex:"0"},r&&n.createElement(rg,{className:mg},lr(e.getSvgIconShape())),n.createElement(Io,{noWrap:!0},e.label))}const _g=n.forwardRef((({actions:e=[],show:t=!0,alignTo:i,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=(()=>{})},a)=>e.length>0&&n.createElement(fg,pg({},o,{onClose:s,ref:a,open:t,anchorEl:i.current,getContentAnchorEl:null,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{style:{pointerEvents:"auto",maxWidth:"250px",...r}}}),n.createElement(gg,{id:"moreMenuList"},e.map(((e,t)=>n.createElement(vg,{key:t,item:e,onActionClick:s}))))))),bg="ActionsToolbar-itemSpacing",Cg="ActionsToolbar-firstItemSpacing",yg="ActionsToolbar-lastItemSpacing",wg=(0,vt.ZP)(Md)((({theme:e})=>({[`& .${bg}`]:{padding:e.spacing(0,.5)},[`& .${Cg}`]:{padding:e.spacing(0,.5,0,0)},[`& .${yg}`]:{padding:e.spacing(0,0,0,.5)}}))),Sg=n.forwardRef((({ariaExpanded:e=!1,actions:t=[],first:i=!1,last:o=!1,addAnchor:r=!1},s)=>t.length>0?n.createElement(So,{item:!0,container:!0,gap:0,wrap:"nowrap"},t.map(((a,l)=>{let c=[];const d=i&&0===l,u=o&&t.length-1===l;return d&&!u&&(c=[Cg]),u&&!d&&(c=[...c,yg]),d||u||0!==c.length||(c=[bg]),n.createElement(So,{item:!0,key:a.key,className:c.join(" ").trim()},n.createElement(jh,{ariaExpanded:e,key:a.key,item:a,ref:0===l?s:null,addAnchor:r}))}))):null)),xg={pointerEvents:"none"},Lg={vertical:"top",horizontal:"right"},kg={vertical:"bottom",horizontal:"right"},Eg=function({show:e=!0,actions:t=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:r={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:a=null,actionsRefMock:l=null}){const c=function({api:e,onConfirm:t=(()=>{}),onCancel:i=(()=>{}),onKeyDeactivate:o=(()=>{})}){const{translator:r}=(0,n.useContext)($l);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(),action:()=>e.clear(),getSvgIconShape:$h},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(),action:()=>{i(),e.cancel()},keyboardAction:t=>{o(t),i(),e.cancel()},getSvgIconShape:Uh},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(),action:()=>{t(),e.confirm()},keyboardAction:n=>{o(n),t(),e.confirm()},getSvgIconShape:Yd}]}(o),{translator:d,keyboardNavigation:u}=(0,n.useContext)($l),[h,g]=(0,n.useState)(!1),[p,m]=(0,n.useState)(r.enabled),[f,v]=(0,n.useState)(r.actions),_=(0,n.useRef)(),b=(0,n.useRef)(),C=Ht(),y=(0,n.useMemo)((()=>({margin:C.spacing(.5,0)}))),w=e=>{const t=b.current||l;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};(0,n.useEffect)((()=>()=>g(!1)),[s.show]),(0,n.useEffect)((()=>{m(r.enabled)}),[r.enabled]),(0,n.useEffect)((()=>{a&&(a.on("focus_toolbar_first",(()=>{const e=w(!1);e&&e.focus()})),a.on("focus_toolbar_last",(()=>{const e=w(!0);e&&e.focus()})))}),[]);const S=(0,n.useMemo)((()=>t.filter((e=>!e.hidden))),[t]);if(!o.show&&0===S.length)return null;const x={key:"more",label:d.get("Menu.More"),getSvgIconShape:Wh,hidden:!1,active:h,enabled:()=>p,action:()=>g(!h)};if(S.length>i){const e=S.splice(-(S.length-i)-1);m(!0),v([...e,...r.actions])}const L=u&&a&&a.refocusContent?e=>{"Tab"===e.key&&(e.shiftKey&&w(!1)===e.target||!e.shiftKey&&w(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),a.refocusContent())}:null,k=S.length>0,E=f.length>0,N=k&&o.show||E&&o.show,D=n.createElement(So,{ref:b,onKeyDown:L,container:!0,gap:0,wrap:"nowrap"},k&&n.createElement(Sg,{actions:S,first:!0,last:!E&&!o.show}),E&&n.createElement(Sg,{ref:_,ariaExpanded:h,actions:[x],first:!k,last:!o.show,addAnchor:!0}),N&&n.createElement(So,{item:!0,className:bg,style:y},n.createElement(Vh,{orientation:"vertical"})),o.show&&n.createElement(Sg,{actions:c,first:!k&&!E,last:!0}),h&&n.createElement(_g,{show:h,actions:f,alignTo:_,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{g(!1)}}));return s.show?n.createElement(wg,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:Lg,transformOrigin:kg,hideBackdrop:!0,style:xg,PaperProps:{className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:C.spacing(1,1)}}},D):e&&D};function Ng(e){return(0,bt.Z)("MuiInputAdornment",e)}const Dg=(0,_t.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ig;const qg=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Rg=(0,vt.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Ft.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Dg.positionStart}&:not(.${Dg.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Og=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=i,u=(0,dt.Z)(i,qg),h=qs()||{};let g=d;d&&h.variant,h&&!g&&(g=h.variant);const p=(0,ut.Z)({},i,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:r,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${(0,Ft.Z)(o)}`,s,i&&"hiddenLabel",r&&`size${(0,Ft.Z)(r)}`]};return(0,gt.Z)(a,Ng,t)})(p);return(0,yt.jsx)(Is.Provider,{value:null,children:(0,yt.jsx)(Rg,(0,ut.Z)({as:s,ownerState:p,className:(0,ht.Z)(m.root,r),ref:t},u,{children:"string"!=typeof o||l?(0,yt.jsxs)(n.Fragment,{children:["start"===c?Ig||(Ig=(0,yt.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,yt.jsx)(Io,{color:"text.secondary",children:o})}))})})),Tg=Og,Ag=e=>lr((e=>({...e,shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e)),Mg="/qListObjectDef",Pg=(0,vt.ZP)(Tg)((({theme:e})=>({color:e.listBox?.content?.color}))),Fg=(0,vt.ZP)(ga)((({theme:e})=>({color:e.listBox?.content?.color})));function Bg({selections:e,model:t,keyboard:i,dense:o=!1,visible:r=!0}){const{translator:s}=(0,n.useContext)($l),[a,l]=(0,n.useState)(""),c=Ht(),{getStoreValue:d}=kh(t),u=async()=>{if(e.isModal())try{await t.abortListObjectSearch(Mg)}finally{l("")}};(0,n.useEffect)((()=>{r||u()}),[r]),(0,n.useEffect)((()=>(e.on("deactivated",u),()=>{e.removeListener&&e.removeListener("deactivated",u)})),[]);return r?n.createElement(Fg,{startAdornment:n.createElement(Pg,{position:"start"},n.createElement(Ag,{size:o?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,backgroundColor:"transparent","& fieldset":{border:`1px solid ${c.palette.divider}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},o&&{fontSize:12,paddingLeft:c.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],size:"small",fullWidth:!0,placeholder:s.get("Listbox.Search"),value:a,onFocus:()=>{e.isModal()||e.begin(["/qListObjectDef"])},onChange:async e=>(l(e.target.value),e.target.value.length?t.searchListObjectFor(Mg,e.target.value):u()),onKeyDown:async n=>{let i;switch(n.key){case"Enter":i=await(async()=>{let n;return await t.searchListObjectFor(Mg,a)&&a.length&&d("listCount")>0&&(n=t.acceptListObjectSearch(Mg,!0),e.selectionsMade=!0,l("")),n})();break;case"Escape":i=e.isActive()&&e.cancel(),n.preventDefault(),n.stopPropagation()}return i},inputProps:{tabIndex:!i||i.enabled&&!i.active?-1:0}}):null}function Vg(e){return Object.keys(Qa().prototype).forEach((t=>{e[t]=Qa().prototype[t]})),Qa().init(e),e}const Wg=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,r=!1;const s={id:n.id,setLayout(e){i=e},begin(e){const i=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",i),i.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin(n,e,!0))},clear(){return r=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return r=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return r=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const i=this.begin([t.params[0]]);if(!e.isModal())return!1;await i;const o=await n[t.method](...t.params);return r="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(n),goModal:e=>t.begin(n,e,!1),noModal:(e=!1)=>t.end(e)};return Vg(s),s};function zg(e,t,i){const o=Array.isArray(i)?i:[i],[r]=xc(e),[s]=dc(t),a=t?t.id:null,[l]=_c(),[c]=Cc(),d=l.get(e.id);let u=c.get(a);return(0,n.useEffect)((()=>{r&&t&&!u&&(u=Wg({appSelections:r,appModal:d,model:t}),c.set(a,u),c.dispatch(!0))}),[r,t]),(0,n.useEffect)((()=>{if(!u)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=(({elements:e,objectSelections:t})=>{const n=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const i=e.map((e=>"string"==typeof e?document.querySelector(e):e?.current)).filter((e=>!!e&&!!document.contains(e)));i.length&&!i.some((e=>e.contains(n.target)))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",n)},deactivateClickOut(){document.removeEventListener("mousedown",n)}}})({elements:o,objectSelections:u});return u.addListener("activated",e),u.addListener("deactivated",t),()=>{u.removeListener("activated",e),u.removeListener("deactivated",t)}}),[u]),(0,n.useEffect)((()=>{u&&u.setLayout(s)}),[u,s]),[u]}const Hg=(e,t,n)=>e?.[t]??n;function jg(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return Hg(t,"qSelected",0)+Hg(t,"qSelectedExcluded",0)+Hg(t,"qLocked",0)+Hg(t,"qLockedExcluded",0)>0}function Ug({alignTo:e,show:t,close:i,app:o,fieldName:r,stateName:s="$"}){const a=t&&Boolean(e.current),[l,c]=(0,n.useState)(0),d=Ht(),[u]=hc({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[r]}}},o,r,s),h=(0,n.useCallback)((()=>{u.lock("/qListObjectDef")}),[u]),g=(0,n.useCallback)((()=>{u.unlock("/qListObjectDef")}),[u]),{translator:p}=(0,n.useContext)($l),m=(0,n.useRef)(),f=(0,n.useRef)(),[v]=zg(o,u,f),[_]=dc(u);if((0,n.useEffect)((()=>{v&&a&&(v.isModal(u)||v.goModal("/qListObjectDef"))}),[v,a]),!u||!_||!p)return null;const b=!0===_.qListObject.qDimensionInfo.qLocked,C=(e,t)=>{const n="escapeKeyDown"!==t;v.noModal(n),i()},y=Oh({layout:_,model:u,translator:p}),w=jg(_);return n.createElement(Md,{open:a,onClose:C,anchorEl:e.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},n.createElement(So,{container:!0,direction:"column",gap:0,ref:f},n.createElement(So,{item:!0,container:!0,style:{padding:d.spacing(1)}},n.createElement(So,{item:!0},b?n.createElement(uo,{onClick:g,disabled:!b,size:"large"},n.createElement(Ec,{title:p.get("Listbox.Unlock")})):n.createElement(uo,{onClick:h,disabled:!w,size:"large"},n.createElement(Nc,{title:p.get("Listbox.Lock")}))),n.createElement(So,{item:!0,xs:!0}),n.createElement(So,{item:!0},n.createElement(Eg,{more:{enabled:!b,actions:y,alignTo:m,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:v,onConfirm:C,onCancel:()=>C(0,"escapeKeyDown")}}))),n.createElement(So,{item:!0,xs:!0},n.createElement("div",{ref:m}),n.createElement(Bg,{selections:v,model:u,listCount:l,visible:!0}),n.createElement(Nh,{model:u,selections:v,direction:"ltr",onSetListCount:e=>c(e)}))))}function $g({field:e,api:t,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=(()=>{})}){const{translator:a}=(0,n.useContext)($l),l=r||(0,n.useRef)(),c=Ht(),[d,u]=(0,n.useState)(!1),h=()=>{u(!1),s()},g=e.selections[i];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 C="";g.qTotal===_&&g.qTotal>1?C=a.get("CurrentSelections.All"):_>1&&g.qTotal?C=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(C=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[i]&&(C=`${e.states[i]}: ${C}`);const y=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:v}];y.forEach(((e,t)=>{e.offset=t?y[t-1].offset+y[t-1].ratio:0}));let w=null,S=null,x=null,L=null;return r||(w=n.createElement(So,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},n.createElement(Io,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g.qField),n.createElement(Io,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},C)),g.qLocked?S=n.createElement(So,{item:!0},n.createElement(uo,{size:"large"},n.createElement(Ec,null))):g.qOneAndOnlyOne||(S=n.createElement(So,{item:!0},n.createElement(uo,{title:a.get("Selection.Clear"),onClick:n=>{n.stopPropagation(),t.clearField(g.qField,e.states[i])},size:"large"},n.createElement(cr,null)))),x=n.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===b&&y.map((e=>n.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),L=n.createElement(So,{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)&&u(!d)})||null},w,S,x,d&&n.createElement(Ug,{alignTo:l,show:d,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}))),r?n.createElement(Ug,{alignTo:l,show:!0,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}):L}const Kg=e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current};function Gg(e){return(0,bt.Z)("MuiBadge",e)}(0,_t.Z)("MuiBadge",["root","badge","invisible"]);const Zg=["badgeContent","component","children","invisible","max","slotProps","slots","showZero"],Qg=n.forwardRef((function(e,t){const{component:n,children:i,max:o=99,slotProps:r={},slots:s={},showZero:a=!1}=e,l=Bs(e,Zg),{badgeContent:c,max:d,displayValue:u,invisible:h}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=Kg({badgeContent:t,max:i});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=i}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}(Fs({},e,{max:o})),g=Fs({},e,{badgeContent:c,invisible:h,max:d,showZero:a}),p=(e=>{const{invisible:t}=e,n={root:["root"],badge:["badge",t&&"invisible"]};return(0,gt.Z)(n,Gg,void 0)})(g),m=n||s.root||"span",f=td({elementType:m,externalSlotProps:r.root,externalForwardedProps:l,additionalProps:{ref:t},ownerState:g,className:p.root}),v=s.badge||"span",_=td({elementType:v,externalSlotProps:r.badge,ownerState:g,className:p.badge});return(0,yt.jsxs)(m,Fs({},f,{children:[i,(0,yt.jsx)(v,Fs({},_,{children:u}))]}))})),Yg=Qg,Xg=e=>!e||!fr(e);function Jg(e){return(0,bt.Z)("MuiBadge",e)}const ep=(0,_t.Z)("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"]),tp=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],np=(0,vt.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ip=(0,vt.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,Ft.Z)(n.anchorOrigin.vertical)}${(0,Ft.Z)(n.anchorOrigin.horizontal)}${(0,Ft.Z)(n.overlap)}`],"default"!==n.color&&t[`color${(0,Ft.Z)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ep.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),op=n.forwardRef((function(e,t){var n,i,o,r,s,a;const l=(0,ft.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:u="span",components:h={},componentsProps:g={},overlap:p="rectangular",color:m="default",invisible:f=!1,max:v,badgeContent:_,slots:b,slotProps:C,showZero:y=!1,variant:w="standard"}=l,S=(0,dt.Z)(l,tp),x=Kg({anchorOrigin:c,color:m,overlap:p,variant:w});let L=f;!1===f&&(0===_&&!y||null==_&&"dot"!==w)&&(L=!0);const{color:k=m,overlap:E=p,anchorOrigin:N=c,variant:D=w}=L?x:l,I=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=e,a={root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${(0,Ft.Z)(n.vertical)}${(0,Ft.Z)(n.horizontal)}`,`anchorOrigin${(0,Ft.Z)(n.vertical)}${(0,Ft.Z)(n.horizontal)}${(0,Ft.Z)(o)}`,`overlap${(0,Ft.Z)(o)}`,"default"!==t&&`color${(0,Ft.Z)(t)}`]};return(0,gt.Z)(a,Jg,s)})((0,ut.Z)({},l,{anchorOrigin:N,invisible:L,color:k,overlap:E,variant:D}));let q;"dot"!==D&&(q=_&&Number(_)>v?`${v}+`:_);const R=null!=(n=null!=(i=null==b?void 0:b.root)?i:h.Root)?n:np,O=null!=(o=null!=(r=null==b?void 0:b.badge)?r:h.Badge)?o:ip,T=null!=(s=null==C?void 0:C.root)?s:g.root,A=null!=(a=null==C?void 0:C.badge)?a:g.badge;return(0,yt.jsx)(Yg,(0,ut.Z)({invisible:f,badgeContent:q,showZero:y,max:v},S,{slots:{root:R,badge:O},className:(0,ht.Z)(null==T?void 0:T.className,I.root,d),slotProps:{root:(0,ut.Z)({},T,Xg(R)&&{as:u,ownerState:(0,ut.Z)({},null==T?void 0:T.ownerState,{anchorOrigin:N,color:k,overlap:E,variant:D})}),badge:(0,ut.Z)({},A,{className:(0,ht.Z)(I.badge,null==A?void 0:A.className)},Xg(O)&&{ownerState:(0,ut.Z)({},null==A?void 0:A.ownerState,{anchorOrigin:N,color:k,overlap:E,variant:D})})},ref:t}))})),rp=op,sp=e=>lr((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)),ap="MultiState-item",lp=(0,vt.ZP)(So)((({theme:e})=>({[`&.${ap}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}})));function cp({field:e,api:t,moreAlignTo:i=null,onClose:o=(()=>{})}){const[r,s]=(0,n.useState)(!!i),[a,l]=(0,n.useState)(-1),[c,d]=(0,n.useState)(i?i.current:null),u=i||(0,n.useRef)(),{translator:h}=(0,n.useContext)($l),g=h.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=n.createElement(n.Fragment,null,n.createElement(So,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(rp,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},n.createElement(Io,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.name))),n.createElement(So,{item:!0},n.createElement("div",{style:{width:"12px"}})),n.createElement(So,{item:!0},n.createElement(uo,{size:"large"},n.createElement(sp,null)))));const f=n.createElement(mr,{dense:!0},n.createElement(Rr,{title:g,onClick:()=>{e.states.forEach((n=>t.clearField(e.name,n)))}},n.createElement(wa,{variant:"contained",fullWidth:!0},g)),e.states.map(((i,o)=>n.createElement(Rr,{key:o,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},n.createElement(In,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},n.createElement($g,{field:e,api:t,stateIx:o,skipHandleShowListBoxPopover:!0})))))),v=n.createElement(Md,{open:r,onClose:()=>{s(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},f),_=i?v:n.createElement(lp,{container:!0,gap:0,className:ap,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),u.current=e.currentTarget,s(!r))}},m,r&&v,a>-1&&n.createElement(Ug,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return i&&a>-1?n.createElement(Ug,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const dp="More-item",up="More-badge",hp=(0,vt.ZP)(So)((({theme:e})=>({[`&.${dp}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${up}`]:{padding:e.spacing(0,1)}})));function gp({items:e=[],api:t}){const i=Ht(),[o,r]=(0,n.useState)(!1),[s,a]=(0,n.useState)(-1),[l,c]=(0,n.useState)(null),d=(0,n.useRef)(),u=()=>{a(-1)};let h=null;return s>-1&&(h=e[s].states.length>1?n.createElement(cp,{field:e[s],api:t,moreAlignTo:d,onClose:u}):n.createElement($g,{field:e[s],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:u})),n.createElement(hp,{container:!0,gap:0,className:dp,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},n.createElement(So,{item:!0},n.createElement(In,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},n.createElement(Io,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),n.createElement(So,{item:!0},n.createElement(uo,{size:"large"},n.createElement(sp,null))),o&&n.createElement(Md,{open:o,onClose:()=>{r(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},n.createElement(mr,{dense:!0},e.map(((e,i)=>n.createElement(Rr,{key:i,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,i)},n.createElement(In,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?n.createElement(cp,{field:e,api:t}):n.createElement($g,{field:e,api:t}))))))),h)}function pp(e,t,n="$"){e.qSelections.forEach((e=>{const i=e.qField,o=t[i]=t[i]||{name:i,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function mp({api:e,app:t}){const i=Ht(),[o]=pc(t),[r]=dc(o),[s,a]=(0,n.useState)({items:[],more:[]}),[l]=wc(),[c,d]=kc(),[u,h]=(0,n.useState)(0);return(0,n.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-72,n=Math.floor(t/120);h(n)}),[d]),(0,n.useEffect)((()=>{if(!(t&&o&&r&&u))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&pp(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>pp(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e]))}(r);a((n=>{const i=e;if((()=>{const e=l.get(t.id);return e&&"njsListbox"===e.genericType})()&&i.length+1===n.items.length){const e=n.items.filter((e=>!1===i.some((t=>e.name===t.name))))[0],{qField:t}=e.selections[0];e.selections=[{qField:t}];const o=n.items.indexOf(e);i.splice(o,0,e)}let o=[];return u<i.length&&(o=i.splice(u-i.length)),{items:i,more:o}}))}),[t,o,r,e.isInModal(),u]),n.createElement(So,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map((t=>n.createElement(So,{item:!0,key:`${t.states.join("::")}::${t.name}`,style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},t.states.length>1?n.createElement(cp,{field:t,api:e}):n.createElement($g,{field:t,api:e})))),s.more.length>0&&n.createElement(So,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},n.createElement(gp,{items:s.more,api:e})))}const fp=e=>lr((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)),vp=e=>lr((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));function _p({api:e,app:t}){const{translator:i}=(0,n.useContext)($l),[o]=mc(t);return n.createElement(So,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},n.createElement(So,{item:!0},n.createElement(uo,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},n.createElement(fp,null))),n.createElement(So,{item:!0},n.createElement(uo,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},n.createElement(vp,null))),n.createElement(So,{item:!0},n.createElement(uo,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},n.createElement(Kh,null))))}function bp({app:e}){const t=Ht(),[i]=xc(e);return i?n.createElement(So,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"}},n.createElement(So,{item:!0,style:{borderRight:`1px solid ${t.palette.divider}`}},n.createElement(_p,{api:i,app:e})),n.createElement(So,{item:!0,xs:!0,style:{backgroundColor:t.palette.background.darker,overflow:"hidden"}},n.createElement(mp,{api:i,app:e}))):null}var Cp=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},yp=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),wp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Sp=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},xp=void 0;xp="undefined"!=typeof window?window:"undefined"!=typeof self?self:s.g;var Lp=null,kp=null,Ep=xp.clearTimeout,Np=xp.setTimeout,Dp=xp.cancelAnimationFrame||xp.mozCancelAnimationFrame||xp.webkitCancelAnimationFrame,Ip=xp.requestAnimationFrame||xp.mozRequestAnimationFrame||xp.webkitRequestAnimationFrame;null==Dp||null==Ip?(Lp=Ep,kp=function(e){return Np(e,20)}):(Lp=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,2),n=t[0],i=t[1];Dp(n),Ep(i)},kp=function(e){var t=Ip((function(){Ep(n),e()})),n=Np((function(){Dp(t),e()}),20);return[t,n]});var qp=function(e){function t(){var e,n,i;Cp(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=Sp(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var e=i.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(i._parentNode){var r=i._parentNode.offsetHeight||0,s=i._parentNode.offsetWidth||0,a=window.getComputedStyle(i._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,c=parseInt(a.paddingRight,10)||0,d=parseInt(a.paddingTop,10)||0,u=parseInt(a.paddingBottom,10)||0,h=r-d-u,g=s-l-c;(!t&&i.state.height!==h||!n&&i.state.width!==g)&&(i.setState({height:r-d-u,width:s-l-c}),o({height:r,width:s}))}},i._setRef=function(e){i._autoSizer=e},Sp(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),yp(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=function(e){var t=void 0,n=void 0,i=void 0,o=void 0,r=void 0,s=void 0,a=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,o=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=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)){var t=this;s(this),this.__resizeRAF__&&Lp(this.__resizeRAF__),this.__resizeRAF__=kp((function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,d="";i="animationstart";var u="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g=document.createElement("fakeelement");if(void 0!==g.style.animationName&&(c=!0),!1===c)for(var p=0;p<u.length;p++)if(void 0!==g.style[u[p]+"AnimationName"]){d="-"+u[p].toLowerCase()+"-",i=h[p],c=!0;break}t="@"+d+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=d+"animation: 1ms "+n+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){var d=r.ownerDocument,u=xp.getComputedStyle(r);u&&"static"===u.position&&(r.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var i=(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%; }',r=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(n.createTextNode(i)),r.appendChild(s)}}(d),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=d.createElement("div")).className="resize-triggers";var h=d.createElement("div");h.className="expand-trigger",h.appendChild(d.createElement("div"));var g=d.createElement("div");g.className="contract-trigger",r.__resizeTriggers__.appendChild(h),r.__resizeTriggers__.appendChild(g),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),i&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(r)},r.__resizeTriggers__.addEventListener(i,r.__resizeTriggers__.__animationListener__))}r.__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(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,i=e.className,o=e.disableHeight,r=e.disableWidth,s=e.style,a=this.state,l=a.height,c=a.width,d={overflow:"visible"},u={},h=!1;return o||(0===l&&(h=!0),d.height=0,u.height=l),r||(0===c&&(h=!0),d.width=0,u.width=c),(0,n.createElement)("div",{className:i,ref:this._setRef,style:wp({},d,s)},!h&&t(u))}}]),t}(n.PureComponent);qp.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const Rp=qp,Op="ListBoxInline-listBoxHeader",Tp="ListBoxInline-screenReaderOnly",Ap=(0,vt.ZP)(So)((({theme:e})=>({backgroundColor:e.listBox?.backgroundColor??e.palette.background.default,[`& .${Op}`]:{alignSelf:"center",display:"inline-flex"},[`& .${Tp}`]:{position:"absolute",height:0,width:0,overflow:"hidden"}}))),Mp=(0,vt.ZP)(Io)((({theme:e})=>({color:e.listBox?.title?.main?.color,fontSize:e.listBox?.title?.main?.fontSize,fontFamily:e.listBox?.title?.main?.fontFamily})));function Pp({options:e={}}){const{direction:t,frequencyMode:i,listLayout:o,checkboxes:r,search:s=!0,focusSearch:a=!1,toolbar:l=!0,rangeSelect:c=!0,model:d,selections:u,update:h,fetchStart:g,selectDisabled:p=(()=>!1),postProcessPages:m,calculatePagesHeight:f,showGray:v=!0,scrollState:_}=e,b=Ht(),C=(0,n.useCallback)((()=>{d.lock("/qListObjectDef")}),[d]),y=(0,n.useCallback)((()=>{d.unlock("/qListObjectDef")}),[d]),{translator:w,keyboardNavigation:S,themeApi:x}=(0,n.useContext)($l);b.listBox=(e=>{const t=t=>e.getStyle("object","",`listBox.${t}`);return{backgroundColor:t("backgroundColor"),title:{main:{color:t("title.main.color"),fontSize:t("title.main.fontSize"),fontFamily:t("title.main.fontFamily")}},content:{color:t("content.color"),fontSize:t("content.fontSize"),fontFamily:t("content.fontFamily")}}})(x);const L=(0,n.useRef)(),[k,E]=(()=>{const[e,t]=(0,n.useState)({});return[e,(0,n.useCallback)((e=>{t({current:e})}),[t])]})(),[N]=dc(d),[D,I]=(0,n.useState)(!1),[q,R]=(0,n.useState)(!1),[O,T]=(0,n.useState)(!1),A=function({setKeyboardActive:e}){return t=>{const{keyCode:n}=t.nativeEvent;switch(n){case Hu.ENTER:case Hu.SPACE:if(!t.target.classList.contains("listbox-container"))return;(t=>{const n=t.querySelector(".search input, .value.selector, .value, .ActionsToolbar-* button");e(!0),n&&n.focus()})(t.currentTarget);break;case Hu.ESCAPE:i=t.currentTarget,e(!1),i.focus();break;default:return}var i;t.preventDefault()}}({setKeyboardActive:T}),M={enabled:S,active:O};if((0,n.useEffect)((()=>{const e=()=>{I(!0)},t=()=>{I(!1),"toggle"===s&&R(!1)};return u&&(u.isModal()||(u.on("deactivated",t),u.on("activated",e)),I(u.isActive())),()=>{u&&u.removeListener&&(u.removeListener("deactivated",e),u.removeListener("activated",t))}}),[u]),(0,n.useEffect)((()=>{if(k&&k.current&&(s&&a||"toggle"===s&&q)){const e=k.current.querySelector("input");e&&e.focus()}}),[k&&k.current,q,s,a]),!d||!N||!w)return null;const P=!0===N.qListObject.qDimensionInfo.qLocked,F=l?Oh({layout:N,model:d,translator:w}):[],B=jg(N),V=(!0===s||"toggle"===s&&q)&&!p(),W=N.layoutOptions?.dense??!1,z=49+(V?W?27:40:0)+(W?39:49);return n.createElement(Ap,{className:"listbox-container",container:!0,tabIndex:M.enabled&&!M.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:`${z}px`,flexFlow:"column nowrap"},onKeyDown:A},l&&n.createElement(So,{item:!0,container:!0,style:{padding:b.spacing(1)}},n.createElement(So,{item:!0},P?n.createElement(uo,{tabIndex:-1,onClick:y,disabled:!P,size:"large"},n.createElement(Ec,{title:w.get("Listbox.Unlock")})):"toggle"!==s||B?n.createElement(uo,{onClick:C,tabIndex:-1,disabled:!B,size:"large"},n.createElement(Nc,null)):n.createElement(uo,{onClick:()=>{R(!q)},tabIndex:-1,title:w.get("Listbox.Search"),size:"large"},n.createElement(Ag,null))),n.createElement(So,{item:!0,className:Op},n.createElement(Mp,{variant:"h6",noWrap:!0},N.title||N.qListObject.qDimensionInfo.qFallbackTitle)),n.createElement(So,{item:!0,xs:!0}),n.createElement(So,{item:!0},n.createElement(Eg,{more:{enabled:!P,actions:F,alignTo:L,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:D,api:u,onConfirm:()=>{},onCancel:()=>{}}}))),n.createElement(So,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:`${z}px`},role:"region","aria-label":w.get("Listbox.ResultFilterLabel")},n.createElement(So,{item:!0,ref:E},n.createElement("div",{className:Tp},w.get("Listbox.Search.ScreenReaderInstructions")),n.createElement(Bg,{selections:u,model:d,dense:W,keyboard:M,visible:V,searchContainerRef:E})),n.createElement(So,{item:!0,xs:!0},n.createElement("div",{ref:L}),n.createElement("div",{className:Tp},w.get("Listbox.ScreenReaderInstructions")),n.createElement(Rp,null,(({height:e,width:s})=>n.createElement(Nh,{model:d,selections:u,direction:t,listLayout:o,frequencyMode:i,rangeSelect:c,checkboxes:r,height:e,width:s,update:h,fetchStart:g,postProcessPages:m,calculatePagesHeight:f,selectDisabled:p,keyboard:M,showGray:v,scrollState:_}))))))}function Fp({app:e,fieldIdentifier:t,qId:i,stateName:o,element:r,options:s}){const{isExistingObject:a,hasExternalSelectionsApi:l}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:s}),[c,d]=(0,n.useState)(0);(0,n.useEffect)((()=>{if(c)throw new Error("Source or selection Api can not change after a listbox has been mounted");d(c+1)}),[a,l]);const u=a?function({app:e,qId:t,options:i={}}){const[o,r]=(0,n.useState)(),[s]=sc(),{sessionModel:a}=i,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(i).filter((e=>l.includes(e)));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,n.useEffect)((()=>{a?r(a):async function(){const n=s.get(t);if(n)r(n);else{const n=await e.getObject(t);s.set(n.id,n),r(n)}}()}),[]),o}({app:e,qId:i,options:s}):function({app:e,fieldIdentifier:t,stateName:i,options:o={}}){const[r,s]=(0,n.useState)(""),[a,l]=(0,n.useState)(!0),[c,d]=(0,n.useState)();(0,n.useEffect)((()=>{const n=o.histogram||"N"!==o.frequencyMode;t.qLibraryId&&n?async function(){try{const n=await e.getDimension(t.qLibraryId),i=await n.getLayout();s(i.qDim.qFieldDefs?i.qDim.qFieldDefs[0]:""),l(!1)}catch(e){throw l(!1),s({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():l(!1)}),[]);const{title:u,dense:h,checkboxes:g,properties:p={}}=o;let{frequencyMode:m,histogram:f=!1}=o;switch(r&&r.failedToFetchFieldDef&&(f=!1,m="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(m):m="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(m):m="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(m):m="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(m):m="R";break;default:m="N"}const v={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:i,qShowAlternatives:!0,qFrequencyMode:f&&"N"===m?"V":m,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:f,checkboxes:g,layoutOptions:{dense:h},title:u};let _;if(Ol()(!0,v,p),t.qLibraryId?(v.qListObjectDef.qLibraryId=t.qLibraryId,_=t.qLibraryId):(v.qListObjectDef.qDef.qFieldDefs=[t],_=t),"N"!==m||f){const e=t.qLibraryId?r:_;v.frequencyMax={qValueExpression:`Max(AGGR(Count([${e}]), [${e}]))`}}const[b]=hc(v,a?null:e,_,i);return(0,n.useEffect)((()=>{b&&d(b)}),[b]),c}({app:e,fieldIdentifier:t,stateName:o,options:s}),h=(0,n.useRef)(r),g=l?s.selectionsApi:zg(e,u,h)[0];if(!g||!u)return null;const p={...s,selections:g,model:u};return n.createElement(Pp,{options:p})}const Bp=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Vp([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function Wp(){return Bp.map(Vp).join("")}function zp(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Hp(e,t){let n=0;for(let i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n}function jp({dc:e,def:t,properties:n}){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 i=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const r="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return r.qDef.cId=r.qDef.cId||Wp(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(r),zp(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,i)):(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(r)),r},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return Hp(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const r="string"==typeof n?{qDef:{qDef:n}}:{...n,qDef:n.qDef||{}};r.qDef.cId=r.qDef.cId||Wp(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(r),zp(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,i)):(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(r))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];Hp(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,i,n)},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 Up=(e,t,n)=>{if(null==e||null==t)return n;const i=t.split(".");let o=e;for(let e=0;e<i.length;++e){const t=i[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},$p=(e,t,n)=>{if(null==e||null==t)return;const i=t.split("."),o=i[i.length-1];let r=e;for(let e=0;e<i.length-1;++e){const t=i[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+i[e+1])?{}:[]),r=r[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?r[o]=n:delete r[o]},Kp=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);if(n>o)return!1;n=o}return!0}return!1},Gp=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},Zp=function(e,t){let n,i=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i},Qp=2**53-1;function Yp(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Xp(e,t){const n=Ol()(!0,{},t,e);return Up(n,"qOtherTotalSpec.qOtherCounted")||$p(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Up(n,"qOtherTotalSpec.qOtherLimit")||$p(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Jp(e,t){return Ol()(!0,{},t,e)}function em(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const tm={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===Up(e,t)&&$p(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Yp,importCommonProperties:function(e,t,n){const i="masterobject"===Up(t,"properties.qInfo.qType")?"masterobject":Up(n,"qInfo.qType");$p(e,"qInfo.qType",i),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,i){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=i},createDefaultDimension:Xp,createDefaultMeasure:Jp,resolveValue:em,getHypercubePath:function(e){const t=Up(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 n=e.data[0],i=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==i)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(Gp(t.qInterColumnSortOrder,o),++o):(--o,Zp(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach((o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(i.qLayoutExclude.quarantine=Ol()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?$p(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||Yp(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]})),i=Ol()(!0,{},t,i),null===i.components&&(i.components=[]),i},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],i=t.dimensions||{max:0},o=t.measures||{max:0},r=em(o.max,n.dimensions.length,Qp),s=em(o.min,n.dimensions.length,0);return{maxDimensions:em(i.max,r,Qp),minDimensions:em(i.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>i&&i>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>n||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!i&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:r}){const s=e.data[0];r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.qHyperCubeDef||(r.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>t&&t>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&s.dimensions.length&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)i.qDimensions.length<t?i.qDimensions.push(Xp(r.dimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(Xp(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(Xp(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)i.qDimensions.length<n?i.qDimensions.push(Xp(r.excludedDimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(Xp(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)i.qMeasures.length<t?i.qMeasures.push(Jp(r.measures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Jp(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Jp(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)i.qMeasures.length<n?i.qMeasures.push(Jp(r.excludedMeasures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(Jp(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=Up(e,n||"").qHyperCubeDef,o=[...i.qDimensions];i.qDimensions=[],o.forEach((n=>{i.qDimensions.push(n),t.dimensions.added(n,e)}))}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const i=Up(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach((n=>{i.qMeasures.push(n),t.measures.added(n,e)}))}}},nm={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),i=e.qProperty,o=Up(i,t||""),r=o.qHyperCubeDef,s=n.data[0];if(r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),s.dimensions.push(...r.qDimensions),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...r.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...r.qMeasures),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...r.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=r.qInterColumnSortOrder.concat(),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();Kp(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.qLayoutExclude,Object.keys(i).forEach((e=>{n.properties[e]=i[e]})),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.disabled&&(Object.keys(i.qLayoutExclude.disabled).forEach((e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=i.qLayoutExclude.disabled[e])})),delete i.qLayoutExclude.disabled),i.qLayoutExclude.changed&&(tm.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&(a=i.qLayoutExclude.quarantine,!(0===Object.keys(a).length&&a.constructor===Object))||delete i.qLayoutExclude,n;var a}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const r={qChildren:[]},s=tm.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=Up(t,o||"").qHyperCubeDef,l=Up(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h}=tm.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=tm.getDefaultDimension(),defaultMeasure:p=tm.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,tm.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h})&&tm.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h,newHyperCubeDef:l}),tm.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),tm.addDefaultMeasures({exportFormat:e,maxMeasures:u,minMeasures:h,newHyperCubeDef:l,defaultMeasure:p}),tm.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),tm.copyPropertyIfExist("qMaxStackedCells",a,l),tm.copyPropertyIfExist("qNoOfLeftDims",a,l),tm.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),tm.copyPropertyOrSetDefault("qMode",a,l,"S"),tm.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),tm.copyPropertyOrSetDefault("qSortbyYValue",a,l),tm.copyPropertyOrSetDefault("qIndentMode",a,l),tm.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),tm.importCommonProperties(s,e,t),tm.updateDimensionsOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),tm.updateMeasuresOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),r.qProperty=s,r}(e)},im=e=>Up(e,"data.targets.0.propertyPath"),om={hypercube:nm};function rm(e){return(0,bt.Z)("MuiIcon",e)}(0,_t.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const sm=["baseClassName","className","color","component","fontSize"],am=(0,vt.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,Ft.Z)(n.color)}`],t[`fontSize${(0,Ft.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),lm=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium"}=n,l=(0,dt.Z)(n,sm),c=(0,ut.Z)({},n,{baseClassName:i,color:r,component:s,fontSize:a}),d=(e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root","inherit"!==t&&`color${(0,Ft.Z)(t)}`,`fontSize${(0,Ft.Z)(n)}`]};return(0,gt.Z)(o,rm,i)})(c);return(0,yt.jsx)(am,(0,ut.Z)({as:s,className:(0,ht.Z)(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));lm.muiName="Icon";const cm=lm,dm=e=>lr((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 um({d:e}){const t=Ht();let i="inherit",o=t.palette.success.main;e.missing?o=t.palette.warning.main:e.error&&(i="error",o=t.palette.error.main);const r={color:o},s=n.createElement(Io,{style:{lineHeight:"30px",paddingRight:t.spacing(1)}},n.createElement(cm,null,e.missing||e.error?n.createElement(dm,{style:r}):n.createElement(Xd,{style:r})));return n.createElement(So,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},n.createElement(So,{item:!0},s),n.createElement(So,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},n.createElement(Io,{noWrap:!0,component:"p"},n.createElement(Io,{component:"span",variant:"subtitle2",color:i},e.description),n.createElement(Io,{component:"span"}," "),n.createElement(Io,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function hm({data:e}){const t=Ht();return n.createElement(So,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,i)=>{const o=e.descriptions.map(((e,t)=>n.createElement(um,{d:e,key:t})));return o.length>0&&n.createElement(So,{container:!0,item:!0,key:i,direction:"column",style:{paddingBottom:t.spacing(2)}},n.createElement(Io,{noWrap:!0,key:i,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function gm({title:e="Error",message:t="",data:i=[]}){return n.createElement(So,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},n.createElement(So,{item:!0},n.createElement(dm,{style:{fontSize:"38px"}})),n.createElement(So,{item:!0},n.createElement(Io,{variant:"h6",align:"center","data-tid":"error-title"},e)),n.createElement(So,{item:!0},n.createElement(Io,{variant:"subtitle1",align:"center","data-tid":"error-message"},t)),n.createElement(hm,{data:i}))}function pm(){return pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pm.apply(this,arguments)}const mm="Progress-root",fm="Progress-front",vm="Progress-back",_m=(0,vt.ZP)("div")((({theme:e})=>({[`&.${mm}`]:{position:"relative",display:"inline-block"},[`& .${fm}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${vm}`]:{color:e.palette.divider}}))),bm={small:16,medium:32,large:64,xlarge:128};function Cm({size:e="medium",...t}){const i=bm[e];return n.createElement(_m,{className:mm},n.createElement(Ua,pm({variant:"determinate",value:100,className:vm,size:i,thickness:3},t)),n.createElement(Ua,pm({variant:"indeterminate",disableShrink:!0,className:fm,size:i,thickness:3},t)))}function ym(){return ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ym.apply(this,arguments)}const wm={stripes:"LongRunningQuery-stripes"},Sm=(0,vt.ZP)(So)((()=>({[`& .${wm.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 xm({cancel:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(Sm,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},n.createElement(So,{item:!0},n.createElement(Cm,null)),n.createElement(So,{item:!0},n.createElement(Io,{variant:"h6",align:"center","data-tid":"update-active"},t.get("Object.Update.Active")))),n.createElement(So,ym({item:!0},i),n.createElement(wa,{variant:"contained",onClick:e},t.get("Cancel"))))}function Lm({retry:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(So,{item:!0},n.createElement(dm,{style:{fontSize:"38px"}})),n.createElement(So,{item:!0},n.createElement(Io,{variant:"h6",align:"center","data-tid":"update-cancelled"},t.get("Object.Update.Cancelled"))),n.createElement(So,{item:!0},n.createElement(wa,ym({variant:"contained",onClick:e},i),t.get("Retry"))))}function km({canCancel:e,canRetry:t,api:i}){const{translator:o}=(0,n.useContext)($l);return n.createElement(So,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:wm.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&n.createElement(xm,{cancel:i.cancel,translator:o,className:wm.cancel}),t&&n.createElement(Lm,{retry:i.retry,translator:o,className:wm.retry}))}function Em(){return n.createElement(So,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n.createElement(Cm,{size:"large"}))}const Nm="Header-containerStyle",Dm="Header-containerTitleStyle",Im=(0,vt.ZP)(So)((({theme:e})=>({[`&.${Nm}`]:{flexGrow:0},[`&.${Dm}`]:{paddingBottom:e.spacing(1)}}))),qm=function({layout:e,sn:t,anchorEl:i,hovering:o,focusHandler:r}){const s=e.showTitles&&!!e.title,a=e.showTitles&&!!e.subtitle,l=e.qSelectionInfo&&e.qSelectionInfo.qInSelections,[c,d]=(0,n.useState)([]),[u,h]=kc(),[g,p]=(0,n.useState)(!1);(0,n.useEffect)((()=>{t&&t.component&&t.component.isHooked&&t.component.observeActions((e=>{d([...e,...t&&t.selectionToolbar&&t.selectionToolbar.items||[]])}))}),[t]),(0,n.useEffect)((()=>{if(!h)return;const{width:e}=h;p(e<221)}),[h]);const m=s||a,f=[Nm,...m?[Dm]:[]],v=(o||l)&&(g||!m),_=m&&!v&&!g,b=n.createElement(Eg,{show:_,selections:{show:l,api:t.component.selections,onKeyDeactivate:r.refocusContent},actions:c,popover:{show:v,anchorEl:i},focusHandler:r});return n.createElement(Im,{ref:u,item:!0,container:!0,wrap:"nowrap",className:f.join(" ")},n.createElement(So,{item:!0,zeroMinWidth:!0,xs:!0},n.createElement(So,{container:!0,wrap:"nowrap",direction:"column"},s&&n.createElement(Io,{variant:"h6",noWrap:!0,className:"njs-cell-title"},e.title),a&&n.createElement(Io,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title"},e.subtitle))),n.createElement(So,{item:!0},b))},Rm="Footer-itemStyle",Om=(0,vt.ZP)(So)((({theme:e})=>({[`& .${Rm}`]:{minWidth:0,paddingTop:e.spacing(1)}}))),Tm=function({layout:e}){return e&&e.showTitles&&e.footnote?n.createElement(Om,{container:!0},n.createElement(So,{item:!0,className:Rm},n.createElement(Io,{noWrap:!0,variant:"body2",className:"njs-cell-footer"},e.footnote))):null};class Am{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 Mm=function({sn:e,snOptions:t,snPlugins:i,layout:o,appLayout:r,halo:s}){const{component:a}=e,{theme:l,language:c,constraints:d,keyboardNavigation:u}=(0,n.useContext)($l),[h]=(0,n.useState)((()=>new Am)),[g,p]=(0,n.useState)(!1),[m,f]=(0,n.useState)(0),[v,_,b]=kc(),[C,y]=(0,n.useState)(null),w=(0,n.useCallback)((e=>{e&&y(e)}),[]);return(0,n.useEffect)((()=>{if(C)return a.created({options:t}),a.mounted(C),p(!0),()=>{h.stop(),a.willUnmount()}}),[C,a]),(0,n.useEffect)((()=>{g&&C&&_&&(!a.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const n=[];return d.passive||n.push("passive"),d.active||n.push("interact"),d.select||n.push("select"),s.app&&s.app.session&&n.push("fetch"),Promise.resolve(a.render({layout:o,options:t,plugins:i,embed:s.public.nebbie,context:{constraints:d,theme:s.public.theme,appLayout:r,keyboardNavigation:u,...a.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:n}}})).then((e=>{!1!==e&&(0===m&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),f(m+1))}))})))}),[_,t,i,C,b,o,r,l,c,d,g,u]),n.createElement("div",{ref:v,"data-render-count":m,style:{position:"relative",height:"100%"},className:"njs-viz"},n.createElement("div",{ref:w,style:{position:"absolute",width:"100%",height:"100%"}}))},Pm={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Fm={"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"};const Bm=(e,t)=>{const n=e?.bgImage;if(n){let i="";"media"!==n.mode&&"media"!==e.useImage||(i=n?.mediaUrl?.qStaticContentUrl?.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=function(e,t){return t?function(e){let t,n,i,o;if(e?.session?.config)return t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://",i+n.host}(e)+t:void 0}(t,i)),"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){let t="center center";return e?.bgImage?.position&&(t=Fm[e.bgImage.position]),t}(e),r=function(e){let t=Pm.originalSize;return e?.bgImage?.sizing&&(t=Pm[e.bgImage.sizing]),t}(e);return i?{url:i,pos:o,size:r}:void 0}},Vm=(e,t)=>{const n=e?.bgColor;if(n&&t)return n.useExpression?t.validateColor(n.colorExpression):n.color&&"none"!==n.color.color?t.getColorPickerColor(n.color,!0):void 0},Wm=(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 zm({delay:e=750}){const[t,i]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const t=setTimeout((()=>i(!0)),e);return()=>clearTimeout(t)}),[]),t?n.createElement(Em,null):null}const Hm=e=>!e.qError||7005===e.qError.qErrorCode,jm=(e,t,n,i,o)=>[...Array(e).keys()].map((e=>{const r=!(!t||!t[e]),s=r&&t[e].qError&&7005===t[e].qError.qErrorCode,a=r&&!s&&t[e].qError,l=s&&t[e].qCalcCondMsg,c=`${a?i:s?l||o:r&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}})),Um=e=>e&&(Array.isArray(e)?e:[e])||[],$m=(e,t,n,i)=>{const o=i.dimensions.min(),r=i.measures.min(),s=i.resolveLayout(t);return{reqDimErrors:jm(o,Um(s.qDimensionInfo),(e=>i.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:jm(r,Um(s.qMeasureInfo),(e=>i.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Km=(0,n.forwardRef)((({halo:e,model:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,currentId:a},l)=>{const{app:c,types:d}=e,{nebbie:u}=e.public,{disableCellPadding:h=!1}=e.context||{},{theme:g,translator:p,language:m,keyboardNavigation:f}=(0,n.useContext)($l),v=Ht(),[_,b,C]=kc(),[y,w]=(0,n.useReducer)(Wm,{loading:!1,loaded:!1,longRunningQuery:!1,error:(S=r)?{title:S.message}:null,sn:null,visualization:null});var S;const[x,{validating:L,canCancel:k,canRetry:E},N]=dc(t),[D]=uc(c),[I,q,R]=kc(),[O,T]=(0,n.useState)(i),[A,M]=(0,n.useState)(o),P=`njs-cell-${a}`,[F]=zg(c,t,[`#${P}`,".njs-action-toolbar-popover"]),[B,V]=(0,n.useState)(!1),W=(0,n.useRef)({enter:null,leave:null}),[z,H]=(0,n.useState)(void 0),[j,U]=(0,n.useState)(void 0),$=(0,n.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,n.useEffect)((()=>{Vg($.current)}),[]),(0,n.useEffect)((()=>{const t=x?.components?x.components.find((e=>"general"===e.key)):null;H(Vm(t,e.public.theme)),U(Bm(t,e.app))}),[x,e.public.theme,e.app,g]),$.current.blurCallback=t=>{e.root.toggleFocusOfCells(),t&&R&&R.focus()},$.current.refocusContent=()=>{y.sn.component&&"function"==typeof y.sn.component.focus&&y.sn.component.focus()},(0,n.useEffect)((()=>{if(r||!D||!x)return;if(y.visualization===x.visualization&&y.sn)return void(async e=>{const[n,i]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,r=0,s=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],u=d.dimensions.min(),h=d.measures.min(),g=d.resolveLayout(n),p=Um(g.qDimensionInfo).filter(Hm),m=Um(g.qMeasureInfo).filter(Hm);if(o+=u,r+=h,(p.length<u||m.length<h)&&(i=!0),g.qError){s=!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:i,aggMinD:o,aggMinM:r,hasLayoutErrors:s,layoutErrors:l}})(e,n,t),c=[],d=[];let u=null;for(let r=0;r<n.length;++r){const s=n[r];if(!a&&o){const n=u||await i.getProperties();u=n;const o=$m(e,t,n,s);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=c.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Dimensions",[h,r]),p=d.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Measures",[p,s]),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,x,e.generator.qae.data,t);w(n?{type:"ERROR",error:i}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const i=e&&e.component&&e.component.selections;if(i&&i.id&&n.id&&i.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!i.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;i.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||i.isModal()&&i.noModal()}})({sn:y.sn,layout:x,model:t})})(y.sn);const e=d.getSupportedVersion(x.visualization,x.version);if(e)return(async(e,n)=>{w({type:"LOADING"});const i=await(async({dispatch:e,types:t,visualization:n,version:i,model:o,app:r,selections:s,nebbie:a,focusHandler:l})=>{try{const e=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:i});return e.create({model:o,app:r,selections:s,nebbie:a,focusHandler:l})}catch(t){e({type:"ERROR",error:{title:t.message}})}})({dispatch:w,types:d,visualization:e,version:n,model:t,app:c,selections:F,nebbie:u,focusHandler:$.current});i&&(w({type:"LOADED",sn:i,visualization:e}),s())})(x.visualization,e),()=>{};w({type:"ERROR",error:{title:`Could not find a version of '${x.visualization}' that supports current object version. Did you forget to register ${x.visualization}?`}})}),[d,y.sn,t,F,x,D,m]),(0,n.useEffect)((()=>{if(!L)return;const e=setTimeout((()=>w({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[L]),(0,n.useImperativeHandle)(l,(()=>({getQae:()=>y.sn.generator.qae,toggleFocus(e){"function"==typeof y.sn.component.focus&&(e?y.sn.component.focus():y.sn.component.blur())},setSnOptions:T,setSnPlugins:M,async takeSnapshot(){const{width:e,height:t}=b;let n=JSON.parse(JSON.stringify(x));return"function"==typeof y.sn.component.setSnapshotData&&(n=await y.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:p.language(),theme:v.name,appLayout:D,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},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)}})),[y.sn,q,b,x,v.name,D]);let K=null;return y.loading&&!y.longRunningQuery?K=n.createElement(zm,null):y.error?K=n.createElement(gm,y.error):y.loaded&&(K=n.createElement(Mm,{key:x.visualization,sn:y.sn,halo:e,snOptions:O,snPlugins:A,layout:x,appLayout:D})),n.createElement(Ld,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:z||"unset",backgroundImage:j&&j.url?`url(${j.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:j&&j.size,backgroundPosition:j&&j.pos},elevation:0,square:!0,className:"njs-cell",ref:_,id:P,onMouseEnter:()=>{W.current.leave&&clearTimeout(W.current.leave),W.enter||(W.current.enter=setTimeout((()=>{V(!0),W.current.enter=null}),250))},onMouseLeave:()=>{W.current.enter&&clearTimeout(W.current.enter),W.current.leave||(W.current.leave=setTimeout((()=>{V(!1),W.current.leave=null}),750))}},n.createElement(So,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...h?{}:{padding:v.spacing(1)},...y.longRunningQuery?{opacity:"0.3"}:{}}},C&&x&&y.sn&&n.createElement(qm,{layout:x,sn:y.sn,anchorEl:C,hovering:B,focusHandler:$.current}," "),n.createElement(So,{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:I},K),n.createElement(Tm,{layout:x})),y.longRunningQuery&&n.createElement(km,{canCancel:k,canRetry:E,api:N}))}));function Gm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Zm(e="/",t,n){const i=[];return Object.keys(t).forEach((o=>{const r=t[o];var s,a;"object"!=typeof n[o]||"object"!=typeof r||Array.isArray(r)?(s=r,a=n[o],(Gm(s)&&Gm(a)?JSON.stringify(s)===JSON.stringify(a):!Array.isArray(s)&&!Array.isArray(a)&&s===a)||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):i.push(...Zm(`${e}${o}/`,t[o],n[o]))})),i}function Qm(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 Ym=()=>{};function Xm({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=Ym,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h={id:e.id,model:e,async destroy(){await o(),r(),r=Ym},async convertTo(n,i=!0){const o=await(async({halo:e,model:t,cellRef:n,newType:i})=>{const o=await t.getFullPropertyTree(),r=n.current.getQae(),s=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return nm.exportProperties})(im(e)))(r),a=await(async({halo:e,name:t,version:n})=>{const{types:i}=e;return await i.get({name:t,version:n}).supernova()})({halo:e,name:i}),l=a.qae;return(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return nm.importProperties})(im(e)))(l)({exportFormat:s({propertyTree:o,hypercubePath:tm.getHypercubePath(r)}),initialProperties:{qInfo:{qType:i},visualization:i,...Up(l,"properties.initial",{})},dataDefinition:Up(l,"data.targets.0.",{}),hypercubePath:tm.getHypercubePath(l)})})({halo:t,model:e,cellRef:s,newType:n});return i&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a}){const{root:l}=e,c=n.createRef(),d=Wp(),u=Vo.createPortal(n.createElement(Km,{ref:c,halo:e,model:i,currentId:d,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s}),t,i.id),h=()=>{l.remove(u),i.removeListener("closed",h)};return i.on("closed",h),l.add(u),l.addCell(d,c),[h,c]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l}),c},async applyProperties(t){const n=Zm("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{Qm(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage:()=>s.current.exportImage(),takeSnapshot:()=>s.current.takeSnapshot(),getModel:()=>e}};return h}async function Jm(e,t,n,i,o=(async()=>{})){const r=Xm({model:e,halo:n,initialError:i,onDestroy:o});return t.options&&r.__DO_NOT_USE__.options(t.options),t.plugins&&r.__DO_NOT_USE__.plugins(t.plugins),t.element&&await r.__DO_NOT_USE__.mount(t.element),r}const ef=function({model:e,halo:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}){const{root:a}=t,[l]=dc(e),{theme:c}=(0,n.useContext)($l),[d,u]=(0,n.useState)([]),[h,g]=(0,n.useState)(void 0),[p,m]=(0,n.useState)(void 0),[f,v]=(0,n.useState)("");(0,n.useEffect)((()=>{if(l){const e=JSON.stringify(l.cells);if(e===f)return;v(e);const i=async()=>{d.forEach((e=>{a.removeCell(e.currentId)}));const e=l.cells,i=await Promise.all(e.map((async e=>{let i;const o=new Promise((e=>{i=e})),r=d.find((t=>t.id===e.name));if(r)return r.bounds=e.bounds,delete r.mountedPromise,r;const s=await async function({id:e,options:t,plugins:n,element:i},o){const r=`${e}`;let s=tc.get(r);s||(s=o.app.getObject(e),tc.set(r,s));const a=await s;return ac.set(r,a),Jm(a,{options:t,plugins:n,element:i},o)}({id:e.name},t);return{model:s.model,id:e.name,bounds:e.bounds,cellRef:n.createRef(),currentId:Wp(),mounted:i,mountedPromise:o}})));i.forEach((e=>a.addCell(e.currentId,e.cellRef))),u(i)};i()}}),[l]);const _=(0,n.useMemo)((()=>d?d.map((e=>function(e,t,i,o,r,s){const{x:a,y:l,width:c,height:d}=e.bounds;return n.createElement("div",{style:{left:`${a}%`,top:`${l}%`,width:`${c}%`,height:`${d}%`,position:"absolute"}},n.createElement(Km,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}))}(e,t,i,o,r,e.mounted))):[]),[d]);(0,n.useEffect)((()=>{const e=l?.components?l.components.find((e=>"general"===e.key)):null;g(Vm(e,t.public.theme)),m(Bm(e,t.app))}),[l,t.public.theme,t.app,c]);const b=!l||Number.isNaN(l.height)?"100%":`${Number(l.height)}%`,C=d.map((e=>e.mountedPromise));return C.filter((e=>!!e)).length&&Promise.all(C).then((()=>{s()})),n.createElement("div",{className:"njs-sheet",style:{width:"100%",height:b,position:"relative",backgroundColor:h,backgroundImage:p&&p.url?`url(${p.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:p&&p.size,backgroundPosition:p&&p.pos}},_)},tf=()=>{};async function nf({id:e,options:t,plugins:i,element:o},r){const s=`${e}`;let a=tc.get(s);a||(a=r.app.getObject(e),tc.set(s,a));const l=await a;return ac.set(s,l),"sheet"===l.genericType?async function(e,t,i,o,r=(async()=>{})){const s=function({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=tf,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h={id:e.id,model:e,async destroy(){await o(),r(),r=tf},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a}){const{root:l}=e,c=n.createRef(),d=Vo.createPortal(n.createElement(ef,{ref:c,halo:e,model:i,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s}),t,i.id),u=()=>{l.remove(d),i.removeListener("closed",u)};return i.on("closed",u),l.add(d),[u,c]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l}),c},async applyProperties(t){const n=Zm("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{Qm(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}({model:e,halo:i,initialError:void 0,onDestroy:r});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(l,{options:t,plugins:i,element:o},r):Jm(l,{options:t,plugins:i,element:o},r)}function of(e={}){return{isEnabled:t=>!0===e[t]}}const rf=Ol().bind(null,!0),sf={},{isArray:af}=Array;function lf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function cf(e){return void 0===e}function df(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function uf(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach(((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=cf(e[i||t])?r:e[t],e=e[i||t]})),e}function hf(e,t){let n=!0;if(lf(e)&&lf(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((i=>{hf(e[i],t[i])||(n=!1)})),n);if(af(e)&&af(t)){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!hf(e[n],t[n]))return!1;return!0}return e===t}sf.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach((o=>{const r=function(e){return e?rf({},{val:e}).val:e}(t[o]),s=e[o],a=`${n}/${o}`;hf(r,s)||df(t,o)||(cf(s)?i.push({op:"add",path:a,value:r}):lf(r)&&lf(s)?i=i.concat(sf.generate(s,r,a)):af(r)&&af(s)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function s(e,t,n){if(e[n]&&cf(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(hf(t,o))return i;if(!cf(t[0])&&cf(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(sf.generate(o[e],t[r],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(s,r,a)):i.push({op:"replace",path:`${n}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{cf(t[o])&&!df(e,o)&&i.push({op:"remove",path:`${n}/${o}`})})),i},sf.apply=function(e,t){t.forEach((t=>{let n=uf(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(af(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(af(o)&&af(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(lf(o)&&lf(t.value))s=o,Object.keys(s).forEach((e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!df(s,e)&&delete s[e]})),rf(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=uf(e,t.from);af(n)?n.splice(+i,0,o.splice(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(af(n)?n.splice(+i,1):delete n[i]);var s}))},sf.clone=function(e){return rf({},e)},sf.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},sf.updateObject=function(e,t){Object.keys(e).length?sf.apply(e,sf.generate(e,t)):rf(e,t)};const gf=sf;let pf,mf;function ff(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function vf(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}}}function _f(e){Cf(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 bf(e){if(e.__hooks.obsolete)return Promise.resolve();mf=-1,pf=e;let t=-1;pf.__hooks.initiated&&(t=pf.__hooks.list.length);try{pf.fn.call(null)}catch(e){console.error(e)}pf.__hooks.initiated=!0,t>-1&&t!==pf.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=pf.__hooks;return xf(pf),mf=void 0,pf=void 0,n.chain.promise||(n.chain.promise=new Promise((e=>{n.chain.resolve=e}))),function(e){Cf(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){Cf(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)})))}(n),n.chain.promise}function Cf(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 yf(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 wf(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Sf(e){return e.__hooks.imperativeHandle}function xf(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Lf(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,xf(e))}function kf(e){if(void 0===pf)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=pf.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Ef(e){return kf(++mf),pf.context[e]}function Nf(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Df(e){return{__hooked:!0,fn:e,initiate:vf,run:bf,teardown:_f,runSnaps:yf,runMenu:wf,focus:iv,blur:ov,observeActions:Lf,getImperativeHandle:Sf,updateRectOnNextRun:Nf}}function If(e){const t=kf(++mf);if(!t.value){t.component=pf;const n=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 n="function"==typeof e?e(t.value[0]):e;var i;n!==t.value[0]&&(t.value[0]=n,(i=t.component).__hooks.micro||(i.__hooks.micro=setTimeout((()=>{i.__hooks.micro=null,bf(i)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function qf(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=kf(++mf);ff(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===pf.__hooks.pendingEffects.indexOf(n)&&pf.__hooks.pendingEffects.push(n))}function Rf(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=kf(++mf);ff(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],pf.__hooks.pendingLayoutEffects.push(n))}function Of(e,t){t||console.warn("useMemo called without dependencies.");const n=kf(++mf);return ff(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Tf(e,t){const[n,i]=If((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=kf(++mf);return o.component||(o.component=pf),Rf((()=>{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(),i({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),i({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]}function Af(){return Ef("element")}function Mf(){const e=Af(),t=pf.__hooks.resizer,[n,i]=If((()=>{const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:i,height:o}}));return t.current=n,-1===t.setters.indexOf(i)&&t.setters.push(i),t.update&&t.resize&&(t.update=!1,t.resize()),Rf((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===n&&s.top===i||t.setters.forEach((e=>e({left:n,top:i,width:o,height:r})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let i=new ResizeObserver(n);return i.observe(e),()=>{i.unobserve(e),i.disconnect(e),i=null,t.resize=void 0}}}),[e]),n}function Pf(){return Ef("layout")}function Ff(){const e=Ef("layout"),[t]=If({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Bf(){return Ef("appLayout")}function Vf(){const e=Ef("model");return e&&e.session?e:void 0}function Wf(){const e=Ef("app");return e&&e.session?e:void 0}function zf(){const e=Ef("global");return e&&e.session?e:void 0}function Hf(){return Ef("selections")}function jf(){return Ef("theme")}function Uf(){return Ef("nebbie")}function $f(){return Ef("translator")}function Kf(){return Ef("deviceType")}function Gf(){return Ef("plugins")}function Zf(e,t){const[n]=If({action(){n._config.action.call(null)}});return n.component||(n.component=pf,pf.__hooks.actions.list.push(n)),Of((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action}function Qf(){return Ef("constraints")}function Yf(){return Ef("options")}function Xf(e,t){const n=kf(++mf);if(!n.imperative){if(pf.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(ff(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],pf.__hooks.imperativeHandle=i}}function Jf(e){const t=kf(++mf);t.value||(t.value=1,pf.__hooks.snaps.push(t)),t.fn=e}function ev(e){const t=kf(++mf);t.value||(t.value=1,pf.__hooks.menus.push(t)),t.fn=e}function tv(){kf(++mf);const e=pf.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function nv(){const e=Ef("keyboardNavigation"),t=Ef("focusHandler");if(!pf.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(ov(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(pf);pf.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),iv(this))}.bind(pf);pf.__hooks.accessibility.focusFunction=n;const i=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(pf);pf.__hooks.accessibility.focusSelectionFunction=i}const n=pf.__hooks.accessibility.focusFunction,i=pf.__hooks.accessibility.exitFunction,o=pf.__hooks.accessibility.focusSelectionFunction,[r,s]=If({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return pf.__hooks.accessibility.setter=s,pf.__hooks.accessibility.enabled=e,qf((()=>s({active:!1,enabled:e,blur:i,focus:n,focusSelection:o})),[e]),r}function iv(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 ov(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 rv={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},sv=Object.keys(rv);function av(e,t){console.warn("Obsolete API - time to get hooked!");const n={...rv};var i;i=n,Object.keys(Qa().prototype).forEach((e=>{i[e]=Qa().prototype[e]})),Qa().init(i);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==sv.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const r=function({sn:e,component:t}){const n={},i=[],o=(e=>t=>{const n=(i={...t,action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0},Object.keys(Qa().prototype).forEach((e=>{i[e]=Qa().prototype[e]})),Qa().init(i),i);var i;return n})(t);return((e.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=o(e);n[e.key]=t,i.push(t)})),(e.definition.actions||[]).forEach((e=>{const t=o(e);n[e.key]=t})),{actions:n,selectionToolbarItems:i,destroy(){i.length=0}}}({sn:e,component:o}),s=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:s,selections:t.selections,actions:r.actions}),Object.assign(n,{actions:r.actions,model:t.model,app:t.app,selections:t.selections}),[n,r]}const lv=()=>{};function cv(e,t){return void 0===e?()=>t:()=>e}function dv(e){const t=e||{};return{min:"function"==typeof t.min?t.min:cv(t.min,0),max:"function"==typeof t.max?t.max:cv(t.max,1e3),added:t.added||t.add||lv,description:t.description||lv,moved:t.moved||t.move||lv,removed:t.removed||t.remove||lv,replaced:t.replaced||t.replace||lv,isDefined:()=>!!e}}function uv(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef or /qListObjectDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(e,n,{}),dimensions:dv(e.dimensions),measures:dv(e.measures)}}function hv(e={}){let t,n=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange),{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(uv)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function gv(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:hv(n.qae),component:n.component||{},create:e=>function(e,t,n){"function"==typeof e.component&&(e.component=Df(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==bf&&console.warn("Detected multiple supernova modules, this might cause problems.");const i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const r={},s=["appLayout","constraints"],a={};t.model&&t.model.session||(a.select=!0);const l={context:{model:t.model,app:t.app,global:i,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:a,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(l,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let i=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(i=!0)})),i&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}s.forEach((e=>{const i=t.context;if(i&&Object.prototype.hasOwnProperty.call(i,e)){let t=JSON.stringify(i[e]);"constraints"===e&&(t=JSON.stringify({...i[e],...a})),t!==r[e]&&(n=!0,r[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(n=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(n=!0,r.language=l.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return s.forEach((e=>{r[e]=JSON.stringify(l.context[e])})),r.themeName=l.context.theme?l.context.theme.name():void 0,r.language=l.context.translator?l.context.translator.language():void 0,Object.assign(l,{selections:t.selections}),[l,null]}(e,t,n):av(e,t),r=[];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(...n){return e.qae.properties.onChange.call({model:t.model},...n),t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,i){const o=i?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const r=gf.clone(o),s=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));gf.apply(o,s),e.qae.properties.onChange.call({model:t.model},o);const a=gf.generate(r,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,a,i)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}(i,e,t),definition:{}};return Object.keys(n).forEach((e=>{i[e]||(i.definition[e]=n[e])})),i}var pv=s(91068);const mv={};function fv(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,r)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:r}=n,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||(0,pv.satisfies)(e,r.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!mv[o]){const r=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(i||n.load)({name:e,version:t}),a=Promise.resolve(s);mv[o]=a.then((e=>{if(!e)throw new Error(`load() of visualization '${r}' resolved to an invalid object`);return e})).catch((e=>{throw console.warn(e),new Error(`Failed to load visualization: '${r}'`)}))}return mv[o]}(s.name,s.version,t,n.load).then((e=>(i=i||gv(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i))),initialProperties(e){return this.supernova().then((()=>({qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o),...e})))}};return s}({name:e,version:o},t,r),i=null},getMatchingVersionFromProperties:e=>{var t;i||(t=Object.keys(n),i=[...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=i.length-1;t>=0;t--)if(n[i[t]].supportsPropertiesVersion(e))return i[t];return null},versions:n}}const vv=(e={},t={})=>({...e,...t}),_v=(e=[],t=[])=>[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t)),bv=(e={})=>{const{__DO_NOT_USE__:t={},...n}=e;return{...n,update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1,...t}},Cv=function e(t={}){const i=function(e){const t=Ka({initial:e});return Object.keys(Ga).forEach((e=>{t.translator.add(Ga[e])})),{translator:t.translator}}(t.context.language);function o(e,r){if(r)return o.createConfiguration(r)(e);let s={...t.context,translator:i.translator};const[a]=function({app:e,context:t}){let i;const o=new Promise((e=>{i=e})),r=n.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","3.1.1"),s.setAttribute("data-app-id",e.id),document.body.appendChild(s),Vo.render(n.createElement(Lc,{ref:r,app:e,initialContext:t}),s,i);const a={};return[{toggleFocusOfCells(e){Object.keys(a).forEach((t=>{a[t].current.toggleFocus(t===e)}))},cells:a,addCell(e,t){a[e]=t},removeCell(e){delete a[e]},add(e){(async()=>{await o,r.current.addComponent(e)})()},remove(e){(async()=>{await o,r.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await o,r.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,r.current.setContext(e)})()},getAppSelections:async()=>(await o,r.current.getAppSelections())},r,o]}({app:e,context:s}),l=function({themes:e=[],root:t}={}){const n=Ul();return{setTheme:async i=>{const o=e.filter((e=>e.id===i))[0];let r="dark"===i?"dark":"light";if(o&&o.load)try{const e=await Promise.race([o.load(),(5e3,s={__timedOut:!0},new Promise((e=>{setTimeout((()=>e(s)),5e3)})))]);e.__timedOut?console.warn(`Timeout when loading theme '${i}'`):(r="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,i),t.setMuiThemeName(r))}catch(e){console.error(e)}else n.internalAPI.setTheme({type:r},i),t.setMuiThemeName(r);var s},externalAPI:n.externalAPI}}({themes:t.themes,root:a});s.themeApi=l.externalAPI;const c={galaxy:{translator:i.translator,flags:of(t.flags),deviceType:(h=t.context.deviceType,"auto"!==h?h: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:l.externalAPI,translator:i.translator,nebbie:null},d={app:e,root:a,config:t,public:c,context:s,types:null},u=function({halo:e,parent:t}){const n={},i=t||{get:()=>{}};return{register:(t,i)=>{n[t.name]||(n[t.name]=fv(t.name,e)),n[t.name].register(t.version,i)},getSupportedVersion:(e,t)=>n[e]?n[e].getMatchingVersionFromProperties(t):null,get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){const e=Object.keys(n[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.`),this.register({name:t,version:o});return n[t].get(o)||i.get(e)},getList:()=>Object.keys(n).map((e=>({name:e,versions:Object.keys(n[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(mv).forEach((t=>{t.split("__")[0]===e&&(mv[t]=void 0)}))}(e)}}}({halo:d});var h;t.types.forEach((e=>u.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let g=l.setTheme(t.context.theme),p=null,m=null;const f={render:async e=>(await g,e.id?nf(e,d):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:r,element:s},a){let l,c={};try{const o=a.types.get({name:e,version:t});c=await o.initialProperties(i);const r=await o.supernova();n&&function({sn:e,properties:t,fields:n}){if(!n.length)return;const i=e.qae.data.targets[0];if(!i)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:o}=i,r=o.split("/");let s=t;for(let e=0;e<r.length;e++){const t=r[e];s=t?s[t]:s}const a=jp({dc:s,def:i,properties:t});n.forEach((e=>{const t=function(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}(e);"measure"===t?a.addMeasure(e):a.addDimension(e)}))}({sn:r,properties:c,fields:n}),i&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},c)}catch(t){l=t,c={qInfo:{qType:e},visualization:e}}const d=await a.app.createSessionObject(c);ac.set(d.id,d);const u=(e=>{const t=rc({type:"SET",value:e});return()=>{t(),ac.clear(e.id)}})(d);return Jm(d,{options:o,plugins:r,element:s},a,l,(async()=>{await a.app.destroySessionObject(d.id),u()}))}(e,d)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==s[n]&&(t||(t={}),t[n]=e[n])})),t&&(s={...s,...t,translator:i.translator},d.context=s,t.theme&&(g=l.setTheme(t.theme),await g),t.language&&d.public.translator.language(t.language),a.context(s))},selections:async()=>(p||(p={mount(t){m?console.error("Already mounted"):(m=function({element:e,app:t}){return Vo.createPortal(n.createElement(bp,{app:t}),e)}({element:t,app:e}),a.add(m))},unmount(){m&&(a.remove(m),m=null)}}),p),field:async t=>{let i;const o="string"==typeof t?t:t.qLibraryId;if(t.qId)i=t.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const r={fieldName:o,mount(r,s={}){if(!r)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);this._instance=function({element:e,app:t,fieldIdentifier:i,qId:o,stateName:r="$",options:s={}}){return Vo.createPortal(n.createElement(Fp,{app:t,element:e,fieldIdentifier:i,qId:o,stateName:r,options:s}),e)}({element:r,app:e,fieldIdentifier:t,qId:i,options:bv(s),stateName:s.stateName||"$"}),a.add(this._instance)},unmount(){this._instance&&(a.remove(this._instance),this._instance=null)}};return r},getRegisteredTypes:u.getList,__DO_NOT_USE__:{types:u}};return d.public.nebbie=f,d.types=u,f}return o.createConfiguration=n=>e(((e,t)=>({context:vv(e.context,t.context),load:t.load||e.load,snapshot:{...t.snapshot||e.snapshot},types:_v(e.types,t.types),themes:_v(e.themes,t.themes),flags:vv(e.flags,t.flags),anything:vv(e.anything,t.anything)}))(t,n)),o.config=t,o}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1},load:()=>{},types:[],themes:[],anything:{},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()))}}),yv=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},wv=globalThis.crypto||{getRandomValues:()=>123456},Sv=function(){return e=>{const t=Ol()({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^wv.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const n=t._mock;let i=t;return n&&(delete t._mock,i=Ol()({},t,n)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(i),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId,...t})}},xv=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,Lv=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const r=xv(e,{defaultValue:t,args:o});return n?new Promise((e=>{setTimeout((()=>e(r)),i)})):r},kv=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Ev(e){return!kv.includes(e)}function Nv(e){const t=xv(e.getLayout);return t.qInfo&&t.qInfo.qId}function Dv(e,t){let n=Nv(e);const{delay:i}=t,{id:o,session:r,...s}=e;if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);return n=n||o||"object - "+ +Date.now(),{[n]:{id:n,session:xv(r,{defaultValue:!0}),on:()=>{},once:()=>{},...Object.entries(s).reduce(((e,[t,n])=>({...e,[t]:Lv(n,{async:Ev(t),delay:i})})),{}),genericType:e.type}}}function Iv(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Nv(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const qv=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(Iv);const n=function(e,t){return e.reduce(((e,n)=>({...e,...Dv(n,t)})),{})}(e,t);return async e=>Promise.resolve(n[e])},Rv=function(){return()=>Promise.resolve({id:"app-layout"})},Ov={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new yv,i=new Sv,o=new qv(e,t),r=new Rv,s={id:"app - "+ +Date.now(),session:n,createSessionObject:i,getObject:o,getAppLayout:r};return Promise.resolve(s)}(e,t)},Tv=Ov,Av={generator:gv,hook:Df,theme:Ul,locale:Ka};var Mv=s(32981),Pv=s(16254),Fv=s(26613),Bv=s(82665),Vv=s(70200);function Wv(e){return(0,bt.Z)("MuiToolbar",e)}(0,_t.Z)("MuiToolbar",["root","gutters","regular","dense"]);const zv=["className","component","disableGutters","variant"],Hv=(0,vt.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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)),jv=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:s="regular"}=n,a=(0,dt.Z)(n,zv),l=(0,ut.Z)({},n,{component:o,disableGutters:r,variant:s}),c=(e=>{const{classes:t,disableGutters:n,variant:i}=e,o={root:["root",!n&&"gutters",i]};return(0,gt.Z)(o,Wv,t)})(l);return(0,yt.jsx)(Hv,(0,ut.Z)({as:o,className:(0,ht.Z)(c.root,i),ref:t,ownerState:l},a))})),Uv=jv;function $v(e){return(0,bt.Z)("MuiMenu",e)}(0,_t.Z)("MuiMenu",["root","paper","list"]);const Kv=["onEntering"],Gv=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Zv={vertical:"top",horizontal:"right"},Qv={vertical:"top",horizontal:"left"},Yv=(0,vt.ZP)(Md,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xv=(0,vt.ZP)(Ld,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jv=(0,vt.ZP)(gg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),e_=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:r,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:l,open:c,PaperProps:d={},PopoverClasses:u,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:p="selectedMenu"}=i,m=(0,dt.Z)(i.TransitionProps,Kv),f=(0,dt.Z)(i,Gv),v=Ht(),_="rtl"===v.direction,b=(0,ut.Z)({},i,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:g,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:p}),C=(e=>{const{classes:t}=e;return(0,gt.Z)({root:["root"],paper:["paper"],list:["list"]},$v,t)})(b),y=o&&!s&&c,w=n.useRef(null);let S=-1;return n.Children.map(r,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===S)&&(S=t))})),(0,yt.jsx)(Yv,(0,ut.Z)({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?Zv:Qv,PaperProps:(0,ut.Z)({component:Xv},d,{classes:(0,ut.Z)({},d.classes,{root:C.paper})}),className:C.root,open:c,ref:t,transitionDuration:h,TransitionProps:(0,ut.Z)({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,v),g&&g(e,t)}},m),ownerState:b},f,{classes:u,children:(0,yt.jsx)(Jv,(0,ut.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:w,autoFocus:o&&(-1===S||s),autoFocusItem:y,variant:p},a,{className:(0,ht.Z)(C.list,a.className),children:r}))}))})),t_=e_,n_=new Map,i_=[],o_=i_.map,r_=i_.some,s_=i_.hasOwnProperty,a_=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,l_=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,c_=/(?:\.[^/]*|\/)$/;class d_ extends Error{constructor(e){super(e)}}function u_(e){const t=a_.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function h_(e){const t=new Map,n=o(null);function i(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise(((t,n)=>{const i=document.createElement("script");i.onload=()=>{try{t(i_.pop()(o(e)))}catch(e){n(new d_("invalid module"))}i.remove()},i.onerror=()=>{n(new d_("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=f_,document.head.appendChild(i)}))),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function r(e){return arguments.length>1?Promise.all(o_.call(arguments,n)).then(g_):n(e)}return r.alias=function(t){return h_(((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i)))},r.resolve=e,r}function g_(e){const t={};for(const n of e)for(const e in n)s_.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:p_(n,e)}):t[e]=n[e]);return t}function p_(e,t){return()=>e[t]}function m_(e){return"exports"==(e+="")||"module"===e}function f_(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),i_.push(r_.call(t,m_)?e=>{const i={},o={exports:i};return Promise.all(o_.call(t,(t=>"exports"==(t+="")?i:"module"===t?o:e(t)))).then((e=>(n.apply(null,e),o.exports)))}:e=>Promise.all(o_.call(t,e)).then((e=>"function"==typeof n?n.apply(null,e):n)))}d_.prototype.name=d_.name,h_(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function n(t){const n=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let i=n_.get(n);return i||n_.set(n,i=fetch(n).then((e=>{if(!e.ok)throw new d_("unable to load package.json");return e.redirected&&!n_.has(e.url)&&n_.set(e.url,i),e.json()}))),i}return async function(i,o){if(i.startsWith(e)&&(i=i.substring(e.length)),/^(\w+:)|\/\//i.test(i))return i;if(/^[.]{0,2}\//i.test(i))return new URL(i,null==o?location:o).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new d_("illegal name");const r=u_(i);if(!r)return`${e}${i}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await n(u_(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!c_.test(r.path)&&(r.path+=".js"),r.path&&r.version&&l_.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await n(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),c_.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),f_.amd={};const v_=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`;return h_((async e=>i(e))).alias({"@nebula.js/stardust":e})(n||t)},__={};function b_(e){const[t]=sc(),n=t.get(e),[i,...o]=cc(n,"getProperties");return[i,e=>n.setProperties(e),...o]}window.onHotChange=(e,t)=>(__[e]||(__[e]=[]),__[e].push(t),window[e]&&t(),()=>{const n=__[e].indexOf(t);__[e].splice(n,1)});const C_=n.createContext();function y_({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const i=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return o.qDef.cId=o.qDef.cId||Wp(),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,i),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,i,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}function w_({dc:e,def:t,properties:n,dimensions:i}){const o=n,r={dimensions:()=>i,measures:()=>[],addDimension(n){const i="string"==typeof n?{qDef:{qFieldDefs:[n]}}:{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||Wp(),i.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(i,o),i},removeDimension(e){const n=i[e];return t.dimensions.removed(n,o,e),n},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>r.dimensions().length<r.maxDimensions(),canAddMeasure:()=>!1};return r}const S_={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},x_={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function L_(e,t="dimension"){const n="dimension"===t?S_:x_,[i]=hc(n,e),[o]=dc(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function k_(e){return(0,bt.Z)("MuiListSubheader",e)}(0,_t.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const E_=["className","color","component","disableGutters","disableSticky","inset"],N_=(0,vt.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Ft.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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}))),D_=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=n,c=(0,dt.Z)(n,E_),d=(0,ut.Z)({},n,{color:o,component:r,disableGutters:s,disableSticky:a,inset:l}),u=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:r}=e,s={root:["root","default"!==n&&`color${(0,Ft.Z)(n)}`,!i&&"gutters",o&&"inset",!r&&"sticky"]};return(0,gt.Z)(s,k_,t)})(d);return(0,yt.jsx)(N_,(0,ut.Z)({as:r,className:(0,ht.Z)(u.root,i),ref:t,ownerState:d},c))})),I_=D_;var q_=s(25138),R_=s.n(q_),O_=s(18258),T_=s.n(O_),A_=s(38866),M_=s(44526),P_=s(7833);function F_(e){return(0,bt.Z)("MuiInput",e)}const B_=(0,ut.Z)({},Ts,(0,_t.Z)("MuiInput",["root","underline","input"])),V_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],W_=(0,vt.ZP)(ia,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ta(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,ut.Z)({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"},[`&.${B_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${B_.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${B_.disabled}, .${B_.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${B_.disabled}:before`]:{borderBottomStyle:"dotted"}})})),z_=(0,vt.ZP)(oa,{name:"MuiInput",slot:"Input",overridesResolver:na})({}),H_=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,ft.Z)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:u="input",multiline:h=!1,slotProps:g,slots:p={},type:m="text"}=s,f=(0,dt.Z)(s,V_),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,gt.Z)(i,F_,t);return(0,ut.Z)({},t,o)})(s),_={root:{ownerState:{disableUnderline:a}}},b=(null!=g?g:c)?(0,Sn.Z)(null!=g?g:c,_):_,C=null!=(n=null!=(i=p.root)?i:l.Root)?n:W_,y=null!=(o=null!=(r=p.input)?r:l.Input)?o:z_;return(0,yt.jsx)(aa,(0,ut.Z)({slots:{root:C,input:y},slotProps:b,fullWidth:d,inputComponent:u,multiline:h,ref:t,type:m},f,{classes:v}))}));H_.muiName="Input";const j_=H_;function U_(e){return(0,bt.Z)("MuiFilledInput",e)}const $_=(0,ut.Z)({},Ts,(0,_t.Z)("MuiFilledInput",["root","underline","input"])),K_=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],G_=(0,vt.ZP)(ia,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ta(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const i="light"===e.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,ut.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${$_.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${$_.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$_.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(.${$_.disabled}, .${$_.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$_.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,ut.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Z_=(0,vt.ZP)(oa,{name:"MuiFilledInput",slot:"Input",overridesResolver:na})((({theme:e,ownerState:t})=>(0,ut.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),Q_=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,ft.Z)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:h,slots:g={},type:p="text"}=s,m=(0,dt.Z)(s,K_),f=(0,ut.Z)({},s,{fullWidth:c,inputComponent:d,multiline:u,type:p}),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,gt.Z)(i,U_,t);return(0,ut.Z)({},t,o)})(s),_={root:{ownerState:f},input:{ownerState:f}},b=(null!=h?h:l)?(0,Sn.Z)(null!=h?h:l,_):_,C=null!=(n=null!=(i=g.root)?i:a.Root)?n:G_,y=null!=(o=null!=(r=g.input)?r:a.Input)?o:Z_;return(0,yt.jsx)(aa,(0,ut.Z)({slots:{root:C,input:y},componentsProps:b,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:p},m,{classes:v}))}));Q_.muiName="Input";const Y_=Q_;function X_(e){return(0,bt.Z)("MuiFormLabel",e)}const J_=(0,_t.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),eb=["children","className","color","component","disabled","error","filled","focused","required"],tb=(0,vt.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,ut.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,ut.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${J_.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${J_.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${J_.error}`]:{color:(e.vars||e).palette.error.main}}))),nb=(0,vt.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${J_.error}`]:{color:(e.vars||e).palette.error.main}}))),ib=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:o,component:r="label"}=n,s=(0,dt.Z)(n,eb),a=Rs({props:n,muiFormControl:qs(),states:["color","required","focused","disabled","error","filled"]}),l=(0,ut.Z)({},n,{color:a.color||"primary",component:r,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:n,focused:i,disabled:o,error:r,filled:s,required:a}=e,l={root:["root",`color${(0,Ft.Z)(n)}`,o&&"disabled",r&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return(0,gt.Z)(l,X_,t)})(l);return(0,yt.jsxs)(tb,(0,ut.Z)({as:r,ownerState:l,className:(0,ht.Z)(c.root,o),ref:t},s,{children:[i,a.required&&(0,yt.jsxs)(nb,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),ob=ib;function rb(e){return(0,bt.Z)("MuiInputLabel",e)}(0,_t.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const sb=["disableAnimation","margin","shrink","variant","className"],ab=(0,vt.ZP)(ob,{shouldForwardProp:e=>(0,vt.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${J_.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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,ut.Z)({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,ut.Z)({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,ut.Z)({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% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),lb=n.forwardRef((function(e,t){const n=(0,ft.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:o,className:r}=n,s=(0,dt.Z)(n,sb),a=qs();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=Rs({props:n,muiFormControl:a,states:["size","variant","required"]}),d=(0,ut.Z)({},n,{disableAnimation:i,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required}),u=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:r,variant:s,required:a}=e,l={root:["root",n&&"formControl",!r&&"animated",o&&"shrink","small"===i&&"sizeSmall",s],asterisk:[a&&"asterisk"]},c=(0,gt.Z)(l,rb,t);return(0,ut.Z)({},t,c)})(d);return(0,yt.jsx)(ab,(0,ut.Z)({"data-shrink":l,ownerState:d,ref:t,className:(0,ht.Z)(u.root,r)},s,{classes:u}))})),cb=lb;function db(e){return(0,bt.Z)("MuiFormControl",e)}(0,_t.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ub=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],hb=(0,vt.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,ut.Z)({},t.root,t[`margin${(0,Ft.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,ut.Z)({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%"}))),gb=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiFormControl"}),{children:o,className:r,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:h=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined"}=i,v=(0,dt.Z)(i,ub),_=(0,ut.Z)({},i,{color:s,component:a,disabled:l,error:c,fullWidth:u,hiddenLabel:h,margin:g,required:p,size:m,variant:f}),b=(e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root","none"!==n&&`margin${(0,Ft.Z)(n)}`,i&&"fullWidth"]};return(0,gt.Z)(o,db,t)})(_),[C,y]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{if(!(0,vr.Z)(t,["Input","Select"]))return;const n=(0,vr.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[w,S]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{(0,vr.Z)(t,["Input","Select"])&&Js(t.props,!0)&&(e=!0)})),e})),[x,L]=n.useState(!1);l&&x&&L(!1);const k=void 0===d||l?x:d;let E;const N=n.useMemo((()=>({adornedStart:C,setAdornedStart:y,color:s,disabled:l,error:c,filled:w,focused:k,fullWidth:u,hiddenLabel:h,size:m,onBlur:()=>{L(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{L(!0)},registerEffect:E,required:p,variant:f})),[C,s,l,c,w,k,u,h,E,p,m,f]);return(0,yt.jsx)(Is.Provider,{value:N,children:(0,yt.jsx)(hb,(0,ut.Z)({as:a,ownerState:_,className:(0,ht.Z)(b.root,r),ref:t},v,{children:o}))})})),pb=gb;function mb(e){return(0,bt.Z)("MuiFormHelperText",e)}const fb=(0,_t.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var vb;const _b=["children","className","component","disabled","error","filled","focused","margin","required","variant"],bb=(0,vt.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Ft.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,ut.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${fb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fb.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),Cb=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:r="p"}=n,s=(0,dt.Z)(n,_b),a=Rs({props:n,muiFormControl:qs(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,ut.Z)({},n,{component:r,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:n,size:i,disabled:o,error:r,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",r&&"error",i&&`size${(0,Ft.Z)(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,gt.Z)(c,mb,t)})(l);return(0,yt.jsx)(bb,(0,ut.Z)({as:r,ownerState:l,className:(0,ht.Z)(c.root,o),ref:t},s,{children:" "===i?vb||(vb=(0,yt.jsx)("span",{className:"notranslate",children:""})):i}))})),yb=Cb;function wb(e){return(0,bt.Z)("MuiNativeSelect",e)}const Sb=(0,_t.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),xb=["className","disabled","IconComponent","inputRef","variant"],Lb=({ownerState:e,theme:t})=>(0,ut.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,ut.Z)({},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"},[`&.${Sb.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}}),kb=(0,vt.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:vt.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${Sb.multiple}`]:t.multiple}]}})(Lb),Eb=({ownerState:e,theme:t})=>(0,ut.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Sb.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Nb=(0,vt.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ft.Z)(n.variant)}`],n.open&&t.iconOpen]}})(Eb),Db=n.forwardRef((function(e,t){const{className:i,disabled:o,IconComponent:r,inputRef:s,variant:a="standard"}=e,l=(0,dt.Z)(e,xb),c=(0,ut.Z)({},e,{disabled:o,variant:a}),d=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r}=e,s={select:["select",n,i&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,Ft.Z)(n)}`,r&&"iconOpen",i&&"disabled"]};return(0,gt.Z)(s,wb,t)})(c);return(0,yt.jsxs)(n.Fragment,{children:[(0,yt.jsx)(kb,(0,ut.Z)({ownerState:c,className:(0,ht.Z)(d.select,i),disabled:o,ref:s||t},l)),e.multiple?null:(0,yt.jsx)(Nb,{as:r,ownerState:c,className:d.icon})]})})),Ib=Db;function qb(e){return(0,bt.Z)("MuiSelect",e)}const Rb=(0,_t.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var Ob;const Tb=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Ab=(0,vt.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Rb.select}`]:t.select},{[`&.${Rb.select}`]:t[n.variant]},{[`&.${Rb.multiple}`]:t.multiple}]}})(Lb,{[`&.${Rb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Mb=(0,vt.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ft.Z)(n.variant)}`],n.open&&t.iconOpen]}})(Eb),Pb=(0,vt.ZP)("input",{shouldForwardProp:e=>(0,vt.Dz)(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 Fb(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Bb(e){return null==e||"string"==typeof e&&!e.trim()}const Vb=n.forwardRef((function(e,t){const{"aria-describedby":i,"aria-label":o,autoFocus:r,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:u,displayEmpty:h,IconComponent:g,inputRef:p,labelId:m,MenuProps:f={},multiple:v,name:_,onBlur:b,onChange:C,onClose:y,onFocus:w,onOpen:S,open:x,readOnly:L,renderValue:k,SelectDisplayProps:E={},tabIndex:N,value:D,variant:I="standard"}=e,q=(0,dt.Z)(e,Tb),[R,O]=(0,Jd.Z)({controlled:D,default:d,name:"Select"}),[T,A]=(0,Jd.Z)({controlled:x,default:c,name:"Select"}),M=n.useRef(null),P=n.useRef(null),[F,B]=n.useState(null),{current:V}=n.useRef(null!=x),[W,z]=n.useState(),H=(0,_i.Z)(t,p),j=n.useCallback((e=>{P.current=e,e&&B(e)}),[]),U=null==F?void 0:F.parentNode;n.useImperativeHandle(H,(()=>({focus:()=>{P.current.focus()},node:M.current,value:R})),[R]),n.useEffect((()=>{c&&T&&F&&!V&&(z(s?null:U.clientWidth),P.current.focus())}),[F,s]),n.useEffect((()=>{r&&P.current.focus()}),[r]),n.useEffect((()=>{if(!m)return;const e=(0,as.Z)(P.current).getElementById(m);if(e){const t=()=>{getSelection().isCollapsed&&P.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[m]);const $=(e,t)=>{e?S&&S(t):y&&y(t),V||(z(s?null:U.clientWidth),A(e))},K=n.Children.toArray(a),G=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(R)?R.slice():[];const t=R.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),R!==n&&(O(n),C)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:_}}),C(o,e)}v||$(!1,t)}},Z=null!==F&&T;let Q,Y;delete q["aria-invalid"];const X=[];let J=!1,ee=!1;(Js({value:R})||h)&&(k?Q=k(R):J=!0);const te=K.map(((e,t,i)=>{var o,r,s,a;if(!n.isValidElement(e))return null;let l;if(v){if(!Array.isArray(R))throw new Error((0,Ps.Z)(2));l=R.some((t=>Fb(t,e.props.value))),l&&J&&X.push(e.props.children)}else l=Fb(R,e.props.value),l&&J&&(Y=e.props.children);return l&&(ee=!0),void 0===e.props.value?n.cloneElement(e,{"aria-readonly":!0,role:"option"}):n.cloneElement(e,{"aria-selected":l?"true":"false",onClick:G(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===(null==(o=i[0])||null==(r=o.props)?void 0:r.value)||!0===(null==(s=i[0])||null==(a=s.props)?void 0:a.disabled)?(()=>{if(R)return l;const t=i.find((e=>{var t;return void 0!==(null==e||null==(t=e.props)?void 0:t.value)&&!0!==e.props.disabled}));return e===t||l})():l,value:void 0,"data-value":e.props.value})}));J&&(Q=v?0===X.length?null:X.reduce(((e,t,n)=>(e.push(t),n<X.length-1&&e.push(", "),e)),[]):Y);let ne,ie=W;!s&&V&&F&&(ie=U.clientWidth),ne=void 0!==N?N:u?null:0;const oe=E.id||(_?`mui-component-select-${_}`:void 0),re=(0,ut.Z)({},e,{variant:I,value:R,open:Z}),se=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r}=e,s={select:["select",n,i&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,Ft.Z)(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return(0,gt.Z)(s,qb,t)})(re);return(0,yt.jsxs)(n.Fragment,{children:[(0,yt.jsx)(Ab,(0,ut.Z)({ref:j,tabIndex:ne,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[m,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:e=>{L||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),$(!0,e))},onMouseDown:u||L?null:e=>{0===e.button&&(e.preventDefault(),P.current.focus(),$(!0,e))},onBlur:e=>{!Z&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:R,name:_}}),b(e))},onFocus:w},E,{ownerState:re,className:(0,ht.Z)(E.className,se.select,l),id:oe,children:Bb(Q)?Ob||(Ob=(0,yt.jsx)("span",{className:"notranslate",children:""})):Q})),(0,yt.jsx)(Pb,(0,ut.Z)({value:Array.isArray(R)?R.join(","):R,name:_,ref:M,"aria-hidden":!0,onChange:e=>{const t=K.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=K[t];O(n.props.value),C&&C(e,n)},tabIndex:-1,disabled:u,className:se.nativeInput,autoFocus:r,ownerState:re},q)),(0,yt.jsx)(Mb,{as:g,className:se.icon,ownerState:re}),(0,yt.jsx)(t_,(0,ut.Z)({id:`menu-${_||""}`,anchorEl:U,open:Z,onClose:e=>{$(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},f,{MenuListProps:(0,ut.Z)({"aria-labelledby":m,role:"listbox",disableListWrap:!0},f.MenuListProps),PaperProps:(0,ut.Z)({},f.PaperProps,{style:(0,ut.Z)({minWidth:ie},null!=f.PaperProps?f.PaperProps.style:null)}),children:te}))]})})),Wb=Vb,zb=(0,Hn.Z)((0,yt.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var Hb,jb;const Ub=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],$b={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,vt.FO)(e)&&"variant"!==e,slot:"Root"},Kb=(0,vt.ZP)(j_,$b)(""),Gb=(0,vt.ZP)(ga,$b)(""),Zb=(0,vt.ZP)(Y_,$b)(""),Qb=n.forwardRef((function(e,t){const i=(0,ft.Z)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=zb,id:u,input:h,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:v=!1,native:_=!1,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:S,variant:x="outlined"}=i,L=(0,dt.Z)(i,Ub),k=_?Ib:Wb,E=Rs({props:i,muiFormControl:qs(),states:["variant"]}).variant||x,N=h||{standard:Hb||(Hb=(0,yt.jsx)(Kb,{})),outlined:(0,yt.jsx)(Gb,{label:p}),filled:jb||(jb=(0,yt.jsx)(Zb,{}))}[E],D=(e=>{const{classes:t}=e;return t})((0,ut.Z)({},i,{variant:E,classes:s})),I=(0,_i.Z)(t,N.ref);return(0,yt.jsx)(n.Fragment,{children:n.cloneElement(N,(0,ut.Z)({inputComponent:k,inputProps:(0,ut.Z)({children:r,IconComponent:d,variant:E,type:void 0,multiple:v},_?{id:u}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:(0,ut.Z)({id:u},S)},g,{classes:g?(0,Sn.Z)(D,g.classes):D},h?h.props.inputProps:{})},v&&_&&"outlined"===E?{notched:!0}:{},{ref:I,className:(0,ht.Z)(N.props.className,a)},!h&&{variant:E},L))})}));Qb.muiName="Select";const Yb=Qb;function Xb(e){return(0,bt.Z)("MuiTextField",e)}(0,_t.Z)("MuiTextField",["root"]);const Jb=["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"],eC={standard:j_,filled:Y_,outlined:ga},tC=(0,vt.ZP)(pb,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nC=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:r,className:s,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:u,fullWidth:h=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:v,inputRef:_,label:b,maxRows:C,minRows:y,multiline:w=!1,name:S,onBlur:x,onChange:L,onFocus:k,placeholder:E,required:N=!1,rows:D,select:I=!1,SelectProps:q,type:R,value:O,variant:T="outlined"}=n,A=(0,dt.Z)(n,Jb),M=(0,ut.Z)({},n,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:h,multiline:w,required:N,select:I,variant:T}),P=(e=>{const{classes:t}=e;return(0,gt.Z)({root:["root"]},Xb,t)})(M),F={};"outlined"===T&&(m&&void 0!==m.shrink&&(F.notched=m.shrink),F.label=b),I&&(q&&q.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=(0,P_.Z)(p),V=g&&B?`${B}-helper-text`:void 0,W=b&&B?`${B}-label`:void 0,z=eC[T],H=(0,yt.jsx)(z,(0,ut.Z)({"aria-describedby":V,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:h,multiline:w,name:S,rows:D,maxRows:C,minRows:y,type:R,value:O,id:B,inputRef:_,onBlur:x,onChange:L,onFocus:k,placeholder:E,inputProps:f},F,v));return(0,yt.jsxs)(tC,(0,ut.Z)({className:(0,ht.Z)(P.root,s),disabled:c,error:d,fullWidth:h,ref:t,required:N,color:a,variant:T,ownerState:M},A,{children:[null!=b&&""!==b&&(0,yt.jsx)(cb,(0,ut.Z)({htmlFor:B,id:W},m,{children:b})),I?(0,yt.jsx)(Yb,(0,ut.Z)({"aria-describedby":V,id:B,labelId:W,value:O,input:H},q,{children:r})):H,g&&(0,yt.jsx)(yb,(0,ut.Z)({id:V},u,{children:g}))]}))})),iC=nC,oC="Search-gridContainer",rC="Search-gridItem",sC=(0,vt.ZP)(So)((({theme:e})=>({[`& .${oC}`]:{padding:e.spacing(0,1,0,1)},[`& .${rC}`]:{padding:e.spacing(0,1,0,1)}})));function aC({onChange:e=(()=>{}),onEnter:t=(()=>{}),onEscape:i=(()=>{})}){const[o,r]=(0,n.useState)("");return n.createElement(sC,{className:oC,item:!0,container:!0,direction:"row",alignItems:"center"},n.createElement(So,{item:!0},n.createElement(Ag,null)),n.createElement(So,{className:rC,item:!0,xs:!0},n.createElement(iC,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{r(t.target.value),e(t.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":t(),r("");break;case"Escape":i()}}})))}function lC({field:e,onSelect:t,sub:i,parts:o}){return n.createElement(Rr,{button:!0,onClick:()=>t(e.qName),"data-key":e.qName},n.createElement(Fr,null,o.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),i&&n.createElement(A_.Z,{fontSize:"small"}))}function cC({item:e,onSelect:t,parts:i}){return n.createElement(Rr,{button:!0,onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId},n.createElement(Fr,null,i.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function dC({aggr:e,field:t,onSelect:i}){return n.createElement(Rr,{button:!0,onClick:()=>i(e),"data-key":e},n.createElement(Fr,null,`${e}(${t})`))}function uC({app:e,onSelect:t,title:i="",type:o="dimension",searchTerm:r=""}){const[s]=L_(e,o),a=(0,n.useMemo)((()=>s.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[s]);return s.length>0?n.createElement(n.Fragment,null,n.createElement(I_,{component:"div",style:{backgroundColor:"inherit"}},i),a.map((e=>{const i=T_()(e.qData.title,r),o=R_()(e.qData.title,i);return r&&0===i.length?null:n.createElement(cC,{key:e.qInfo.qId,item:e,onSelect:t,parts:o})}))):null}function hC({alignTo:e,show:t,close:i,onSelected:o,type:r}){const s=(0,n.useContext)(C_),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(""),u=Ht(),[h]=hc({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=dc(h),p=(0,n.useMemo)((()=>(g&&g.qFieldList.qItems||[]).slice().sort(((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())))),[g]),m=e=>{e&&e.qId?(o(e),i()):"measure"===r?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return n.createElement(Md,{open:t,onClose:i,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:u.palette.background.lightest}}},!a&&n.createElement(aC,{onChange:d}),a&&n.createElement(mr,{dense:!0,component:"nav"},n.createElement(Rr,{button:!0,onClick:()=>l(null)},n.createElement(rg,null,n.createElement(M_.Z,null)),n.createElement(Fr,null,"Back")),n.createElement(Vh,null),n.createElement(I_,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>n.createElement(dC,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&n.createElement(mr,{dense:!0,component:"nav",style:{background:u.palette.background.lightest}},n.createElement(uC,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),n.createElement(I_,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const t=T_()(e.qName,c),i=R_()(e.qName,t);return c&&0===t.length?null:n.createElement(lC,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:i})}))))}const gC=({field:e,libraryItems:t})=>{if(e.qLibraryId){const n=t.filter((t=>t.qInfo.qId===e.qLibraryId))[0];return n?n.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function pC({items:e,type:t="dimension",label:i="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),u=(0,n.useContext)(C_),[h]=L_(u,t);return n.createElement("div",null,n.createElement(Io,{variant:"overline"},i),n.createElement(mr,{dense:!0},e.map(((e,i)=>n.createElement(Rr,{disableGutters:!0,key:e.qDef&&e.qDef.cId||i},n.createElement(Fr,null,n.createElement(gC,{field:e,libraryItems:h,type:t})),n.createElement(kr,null,n.createElement(uo,{onClick:()=>{s(i)},size:"large"},n.createElement(cr,null))))))),n.createElement(wa,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&n.createElement(hC,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?r(e):e&&r("dimension"===t?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:t}))}function mC({setProperties:e,target:t,properties:i}){const[o,r]=(0,n.useState)([]),s=t.dimensions&&t.dimensions.max&&t.dimensions.max()>1?w_:y_,a=t.propertyPath.match("/qHyperCube")?jp:s,l=((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(i,t.propertyPath),c=(0,n.useMemo)((()=>a({def:t,dc:l,properties:i,dimensions:o})),[l,t,i,o]);return n.createElement("div",{style:{width:"100%"}},n.createElement(Io,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},t.propertyPath),n.createElement(pC,{key:"dimensions",onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(n);e(i).then((()=>{r([...o,s])}))},onRemoved:t=>{c.removeDimension(t),e(i).then((()=>{r([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),n.createElement(pC,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(i)},onRemoved:t=>{c.removeMeasure(t),e(i)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function fC({setProperties:e,sn:t,properties:i}){if(!t)return null;const{targets:o}=t.qae.data;return o.length?n.createElement(mr,null,o.map((t=>n.createElement(Rr,{key:t.propertyPath,divider:!0,disableGutters:!0},n.createElement(mC,{target:t,properties:i,setProperties:e}))))):n.createElement(Io,null,"No data targets found")}const vC=n.createContext({});function _C(e){return(0,bt.Z)("MuiAccordion",e)}const bC=(0,_t.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),CC=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],yC=(0,vt.ZP)(Ld,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bC.region}`]:t.region},t.root,!n.square&&t.rounded,!n.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"}},[`&.${bC.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${bC.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,ut.Z)({},!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&&{[`&.${bC.expanded}`]:{margin:"16px 0"}}))),wC=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiAccordion"}),{children:o,className:r,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:u=!1,TransitionComponent:h=or,TransitionProps:g}=i,p=(0,dt.Z)(i,CC),[m,f]=(0,Jd.Z)({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=n.useCallback((e=>{f(!m),d&&d(e,!m)}),[m,d,f]),[_,...b]=n.Children.toArray(o),C=n.useMemo((()=>({expanded:m,disabled:a,disableGutters:l,toggle:v})),[m,a,l,v]),y=(0,ut.Z)({},i,{square:u,disabled:a,disableGutters:l,expanded:m}),w=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:r}=e,s={root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return(0,gt.Z)(s,_C,t)})(y);return(0,yt.jsxs)(yC,(0,ut.Z)({className:(0,ht.Z)(w.root,r),ref:t,ownerState:y,square:u},p,{children:[(0,yt.jsx)(vC.Provider,{value:C,children:_}),(0,yt.jsx)(h,(0,ut.Z)({in:m,timeout:"auto"},g,{children:(0,yt.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:w.region,children:b})}))]}))})),SC=wC;function xC(e){return(0,bt.Z)("MuiAccordionSummary",e)}const LC=(0,_t.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),kC=["children","className","expandIcon","focusVisibleClassName","onClick"],EC=(0,vt.ZP)(oo,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return(0,ut.Z)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${LC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${LC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${LC.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${LC.expanded}`]:{minHeight:64}})})),NC=(0,vt.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,ut.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${LC.expanded}`]:{margin:"20px 0"}}))),DC=(0,vt.ZP)("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}),[`&.${LC.expanded}`]:{transform:"rotate(180deg)"}}))),IC=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l}=i,c=(0,dt.Z)(i,kC),{disabled:d=!1,disableGutters:u,expanded:h,toggle:g}=n.useContext(vC),p=(0,ut.Z)({},i,{expanded:h,disabled:d,disableGutters:u}),m=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e,r={root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,gt.Z)(r,xC,t)})(p);return(0,yt.jsxs)(EC,(0,ut.Z)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":h,className:(0,ht.Z)(m.root,r),focusVisibleClassName:(0,ht.Z)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:t,ownerState:p},c,{children:[(0,yt.jsx)(NC,{className:m.content,ownerState:p,children:o}),s&&(0,yt.jsx)(DC,{className:m.expandIconWrapper,ownerState:p,children:s})]}))})),qC=IC;function RC(e){return(0,bt.Z)("MuiAccordionDetails",e)}(0,_t.Z)("MuiAccordionDetails",["root"]);const OC=["className"],TC=(0,vt.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),AC=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiAccordionDetails"}),{className:i}=n,o=(0,dt.Z)(n,OC),r=n,s=(e=>{const{classes:t}=e;return(0,gt.Z)({root:["root"]},RC,t)})(r);return(0,yt.jsx)(TC,(0,ut.Z)({className:(0,ht.Z)(s.root,i),ref:t,ownerState:r},o))})),MC=AC;var PC=s(59579);let FC=null;const BC="AutoComponents-summary",VC="AutoComponents-details",WC="AutoComponents-root",zC=(0,vt.ZP)(So)((({theme:e})=>({[`& .${BC}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${VC}`]:{padding:e.spacing(1)}}))),HC=(0,vt.ZP)(SC)((({theme:e})=>({[`& .${WC}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),jC={boolean:function({property:e,value:t,target:i,changed:o}){return n.createElement(Qd,{control:n.createElement(vu,{checked:t,onChange:t=>{i[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(t);return n.createElement(iC,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=r,o())},label:e,value:r})},object:function({property:e,value:t,changed:i,app:o}){return n.createElement(HC,{square:!0,className:WC},n.createElement(qC,{expandIcon:n.createElement(PC.Z,null),className:BC},n.createElement(Io,null,e)),n.createElement(MC,{className:VC},KC(t,i,o)))},number:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(+t);return n.createElement(iC,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:t,target:i,changed:o}){const r=t.qStringExpression&&t.qStringExpression.qExpr?t.qStringExpression.qExpr:"",[s,a]=(0,n.useState)(r);return n.createElement(iC,{variant:"standard",InputProps:{startAdornment:n.createElement(Tg,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==t&&(i[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:t,target:i,changed:o,app:r}){const[s,a]=(0,n.useState)(t.name),[l,c]=(0,n.useState)([]);return(0,n.useEffect)((()=>{!async function(){const e=await async function(e){return FC||(FC=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await FC.getLayout()).qVariableList.qItems.map((e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName})))}(r);c(e)}()}),[]),0===l.length?n.createElement("em",null,"No variables in app"):n.createElement(pb,{size:"small",fullWidth:!0},n.createElement(Yb,{onChange:t=>{a(t.target.value),i[e].name=t.target.value,i[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:s,renderValue:e=>0===e.length?n.createElement("em",null,"Select a variable"):e},l.map((e=>n.createElement(tg,{key:e.value,value:e.value},e.label)))))}},UC=/^q[A-Z]/;let $C=!1;function KC(e,t,i,o){o&&o.PP_EXPRESSIONS&&($C=!0);const r=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(UC.test(t))return!1;const n=((e,t)=>Array.isArray(e)?"array":$C&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":$C&&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")(e[t],t);return!!jC[n]&&{Component:jC[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return n.createElement(zC,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map((o=>n.createElement(So,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},n.createElement(o.Component,{key:o.key,app:i,property:o.property,value:o.value,target:e,changed:t})))))}function GC({viz:e,sn:t,isTemp:i,storage:o,flags:r}){const[s,a]=b_(e.id),l=(0,n.useContext)(C_),[c,d]=(0,n.useState)(!1!==o.get("readFromCache")),u=(0,n.useCallback)((()=>{a(s)}),[e,t,s]);return t&&e&&s?n.createElement("div",{style:{minWidth:"250px",padding:"8px"}},i&&n.createElement(n.Fragment,null,n.createElement(So,{item:!0,container:!0,alignItems:"center"},n.createElement(Qd,{control:n.createElement(vu,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),n.createElement(Vh,null)),n.createElement(fC,{properties:s,setProperties:a,sn:t}),KC(s,u,l,r)):null}function ZC(e){return(0,bt.Z)("MuiDialog",e)}const QC=(0,_t.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),YC=(0,n.createContext)({}),XC=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],JC=(0,vt.ZP)(pd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ey=(0,vt.ZP)(bd,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ty=(0,vt.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,Ft.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,ut.Z)({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"}}))),ny=(0,vt.ZP)(Ld,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,Ft.Z)(n.scroll)}`],t[`paperWidth${(0,Ft.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${QC.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}`,[`&.${QC.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,[`&.${QC.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),iy=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiDialog"}),o=Ht(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:u,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClose:v,open:_,PaperComponent:b=Ld,PaperProps:C={},scroll:y="paper",TransitionComponent:w=cd,transitionDuration:S=r,TransitionProps:x}=i,L=(0,dt.Z)(i,XC),k=(0,ut.Z)({},i,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:p,maxWidth:m,scroll:y}),E=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${(0,Ft.Z)(n)}`],paper:["paper",`paperScroll${(0,Ft.Z)(n)}`,`paperWidth${(0,Ft.Z)(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return(0,gt.Z)(s,ZC,t)})(k),N=n.useRef(),D=(0,P_.Z)(a),I=n.useMemo((()=>({titleId:D})),[D]);return(0,yt.jsx)(ey,(0,ut.Z)({className:(0,ht.Z)(E.root,u),closeAfterTransition:!0,components:{Backdrop:JC},componentsProps:{backdrop:(0,ut.Z)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:h,onClose:v,open:_,ref:t,onClick:e=>{N.current&&(N.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:k},L,{children:(0,yt.jsx)(w,(0,ut.Z)({appear:!0,in:_,timeout:S,role:"presentation"},x,{children:(0,yt.jsx)(ty,{className:(0,ht.Z)(E.container),onMouseDown:e=>{N.current=e.target===e.currentTarget},ownerState:k,children:(0,yt.jsx)(ny,(0,ut.Z)({as:b,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},C,{className:(0,ht.Z)(E.paper,C.className),ownerState:k,children:(0,yt.jsx)(YC.Provider,{value:I,children:d})}))})}))}))})),oy=iy;function ry(e){return(0,bt.Z)("MuiDialogTitle",e)}const sy=(0,_t.Z)("MuiDialogTitle",["root"]),ay=["className","id"],ly=(0,vt.ZP)(Io,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),cy=n.forwardRef((function(e,t){const i=(0,ft.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:r}=i,s=(0,dt.Z)(i,ay),a=i,l=(e=>{const{classes:t}=e;return(0,gt.Z)({root:["root"]},ry,t)})(a),{titleId:c=r}=n.useContext(YC);return(0,yt.jsx)(ly,(0,ut.Z)({component:"h2",className:(0,ht.Z)(l.root,o),ownerState:a,ref:t,variant:"h6",id:c},s))})),dy=cy;function uy(e){return(0,bt.Z)("MuiDialogContent",e)}(0,_t.Z)("MuiDialogContent",["root","dividers"]);const hy=["className","dividers"],gy=(0,vt.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,ut.Z)({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}`}:{[`.${sy.root} + &`]:{paddingTop:0}}))),py=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,r=(0,dt.Z)(n,hy),s=(0,ut.Z)({},n,{dividers:o}),a=(e=>{const{classes:t,dividers:n}=e,i={root:["root",n&&"dividers"]};return(0,gt.Z)(i,uy,t)})(s);return(0,yt.jsx)(gy,(0,ut.Z)({className:(0,ht.Z)(a.root,i),ownerState:s,ref:t},r))})),my=py;function fy(e){return(0,bt.Z)("MuiDialogActions",e)}(0,_t.Z)("MuiDialogActions",["root","spacing"]);const vy=["className","disableSpacing"],_y=(0,vt.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,ut.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),by=n.forwardRef((function(e,t){const n=(0,ft.Z)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,r=(0,dt.Z)(n,vy),s=(0,ut.Z)({},n,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:n}=e,i={root:["root",!n&&"spacing"]};return(0,gt.Z)(i,fy,t)})(s);return(0,yt.jsx)(_y,(0,ut.Z)({className:(0,ht.Z)(a.root,i),ownerState:s,ref:t},r))})),Cy=by;var yy=s(1599);function wy({model:e,show:t,close:i}){const[o,r]=(0,n.useState)(""),[s,a]=(0,n.useState)(null),[l,c]=(0,n.useState)([]),[d,u,h]=kc(),g=Ht(),p=(0,n.useCallback)((()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(i)}));return(0,n.useEffect)((()=>{if(!t)return;const n=()=>{e&&t&&e.getProperties().then((e=>{t&&r(JSON.stringify(e||{},null,2))}))};return e.on("changed",n),n(),()=>{e&&e.removeListener("changed",n)}}),[e&&e.id,t]),(0,n.useEffect)((()=>{if(!(d&&h&&u&&o))return;const{left:e,top:t,width:n,height:i}=u;if(0===e&&0===t&&0===n&&0===i)return;const r=yy.editor.create(h,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});r.layout({width:u.width,height:u.height});const s=r.onDidChangeModelDecorations((()=>{const e=yy.editor.getModelMarkers();c(e)}));return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}}),[h,u,o]),n.createElement(oy,{disableEscapeKeyDown:!0,open:t,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}}},n.createElement(dy,null,"Modify object properties"),n.createElement(my,{dividers:!0},n.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),n.createElement(Cy,null,n.createElement(wa,{variant:"contained",onClick:i},"Cancel"),n.createElement(wa,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const Sy=n.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),xy=n.createContext();function Ly({id:e,onLoad:t}){const i=(0,n.useContext)(xy),o=(0,n.useRef)();return(0,n.useEffect)((()=>{const n=i.render({id:e,element:o.current});return n.then((e=>{t(e,o.current)})),()=>{n.then((e=>{e.destroy()}))}}),[e]),n.createElement("div",{ref:o,style:{height:"100%"}})}const ky="Cell-secondaryIcon",Ey="Cell-drop",Ny=(0,vt.ZP)(So)((({theme:e})=>({[`& .${ky}`]:{color:e.palette.text.secondary},[`& .${Ey}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function Dy({id:e,expandable:t,minHeight:i}){const o=(0,n.useContext)(C_),[r,s]=(0,n.useState)(null),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(null),{currentThemeName:u,activeViz:h,setActiveViz:g,setExpandedObject:p,expandedObject:m}=(0,n.useContext)(Sy),f=m===e,v=(0,n.useRef)();(0,n.useEffect)((()=>{const t=o.getObject(e).then((e=>(s(e),e)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[_,b]=(0,n.useState)(!1),C=(0,n.useCallback)((()=>{b(!1)}),[]),y=(0,n.useCallback)(((e,t)=>{v.current={viz:e,el:t},d(e)}),[e]),w=(0,n.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)}`)}))}}),[r,u]),S=!f&&v.current&&h&&h===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=h===c;return n.createElement(Ny,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"}},n.createElement(So,{item:!0},n.createElement(Uv,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},n.createElement(wy,{model:r,show:_,close:C}),n.createElement(uo,{title:"Modify object properties",className:ky,disabled:!r,onClick:()=>b(!0),size:"large"},lr({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"}}]})),n.createElement(uo,{title:"Open in single render view",className:ky,disabled:!r,href:r?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${r.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large"},lr({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"}}]})),n.createElement(uo,{title:"Take and render as snapshot",className:ky,disabled:!r,onClick:()=>w(),size:"large"},lr({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?n.createElement(Ua,{size:24}):n.createElement(uo,{title:"Export as image",className:ky,disabled:!r,onClick:()=>w(!0),size:"large"},lr({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"}}]})),n.createElement(So,{item:!0,xs:!0}),t&&n.createElement(uo,{title:"Edit",className:ky,disabled:!c||x,onClick:()=>g(c),size:"large"},lr({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&&n.createElement(uo,{title:"Expand",disabled:!r||!c,className:ky,onClick:()=>{f?p(null):(p(e),g(c))},size:"large"},lr({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"}}]})))),n.createElement(So,{item:!0,xs:!0,style:{...S},className:Ey},n.createElement(Ly,{id:e,onLoad:y})))}function Iy({info:e,storage:t,uid:i}){const o=(0,n.useContext)(xy),{activeViz:r,setActiveViz:s}=(0,n.useContext)(Sy),[a]=b_(i);return(0,n.useEffect)((()=>{if(!i)return;const n=o.render({type:e.supernova.name,properties:{...!1!==t.get("readFromCache")?t.props(e.supernova.name):{},qInfo:{qId:i,qType:e.supernova.name}}});return n.then((e=>{s(e)})),()=>{n.then((e=>e.destroy()))}}),[i]),(0,n.useEffect)((()=>{a&&t.props(e.supernova.name,a)}),[a]),r&&r.id===i?n.createElement(So,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},n.createElement(So,{item:!0,xs:!0},n.createElement(Dy,{id:i}))):null}function qy({types:e,cache:t}){const i=(0,n.useContext)(C_),[o]=uc(i),[r,s]=(0,n.useState)(null),{expandedObject:a}=(0,n.useContext)(Sy);if((0,n.useEffect)((()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then((e=>{s(e.slice(0,20))}))}),[o,e.join(":")]),!r)return null;const l=a?r.filter((e=>e.qInfo.qId===a)):r;return n.createElement(So,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>n.createElement(So,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${t}`},n.createElement(Dy,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):n.createElement(So,{item:!0},n.createElement("div",null,n.createElement(Io,{display:"inline"},"Could not find any components with "),n.createElement(Io,{display:"inline"},n.createElement("code",null,`qType: "${e[0]}"`)),n.createElement(Io,{display:"inline"}," in the current app"))))}const Ry=["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"];function Oy(){const e=(0,n.useRef)(),t=K(),{info:i}=tt(),{waiting:o,app:r}=(({info:e})=>{const[t,i]=(0,n.useState)(null),[o,r]=(0,n.useState)(!0);(0,n.useEffect)((()=>{r(!0),e&&s().then((e=>i(e))).catch((e=>console.log(e))).finally((()=>r(!1)))}),[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:n,enigma:i=null,enigma:{host:o}={}}=e;let r="";if(n){const t=await et({webIntegrationId:n,host:o});r=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/getSocketUrl/${e?.enigma.appId}`)).json();r=t}else r=ge().buildUrl(i);return(await de().create({schema:ue,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:t,setApp:i}})({info:i}),s=(0,n.useMemo)((()=>rt(r)),[r]),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[u,h]=(0,n.useState)(null),[g,p]=(0,n.useState)(s.get("themeName")),[m,f]=(0,n.useState)(s.get("language")||"en-US"),[v,_]=(0,n.useState)("light"),[b,C]=(0,n.useState)(!0===s.get("objectListMode")),y=(0,n.useRef)(null),[w,S]=(0,n.useState)(),[x,L]=n.useState(null),[k,E]=n.useState(null),[N,D]=(0,n.useState)(null),I=Array.isArray(i?.themes)&&i.themes.length?["light","dark",...i.themes]:[],q=(0,n.useMemo)((()=>bn(v)),[v]),R=(0,n.useMemo)((()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d})),[a,c,g]);(0,n.useEffect)((()=>{i&&function(e){const t=()=>{v_(e.supernova.name,e.supernova.url).then((t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,__[n]&&__[n].forEach((e=>e()))})),e.types&&e.types.forEach((e=>{v_(e.name,e.url).then((t=>{window[e.name]=t}))}))};e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t()}(i)}),[i]),(0,n.useEffect)((()=>{if(o)return;const e=Cv(r,{context:{theme:g,language:m,keyboardNavigation:i?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:i?.flags,themes:i?.themes?i?.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(i?.supernova),i?.types&&i?.types.forEach((t=>{e.__DO_NOT_USE__.types.register(t)})),D(e)}),[r,i,o]),(0,n.useLayoutEffect)((()=>{N&&(N.context({theme:g}),"light"!==g&&"dark"!==g||_(g))}),[N,g]),(0,n.useEffect)((()=>{N&&(N.selections().then((e=>e.mount(y.current))),window.onHotChange(i?.supernova.name,(()=>{N.__DO_NOT_USE__.types.clearFromCache(i?.supernova.name),N.__DO_NOT_USE__.types.register(i?.supernova),O(),N.__DO_NOT_USE__.types.get({name:i?.supernova.name}).supernova().then(h)})),O())}),[N,i]),(0,n.useEffect)((()=>{const t=()=>{r&&r.destroySessionObject(e.current)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[r]);const O=()=>{window[i?.supernova.name]&&(e.current=String(Date.now()),S(e.current))};return n.createElement(C_.Provider,{value:r},n.createElement(en,{injectFirst:!0},n.createElement(Xt,{theme:q},n.createElement(xy.Provider,{value:N},n.createElement(So,{container:!0,wrap:"nowrap",direction:"column",style:{background:q.palette.background.darkest,height:"100%"},gap:0},n.createElement(So,{item:!0},n.createElement(Uv,{variant:"dense",style:{background:q.palette.background.paper,boxShadow:q.shadows[1]}},n.createElement(So,{container:!0,gap:1},n.createElement(So,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(So,{item:!0},n.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},n.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"}})))),n.createElement(So,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(uo,{title:"Home",onClick:()=>t("/"),size:"large"},n.createElement(Mv.Z,{style:{verticalAlign:"middle"}}))),n.createElement(So,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(bs,{value:b?1:0,onChange:(e,t)=>{const n=1===t;s.save("objectListMode",n),n&&(l(null),d(null)),C(n)},"aria-label":"Navigation"},n.createElement(Ls,{label:n.createElement(Io,null,"Create"),value:0}),n.createElement(Ls,{label:n.createElement(Io,null,"Edit"),value:1}))),n.createElement(So,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(So,{item:!0},I.length?n.createElement(n.Fragment,null,n.createElement(uo,{title:"Select theme",onClick:e=>L(e.currentTarget),size:"large"},n.createElement(Pv.Z,{fontSize:"small"})),n.createElement(t_,{anchorEl:x,open:!!x,keepMounted:!0,onClose:()=>L(null)},I.map((e=>n.createElement(tg,{key:e,selected:e===g,onClick:()=>(e=>{L(null),s.save("themeName",e),p(e)})(e)},e))))):n.createElement(uo,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?n.createElement(Fv.Z,{fontSize:"small"}):n.createElement(Bv.Z,{fontSize:"small"}))),n.createElement(So,{item:!0},n.createElement(wa,{startIcon:n.createElement(Vv.Z,null),title:"Select language",onClick:e=>E(e.currentTarget)},m),n.createElement(t_,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},Ry.map((e=>n.createElement(tg,{key:e,selected:e===m,onClick:()=>{return t=e,E(null),s.save("language",t),f(t),void N.context({language:t});var t}},e))))))))),n.createElement(So,{item:!0,style:{padding:q.spacing(1,1,0,1)}},n.createElement("div",{ref:y,style:{flex:"0 0 auto",boxShadow:q.shadows[1]}})),n.createElement(So,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:q.spacing(0,1,1,1)}},n.createElement(Sy.Provider,{value:R},u?n.createElement(So,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},n.createElement(So,{item:!0,xs:!0,zeroMinWidth:!0},b?n.createElement(qy,{cache:w,types:[i?.supernova.name]}):n.createElement(Iy,{info:i,storage:s,uid:w})),a&&n.createElement(So,{item:!0,style:{background:q.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:q.shadows[1],padding:0}},n.createElement(GC,{sn:u,viz:a,isTemp:!b,storage:s,flags:i?.flags}))):n.createElement(So,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},n.createElement(So,{item:!0},n.createElement(Ua,null))))))))))}const Ty=()=>n.createElement(le,null,n.createElement(ct,null,n.createElement(se,null,n.createElement(oe,{element:n.createElement(mi,null)},n.createElement(oe,{path:"/",element:n.createElement(qa,null)}),n.createElement(oe,{path:"/app-list",element:n.createElement($a,null)})),n.createElement(oe,{path:"/dev",element:n.createElement(Oy,null)}))));o.s(document.querySelector("#app")).render(n.createElement(Ty,null))})()})();
|