@nebula.js/stardust 5.12.5 → 5.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +33 -41
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -4
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +34 -42
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +4 -4
- package/dist/stardust.js.map +1 -1
- package/package.json +11 -11
package/core/esm/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.12.
|
|
2
|
+
* @nebula.js/stardust v5.12.6
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import*as e from"react";import t,{useState as n,useEffect as r,forwardRef as o,useMemo as i,useImperativeHandle as a,useContext as s,useReducer as l,useCallback as c,useLayoutEffect as u,PureComponent as d,useRef as p,createElement as h,Component as f}from"react";import m from"react-dom";import{CacheProvider as g,Global as b,ThemeContext as y,css as v,keyframes as S}from"@emotion/react";import{Checkbox as x,Radio as E,Typography as w,FormControlLabel as C,Box as L,Grid as k,Tooltip as R,Paper as I,IconButton as _,styled as O,Popover as q,MenuList as T,MenuItem as M,ListItemIcon as D,Divider as P,OutlinedInput as A,InputAdornment as N,Badge as j,List as z,ListItem as F,Button as W,ButtonBase as B,CircularProgress as H,Icon as $}from"@mui/material";import U from"@emotion/styled";function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function V(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var K,Z={exports:{}};function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(null,arguments)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}K||(K=1,function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:k(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",g={};function b(){}function y(){}function v(){}var S={};c(S,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(q([])));E&&E!==n&&r.call(E,a)&&(S=E);var w=v.prototype=b.prototype=Object.create(S);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(e,n,r){var o=p;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=R(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:h,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function q(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},C(L.prototype),c(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new L(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=q,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:q(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(Z));const te=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var ne,re,oe={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function ie(e){const t=te({initial:e});return Object.keys(oe).forEach((e=>{t.translator.add(oe[e])})),{translator:t.translator}}var ae=function(){if(re)return ne;re=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},ne=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},ne}(),se=G(ae);function le(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ce(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ue(){}var de,pe,he=.7,fe=1/he,me="\\s*([+-]?\\d+)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ye=/^#([0-9a-f]{3,8})$/,ve=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),Se=new RegExp(`^rgb\\(${be},${be},${be}\\)$`),xe=new RegExp(`^rgba\\(${me},${me},${me},${ge}\\)$`),Ee=new RegExp(`^rgba\\(${be},${be},${be},${ge}\\)$`),we=new RegExp(`^hsl\\(${ge},${be},${be}\\)$`),Ce=new RegExp(`^hsla\\(${ge},${be},${be},${ge}\\)$`),Le={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 ke(){return this.rgb().formatHex()}function Re(){return this.rgb().formatRgb()}function Ie(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ye.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_e(t):3===n?new Te(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Oe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Oe(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=ve.exec(e))?new Te(t[1],t[2],t[3],1):(t=Se.exec(e))?new Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xe.exec(e))?Oe(t[1],t[2],t[3],t[4]):(t=Ee.exec(e))?Oe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=we.exec(e))?je(t[1],t[2]/100,t[3]/100,1):(t=Ce.exec(e))?je(t[1],t[2]/100,t[3]/100,t[4]):Le.hasOwnProperty(e)?_e(Le[e]):"transparent"===e?new Te(NaN,NaN,NaN,0):null}function _e(e){return new Te(e>>16&255,e>>8&255,255&e,1)}function Oe(e,t,n,r){return r<=0&&(e=t=n=NaN),new Te(e,t,n,r)}function qe(e,t,n,r){return 1===arguments.length?function(e){return e instanceof ue||(e=Ie(e)),e?new Te((e=e.rgb()).r,e.g,e.b,e.opacity):new Te}(e):new Te(e,t,n,null==r?1:r)}function Te(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Me(){return`#${Ne(this.r)}${Ne(this.g)}${Ne(this.b)}`}function De(){const e=Pe(this.opacity);return`${1===e?"rgb(":"rgba("}${Ae(this.r)}, ${Ae(this.g)}, ${Ae(this.b)}${1===e?")":`, ${e})`}`}function Pe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ae(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ne(e){return((e=Ae(e))<16?"0":"")+e.toString(16)}function je(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Fe(e,t,n,r)}function ze(e){if(e instanceof Fe)return new Fe(e.h,e.s,e.l,e.opacity);if(e instanceof ue||(e=Ie(e)),!e)return new Fe;if(e instanceof Fe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Fe(a,s,l,e.opacity)}function Fe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function We(e){return(e=(e||0)%360)<0?e+360:e}function Be(e){return Math.max(0,Math.min(1,e||0))}function He(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}le(ue,Ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ke,formatHex:ke,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ze(this).formatHsl()},formatRgb:Re,toString:Re}),le(Te,qe,ce(ue,{brighter(e){return e=null==e?fe:Math.pow(fe,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?he:Math.pow(he,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Te(Ae(this.r),Ae(this.g),Ae(this.b),Pe(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:Me,formatHex:Me,formatHex8:function(){return`#${Ne(this.r)}${Ne(this.g)}${Ne(this.b)}${Ne(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:De,toString:De})),le(Fe,(function(e,t,n,r){return 1===arguments.length?ze(e):new Fe(e,t,n,null==r?1:r)}),ce(ue,{brighter(e){return e=null==e?fe:Math.pow(fe,e),new Fe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?he:Math.pow(he,e),new Fe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Te(He(e>=240?e-240:e+120,o,r),He(e,o,r),He(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Fe(We(this.h),Be(this.s),Be(this.l),Pe(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=Pe(this.opacity);return`${1===e?"hsl(":"hsla("}${We(this.h)}, ${100*Be(this.s)}%, ${100*Be(this.l)}%${1===e?")":`, ${e})`}`}}));var $e=function(){if(pe)return de;pe=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return de=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},de}(),Ue=G($e),Ge={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px",backgroundColor:"transparent"},subTitle:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ke={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Ze={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const Je={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Xe=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Ye=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Qe=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,et=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,tt=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,nt=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:rt}=Math,{round:ot}=Math;class it{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,i,a,s,l,c,u,d,p,h,f,m=0,g=0,b=0,y=1;if(this._invalid=!1,t[0]instanceof it)m=t[0]._r,g=t[0]._g,b=t[0]._b,y=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(f=t[0],h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))m=parseInt(h[1],10),g=parseInt(h[2],10),b=parseInt(h[3],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(f))m=parseInt(h[1],10),g=parseInt(h[2],10),b=parseInt(h[3],10),y=parseFloat(h[4]);else if(h=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))y=parseInt(h[1],10)/255,m=parseInt(h[2],10),g=parseInt(h[3],10),b=parseInt(h[4],10);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(f))m=parseInt(h[1],16),g=parseInt(h[2],16),b=parseInt(h[3],16),y=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(f))m=parseInt(h[1]+h[1],16),g=parseInt(h[2]+h[2],16),b=parseInt(h[3]+h[3],16),y=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),a=parseFloat(h[5]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=ot(255*m),g=ot(255*g),b=ot(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),a=parseFloat(h[5]),y=parseFloat(h[7]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=ot(255*m),g=ot(255*g),b=ot(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),s=parseFloat(h[5]),r%=360,o/=100,s/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,s=s<0?0:s>1?1:s,l=s*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=s-l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=ot(255*m),g=ot(255*g),b=ot(255*b),y=1}else Je[f.toLowerCase()]?(i=f.toLowerCase(),m=Je[i].r,g=Je[i].g,b=Je[i].b,y="number"==typeof Je[i].a?Je[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(y=(4278190080&t[0])>>>24,y/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],y=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+y)&&(this._invalid=!0),this._r=rt(m),this._g=rt(g),this._b=rt(b),this._a=y,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=it.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=it.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=it.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=it.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=it.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=it.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=it.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=it.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let i=parseFloat(n[5]);const a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}isEqual(e){return e instanceof it||(e=new it(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=rt(this._r+(e._r-this._r)*t),r=rt(this._g+(e._g-this._g)*t),o=rt(this._b+(e._b-this._b)*t),i=rt(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new it(r)}static toRGB(e){if(e instanceof it)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=it.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof it)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=it.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof it?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=it.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new it(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),u=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+u)/2,c===u)n=0,i=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new it(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,u=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new it(e));const o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(n=s-l,t=0===n?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof it)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,i=0,a=0,s=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(i=parseInt(r[1],10),a=parseInt(r[2],10),s=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(i=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(i=parseInt(r[1]+r[1],16),a=parseInt(r[2]+r[2],16),s=parseInt(r[3]+r[3],16))),(i<<16)+(a<<8)+s}static blend(e,t,n){const r=(16711680&(e=it.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=it.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new it(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Xe.test(e)||Ye.test(e)||Qe.test(e)||et.test(e)||tt.test(e)||nt.test(e)||Je[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new it(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class at{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Ie(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([Ie(e),Ie(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const i=this.colorParts[t][o],a=i[0],s=i[1];if(e===this.min)return s;if(e===this.max)return a;const l=function(e,t,n){return qe(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(a,s,r-o);return l}}function st(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function lt(e,t,n){const r=[],o=new at(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);r.push(e[i]),n||r.push(e[i]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function ct(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=st(1/t*o,t,n);i=e.getColor(r);break}}r.push(Ie(i).formatHex())}return r}function ut(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=lt(e,n,!0),o=lt(ct(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(ct(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function dt(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function pt(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 ht(e,t,n,r){let o;if(""===e)o=dt(null,n);else{o=dt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=pt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function ft(e,t){const n=e.split(".");return{getStyle:(e,r)=>ht(e,r,n.concat(),t)}}function mt(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?mt(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function gt(e){const t=Ie(e);if(!t)return 0;const{r:n,g:r,b:o}=t.rgb(),[i,a,s]=[n,r,o].map((e=>e/255)),[l,c,u]=[i,a,s].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*u).toFixed(5)}ft.resolveRawTheme=e=>{const t=Ue(!0,{},e);return mt(t,t._variables),t.scales&&ut(t.scales,t.dataColors&&t.dataColors.nullColor),t};const bt=1e3;function yt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(gt);return{getBestContrastColor(o){if(!t[o]){n>bt&&(t={},n=0);const i=gt(o),a=r.map((e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}function vt(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=ft(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=Ie(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Ke:Ve;let r=Ze;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Ue(!0,{},Ge,r,n),i=Ue(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,ft.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){const n="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),r="string"==typeof(null==e?void 0:e.color);if(!n&&!r)return;const o=(()=>(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return o;const i=new it(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const s=o.getStyle("","","color"),l=gt(s);n=yt([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(se.prototype).forEach((e=>{o[e]=se.prototype[e]})),se.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const St=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),xt=5e3;function Et(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var wt,Ct={};var Lt=function(){if(wt)return Ct;wt=1;var e=m;return Ct.createRoot=e.createRoot,Ct.hydrateRoot=e.hydrateRoot,Ct}(),kt=G(Lt);function Rt(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var It=Object.freeze({__proto__:null,default:Rt}),_t="$$material";function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}function qt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Tt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Mt="-ms-",Dt="-moz-",Pt="-webkit-",At="comm",Nt="rule",jt="decl",zt="@keyframes",Ft=Math.abs,Wt=String.fromCharCode,Bt=Object.assign;function Ht(e){return e.trim()}function $t(e,t,n){return e.replace(t,n)}function Ut(e,t){return e.indexOf(t)}function Gt(e,t){return 0|e.charCodeAt(t)}function Vt(e,t,n){return e.slice(t,n)}function Kt(e){return e.length}function Zt(e){return e.length}function Jt(e,t){return t.push(e),e}var Xt=1,Yt=1,Qt=0,en=0,tn=0,nn="";function rn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Xt,column:Yt,length:a,return:""}}function on(e,t){return Bt(rn("",null,null,"",null,null,0),e,{length:-e.length},t)}function an(){return tn=en>0?Gt(nn,--en):0,Yt--,10===tn&&(Yt=1,Xt--),tn}function sn(){return tn=en<Qt?Gt(nn,en++):0,Yt++,10===tn&&(Yt=1,Xt++),tn}function ln(){return Gt(nn,en)}function cn(){return en}function un(e,t){return Vt(nn,e,t)}function dn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pn(e){return Xt=Yt=1,Qt=Kt(nn=e),en=0,[]}function hn(e){return nn="",e}function fn(e){return Ht(un(en-1,bn(91===e?e+2:40===e?e+1:e)))}function mn(e){for(;(tn=ln())&&tn<33;)sn();return dn(e)>2||dn(tn)>3?"":" "}function gn(e,t){for(;--t&&sn()&&!(tn<48||tn>102||tn>57&&tn<65||tn>70&&tn<97););return un(e,cn()+(t<6&&32==ln()&&32==sn()))}function bn(e){for(;sn();)switch(tn){case e:return en;case 34:case 39:34!==e&&39!==e&&bn(tn);break;case 40:41===e&&bn(e);break;case 92:sn()}return en}function yn(e,t){for(;sn()&&e+tn!==57&&(e+tn!==84||47!==ln()););return"/*"+un(t,en-1)+"*"+Wt(47===e?e:sn())}function vn(e){for(;!dn(ln());)sn();return un(e,en)}function Sn(e){return hn(xn("",null,null,null,[""],e=pn(e),0,[0],e))}function xn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,m=1,g=1,b=1,y=0,v="",S=o,x=i,E=r,w=v;g;)switch(f=y,y=sn()){case 40:if(108!=f&&58==Gt(w,d-1)){-1!=Ut(w+=$t(fn(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=fn(y);break;case 9:case 10:case 13:case 32:w+=mn(f);break;case 92:w+=gn(cn()-1,7);continue;case 47:switch(ln()){case 42:case 47:Jt(wn(yn(sn(),cn()),t,n),l);break;default:w+="/"}break;case 123*m:s[c++]=Kt(w)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(w=$t(w,/\f/g,"")),h>0&&Kt(w)-d&&Jt(h>32?Cn(w+";",r,n,d-1):Cn($t(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Jt(E=En(w,t,n,c,u,o,s,v,S=[],x=[],d),i),123===y)if(0===u)xn(w,t,E,E,S,i,d,s,x);else switch(99===p&&110===Gt(w,3)?100:p){case 100:case 108:case 109:case 115:xn(e,E,E,r&&Jt(En(e,E,E,0,0,o,s,v,o,S=[],d),x),o,x,d,s,r?S:x);break;default:xn(w,E,E,E,[""],x,0,s,x)}}c=u=h=0,m=b=1,v=w="",d=a;break;case 58:d=1+Kt(w),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==an())continue;switch(w+=Wt(y),y*m){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Kt(w)-1)*b,b=1;break;case 64:45===ln()&&(w+=fn(sn())),p=ln(),u=d=Kt(v=w+=vn(cn())),y++;break;case 45:45===f&&2==Kt(w)&&(m=0)}}return i}function En(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=Zt(p),f=0,m=0,g=0;f<r;++f)for(var b=0,y=Vt(e,d+1,d=Ft(m=a[f])),v=e;b<h;++b)(v=Ht(m>0?p[b]+" "+y:$t(y,/&\f/g,p[b])))&&(l[g++]=v);return rn(e,t,n,0===o?Nt:s,l,c,u)}function wn(e,t,n){return rn(e,t,n,At,Wt(tn),Vt(e,2,-2),0)}function Cn(e,t,n,r){return rn(e,t,n,jt,Vt(e,0,r),Vt(e,r+1,-1),r)}function Ln(e,t){for(var n="",r=Zt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function kn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case jt:return e.return=e.return||e.value;case At:return"";case zt:return e.return=e.value+"{"+Ln(e.children,r)+"}";case Nt:e.value=e.props.join(",")}return Kt(n=Ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function Rn(e){var t=Zt(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var In="undefined"!=typeof document,_n=function(e,t,n){for(var r=0,o=0;r=o,o=ln(),38===r&&12===o&&(t[n]=1),!dn(o);)sn();return un(e,en)},On=function(e,t){return hn(function(e,t){var n=-1,r=44;do{switch(dn(r)){case 0:38===r&&12===ln()&&(t[n]=1),e[n]+=_n(en-1,t,n);break;case 2:e[n]+=fn(r);break;case 4:if(44===r){e[++n]=58===ln()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Wt(r)}}while(r=sn());return e}(pn(e),t))},qn=new WeakMap,Tn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||qn.get(n))&&!r){qn.set(e,!0);for(var o=[],i=On(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Mn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Dn(e,t){switch(function(e,t){return 45^Gt(e,0)?(((t<<2^Gt(e,0))<<2^Gt(e,1))<<2^Gt(e,2))<<2^Gt(e,3):0}(e,t)){case 5103:return Pt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Pt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pt+e+Dt+e+Mt+e+e;case 6828:case 4268:return Pt+e+Mt+e+e;case 6165:return Pt+e+Mt+"flex-"+e+e;case 5187:return Pt+e+$t(e,/(\w+).+(:[^]+)/,Pt+"box-$1$2"+Mt+"flex-$1$2")+e;case 5443:return Pt+e+Mt+"flex-item-"+$t(e,/flex-|-self/,"")+e;case 4675:return Pt+e+Mt+"flex-line-pack"+$t(e,/align-content|flex-|-self/,"")+e;case 5548:return Pt+e+Mt+$t(e,"shrink","negative")+e;case 5292:return Pt+e+Mt+$t(e,"basis","preferred-size")+e;case 6060:return Pt+"box-"+$t(e,"-grow","")+Pt+e+Mt+$t(e,"grow","positive")+e;case 4554:return Pt+$t(e,/([^-])(transform)/g,"$1"+Pt+"$2")+e;case 6187:return $t($t($t(e,/(zoom-|grab)/,Pt+"$1"),/(image-set)/,Pt+"$1"),e,"")+e;case 5495:case 3959:return $t(e,/(image-set\([^]*)/,Pt+"$1$`$1");case 4968:return $t($t(e,/(.+:)(flex-)?(.*)/,Pt+"box-pack:$3"+Mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pt+e+e;case 4095:case 3583:case 4068:case 2532:return $t(e,/(.+)-inline(.+)/,Pt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Kt(e)-1-t>6)switch(Gt(e,t+1)){case 109:if(45!==Gt(e,t+4))break;case 102:return $t(e,/(.+:)(.+)-([^]+)/,"$1"+Pt+"$2-$3$1"+Dt+(108==Gt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ut(e,"stretch")?Dn($t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Gt(e,t+1))break;case 6444:switch(Gt(e,Kt(e)-3-(~Ut(e,"!important")&&10))){case 107:return $t(e,":",":"+Pt)+e;case 101:return $t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pt+(45===Gt(e,14)?"inline-":"")+"box$3$1"+Pt+"$2$3$1"+Mt+"$2box$3")+e}break;case 5936:switch(Gt(e,t+11)){case 114:return Pt+e+Mt+$t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pt+e+Mt+$t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pt+e+Mt+$t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Pt+e+Mt+e+e}return e}var Pn,An,Nn=In?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),jn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case jt:e.return=Dn(e.value,e.length);break;case zt:return Ln([on(e,{value:$t(e.value,"@","@"+Pt)})],r);case Nt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ln([on(e,{props:[$t(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ln([on(e,{props:[$t(t,/:(plac\w+)/,":"+Pt+"input-$1")]}),on(e,{props:[$t(t,/:(plac\w+)/,":-moz-$1")]}),on(e,{props:[$t(t,/:(plac\w+)/,Mt+"input-$1")]})],r)}return""}))}}],zn={exports:{}},Fn={};function Wn(){return An||(An=1,zn.exports=function(){if(Pn)return Fn;Pn=1;var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return Fn.Fragment=r,Fn.jsx=s,Fn.jsxs=s,Fn}()),zn.exports}var Bn=Wn();let Hn;function $n(e){const{injectFirst:t,children:n}=e;return t&&Hn?Bn.jsx(g,{value:Hn,children:n}):n}"object"==typeof document&&(Hn=function(e){var t=e.key;if(In&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||jn,a={},s=[];In&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[Tn,Mn];if(In){var u,d=[kn,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=Rn(c.concat(i,d));o=function(e,t,n,r){u=n,Ln(Sn(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var h=[kn],f=Rn(c.concat(i,h)),m=Nn(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=Ln(Sn(e?e+"{"+t.styles+"}":t.styles),f)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}var b={key:t,sheet:new Tt({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return b.sheet.hydrate(s),b}({key:"css",prepend:!0}));var Un=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Bn.jsx(b,{styles:r})}
|
|
7
|
+
import*as e from"react";import t,{useState as n,useEffect as r,forwardRef as o,useMemo as i,useImperativeHandle as a,useContext as s,useReducer as l,useCallback as c,useLayoutEffect as u,PureComponent as d,useRef as p,createElement as h,Component as f}from"react";import m from"react-dom";import{CacheProvider as g,Global as b,ThemeContext as y,css as v,keyframes as S}from"@emotion/react";import{Checkbox as x,Radio as E,Typography as C,FormControlLabel as w,Box as L,Grid as k,Tooltip as R,Paper as I,IconButton as _,styled as q,Popover as O,MenuList as T,MenuItem as M,ListItemIcon as D,Divider as A,OutlinedInput as P,InputAdornment as N,Badge as j,List as z,ListItem as F,Button as W,ButtonBase as H,CircularProgress as B,Icon as $}from"@mui/material";import U from"@emotion/styled";function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function V(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var K,Z={exports:{}};function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(null,arguments)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}K||(K=1,function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),s=new q(r||[]);return o(a,"_invoke",{value:k(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",g={};function b(){}function y(){}function v(){}var S={};c(S,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(O([])));E&&E!==n&&r.call(E,a)&&(S=E);var C=v.prototype=b.prototype=Object.create(S);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(e,n,r){var o=p;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=R(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:h,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},w(L.prototype),c(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new L(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(Z));const te=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var ne,re,oe={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function ie(e){const t=te({initial:e});return Object.keys(oe).forEach((e=>{t.translator.add(oe[e])})),{translator:t.translator}}var ae=function(){if(re)return ne;re=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},ne=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},ne}(),se=G(ae);function le(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ce(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ue(){}var de,pe,he=.7,fe=1/he,me="\\s*([+-]?\\d+)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ye=/^#([0-9a-f]{3,8})$/,ve=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),Se=new RegExp(`^rgb\\(${be},${be},${be}\\)$`),xe=new RegExp(`^rgba\\(${me},${me},${me},${ge}\\)$`),Ee=new RegExp(`^rgba\\(${be},${be},${be},${ge}\\)$`),Ce=new RegExp(`^hsl\\(${ge},${be},${be}\\)$`),we=new RegExp(`^hsla\\(${ge},${be},${be},${ge}\\)$`),Le={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 ke(){return this.rgb().formatHex()}function Re(){return this.rgb().formatRgb()}function Ie(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ye.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_e(t):3===n?new Te(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?qe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?qe(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=ve.exec(e))?new Te(t[1],t[2],t[3],1):(t=Se.exec(e))?new Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xe.exec(e))?qe(t[1],t[2],t[3],t[4]):(t=Ee.exec(e))?qe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ce.exec(e))?je(t[1],t[2]/100,t[3]/100,1):(t=we.exec(e))?je(t[1],t[2]/100,t[3]/100,t[4]):Le.hasOwnProperty(e)?_e(Le[e]):"transparent"===e?new Te(NaN,NaN,NaN,0):null}function _e(e){return new Te(e>>16&255,e>>8&255,255&e,1)}function qe(e,t,n,r){return r<=0&&(e=t=n=NaN),new Te(e,t,n,r)}function Oe(e,t,n,r){return 1===arguments.length?function(e){return e instanceof ue||(e=Ie(e)),e?new Te((e=e.rgb()).r,e.g,e.b,e.opacity):new Te}(e):new Te(e,t,n,null==r?1:r)}function Te(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Me(){return`#${Ne(this.r)}${Ne(this.g)}${Ne(this.b)}`}function De(){const e=Ae(this.opacity);return`${1===e?"rgb(":"rgba("}${Pe(this.r)}, ${Pe(this.g)}, ${Pe(this.b)}${1===e?")":`, ${e})`}`}function Ae(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ne(e){return((e=Pe(e))<16?"0":"")+e.toString(16)}function je(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Fe(e,t,n,r)}function ze(e){if(e instanceof Fe)return new Fe(e.h,e.s,e.l,e.opacity);if(e instanceof ue||(e=Ie(e)),!e)return new Fe;if(e instanceof Fe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Fe(a,s,l,e.opacity)}function Fe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function We(e){return(e=(e||0)%360)<0?e+360:e}function He(e){return Math.max(0,Math.min(1,e||0))}function Be(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}le(ue,Ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ke,formatHex:ke,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ze(this).formatHsl()},formatRgb:Re,toString:Re}),le(Te,Oe,ce(ue,{brighter(e){return e=null==e?fe:Math.pow(fe,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?he:Math.pow(he,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Te(Pe(this.r),Pe(this.g),Pe(this.b),Ae(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:Me,formatHex:Me,formatHex8:function(){return`#${Ne(this.r)}${Ne(this.g)}${Ne(this.b)}${Ne(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:De,toString:De})),le(Fe,(function(e,t,n,r){return 1===arguments.length?ze(e):new Fe(e,t,n,null==r?1:r)}),ce(ue,{brighter(e){return e=null==e?fe:Math.pow(fe,e),new Fe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?he:Math.pow(he,e),new Fe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Te(Be(e>=240?e-240:e+120,o,r),Be(e,o,r),Be(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Fe(We(this.h),He(this.s),He(this.l),Ae(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=Ae(this.opacity);return`${1===e?"hsl(":"hsla("}${We(this.h)}, ${100*He(this.s)}%, ${100*He(this.l)}%${1===e?")":`, ${e})`}`}}));var $e=function(){if(pe)return de;pe=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return de=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},de}(),Ue=G($e),Ge={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px",backgroundColor:"transparent"},subTitle:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ke={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Ze={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const Je={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Xe=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Ye=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Qe=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,et=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,tt=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,nt=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:rt}=Math,{round:ot}=Math;class it{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,i,a,s,l,c,u,d,p,h,f,m=0,g=0,b=0,y=1;if(this._invalid=!1,t[0]instanceof it)m=t[0]._r,g=t[0]._g,b=t[0]._b,y=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(f=t[0],h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))m=parseInt(h[1],10),g=parseInt(h[2],10),b=parseInt(h[3],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(f))m=parseInt(h[1],10),g=parseInt(h[2],10),b=parseInt(h[3],10),y=parseFloat(h[4]);else if(h=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))y=parseInt(h[1],10)/255,m=parseInt(h[2],10),g=parseInt(h[3],10),b=parseInt(h[4],10);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(f))m=parseInt(h[1],16),g=parseInt(h[2],16),b=parseInt(h[3],16),y=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(f))m=parseInt(h[1]+h[1],16),g=parseInt(h[2]+h[2],16),b=parseInt(h[3]+h[3],16),y=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),a=parseFloat(h[5]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=ot(255*m),g=ot(255*g),b=ot(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),a=parseFloat(h[5]),y=parseFloat(h[7]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=ot(255*m),g=ot(255*g),b=ot(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),s=parseFloat(h[5]),r%=360,o/=100,s/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,s=s<0?0:s>1?1:s,l=s*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=s-l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=ot(255*m),g=ot(255*g),b=ot(255*b),y=1}else Je[f.toLowerCase()]?(i=f.toLowerCase(),m=Je[i].r,g=Je[i].g,b=Je[i].b,y="number"==typeof Je[i].a?Je[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(y=(4278190080&t[0])>>>24,y/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],y=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+y)&&(this._invalid=!0),this._r=rt(m),this._g=rt(g),this._b=rt(b),this._a=y,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=it.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=it.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=it.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=it.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=it.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=it.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=it.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=it.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let i=parseFloat(n[5]);const a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}isEqual(e){return e instanceof it||(e=new it(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=rt(this._r+(e._r-this._r)*t),r=rt(this._g+(e._g-this._g)*t),o=rt(this._b+(e._b-this._b)*t),i=rt(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new it(r)}static toRGB(e){if(e instanceof it)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=it.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof it)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=it.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof it?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=it.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new it(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),u=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+u)/2,c===u)n=0,i=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new it(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,u=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new it(e));const o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(n=s-l,t=0===n?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof it)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,i=0,a=0,s=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(i=parseInt(r[1],10),a=parseInt(r[2],10),s=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(i=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(i=parseInt(r[1]+r[1],16),a=parseInt(r[2]+r[2],16),s=parseInt(r[3]+r[3],16))),(i<<16)+(a<<8)+s}static blend(e,t,n){const r=(16711680&(e=it.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=it.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new it(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Xe.test(e)||Ye.test(e)||Qe.test(e)||et.test(e)||tt.test(e)||nt.test(e)||Je[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new it(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class at{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Ie(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([Ie(e),Ie(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const i=this.colorParts[t][o],a=i[0],s=i[1];if(e===this.min)return s;if(e===this.max)return a;const l=function(e,t,n){return Oe(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(a,s,r-o);return l}}function st(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function lt(e,t,n){const r=[],o=new at(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);r.push(e[i]),n||r.push(e[i]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function ct(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=st(1/t*o,t,n);i=e.getColor(r);break}}r.push(Ie(i).formatHex())}return r}function ut(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=lt(e,n,!0),o=lt(ct(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(ct(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function dt(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function pt(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 ht(e,t,n,r){let o;if(""===e)o=dt(null,n);else{o=dt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=pt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function ft(e,t){const n=e.split(".");return{getStyle:(e,r)=>ht(e,r,n.concat(),t)}}function mt(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?mt(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function gt(e){const t=Ie(e);if(!t)return 0;const{r:n,g:r,b:o}=t.rgb(),[i,a,s]=[n,r,o].map((e=>e/255)),[l,c,u]=[i,a,s].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*u).toFixed(5)}ft.resolveRawTheme=e=>{const t=Ue(!0,{},e);return mt(t,t._variables),t.scales&&ut(t.scales,t.dataColors&&t.dataColors.nullColor),t};const bt=1e3;function yt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(gt);return{getBestContrastColor(o){if(!t[o]){n>bt&&(t={},n=0);const i=gt(o),a=r.map((e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}function vt(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=ft(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=Ie(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Ke:Ve;let r=Ze;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Ue(!0,{},Ge,r,n),i=Ue(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,ft.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){const n="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),r="string"==typeof(null==e?void 0:e.color);if(!n&&!r)return;const o=(()=>(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return o;const i=new it(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const s=o.getStyle("","","color"),l=gt(s);n=yt([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(se.prototype).forEach((e=>{o[e]=se.prototype[e]})),se.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const St=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),xt=5e3;function Et(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var Ct,wt={};var Lt=function(){if(Ct)return wt;Ct=1;var e=m;return wt.createRoot=e.createRoot,wt.hydrateRoot=e.hydrateRoot,wt}(),kt=G(Lt);function Rt(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var It=Object.freeze({__proto__:null,default:Rt}),_t="$$material";function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qt.apply(this,arguments)}function Ot(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Tt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Mt="-ms-",Dt="-moz-",At="-webkit-",Pt="comm",Nt="rule",jt="decl",zt="@keyframes",Ft=Math.abs,Wt=String.fromCharCode,Ht=Object.assign;function Bt(e){return e.trim()}function $t(e,t,n){return e.replace(t,n)}function Ut(e,t){return e.indexOf(t)}function Gt(e,t){return 0|e.charCodeAt(t)}function Vt(e,t,n){return e.slice(t,n)}function Kt(e){return e.length}function Zt(e){return e.length}function Jt(e,t){return t.push(e),e}var Xt=1,Yt=1,Qt=0,en=0,tn=0,nn="";function rn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Xt,column:Yt,length:a,return:""}}function on(e,t){return Ht(rn("",null,null,"",null,null,0),e,{length:-e.length},t)}function an(){return tn=en>0?Gt(nn,--en):0,Yt--,10===tn&&(Yt=1,Xt--),tn}function sn(){return tn=en<Qt?Gt(nn,en++):0,Yt++,10===tn&&(Yt=1,Xt++),tn}function ln(){return Gt(nn,en)}function cn(){return en}function un(e,t){return Vt(nn,e,t)}function dn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pn(e){return Xt=Yt=1,Qt=Kt(nn=e),en=0,[]}function hn(e){return nn="",e}function fn(e){return Bt(un(en-1,bn(91===e?e+2:40===e?e+1:e)))}function mn(e){for(;(tn=ln())&&tn<33;)sn();return dn(e)>2||dn(tn)>3?"":" "}function gn(e,t){for(;--t&&sn()&&!(tn<48||tn>102||tn>57&&tn<65||tn>70&&tn<97););return un(e,cn()+(t<6&&32==ln()&&32==sn()))}function bn(e){for(;sn();)switch(tn){case e:return en;case 34:case 39:34!==e&&39!==e&&bn(tn);break;case 40:41===e&&bn(e);break;case 92:sn()}return en}function yn(e,t){for(;sn()&&e+tn!==57&&(e+tn!==84||47!==ln()););return"/*"+un(t,en-1)+"*"+Wt(47===e?e:sn())}function vn(e){for(;!dn(ln());)sn();return un(e,en)}function Sn(e){return hn(xn("",null,null,null,[""],e=pn(e),0,[0],e))}function xn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,m=1,g=1,b=1,y=0,v="",S=o,x=i,E=r,C=v;g;)switch(f=y,y=sn()){case 40:if(108!=f&&58==Gt(C,d-1)){-1!=Ut(C+=$t(fn(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=fn(y);break;case 9:case 10:case 13:case 32:C+=mn(f);break;case 92:C+=gn(cn()-1,7);continue;case 47:switch(ln()){case 42:case 47:Jt(Cn(yn(sn(),cn()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=Kt(C)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(C=$t(C,/\f/g,"")),h>0&&Kt(C)-d&&Jt(h>32?wn(C+";",r,n,d-1):wn($t(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Jt(E=En(C,t,n,c,u,o,s,v,S=[],x=[],d),i),123===y)if(0===u)xn(C,t,E,E,S,i,d,s,x);else switch(99===p&&110===Gt(C,3)?100:p){case 100:case 108:case 109:case 115:xn(e,E,E,r&&Jt(En(e,E,E,0,0,o,s,v,o,S=[],d),x),o,x,d,s,r?S:x);break;default:xn(C,E,E,E,[""],x,0,s,x)}}c=u=h=0,m=b=1,v=C="",d=a;break;case 58:d=1+Kt(C),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==an())continue;switch(C+=Wt(y),y*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Kt(C)-1)*b,b=1;break;case 64:45===ln()&&(C+=fn(sn())),p=ln(),u=d=Kt(v=C+=vn(cn())),y++;break;case 45:45===f&&2==Kt(C)&&(m=0)}}return i}function En(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=Zt(p),f=0,m=0,g=0;f<r;++f)for(var b=0,y=Vt(e,d+1,d=Ft(m=a[f])),v=e;b<h;++b)(v=Bt(m>0?p[b]+" "+y:$t(y,/&\f/g,p[b])))&&(l[g++]=v);return rn(e,t,n,0===o?Nt:s,l,c,u)}function Cn(e,t,n){return rn(e,t,n,Pt,Wt(tn),Vt(e,2,-2),0)}function wn(e,t,n,r){return rn(e,t,n,jt,Vt(e,0,r),Vt(e,r+1,-1),r)}function Ln(e,t){for(var n="",r=Zt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function kn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case jt:return e.return=e.return||e.value;case Pt:return"";case zt:return e.return=e.value+"{"+Ln(e.children,r)+"}";case Nt:e.value=e.props.join(",")}return Kt(n=Ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function Rn(e){var t=Zt(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var In="undefined"!=typeof document,_n=function(e,t,n){for(var r=0,o=0;r=o,o=ln(),38===r&&12===o&&(t[n]=1),!dn(o);)sn();return un(e,en)},qn=function(e,t){return hn(function(e,t){var n=-1,r=44;do{switch(dn(r)){case 0:38===r&&12===ln()&&(t[n]=1),e[n]+=_n(en-1,t,n);break;case 2:e[n]+=fn(r);break;case 4:if(44===r){e[++n]=58===ln()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Wt(r)}}while(r=sn());return e}(pn(e),t))},On=new WeakMap,Tn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||On.get(n))&&!r){On.set(e,!0);for(var o=[],i=qn(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Mn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Dn(e,t){switch(function(e,t){return 45^Gt(e,0)?(((t<<2^Gt(e,0))<<2^Gt(e,1))<<2^Gt(e,2))<<2^Gt(e,3):0}(e,t)){case 5103:return At+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return At+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return At+e+Dt+e+Mt+e+e;case 6828:case 4268:return At+e+Mt+e+e;case 6165:return At+e+Mt+"flex-"+e+e;case 5187:return At+e+$t(e,/(\w+).+(:[^]+)/,At+"box-$1$2"+Mt+"flex-$1$2")+e;case 5443:return At+e+Mt+"flex-item-"+$t(e,/flex-|-self/,"")+e;case 4675:return At+e+Mt+"flex-line-pack"+$t(e,/align-content|flex-|-self/,"")+e;case 5548:return At+e+Mt+$t(e,"shrink","negative")+e;case 5292:return At+e+Mt+$t(e,"basis","preferred-size")+e;case 6060:return At+"box-"+$t(e,"-grow","")+At+e+Mt+$t(e,"grow","positive")+e;case 4554:return At+$t(e,/([^-])(transform)/g,"$1"+At+"$2")+e;case 6187:return $t($t($t(e,/(zoom-|grab)/,At+"$1"),/(image-set)/,At+"$1"),e,"")+e;case 5495:case 3959:return $t(e,/(image-set\([^]*)/,At+"$1$`$1");case 4968:return $t($t(e,/(.+:)(flex-)?(.*)/,At+"box-pack:$3"+Mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+At+e+e;case 4095:case 3583:case 4068:case 2532:return $t(e,/(.+)-inline(.+)/,At+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Kt(e)-1-t>6)switch(Gt(e,t+1)){case 109:if(45!==Gt(e,t+4))break;case 102:return $t(e,/(.+:)(.+)-([^]+)/,"$1"+At+"$2-$3$1"+Dt+(108==Gt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ut(e,"stretch")?Dn($t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Gt(e,t+1))break;case 6444:switch(Gt(e,Kt(e)-3-(~Ut(e,"!important")&&10))){case 107:return $t(e,":",":"+At)+e;case 101:return $t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+At+(45===Gt(e,14)?"inline-":"")+"box$3$1"+At+"$2$3$1"+Mt+"$2box$3")+e}break;case 5936:switch(Gt(e,t+11)){case 114:return At+e+Mt+$t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return At+e+Mt+$t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return At+e+Mt+$t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return At+e+Mt+e+e}return e}var An,Pn,Nn=In?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),jn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case jt:e.return=Dn(e.value,e.length);break;case zt:return Ln([on(e,{value:$t(e.value,"@","@"+At)})],r);case Nt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ln([on(e,{props:[$t(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ln([on(e,{props:[$t(t,/:(plac\w+)/,":"+At+"input-$1")]}),on(e,{props:[$t(t,/:(plac\w+)/,":-moz-$1")]}),on(e,{props:[$t(t,/:(plac\w+)/,Mt+"input-$1")]})],r)}return""}))}}],zn={exports:{}},Fn={};function Wn(){return Pn||(Pn=1,zn.exports=function(){if(An)return Fn;An=1;var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return Fn.Fragment=r,Fn.jsx=s,Fn.jsxs=s,Fn}()),zn.exports}var Hn=Wn();let Bn;function $n(e){const{injectFirst:t,children:n}=e;return t&&Bn?Hn.jsx(g,{value:Bn,children:n}):n}"object"==typeof document&&(Bn=function(e){var t=e.key;if(In&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||jn,a={},s=[];In&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[Tn,Mn];if(In){var u,d=[kn,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=Rn(c.concat(i,d));o=function(e,t,n,r){u=n,Ln(Sn(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var h=[kn],f=Rn(c.concat(i,h)),m=Nn(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=Ln(Sn(e?e+"{"+t.styles+"}":t.styles),f)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}var b={key:t,sheet:new Tt({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return b.sheet.hydrate(s),b}({key:"css",prepend:!0}));var Un=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Hn.jsx(b,{styles:r})}
|
|
8
8
|
/**
|
|
9
9
|
* @mui/styled-engine v5.16.14
|
|
10
10
|
*
|
|
11
11
|
* @license MIT
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/,StyledEngineProvider:$n,ThemeContext:y,css:v,default:function(e,t){return U(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:S});function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(this,arguments)}function Vn(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Kn(){return Kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kn.apply(this,arguments)}function Zn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Jn(t){if(e.isValidElement(t)||!Zn(t))return t;const n={};return Object.keys(t).forEach((e=>{n[e]=Jn(t[e])})),n}function Xn(t,n,r={clone:!0}){const o=r.clone?Kn({},t):t;return Zn(t)&&Zn(n)&&Object.keys(n).forEach((i=>{e.isValidElement(n[i])?o[i]=n[i]:Zn(n[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Zn(t[i])?o[i]=Xn(t[i],n[i],r):r.clone?o[i]=Zn(n[i])?Jn(n[i]):n[i]:o[i]=n[i]})),o}var Yn=Object.freeze({__proto__:null,default:Xn,isPlainObject:Zn});const Qn=["values","unit","step"],er=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Gn({},e,{[t.key]:t.val})),{})};function tr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Vn(e,Qn),i=er(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Gn({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const nr={borderRadius:4};function rr(e,t){return t?Xn(e,t,{clone:!1}):e}const or={xs:0,sm:600,md:900,lg:1200,xl:1536},ir={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${or[e]}px)`};function ar(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ir;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||ir;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||or).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function sr(e){if("string"!=typeof e)throw new Error(Rt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var lr=Object.freeze({__proto__:null,default:sr});function cr(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function ur(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:cr(e,n)||r,t&&(o=t(o,r,e)),o}function dr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=cr(e.theme,r)||{};return ar(e,i,(e=>{let r=ur(a,o,e);return e===r&&"string"==typeof e&&(r=ur(a,o,`${t}${"default"===e?"":sr(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const pr={m:"margin",p:"padding"},hr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!fr[e])return[e];e=fr[e]}const[t,n]=e.split(""),r=pr[t],o=hr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),gr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],br=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function yr(e,t,n,r){var o;const i=null!=(o=cr(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function vr(e){return yr(e,"spacing",8)}function Sr(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function xr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Sr(t,n),e)),{})}(mr(n),r);return ar(e,e[n],o)}function Er(e,t){const n=vr(e.theme);return Object.keys(e).map((r=>xr(e,t,r,n))).reduce(rr,{})}function wr(e){return Er(e,gr)}function Cr(e){return Er(e,br)}function Lr(e=8){if(e.mui)return e;const t=vr({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function kr(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?rr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Rr(e){return"number"!=typeof e?e:`${e}px solid`}function Ir(e,t){return dr({prop:e,themeKey:"borders",transform:t})}wr.propTypes={},wr.filterProps=gr,Cr.propTypes={},Cr.filterProps=br;const _r=Ir("border",Rr),Or=Ir("borderTop",Rr),qr=Ir("borderRight",Rr),Tr=Ir("borderBottom",Rr),Mr=Ir("borderLeft",Rr),Dr=Ir("borderColor"),Pr=Ir("borderTopColor"),Ar=Ir("borderRightColor"),Nr=Ir("borderBottomColor"),jr=Ir("borderLeftColor"),zr=Ir("outline",Rr),Fr=Ir("outlineColor"),Wr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=yr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Sr(t,e)});return ar(e,e.borderRadius,n)}return null};Wr.propTypes={},Wr.filterProps=["borderRadius"],kr(_r,Or,qr,Tr,Mr,Dr,Pr,Ar,Nr,jr,Wr,zr,Fr);const Br=e=>{if(void 0!==e.gap&&null!==e.gap){const t=yr(e.theme,"spacing",8),n=e=>({gap:Sr(t,e)});return ar(e,e.gap,n)}return null};Br.propTypes={},Br.filterProps=["gap"];const Hr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=yr(e.theme,"spacing",8),n=e=>({columnGap:Sr(t,e)});return ar(e,e.columnGap,n)}return null};Hr.propTypes={},Hr.filterProps=["columnGap"];const $r=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=yr(e.theme,"spacing",8),n=e=>({rowGap:Sr(t,e)});return ar(e,e.rowGap,n)}return null};$r.propTypes={},$r.filterProps=["rowGap"];function Ur(e,t){return"grey"===t?t:e}kr(Br,Hr,$r,dr({prop:"gridColumn"}),dr({prop:"gridRow"}),dr({prop:"gridAutoFlow"}),dr({prop:"gridAutoColumns"}),dr({prop:"gridAutoRows"}),dr({prop:"gridTemplateColumns"}),dr({prop:"gridTemplateRows"}),dr({prop:"gridTemplateAreas"}),dr({prop:"gridArea"}));function Gr(e){return e<=1&&0!==e?100*e+"%":e}kr(dr({prop:"color",themeKey:"palette",transform:Ur}),dr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ur}),dr({prop:"backgroundColor",themeKey:"palette",transform:Ur}));const Vr=dr({prop:"width",transform:Gr}),Kr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||or[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Gr(t)}};return ar(e,e.maxWidth,t)}return null};Kr.filterProps=["maxWidth"];const Zr=dr({prop:"minWidth",transform:Gr}),Jr=dr({prop:"height",transform:Gr}),Xr=dr({prop:"maxHeight",transform:Gr}),Yr=dr({prop:"minHeight",transform:Gr});dr({prop:"size",cssProperty:"width",transform:Gr}),dr({prop:"size",cssProperty:"height",transform:Gr});kr(Vr,Kr,Zr,Jr,Xr,Yr,dr({prop:"boxSizing"}));const Qr={border:{themeKey:"borders",transform:Rr},borderTop:{themeKey:"borders",transform:Rr},borderRight:{themeKey:"borders",transform:Rr},borderBottom:{themeKey:"borders",transform:Rr},borderLeft:{themeKey:"borders",transform:Rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Rr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wr},color:{themeKey:"palette",transform:Ur},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ur},backgroundColor:{themeKey:"palette",transform:Ur},p:{style:Cr},pt:{style:Cr},pr:{style:Cr},pb:{style:Cr},pl:{style:Cr},px:{style:Cr},py:{style:Cr},padding:{style:Cr},paddingTop:{style:Cr},paddingRight:{style:Cr},paddingBottom:{style:Cr},paddingLeft:{style:Cr},paddingX:{style:Cr},paddingY:{style:Cr},paddingInline:{style:Cr},paddingInlineStart:{style:Cr},paddingInlineEnd:{style:Cr},paddingBlock:{style:Cr},paddingBlockStart:{style:Cr},paddingBlockEnd:{style:Cr},m:{style:wr},mt:{style:wr},mr:{style:wr},mb:{style:wr},ml:{style:wr},mx:{style:wr},my:{style:wr},margin:{style:wr},marginTop:{style:wr},marginRight:{style:wr},marginBottom:{style:wr},marginLeft:{style:wr},marginX:{style:wr},marginY:{style:wr},marginInline:{style:wr},marginInlineStart:{style:wr},marginInlineEnd:{style:wr},marginBlock:{style:wr},marginBlockStart:{style:wr},marginBlockEnd:{style:wr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Br},rowGap:{style:$r},columnGap:{style:Hr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gr},maxWidth:{style:Kr},minWidth:{transform:Gr},height:{transform:Gr},maxHeight:{transform:Gr},minHeight:{transform:Gr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function eo(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=cr(n,s)||{};if(c)return c(o);return ar(o,t,(t=>{let n=ur(u,l,t);return t===n&&"string"==typeof t&&(n=ur(u,l,`${e}${"default"===t?"":sr(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Qr;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=rr(l,e(n,o,i,a));else{const e=ar({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=rr(l,e):l[n]=t({sx:o,theme:i})}else l=rr(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const to=eo();function no(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}to.filterProps=["sx"];const ro=["breakpoints","palette","spacing","shape"];function oo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Vn(e,ro),s=tr(n),l=Lr(o);let c=Xn({breakpoints:s,direction:"ltr",components:{},palette:Gn({mode:"light"},r),spacing:l,shape:Gn({},nr,i)},a);return c.applyStyles=no,c=t.reduce(((e,t)=>Xn(e,t)),c),c.unstable_sxConfig=Gn({},Qr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return to({sx:e,theme:this})},c}var io=Object.freeze({__proto__:null,default:oo,private_createBreakpoints:tr,unstable_applyStyles:no});function ao(t=null){const n=e.useContext(y);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const so=oo();const lo=["sx"];var co=Object.freeze({__proto__:null,default:to,extendSxProp:function(e){const{sx:t}=e,n=Vn(e,lo),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Qr;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Zn(n)?Gn({},r,n):r}:Gn({},r,t),Gn({},o,{sx:i})},unstable_createStyleFunctionSx:eo,unstable_defaultSxConfig:Qr});const uo=e=>e,po=(()=>{let e=uo;return{configure(t){e=t},generate:t=>e(t),reset(){e=uo}}})();function ho(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ho(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ho(e))&&(r&&(r+=" "),r+=t);return r}const mo={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function go(e,t,n="Mui"){const r=mo[t];return r?`${n}-${r}`:`${po.generate(e)}-${t}`}function bo(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=go(e,t,n)})),r}var yo,vo,So={exports:{}},xo={};var Eo=(vo||(vo=1,So.exports=function(){if(yo)return xo;yo=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),xo.ContextConsumer=s,xo.ContextProvider=a,xo.Element=t,xo.ForwardRef=c,xo.Fragment=r,xo.Lazy=h,xo.Memo=p,xo.Portal=n,xo.Profiler=i,xo.StrictMode=o,xo.Suspense=u,xo.SuspenseList=d,xo.isAsyncMode=function(){return!1},xo.isConcurrentMode=function(){return!1},xo.isContextConsumer=function(e){return m(e)===s},xo.isContextProvider=function(e){return m(e)===a},xo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xo.isForwardRef=function(e){return m(e)===c},xo.isFragment=function(e){return m(e)===r},xo.isLazy=function(e){return m(e)===h},xo.isMemo=function(e){return m(e)===p},xo.isPortal=function(e){return m(e)===n},xo.isProfiler=function(e){return m(e)===i},xo.isStrictMode=function(e){return m(e)===o},xo.isSuspense=function(e){return m(e)===u},xo.isSuspenseList=function(e){return m(e)===d},xo.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},xo.typeOf=m,xo}()),So.exports);const wo=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Co(e){const t=`${e}`.match(wo);return t&&t[1]||""}function Lo(e,t=""){return e.displayName||e.name||Co(e)||t}function ko(e,t,n){const r=Lo(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ro=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Lo(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Eo.ForwardRef:return ko(e,e.render,"ForwardRef");case Eo.Memo:return ko(e,e.type,"memo");default:return}}},getFunctionName:Co});function Io(e,t){const n=Kn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Kn({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Kn({},i),Object.keys(o).forEach((e=>{n[r][e]=Io(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const _o="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var Oo=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qo.apply(this,arguments)}function To(e){return e&&e.ownerDocument||document}function Mo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Do=0;const Po=e["useId".toString()];class Ao{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ao}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let No=!0,jo=!1;const zo=new Ao,Fo={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Wo(e){e.metaKey||e.altKey||e.ctrlKey||(No=!0)}function Bo(){No=!1}function Ho(){"hidden"===this.visibilityState&&jo&&(No=!0)}function $o(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return No||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Fo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const Uo=e.createContext(null);function Go(){return e.useContext(Uo)}var Vo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ko(t){const{children:n,theme:r}=t,o=Go(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return qo({},e,t)}(o,r);return null!=e&&(e[Vo]=null!==o),e}),[r,o]);return Bn.jsx(Uo.Provider,{value:i,children:n})}const Zo=["value"],Jo=e.createContext();function Xo(e){let{value:t}=e,n=Vn(e,Zo);return Bn.jsx(Jo.Provider,Gn({value:null==t||t},n))}const Yo=e.createContext(void 0);function Qo({value:e,children:t}){return Bn.jsx(Yo.Provider,{value:e,children:t})}function ei({props:t,name:n}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Io(o.defaultProps,r):o.styleOverrides||o.variants?r:Io(o,r)}({props:t,name:n,theme:{components:e.useContext(Yo)}})}const ti={};function ni(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?Gn({},n,{[t]:i}):i;return o?()=>a:a}return Gn({},n,t?{[t]:r}:r)}),[t,n,r,o])}function ri(e){const{children:t,theme:n,themeId:r}=e,o=ao(ti),i=Go()||ti,a=ni(r,o,n),s=ni(r,i,n,!0),l="rtl"===a.direction;return Bn.jsx(Ko,{theme:s,children:Bn.jsx(y.Provider,{value:a,children:Bn.jsx(Xo,{value:l,children:Bn.jsx(Qo,{value:null==a?void 0:a.components,children:t})})})})}const oi=["defaultProps","mixins","overrides","palette","props","styleOverrides"],ii=["type","mode"];var ai,si={},li={exports:{}};function ci(){return ai||(ai=1,(e=li).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),li.exports;var e}var ui,di=V(It),pi=V(Oo);function hi(){if(ui)return si;ui=1;var e=ci();Object.defineProperty(si,"__esModule",{value:!0}),si.alpha=u,si.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},si.colorChannel=void 0,si.darken=d,si.decomposeColor=i,si.emphasize=h,si.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},si.getLuminance=c,si.hexToRgb=o,si.hslToRgb=l,si.lighten=p,si.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},si.private_safeColorChannel=void 0,si.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},si.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},si.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},si.recomposeColor=s,si.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(di),n=e(pi);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};si.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return si.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},si}var fi=hi();const mi={black:"#000",white:"#fff"},gi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},bi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},yi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},vi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Si={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},xi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ei={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},wi=["mode","contrastThreshold","tonalOffset"],Ci={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:mi.white,default:mi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Li={text:{primary:mi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:mi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ki(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=fi.lighten(e.main,o):"dark"===t&&(e.dark=fi.darken(e.main,i)))}function Ri(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=qt(e,wi),i=e.primary||function(e="light"){return"dark"===e?{main:Si[200],light:Si[50],dark:Si[400]}:{main:Si[700],light:Si[400],dark:Si[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:bi[200],light:bi[50],dark:bi[400]}:{main:bi[500],light:bi[300],dark:bi[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:yi[500],light:yi[300],dark:yi[700]}:{main:yi[700],light:yi[400],dark:yi[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:xi[400],light:xi[300],dark:xi[700]}:{main:xi[700],light:xi[500],dark:xi[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ei[400],light:Ei[300],dark:Ei[700]}:{main:Ei[800],light:Ei[500],dark:Ei[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:vi[400],light:vi[300],dark:vi[700]}:{main:"#ed6c02",light:vi[500],dark:vi[900]}}(t);function d(e){return fi.getContrastRatio(e,Li.text.primary)>=n?Li.text.primary:Ci.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ot({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Rt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Rt(12,t?` (${t})`:"",JSON.stringify(e.main)));return ki(e,"light",o,r),ki(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:Li,light:Ci};return Xn(Ot({common:Ot({},mi),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:gi,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const Ii=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const _i={textTransform:"uppercase"},Oi='"Roboto", "Helvetica", "Arial", sans-serif';function qi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Oi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=qt(n,Ii),h=o/14,f=d||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return Ot({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Oi?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,_i),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,_i),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xn(Ot({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Ti(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Mi=["none",Ti(0,2,1,-1,0,1,1,0,0,1,3,0),Ti(0,3,1,-2,0,2,2,0,0,1,5,0),Ti(0,3,3,-2,0,3,4,0,0,1,8,0),Ti(0,2,4,-1,0,4,5,0,0,1,10,0),Ti(0,3,5,-1,0,5,8,0,0,1,14,0),Ti(0,3,5,-1,0,6,10,0,0,1,18,0),Ti(0,4,5,-2,0,7,10,1,0,2,16,1),Ti(0,5,5,-3,0,8,10,1,0,3,14,2),Ti(0,5,6,-3,0,9,12,1,0,3,16,2),Ti(0,6,6,-3,0,10,14,1,0,4,18,3),Ti(0,6,7,-4,0,11,15,1,0,4,20,3),Ti(0,7,8,-4,0,12,17,2,0,5,22,4),Ti(0,7,8,-4,0,13,19,2,0,5,24,4),Ti(0,7,9,-4,0,14,21,2,0,5,26,4),Ti(0,8,9,-5,0,15,22,2,0,6,28,5),Ti(0,8,10,-5,0,16,24,2,0,6,30,5),Ti(0,8,11,-5,0,17,26,2,0,6,32,5),Ti(0,9,11,-5,0,18,28,2,0,7,34,6),Ti(0,9,12,-6,0,19,29,2,0,7,36,6),Ti(0,10,13,-6,0,20,31,3,0,8,38,7),Ti(0,10,13,-6,0,21,33,3,0,8,40,7),Ti(0,10,14,-6,0,22,35,3,0,8,42,7),Ti(0,11,14,-7,0,23,36,3,0,9,44,8),Ti(0,11,15,-7,0,24,38,3,0,9,46,8)],Di=["duration","easing","delay"],Pi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ai={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ni(e){return`${Math.round(e)}ms`}function ji(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function zi(e){const t=Ot({},Pi,e.easing),n=Ot({},Ai,e.duration);return Ot({getAutoHeightDuration:ji,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return qt(r,Di),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ni(o)} ${i} ${"string"==typeof a?a:Ni(a)}`)).join(",")}},e,{easing:t,duration:n})}const Fi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Wi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bi(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=qt(e,Wi);if(e.vars&&void 0===e.generateCssVars)throw new Error(Rt(18));const s=Ri(r),l=oo(e);let c=Xn(l,{mixins:(u=l.breakpoints,d=n,Ot({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Mi.slice(),typography:qi(s,i),transitions:zi(o),zIndex:Ot({},Fi)});var u,d;return c=Xn(c,a),c=t.reduce(((e,t)=>Xn(e,t)),c),c.unstable_sxConfig=Ot({},Qr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return to({sx:e,theme:this})},c}const Hi=Bi();function $i(){const e=function(e=so){return ao(e)}(Hi);return e[_t]||e}var Ui,Gi={},Vi={exports:{}};var Ki,Zi={exports:{}};var Ji,Xi=V(Un),Yi=V(Yn),Qi=V(lr),ea=V(Ro),ta=V(io),na=V(co);function ra(){if(Ji)return Gi;Ji=1;var e=ci();Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=function(e={}){const{themeId:t,defaultTheme:a=h,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:m((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:h,slot:y,skipVariantsResolver:v,skipSx:S,overridesResolver:x=g(f(y))}=s,E=(0,r.default)(s,u),w=void 0!==v?v:y&&"Root"!==y&&"root"!==y||!1,C=S||!1;let L=p;"Root"===y||"root"===y?L=l:y?L=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(L=void 0);const k=(0,o.default)(e,(0,n.default)({shouldForwardProp:L,label:undefined},E)),R=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>b(e,(0,n.default)({},r,{theme:m({theme:r.theme,defaultTheme:a,themeId:t})})):e,I=(r,...o)=>{let i=R(r);const s=o?o.map(R):[];h&&x&&s.push((e=>{const r=m((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const o=r.components[h].styleOverrides,i={};return Object.entries(o).forEach((([t,o])=>{i[t]=b(o,(0,n.default)({},e,{theme:r}))})),x(e,i)})),h&&!w&&s.push((e=>{var r;const o=m((0,n.default)({},e,{defaultTheme:a,themeId:t}));return b({variants:null==o||null==(r=o.components)||null==(r=r[h])?void 0:r.variants},(0,n.default)({},e,{theme:o}))})),C||s.push(d);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=k(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return k.withConfig&&(I.withConfig=k.withConfig),I}},Gi.shouldForwardProp=p,Gi.systemDefaultTheme=void 0;var t,n=e((Ui||(Ui=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Vi)),Vi.exports)),r=e((Ki||(Ki=1,(t=Zi).exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},t.exports.__esModule=!0,t.exports.default=t.exports),Zi.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Xi),i=Yi;e(Qi),e(ea);var a=e(ta),s=e(na);const l=["ownerState"],c=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const h=Gi.systemDefaultTheme=(0,a.default)(),f=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:o}=t,i=(0,r.default)(t,l);const a="function"==typeof e?e((0,n.default)({ownerState:o},i)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,n.default)({ownerState:o},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,r.default)(a,c);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,n.default)({ownerState:o},i,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:o},i,o)):e.style))})),t}return a}return Gi}const oa=G(ra())({themeId:_t,defaultTheme:Hi,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),ia=["theme"];function aa(e){let{theme:t}=e,n=qt(e,ia);const r=t[_t];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=Ot({},r,{vars:null}):t&&!t.vars&&(o=Ot({},t,{vars:null}))),Bn.jsx(ri,Ot({},n,{themeId:r?_t:void 0,theme:o}))}function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(this,arguments)}function la(e,t){return la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},la(e,t)}function ca(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,la(e,t)}function ua(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const da=bo("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var pa={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const ha={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},fa={mode:"light",palette:{primary:{main:ha.grey25,contrastText:ha.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:ha.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:ha.grey100,dark:ha.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:ha.grey100,default:ha.grey100,lightest:ha.grey100,lighter:ha.grey98,darker:ha.grey95,darkest:ha.grey90},custom:{focusBorder:ha.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:ha.grey45,disabledContrastText:ha.grey100},selected:{main:ha.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:ha.grey100,selectedContrastText:ha.grey100,mainContrastText:ha.grey100,alternativeContrastText:ha.grey25,excludedContrastText:ha.grey25,selectedExcludedContrastText:ha.grey100,possibleContrastText:ha.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},ma={mode:"dark",palette:{primary:{main:ha.grey20,contrastText:ha.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:ha.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:ha.grey100,dark:ha.grey0},action:{active:ha.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:ha.grey25,lighter:ha.grey20,darker:ha.grey15,darkest:ha.grey10},custom:{focusBorder:ha.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:ha.grey45,disabledContrastText:ha.grey100},selected:{main:ha.green,alternative:ha.grey20,excluded:ha.grey10,selectedExcluded:ha.grey10,possible:ha.grey80,selectedContrastText:ha.grey100,mainContrastText:ha.grey100,alternativeContrastText:ha.grey100,excludedContrastText:ha.grey100,selectedExcludedContrastText:ha.grey100,possibleContrastText:ha.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},ga={},ba=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(da.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(da.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(da.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(da.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function ya(e){let t=fa,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=ma));const r=JSON.stringify(t);if(ga[r])return ga[r];const o={palette:Q(Q({type:t.mode},pa.palette),t.palette),typography:Q({},pa.typography),shadows:pa.shadows,props:Q({},pa.props),shape:Q({},pa.shape)};return ga[r]=Bi(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=Ot({},qt(e,oi),{components:{}});Object.keys(t).forEach((e=>{const n=s.components[e]||{};n.defaultProps=t[e],s.components[e]=n})),Object.keys(i).forEach((e=>{const t=s.components[e]||{};t.defaultProps=i[e],s.components[e]=t})),Object.keys(a).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=a[e],s.components[e]=t})),Object.keys(r).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=r[e],s.components[e]=t})),s.spacing=Lr(e.spacing);const l=tr(e.breakpoints||{}),c=s.spacing;s.mixins=Ot({gutters:(e={})=>Ot({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:Ot({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,p=qt(o,ii),h=d||u||"light";return s.palette=Ot({text:{hint:"dark"===h?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h},p),s}(Q(Q({},o),{},{overrides:ba(o)}))),ga[r].name=n,ga[r]}po.configure((e=>"njs-".concat("4f66","-").concat(e.replace("Mui",""))));var va=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Sa={active:!0,select:!0,passive:!0,edit:!1};function xa(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(Sa).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Sa[e],n[e]=!Sa[e])})),e.constraints=n,e.interactions=t}var Ea=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=[],i={},a={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,i[n]=e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{o.forEach((n=>n(e?{}:t)))},destroy:()=>{Object.keys(i).forEach((e=>{i[e]&&i[e]()}))}};return[()=>{const[,e]=n(t);return r((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[a]},a]};const wa=o(((e,o)=>{let{initialContext:s,renderCallback:l,modelStore:c,selectionStore:u}=e;const[d,p]=n(s),[h,f]=n(),{theme:m}=i((()=>({theme:ya(h)})),[h]),[g,b]=n([]);return r((()=>{l&&l()}),[]),a(o,(()=>({setComps(e){b([...e])},setMuiThemeName:f,setContext:e=>p((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),d&&(d.modelStore=c,d.selectionStore=u),t.createElement($n,{injectFirst:!0},t.createElement(aa,{theme:m},t.createElement(va.Provider,{value:d},g)))}));function Ca(e){let n,{app:r,context:o}=e;const i=new Promise((e=>{n=e})),a=t.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","5.12.5"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),o&&xa(o);const l=function(e){const[t,n]=Ea({}),[r,o]=Ea({}),[i,a]=Ea({}),[s,l]=Ea({}),[c,u]=Ea({}),[,d]=Ea({}),p=e=>{let{type:t,value:r}=e;const i=d.get(r.id);d.set(r.id,{});const s=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("closed",c),r.removeListener("changed",s),n.clear(r.id),o.clear(r.id),a.clear(r.id),l.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(i||(r.on("changed",s),r.once("closed",c))),c},[h,f]=Ea({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),f.clear(e.id)}},destroy:()=>{f.destroy()},useModelStore:h,modelStore:f,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:s,rpcRequestModelStore:l,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(r.id),c=function(e){const[t,n]=Ea({}),[r,o]=Ea({}),[i,a]=Ea({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(r.id),u=kt.createRoot(s);u.render(t.createElement(wa,{ref:a,initialContext:o,renderCallback:n,modelStore:l,selectionStore:c}));const d={},p=[],h=[];return[{toggleFocusOfCells(e){Object.keys(d).forEach((t=>{d[t].current.toggleFocus(t===e)}))},cells:d,addCell(e,t){d[e]=t},removeCell(e){delete d[e]},add(e,t){(async()=>{await i,h.push(e),p.push(t),a.current.setComps(h)})()},remove(e){(async t=>{await i;const n=h.indexOf(e);var r;-1!==n&&(null===(r=p[n])||void 0===r||r.call(p),h.splice(n,1),p.splice(n,1));null==a||null===(t=a.current)||void 0===t||t.setComps(h)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,e&&xa(e),a.current.setContext(e)})()},destroy(){p.forEach((e=>{e&&e()})),l.destroy(),u.unmount()}},l,c,a,i]}function La(){const{useModelStore:e}=s(va).modelStore;return e()}function ka(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=La(),[a]=function(){const{useRpcRequestSessionModelStore:e}=s(va).modelStore;return e()}(),[l,c]=n();for(var u=arguments.length,d=new Array(u>2?u-2:0),p=2;p<u;p++)d[p-2]=arguments[p];return r((()=>{if(!t)return;(async()=>{let n=a.get(o);n||(n=t.createSessionObject(e),a.set(o,n));const r=await n;i.set(o,r),c(r)})()}),[t,...d]),[l]}const Ra={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Ia(e){return ka(Ra,e)}const _a=e=>new Promise((t=>{setTimeout(t,e)})),Oa=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=Q(Q({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:Q({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=Q(Q({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let a=n.get(r);return a||(a={}),a[o]=i,n.set(r,a),i};function qa(e,t){const n=e?"".concat(e.id):null,[o]=function(){const{useRpcResultStore:e}=s(va).modelStore;return e()}(),[i,a]=l(Oa,n?o.get(n):null),[c]=function(){const{useModelChangedStore:e}=s(va).modelStore;return e()}(),[u]=function(){const{useRpcRequestStore:e}=s(va).modelStore;return e()}();let d;n&&(d=u.get(n),d||(d={},u.set(n,d)));const p=async r=>{let i=d[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},d[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0})}try{await _a(0);const r=await i.rpc;a({type:"VALID",result:r,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||r||(i.rpcRetry||(i.rpcRetry=!0),p(!0))}},h={cancel:async()=>{const r=e.session.getObjectApi({handle:-1});await r.cancelRequest(d[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:o})},retry:()=>{d[t].rpcRetry=!0,p()}};return r((()=>{e&&p()}),[e,c.get(e&&e.id),n,t]),[i&&i.result,{validating:i&&i.validating,canCancel:i&&i.canCancel,canRetry:i&&i.canRetry},h]}function Ta(e){return qa(e,"getLayout")}function Ma(e){return qa(e,"getAppLayout")}function Da(){const[e,t]=n(),[r,o]=n(),i=c((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();o({left:t,top:n,width:r,height:i})};return u((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[i,r,e]}function Pa(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Aa(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=Q({fontSize:Pa(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r);return t.createElement("i",{style:a},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:o,fill:"currentColor"},i.map(((e,n)=>{let{type:r,attrs:o}=e;return t.createElement(r,X({key:n},o))}))))}var Na=e=>Aa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var ja=e=>Aa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const za=e=>Q(Q({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var Fa=e=>Aa(za(e));var Wa=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ba=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},Ha=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Ba(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},Ba(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d),Wa(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,s=n.threshold,l=void 0===s?15:s,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],s=null,l=null,c=o;c<=i;c++)t(c)?null!==l&&(a.push(s,l),s=l=null):(l=c,null===s&&(s=c));if(null!==l){for(var u=Math.min(Math.max(l,s+r-1),n-1),d=l+1;d<=u&&!t(d);d++)l=d;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}();const $a=["S","XS"],Ua=e=>e.reduce(((e,t)=>e.concat(t)));function Ga(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!$a.includes(n)&&t.qElemNumber;var n})).filter((e=>!1!==e))));return Ua(t)}async function Va(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}const Ka="RowColumn",Za={row:"".concat(Ka,"-row"),rowBorderBottom:"".concat(Ka,"-rowBorderBottom"),column:"".concat(Ka,"-column"),fieldRoot:"".concat(Ka,"-fieldRoot"),cell:"".concat(Ka,"-cell"),labelText:"".concat(Ka,"-labelText"),labelDense:"".concat(Ka,"-labelDense"),highlighted:"".concat(Ka,"-highlighted"),checkboxLabel:"".concat(Ka,"-checkboxLabel"),icon:"".concat(Ka,"-icon"),S:"".concat(Ka,"-S"),XS:"".concat(Ka,"-XS"),A:"".concat(Ka,"-A"),X:"".concat(Ka,"-X"),frequencyCount:"".concat(Ka,"-frequencyCount"),barContainer:"".concat(Ka,"-barContainer"),bar:"".concat(Ka,"-bar"),barSelected:"".concat(Ka,"-barSelected"),barWithCheckbox:"".concat(Ka,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ka,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ka,"-excludedTextWithCheckbox")},Ja=".".concat(Za.fieldRoot),Xa=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function Ya(e){var t;let{selectionState:n,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:s}=e;const l=p({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});r((()=>{var e;if(null===(e=s.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=s.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=s.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const u=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),Va({selections:o,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle}))},d=(e,t)=>function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return Ua(t)}(n.enginePages)),h=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=d(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},f=c((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&Xa(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,u()}),[]),m=c((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&Xa(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,u()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),g=c((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");h(t)}u()}}),[]),b=c((e=>{0===e.button&&l.current.active&&(l.current.active=!1,u())}),[]),y=c((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");h(t)}),[]),v=c((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void u();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(Ja))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(Ja))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void u();l.current.active=!0;d(o,i).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,i]}),[]),S=c((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,h(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,u()}),[]);r((()=>(a.addEventListener("mouseup",b),()=>{a.removeEventListener("mouseup",b)})),[b]),r((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return o.on("clearItemStates",e),o.on("deactivated",e),o.on("cleared",t),()=>{o.removeListener("clearItemStates",e),o.removeListener("deactivated",e),o.removeListener("cleared",t)}}),[o]);const x={};return i?Object.assign(x,{onChange:f}):Object.assign(x,{onMouseUp:g,onMouseDown:m,onMouseEnter:y,onTouchStart:v,onTouchEnd:S}),{interactionEvents:x,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const a=!n.isSingleSelect&&Xa(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const s=[];return n.updateItems(t,r,s),n.setSelectableValuesUpdating(),Va({selections:o,elemNumbers:r?s:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const Qa=e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var es=e=>Aa(Qa(e));const ts=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,ns=e=>{let{cell:t,checkboxes:n}=e;return(((r=t)?"A"===r.qState:null)||ts(t))&&n;var r};const rs=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const i=[t?Za.column:Za.row];n||i.push(Za.rowBorderBottom);const a=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?Za.XS:Za.S;break;case"S":case"L":t=Za.S;break;case"A":t=!!r&&Za.A;break;case"X":case"XL":t=!!r&&Za.X;break;default:t=!1}return t}({cell:r,showGray:o});return a&&i.push(a),i},os=9,is=4,as=7,ss=12+2*(as+1),ls=80,cs=10,us=150,ds=56,ps=20,hs="-",fs=32,ms=29,gs=20,bs=4,ys=e=>e.filter((e=>!!e)).join(" ").trim(),vs=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")},Ss=e=>e||hs,xs=["backgroundColor"],Es=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},ws=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},Cs=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(Za.labelText)]:{color:r.selections.selected}}:{};const i=r.selections,a=i[o],s=i["".concat(o,"Contrast")];return{background:a,color:s,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(Za.labelText)]:{color:s},["& .".concat(Za.icon)]:{color:s}}},Ls={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},ks=oa("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:a,sizes:s,frequencyMode:l,freqHitsValue:c,styles:u}=e;const d=u.content,{backgroundColor:p}=d,h=ee(d,xs),f=Cs({theme:t,styles:u,checkboxes:n,selectionState:"selected"}),m=Cs({theme:t,styles:u,checkboxes:n,selectionState:"excluded"}),g={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},b={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Za.row)]:Q({flexWrap:"nowrap"},u.content),["& .".concat(Za.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(Za.column)]:Q({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(Za.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(os,"px"),paddingRight:0},["& .".concat(Za.labelText)]:Q(Q({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},Ls),h),["& .".concat(Za.labelDense)]:{lineHeight:"18px"},["& .".concat(Za.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(Za.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":Q(Q({},Ls),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Za.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},["& .".concat(Za.S)]:Q(Q({},f),{},{border:r?"none":void 0}),["& .".concat(Za.XS)]:Q(Q({},Cs({theme:t,styles:u,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(Za.A)]:Q(Q({},Cs({theme:t,styles:u,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(Za.X)]:Q(Q({},m),{},{border:r?"none":void 0}),["& .".concat(Za.X,", & .").concat(Za.XS)]:{border:r?"none":void 0,["& .".concat(Za.barSelected," .bar-filled")]:Q({},g)},["& .".concat(Za.frequencyCount)]:Q(Q({zIndex:3,justifyContent:"flex-end"},Ls),{},{flex:"0 0 ".concat(Es({sizes:s,frequencyMode:l,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==l&&c?s.freqMinWidth:"max-content",maxWidth:ws({sizes:s,frequencyMode:l,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(Za.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Za.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":Q({},g)},["& .".concat(Za.barSelected)]:{"& .bar-filled":Q({},b)},["& .".concat(Za.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Za.barSelectedWithCheckbox)]:{"& .bar-filled":Q(Q({},b),{},{backgroundColor:u.selections.selected||"#BFE5D0",borderColor:u.selections.selected})},["& .".concat(Za.excludedTextWithCheckbox)]:{color:u.content.color,fontStyle:"italic"}}}));var Rs=t.memo(ks);const Is="ListBoxCheckbox",_s={cbIcon:"".concat(Is,"-cbIcon"),cbIconChecked:"".concat(Is,"-cbIconChecked"),cbIconExcluded:"".concat(Is,"-cbIconExcluded"),cbIconAlternative:"".concat(Is,"-cbIconAlternative"),checkbox:"".concat(Is,"-checkbox"),dense:"".concat(Is,"-dense")},Os=oa(x,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(_s.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(_s.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(_s.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(_s.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(_s.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(_s.dense)]:{padding:"4px 8px"}}})),qs=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.createElement("span",{className:e.cbIcon},r&&t.createElement("span",{className:n&&r?e.cbIconExcluded:""}))};function Ts(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,styles:s,showGray:l=!0,dataN:c}=e;return t.createElement(Os,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[_s.checkbox,i&&_s.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":c},name:o,icon:qs(_s,l,a),checkedIcon:t.createElement("span",{className:_s.cbIconChecked}),styles:s})}const Ms={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Ds=oa(E,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Ms.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Ps(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a,styles:s}=e;return t.createElement(Ds,{checked:r,onChange:n,value:o,name:o,className:Ms.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:i?"small":"medium",dense:i,styles:s})}function As(e){let{label:n,dense:r,showGray:o=!0,checkboxes:i,cell:a,valueTextAlign:s}=e;return t.createElement(w,{component:"span",variant:"body2",className:ys([Za.labelText,r&&Za.labelDense,o&&ns({cell:a,checkboxes:i})&&Za.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,n))}function Ns(e){let{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}=e;return"string"==typeof n?t.createElement(As,{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}):n}function js(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}=e;const f=t.createElement(Ts,{onChange:n,label:r,checked:i,dense:a,excluded:ts(s),isGridCol:l,showGray:c,dataN:o,styles:h}),m=t.createElement(Ps,{onChange:n,label:r,checked:i,dense:a,dataN:o,styles:h});return t.createElement(C,{control:u?m:f,className:Za.checkboxLabel,label:t.createElement(Ns,{label:r,dense:a,showGray:c,checkboxes:d,cell:s,valueTextAlign:p}),key:o})}function zs(e){let{labels:n,dense:r,showGray:o,checkboxes:i}=e;const a=n.map(((e,n)=>{let[r,o]=e;return t.createElement("span",{id:n,className:o?Za.highlighted:""},r)}));return t.createElement(As,{label:a,dense:r,showGray:o,checkboxes:i})}function Fs(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,qElemNumber:s,isSelected:l,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p,styles:h}=e;const f=t.createElement(zs,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(js,{onChange:n,label:f,qElemNumber:s,isSelected:l,dense:i,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:o,valueTextAlign:p,styles:h}):f}var Ws=t.memo((function(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}=e;return d?t.createElement(js,{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}):t.createElement(As,{label:r,dense:a,showGray:!0,checkboxes:d,cell:s,valueTextAlign:p})}));function Bs(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&Ss(n)!==hs))return;const s=vs({qFrequency:n,frequencyMax:a});return t.createElement(L,{className:ys([Za.bar,o&&Za.barWithCheckbox,i&&(o?Za.barSelectedWithCheckbox:Za.barSelected)])},t.createElement(L,{className:"bar-filled",width:s}))}function Hs(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;const a=Ss(null==n?void 0:n.qFrequency);return t.createElement(k,{item:!0,style:{display:"flex",alignItems:"center"},className:Za.frequencyCount,"aria-label":a,title:a},t.createElement(w,{noWrap:!0,color:"inherit",variant:"body2",className:ys([o&&Za.labelDense,Za.labelText,i&&ns({cell:n,checkboxes:r})&&Za.excludedTextWithCheckbox])},a))}function $s(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const Us=oa(k,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:a}=e;const s="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(Za.fieldRoot)]:Q(Q({},$s({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[s]:o?"8px":void 0})}}));const Gs=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===Gs.ARROW_UP||e===Gs.ARROW_DOWN||e===Gs.ARROW_LEFT||e===Gs.ARROW_RIGHT});function Vs(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function Ks(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function Zs(e){let{containerRef:t,enabled:r}=e;const[o,i]=n(!1);return{enabled:r,active:o,innerTabStops:!r||o,blur(e){var n;if(!r)return;i(!1);const o=Ks(t.current)||(null===(n=t.current)||void 0===n?void 0:n.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),Vs(t.current),e&&o&&(o.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),o.focus())},focus(){if(!r)return;i(!0);const e=t.current,n=null==e?void 0:e.querySelector(".search input"),o=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),s=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||n||o||a||l||s;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}}}const Js=e=>+e.getAttribute("data-n"),Xs=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},Ys=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),Vs(e),o},Qs=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},el=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=Ks(i),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||s)t.blur(!0);else{Vs(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},tl=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:s}=e;const l=e=>{let t;return"row"===i?(t=s%o,e<t?r:r-1):(t=s%r,e<o-1?r:t)};let c=t,u=n;if(a===Gs.ARROW_DOWN)if(t>=l(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=l(n-1)-1,u=n-1}else c=t-1;if("row"===i)return c*o+u;const d=s%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};const nl={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function rl(e){var o,a;let{index:s,rowIndex:l,columnIndex:u,style:d,data:p}=e;const{onChange:h,onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onTouchStart:y,onTouchEnd:v,pages:S,isLocked:x,column:E=!1,checkboxes:w=!1,textAlign:C,direction:L,layoutOptions:R={},freqIsAllowed:I,isSingleSelect:_,actions:O,frequencyMax:q="",histogram:T=!1,keyboard:M,showGray:D=!0,showTick:P=!0,columnCount:A=1,rowCount:N=1,dataOffset:j,deducedFrequencyMode:z,focusListItems:F,listCount:W,sizes:B,translator:H,showSearch:$,isModal:U,contentFontStyle:G,styles:V,fillHeight:K}=p,{dense:Z=!1,dataLayout:J="singleColumn",layoutOrder:X}=R,{itemPadding:Y}=B;let ee,te;const ne={max:null,currentIndex:null};if("number"==typeof l&&"number"==typeof u){"row"===X?(ee=l*A+u,ne.max=N,ne.currentIndex=l):(ee=u*N+l,ne.max=A,ne.currentIndex=u);const e=0;te=Q(Q({},d),{},{height:K?"100%":d.height,left:e+(0===u?d.left:Number(d.left)+u*e),top:0===l?d.top:Number(d.top)+l*e})}else ee=s,ne.max=W,ne.currentIndex=s,te=Q({},d);ee+=j;const[re,oe]=n(null);r((()=>{null!==re&&(0===ne.currentIndex&&F.first&&(re.focus(),F.setFirst(!1)),ne.currentIndex===ne.max-1&&F.last&&(re.focus(),F.setLast(!1)))}),[re,F.first,F.last]);const ie=c(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,focusListItems:s,keyboard:l,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:h,layoutOrder:f}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===Gs.ARROW_LEFT||e===Gs.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof h){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=tl({rowIndex:p,columnIndex:h,rowCount:u,columnCount:d,layoutOrder:f,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:h,shiftKey:f=!1,ctrlKey:y=!1,metaKey:v=!1}=p;switch(h){case Gs.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==l||!l.enabled){if(!n)return;return l.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(f){Xs(t)||Qs(t)||(n?l.focusSelection():el(e,l));break}l.focusSelection()||Qs(t)||Xs(t)||(d.blur(),el(e,l));break}case Gs.SHIFT:b(!0);break;case Gs.SPACE:t([Js(d)],!1,e);break;case Gs.ARROW_DOWN:case Gs.ARROW_RIGHT:u=m(h,d,!0),f&&u&&(g&&(t([Js(d)],!0),b(!1)),t([Js(u)],!0));break;case Gs.ARROW_UP:case Gs.ARROW_LEFT:u=m(h,d,!1),f&&u&&(g&&(t([Js(d)],!0),b(!1)),t([Js(u)],!0));break;case Gs.ENTER:if(o(),void 0===c)return;break;case Gs.ESCAPE:if(void 0===c)return void i();if(!c())return;i();break;case Gs.HOME:if(s.setFirst(!0),y){null==a||a("overflowStart");break}null==a||a("start");break;case Gs.END:if(s.setLast(!0),y){null==a||a("overflowEnd");break}null==a||a("end");break;case Gs.A:if(y||v){n();break}return;case Gs.F:if(y||v){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(Q(Q({},O),{},{focusListItems:F,keyboard:M,isModal:U,rowCount:N,columnCount:A,rowIndex:l,columnIndex:u,layoutOrder:X})),[O,null==M?void 0:M.innerTabStops,N,A,l,u,X]),ae=i((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:S,cellIndex:ee})),[S,ee]),se="S"===(null==ae?void 0:ae.qState)||"XS"===(null==ae?void 0:ae.qState)||"L"===(null==ae?void 0:ae.qState)||"XL"===(null==ae?void 0:ae.qState),le=i((()=>rs({column:E,histogram:T,cell:ae,showGray:D})),[null==ae?void 0:ae.qState,T,Z]),ce=c((e=>{e.preventDefault()}),[w]),ue=i((()=>ae&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:L,cell:ae,textAlign:C})),[L,ae,C]);if(!ae)return null;const de="grid"===J&&"column"===X,pe=null!==(o=null==ae?void 0:ae.qText)&&void 0!==o?o:"";let he;if(null!==(a=ae.qHighlightRanges)&&void 0!==a&&null!==(a=a.qRanges)&&void 0!==a&&a.length){const e=ae.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];he=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,s=t[o].qCharPos+t[o].qCharCount;return a&&s<e.length&&n.push([e.slice(s),!1]),n}),[]);return n}(pe,e)}const fe={alignItems:"center",display:"flex",fontSize:"8px"},me="rtl"===L,ge={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:me?8:w?0:void 0,paddingRight:w?0:me?8:0,justifyContent:ue,textAlign:ue},be=0===s,ye=se&&x,ve=!w&&se&&!x,Se=!w&&P,xe=w||!P,Ee=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=nl[r],c=t.get(l),u=[];if(o){const e=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:H,label:pe,qState:ae.qState,currentIndex:ne.currentIndex,maxIndex:ne.max,showSearch:$}),we=!me&&"right"===ue||me&&"left"===ue;return t.createElement(Rs,{className:Za.barContainer,checkboxes:w,style:te,styles:V,isGridCol:de,isGridMode:"grid"===J,dense:Z,direction:L,sizes:B,frequencyMode:z,freqHitsValue:we,contentFontStyle:G,"data-testid":"listbox.item"},t.createElement(Us,{role:"row","aria-label":Ee,"aria-selected":se,"aria-setsize":ne.max,"aria-rowindex":ne.currentIndex,ref:oe,container:!0,dataLayout:J,cellPaddingRight:xe,layoutOrder:X,itemPadding:Y,gap:0,className:ys(["value",...le]),classes:{root:Za.fieldRoot},onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onKeyDown:ie,onTouchStart:y,onTouchEnd:v,onContextMenu:ce,tabIndex:be&&M.innerTabStops?0:-1,"data-n":null==ae?void 0:ae.qElemNumber,direction:L,fillHeight:K},(null==ae?void 0:ae.qFrequency)&&t.createElement(Bs,{qFrequency:null==ae?void 0:ae.qFrequency,histogram:T,checkboxes:w,isSelected:se,frequencyMax:q}),t.createElement(k,{item:!0,style:ge,className:ys([Za.cell,Za.selectedCell]),title:"".concat(pe)},he?t.createElement(Fs,{onChange:h,labels:he,checkboxes:w,dense:Z,showGray:D,qElemNumber:ae.qElemNumber,isSelected:se,cell:ae,isGridCol:de,isSingleSelect:_,valueTextAlign:ue,styles:V}):t.createElement(Ws,{onChange:h,label:pe,qElemNumber:ae.qElemNumber,isSelected:se,dense:Z,cell:ae,isGridCol:de,showGray:D,isSingleSelect:_,checkboxes:w,valueTextAlign:ue,styles:V})),I&&t.createElement(Hs,{cell:ae,checkboxes:w,dense:Z,showGray:D}),Se&&t.createElement(k,{item:!0,className:Za.icon},ye&&t.createElement(ja,{style:fe,size:"small"}),ve&&t.createElement(es,{style:fe,size:"small"}))))}var ol=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function il(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||ol(r)&&ol(o)))return!1;var r,o;return!0}function al(e,t){var n;void 0===t&&(t=il);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var sl="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ll(e){cancelAnimationFrame(e.id)}function cl(e,t){var n=sl();var r={id:requestAnimationFrame((function o(){sl()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var ul=-1;function dl(e){if(void 0===e&&(e=!1),-1===ul||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ul=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ul}var pl=null;function hl(e){if(void 0===e&&(e=!1),null===pl||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?pl="positive-descending":(t.scrollLeft=1,pl=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),pl}return pl}var fl=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ml(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,b=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,ua(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:ua(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=al((function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=al((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,d=r._getItemStyleCache(b&&s,b&&l,b&&c),h=e+":"+t;if(d.hasOwnProperty(h))o=d[h];else{var f=n(r.props,t,r._instanceProps),m="rtl"===l;d[h]=o={position:"absolute",left:m?void 0:f,right:m?f:void 0,top:p(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=al((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(hl()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ll(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=cl(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}ca(t,e),t.getDerivedStateFromProps=function(e,t){return gl(e,t),y(e),null};var d=t.prototype;return d.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)},d.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,h=i.width,f=this.state,m=f.scrollLeft,g=f.scrollTop,b=dl();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=a(this.props,this._instanceProps),v=s(this.props,this._instanceProps)>h?b:0,S=y>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,v):g})},d.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(hl()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ll(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?fl:p,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,y=e.style,v=e.useIsScrolling,S=e.width,x=this.state.isScrolling,E=this._getHorizontalRangeToRender(),w=E[0],C=E[1],L=this._getVerticalRangeToRender(),k=L[0],R=L[1],I=[];if(r>0&&b)for(var _=k;_<=R;_++)for(var O=w;O<=C;O++)I.push(h(t,{columnIndex:O,data:d,isScrolling:v?x:void 0,key:f({columnIndex:O,data:d,rowIndex:_}),rowIndex:_,style:this._getItemStyle(_,O)}));var q=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:sa({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},h(c||u||"div",{children:I,ref:l,style:{height:q,pointerEvents:x?"none":void 0,width:T}}))},d._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],h=u[2],f=u[3];this._callOnItemsRendered(a,s,d,p,l,c,h,f)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,y=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,y,g,S,v)}},d._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var h=r(this.props,d,this._instanceProps),f=o(this.props,h,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,h-m),Math.max(0,Math.min(t-1,f+g)),h,f]},d._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),p=m(this.props,d,c,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var gl=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},bl=function(e,t){return e};function yl(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,ua(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:ua(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=al((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=al((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),h="horizontal"===a||"horizontal"===l,f="rtl"===a,m=h?d:0;u[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:h?0:d,height:h?"100%":p,width:h?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=al((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(hl()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ll(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=cl(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}ca(t,e),t.getDerivedStateFromProps=function(e,t){return vl(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?dl():0:l.scrollHeight>l.clientHeight?dl():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(hl()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ll(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?bl:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,y=e.useIsScrolling,v=e.width,S=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,E=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],L=w[1],k=[];if(c>0)for(var R=C;R<=L;R++)k.push(h(t,{data:u,key:p(R,u),index:R,isScrolling:y?S:void 0,style:this._getItemStyle(R)}));var I=r(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:sa({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},h(s||l||"div",{children:k,ref:a,style:{height:x?"100%":I,pointerEvents:S?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var vl=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Sl=ml({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,s=e.columnWidth,l=e.width,c=Math.max(0,a*s-l),u=Math.min(c,t*s),d=Math.max(0,t*s-l+i+s);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,s=e.height,l=e.rowCount,c=Math.max(0,l*a-s),u=Math.min(c,t*a),d=Math.max(0,t*a-s+i+a);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),xl=yl({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:s,h=Math.max(0,l*c-p),f=Math.min(h,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=f+p?"auto":"center"),n){case"start":return f;case"end":return m;case"center":var g=Math.round(m+(f-m)/2);return g<Math.ceil(p/2)?0:g>h+Math.floor(p/2)?h:g;default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const El="#BBB",wl="#f1f1f1",Cl={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const Ll=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,kl=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,Rl=(e,t,n,r)=>e===t*n+r+n;function Il(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:s,dataOffset:l}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=Ll(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,h=Rl(s,u,c?i:o,l),f=!!l&&kl(t,c),m=p&&!h&&u>=d-1||f||a.state.show;a.set(m)}const{StyledFixedSizeList:_l,StyledFixedSizeGrid:Ol}=function(){const e=e=>({scrollbarColor:"".concat(El," ").concat(wl),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:wl},"&::-webkit-scrollbar-thumb":{backgroundColor:El,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:U(xl,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Cl.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:U(Sl,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Cl.styledScrollbars)]:e(n)}}))}}();const ql=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},Tl=e=>{const t=i((()=>"text"in e?e:{}),[e]);return i((()=>ql(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Ml(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Dl(e){let{isGridMode:t,dense:n}=e;let r=n?gs:t?fs:ms;return t&&(r+=bs),r}function Pl(e){let{layout:t,width:n,height:r,listCount:o,count:i,freqIsAllowed:a,checkboxes:s,styles:l}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:h,dataLayout:f}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==l?void 0:l.content)||{},b="".concat(m," ").concat(g),y=Tl({text:Ml(t),font:b}),v=Tl({text:Ml(5),font:b}),S=Tl({text:Ml(8),font:b}),x=a?v:0,E=s?ps:0;let w=ds+x+E;!s&&w>=ls&&(w+=ps);let C,L,k,R,I=y+18+x+E;!s&&I>=ls&&(I+=ps),I=Math.min(us,Math.max(I,w));const _=Dl({isGridMode:"grid"===f,dense:h}),O=null!=r?r:8*_;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*bs,({rowCount:R,columnWidth:k,columnCount:L}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,s=r-cs;let l;const c=Math.min(n,Math.max(1,Math.round(s/Math.max(i,o))));l=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c),l=Math.max(l,1);const u=s/l;return{rowCount:Math.ceil(n/l),columnWidth:u,columnCount:l}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:I,itemMinWidth:w}))):(C={overflowY:"hidden"},({rowCount:R,columnWidth:k,columnCount:L}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:s,itemMinWidth:l}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,s/d,l),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:_,listCount:o,listHeight:O,columnAutoWidth:I,containerWidth:e,itemMinWidth:w})))}L=("singleColumn"===f?1:L)||1,R=("singleColumn"===f?i:R)||o;const q=c.dense?838e3:577e3;R=Math.min(R,q);const T=Math.floor(3355e4/k);L=Math.min(L,T)||1;const M=R*L,D=Math.min(o,M);return{columnCount:L,columnWidth:k,rowCount:R,overflowStyling:C,itemHeight:_,listHeight:O,listWidth:n,scrollBarWidth:cs,count:i,listCount:D,maxCount:{row:q,column:T},itemPadding:bs,textWidth:y,freqMinWidth:v,freqMaxWidth:S}}const Al=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[Nl,jl]=Ea({});function zl(e){const t="".concat(e.id),[n]=Nl();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const Fl=oa(w,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return Q({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function Wl(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=s(va);return t.createElement(R,{title:i?a.get(r):""},t.createElement(Fl,{width:n,dense:o,component:"div",variant:"body1",py:"12px"},a.get(r)))}var Bl,Hl={},$l={exports:{}};var Ul={};function Gl(e){return go("MuiSvgIcon",e)}bo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Vl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Kl=e=>{const{color:t,fontSize:n,classes:r}=e;return function(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}({root:["root","inherit"!==t&&`color${sr(t)}`,`fontSize${sr(n)}`]},Gl,r)},Zl=oa("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${sr(n.color)}`],t[`fontSize${sr(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),Jl=e.forwardRef((function(t,n){const r=ei({props:t,name:"MuiSvgIcon"});const{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=qt(r,Vl),f=e.isValidElement(o)&&"svg"===o.type,m=Ot({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:f}),g={};u||(g.viewBox=p);const b=Kl(m);return Bn.jsxs(Zl,Ot({as:s,className:fo(b.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n},g,h,f&&o.props,{ownerState:m,children:[f?o.props.children:o,d?Bn.jsx("title",{children:d}):null]}))}));Jl.muiName="SvgIcon";const Xl={configure:e=>{po.configure(e)}};var Yl,Ql,ec=Object.freeze({__proto__:null,capitalize:sr,createChainedFunction:function(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))},createSvgIcon:function(t,n){function r(e,r){return Bn.jsx(Jl,Ot({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=Jl.muiName,e.memo(e.forwardRef(r))},debounce:function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r},deprecatedPropType:function(e,t){return()=>null},isMuiElement:function(t,n){var r,o;return e.isValidElement(t)&&-1!==n.indexOf(null!=(r=t.type.muiName)?r:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:To,ownerWindow:function(e){return To(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:Mo,unstable_ClassNameGenerator:Xl,unstable_useEnhancedEffect:_o,unstable_useId:function(t){if(void 0!==Po){const e=Po();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(Do+=1,r(`mui-${Do}`))}),[n]),o}(t)},unsupportedProp:function(e,t,n,r,o){return null},useControlled:function({controlled:t,default:n,name:r,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n);return[i?t:a,e.useCallback((e=>{i||s(e)}),[])]},useEventCallback:function(t){const n=e.useRef(t);return _o((()=>{n.current=t})),e.useRef(((...e)=>(0,n.current)(...e))).current},useForkRef:function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Mo(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Wo,!0),t.addEventListener("mousedown",Bo,!0),t.addEventListener("pointerdown",Bo,!0),t.addEventListener("touchstart",Bo,!0),t.addEventListener("visibilitychange",Ho,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!$o(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(jo=!0,zo.start(100,(()=>{jo=!1})),n.current=!1,!0)},ref:t}}}),tc=V(ec);function nc(){return Yl||(Yl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=tc}(Ul)),Ul}function rc(){if(Ql)return Hl;Ql=1;var e,t=(Bl||(Bl=1,(e=$l).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),$l.exports);Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.default=void 0;var n=t(nc()),r=Wn();return Hl.default=(0,n.default)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Hl}var oc=G(rc());const ic=oa(I)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),ac=oa("div")((()=>({paddingLeft:"6px",flexGrow:1}))),sc=oa("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),lc=oa(oc)((()=>({fontSize:"14px"})));function cc(e){let{text:n,dismiss:r,dense:o,parentWidth:i=0}=e;const a="function"==typeof r,s=o?370:282,l=Math.max(i/2-s/2,0),c=Math.min(s,i)-42,u=o&&i<s;return t.createElement(ic,{left:l,style:{maxWidth:s}},t.createElement(ac,null,t.createElement(Wl,{text:n,dense:o,width:c,tooltip:u})),t.createElement(sc,{dense:o},a&&t.createElement(_,{"aria-label":"close",onClick:()=>r()},t.createElement(lc,null))))}const uc=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const dc=80;function pc(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>dc,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const hc=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},fc=(e,t)=>{const o=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[i,a]=n(),[s,l]=n(o);return r((()=>{if(!o)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=hc(r);return(await t.evaluateEx(o)).qNumber})(t,e);a(n),l(!1)})()}),[o&&t]),{frequencyMax:o?i:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:s}};const mc=["isLoadingData"],gc=100,bc=O("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function yc(e){var o,i;let{model:a,app:l,constraints:u,layout:d,selections:h,selectionState:f,direction:m,checkboxes:g,height:b,width:y,frequencyMode:v,update:S,fetchStart:x,postProcessPages:E,calculatePagesHeight:w=!1,keyboard:C={},showGray:L=!0,scrollState:k,keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:I={set:()=>{}},renderedCallback:_,onCtrlF:O,showSearch:q,isModal:T,styles:M}=e;const{translator:D}=s(va),[P,A]=n(!1),N=!(!d||!d.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:j=g,histogram:z}=null!=d?d:{},F=p(null),W=p({queue:[],validPages:!1,dataOffset:0}),B=p({pages:[]}),{frequencyMax:H,awaitingFrequencyMax:$}=fc(l,d),U=function(e){let{local:t,loaderRef:r,model:o,fetchStart:i,scrollTimeout:a,postProcessPages:s,listData:l}=e;const[c,u]=n(!1),[d,p]=n([]);let[h]=n(0);const f=(e,n)=>{const c=t.current.dataOffset;t.current.queue.push({start:e+c,stop:n+c});const d=!!r.current&&r.current._listRef&&r.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),u(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],r=o.getListObjectData("/qListObjectDef",[{qTop:n.start>h?n.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:n.start,qHeight:h,qLeft:0,qWidth:1}]).then((n=>{const r=s?s(n):n;t.current.validPages=!0,l.current.pages=r,p(r),u(!1),e()}));i&&i(r)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(h=t),f}},pages:d,isLoading:c}}({local:W,loaderRef:F,model:a,fetchStart:x,scrollTimeout:0,postProcessPages:E,listData:B}),{isLoadingData:G}=U,V=ee(U,mc),{getStoreValue:K,setStoreValue:Z}=zl(a),J=c(V.loadMoreItems,[d]),[Y,te]=n({show:!1,dismissed:!1}),[ne,re]=n([]);null!=V&&V.pages&&f.update({setPages:re,pages:V.pages,isSingleSelect:N,layout:d});const oe=null==d?void 0:d.qListObject.qDimensionInfo.qCardinal;(null!=V&&V.pages.length&&!$||0===oe)&&(null==_||_());const ie=c((e=>{if(null==ne||!ne.length||!W.current.validPages)return!1;W.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=ne.filter((e=>t(e)))[0];return n&&t(n)}),[d,ne]),{interactionEvents:ae,select:se}=Ya({selectionState:f,selections:h,checkboxes:j,doc:document,loaderRef:F}),{layoutOptions:le={}}=d||{};let ce=!0;le.dataLayout&&(ce="singleColumn"===le.dataLayout||"row"===(null==le?void 0:le.layoutOrder));const ue="grid"===(null==le?void 0:le.dataLayout),de=e=>{const t=Q({},ce?{rowIndex:e}:{columnIndex:e}),n=ue?t:e;F.current._listRef.scrollToItem(n)},pe=()=>{if(W.current.queue=[],W.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(d&&d.qSelectionInfo.qInSelections||e)return void(e&&R.reset());W.current.dataOffset=0,de(0)}};S&&S.call(null,pe),r((()=>{k&&!P&&F.current&&(F.current._listRef.scrollToItem(k.initScrollPos),A(!0))}),[F.current]),r((()=>{pe()}),[d,W.current.dataOffset]);let he=gc;const fe="grid"!==le.dataLayout,me=null==d||null===(o=d.qListObject.qSize)||void 0===o?void 0:o.qcy,ge=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?Al({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:ne,minimumBatchSize:he,count:me,calculatePagesHeight:w});let be=pc({itemWidth:y,layout:d,frequencyMode:v});const ye=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(ne),ve=Pl({layout:d,width:y,height:b,listCount:ge,count:me,freqIsAllowed:be,checkboxes:j,styles:M});ve.columnWidth&&(be=pc({itemWidth:ve.columnWidth,layout:d,frequencyMode:v}));const{listCount:Se}=ve;Z("listCount",Se);const xe=K("inputText"),Ee=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=s(va),i=[];if(null!=n&&n.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(r),t=o.get(e,[r]);i.push(t)}const a=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},i=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let a;switch(i){case 0:a="ScreenReader.ZeroSelected";break;case 1:a="ScreenReader.OneSelected";break;default:a="ScreenReader.ManySelected"}return r.get(a,[i])}({layout:t,translatorDynamic:o});i.push(a);const l=i.filter((e=>!(null==e||!e.length))).join(". ");return l}({layout:d,searchInputText:xe,listCount:Se}),we=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,s=!1,l=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":l=0,t=0,s=!0;break;case"overflowEnd":l=uc(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ce,sizes:ve,layout:d,offset:W.current.dataOffset});W.current.dataOffset=n,r&&f.triggerStateChanged(),de(t)};r((()=>{const e=R.state;e.up?de(I.state.start-e.up):e.down?de(I.state.stop+e.down):e.scrollPosition&&we(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:Ce}=(null==d?void 0:d.qListObject.qDimensionInfo)||{},[Le,ke]=n({first:!1,last:!1}),{List:Re,Grid:Ie}=function(e){let{layout:n,width:r,checkboxes:o,local:i,isVertical:a,pages:s,selectionState:l,interactionEvents:c,deducedFrequencyMode:u,histogram:d,isSingleSelect:p,select:h,selectAll:f,onCtrlF:m,textAlign:g,selections:b,keyboard:y,showGray:v,scrollState:S,direction:x,sizes:E,listCount:w,overflowDisclaimer:C,setScrollPosition:L,focusListItems:k,setCurrentScrollIndex:R,constraints:I,frequencyMax:_,freqIsAllowed:O,translator:q,showSearch:T,isModal:M,styles:D}=e;const{layoutOptions:P={}}=n||{},{columnWidth:A,listHeight:N,itemHeight:j,rowCount:z,columnCount:F}=E||{},W=("grid"===P.dataLayout?A:r)>ls,B={direction:"rtl"===x?"rtl":"ltr",useIsScrolling:!0,className:Cl.styledScrollbars},H=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,$=N<=j,U=Q(Q({isLocked:H,column:!a,pages:s},H||l.selectDisabled()?{}:c),{},{checkboxes:o,layoutOptions:P,deducedFrequencyMode:u,freqIsAllowed:O,isSingleSelect:p,textAlign:g,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:L,selectAll:f,onCtrlF:m},frequencyMax:_,histogram:d,keyboard:y,showGray:v,showTick:W,dataOffset:i.current.dataOffset,focusListItems:k,direction:x,translator:q,showSearch:T,isModal:M,styles:D,fillHeight:$});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(_l,X({},B,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:N,width:r,itemCount:w,itemData:Q(Q({},U),{},{listCount:w}),itemSize:j,onItemsRendered:e=>{var t;R({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),Il({renderProps:e,layoutOptions:P,maxCount:E.maxCount,columnCount:F,rowCount:z,overflowDisclaimer:C,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qCardinal,dataOffset:i.current.dataOffset}),o(Q({},e))},ref:a}),rl)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=E,{layoutOrder:c}=P||{},u=Math.min(N,z*j+l);return i.current.listRef=a,t.createElement(Ol,X({},B,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:u,width:r,columnCount:F,columnWidth:A,rowCount:z,rowHeight:j,style:Q({},s),itemData:Q(Q({},U),{},{column:void 0,columnCount:F,rowCount:z}),onItemsRendered:e=>{var t;const r="row"===c;R({start:r?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:r?e.visibleRowStopIndex:e.visibleColumnStopIndex});const a=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:s,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,h,f;return n&&n.setScrollPos(u),"column"===r?(d=l*o,p=a,h=c*o,f=s):(d=l,p=a*i,h=c,f=s*i),{visibleStartIndex:d+p,visibleStopIndex:h+f}}({renderProps:e,scrollState:S,layoutOrder:c,rowCount:z,columnCount:F});Il({renderProps:e,layoutOptions:P,maxCount:E.maxCount,columnCount:F,rowCount:z,overflowDisclaimer:C,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qCardinal,dataOffset:i.current.dataOffset}),o(a)},ref:a}),rl)}}}({direction:m,layout:d,width:y,checkboxes:j,deducedFrequencyMode:ye,histogram:z,keyboard:C,showGray:L,interactionEvents:ae,select:se,selectAll:()=>{f.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:O,textAlign:Ce,isVertical:fe,pages:ne,selectionState:f,isSingleSelect:N,selections:h,scrollState:k,local:W,sizes:ve,listCount:Se,overflowDisclaimer:{state:Y,set:e=>te((t=>Q(Q({},t),{},{show:e})))},setScrollPosition:we,focusListItems:{first:Le.first,setFirst:e=>ke((t=>Q(Q({},t),{},{first:e}))),last:Le.last,setLast:e=>ke((t=>Q(Q({},t),{},{last:e})))},setCurrentScrollIndex:I.set,constraints:u,frequencyMax:H,freqIsAllowed:be,translator:D,showSearch:q,isModal:T,styles:M}),{columnWidth:_e,listHeight:Oe,itemHeight:qe}=ve||{};return fe||(he=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:y,columnWidth:_e,listHeight:Oe,itemHeight:qe})),t.createElement(bc,null,t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},Ee),!Se&&oe>0&&t.createElement(Wl,{width:y,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Ha,{isItemLoaded:ie,itemCount:Se||1,loadMoreItems:J.with({minimumBatchSize:he}),threshold:0,minimumBatchSize:he,ref:F,role:"grid"},fe?Re:Ie),Y.show&&!Y.dismissed&&t.createElement(cc,{text:"Listbox.ItemsOverflow",dismiss:()=>te((e=>Q(Q({},e),{},{dismissed:!0}))),parentWidth:null==F||null===(i=F.current)||void 0===i||null===(i=i._listRef)||void 0===i||null===(i=i.props)||void 0===i?void 0:i.width,dense:null==le?void 0:le.dense}))}const vc=e=>Q(Q({},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"}}]}),Sc=e=>Q(Q({},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"}}]}),xc=e=>Q(Q({},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"}}]}),Ec=e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var wc=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1,selections:a}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const s="/qListObjectDef",l=()=>{a.isActive()||a.begin(s)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:vc,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectAll(s)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:xc,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectPossible(s)}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:Sc,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectAlternative(s)}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Ec,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectExcluded(s)}}].filter(Boolean)};const Cc=e=>Q(Q({},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 Lc(e){const t=$i(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const kc={className:"njs-cell-action"},Rc=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=$i(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=Lc(o);if(s)return null;const d=Number.parseInt(a.spacing(.5),10),p=o.keyboardAction||o.action,h=p?e=>["Enter"].includes(e.key)&&p():null,f=p?e=>[" ","Spacebar"].includes(e.key)&&p():null,m="actions-toolbar-".concat(o.key);return t.createElement(_,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:h,onKeyUp:f,disabled:l,style:c,className:[kc.className,m].join(" "),size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList","data-testid":m},u&&Aa(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Ic=e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var _c=e=>Aa(Ic(e));const Oc=e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var qc=e=>Aa(Oc(e));const Tc="njs-action-toolbar-more",Mc={icon:"".concat("More","-icon")},Dc=oa(q)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Mc.icon," *")]:{color:t.palette.text.primary}}}));function Pc(e){let{item:n,autoFocus:r,onActionClick:o=(()=>{})}=e;const{hidden:i,disabled:a,hasSvgIconShape:s}=Lc(n);return i?null:t.createElement(M,{autoFocus:r,title:n.label,onClick:()=>{n.action(),o()},disabled:a,tabindex:"0"},s&&t.createElement(D,{className:Mc.icon},Aa(n.getSvgIconShape())),t.createElement(w,{noWrap:!0},n.label))}const Ac=t.forwardRef(((e,n)=>{let{actions:r=[],show:o=!0,alignTo:i,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:l=(()=>{}),disablePortal:c=!0}=e;const u=r.length>0,d=r.findIndex((e=>!e.disabled));return u&&t.createElement(Dc,X({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:c?null:void 0,container:c?i.current:void 0,disablePortal:c,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:Tc},paper:{style:Q({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),t.createElement(T,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(Pc,{key:n,item:e,autoFocus:n===d,onActionClick:l})))))})),Nc=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},jc=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const zc="ActionsToolbar",Fc={item:"".concat(zc,"-item"),itemSpacing:"".concat(zc,"-itemSpacing")},Wc=oa(q)((e=>{let{theme:t}=e;return{["& .".concat(Fc.itemSpacing)]:{padding:t.spacing(0,.25)}}})),Bc={className:"njs-action-toolbar-popover"},Hc=t.forwardRef(((e,n)=>{let{className:r,ariaExpanded:o=!1,actions:i=[],addAnchor:a=!1,isRtl:s=!1}=e;return i.length>0?t.createElement(k,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:r},i.map(((e,r)=>t.createElement(k,{item:!0,key:e.key,className:"".concat(Fc.itemSpacing," ").concat(Fc.item)},t.createElement(Rc,{ariaExpanded:o,key:e.key,item:e,ref:0===r?n:null,addAnchor:a}))))):null})),$c={pointerEvents:"none"},Uc={vertical:"bottom",horizontal:"right"};function Gc(e){var o,a;let{show:l=!0,actions:c=[],maxItems:u=3,selections:d={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:h,more:f={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:m={show:!1,anchorEl:null},focusHandler:g=null,actionsRefMock:b=null,isRtl:y,autoConfirm:v=!1,layout:S}=e;const x=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=s(va);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:Oc},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:Ic},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:Qa}]}(Q(Q({},d),{},{layout:S})),{translator:E,keyboardNavigation:w}=s(va),[C,L]=n(!1),R={vertical:12,horizontal:(null!==(o=null===(a=m.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},I=p(),_=p(),O=$i(),q=i((()=>({margin:O.spacing(.5,0)}))),T=e=>{const t=I.current||b;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},M=i((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:i}=e;return e=>{const{target:a,nativeEvent:s}=e,{keyCode:l}=s;switch(l){case Gs.ARROW_LEFT:case Gs.ARROW_DOWN:case Gs.ARROW_RIGHT:case Gs.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=Nc(a);let t=[Gs.ARROW_LEFT,Gs.ARROW_DOWN].includes(l);t=i?!t:t,jc(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case Gs.SPACE:e.preventDefault();break;case Gs.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case Gs.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:w,focusHandler:g,getEnabledButton:T,selections:d,isRtl:y})),[w,g,T,d,y]);if(r((()=>()=>{L(!1)}),[m.show,l,d.show]),r((()=>{if(!g)return;g.on("focus_toolbar_first",(()=>{const e=T(!1);null==e||e.focus()})),g.on("focus_toolbar_last",(()=>{const e=T(!0);null==e||e.focus()}))}),[]),v)return;let D=f.enabled,A=f.actions;const N=f.alignTo||_,j=c.filter((e=>!e.hidden));if(j.length>u){const e=j.splice(-(j.length-u)-1);D=!0,A=[...e,...f.actions]}if(!d.show&&0===j.length&&!D)return null;const z={key:"more",label:E.get("Menu.More"),getSvgIconShape:Cc,hidden:!1,active:C,enabled:()=>D,action:()=>L(!C)},F=j.length>0,W=A.length>0,B=F&&d.show||W&&d.show,H=t.createElement(k,{ref:I,onKeyDown:M,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:y?"row-reverse":"row"}},(null==h?void 0:h.length)&&t.createElement(Hc,{className:"actions-toolbar-extra-actions",actions:h,isRtl:y}),F&&t.createElement(Hc,{actions:j}),W&&t.createElement(Hc,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:_,ariaExpanded:C,actions:[z],addAnchor:!0}),B&&t.createElement(k,{item:!0,className:Fc.itemSpacing,style:q},t.createElement(P,{orientation:"vertical"})),d.show&&t.createElement(Hc,{className:"actions-toolbar-default-actions",actions:x,isRtl:y}),C&&t.createElement(Ac,{show:C,actions:A,alignTo:N,popoverProps:f.popoverProps,popoverPaperStyle:f.popoverPaperStyle,onCloseOrActionClick:()=>{L(!1)},disablePortal:f.disablePortal}));return m.show?t.createElement(Wc,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:m.show,anchorEl:m.anchorEl,anchorOrigin:R,transformOrigin:Uc,hideBackdrop:!0,style:$c,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Bc.className,style:{pointerEvents:"auto",padding:O.spacing(.5,.25)}}}},H):l&&H}var Vc=e=>Aa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const Kc="/qListObjectDef",Zc=e=>null==e?void 0:e.substring(0,64e3),Jc=oa(A,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),Q({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":Q({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),Xc=oa(_)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));var Yc=o((function(e,o){let{popoverOpen:i,selections:l,selectionState:c,model:u,keyboard:d,dense:h=!1,visible:f=!0,autoFocus:m=!0,beginSelectionOnFocus:g=!0,wildCardSearch:b=!1,searchEnabled:y,direction:v,hide:S,styles:x}=e;const{translator:E}=s(va),[w,C]=n(""),[L,k]=n(!1),R=p(),I=p(),_=E.get("Listbox.Clear.Search"),{getStoreValue:O,setStoreValue:q}=zl(u),T="rtl"===v,M=async()=>{try{await u.abortListObjectSearch(Kc)}finally{C("")}};r((()=>f?()=>M():()=>{}),[f]),r((()=>(l.on("deactivated",M),()=>{l.removeListener&&l.removeListener("deactivated",M)})),[]),r((()=>{if(L&&R.current){const e=w.length-1;R.current.setSelectionRange(e,e),k(!1)}}),[L,R.current]),r((()=>{q("inputText",w)}),[w]);const D=async()=>{let e;const t=Zc(w),n=await u.searchListObjectFor(Kc,t);return c.selectDisabled()?n:(n&&t.length&&O("listCount")>0&&(e=u.acceptListObjectSearch(Kc,!0),l.selectionsMade=!0,c.clearItemStates(!1),C("")),e)},P=()=>{var e;null===(e=R.current)||void 0===e||e.focus()},A=()=>{M(),P()};return a(o,(()=>({focus(){P()}}))),f&&!1!==y?t.createElement(Jc,{styles:x,dense:h,isRtl:T,startAdornment:t.createElement(N,{position:"start",sx:{marginLeft:h?"8px":"".concat(os,"px")}},t.createElement(Vc,{size:h?"small":"normal"})),endAdornment:t.createElement(N,{position:"end",sx:{marginLeft:0}},""!==w&&t.createElement(Xc,{tabIndex:0,ref:I,title:_,"aria-label":_,onClick:A,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":A();break;case"Tab":e.shiftKey?P():Ys(t);break;default:return}e.preventDefault(),e.stopPropagation()}},t.createElement(_c,{size:h?"small":"normal"}))),className:"search",inputRef:R,size:"small",fullWidth:!0,placeholder:E.get("Listbox.Search"),value:w,onFocus:()=>{b&&(C("**"),k(!0)),g&&!c.selectDisabled()&&!l.isModal()&&l.begin("/qListObjectDef")},onChange:async e=>{const t=Zc(e.target.value);return C(t),t.length?u.searchListObjectFor(Kc,t):M()},onKeyDown:async e=>{const{currentTarget:t}=e,n=t.closest(".listbox-container");switch(e.key){case"Enter":D();break;case"Escape":if(Ys(n),l.cancel(),i)return;break;case"Tab":e.shiftKey?Qs(n)||d.focusSelection():I.current?I.current.focus():Ys(n);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;S&&(S(),Ys(n));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:m,inputProps:{tabIndex:d.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":E.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function Qc(e){if(!e.session)return[];const{selectionStore:t}=s(va),[n]=t.useAppSelectionsStore(),o=e?e.id:null;let i=n.get(o);return r((()=>{e&&!i&&(i=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:i}=n,a=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},s={begin:async e=>{var n;let{model:i,paths:s,accept:l=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;a(l),o.set(r,{model:i,objectSelections:c});const u=Array.isArray(s)?s:[s],d=async e=>{try{await i.beginSelections(u),o.set(r,{model:i,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(l),d(!0))}};await d()},end:a};i.set(r,s);const l={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>s.end().then((()=>t.forward())),back:()=>s.end().then((()=>t.back())),clear:()=>s.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return s.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return l}({app:e,selectionStore:t}),n.set(o,i),n.dispatch(!0))}),[e]),[i]}function eu(e){return Object.keys(se.prototype).forEach((t=>{e[t]=se.prototype[t]})),se.init(e),e}const tu=e=>{let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const s={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin({model:o,paths:e,accept:!0,objectSelections:s}))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>i,isModal:()=>n.isModal(s),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:s}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return eu(s),s},nu=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function ru(e,t,o,i){const a=Array.isArray(o)?o:[o],[l]=Qc(e),[c]=Ta(t),{appModalStore:u}=s(va).selectionStore,d=u.get(e.id),[p,h]=n();return r((()=>{l&&t&&!p&&h(tu({appSelections:l,appModal:d,model:t}))}),[l,t]),r((()=>{if(!p)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=nu({elements:a,objectSelections:p,options:i});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{p.isActive()&&p.confirm(),p.removeListener("activated",e),p.removeListener("deactivated",t)}}),[p]),r((()=>{p&&p.setLayout(c)}),[p,c]),[p]}function ou(){const e=Q(Q({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:i,isSingleSelect:a,selectDisabled:s,layout:l}=t;this.setPages=o;const c=this.lastRowCount===l.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===l.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=l.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=l.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=Ga(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=a,e.selectDisabled=s||e.selectDisabled,e.isDimCalculated=null!==(n=null==l||null===(r=l.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages:t=>t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[Q(Q({},n),{},{qState:r}),...t.slice(1)]}));return Q(Q({},t),{},{qMatrix:n})})),updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}});return e}const iu=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function au(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return iu(t,"qSelected",0)+iu(t,"qSelectedExcluded",0)+iu(t,"qLocked",0)+iu(t,"qLockedExcluded",0)>0}function su(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function lu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&su(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var r=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,s=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))?(r=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(s))?(r=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))&&(r=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(r<<16)+(o<<8)+i}function cu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uu(Object(n),!0).forEach((function(t){cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pu={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},hu="qcm-color";function fu(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o,i,a,s,l,c,u,d,p,h={type:hu,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},f=0,m=0,g=0,b=1;if((null===(e=n[0])||void 0===e?void 0:e.type)===hu){var y=n[0];f=y.r,m=y.g,g=y.b,b=y.a,h.invalid=n[0].invalid,h.spaces=du({},n[0].spaces)}else if(n.length<3)if("string"==typeof n[0]){var v,S=n[0];if(v=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(S))f=parseInt(v[1],10),m=parseInt(v[2],10),g=parseInt(v[3],10);else if(v=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(S))f=parseInt(v[1],10),m=parseInt(v[2],10),g=parseInt(v[3],10),b=parseFloat(v[4]);else if(v=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(S))b=parseInt(v[1],10)/255,f=parseInt(v[2],10),m=parseInt(v[3],10),g=parseInt(v[4],10);else if(v=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(S))f=parseInt(v[1],16),m=parseInt(v[2],16),g=parseInt(v[3],16),b=1;else if(v=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(S))f=parseInt(v[1]+v[1],16),m=parseInt(v[2]+v[2],16),g=parseInt(v[3]+v[3],16),b=1;else if(v=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(S)){o=parseFloat(v[1]),i=parseFloat(v[3]),s=parseFloat(v[5]),i=(i/=100)<0?0:i>1?1:i,u=(o=(o%=360)<0?0:o>360?360:o)/60,d=(c=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*i:(2-2*s)*i)*(1-Math.abs(u%2-1));var x=[];switch(u=Math.floor(u)){case 0:x=[c,d,0];break;case 1:x=[d,c,0];break;case 2:x=[0,c,d];break;case 3:x=[0,d,c];break;case 4:x=[d,0,c];break;case 5:x=[c,0,d];break;default:x=[0,0,0]}p=s-.5*c,f=x[0]+p,m=x[1]+p,g=x[2]+p,f=Math.round(255*f),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(v=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(S)){o=parseFloat(v[1]),i=parseFloat(v[3]),s=parseFloat(v[5]),b=parseFloat(v[7]),i=(i/=100)<0?0:i>1?1:i,u=(o=(o%=360)<0?0:o>360?360:o)/60,d=(c=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*i:(2-2*s)*i)*(1-Math.abs(u%2-1));var E=[];switch(u=Math.floor(u)){case 0:E=[c,d,0];break;case 1:E=[d,c,0];break;case 2:E=[0,c,d];break;case 3:E=[0,d,c];break;case 4:E=[d,0,c];break;case 5:E=[c,0,d];break;default:E=[0,0,0]}p=s-.5*c,f=E[0]+p,m=E[1]+p,g=E[2]+p,f=Math.round(255*f),m=Math.round(255*m),g=Math.round(255*g)}else if(v=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(S)){o=parseFloat(v[1]),i=parseFloat(v[3]),l=parseFloat(v[5]),u=(o=(o%=360)<0?0:o>360?360:o)/60,d=(c=(l=(l/=100)<0?0:l>1?1:l)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(u%2-1));var w=[];switch(u=Math.floor(u)){case 0:w=[c,d,0];break;case 1:w=[d,c,0];break;case 2:w=[0,c,d];break;case 3:w=[0,d,c];break;case 4:w=[d,0,c];break;case 5:w=[c,0,d];break;default:w=[0,0,0]}p=l-c,f=w[0]+p,m=w[1]+p,g=w[2]+p,f=Math.round(255*f),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(pu[S.toLowerCase()]){a=S.toLowerCase();var C=pu[a];f=C.r,m=C.g,g=C.b,b="number"==typeof pu[a].a?pu[a].a:1}else h.invalid=!0}else"number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(b=(4278190080&n[0])>>>24,b/=255,f=(16711680&n[0])>>16,m=(65280&n[0])>>8,g=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(f=(16711680&n[0])>>16,m=(65280&n[0])>>8,g=255&n[0]):h.invalid=!0;else n.length>=3&&n.length<=4?(f=n[0],m=n[1],g=n[2],b=arguments.length>=4?n[3]:1):h.invalid=!0;return Number.isNaN(+f+m+g+b)&&(h.invalid=!0),h.r=Math.floor(f),h.g=Math.floor(m),h.b=Math.floor(g),h.a=b,h.l=s,h}function mu(e){var t,n,r;if(su(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""));var o="string"==typeof e?lu(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r)}function gu(e){var t,n,r=0,o="string"==typeof e?fu(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(t=0==(n=l-c)?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function bu(e){if(su(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?lu(e):e,n=(65280&t)>>8,r=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(n,", ").concat(r,")")}function yu(e,t){return su(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):yu(fu(e))}function vu(e){return su(e)?1===e.a?bu(e):yu(e):vu(fu(e))}var Su,xu,Eu=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function wu(e){return.2126*Eu(e.r)+.7152*Eu(e.g)+.0722*Eu(e.b)}function Cu(){var e=fu.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},n=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,n,r=0,o="string"==typeof e?fu(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=o.a,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return"hsla(".concat(360*r,", ").concat(100*t,", ").concat(100*d,", ").concat(l,")")}(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(r[1]),i=parseFloat(r[3]),a=parseFloat(r[7]),s=parseFloat(r[5]),l=Math.max(0,Math.min(s+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(l,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var n=e.type===t.type?e:fu(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return function(){var e=fu.apply(void 0,arguments);return e.invalid||wu(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=bu(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=yu(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=vu(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=mu(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,n,r=0,o="string"==typeof e?fu(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return"hsl(".concat(360*r,", ").concat(100*t,", ").concat(100*u,")")}(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=gu(e),n=t.h,r=t.s,o=t.v;return"hsv(".concat(n,", ").concat(r,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=gu(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),o=Math.floor(t.g+(e.g-t.g)*n),i=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return"rgba(".concat([r,o,i,a].join(", "),")")},getBrightenedColor:function(){return Cu(r(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return Cu(r(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function Lu(e,t){if(e&&t){var n=wu(e),r=wu(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}function ku(e,t){var n=Cu("#FFFFFF"),r=Cu(e),o=Cu(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;var i=Lu(n,r),a=Lu(o,r),s=i>a||i>4.5;return!s&&a>3?t:s?"#FFFFFF":"#000000"}var Ru=function(){if(xu)return Su;xu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Su=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Su}();function Iu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _u(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ou(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Ru);var qu=1/.7,Tu="\\s*([+-]?\\d+)\\s*",Mu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Du="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pu=/^#([0-9a-f]{3,8})$/,Au=new RegExp(`^rgb\\(${Tu},${Tu},${Tu}\\)$`),Nu=new RegExp(`^rgb\\(${Du},${Du},${Du}\\)$`),ju=new RegExp(`^rgba\\(${Tu},${Tu},${Tu},${Mu}\\)$`),zu=new RegExp(`^rgba\\(${Du},${Du},${Du},${Mu}\\)$`),Fu=new RegExp(`^hsl\\(${Mu},${Du},${Du}\\)$`),Wu=new RegExp(`^hsla\\(${Mu},${Du},${Du},${Mu}\\)$`),Bu={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 Hu(){return this.rgb().formatHex()}function $u(){return this.rgb().formatRgb()}function Uu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Pu.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Gu(t):3===n?new Ju(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vu(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=Au.exec(e))?new Ju(t[1],t[2],t[3],1):(t=Nu.exec(e))?new Ju(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ju.exec(e))?Vu(t[1],t[2],t[3],t[4]):(t=zu.exec(e))?Vu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Fu.exec(e))?nd(t[1],t[2]/100,t[3]/100,1):(t=Wu.exec(e))?nd(t[1],t[2]/100,t[3]/100,t[4]):Bu.hasOwnProperty(e)?Gu(Bu[e]):"transparent"===e?new Ju(NaN,NaN,NaN,0):null}function Gu(e){return new Ju(e>>16&255,e>>8&255,255&e,1)}function Vu(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ju(e,t,n,r)}function Ku(e){return e instanceof Ou||(e=Uu(e)),e?new Ju((e=e.rgb()).r,e.g,e.b,e.opacity):new Ju}function Zu(e,t,n,r){return 1===arguments.length?Ku(e):new Ju(e,t,n,null==r?1:r)}function Ju(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xu(){return`#${td(this.r)}${td(this.g)}${td(this.b)}`}function Yu(){const e=Qu(this.opacity);return`${1===e?"rgb(":"rgba("}${ed(this.r)}, ${ed(this.g)}, ${ed(this.b)}${1===e?")":`, ${e})`}`}function Qu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ed(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function td(e){return((e=ed(e))<16?"0":"")+e.toString(16)}function nd(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new od(e,t,n,r)}function rd(e){if(e instanceof od)return new od(e.h,e.s,e.l,e.opacity);if(e instanceof Ou||(e=Uu(e)),!e)return new od;if(e instanceof od)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new od(a,s,l,e.opacity)}function od(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function id(e){return(e=(e||0)%360)<0?e+360:e}function ad(e){return Math.max(0,Math.min(1,e||0))}function sd(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Iu(Ou,Uu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hu,formatHex:Hu,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rd(this).formatHsl()},formatRgb:$u,toString:$u}),Iu(Ju,Zu,_u(Ou,{brighter(e){return e=null==e?qu:Math.pow(qu,e),new Ju(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ju(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ju(ed(this.r),ed(this.g),ed(this.b),Qu(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:Xu,formatHex:Xu,formatHex8:function(){return`#${td(this.r)}${td(this.g)}${td(this.b)}${td(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Yu,toString:Yu})),Iu(od,(function(e,t,n,r){return 1===arguments.length?rd(e):new od(e,t,n,null==r?1:r)}),_u(Ou,{brighter(e){return e=null==e?qu:Math.pow(qu,e),new od(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new od(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ju(sd(e>=240?e-240:e+120,o,r),sd(e,o,r),sd(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new od(id(this.h),ad(this.s),ad(this.l),Qu(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=Qu(this.opacity);return`${1===e?"hsl(":"hsla("}${id(this.h)}, ${100*ad(this.s)}%, ${100*ad(this.l)}%${1===e?")":`, ${e})`}`}}));const ld=Math.PI/180,cd=180/Math.PI,ud=4/29,dd=6/29,pd=3*dd*dd;function hd(e){if(e instanceof fd)return new fd(e.l,e.a,e.b,e.opacity);if(e instanceof vd)return Sd(e);e instanceof Ju||(e=Ku(e));var t,n,r=yd(e.r),o=yd(e.g),i=yd(e.b),a=md((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=md((.4360747*r+.3850649*o+.1430804*i)/.96422),n=md((.0139322*r+.0971045*o+.7141733*i)/.82521)),new fd(116*a-16,500*(t-a),200*(a-n),e.opacity)}function fd(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function md(e){return e>.008856451679035631?Math.pow(e,1/3):e/pd+ud}function gd(e){return e>dd?e*e*e:pd*(e-ud)}function bd(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yd(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vd(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Sd(e){if(isNaN(e.h))return new fd(e.l,0,0,e.opacity);var t=e.h*ld;return new fd(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Iu(fd,(function(e,t,n,r){return 1===arguments.length?hd(e):new fd(e,t,n,null==r?1:r)}),_u(Ou,{brighter(e){return new fd(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new fd(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ju(bd(3.1338561*(t=.96422*gd(t))-1.6168667*(e=1*gd(e))-.4906146*(n=.82521*gd(n))),bd(-.9787684*t+1.9161415*e+.033454*n),bd(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Iu(vd,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof vd)return new vd(e.h,e.c,e.l,e.opacity);if(e instanceof fd||(e=hd(e)),0===e.a&&0===e.b)return new vd(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*cd;return new vd(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vd(e,t,n,null==r?1:r)}),_u(Ou,{brighter(e){return new vd(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new vd(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sd(this).rgb()}}));var xd=e=>()=>e;function Ed(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):xd(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Ed:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):xd(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Zu(e)).r,(t=Zu(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Ed(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var wd,Cd="center",Ld="bottom";function kd(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Rd(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=_d)):void 0===t&&(t=Id);for(var n,r,o,i,a,s=new Td(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new Td(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(qd)}function Id(e){return e.children}function _d(e){return Array.isArray(e)?e[1]:null}function Od(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function qd(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Td(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Cd,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Cd,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Cd,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Cd},{key:"DataRangeIncludingZero",alignment:Ld},{key:"LimitedData",alignment:Ld},{key:"NegativeOrZeroValues",alignment:Ld}].reduce((function(e,t){return e[t.key]=t,e}),{}),Td.prototype=Rd.prototype={constructor:Td,count:function(){return this.eachAfter(kd)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Rd(this).eachBefore(Od)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},wd=function(e){
|
|
14
|
+
*/,StyledEngineProvider:$n,ThemeContext:y,css:v,default:function(e,t){return U(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:S});function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(this,arguments)}function Vn(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Kn(){return Kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kn.apply(this,arguments)}function Zn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Jn(t){if(e.isValidElement(t)||!Zn(t))return t;const n={};return Object.keys(t).forEach((e=>{n[e]=Jn(t[e])})),n}function Xn(t,n,r={clone:!0}){const o=r.clone?Kn({},t):t;return Zn(t)&&Zn(n)&&Object.keys(n).forEach((i=>{e.isValidElement(n[i])?o[i]=n[i]:Zn(n[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Zn(t[i])?o[i]=Xn(t[i],n[i],r):r.clone?o[i]=Zn(n[i])?Jn(n[i]):n[i]:o[i]=n[i]})),o}var Yn=Object.freeze({__proto__:null,default:Xn,isPlainObject:Zn});const Qn=["values","unit","step"],er=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Gn({},e,{[t.key]:t.val})),{})};function tr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Vn(e,Qn),i=er(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Gn({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const nr={borderRadius:4};function rr(e,t){return t?Xn(e,t,{clone:!1}):e}const or={xs:0,sm:600,md:900,lg:1200,xl:1536},ir={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${or[e]}px)`};function ar(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ir;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||ir;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||or).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function sr(e){if("string"!=typeof e)throw new Error(Rt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var lr=Object.freeze({__proto__:null,default:sr});function cr(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function ur(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:cr(e,n)||r,t&&(o=t(o,r,e)),o}function dr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=cr(e.theme,r)||{};return ar(e,i,(e=>{let r=ur(a,o,e);return e===r&&"string"==typeof e&&(r=ur(a,o,`${t}${"default"===e?"":sr(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const pr={m:"margin",p:"padding"},hr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!fr[e])return[e];e=fr[e]}const[t,n]=e.split(""),r=pr[t],o=hr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),gr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],br=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function yr(e,t,n,r){var o;const i=null!=(o=cr(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function vr(e){return yr(e,"spacing",8)}function Sr(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function xr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Sr(t,n),e)),{})}(mr(n),r);return ar(e,e[n],o)}function Er(e,t){const n=vr(e.theme);return Object.keys(e).map((r=>xr(e,t,r,n))).reduce(rr,{})}function Cr(e){return Er(e,gr)}function wr(e){return Er(e,br)}function Lr(e=8){if(e.mui)return e;const t=vr({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function kr(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?rr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Rr(e){return"number"!=typeof e?e:`${e}px solid`}function Ir(e,t){return dr({prop:e,themeKey:"borders",transform:t})}Cr.propTypes={},Cr.filterProps=gr,wr.propTypes={},wr.filterProps=br;const _r=Ir("border",Rr),qr=Ir("borderTop",Rr),Or=Ir("borderRight",Rr),Tr=Ir("borderBottom",Rr),Mr=Ir("borderLeft",Rr),Dr=Ir("borderColor"),Ar=Ir("borderTopColor"),Pr=Ir("borderRightColor"),Nr=Ir("borderBottomColor"),jr=Ir("borderLeftColor"),zr=Ir("outline",Rr),Fr=Ir("outlineColor"),Wr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=yr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Sr(t,e)});return ar(e,e.borderRadius,n)}return null};Wr.propTypes={},Wr.filterProps=["borderRadius"],kr(_r,qr,Or,Tr,Mr,Dr,Ar,Pr,Nr,jr,Wr,zr,Fr);const Hr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=yr(e.theme,"spacing",8),n=e=>({gap:Sr(t,e)});return ar(e,e.gap,n)}return null};Hr.propTypes={},Hr.filterProps=["gap"];const Br=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=yr(e.theme,"spacing",8),n=e=>({columnGap:Sr(t,e)});return ar(e,e.columnGap,n)}return null};Br.propTypes={},Br.filterProps=["columnGap"];const $r=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=yr(e.theme,"spacing",8),n=e=>({rowGap:Sr(t,e)});return ar(e,e.rowGap,n)}return null};$r.propTypes={},$r.filterProps=["rowGap"];function Ur(e,t){return"grey"===t?t:e}kr(Hr,Br,$r,dr({prop:"gridColumn"}),dr({prop:"gridRow"}),dr({prop:"gridAutoFlow"}),dr({prop:"gridAutoColumns"}),dr({prop:"gridAutoRows"}),dr({prop:"gridTemplateColumns"}),dr({prop:"gridTemplateRows"}),dr({prop:"gridTemplateAreas"}),dr({prop:"gridArea"}));function Gr(e){return e<=1&&0!==e?100*e+"%":e}kr(dr({prop:"color",themeKey:"palette",transform:Ur}),dr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ur}),dr({prop:"backgroundColor",themeKey:"palette",transform:Ur}));const Vr=dr({prop:"width",transform:Gr}),Kr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||or[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Gr(t)}};return ar(e,e.maxWidth,t)}return null};Kr.filterProps=["maxWidth"];const Zr=dr({prop:"minWidth",transform:Gr}),Jr=dr({prop:"height",transform:Gr}),Xr=dr({prop:"maxHeight",transform:Gr}),Yr=dr({prop:"minHeight",transform:Gr});dr({prop:"size",cssProperty:"width",transform:Gr}),dr({prop:"size",cssProperty:"height",transform:Gr});kr(Vr,Kr,Zr,Jr,Xr,Yr,dr({prop:"boxSizing"}));const Qr={border:{themeKey:"borders",transform:Rr},borderTop:{themeKey:"borders",transform:Rr},borderRight:{themeKey:"borders",transform:Rr},borderBottom:{themeKey:"borders",transform:Rr},borderLeft:{themeKey:"borders",transform:Rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Rr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wr},color:{themeKey:"palette",transform:Ur},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ur},backgroundColor:{themeKey:"palette",transform:Ur},p:{style:wr},pt:{style:wr},pr:{style:wr},pb:{style:wr},pl:{style:wr},px:{style:wr},py:{style:wr},padding:{style:wr},paddingTop:{style:wr},paddingRight:{style:wr},paddingBottom:{style:wr},paddingLeft:{style:wr},paddingX:{style:wr},paddingY:{style:wr},paddingInline:{style:wr},paddingInlineStart:{style:wr},paddingInlineEnd:{style:wr},paddingBlock:{style:wr},paddingBlockStart:{style:wr},paddingBlockEnd:{style:wr},m:{style:Cr},mt:{style:Cr},mr:{style:Cr},mb:{style:Cr},ml:{style:Cr},mx:{style:Cr},my:{style:Cr},margin:{style:Cr},marginTop:{style:Cr},marginRight:{style:Cr},marginBottom:{style:Cr},marginLeft:{style:Cr},marginX:{style:Cr},marginY:{style:Cr},marginInline:{style:Cr},marginInlineStart:{style:Cr},marginInlineEnd:{style:Cr},marginBlock:{style:Cr},marginBlockStart:{style:Cr},marginBlockEnd:{style:Cr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Hr},rowGap:{style:$r},columnGap:{style:Br},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gr},maxWidth:{style:Kr},minWidth:{transform:Gr},height:{transform:Gr},maxHeight:{transform:Gr},minHeight:{transform:Gr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function eo(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=cr(n,s)||{};if(c)return c(o);return ar(o,t,(t=>{let n=ur(u,l,t);return t===n&&"string"==typeof t&&(n=ur(u,l,`${e}${"default"===t?"":sr(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Qr;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=rr(l,e(n,o,i,a));else{const e=ar({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=rr(l,e):l[n]=t({sx:o,theme:i})}else l=rr(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const to=eo();function no(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}to.filterProps=["sx"];const ro=["breakpoints","palette","spacing","shape"];function oo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Vn(e,ro),s=tr(n),l=Lr(o);let c=Xn({breakpoints:s,direction:"ltr",components:{},palette:Gn({mode:"light"},r),spacing:l,shape:Gn({},nr,i)},a);return c.applyStyles=no,c=t.reduce(((e,t)=>Xn(e,t)),c),c.unstable_sxConfig=Gn({},Qr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return to({sx:e,theme:this})},c}var io=Object.freeze({__proto__:null,default:oo,private_createBreakpoints:tr,unstable_applyStyles:no});function ao(t=null){const n=e.useContext(y);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const so=oo();const lo=["sx"];var co=Object.freeze({__proto__:null,default:to,extendSxProp:function(e){const{sx:t}=e,n=Vn(e,lo),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Qr;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Zn(n)?Gn({},r,n):r}:Gn({},r,t),Gn({},o,{sx:i})},unstable_createStyleFunctionSx:eo,unstable_defaultSxConfig:Qr});const uo=e=>e,po=(()=>{let e=uo;return{configure(t){e=t},generate:t=>e(t),reset(){e=uo}}})();function ho(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ho(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ho(e))&&(r&&(r+=" "),r+=t);return r}const mo={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function go(e,t,n="Mui"){const r=mo[t];return r?`${n}-${r}`:`${po.generate(e)}-${t}`}function bo(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=go(e,t,n)})),r}var yo,vo,So={exports:{}},xo={};var Eo=(vo||(vo=1,So.exports=function(){if(yo)return xo;yo=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),xo.ContextConsumer=s,xo.ContextProvider=a,xo.Element=t,xo.ForwardRef=c,xo.Fragment=r,xo.Lazy=h,xo.Memo=p,xo.Portal=n,xo.Profiler=i,xo.StrictMode=o,xo.Suspense=u,xo.SuspenseList=d,xo.isAsyncMode=function(){return!1},xo.isConcurrentMode=function(){return!1},xo.isContextConsumer=function(e){return m(e)===s},xo.isContextProvider=function(e){return m(e)===a},xo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xo.isForwardRef=function(e){return m(e)===c},xo.isFragment=function(e){return m(e)===r},xo.isLazy=function(e){return m(e)===h},xo.isMemo=function(e){return m(e)===p},xo.isPortal=function(e){return m(e)===n},xo.isProfiler=function(e){return m(e)===i},xo.isStrictMode=function(e){return m(e)===o},xo.isSuspense=function(e){return m(e)===u},xo.isSuspenseList=function(e){return m(e)===d},xo.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},xo.typeOf=m,xo}()),So.exports);const Co=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function wo(e){const t=`${e}`.match(Co);return t&&t[1]||""}function Lo(e,t=""){return e.displayName||e.name||wo(e)||t}function ko(e,t,n){const r=Lo(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ro=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Lo(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Eo.ForwardRef:return ko(e,e.render,"ForwardRef");case Eo.Memo:return ko(e,e.type,"memo");default:return}}},getFunctionName:wo});function Io(e,t){const n=Kn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Kn({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Kn({},i),Object.keys(o).forEach((e=>{n[r][e]=Io(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const _o="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var qo=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(this,arguments)}function To(e){return e&&e.ownerDocument||document}function Mo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Do=0;const Ao=e["useId".toString()];class Po{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Po}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let No=!0,jo=!1;const zo=new Po,Fo={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Wo(e){e.metaKey||e.altKey||e.ctrlKey||(No=!0)}function Ho(){No=!1}function Bo(){"hidden"===this.visibilityState&&jo&&(No=!0)}function $o(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return No||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Fo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const Uo=e.createContext(null);function Go(){return e.useContext(Uo)}var Vo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ko(t){const{children:n,theme:r}=t,o=Go(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return Oo({},e,t)}(o,r);return null!=e&&(e[Vo]=null!==o),e}),[r,o]);return Hn.jsx(Uo.Provider,{value:i,children:n})}const Zo=["value"],Jo=e.createContext();function Xo(e){let{value:t}=e,n=Vn(e,Zo);return Hn.jsx(Jo.Provider,Gn({value:null==t||t},n))}const Yo=e.createContext(void 0);function Qo({value:e,children:t}){return Hn.jsx(Yo.Provider,{value:e,children:t})}function ei({props:t,name:n}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Io(o.defaultProps,r):o.styleOverrides||o.variants?r:Io(o,r)}({props:t,name:n,theme:{components:e.useContext(Yo)}})}const ti={};function ni(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?Gn({},n,{[t]:i}):i;return o?()=>a:a}return Gn({},n,t?{[t]:r}:r)}),[t,n,r,o])}function ri(e){const{children:t,theme:n,themeId:r}=e,o=ao(ti),i=Go()||ti,a=ni(r,o,n),s=ni(r,i,n,!0),l="rtl"===a.direction;return Hn.jsx(Ko,{theme:s,children:Hn.jsx(y.Provider,{value:a,children:Hn.jsx(Xo,{value:l,children:Hn.jsx(Qo,{value:null==a?void 0:a.components,children:t})})})})}const oi=["defaultProps","mixins","overrides","palette","props","styleOverrides"],ii=["type","mode"];var ai,si={},li={exports:{}};function ci(){return ai||(ai=1,(e=li).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),li.exports;var e}var ui,di=V(It),pi=V(qo);function hi(){if(ui)return si;ui=1;var e=ci();Object.defineProperty(si,"__esModule",{value:!0}),si.alpha=u,si.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},si.colorChannel=void 0,si.darken=d,si.decomposeColor=i,si.emphasize=h,si.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},si.getLuminance=c,si.hexToRgb=o,si.hslToRgb=l,si.lighten=p,si.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},si.private_safeColorChannel=void 0,si.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},si.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},si.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},si.recomposeColor=s,si.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(di),n=e(pi);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};si.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return si.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},si}var fi=hi();const mi={black:"#000",white:"#fff"},gi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},bi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},yi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},vi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Si={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},xi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ei={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ci=["mode","contrastThreshold","tonalOffset"],wi={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:mi.white,default:mi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Li={text:{primary:mi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:mi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ki(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=fi.lighten(e.main,o):"dark"===t&&(e.dark=fi.darken(e.main,i)))}function Ri(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ot(e,Ci),i=e.primary||function(e="light"){return"dark"===e?{main:Si[200],light:Si[50],dark:Si[400]}:{main:Si[700],light:Si[400],dark:Si[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:bi[200],light:bi[50],dark:bi[400]}:{main:bi[500],light:bi[300],dark:bi[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:yi[500],light:yi[300],dark:yi[700]}:{main:yi[700],light:yi[400],dark:yi[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:xi[400],light:xi[300],dark:xi[700]}:{main:xi[700],light:xi[500],dark:xi[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ei[400],light:Ei[300],dark:Ei[700]}:{main:Ei[800],light:Ei[500],dark:Ei[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:vi[400],light:vi[300],dark:vi[700]}:{main:"#ed6c02",light:vi[500],dark:vi[900]}}(t);function d(e){return fi.getContrastRatio(e,Li.text.primary)>=n?Li.text.primary:wi.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=qt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Rt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Rt(12,t?` (${t})`:"",JSON.stringify(e.main)));return ki(e,"light",o,r),ki(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:Li,light:wi};return Xn(qt({common:qt({},mi),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:gi,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const Ii=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const _i={textTransform:"uppercase"},qi='"Roboto", "Helvetica", "Arial", sans-serif';function Oi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=qi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Ot(n,Ii),h=o/14,f=d||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return qt({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===qi?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,_i),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,_i),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xn(qt({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Ti(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Mi=["none",Ti(0,2,1,-1,0,1,1,0,0,1,3,0),Ti(0,3,1,-2,0,2,2,0,0,1,5,0),Ti(0,3,3,-2,0,3,4,0,0,1,8,0),Ti(0,2,4,-1,0,4,5,0,0,1,10,0),Ti(0,3,5,-1,0,5,8,0,0,1,14,0),Ti(0,3,5,-1,0,6,10,0,0,1,18,0),Ti(0,4,5,-2,0,7,10,1,0,2,16,1),Ti(0,5,5,-3,0,8,10,1,0,3,14,2),Ti(0,5,6,-3,0,9,12,1,0,3,16,2),Ti(0,6,6,-3,0,10,14,1,0,4,18,3),Ti(0,6,7,-4,0,11,15,1,0,4,20,3),Ti(0,7,8,-4,0,12,17,2,0,5,22,4),Ti(0,7,8,-4,0,13,19,2,0,5,24,4),Ti(0,7,9,-4,0,14,21,2,0,5,26,4),Ti(0,8,9,-5,0,15,22,2,0,6,28,5),Ti(0,8,10,-5,0,16,24,2,0,6,30,5),Ti(0,8,11,-5,0,17,26,2,0,6,32,5),Ti(0,9,11,-5,0,18,28,2,0,7,34,6),Ti(0,9,12,-6,0,19,29,2,0,7,36,6),Ti(0,10,13,-6,0,20,31,3,0,8,38,7),Ti(0,10,13,-6,0,21,33,3,0,8,40,7),Ti(0,10,14,-6,0,22,35,3,0,8,42,7),Ti(0,11,14,-7,0,23,36,3,0,9,44,8),Ti(0,11,15,-7,0,24,38,3,0,9,46,8)],Di=["duration","easing","delay"],Ai={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Pi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ni(e){return`${Math.round(e)}ms`}function ji(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function zi(e){const t=qt({},Ai,e.easing),n=qt({},Pi,e.duration);return qt({getAutoHeightDuration:ji,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Ot(r,Di),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ni(o)} ${i} ${"string"==typeof a?a:Ni(a)}`)).join(",")}},e,{easing:t,duration:n})}const Fi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Wi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Hi(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ot(e,Wi);if(e.vars&&void 0===e.generateCssVars)throw new Error(Rt(18));const s=Ri(r),l=oo(e);let c=Xn(l,{mixins:(u=l.breakpoints,d=n,qt({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Mi.slice(),typography:Oi(s,i),transitions:zi(o),zIndex:qt({},Fi)});var u,d;return c=Xn(c,a),c=t.reduce(((e,t)=>Xn(e,t)),c),c.unstable_sxConfig=qt({},Qr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return to({sx:e,theme:this})},c}const Bi=Hi();function $i(){const e=function(e=so){return ao(e)}(Bi);return e[_t]||e}var Ui,Gi={},Vi={exports:{}};var Ki,Zi={exports:{}};var Ji,Xi=V(Un),Yi=V(Yn),Qi=V(lr),ea=V(Ro),ta=V(io),na=V(co);function ra(){if(Ji)return Gi;Ji=1;var e=ci();Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=function(e={}){const{themeId:t,defaultTheme:a=h,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:m((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:h,slot:y,skipVariantsResolver:v,skipSx:S,overridesResolver:x=g(f(y))}=s,E=(0,r.default)(s,u),C=void 0!==v?v:y&&"Root"!==y&&"root"!==y||!1,w=S||!1;let L=p;"Root"===y||"root"===y?L=l:y?L=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(L=void 0);const k=(0,o.default)(e,(0,n.default)({shouldForwardProp:L,label:undefined},E)),R=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>b(e,(0,n.default)({},r,{theme:m({theme:r.theme,defaultTheme:a,themeId:t})})):e,I=(r,...o)=>{let i=R(r);const s=o?o.map(R):[];h&&x&&s.push((e=>{const r=m((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const o=r.components[h].styleOverrides,i={};return Object.entries(o).forEach((([t,o])=>{i[t]=b(o,(0,n.default)({},e,{theme:r}))})),x(e,i)})),h&&!C&&s.push((e=>{var r;const o=m((0,n.default)({},e,{defaultTheme:a,themeId:t}));return b({variants:null==o||null==(r=o.components)||null==(r=r[h])?void 0:r.variants},(0,n.default)({},e,{theme:o}))})),w||s.push(d);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=k(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return k.withConfig&&(I.withConfig=k.withConfig),I}},Gi.shouldForwardProp=p,Gi.systemDefaultTheme=void 0;var t,n=e((Ui||(Ui=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Vi)),Vi.exports)),r=e((Ki||(Ki=1,(t=Zi).exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},t.exports.__esModule=!0,t.exports.default=t.exports),Zi.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Xi),i=Yi;e(Qi),e(ea);var a=e(ta),s=e(na);const l=["ownerState"],c=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const h=Gi.systemDefaultTheme=(0,a.default)(),f=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:o}=t,i=(0,r.default)(t,l);const a="function"==typeof e?e((0,n.default)({ownerState:o},i)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,n.default)({ownerState:o},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,r.default)(a,c);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,n.default)({ownerState:o},i,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:o},i,o)):e.style))})),t}return a}return Gi}const oa=G(ra())({themeId:_t,defaultTheme:Bi,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),ia=["theme"];function aa(e){let{theme:t}=e,n=Ot(e,ia);const r=t[_t];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=qt({},r,{vars:null}):t&&!t.vars&&(o=qt({},t,{vars:null}))),Hn.jsx(ri,qt({},n,{themeId:r?_t:void 0,theme:o}))}function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(this,arguments)}function la(e,t){return la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},la(e,t)}function ca(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,la(e,t)}function ua(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const da=bo("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var pa={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const ha={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},fa={mode:"light",palette:{primary:{main:ha.grey25,contrastText:ha.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:ha.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:ha.grey100,dark:ha.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:ha.grey100,default:ha.grey100,lightest:ha.grey100,lighter:ha.grey98,darker:ha.grey95,darkest:ha.grey90},custom:{focusBorder:ha.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:ha.grey45,disabledContrastText:ha.grey100},selected:{main:ha.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:ha.grey100,selectedContrastText:ha.grey100,mainContrastText:ha.grey100,alternativeContrastText:ha.grey25,excludedContrastText:ha.grey25,selectedExcludedContrastText:ha.grey100,possibleContrastText:ha.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},ma={mode:"dark",palette:{primary:{main:ha.grey20,contrastText:ha.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:ha.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:ha.grey100,dark:ha.grey0},action:{active:ha.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:ha.grey25,lighter:ha.grey20,darker:ha.grey15,darkest:ha.grey10},custom:{focusBorder:ha.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:ha.grey45,disabledContrastText:ha.grey100},selected:{main:ha.green,alternative:ha.grey20,excluded:ha.grey10,selectedExcluded:ha.grey10,possible:ha.grey80,selectedContrastText:ha.grey100,mainContrastText:ha.grey100,alternativeContrastText:ha.grey100,excludedContrastText:ha.grey100,selectedExcludedContrastText:ha.grey100,possibleContrastText:ha.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},ga={},ba=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(da.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(da.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(da.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(da.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function ya(e){let t=fa,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=ma));const r=JSON.stringify(t);if(ga[r])return ga[r];const o={palette:Q(Q({type:t.mode},pa.palette),t.palette),typography:Q({},pa.typography),shadows:pa.shadows,props:Q({},pa.props),shape:Q({},pa.shape)};return ga[r]=Hi(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=qt({},Ot(e,oi),{components:{}});Object.keys(t).forEach((e=>{const n=s.components[e]||{};n.defaultProps=t[e],s.components[e]=n})),Object.keys(i).forEach((e=>{const t=s.components[e]||{};t.defaultProps=i[e],s.components[e]=t})),Object.keys(a).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=a[e],s.components[e]=t})),Object.keys(r).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=r[e],s.components[e]=t})),s.spacing=Lr(e.spacing);const l=tr(e.breakpoints||{}),c=s.spacing;s.mixins=qt({gutters:(e={})=>qt({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:qt({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,p=Ot(o,ii),h=d||u||"light";return s.palette=qt({text:{hint:"dark"===h?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h},p),s}(Q(Q({},o),{},{overrides:ba(o)}))),ga[r].name=n,ga[r]}po.configure((e=>"njs-".concat("104b","-").concat(e.replace("Mui",""))));var va=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Sa={active:!0,select:!0,passive:!0,edit:!1};function xa(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(Sa).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Sa[e],n[e]=!Sa[e])})),e.constraints=n,e.interactions=t}var Ea=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=[],i={},a={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,i[n]=e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{o.forEach((n=>n(e?{}:t)))},destroy:()=>{Object.keys(i).forEach((e=>{i[e]&&i[e]()}))}};return[()=>{const[,e]=n(t);return r((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[a]},a]};const Ca=o(((e,o)=>{let{initialContext:s,renderCallback:l,modelStore:c,selectionStore:u}=e;const[d,p]=n(s),[h,f]=n(),{theme:m}=i((()=>({theme:ya(h)})),[h]),[g,b]=n([]);return r((()=>{l&&l()}),[]),a(o,(()=>({setComps(e){b([...e])},setMuiThemeName:f,setContext:e=>p((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),d&&(d.modelStore=c,d.selectionStore=u),t.createElement($n,{injectFirst:!0},t.createElement(aa,{theme:m},t.createElement(va.Provider,{value:d},g)))}));function wa(e){let n,{app:r,context:o}=e;const i=new Promise((e=>{n=e})),a=t.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","5.12.6"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),o&&xa(o);const l=function(e){const[t,n]=Ea({}),[r,o]=Ea({}),[i,a]=Ea({}),[s,l]=Ea({}),[c,u]=Ea({}),[,d]=Ea({}),p=e=>{let{type:t,value:r}=e;const i=d.get(r.id);d.set(r.id,{});const s=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("closed",c),r.removeListener("changed",s),n.clear(r.id),o.clear(r.id),a.clear(r.id),l.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(i||(r.on("changed",s),r.once("closed",c))),c},[h,f]=Ea({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),f.clear(e.id)}},destroy:()=>{f.destroy()},useModelStore:h,modelStore:f,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:s,rpcRequestModelStore:l,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(r.id),c=function(e){const[t,n]=Ea({}),[r,o]=Ea({}),[i,a]=Ea({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(r.id),u=kt.createRoot(s);u.render(t.createElement(Ca,{ref:a,initialContext:o,renderCallback:n,modelStore:l,selectionStore:c}));const d={},p=[],h=[];return[{toggleFocusOfCells(e){Object.keys(d).forEach((t=>{d[t].current.toggleFocus(t===e)}))},cells:d,addCell(e,t){d[e]=t},removeCell(e){delete d[e]},add(e,t){(async()=>{await i,h.push(e),p.push(t),a.current.setComps(h)})()},remove(e){(async t=>{await i;const n=h.indexOf(e);var r;-1!==n&&(null===(r=p[n])||void 0===r||r.call(p),h.splice(n,1),p.splice(n,1));null==a||null===(t=a.current)||void 0===t||t.setComps(h)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,e&&xa(e),a.current.setContext(e)})()},destroy(){p.forEach((e=>{e&&e()})),l.destroy(),u.unmount()}},l,c,a,i]}function La(){const{useModelStore:e}=s(va).modelStore;return e()}function ka(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=La(),[a]=function(){const{useRpcRequestSessionModelStore:e}=s(va).modelStore;return e()}(),[l,c]=n();for(var u=arguments.length,d=new Array(u>2?u-2:0),p=2;p<u;p++)d[p-2]=arguments[p];return r((()=>{if(!t)return;(async()=>{let n=a.get(o);n||(n=t.createSessionObject(e),a.set(o,n));const r=await n;i.set(o,r),c(r)})()}),[t,...d]),[l]}const Ra={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Ia(e){return ka(Ra,e)}const _a=e=>new Promise((t=>{setTimeout(t,e)})),qa=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=Q(Q({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:Q({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=Q(Q({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let a=n.get(r);return a||(a={}),a[o]=i,n.set(r,a),i};function Oa(e,t){const n=e?"".concat(e.id):null,[o]=function(){const{useRpcResultStore:e}=s(va).modelStore;return e()}(),[i,a]=l(qa,n?o.get(n):null),[c]=function(){const{useModelChangedStore:e}=s(va).modelStore;return e()}(),[u]=function(){const{useRpcRequestStore:e}=s(va).modelStore;return e()}();let d;n&&(d=u.get(n),d||(d={},u.set(n,d)));const p=async r=>{let i=d[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},d[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0})}try{await _a(0);const r=await i.rpc;a({type:"VALID",result:r,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||r||(i.rpcRetry||(i.rpcRetry=!0),p(!0))}},h={cancel:async()=>{const r=e.session.getObjectApi({handle:-1});await r.cancelRequest(d[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:o})},retry:()=>{d[t].rpcRetry=!0,p()}};return r((()=>{e&&p()}),[e,c.get(e&&e.id),n,t]),[i&&i.result,{validating:i&&i.validating,canCancel:i&&i.canCancel,canRetry:i&&i.canRetry},h]}function Ta(e){return Oa(e,"getLayout")}function Ma(e){return Oa(e,"getAppLayout")}function Da(){const[e,t]=n(),[r,o]=n(),i=c((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();o({left:t,top:n,width:r,height:i})};return u((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[i,r,e]}function Aa(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Pa(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=Q({fontSize:Aa(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r);return t.createElement("i",{style:a},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:o,fill:"currentColor"},i.map(((e,n)=>{let{type:r,attrs:o}=e;return t.createElement(r,X({key:n},o))}))))}var Na=e=>Pa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var ja=e=>Pa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const za=e=>Q(Q({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var Fa=e=>Pa(za(e));var Wa=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ha=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},Ba=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Ha(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},Ha(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d),Wa(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,s=n.threshold,l=void 0===s?15:s,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],s=null,l=null,c=o;c<=i;c++)t(c)?null!==l&&(a.push(s,l),s=l=null):(l=c,null===s&&(s=c));if(null!==l){for(var u=Math.min(Math.max(l,s+r-1),n-1),d=l+1;d<=u&&!t(d);d++)l=d;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}();const $a=["S","XS"],Ua=e=>e.reduce(((e,t)=>e.concat(t)));function Ga(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!$a.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return Ua(t)}async function Va(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}const Ka="RowColumn",Za={row:"".concat(Ka,"-row"),rowBorderBottom:"".concat(Ka,"-rowBorderBottom"),column:"".concat(Ka,"-column"),fieldRoot:"".concat(Ka,"-fieldRoot"),cell:"".concat(Ka,"-cell"),labelText:"".concat(Ka,"-labelText"),labelDense:"".concat(Ka,"-labelDense"),highlighted:"".concat(Ka,"-highlighted"),checkboxLabel:"".concat(Ka,"-checkboxLabel"),icon:"".concat(Ka,"-icon"),S:"".concat(Ka,"-S"),XS:"".concat(Ka,"-XS"),A:"".concat(Ka,"-A"),X:"".concat(Ka,"-X"),frequencyCount:"".concat(Ka,"-frequencyCount"),barContainer:"".concat(Ka,"-barContainer"),bar:"".concat(Ka,"-bar"),barSelected:"".concat(Ka,"-barSelected"),barWithCheckbox:"".concat(Ka,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ka,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ka,"-excludedTextWithCheckbox")},Ja=".".concat(Za.fieldRoot),Xa=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function Ya(e){var t;let{selectionState:n,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:s}=e;const l=p({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});r((()=>{var e;if(null===(e=s.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=s.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=s.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const u=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),Va({selections:o,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle}))},d=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return Ua(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},h=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=d(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},f=c((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&Xa(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,u()}),[]),m=c((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&Xa(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,u()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),g=c((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");h(t)}u()}}),[]),b=c((e=>{0===e.button&&l.current.active&&(l.current.active=!1,u())}),[]),y=c((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");h(t)}),[]),v=c((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void u();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(Ja))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(Ja))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void u();l.current.active=!0;d(o,i).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,i]}),[]),S=c((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,h(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,u()}),[]);r((()=>(a.addEventListener("mouseup",b),()=>{a.removeEventListener("mouseup",b)})),[b]),r((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return o.on("clearItemStates",e),o.on("deactivated",e),o.on("cleared",t),()=>{o.removeListener("clearItemStates",e),o.removeListener("deactivated",e),o.removeListener("cleared",t)}}),[o]);const x={};return i?Object.assign(x,{onChange:f}):Object.assign(x,{onMouseUp:g,onMouseDown:m,onMouseEnter:y,onTouchStart:v,onTouchEnd:S}),{interactionEvents:x,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const a=!n.isSingleSelect&&Xa(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const s=[];return n.updateItems(t,r,s),n.setSelectableValuesUpdating(),Va({selections:o,elemNumbers:r?s:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const Qa=e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var es=e=>Pa(Qa(e));const ts=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,ns=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||ts(t))&&n};const rs=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const i=[t?Za.column:Za.row];n||i.push(Za.rowBorderBottom);const a=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?Za.XS:Za.S;break;case"S":case"L":t=Za.S;break;case"A":t=!!r&&Za.A;break;case"X":case"XL":t=!!r&&Za.X;break;default:t=!1}return t}({cell:r,showGray:o});return a&&i.push(a),i},os=9,is=4,as=7,ss=12+2*(as+1),ls=80,cs=10,us=150,ds=56,ps=20,hs="-",fs=32,ms=29,gs=20,bs=4,ys=e=>e.filter((e=>!!e)).join(" ").trim(),vs=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")},Ss=e=>e||hs,xs=["backgroundColor"],Es=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},Cs=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},ws=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(Za.labelText)]:{color:r.selections.selected}}:{};const i=r.selections,a=i[o],s=i["".concat(o,"Contrast")];return{background:a,color:s,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(Za.labelText)]:{color:s},["& .".concat(Za.icon)]:{color:s}}},Ls={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},ks=oa("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:a,sizes:s,frequencyMode:l,freqHitsValue:c,styles:u}=e;const d=u.content,{backgroundColor:p}=d,h=ee(d,xs),f=ws({theme:t,styles:u,checkboxes:n,selectionState:"selected"}),m=ws({theme:t,styles:u,checkboxes:n,selectionState:"excluded"}),g={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},b={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Za.row)]:Q({flexWrap:"nowrap"},u.content),["& .".concat(Za.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(Za.column)]:Q({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(Za.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(os,"px"),paddingRight:0},["& .".concat(Za.labelText)]:Q(Q({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},Ls),h),["& .".concat(Za.labelDense)]:{lineHeight:"18px"},["& .".concat(Za.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(Za.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":Q(Q({},Ls),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Za.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},["& .".concat(Za.S)]:Q(Q({},f),{},{border:r?"none":void 0}),["& .".concat(Za.XS)]:Q(Q({},ws({theme:t,styles:u,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(Za.A)]:Q(Q({},ws({theme:t,styles:u,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(Za.X)]:Q(Q({},m),{},{border:r?"none":void 0}),["& .".concat(Za.X,", & .").concat(Za.XS)]:{border:r?"none":void 0,["& .".concat(Za.barSelected," .bar-filled")]:Q({},g)},["& .".concat(Za.frequencyCount)]:Q(Q({zIndex:3,justifyContent:"flex-end"},Ls),{},{flex:"0 0 ".concat(Es({sizes:s,frequencyMode:l,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==l&&c?s.freqMinWidth:"max-content",maxWidth:Cs({sizes:s,frequencyMode:l,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(Za.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Za.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":Q({},g)},["& .".concat(Za.barSelected)]:{"& .bar-filled":Q({},b)},["& .".concat(Za.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Za.barSelectedWithCheckbox)]:{"& .bar-filled":Q(Q({},b),{},{backgroundColor:u.selections.selected||"#BFE5D0",borderColor:u.selections.selected})},["& .".concat(Za.excludedTextWithCheckbox)]:{color:u.content.color,fontStyle:"italic"}}}));var Rs=t.memo(ks);const Is="ListBoxCheckbox",_s={cbIcon:"".concat(Is,"-cbIcon"),cbIconChecked:"".concat(Is,"-cbIconChecked"),cbIconExcluded:"".concat(Is,"-cbIconExcluded"),cbIconAlternative:"".concat(Is,"-cbIconAlternative"),checkbox:"".concat(Is,"-checkbox"),dense:"".concat(Is,"-dense")},qs=oa(x,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(_s.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(_s.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(_s.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(_s.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(_s.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(_s.dense)]:{padding:"4px 8px"}}})),Os=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.createElement("span",{className:e.cbIcon},r&&t.createElement("span",{className:n&&r?e.cbIconExcluded:""}))};function Ts(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,styles:s,showGray:l=!0,dataN:c}=e;return t.createElement(qs,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[_s.checkbox,i&&_s.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":c},name:o,icon:Os(_s,l,a),checkedIcon:t.createElement("span",{className:_s.cbIconChecked}),styles:s})}const Ms={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Ds=oa(E,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Ms.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function As(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a,styles:s}=e;return t.createElement(Ds,{checked:r,onChange:n,value:o,name:o,className:Ms.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:i?"small":"medium",dense:i,styles:s})}function Ps(e){let{label:n,dense:r,showGray:o=!0,checkboxes:i,cell:a,valueTextAlign:s}=e;return t.createElement(C,{component:"span",variant:"body2",className:ys([Za.labelText,r&&Za.labelDense,o&&ns({cell:a,checkboxes:i})&&Za.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,n))}function Ns(e){let{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}=e;return"string"==typeof n?t.createElement(Ps,{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}):n}function js(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}=e;const f=t.createElement(Ts,{onChange:n,label:r,checked:i,dense:a,excluded:ts(s),isGridCol:l,showGray:c,dataN:o,styles:h}),m=t.createElement(As,{onChange:n,label:r,checked:i,dense:a,dataN:o,styles:h});return t.createElement(w,{control:u?m:f,className:Za.checkboxLabel,label:t.createElement(Ns,{label:r,dense:a,showGray:c,checkboxes:d,cell:s,valueTextAlign:p}),key:o})}function zs(e){let{labels:n,dense:r,showGray:o,checkboxes:i}=e;const a=n.map(((e,n)=>{let[r,o]=e;return t.createElement("span",{id:n,className:o?Za.highlighted:""},r)}));return t.createElement(Ps,{label:a,dense:r,showGray:o,checkboxes:i})}function Fs(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,qElemNumber:s,isSelected:l,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p,styles:h}=e;const f=t.createElement(zs,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(js,{onChange:n,label:f,qElemNumber:s,isSelected:l,dense:i,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:o,valueTextAlign:p,styles:h}):f}var Ws=t.memo((function(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}=e;return d?t.createElement(js,{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}):t.createElement(Ps,{label:r,dense:a,showGray:!0,checkboxes:d,cell:s,valueTextAlign:p})}));function Hs(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&Ss(n)!==hs))return;const s=vs({qFrequency:n,frequencyMax:a});return t.createElement(L,{className:ys([Za.bar,o&&Za.barWithCheckbox,i&&(o?Za.barSelectedWithCheckbox:Za.barSelected)])},t.createElement(L,{className:"bar-filled",width:s}))}function Bs(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;const a=Ss(null==n?void 0:n.qFrequency);return t.createElement(k,{item:!0,style:{display:"flex",alignItems:"center"},className:Za.frequencyCount,"aria-label":a,title:a},t.createElement(C,{noWrap:!0,color:"inherit",variant:"body2",className:ys([o&&Za.labelDense,Za.labelText,i&&ns({cell:n,checkboxes:r})&&Za.excludedTextWithCheckbox])},a))}function $s(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const Us=oa(k,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:a}=e;const s="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(Za.fieldRoot)]:Q(Q({},$s({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[s]:o?"8px":void 0})}}));const Gs=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===Gs.ARROW_UP||e===Gs.ARROW_DOWN||e===Gs.ARROW_LEFT||e===Gs.ARROW_RIGHT});function Vs(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function Ks(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function Zs(e){let{containerRef:t,enabled:r}=e;const[o,i]=n(!1),a={enabled:r,active:o,innerTabStops:!r||o,blur(e){var n;if(!r)return;i(!1);const o=Ks(t.current)||(null===(n=t.current)||void 0===n?void 0:n.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),Vs(t.current),e&&o&&(o.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),o.focus())},focus(){if(!r)return;i(!0);const e=t.current,n=null==e?void 0:e.querySelector(".search input"),o=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),s=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||n||o||a||l||s;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return a}const Js=e=>+e.getAttribute("data-n"),Xs=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},Ys=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),Vs(e),o},Qs=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},el=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=Ks(i),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||s)t.blur(!0);else{Vs(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},tl=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:s}=e;const l=e=>{let t;return"row"===i?(t=s%o,e<t?r:r-1):(t=s%r,e<o-1?r:t)};let c=t,u=n;if(a===Gs.ARROW_DOWN)if(t>=l(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=l(n-1)-1,u=n-1}else c=t-1;if("row"===i)return c*o+u;const d=s%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};const nl={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function rl(e){var o,a;let{index:s,rowIndex:l,columnIndex:u,style:d,data:p}=e;const{onChange:h,onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onTouchStart:y,onTouchEnd:v,pages:S,isLocked:x,column:E=!1,checkboxes:C=!1,textAlign:w,direction:L,layoutOptions:R={},freqIsAllowed:I,isSingleSelect:_,actions:q,frequencyMax:O="",histogram:T=!1,keyboard:M,showGray:D=!0,showTick:A=!0,columnCount:P=1,rowCount:N=1,dataOffset:j,deducedFrequencyMode:z,focusListItems:F,listCount:W,sizes:H,translator:B,showSearch:$,isModal:U,contentFontStyle:G,styles:V,fillHeight:K}=p,{dense:Z=!1,dataLayout:J="singleColumn",layoutOrder:X}=R,{itemPadding:Y}=H;let ee,te;const ne={max:null,currentIndex:null};if("number"==typeof l&&"number"==typeof u){"row"===X?(ee=l*P+u,ne.max=N,ne.currentIndex=l):(ee=u*N+l,ne.max=P,ne.currentIndex=u);const e=0;te=Q(Q({},d),{},{height:K?"100%":d.height,left:e+(0===u?d.left:Number(d.left)+u*e),top:0===l?d.top:Number(d.top)+l*e})}else ee=s,ne.max=W,ne.currentIndex=s,te=Q({},d);ee+=j;const[re,oe]=n(null);r((()=>{null!==re&&(0===ne.currentIndex&&F.first&&(re.focus(),F.setFirst(!1)),ne.currentIndex===ne.max-1&&F.last&&(re.focus(),F.setLast(!1)))}),[re,F.first,F.last]);const ie=c(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,focusListItems:s,keyboard:l,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:h,layoutOrder:f}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===Gs.ARROW_LEFT||e===Gs.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof h){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=tl({rowIndex:p,columnIndex:h,rowCount:u,columnCount:d,layoutOrder:f,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:h,shiftKey:f=!1,ctrlKey:y=!1,metaKey:v=!1}=p;switch(h){case Gs.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==l||!l.enabled){if(!n)return;return l.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(f){Xs(t)||Qs(t)||(n?l.focusSelection():el(e,l));break}l.focusSelection()||Qs(t)||Xs(t)||(d.blur(),el(e,l));break}case Gs.SHIFT:b(!0);break;case Gs.SPACE:t([Js(d)],!1,e);break;case Gs.ARROW_DOWN:case Gs.ARROW_RIGHT:u=m(h,d,!0),f&&u&&(g&&(t([Js(d)],!0),b(!1)),t([Js(u)],!0));break;case Gs.ARROW_UP:case Gs.ARROW_LEFT:u=m(h,d,!1),f&&u&&(g&&(t([Js(d)],!0),b(!1)),t([Js(u)],!0));break;case Gs.ENTER:if(o(),void 0===c)return;break;case Gs.ESCAPE:if(void 0===c)return void i();if(!c())return;i();break;case Gs.HOME:if(s.setFirst(!0),y){null==a||a("overflowStart");break}null==a||a("start");break;case Gs.END:if(s.setLast(!0),y){null==a||a("overflowEnd");break}null==a||a("end");break;case Gs.A:if(y||v){n();break}return;case Gs.F:if(y||v){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(Q(Q({},q),{},{focusListItems:F,keyboard:M,isModal:U,rowCount:N,columnCount:P,rowIndex:l,columnIndex:u,layoutOrder:X})),[q,null==M?void 0:M.innerTabStops,N,P,l,u,X]),ae=i((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:S,cellIndex:ee})),[S,ee]),se="S"===(null==ae?void 0:ae.qState)||"XS"===(null==ae?void 0:ae.qState)||"L"===(null==ae?void 0:ae.qState)||"XL"===(null==ae?void 0:ae.qState),le=i((()=>rs({column:E,histogram:T,cell:ae,showGray:D})),[null==ae?void 0:ae.qState,T,Z]),ce=c((e=>{e.preventDefault()}),[C]),ue=i((()=>ae&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:L,cell:ae,textAlign:w})),[L,ae,w]);if(!ae)return null;const de="grid"===J&&"column"===X,pe=null!==(o=null==ae?void 0:ae.qText)&&void 0!==o?o:"";let he;if(null!==(a=ae.qHighlightRanges)&&void 0!==a&&null!==(a=a.qRanges)&&void 0!==a&&a.length){const e=ae.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];he=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,s=t[o].qCharPos+t[o].qCharCount;return a&&s<e.length&&n.push([e.slice(s),!1]),n}),[]);return n}(pe,e)}const fe={alignItems:"center",display:"flex",fontSize:"8px"},me="rtl"===L,ge={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:me?8:C?0:void 0,paddingRight:C?0:me?8:0,justifyContent:ue,textAlign:ue},be=0===s,ye=se&&x,ve=!C&&se&&!x,Se=!C&&A,xe=C||!A,Ee=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=nl[r],c=t.get(l),u=[];if(o){const e=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:B,label:pe,qState:ae.qState,currentIndex:ne.currentIndex,maxIndex:ne.max,showSearch:$}),Ce=!me&&"right"===ue||me&&"left"===ue;return t.createElement(Rs,{className:Za.barContainer,checkboxes:C,style:te,styles:V,isGridCol:de,isGridMode:"grid"===J,dense:Z,direction:L,sizes:H,frequencyMode:z,freqHitsValue:Ce,contentFontStyle:G,"data-testid":"listbox.item"},t.createElement(Us,{role:"row","aria-label":Ee,"aria-selected":se,"aria-setsize":ne.max,"aria-rowindex":ne.currentIndex,ref:oe,container:!0,dataLayout:J,cellPaddingRight:xe,layoutOrder:X,itemPadding:Y,gap:0,className:ys(["value",...le]),classes:{root:Za.fieldRoot},onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onKeyDown:ie,onTouchStart:y,onTouchEnd:v,onContextMenu:ce,tabIndex:be&&M.innerTabStops?0:-1,"data-n":null==ae?void 0:ae.qElemNumber,direction:L,fillHeight:K},(null==ae?void 0:ae.qFrequency)&&t.createElement(Hs,{qFrequency:null==ae?void 0:ae.qFrequency,histogram:T,checkboxes:C,isSelected:se,frequencyMax:O}),t.createElement(k,{item:!0,style:ge,className:ys([Za.cell,Za.selectedCell]),title:"".concat(pe)},he?t.createElement(Fs,{onChange:h,labels:he,checkboxes:C,dense:Z,showGray:D,qElemNumber:ae.qElemNumber,isSelected:se,cell:ae,isGridCol:de,isSingleSelect:_,valueTextAlign:ue,styles:V}):t.createElement(Ws,{onChange:h,label:pe,qElemNumber:ae.qElemNumber,isSelected:se,dense:Z,cell:ae,isGridCol:de,showGray:D,isSingleSelect:_,checkboxes:C,valueTextAlign:ue,styles:V})),I&&t.createElement(Bs,{cell:ae,checkboxes:C,dense:Z,showGray:D}),Se&&t.createElement(k,{item:!0,className:Za.icon},ye&&t.createElement(ja,{style:fe,size:"small"}),ve&&t.createElement(es,{style:fe,size:"small"}))))}var ol=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function il(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||ol(r)&&ol(o)))return!1;var r,o;return!0}function al(e,t){var n;void 0===t&&(t=il);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var sl="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ll(e){cancelAnimationFrame(e.id)}function cl(e,t){var n=sl();var r={id:requestAnimationFrame((function o(){sl()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var ul=-1;function dl(e){if(void 0===e&&(e=!1),-1===ul||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ul=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ul}var pl=null;function hl(e){if(void 0===e&&(e=!1),null===pl||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?pl="positive-descending":(t.scrollLeft=1,pl=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),pl}return pl}var fl=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ml(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,b=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,ua(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:ua(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=al((function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=al((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,d=r._getItemStyleCache(b&&s,b&&l,b&&c),h=e+":"+t;if(d.hasOwnProperty(h))o=d[h];else{var f=n(r.props,t,r._instanceProps),m="rtl"===l;d[h]=o={position:"absolute",left:m?void 0:f,right:m?f:void 0,top:p(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=al((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(hl()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ll(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=cl(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}ca(t,e),t.getDerivedStateFromProps=function(e,t){return gl(e,t),y(e),null};var d=t.prototype;return d.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)},d.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,h=i.width,f=this.state,m=f.scrollLeft,g=f.scrollTop,b=dl();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=a(this.props,this._instanceProps),v=s(this.props,this._instanceProps)>h?b:0,S=y>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,v):g})},d.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(hl()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ll(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?fl:p,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,y=e.style,v=e.useIsScrolling,S=e.width,x=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],L=this._getVerticalRangeToRender(),k=L[0],R=L[1],I=[];if(r>0&&b)for(var _=k;_<=R;_++)for(var q=C;q<=w;q++)I.push(h(t,{columnIndex:q,data:d,isScrolling:v?x:void 0,key:f({columnIndex:q,data:d,rowIndex:_}),rowIndex:_,style:this._getItemStyle(_,q)}));var O=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:sa({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},h(c||u||"div",{children:I,ref:l,style:{height:O,pointerEvents:x?"none":void 0,width:T}}))},d._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],h=u[2],f=u[3];this._callOnItemsRendered(a,s,d,p,l,c,h,f)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,y=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,y,g,S,v)}},d._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var h=r(this.props,d,this._instanceProps),f=o(this.props,h,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,h-m),Math.max(0,Math.min(t-1,f+g)),h,f]},d._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),p=m(this.props,d,c,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var gl=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},bl=function(e,t){return e};function yl(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,ua(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:ua(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=al((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=al((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),h="horizontal"===a||"horizontal"===l,f="rtl"===a,m=h?d:0;u[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:h?0:d,height:h?"100%":p,width:h?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=al((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(hl()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ll(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=cl(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}ca(t,e),t.getDerivedStateFromProps=function(e,t){return vl(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?dl():0:l.scrollHeight>l.clientHeight?dl():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(hl()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ll(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?bl:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,y=e.useIsScrolling,v=e.width,S=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,E=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],L=C[1],k=[];if(c>0)for(var R=w;R<=L;R++)k.push(h(t,{data:u,key:p(R,u),index:R,isScrolling:y?S:void 0,style:this._getItemStyle(R)}));var I=r(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:sa({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},h(s||l||"div",{children:k,ref:a,style:{height:x?"100%":I,pointerEvents:S?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var vl=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Sl=ml({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,s=e.columnWidth,l=e.width,c=Math.max(0,a*s-l),u=Math.min(c,t*s),d=Math.max(0,t*s-l+i+s);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,s=e.height,l=e.rowCount,c=Math.max(0,l*a-s),u=Math.min(c,t*a),d=Math.max(0,t*a-s+i+a);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),xl=yl({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:s,h=Math.max(0,l*c-p),f=Math.min(h,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=f+p?"auto":"center"),n){case"start":return f;case"end":return m;case"center":var g=Math.round(m+(f-m)/2);return g<Math.ceil(p/2)?0:g>h+Math.floor(p/2)?h:g;default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const El="#BBB",Cl="#f1f1f1",wl={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const Ll=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,kl=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,Rl=(e,t,n,r)=>e===t*n+r+n;function Il(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:s,dataOffset:l}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=Ll(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,h=Rl(s,u,c?i:o,l),f=!!l&&kl(t,c),m=p&&!h&&u>=d-1||f||a.state.show;a.set(m)}const{StyledFixedSizeList:_l,StyledFixedSizeGrid:ql}=function(){const e=e=>({scrollbarColor:"".concat(El," ").concat(Cl),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Cl},"&::-webkit-scrollbar-thumb":{backgroundColor:El,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:U(xl,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(wl.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:U(Sl,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(wl.styledScrollbars)]:e(n)}}))}}();const Ol=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},Tl=e=>{const t=i((()=>"text"in e?e:{}),[e]);return i((()=>Ol(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Ml(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Dl(e){let{isGridMode:t,dense:n}=e;let r=n?gs:t?fs:ms;return t&&(r+=bs),r}function Al(e){let{layout:t,width:n,height:r,listCount:o,count:i,freqIsAllowed:a,checkboxes:s,styles:l}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:h,dataLayout:f}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==l?void 0:l.content)||{},b="".concat(m," ").concat(g),y=Tl({text:Ml(t),font:b}),v=Tl({text:Ml(5),font:b}),S=Tl({text:Ml(8),font:b}),x=a?v:0,E=s?ps:0;let C=ds+x+E;!s&&C>=ls&&(C+=ps);let w,L,k,R,I=y+18+x+E;!s&&I>=ls&&(I+=ps),I=Math.min(us,Math.max(I,C));const _=Dl({isGridMode:"grid"===f,dense:h}),q=null!=r?r:8*_;if(u){let e=n;"row"===u?(w={overflowX:"hidden"},e+=2*bs,({rowCount:R,columnWidth:k,columnCount:L}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,s=r-cs;let l;const c=Math.min(n,Math.max(1,Math.round(s/Math.max(i,o))));l=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c),l=Math.max(l,1);const u=s/l;return{rowCount:Math.ceil(n/l),columnWidth:u,columnCount:l}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:I,itemMinWidth:C}))):(w={overflowY:"hidden"},({rowCount:R,columnWidth:k,columnCount:L}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:s,itemMinWidth:l}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,s/d,l),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:_,listCount:o,listHeight:q,columnAutoWidth:I,containerWidth:e,itemMinWidth:C})))}L=("singleColumn"===f?1:L)||1,R=("singleColumn"===f?i:R)||o;const O=c.dense?838e3:577e3;R=Math.min(R,O);const T=Math.floor(3355e4/k);L=Math.min(L,T)||1;const M=R*L,D=Math.min(o,M);return{columnCount:L,columnWidth:k,rowCount:R,overflowStyling:w,itemHeight:_,listHeight:q,listWidth:n,scrollBarWidth:cs,count:i,listCount:D,maxCount:{row:O,column:T},itemPadding:bs,textWidth:y,freqMinWidth:v,freqMaxWidth:S}}const Pl=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[Nl,jl]=Ea({});function zl(e){const t="".concat(e.id),[n]=Nl();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const Fl=oa(C,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return Q({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function Wl(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=s(va);return t.createElement(R,{title:i?a.get(r):""},t.createElement(Fl,{width:n,dense:o,component:"div",variant:"body1",py:"12px"},a.get(r)))}var Hl,Bl={},$l={exports:{}};var Ul={};function Gl(e){return go("MuiSvgIcon",e)}bo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Vl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Kl=e=>{const{color:t,fontSize:n,classes:r}=e;return function(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}({root:["root","inherit"!==t&&`color${sr(t)}`,`fontSize${sr(n)}`]},Gl,r)},Zl=oa("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${sr(n.color)}`],t[`fontSize${sr(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),Jl=e.forwardRef((function(t,n){const r=ei({props:t,name:"MuiSvgIcon"});const{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=Ot(r,Vl),f=e.isValidElement(o)&&"svg"===o.type,m=qt({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:f}),g={};u||(g.viewBox=p);const b=Kl(m);return Hn.jsxs(Zl,qt({as:s,className:fo(b.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n},g,h,f&&o.props,{ownerState:m,children:[f?o.props.children:o,d?Hn.jsx("title",{children:d}):null]}))}));Jl.muiName="SvgIcon";const Xl={configure:e=>{po.configure(e)}};var Yl,Ql,ec=Object.freeze({__proto__:null,capitalize:sr,createChainedFunction:function(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))},createSvgIcon:function(t,n){function r(e,r){return Hn.jsx(Jl,qt({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=Jl.muiName,e.memo(e.forwardRef(r))},debounce:function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r},deprecatedPropType:function(e,t){return()=>null},isMuiElement:function(t,n){var r,o;return e.isValidElement(t)&&-1!==n.indexOf(null!=(r=t.type.muiName)?r:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:To,ownerWindow:function(e){return To(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:Mo,unstable_ClassNameGenerator:Xl,unstable_useEnhancedEffect:_o,unstable_useId:function(t){if(void 0!==Ao){const e=Ao();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(Do+=1,r(`mui-${Do}`))}),[n]),o}(t)},unsupportedProp:function(e,t,n,r,o){return null},useControlled:function({controlled:t,default:n,name:r,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n);return[i?t:a,e.useCallback((e=>{i||s(e)}),[])]},useEventCallback:function(t){const n=e.useRef(t);return _o((()=>{n.current=t})),e.useRef(((...e)=>(0,n.current)(...e))).current},useForkRef:function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Mo(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Wo,!0),t.addEventListener("mousedown",Ho,!0),t.addEventListener("pointerdown",Ho,!0),t.addEventListener("touchstart",Ho,!0),t.addEventListener("visibilitychange",Bo,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!$o(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(jo=!0,zo.start(100,(()=>{jo=!1})),n.current=!1,!0)},ref:t}}}),tc=V(ec);function nc(){return Yl||(Yl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=tc}(Ul)),Ul}function rc(){if(Ql)return Bl;Ql=1;var e,t=(Hl||(Hl=1,(e=$l).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),$l.exports);Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.default=void 0;var n=t(nc()),r=Wn();return Bl.default=(0,n.default)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Bl}var oc=G(rc());const ic=oa(I)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),ac=oa("div")((()=>({paddingLeft:"6px",flexGrow:1}))),sc=oa("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),lc=oa(oc)((()=>({fontSize:"14px"})));function cc(e){let{text:n,dismiss:r,dense:o,parentWidth:i=0}=e;const a="function"==typeof r,s=o?370:282,l=Math.max(i/2-s/2,0),c=Math.min(s,i)-42,u=o&&i<s;return t.createElement(ic,{left:l,style:{maxWidth:s}},t.createElement(ac,null,t.createElement(Wl,{text:n,dense:o,width:c,tooltip:u})),t.createElement(sc,{dense:o},a&&t.createElement(_,{"aria-label":"close",onClick:()=>r()},t.createElement(lc,null))))}const uc=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const dc=80;function pc(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>dc,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const hc=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},fc=(e,t)=>{const o=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[i,a]=n(),[s,l]=n(o);return r((()=>{if(!o)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=hc(r);return(await t.evaluateEx(o)).qNumber})(t,e);a(n),l(!1)})()}),[o&&t]),{frequencyMax:o?i:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:s}};const mc=["isLoadingData"],gc=100,bc=q("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function yc(e){var o,i;let{model:a,app:l,constraints:u,layout:d,selections:h,selectionState:f,direction:m,checkboxes:g,height:b,width:y,frequencyMode:v,update:S,fetchStart:x,postProcessPages:E,calculatePagesHeight:C=!1,keyboard:w={},showGray:L=!0,scrollState:k,keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:I={set:()=>{}},renderedCallback:_,onCtrlF:q,showSearch:O,isModal:T,styles:M}=e;const{translator:D}=s(va),[A,P]=n(!1),N=!(!d||!d.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:j=g,histogram:z}=null!=d?d:{},F=p(null),W=p({queue:[],validPages:!1,dataOffset:0}),H=p({pages:[]}),{frequencyMax:B,awaitingFrequencyMax:$}=fc(l,d),U=function(e){let{local:t,loaderRef:r,model:o,fetchStart:i,scrollTimeout:a,postProcessPages:s,listData:l}=e;const[c,u]=n(!1),[d,p]=n([]);let[h]=n(0);const f=(e,n)=>{const c=t.current.dataOffset;t.current.queue.push({start:e+c,stop:n+c});const d=!!r.current&&r.current._listRef&&r.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),u(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],r=o.getListObjectData("/qListObjectDef",[{qTop:n.start>h?n.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:n.start,qHeight:h,qLeft:0,qWidth:1}]).then((n=>{const r=s?s(n):n;t.current.validPages=!0,l.current.pages=r,p(r),u(!1),e()}));i&&i(r)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(h=t),f}},pages:d,isLoading:c}}({local:W,loaderRef:F,model:a,fetchStart:x,scrollTimeout:0,postProcessPages:E,listData:H}),{isLoadingData:G}=U,V=ee(U,mc),{getStoreValue:K,setStoreValue:Z}=zl(a),J=c(V.loadMoreItems,[d]),[Y,te]=n({show:!1,dismissed:!1}),[ne,re]=n([]);null!=V&&V.pages&&f.update({setPages:re,pages:V.pages,isSingleSelect:N,layout:d});const oe=null==d?void 0:d.qListObject.qDimensionInfo.qCardinal;(null!=V&&V.pages.length&&!$||0===oe)&&(null==_||_());const ie=c((e=>{if(null==ne||!ne.length||!W.current.validPages)return!1;W.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=ne.filter((e=>t(e)))[0];return n&&t(n)}),[d,ne]),{interactionEvents:ae,select:se}=Ya({selectionState:f,selections:h,checkboxes:j,doc:document,loaderRef:F}),{layoutOptions:le={}}=d||{};let ce=!0;le.dataLayout&&(ce="singleColumn"===le.dataLayout||"row"===(null==le?void 0:le.layoutOrder));const ue="grid"===(null==le?void 0:le.dataLayout),de=e=>{const t=Q({},ce?{rowIndex:e}:{columnIndex:e}),n=ue?t:e;F.current._listRef.scrollToItem(n)},pe=()=>{if(W.current.queue=[],W.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(d&&d.qSelectionInfo.qInSelections||e)return void(e&&R.reset());W.current.dataOffset=0,de(0)}};S&&S.call(null,pe),r((()=>{k&&!A&&F.current&&(F.current._listRef.scrollToItem(k.initScrollPos),P(!0))}),[F.current]),r((()=>{pe()}),[d,W.current.dataOffset]);let he=gc;const fe="grid"!==le.dataLayout,me=null==d||null===(o=d.qListObject.qSize)||void 0===o?void 0:o.qcy,ge=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?Pl({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:ne,minimumBatchSize:he,count:me,calculatePagesHeight:C});let be=pc({itemWidth:y,layout:d,frequencyMode:v});const ye=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(ne),ve=Al({layout:d,width:y,height:b,listCount:ge,count:me,freqIsAllowed:be,checkboxes:j,styles:M});ve.columnWidth&&(be=pc({itemWidth:ve.columnWidth,layout:d,frequencyMode:v}));const{listCount:Se}=ve;Z("listCount",Se);const xe=K("inputText"),Ee=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=s(va),i=[];if(null!=n&&n.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(r),t=o.get(e,[r]);i.push(t)}const a=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},i=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let a;switch(i){case 0:a="ScreenReader.ZeroSelected";break;case 1:a="ScreenReader.OneSelected";break;default:a="ScreenReader.ManySelected"}return r.get(a,[i])}({layout:t,translatorDynamic:o});i.push(a);const l=i.filter((e=>!(null==e||!e.length))).join(". ");return l}({layout:d,searchInputText:xe,listCount:Se}),Ce=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,s=!1,l=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":l=0,t=0,s=!0;break;case"overflowEnd":l=uc(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ce,sizes:ve,layout:d,offset:W.current.dataOffset});W.current.dataOffset=n,r&&f.triggerStateChanged(),de(t)};r((()=>{const e=R.state;e.up?de(I.state.start-e.up):e.down?de(I.state.stop+e.down):e.scrollPosition&&Ce(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:we}=(null==d?void 0:d.qListObject.qDimensionInfo)||{},[Le,ke]=n({first:!1,last:!1}),{List:Re,Grid:Ie}=function(e){let{layout:n,width:r,checkboxes:o,local:i,isVertical:a,pages:s,selectionState:l,interactionEvents:c,deducedFrequencyMode:u,histogram:d,isSingleSelect:p,select:h,selectAll:f,onCtrlF:m,textAlign:g,selections:b,keyboard:y,showGray:v,scrollState:S,direction:x,sizes:E,listCount:C,overflowDisclaimer:w,setScrollPosition:L,focusListItems:k,setCurrentScrollIndex:R,constraints:I,frequencyMax:_,freqIsAllowed:q,translator:O,showSearch:T,isModal:M,styles:D}=e;const{layoutOptions:A={}}=n||{},{columnWidth:P,listHeight:N,itemHeight:j,rowCount:z,columnCount:F}=E||{},W=("grid"===A.dataLayout?P:r)>ls,H={direction:"rtl"===x?"rtl":"ltr",useIsScrolling:!0,className:wl.styledScrollbars},B=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,$=N<=j,U=Q(Q({isLocked:B,column:!a,pages:s},B||l.selectDisabled()?{}:c),{},{checkboxes:o,layoutOptions:A,deducedFrequencyMode:u,freqIsAllowed:q,isSingleSelect:p,textAlign:g,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:L,selectAll:f,onCtrlF:m},frequencyMax:_,histogram:d,keyboard:y,showGray:v,showTick:W,dataOffset:i.current.dataOffset,focusListItems:k,direction:x,translator:O,showSearch:T,isModal:M,styles:D,fillHeight:$});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(_l,X({},H,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:N,width:r,itemCount:C,itemData:Q(Q({},U),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var t;R({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),Il({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:F,rowCount:z,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qCardinal,dataOffset:i.current.dataOffset}),o(Q({},e))},ref:a}),rl)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=E,{layoutOrder:c}=A||{},u=Math.min(N,z*j+l);return i.current.listRef=a,t.createElement(ql,X({},H,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:u,width:r,columnCount:F,columnWidth:P,rowCount:z,rowHeight:j,style:Q({},s),itemData:Q(Q({},U),{},{column:void 0,columnCount:F,rowCount:z}),onItemsRendered:e=>{var t;const r="row"===c;R({start:r?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:r?e.visibleRowStopIndex:e.visibleColumnStopIndex});const a=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:s,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,h,f;return n&&n.setScrollPos(u),"column"===r?(d=l*o,p=a,h=c*o,f=s):(d=l,p=a*i,h=c,f=s*i),{visibleStartIndex:d+p,visibleStopIndex:h+f}}({renderProps:e,scrollState:S,layoutOrder:c,rowCount:z,columnCount:F});Il({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:F,rowCount:z,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qCardinal,dataOffset:i.current.dataOffset}),o(a)},ref:a}),rl)}}}({direction:m,layout:d,width:y,checkboxes:j,deducedFrequencyMode:ye,histogram:z,keyboard:w,showGray:L,interactionEvents:ae,select:se,selectAll:()=>{f.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:q,textAlign:we,isVertical:fe,pages:ne,selectionState:f,isSingleSelect:N,selections:h,scrollState:k,local:W,sizes:ve,listCount:Se,overflowDisclaimer:{state:Y,set:e=>te((t=>Q(Q({},t),{},{show:e})))},setScrollPosition:Ce,focusListItems:{first:Le.first,setFirst:e=>ke((t=>Q(Q({},t),{},{first:e}))),last:Le.last,setLast:e=>ke((t=>Q(Q({},t),{},{last:e})))},setCurrentScrollIndex:I.set,constraints:u,frequencyMax:B,freqIsAllowed:be,translator:D,showSearch:O,isModal:T,styles:M}),{columnWidth:_e,listHeight:qe,itemHeight:Oe}=ve||{};return fe||(he=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:y,columnWidth:_e,listHeight:qe,itemHeight:Oe})),t.createElement(bc,null,t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},Ee),!Se&&oe>0&&t.createElement(Wl,{width:y,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Ba,{isItemLoaded:ie,itemCount:Se||1,loadMoreItems:J.with({minimumBatchSize:he}),threshold:0,minimumBatchSize:he,ref:F,role:"grid"},fe?Re:Ie),Y.show&&!Y.dismissed&&t.createElement(cc,{text:"Listbox.ItemsOverflow",dismiss:()=>te((e=>Q(Q({},e),{},{dismissed:!0}))),parentWidth:null==F||null===(i=F.current)||void 0===i||null===(i=i._listRef)||void 0===i||null===(i=i.props)||void 0===i?void 0:i.width,dense:null==le?void 0:le.dense}))}const vc=e=>Q(Q({},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"}}]}),Sc=e=>Q(Q({},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"}}]}),xc=e=>Q(Q({},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"}}]}),Ec=e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var Cc=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1,selections:a}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const s="/qListObjectDef",l=()=>{a.isActive()||a.begin(s)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:vc,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectAll(s)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:xc,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectPossible(s)}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:Sc,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectAlternative(s)}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Ec,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectExcluded(s)}}].filter(Boolean)};const wc=e=>Q(Q({},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 Lc(e){const t=$i(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const kc={className:"njs-cell-action"},Rc=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=$i(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=Lc(o);if(s)return null;const d=Number.parseInt(a.spacing(.5),10),p=o.keyboardAction||o.action,h=p?e=>["Enter"].includes(e.key)&&p():null,f=p?e=>[" ","Spacebar"].includes(e.key)&&p():null,m="actions-toolbar-".concat(o.key);return t.createElement(_,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:h,onKeyUp:f,disabled:l,style:c,className:[kc.className,m].join(" "),size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList","data-testid":m},u&&Pa(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Ic=e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var _c=e=>Pa(Ic(e));const qc=e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var Oc=e=>Pa(qc(e));const Tc="njs-action-toolbar-more",Mc={icon:"".concat("More","-icon")},Dc=oa(O)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Mc.icon," *")]:{color:t.palette.text.primary}}}));function Ac(e){let{item:n,autoFocus:r,onActionClick:o=(()=>{})}=e;const{hidden:i,disabled:a,hasSvgIconShape:s}=Lc(n);return i?null:t.createElement(M,{autoFocus:r,title:n.label,onClick:()=>{n.action(),o()},disabled:a,tabindex:"0"},s&&t.createElement(D,{className:Mc.icon},Pa(n.getSvgIconShape())),t.createElement(C,{noWrap:!0},n.label))}const Pc=t.forwardRef(((e,n)=>{let{actions:r=[],show:o=!0,alignTo:i,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:l=(()=>{}),disablePortal:c=!0}=e;const u=r.length>0,d=r.findIndex((e=>!e.disabled));return u&&t.createElement(Dc,X({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:c?null:void 0,container:c?i.current:void 0,disablePortal:c,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:Tc},paper:{style:Q({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),t.createElement(T,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(Ac,{key:n,item:e,autoFocus:n===d,onActionClick:l})))))})),Nc=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},jc=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const zc="ActionsToolbar",Fc={item:"".concat(zc,"-item"),itemSpacing:"".concat(zc,"-itemSpacing")},Wc=oa(O)((e=>{let{theme:t}=e;return{["& .".concat(Fc.itemSpacing)]:{padding:t.spacing(0,.25)}}})),Hc={className:"njs-action-toolbar-popover"},Bc=t.forwardRef(((e,n)=>{let{className:r,ariaExpanded:o=!1,actions:i=[],addAnchor:a=!1,isRtl:s=!1}=e;return i.length>0?t.createElement(k,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:r},i.map(((e,r)=>t.createElement(k,{item:!0,key:e.key,className:"".concat(Fc.itemSpacing," ").concat(Fc.item)},t.createElement(Rc,{ariaExpanded:o,key:e.key,item:e,ref:0===r?n:null,addAnchor:a}))))):null})),$c={pointerEvents:"none"},Uc={vertical:"bottom",horizontal:"right"};function Gc(e){var o,a;let{show:l=!0,actions:c=[],maxItems:u=3,selections:d={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:h,more:f={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:m={show:!1,anchorEl:null},focusHandler:g=null,actionsRefMock:b=null,isRtl:y,autoConfirm:v=!1,layout:S}=e;const x=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=s(va);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:qc},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:Ic},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:Qa}]}(Q(Q({},d),{},{layout:S})),{translator:E,keyboardNavigation:C}=s(va),[w,L]=n(!1),R={vertical:12,horizontal:(null!==(o=null===(a=m.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},I=p(),_=p(),q=$i(),O=i((()=>({margin:q.spacing(.5,0)}))),T=e=>{const t=I.current||b;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},M=i((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:i}=e;return e=>{const{target:a,nativeEvent:s}=e,{keyCode:l}=s;switch(l){case Gs.ARROW_LEFT:case Gs.ARROW_DOWN:case Gs.ARROW_RIGHT:case Gs.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=Nc(a);let t=[Gs.ARROW_LEFT,Gs.ARROW_DOWN].includes(l);t=i?!t:t,jc(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case Gs.SPACE:e.preventDefault();break;case Gs.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case Gs.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:C,focusHandler:g,getEnabledButton:T,selections:d,isRtl:y})),[C,g,T,d,y]);if(r((()=>()=>{L(!1)}),[m.show,l,d.show]),r((()=>{if(!g)return;g.on("focus_toolbar_first",(()=>{const e=T(!1);null==e||e.focus()})),g.on("focus_toolbar_last",(()=>{const e=T(!0);null==e||e.focus()}))}),[]),v)return;let D=f.enabled,P=f.actions;const N=f.alignTo||_,j=c.filter((e=>!e.hidden));if(j.length>u){const e=j.splice(-(j.length-u)-1);D=!0,P=[...e,...f.actions]}if(!d.show&&0===j.length&&!D)return null;const z={key:"more",label:E.get("Menu.More"),getSvgIconShape:wc,hidden:!1,active:w,enabled:()=>D,action:()=>L(!w)},F=j.length>0,W=P.length>0,H=F&&d.show||W&&d.show,B=t.createElement(k,{ref:I,onKeyDown:M,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:y?"row-reverse":"row"}},(null==h?void 0:h.length)&&t.createElement(Bc,{className:"actions-toolbar-extra-actions",actions:h,isRtl:y}),F&&t.createElement(Bc,{actions:j}),W&&t.createElement(Bc,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:_,ariaExpanded:w,actions:[z],addAnchor:!0}),H&&t.createElement(k,{item:!0,className:Fc.itemSpacing,style:O},t.createElement(A,{orientation:"vertical"})),d.show&&t.createElement(Bc,{className:"actions-toolbar-default-actions",actions:x,isRtl:y}),w&&t.createElement(Pc,{show:w,actions:P,alignTo:N,popoverProps:f.popoverProps,popoverPaperStyle:f.popoverPaperStyle,onCloseOrActionClick:()=>{L(!1)},disablePortal:f.disablePortal}));return m.show?t.createElement(Wc,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:m.show,anchorEl:m.anchorEl,anchorOrigin:R,transformOrigin:Uc,hideBackdrop:!0,style:$c,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Hc.className,style:{pointerEvents:"auto",padding:q.spacing(.5,.25)}}}},B):l&&B}var Vc=e=>Pa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const Kc="/qListObjectDef",Zc=e=>null==e?void 0:e.substring(0,64e3),Jc=oa(P,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),Q({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":Q({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),Xc=oa(_)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));var Yc=o((function(e,o){let{popoverOpen:i,selections:l,selectionState:c,model:u,keyboard:d,dense:h=!1,visible:f=!0,autoFocus:m=!0,beginSelectionOnFocus:g=!0,wildCardSearch:b=!1,searchEnabled:y,direction:v,hide:S,styles:x}=e;const{translator:E}=s(va),[C,w]=n(""),[L,k]=n(!1),R=p(),I=p(),_=E.get("Listbox.Clear.Search"),{getStoreValue:q,setStoreValue:O}=zl(u),T="rtl"===v,M=async()=>{try{await u.abortListObjectSearch(Kc)}finally{w("")}};r((()=>f?()=>M():()=>{}),[f]),r((()=>(l.on("deactivated",M),()=>{l.removeListener&&l.removeListener("deactivated",M)})),[]),r((()=>{if(L&&R.current){const e=C.length-1;R.current.setSelectionRange(e,e),k(!1)}}),[L,R.current]),r((()=>{O("inputText",C)}),[C]);const D=async()=>{let e;const t=Zc(C),n=await u.searchListObjectFor(Kc,t);return c.selectDisabled()?n:(n&&t.length&&q("listCount")>0&&(e=u.acceptListObjectSearch(Kc,!0),l.selectionsMade=!0,c.clearItemStates(!1),w("")),e)},A=()=>{var e;null===(e=R.current)||void 0===e||e.focus()},P=()=>{M(),A()};return a(o,(()=>({focus(){A()}}))),f&&!1!==y?t.createElement(Jc,{styles:x,dense:h,isRtl:T,startAdornment:t.createElement(N,{position:"start",sx:{marginLeft:h?"8px":"".concat(os,"px")}},t.createElement(Vc,{size:h?"small":"normal"})),endAdornment:t.createElement(N,{position:"end",sx:{marginLeft:0}},""!==C&&t.createElement(Xc,{tabIndex:0,ref:I,title:_,"aria-label":_,onClick:P,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":P();break;case"Tab":e.shiftKey?A():Ys(t);break;default:return}e.preventDefault(),e.stopPropagation()}},t.createElement(_c,{size:h?"small":"normal"}))),className:"search",inputRef:R,size:"small",fullWidth:!0,placeholder:E.get("Listbox.Search"),value:C,onFocus:()=>{b&&(w("**"),k(!0)),g&&!c.selectDisabled()&&!l.isModal()&&l.begin("/qListObjectDef")},onChange:async e=>{const t=Zc(e.target.value);return w(t),t.length?u.searchListObjectFor(Kc,t):M()},onKeyDown:async e=>{const{currentTarget:t}=e,n=t.closest(".listbox-container");switch(e.key){case"Enter":D();break;case"Escape":if(Ys(n),l.cancel(),i)return;break;case"Tab":e.shiftKey?Qs(n)||d.focusSelection():I.current?I.current.focus():Ys(n);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;S&&(S(),Ys(n));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:m,inputProps:{tabIndex:d.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":E.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function Qc(e){if(!e.session)return[];const{selectionStore:t}=s(va),[n]=t.useAppSelectionsStore(),o=e?e.id:null;let i=n.get(o);return r((()=>{e&&!i&&(i=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:i}=n,a=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},s={begin:async e=>{var n;let{model:i,paths:s,accept:l=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;a(l),o.set(r,{model:i,objectSelections:c});const u=Array.isArray(s)?s:[s],d=async e=>{try{await i.beginSelections(u),o.set(r,{model:i,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(l),d(!0))}};await d()},end:a};i.set(r,s);const l={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>s.end().then((()=>t.forward())),back:()=>s.end().then((()=>t.back())),clear:()=>s.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return s.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return l}({app:e,selectionStore:t}),n.set(o,i),n.dispatch(!0))}),[e]),[i]}function eu(e){return Object.keys(se.prototype).forEach((t=>{e[t]=se.prototype[t]})),se.init(e),e}const tu=e=>{let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const s={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin({model:o,paths:e,accept:!0,objectSelections:s}))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>i,isModal:()=>n.isModal(s),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:s}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return eu(s),s},nu=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function ru(e,t,o,i){const a=Array.isArray(o)?o:[o],[l]=Qc(e),[c]=Ta(t),{appModalStore:u}=s(va).selectionStore,d=u.get(e.id),[p,h]=n();return r((()=>{l&&t&&!p&&h(tu({appSelections:l,appModal:d,model:t}))}),[l,t]),r((()=>{if(!p)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=nu({elements:a,objectSelections:p,options:i});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{p.isActive()&&p.confirm(),p.removeListener("activated",e),p.removeListener("deactivated",t)}}),[p]),r((()=>{p&&p.setLayout(c)}),[p,c]),[p]}function ou(){const e=Q(Q({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:i,isSingleSelect:a,selectDisabled:s,layout:l}=t;this.setPages=o;const c=this.lastRowCount===l.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===l.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=l.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=l.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=Ga(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=a,e.selectDisabled=s||e.selectDisabled,e.isDimCalculated=null!==(n=null==l||null===(r=l.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[Q(Q({},n),{},{qState:r}),...t.slice(1)]}));return Q(Q({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}});return e}const iu=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function au(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return iu(t,"qSelected",0)+iu(t,"qSelectedExcluded",0)+iu(t,"qLocked",0)+iu(t,"qLockedExcluded",0)>0}function su(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function lu(e){if("object"==typeof e&&su(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const cu={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function uu(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(su(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in cu}(e)){const t=cu[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function du(e){let t,n,r;if(su(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?lu(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function pu(e){let t,n,r=0;const o="string"==typeof e?uu(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function hu(e){let t,n,r=0;const o="string"==typeof e?uu(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function fu(e){if(su(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?lu(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function mu(e,t){return su(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:mu(uu(e))}function gu(e){return su(e)?1===e.a?fu(e):mu(e):gu(uu(e))}const bu=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function yu(e){return.2126*bu(e.r)+.7152*bu(e.g)+.0722*bu(e.b)}function vu(...e){const t=uu(...e);return t.invalid||yu(t)<.4}function Su(...e){const t=uu(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=pu(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=uu(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>vu(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=fu(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=mu(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=gu(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=du(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?uu(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=pu(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=hu(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=hu(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Su(o(18*e)),getDarkenedColor:(e=1)=>Su(o(18*-e))}}function xu(e,t){if(!e||!t)return;const n=yu(e),r=yu(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Eu(e,t){const n=Su("#FFFFFF"),r=Su(e),o=Su(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=xu(n,r),a=xu(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}var Cu,wu;var Lu=function(){if(wu)return Cu;wu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Cu=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Cu}();function ku(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ru(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Iu(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Lu);var _u=1/.7,qu="\\s*([+-]?\\d+)\\s*",Ou="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mu=/^#([0-9a-f]{3,8})$/,Du=new RegExp(`^rgb\\(${qu},${qu},${qu}\\)$`),Au=new RegExp(`^rgb\\(${Tu},${Tu},${Tu}\\)$`),Pu=new RegExp(`^rgba\\(${qu},${qu},${qu},${Ou}\\)$`),Nu=new RegExp(`^rgba\\(${Tu},${Tu},${Tu},${Ou}\\)$`),ju=new RegExp(`^hsl\\(${Ou},${Tu},${Tu}\\)$`),zu=new RegExp(`^hsla\\(${Ou},${Tu},${Tu},${Ou}\\)$`),Fu={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 Wu(){return this.rgb().formatHex()}function Hu(){return this.rgb().formatRgb()}function Bu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Mu.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$u(t):3===n?new Ku(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Uu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Uu(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=Du.exec(e))?new Ku(t[1],t[2],t[3],1):(t=Au.exec(e))?new Ku(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pu.exec(e))?Uu(t[1],t[2],t[3],t[4]):(t=Nu.exec(e))?Uu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ju.exec(e))?ed(t[1],t[2]/100,t[3]/100,1):(t=zu.exec(e))?ed(t[1],t[2]/100,t[3]/100,t[4]):Fu.hasOwnProperty(e)?$u(Fu[e]):"transparent"===e?new Ku(NaN,NaN,NaN,0):null}function $u(e){return new Ku(e>>16&255,e>>8&255,255&e,1)}function Uu(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ku(e,t,n,r)}function Gu(e){return e instanceof Iu||(e=Bu(e)),e?new Ku((e=e.rgb()).r,e.g,e.b,e.opacity):new Ku}function Vu(e,t,n,r){return 1===arguments.length?Gu(e):new Ku(e,t,n,null==r?1:r)}function Ku(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Zu(){return`#${Qu(this.r)}${Qu(this.g)}${Qu(this.b)}`}function Ju(){const e=Xu(this.opacity);return`${1===e?"rgb(":"rgba("}${Yu(this.r)}, ${Yu(this.g)}, ${Yu(this.b)}${1===e?")":`, ${e})`}`}function Xu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qu(e){return((e=Yu(e))<16?"0":"")+e.toString(16)}function ed(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new nd(e,t,n,r)}function td(e){if(e instanceof nd)return new nd(e.h,e.s,e.l,e.opacity);if(e instanceof Iu||(e=Bu(e)),!e)return new nd;if(e instanceof nd)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new nd(a,s,l,e.opacity)}function nd(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function rd(e){return(e=(e||0)%360)<0?e+360:e}function od(e){return Math.max(0,Math.min(1,e||0))}function id(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ku(Iu,Bu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wu,formatHex:Wu,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return td(this).formatHsl()},formatRgb:Hu,toString:Hu}),ku(Ku,Vu,Ru(Iu,{brighter(e){return e=null==e?_u:Math.pow(_u,e),new Ku(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ku(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ku(Yu(this.r),Yu(this.g),Yu(this.b),Xu(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:Zu,formatHex:Zu,formatHex8:function(){return`#${Qu(this.r)}${Qu(this.g)}${Qu(this.b)}${Qu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ju,toString:Ju})),ku(nd,(function(e,t,n,r){return 1===arguments.length?td(e):new nd(e,t,n,null==r?1:r)}),Ru(Iu,{brighter(e){return e=null==e?_u:Math.pow(_u,e),new nd(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new nd(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ku(id(e>=240?e-240:e+120,o,r),id(e,o,r),id(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new nd(rd(this.h),od(this.s),od(this.l),Xu(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=Xu(this.opacity);return`${1===e?"hsl(":"hsla("}${rd(this.h)}, ${100*od(this.s)}%, ${100*od(this.l)}%${1===e?")":`, ${e})`}`}}));const ad=Math.PI/180,sd=180/Math.PI,ld=4/29,cd=6/29,ud=3*cd*cd;function dd(e){if(e instanceof pd)return new pd(e.l,e.a,e.b,e.opacity);if(e instanceof bd)return yd(e);e instanceof Ku||(e=Gu(e));var t,n,r=gd(e.r),o=gd(e.g),i=gd(e.b),a=hd((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=hd((.4360747*r+.3850649*o+.1430804*i)/.96422),n=hd((.0139322*r+.0971045*o+.7141733*i)/.82521)),new pd(116*a-16,500*(t-a),200*(a-n),e.opacity)}function pd(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hd(e){return e>.008856451679035631?Math.pow(e,1/3):e/ud+ld}function fd(e){return e>cd?e*e*e:ud*(e-ld)}function md(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function gd(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function bd(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function yd(e){if(isNaN(e.h))return new pd(e.l,0,0,e.opacity);var t=e.h*ad;return new pd(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ku(pd,(function(e,t,n,r){return 1===arguments.length?dd(e):new pd(e,t,n,null==r?1:r)}),Ru(Iu,{brighter(e){return new pd(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new pd(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ku(md(3.1338561*(t=.96422*fd(t))-1.6168667*(e=1*fd(e))-.4906146*(n=.82521*fd(n))),md(-.9787684*t+1.9161415*e+.033454*n),md(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ku(bd,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof bd)return new bd(e.h,e.c,e.l,e.opacity);if(e instanceof pd||(e=dd(e)),0===e.a&&0===e.b)return new bd(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*sd;return new bd(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new bd(e,t,n,null==r?1:r)}),Ru(Iu,{brighter(e){return new bd(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new bd(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return yd(this).rgb()}}));var vd=e=>()=>e;function Sd(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):vd(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Sd:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):vd(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Vu(e)).r,(t=Vu(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Sd(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var xd,Ed="center",Cd="bottom";function wd(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ld(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Rd)):void 0===t&&(t=kd);for(var n,r,o,i,a,s=new qd(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new qd(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_d)}function kd(e){return e.children}function Rd(e){return Array.isArray(e)?e[1]:null}function Id(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function _d(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function qd(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Ed,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ed,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ed,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ed},{key:"DataRangeIncludingZero",alignment:Cd},{key:"LimitedData",alignment:Cd},{key:"NegativeOrZeroValues",alignment:Cd}].reduce((function(e,t){return e[t.key]=t,e}),{}),qd.prototype=Ld.prototype={constructor:qd,count:function(){return this.eachAfter(wd)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ld(this).eachBefore(Id)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},xd=function(e){
|
|
15
15
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
16
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),S=g>0?e.substring(v,p):"";if(n=(t="-"===(e=e.substring(h,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,v=0;v<p;v++)m+=d.charAt(v),!((v-b+1)%l)&&v<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+S}},wd({exports:{}});const Md=/,(?![^(]*\))/,Dd=/\s(?![^(]*\))/,Pd=/^[0-9]+[a-zA-Z%]+?$/,Ad=["none","inset","initial","inherit"],Nd=e=>{if(!e)return;const t=e.split(Dd).filter((e=>!Ad.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||Pd.test(e))(t)||Ad.includes(t.toLowerCase())?void 0:t;return n},jd=e=>e?e.split(Md).map((e=>e.trim())):[];function zd(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function Fd(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:zd(t,n,r,o)}const Wd={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Bd={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function Hd(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function $d(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=Hd(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=Bd[e.bgImage.position]),n}(e),i=function(e){var t;let n=Wd.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=Wd[r]),n}(e);return r?{url:r,pos:o,size:i}:void 0}}function Ud(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):Fd(null==r?void 0:r.color,"","backgroundColor",t,n)}function Gd(e,t,n){var r,o;const i=zd("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&Ad.includes(e.toLowerCase()))return e.toLowerCase();const r=jd(e);if(1!==r.length)return e;let o=n;if(!o){const n=jd(t);if(1!==n.length)return e;o=Nd(n[0])}if(!o)return e;const i=Nd(r[0]);return i?e.replace(i,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||i,i,Fd(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function Vd(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:i.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color):n.getStyle("object.".concat(r),"title.".concat(t),"color"),backgroundColor:i.backgroundColor||n.getStyle("object.".concat(r),"title.".concat(t),"backgroundColor"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const Kd={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},Zd=["theme","selections"];function Jd(e){var t,n,r,o,i,a,s,l;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:h=!1}=e;const f=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;Zd.includes(n)&&(e[n]=t)})),e}(p),m=(e,t)=>u.getStyle("object.listBox",e,t),g=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e):void 0,b=function(e){var t,n,r,o,i;let{getColorPickerColor:a,theme:s,getListboxStyle:l,overrides:c,checkboxes:u}=e;const d=null===(t=c.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,p=a(d)||l("content","color")||(null===(n=s.palette)||void 0===n?void 0:n.text.primary),h=!u&&(null===(r=null===(o=c.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),f=(null===(i=c.selections)||void 0===i?void 0:i.colors)||{},m=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),i=a(f[e])||l("","dataColors.".concat(e))||"possible"===e&&l("","backgroundColor")||(null===(t=s.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||Kd[e];return{[e]:i,[o]:h?ku(i,p):p||(null===(n=s.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return Q(Q(Q(Q(Q({},m("selected")),m("alternative")),m("excluded")),m("selectedExcluded")),m("possible"))}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:f,checkboxes:h}),y=f.theme||{},v=g(null===(t=y.header)||void 0===t?void 0:t.fontColor)||m("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?Ud({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color),t):t}({themeApi:u,themeOverrides:y}),x=null!==(n=y.background)&&void 0!==n&&n.image?$d({bgImage:y.background.image},c):void 0,E=S||m("","backgroundColor")||d.palette.background.default,w=function(e,t){const n=Cu(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(E,m),C=function(e){return ku("#fff",e("content","color"))}(m),L=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},k=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},R=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==x||!x.url||null!=x&&x.url.startsWith("url(")?void 0:"url('".concat(x.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==x?void 0:x.size,backgroundPosition:null==x?void 0:x.pos},header:{color:v,fontSize:(null===(i=y.header)||void 0===i?void 0:i.fontSize)||m("title.main","fontSize"),fontFamily:(null===(a=y.header)||void 0===a?void 0:a.fontFamily)||m("title.main","fontFamily"),fontWeight:R(L.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:L.underline?"underline":"initial",fontStyle:R(L.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:h?void 0:b.possible,color:b.possibleContrast||m("content","color"),fontSize:(null===(s=y.content)||void 0===s?void 0:s.fontSize)||m("content","fontSize"),fontFamily:(null===(l=y.content)||void 0===l?void 0:l.fontFamily)||m("content","fontFamily"),fontWeight:R(k.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:k.underline?"underline":"initial",fontStyle:R(k.italic,"italic","normal")||m("content","fontStyle")||"initial"},search:{color:C,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:w,backdropFilter:"blur(8px)"},selections:b}}function Xd(e){let{alignTo:o,anchorOrigin:i={vertical:"bottom",horizontal:"center"},transformOrigin:a={vertical:"top",horizontal:"center"},show:l,close:u,app:d,fieldName:h,stateName:f="$",autoFocus:m,components:g,checkboxes:b,selectDisabled:y=(()=>!1),sortCriteria:v=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:S="ltr"}=e;const x=Boolean(null==h?void 0:h.qLibraryId),E=l&&Boolean(o.current),[w,C]=n(0),L=$i(),R=p(),[I]=ka({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:f,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:v,qFieldDefs:x?void 0:[h]},qLibraryId:x?h.qLibraryId:void 0}},d,h,f),O=c((()=>{I.lock("/qListObjectDef")}),[I]),T=c((()=>{I.unlock("/qListObjectDef")}),[I]),{translator:M,themeApi:D,keyboardNavigation:P}=s(va),A=p(),N=p(),[j]=ru(d,I,N),[z]=Ta(I),[F]=n((()=>ou({selectDisabled:y}))),W=Zs({containerRef:N,enabled:P}),{checkboxes:B=b}=z||{},H=Jd({themeApi:D,theme:L,components:g,checkboxes:B});if(r((()=>{j&&E&&(j.isModal(I)||j.goModal("/qListObjectDef"))}),[j,E]),!I||!z||!M)return null;const $=!0===z.qListObject.qDimensionInfo.qLocked,U=(e,t)=>{const n="escapeKeyDown"!==t;j.noModal(n),u()},G=wc({layout:z,model:I,translator:M,selectionState:F,selections:j}),V=au(z);return t.createElement(q,{className:"listbox-container",open:E,onClose:U,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?U():void 0,direction:S},t.createElement(k,{container:!0,direction:"column",gap:0,ref:N},t.createElement(k,{item:!0,container:!0,style:{direction:S,padding:L.spacing(1)}},t.createElement(k,{item:!0},$?t.createElement(_,{onClick:T,disabled:!$,size:"large"},t.createElement(ja,{title:M.get("Listbox.Unlock")})):t.createElement(_,{onClick:O,disabled:!V,size:"large"},t.createElement(Fa,{title:M.get("Listbox.Lock")}))),t.createElement(k,{item:!0,xs:!0}),t.createElement(k,{item:!0},t.createElement(Gc,{layout:z,more:{enabled:!$,actions:G,alignTo:A,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:j,onConfirm:U,onCancel:()=>U(0,"escapeKeyDown")}}))),t.createElement(k,{item:!0,xs:!0},t.createElement("div",{ref:A}),t.createElement(k,{item:!0},t.createElement(Yc,{ref:R,popoverOpen:E,styles:H,visible:!0,model:I,listCount:w,selections:j,selectionState:F,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:W.focusSelection},autoFocus:null==m||m,direction:S})),t.createElement(yc,{model:I,app:d,layout:z,selections:j,selectionState:F,direction:S,onSetListCount:e=>C(e),onCtrlF:()=>{R.current.focus()},styles:H,keyboard:W}))))}function Yd(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:l=null,onClose:c=(()=>{})}=e;const{translator:u}=s(va),d=l||p(),h=$i(),[f,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!f)},b=()=>{m(!1),c()},y=r.selections[i];void 0===y.qTotal&&(y.qTotal=0);const v=y.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},S=(v.qSelected+v.qLocked)/y.qTotal,x=v.qAlternative/y.qTotal,E=(v.qExcluded+v.qLockedExcluded+v.qSelectedExcluded)/y.qTotal,C=v.qSelected+v.qSelectedExcluded+v.qLocked+v.qLockedExcluded,L=0===C&&0===y.qTotal;let R="";y.qTotal===C&&y.qTotal>1?R=u.get("CurrentSelections.All"):C>1&&y.qTotal?R=u.get("CurrentSelections.Of",[C,y.qTotal]):y.qSelectedFieldSelectionInfo&&(R=y.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(R="".concat(r.states[i],": ").concat(R));const I=[{color:h.palette.selected.main,ratio:S},{color:h.palette.selected.alternative,ratio:x},{color:h.palette.selected.excluded,ratio:E}];I.forEach(((e,t)=>{e.offset=t?I[t-1].offset+I[t-1].ratio:0}));let O=null,q=null,T=null,M=null;return l||(O=t.createElement(k,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:y.qLocked?"0.3":""}},t.createElement(w,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.label),t.createElement(w,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},R)),y.qLocked?q=t.createElement(k,{item:!0},t.createElement(_,{size:"large"},t.createElement(ja,null))):y.qOneAndOnlyOne||(q=t.createElement(k,{item:!0},t.createElement(_,{title:u.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(y.qField,r.states[i])},size:"large"},t.createElement(Na,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===L&&I.map((e=>t.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),M=t.createElement(k,{container:!0,gap:1,ref:d,sx:{backgroundColor:h.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:h.palette.action.hover}},onClick:!1===a&&g||null},O,q,T,f&&t.createElement(Xd,{alignTo:d,show:f,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}))),l?t.createElement(Xd,{alignTo:d,show:!0,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}):M}var Qd=e=>Aa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const ep={item:"".concat("MultiState","-item")},tp=oa(k)((e=>{let{theme:t}=e;return{["&.".concat(ep.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function np(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[l,c]=n(!!i),[u,d]=n(-1),[h,f]=n(i?i.current:null),m=i||p(),{translator:g}=s(va),b=g.get("Selection.ClearAllStates"),y=()=>{d(-1),a()};let v=null;i||(v=t.createElement(t.Fragment,null,t.createElement(k,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(j,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(w,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.label))),t.createElement(k,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(k,{item:!0},t.createElement(_,{size:"large"},t.createElement(Qd,null)))));const S=t.createElement(z,{dense:!0},t.createElement(F,{title:b,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(W,{variant:"contained",fullWidth:!0},b)),r.states.map(((e,n)=>t.createElement(F,{key:n,title:r.label,onClick:e=>((e,t)=>{e.stopPropagation(),c(!1),d(t)})(e,n)},t.createElement(L,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(Yd,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),x=t.createElement(q,{open:l,onClose:()=>{c(!1),a()},anchorEl:h,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},S),E=i?x:t.createElement(tp,{container:!0,gap:0,className:ep.item,onClick:e=>{e.currentTarget.contains(e.target)&&(f(e.currentTarget),m.current=e.currentTarget,c(!l))}},v,l&&x,u>-1&&t.createElement(Xd,{alignTo:m,show:u>-1,close:y,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}));return i&&u>-1?t.createElement(Xd,{alignTo:m,show:u>-1,close:y,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}):E}const rp="More",op={item:"".concat(rp,"-item"),badge:"".concat(rp,"-badge")},ip=oa(k)((e=>{let{theme:t}=e;return{["&.".concat(op.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(op.badge)]:{padding:t.spacing(0,1)}}}));function ap(e){let{items:r=[],api:o}=e;const i=$i(),[a,s]=n(!1),[l,c]=n(-1),[u,d]=n(null),h=p(),f=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(np,{field:r[l],api:o,moreAlignTo:h,onClose:f}):t.createElement(Yd,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:h,onClose:f})),t.createElement(ip,{container:!0,gap:0,className:op.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,s(!a))}},t.createElement(k,{item:!0},t.createElement(L,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(w,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(k,{item:!0},t.createElement(_,{size:"large"},t.createElement(Qd,null))),a&&t.createElement(q,{open:a,onClose:()=>{s(!1)},anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},t.createElement(z,{dense:!0},r.map(((e,n)=>t.createElement(F,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(L,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(np,{field:e,api:o}):t.createElement(Yd,{field:e,api:o}))))))),m)}const sp=120,lp=72;function cp(e){let{api:o,app:i}=e;const a=$i(),[l]=Ia(i),[c]=Ta(l),[u,d]=n({items:[],more:[]}),{modalObjectStore:p}=s(va).selectionStore,[h,f]=Da(),[m,g]=n(0);return r((()=>{if(!f)return;const{width:e}=f,t=Math.floor(e)-lp,n=Math.floor(t/sp);g(n)}),[f]),r((()=>{if(!(i&&l&&c&&m))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach((e=>{const r=e.qField;let o=t[r];var i;void 0===o&&(o={name:r,label:(null===(i=e.qDimensionReferences)||void 0===i||null===(i=i.find((e=>e.qLabel)))||void 0===i?void 0:i.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)}))}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach((e=>n(e.qSelectionObject,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(c);d((t=>{const n=e;if((()=>{const{model:e}=p.get(i.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&n.length+1===t.items.length){const e=t.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:r}=e.selections[0];e.selections=[{qField:r}];const o=t.items.indexOf(e);n.splice(o,0,e)}let r=[];return m<n.length&&(r=n.splice(m-n.length)),{items:n,more:r}}))}),[i,l,c,o.isInModal(),m]),t.createElement(k,{ref:h,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},u.items.map((e=>t.createElement(k,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(sp,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(np,{field:e,api:o}):t.createElement(Yd,{field:e,api:o})))),u.more.length>0&&t.createElement(k,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(lp,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(ap,{items:u.more,api:o})))}var up=e=>Aa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var dp=e=>Aa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const pp=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function hp(e){let{api:o,app:i}=e;const{translator:a}=s(va),[l]=function(e){const[t]=Ia(e),[o]=Ta(t),[i]=Ma(e),[a,s]=n(null);return r((()=>{i&&t&&o&&pp(t,o,i)}),[i,t,o]),r((()=>{if(!o)return;let e=!1,t=!1,n=!1;[o,...o.alternateStates||[]].forEach((r=>{e=e||r.qSelectionObject&&r.qSelectionObject.qBackCount>0,t=t||r.qSelectionObject&&r.qSelectionObject.qForwardCount>0,n=n||(r.qSelectionObject&&r.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[o]),[a,t,o]}(i);return t.createElement(k,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(k,{item:!0},t.createElement(_,{style:{marginRight:"8px"},disabled:!l||!l.canGoBack,title:a.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},t.createElement(up,null))),t.createElement(k,{item:!0},t.createElement(_,{style:{marginRight:"8px"},disabled:!l||!l.canGoForward,title:a.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},t.createElement(dp,null))),t.createElement(k,{item:!0},t.createElement(_,{disabled:!l||!l.canClear,title:a.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},t.createElement(qc,null))))}const fp=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function mp(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function gp(){return fp.map(mp).join("")}function bp(e){let{app:n}=e;const r=$i(),[o]=Qc(n);return o?t.createElement(k,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(k,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(hp,{api:o,app:n})),t.createElement(k,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(cp,{api:o,app:n}))):null}let yp;yp="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let vp=null,Sp=null;const xp=yp.clearTimeout,Ep=yp.setTimeout,wp=yp.cancelAnimationFrame||yp.mozCancelAnimationFrame||yp.webkitCancelAnimationFrame,Cp=yp.requestAnimationFrame||yp.mozRequestAnimationFrame||yp.webkitRequestAnimationFrame;function Lp(e){let t,n,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&vp(this.__resizeRAF__),this.__resizeRAF__=Sp((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=yp.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==wp||null==Cp?(vp=xp,Sp=function(e){return Ep(e,20)}):(vp=function([e,t]){wp(e),xp(t)},Sp=function(e){const t=Cp((function(){xp(n),e()})),n=Ep((function(){wp(t),e()}),20);return[t,n]});class kp extends f{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i;if(!e&&this.state.height!==c||!t&&this.state.width!==u){this.setState({height:c,width:u});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:c,width:u,get scaledHeight(){return e(),c},get scaledWidth(){return e(),u}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Lp(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:d,width:p}=this.state,f={overflow:"visible"},m={};let g=!1;return r||(0===d&&(g=!0),f.height=0,m.height=d,m.scaledHeight=d),o||(0===p&&(g=!0),f.width=0,m.width=p,m.scaledWidth=p),i&&(g=!1),h(c,{ref:this._setRef,style:{...f,...l},...u},!g&&e(m))}}function Rp(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:i,constraints:a,selections:s}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const a=e.currentTarget.closest(".listbox-container"),l=i();switch(n){case Gs.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(r){Ys(a)||Xs(a)||el(e,t)}else{if(!(Qs(a)||Xs(a)||Ys(a)))break}o();break;case Gs.ENTER:case Gs.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case Gs.ESCAPE:el(e,t),s.isActive()&&s.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==a?void 0:a.select)||(null==a?void 0:a.active),t=i();return e||t})())return;const{keyCode:t,ctrlKey:s=!1,shiftKey:l=!1}=e;switch(t){case Gs.ARROW_UP:r({up:1});break;case Gs.ARROW_DOWN:r({down:1});break;case Gs.PAGE_UP:r({up:o.stop-o.start});break;case Gs.PAGE_DOWN:r({down:o.stop-o.start});break;case Gs.HOME:r({scrollPosition:s&&l?"overflowStart":"start"});break;case Gs.END:r({scrollPosition:s&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Ip=oa("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function _p(e){let{text:n}=e;const{translator:r}=s(va);return t.createElement(Ip,null,r.get(n))}const Op={fontSize:"12px"},qp=oa(B)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(as,"px")}}})),Tp=oa(k,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return Q(Q({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),Mp=oa(w)((e=>{let{styles:t}=e;return Q(Q({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function Dp(e){let{translator:n,toggleLock:r,keyboard:o,isLoading:i}=e;const a=n.get("SelectionToolbar.ClickToUnlock");return t.createElement(qp,{title:a,tabIndex:o.enabled?0:-1,onClick:r,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:i},i?t.createElement(H,{size:16,variant:"indeterminate",color:"primary"}):t.createElement(ja,{disableRipple:!0,style:Op}),!i&&t.createElement(w,{fontSize:"14px"},a))}var Pp=e=>Aa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var Ap=e=>Aa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var Np=e=>Aa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const jp="H",zp="C";var Fp={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:i,keyboard:a}=e;switch(t.qGrouping){case jp:return{icon:Ap,tooltip:"Listbox.DrillDown",onClick:void 0};case zp:{const e=n&&i,s=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?Np:Pp,tooltip:"Listbox.Cyclic",onClick:e?s:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case Gs.SPACE:case Gs.ENTER:s();break;case Gs.TAB:{if(!a.enabled)return;let n;n=e.shiftKey?a.focusSelection():Xs(t)||Ys(t),n||el(e,a)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const Wp=O(W)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function Bp(e){let{iconData:n,translator:r,iconStyle:o,disabled:i,keyboard:a}=e;if(!n)return;const{icon:s,tooltip:l,onClick:c,onKeyDown:u}=n,d=s,p=r.get(l);return c?t.createElement(Wp,{variant:"outlined",onClick:c,tabIndex:a.innerTabStops?0:-1,title:p,size:"large",disableRipple:!0,disabled:i,onKeyDown:u,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},t.createElement(d,{style:o})):t.createElement(d,{title:p,size:"large",style:Q(Q({},o),{},{padding:"".concat(as,"px")})})}const Hp=500;let $p=0;function Up(e){var o,i,a;let{layout:s,translator:l,styles:c,isRtl:u,showLock:d,showSearchIcon:h,constraints:f,onShowSearch:m,classes:g,containerRect:b,isPopover:y,showToolbar:v,showDetachedToolbarOnly:S,containerRef:x,model:E,selectionState:w,isDirectQuery:C,selections:L,keyboard:R,autoConfirm:I,app:O,disablePortal:q}=e;const[T,M]=n(S),[D,P]=n(null==s||null===(o=s.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked),[A,N]=n(!1);r((()=>{var e;P(null==s||null===(e=s.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==s||null===(i=s.qListObject)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.qLocked]);const j=p(null),z=Fp.createDimensionIconData({dimInfo:null==s||null===(a=s.qListObject)||void 0===a?void 0:a.qDimensionInfo,app:O,selections:L,isPopover:y,active:!(null!=f&&f.active),keyboard:R}),F=d&&D,W=!d&&D,B=h||W||z,H=os-(B?as:0),$=u?os-(B?as:0):is,U=(h?ss:0)+(W?ss:0)+(z?ss:0),G=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-$p<Hp)return Promise.resolve();if(r)return()=>{};i(!0),$p=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:D,setLocked:P,settingLockedState:A,setSettingLockedState:N,model:E}),V=wc({layout:s,model:E,translator:l,selectionState:w,isDirectQuery:C,selections:L}),K=D||!d?void 0:[{key:"lock",type:void 0,label:l.get("SelectionToolbar.ClickToLock"),getSvgIconShape:za,enabled:()=>!A&&!w.selectDisabled()&&au(s),action:G}],Z=null!=f&&f.active?t.createElement(Vc,{title:l.get("Listbox.Search"),size:"large",style:Q(Q({},Op),{},{padding:"".concat(as,"px")})}):t.createElement(_,{onClick:m,tabIndex:-1,title:l.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(Vc,{style:Op}));r((()=>{if(!j.current||!b)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:s,paddingLeft:l,paddingRight:c}=e;const u=l+c,d=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+s+u+2+128,p=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:b,titleRef:j,iconsWidth:U,paddingLeft:H,paddingRight:$});M(S||e)}),[U,H,$,j.current,S,Object.entries(b||{}).sort().join(",")]);const J=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,extraItems:a,selections:s,keyboard:l,autoConfirm:c,disablePortal:u}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:a,more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:u},selections:{show:n,api:s,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!y&&T,showToolbar:v,containerRef:x,isLocked:D,extraItems:K,listboxSelectionToolbarItems:V,selections:L,keyboard:R,autoConfirm:I,disablePortal:q}),Y=t.createElement(Gc,X({isRtl:u,layout:s},J));if(S)return Y;const ee=W?t.createElement(ja,{size:"large",style:Q(Q({},Op),{},{padding:"".concat(as,"px")})}):void 0;return t.createElement(Tp,{item:!0,container:!0,styles:c,isRtl:u,marginY:1,paddingLeft:"".concat(H,"px"),paddingRight:"".concat($,"px"),className:"header-container"},F&&t.createElement(Dp,{isLoading:A,translator:l,toggleLock:G,keyboard:R}),B&&t.createElement(k,{item:!0,container:!0,alignItems:"center",width:U,className:"header-action-container"},ee||h&&Z,t.createElement(Bp,{iconData:z,iconStyle:Op,disabled:L.isActive()&&y,translator:l,keyboard:R})),t.createElement(k,{item:!0,xs:!0,minWidth:0,justifyContent:u?"flex-end":"flex-start",className:g.listBoxHeader},t.createElement(Mp,{variant:"h6",noWrap:!0,ref:j,title:s.title,styles:c},s.title)),t.createElement(k,{item:!0,display:"flex"},Y))}const Gp="ListBoxInline",Vp={listBoxHeader:"".concat(Gp,"-listBoxHeader"),screenReaderOnly:"".concat(Gp,"-screenReaderOnly"),listboxWrapper:"".concat(Gp,"-listboxWrapper")},Kp=oa(k,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return Q(Q({},o.background),{},{["& .".concat(Vp.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Vp.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Vp.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const Zp=t.memo((function(e){var o,a,l,u;let{options:d,layout:h}=e;const{app:f,direction:m,frequencyMode:g,checkboxes:b,search:y=!0,focusSearch:v=!1,rangeSelect:S=!0,model:x,selections:E,update:w,fetchStart:C,postProcessPages:L,calculatePagesHeight:R,showGray:I=!0,scrollState:_,renderedCallback:O,toolbar:q=!0,isPopover:T=!1,showLock:M=!1,components:D,selectDisabled:P=(()=>!1),disablePortal:A=!0}=d,N=$i(),{translator:j,keyboardNavigation:z,themeApi:F,constraints:W}=s(va),{checkboxes:B=b}=h||{},H=Jd({app:f,themeApi:F,theme:N,components:D,checkboxes:B}),$=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==f?void 0:f.layout}),U=p(),G=p(),[V,K]=Da(),[Z,J]=n(!1),[X,Y]=n(!1),ee=p(!1),[te,ne]=n({down:0,up:0,scrollPosition:""}),re=e=>ne((t=>Q(Q({},t),e))),[oe,ie]=n({start:0,stop:0}),[ae]=Qc(f),[se]=n((()=>ou({selectDisabled:P}))),le=Zs({containerRef:U,enabled:z}),ce=c((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:f,appSelections:ae})),[f,ae]),ue=null==h?void 0:h.qListObject.qDimensionInfo.qError,de=ue&&W.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:pe,handleOnMouseEnter:he,handleOnMouseLeave:fe,globalKeyDown:me}=i((()=>Rp({keyboard:le,hovering:ee,updateKeyScroll:re,currentScrollIndex:oe,constraints:W,isModal:ce,selections:E})),[le,ee,re,U,oe,f,ae,W,ce]);r((()=>(document.addEventListener("keydown",me),()=>{document.removeEventListener("keydown",me)})),[me]),r((()=>{!0===y&&Y(!0);const e=()=>{J(!0)},t=()=>{J(!1),"toggle"===y&&Y(!1)};return T&&(E.isActive()||(E.on("activated",e),E.on("deactivated",t)),J(T)),q&&E&&(E.isModal()||(E.on("activated",e),E.on("deactivated",t)),J(T||E.isActive())),()=>{E&&E.removeListener&&(E.removeListener("activated",e),E.removeListener("deactivated",t))}}),[q,E,T]);const{wildCardSearch:ge,searchEnabled:be,autoConfirm:ye=!1,layoutOptions:ve={}}=null!=h?h:{},Se=null==h||null===(o=h.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked,xe=!1!==be&&"toggle"===y&&!Se,Ee=(null==h||null===(a=h.title)||void 0===a?void 0:a.length)&&!1!==(null==h?void 0:h.showTitle),we=q&&!Ee&&!T,Ce=q&&Ee||T,Le="rtl"===m;if(!x||!h||!j)return null;const ke=!0===y||"toggle"===y&&X&&!1!==be,Re=null!==(l=ve.dense)&&void 0!==l&&l,Ie=()=>{Y(!X)},_e=()=>{"toggle"===y?Ie():G.current.focus()},Oe=ke&&("toggle"===y||v),qe="grid"===(null==ve?void 0:ve.dataLayout),Te=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=Dl({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===i?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:qe,dense:Re,height:null===(u=U.current)||void 0===u?void 0:u.clientHeight,layoutOrder:ve.layoutOrder});ue&&(null==O||O());const Me=Ce?gs+cs:0,De=t.createElement(Up,{app:f,showSearchIcon:xe,onShowSearch:Ie,isPopover:T,showToolbar:Z,isDirectQuery:$,autoConfirm:ye,showDetachedToolbarOnly:we,layout:h,translator:j,styles:H,isRtl:Le,showLock:M,constraints:W,classes:Vp,containerRect:K,containerRef:U,model:x,selectionState:se,selections:E,keyboard:le,disablePortal:A});return t.createElement(t.Fragment,null,we&&De,t.createElement(Kp,{className:"listbox-container",container:!0,tabIndex:le.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Te,styles:H,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:pe,onMouseEnter:he,onMouseLeave:fe,ref:e=>{U.current=e,V(e)},isGridMode:qe,"aria-label":le.active?j.get("Listbox.ScreenReaderInstructions"):""},Ce&&De,t.createElement(k,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Me,role:"region","aria-label":j.get("Listbox.ResultFilterLabel")},t.createElement(k,{item:!0},t.createElement(Yc,{ref:G,selections:E,selectionState:se,model:x,dense:Re,keyboard:le,visible:ke,search:y,autoFocus:Oe,beginSelectionOnFocus:!T,wildCardSearch:ge,searchEnabled:be,direction:m,hide:xe&&Ie,styles:H})),t.createElement(k,{item:!0,xs:!0,className:Vp.listboxWrapper},ue?t.createElement(_p,{text:de}):t.createElement(kp,null,(e=>{let{height:n,width:r}=e;return t.createElement(yc,{model:x,app:f,constraints:W,layout:h,selections:E,selectionState:se,direction:m,frequencyMode:g,rangeSelect:S,checkboxes:B,height:n,width:r,update:w,fetchStart:C,postProcessPages:L,calculatePagesHeight:R,keyboard:le,showGray:I,scrollState:_,keyScroll:{state:te,reset:()=>ne({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:oe,set:ie},renderedCallback:O,onCtrlF:_e,isModal:ce,styles:H})}))))))}));function Jp(e){let{options:n={}}=e;const{model:r}=n,[o]=Ta(r);return t.createElement(Zp,{options:n,layout:o})}function Xp(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=La(),{sessionModel:c}=i,u=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],d=Object.keys(i).filter((e=>u.includes(e)));if(d.length)throw new Error('Option "'.concat(d.join(", "),'" is not applicable for existing objects.'));return r((()=>{let e=!1,n=()=>{};return async function(){const r=await Promise.resolve(c||async function(e){return l.get(e)||await t.getObject(e)}(o));if(!e){if(!l.get(r.id)){l.set(r.id,r);const e=()=>{l.clear(r.id)};r.once("closed",e),n=()=>{r.removeListener("closed",e)}}s(r)}}(),()=>{e=!0,n()}}),[]),a}const Yp={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function Qp(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const eh=["__DO_NOT_USE__"],th=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return Q(Q(Q({},ee(e,eh)),n),t)},nh=o(((e,o)=>{let{app:s,fieldIdentifier:l,qId:c,stateName:u,element:d,initialOptions:h,renderedCallback:f}=e;const[m,g]=n(h),{isExistingObject:b,hasExternalSelectionsApi:y}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:c,options:m});b||Object.assign(m,{frequencyMode:Qp(m.frequencyMode)});const[v,S]=n(0);r((()=>{if(v)throw new Error("Source or selection Api can not change after a listbox has been mounted");S(v+1)}),[b,y]);const x=b?Xp({app:s,qId:c,options:m}):function(e){var t;let{app:o,fieldIdentifier:i,stateName:a,options:s={}}=e;const[l,c]=n(""),[u,d]=n(!0),[h,f]=n(),[m,g]=n(),b=null!==(t=s.title)&&void 0!==t?t:m;let{histogram:y=!1,frequencyMode:v="N"}=s;l&&l.failedToFetchFieldDef&&(y=!1,v="N"),r((()=>{const e=y||"N"!==v;i.qLibraryId&&e?async function(){try{const e=await o.getDimension(i.qLibraryId),t=await e.getLayout();g(t.qDim.title),"N"===t.qDim.qGrouping?c(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):c({multiFieldDim:!0}),d(!1)}catch(e){throw d(!1),c({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(d(!1),g(i))}),[]);const{dense:S,checkboxes:x,listLayout:E,properties:w={}}=s,C={dense:S};"horizontal"===E&&(C.dataLayout="grid",C.layoutOrder="column",C.maxVisibleColumns={auto:!0},C.maxVisibleRows={auto:!1,maxRows:1});const L=p();L.current||(L.current=gp());const k=Ue(!0,{},Yp,{qInfo:{qId:L.current},qListObjectDef:{qStateName:a,qFrequencyMode:y&&"N"===v?"V":v},histogram:y,checkboxes:x,layoutOptions:C,title:b});let R;if(Ue(!0,k,w),i.qLibraryId?(k.qListObjectDef.qLibraryId=i.qLibraryId,R=i.qLibraryId):(k.qListObjectDef.qDef.qFieldDefs=[i],R=i),"P"!==v&&y)if(null!=l&&l.multiFieldDim)k.frequencyMax="fetch";else{const e=i.qLibraryId?l:R;k.frequencyMax={qValueExpression:hc(e)}}const[I]=ka(k,u?null:o,R,a);return r((()=>{I&&f(I)}),[I]),h}({app:s,fieldIdentifier:l,stateName:u,options:m}),E=p(d),w=y?m.selectionsApi:ru(s,x,[E,".njs-action-toolbar-more",".njs-action-toolbar-popover"],m)[0],C=i((()=>Q(Q({},m),{},{selections:w,model:x,app:s,renderedCallback:f})),[m,w,x,s]);return a(o,(()=>({setOptions:e=>g(e)})),[]),w&&x?t.createElement(Jp,{options:C}):null}));const rh={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function oh(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(Xd,{show:l,app:r,alignTo:{current:a},anchorOrigin:s.anchorOrigin,transformOrigin:s.transformOrigin,close:()=>{c(!1),s.onPopoverClose&&s.onPopoverClose()},fieldName:o,stateName:i,autoFocus:s.autoFocus,components:s.components,sortCriteria:s.sortCriteria,direction:s.direction})}function ih(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function ah(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const sh=e=>({qDef:{qFieldDefs:[e]}}),lh=e=>({qDef:{qDef:e}});function ch(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?sh(e):Q(Q({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||gp(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<i.maxDimensions()?(t.qDimensions.push(r),ih(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return ah(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?lh(e):Q(Q({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||gp(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),ih(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];ah(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const uh=e=>({qDef:{qFieldDefs:[e]}});function dh(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?uh(e):Q(Q({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||gp(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===i.dimensions().length,canAddMeasure:()=>!1};return i}const ph=e=>{let t;var n;return t="string"==typeof e?Ue(!0,{},Yp,{qListObjectDef:(n=e,{qDef:{qFieldDefs:[n]}})}):e.qListObjectDef?Ue(!0,{},Yp,e):Ue(!0,{},Yp,{qListObjectDef:e}),t};function hh(e){let{children:t,halo:n}=e;return{async addDimension(e){const r=ph(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||gp(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}}}function fh(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function mh(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:s}=a,l=s.split("/");let c=r;for(let e=0;e<l.length;e++){const t=l[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?dh:e.match("/qChildListDef")?hh:ch}(s),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===fh(t)?await d.addMeasure(t):await d.addDimension(t)}}var gh={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var bh={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}};const yh=2**53-1;function vh(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Sh(e,t){const n=Ue(!0,{},t,e);return gh.getValue(n,"qOtherTotalSpec.qOtherCounted")||gh.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),gh.getValue(n,"qOtherTotalSpec.qOtherLimit")||gh.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function xh(e,t){return Ue(!0,{},t,e)}function Eh(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var wh={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===gh.getValue(e,t)&&gh.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:vh,importCommonProperties:function(e,t,n){const r="masterobject"===gh.getValue(t,"properties.qInfo.qType")?"masterobject":gh.getValue(n,"qInfo.qType");gh.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:Sh,createDefaultMeasure:xh,resolveValue:Eh,getHypercubePath:function(e){const t=gh.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(bh.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,bh.indexRemoved(n.qInterColumnSortOrder,i))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=Ue(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?gh.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||vh(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ue(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},i=n.measures||{max:0},a=Eh(i.max,r.dimensions.length,yh),s=Eh(i.min,r.dimensions.length,0);return{maxDimensions:Eh(o.max,a,yh),minDimensions:Eh(o.min,s,0),maxMeasures:a,minMeasures:s}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.dimensions.length;++s)o.qDimensions.length<n?o.qDimensions.push(Sh(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Sh(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Sh(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(Sh(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Sh(a.excludedDimensions[s],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.measures.length;++s)o.qMeasures.length<n?o.qMeasures.push(xh(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(xh(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(xh(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(xh(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(xh(a.excludedMeasures[s],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=gh.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=gh.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var Ch={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,i=gh.getValue(o,n||""),a=i.qHyperCubeDef,s=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),s.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();bh.isOrderedSubset(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(wh.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!gh.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},s=wh.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=gh.getValue(n,i||"").qHyperCubeDef,c=gh.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h}=wh.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=wh.getDefaultDimension(),defaultMeasure:m=wh.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,wh.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h})&&wh.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h,newHyperCubeDef:c}),wh.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:f}),wh.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:h,newHyperCubeDef:c,defaultMeasure:m}),wh.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),wh.copyPropertyIfExist("qMaxStackedCells",l,c),wh.copyPropertyIfExist("qNoOfLeftDims",l,c),wh.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),wh.copyPropertyOrSetDefault("qMode",l,c,"S"),wh.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),wh.copyPropertyOrSetDefault("qSortbyYValue",l,c),wh.copyPropertyOrSetDefault("qIndentMode",l,c),wh.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),wh.importCommonProperties(s,t,n),wh.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),wh.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const Lh=e=>gh.getValue(e,"data.targets.0.propertyPath"),kh=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Ch.exportProperties})(Lh(e))},Rh=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Ch.importProperties})(Lh(e))},Ih=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:a=!1}=e;const s=i?{qProperty:i}:await n.getFullPropertyTree(),l=r.current.getQae(),c=kh(l);if(!c)throw new Error("Source chart does not support conversion");const u=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),d=u.qae,p=Rh(d);if(!p)throw new Error("Target chart does not support conversion");return p({exportFormat:c({propertyTree:s,hypercubePath:wh.getHypercubePath(l),viewDataMode:a}),initialProperties:Q({qInfo:{qType:o},visualization:o},gh.getValue(d,"properties.initial",{})),dataDefinition:gh.getValue(d,"data.targets.0.",{}),hypercubePath:wh.getHypercubePath(d),viewDataMode:a})},_h={hypercube:Ch};var Oh=e=>Aa((e=>Q(Q({},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 qh(e){let{d:n}=e;const r=$i();let o="inherit",i=r.palette.success.main;n.missing?i=r.palette.warning.main:n.error&&(o="error",i=r.palette.error.main);const a={color:i},s=t.createElement(w,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement($,null,n.missing||n.error?t.createElement(Oh,{style:a}):t.createElement(es,{style:a})));return t.createElement(k,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(k,{item:!0},s),t.createElement(k,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(w,{noWrap:!0,component:"p"},t.createElement(w,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(w,{component:"span"}," "),t.createElement(w,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function Th(e){let{data:n}=e;const r=$i();return t.createElement(k,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(qh,{d:e,key:n})));return o.length>0&&t.createElement(k,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(w,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function Mh(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(k,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(k,{item:!0},t.createElement(Oh,{style:{fontSize:"38px"}})),t.createElement(k,{item:!0},t.createElement(w,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(k,{item:!0},t.createElement(w,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(Th,{data:o}))}const Dh=["size"],Ph="Progress",Ah={root:"".concat(Ph,"-root"),front:"".concat(Ph,"-front"),back:"".concat(Ph,"-back")},Nh=oa("div")((e=>{let{theme:t}=e;return{["&.".concat(Ah.root)]:{position:"relative",display:"inline-block"},["& .".concat(Ah.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(Ah.back)]:{color:t.palette.divider}}})),jh={small:16,medium:32,large:64,xlarge:128};function zh(e){let{size:n="medium"}=e,r=ee(e,Dh);const o=jh[n];return t.createElement(Nh,{className:Ah.root},t.createElement(H,X({variant:"determinate",value:100,className:Ah.back,size:o,thickness:3},r)),t.createElement(H,X({variant:"indeterminate",disableShrink:!0,className:Ah.front,size:o,thickness:3},r)))}const Fh=["cancel","translator"],Wh=["retry","translator"],Bh={stripes:"".concat("LongRunningQuery","-stripes")},Hh=oa(k)((()=>({["& .".concat(Bh.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 $h(e){let{cancel:n,translator:r}=e,o=ee(e,Fh);return t.createElement(t.Fragment,null,t.createElement(Hh,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(k,{item:!0},t.createElement(zh,null)),t.createElement(k,{item:!0},t.createElement(w,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(k,X({item:!0},o),t.createElement(W,{variant:"contained",onClick:n},r.get("Cancel"))))}function Uh(e){let{retry:n,translator:r}=e,o=ee(e,Wh);return t.createElement(t.Fragment,null,t.createElement(k,{item:!0},t.createElement(Oh,{style:{fontSize:"38px"}})),t.createElement(k,{item:!0},t.createElement(w,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(k,{item:!0},t.createElement(W,X({variant:"contained",onClick:n},o),r.get("Retry"))))}function Gh(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=s(va);return t.createElement(k,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Bh.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement($h,{cancel:o.cancel,translator:i,className:Bh.cancel}),r&&t.createElement(Uh,{retry:o.retry,translator:i,className:Bh.retry}))}function Vh(){return t.createElement(k,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(zh,{size:"large"}))}const Kh="Header",Zh={containerStyle:"".concat(Kh,"-containerStyle"),containerTitleStyle:"".concat(Kh,"-containerTitleStyle")},Jh=oa(k)((e=>{let{theme:t}=e;return{["&.".concat(Zh.containerStyle)]:{flexGrow:0},["&.".concat(Zh.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Xh="njs-cell-title",Yh="njs-cell-sub-title";function Qh(e){let{layout:o,sn:i,anchorEl:a,hovering:s,focusHandler:l,titleStyles:c={}}=e;const u=o.showTitles&&!!o.title,d=o.showTitles&&!!o.subtitle,p=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[h,f]=n([]);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{f([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]);const m=[Zh.containerStyle,...u||d?[Zh.containerTitleStyle]:[]],g=s||p,b=t.createElement(Gc,{show:!1,selections:{show:p,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:h,popover:{show:g,anchorEl:a},focusHandler:l,layout:o});return t.createElement(Jh,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},t.createElement(k,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(k,{container:!0,wrap:"nowrap",direction:"column"},u&&t.createElement(R,{title:o.title},t.createElement(w,{variant:"h6",noWrap:!0,className:Xh,style:c.main},o.title)),d&&t.createElement(R,{title:o.subtitle},t.createElement(w,{variant:"body2",noWrap:!0,className:Yh,style:c.subTitle},o.subtitle)))),t.createElement(k,{item:!0},b))}const ef={itemStyle:"".concat("Footer","-itemStyle")},tf=oa(k)((e=>{let{theme:t}=e;return{["& .".concat(ef.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1),width:"100%"}}})),nf="njs-cell-footer";function rf(e){let{layout:n,titleStyles:r={}}=e;return n&&n.showTitles&&n.footnote?t.createElement(tf,{container:!0},t.createElement(k,{item:!0,className:ef.itemStyle},t.createElement(R,{title:n.footnote},t.createElement(w,{noWrap:!0,variant:"body2",className:nf,style:r.footer},n.footnote)))):null}class of{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 af="njs-viz";function sf(e){let{sn:o,snOptions:i,snPlugins:a,layout:l,appLayout:u,halo:d}=e;const{component:p}=o,{theme:h,language:f,constraints:m,interactions:g,keyboardNavigation:b}=s(va),[y]=n((()=>new of)),[v,S]=n(!1),[x,E]=n(0),[w,C,L]=Da(),[k,R]=n(null),I=c((e=>{e&&R(e)}),[]);return r((()=>{if(k)return p.created({options:i}),p.mounted(k),S(!0),()=>{y.stop(),p.willUnmount()}}),[k,p]),r((()=>{v&&k&&C&&(!p.isHooked&&l&&l.qSelectionInfo&&l.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),m.edit||e.push("edit"),d.app&&d.app.session&&e.push("fetch"),Promise.resolve(p.render({layout:l,options:i,plugins:a,embed:d.public.nebbie,context:Q({constraints:m,interactions:g,theme:d.public.theme,appLayout:u,keyboardNavigation:b},p.isHooked?{}:{logicalSize:o.logicalSize({layout:l}),localeInfo:(u||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===x&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),E(x+1))}))})))}),[C,i,a,k,L,l,u,h,f,m,g,v,b]),t.createElement("div",{ref:w,"data-render-count":x,style:{position:"relative",height:"100%"},className:af},t.createElement("div",{ref:I,style:{position:"absolute",width:"100%",height:"100%"}}))}const lf={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart"},cf=(e,t,n,r)=>{const o=i((()=>{if(e&&t){const o=e.components?e.components.find((e=>"general"===e.key)):null,i=(r=e.visualization,lf[r.toLowerCase()]?lf[r.toLowerCase()]:r),a={main:Vd(o,"main",t,i),footer:Vd(o,"footer",t,i),subTitle:Vd(o,"subTitle",t,i)},s=Ud(o,t,i),l=$d(o,n),c=function(e,t,n){const r=Fd(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||zd("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(o,t,i),u=function(e,t,n){return(null==e?void 0:e.borderRadius)||zd("","borderRadius",t,n)}(o,t,i);return{titleStyles:a,bgColor:s,bgImage:l,border:c,borderRadius:u,boxShadow:Gd(o,t,i)}}var r;return{}}),[e,t,n,r]);return o};class uf extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const df=["action-button","sn-nav-menu"],pf=["pivot-table","table","sn-table","sn-pivot-table","kpi","map","filterpane","sn-calendar","sn-filter-pane","sn-layout-container","sn-listbox","sn-shape","sn-tabbed-container"],hf=e=>{let{layout:t,isError:n,senseTheme:r,titleStyles:o}=e;const i=null==r?void 0:r.getStyle("","","_cards"),a=(e=>{let{isCardTheme:t,layout:n,isError:r}=e;const o=null==n?void 0:n.visualization;return!!t&&(!!r||-1===pf.indexOf(o)&&!(!(null==n?void 0:n.showTitles)&&-1!==df.indexOf(o)))})({isCardTheme:i,layout:t,isError:n});if(i){const e=(null==t?void 0:t.showTitles)&&!(null==t||!t.title),n=(null==t?void 0:t.showTitles)&&!(null==t||!t.subtitle),r=(null==t?void 0:t.showTitles)&&!(null==t||!t.footnote);let i;return e&&a&&(o.main.padding="10px 10px 0"),n&&a&&(o.subTitle.padding=e?"0 10px":"10px 10px 0"),r&&(o.footer.borderTop="1px solid #d9d9d9",o.footer.padding="6px 10px"),a&&(i="".concat(e||n?"0":"10px"," 10px ").concat(r?"0":"5px")),i}},ff="njs-cell",mf="njs-cell-body",gf=(e,t)=>{switch(t.type){case"LOADING":return Q(Q({},e),{},{loading:!0});case"LOADED":return Q(Q({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return Q(Q({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return Q(Q({},e),{},{longRunningQuery:!0});case"ERROR":return Q(Q({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function bf(e){let{delay:o=750}=e;const[i,a]=n(!1);return r((()=>{const e=setTimeout((()=>a(!0)),o);return()=>clearTimeout(e)}),[]),i?t.createElement(Vh,null):null}const yf=e=>!e.qError||7005===e.qError.qErrorCode,vf=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,s=i&&!a&&t[e].qError,l=a&&t[e].qCalcCondMsg,c="".concat(s?r:a?l||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!s&&e>=t.length||a,error:s}})),Sf=e=>e&&(Array.isArray(e)?e:[e])||[],xf=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:vf(o,Sf(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:vf(i,Sf(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Ef=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:s,hasLayoutErrors:l,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,s=!1;const l=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),h=u.resolveLayout(n),f=Sf(h.qDimensionInfo||h.qItems).filter(yf),m=Sf(h.qMeasureInfo).filter(yf);if(o+=d,i+=p,(f.length<d||m.length<p)&&(r=!0),h.qError){a=!0,s=7005===h.qError.qErrorCode;const t=s&&h.qCalcCondMsg?h.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=p||await r.getProperties();p=n;const o=xf(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=u.filter((e=>!(e.missing||e.error))).length,f=e.get("Visualization.Incomplete.Dimensions",[h,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),b=[{title:f,descriptions:[...u]},{title:g,descriptions:[...d]}],y=l?c:b;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:y}]},wf=o(((e,o)=>{var i;let{halo:c,model:u,initialSnOptions:d,initialSnPlugins:h,initialError:f,onMount:m,currentId:g,emitter:b,navigation:y,onError:v}=e;const{app:S,types:x}=c,{nebbie:E}=c.public,{theme:w,translator:C,language:L,keyboardNavigation:R,disableCellPadding:_=!1}=s(va),O=$i(),[q,T,M]=Da(),[D,P]=l(gf,{loading:!1,loaded:!1,longRunningQuery:!1,error:(A=f)?{title:A.message}:null,sn:null,visualization:null});var A;const[N,j]=n(u),[z,{validating:F,canCancel:W,canRetry:B},H]=Ta(N),[$]=Ma(S),[U,G,V]=Da(),[K,Z]=n(d),[J,X]=n(h),Y="njs-cell-".concat(g),[ee]=ru(S,N,["#".concat(Y),".njs-action-toolbar-popover"]),[te,ne]=n(!1),re=p({enter:null,leave:null}),{titleStyles:oe,bgColor:ie,bgImage:ae,border:se,borderRadius:le,boxShadow:ce}=cf(z,c.public.theme,c.app,w),ue=p({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{eu(ue.current)}),[]),ue.current.blurCallback=e=>{c.root.toggleFocusOfCells(),e&&V&&V.focus()},ue.current.refocusContent=()=>{D.sn.component&&"function"==typeof D.sn.component.focus&&D.sn.component.focus()};r((()=>{if(f)return void m();if(!$||!z)return;if(D.visualization===z.visualization&&D.sn)return void(async e=>{const[t,n]=await Ef(C,z,e.generator.qae.data,N);P(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:D.sn,layout:z,model:N})})(D.sn);const e=x.getSupportedVersion(z.visualization,z.version);return(async(e,t)=>{P({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,onMount:d,navigation:p}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),h=e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,navigation:p});h&&(t({type:"LOADED",sn:h,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message,errorObject:e}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:P,types:x,visualization:e,version:t,model:N,app:S,selections:ee,nebbie:E,focusHandler:ue.current,emitter:b,onMount:m,navigation:y})})(z.visualization,e),()=>{}}),[x,D.sn,N,ee,z,$,L]),r((()=>{if(!F)return;const e=setTimeout((()=>P({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[F]),a(o,(()=>({getQae:()=>D.sn.generator.qae,toggleFocus(e){"function"==typeof D.sn.component.focus&&(e?D.sn.component.focus():D.sn.component.blur())},setSnOptions:Z,setSnPlugins:X,setModel:j,getImperativeHandle(){var e;return null!==(e=D.sn)&&void 0!==e&&e.component&&"function"==typeof D.sn.component.getImperativeHandle?D.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=T;let n=JSON.parse(JSON.stringify(z));return"function"==typeof D.sn.component.setSnapshotData&&(n=await D.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:C.language(),theme:O.name,appLayout:$,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof c.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return c.config.snapshot.capture(e)}})),[D.sn,G,T,z,O.name,$]);let de=null;if(D.loading&&!D.longRunningQuery)de=t.createElement(bf,null);else if(D.error){if(v){v(D.error.errorObject?D.error.errorObject:new uf(D.error.title))}de=t.createElement(Mh,D.error)}else D.loaded&&(de=t.createElement(sf,{key:z.visualization,sn:D.sn,halo:c,snOptions:K,snPlugins:J,layout:z,appLayout:$}));const pe=null===(i=c.public.galaxy)||void 0===i?void 0:i.flags;let he,fe;if(_)he=!1,fe=void 0;else if(null!=pe&&pe.isEnabled("VNA-13_CELLPADDING_FROM_THEME")){const e=c.public.theme;he=!1,fe=hf({layout:z,isError:D.error,senseTheme:e,titleStyles:oe})}else he=!0,fe=void 0;return t.createElement(I,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:ie||"unset",backgroundImage:ae&&ae.url?"url(".concat(ae.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:ae&&ae.size,backgroundPosition:ae&&ae.pos,border:se,borderRadius:le,boxShadow:ce,boxSizing:"border-box"},elevation:0,square:!0,className:ff,ref:q,id:Y,onMouseEnter:()=>{re.current.leave&&clearTimeout(re.current.leave),re.enter||(re.current.enter=setTimeout((()=>{ne(!0),re.current.enter=null}),250))},onMouseLeave:()=>{re.current.enter&&clearTimeout(re.current.enter),re.current.leave||(re.current.leave=setTimeout((()=>{ne(!1),re.current.leave=null}),750))}},t.createElement(k,{container:!0,direction:"column",gap:0,style:Q(Q({position:"relative",width:"100%",height:"100%"},he?{padding:O.spacing(1)}:{}),D.longRunningQuery?{opacity:"0.3"}:{})},M&&z&&D.sn&&t.createElement(Qh,{layout:z,sn:D.sn,anchorEl:M,hovering:te,focusHandler:ue.current,titleStyles:oe}," "),t.createElement(k,{tabIndex:R?0:-1,onKeyDown:R?e=>{["Enter"," ","Spacebar"].includes(e.key)&&c.root.toggleFocusOfCells(g)}:null,item:!0,xs:!0,className:mf,style:Q({height:"100%"},fe?{padding:fe}:{}),ref:U},de),M&&z&&D.sn&&t.createElement(rf,{layout:z,titleStyles:oe})),D.longRunningQuery&&t.createElement(Gh,{canCancel:W,canRetry:B,api:H}))}));function Cf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Lf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return Cf(e)&&Cf(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...Lf("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function kf(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))}))}const Rf=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},If=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),_f=Ue.bind(null,!0),Of={},{isArray:qf}=Array;function Tf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Mf(e){return void 0===e}function Df(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Pf(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=Mf(e[r||t])?i:e[t],e=e[r||t]})),e}function Af(e,t){let n=!0;if(Tf(e)&&Tf(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Af(e[r],t[r])||(n=!1)})),n);if(qf(e)&&qf(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Af(e[n],t[n]))return!1;return!0}return e===t}Of.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?_f({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Af(i,a)||Df(t,o)||(Mf(a)?r.push({op:"add",path:s,value:i}):Tf(i)&&Tf(a)?r=r.concat(Of.generate(a,i,s)):qf(i)&&qf(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Mf(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Af(t,o))return r;if(!Mf(t[0])&&Mf(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(Of.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{Mf(t[o])&&!Df(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},Of.apply=function(e,t){t.forEach((t=>{let n=Pf(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(qf(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(qf(o)&&qf(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Tf(o)&&Tf(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Df(a,e)&&delete a[e]})),_f(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=Pf(e,t.from);qf(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(qf(n)?n.splice(+r,1):delete n[r]);var a}))},Of.clone=function(e){return _f({},e)},Of.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Of.updateObject=function(e,t){Object.keys(e).length?Of.apply(e,Of.generate(e,t)):_f(e,t)};const Nf=e=>t=>{const n=(r=Q(Q({},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(se.prototype).forEach((e=>{r[e]=se.prototype[e]})),se.init(r),r);var r;return n};let jf,zf;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 Wf(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function Bf(e){$f(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 Hf(e){if(e.__hooks.obsolete)return Promise.resolve();zf=-1,jf=e,jf.__hooks.initiated&&jf.__hooks.list.length;try{jf.fn.call(null)}catch(e){console.error(e)}jf.__hooks.initiated=!0;const t=jf.__hooks;return Kf(jf),zf=void 0,jf=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){$f(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){$f(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)}))}(t),t.chain.promise}function $f(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 Uf(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 Gf(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Vf(e){return e.__hooks.imperativeHandle}function Kf(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Zf(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Kf(e))}function Jf(e){if(void 0===jf)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=jf.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Xf(e){Jf(++zf);return jf.context[e]}function Yf(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Qf(e){return{__hooked:!0,fn:e,initiate:Wf,run:Hf,teardown:Bf,runSnaps:Uf,runMenu:Gf,focus:qm,blur:Tm,observeActions:Zf,getImperativeHandle:Vf,updateRectOnNextRun:Yf}}function em(e){const t=Jf(++zf);if(!t.value){t.component=jf;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout((()=>{r.__hooks.micro=null,Hf(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function tm(e,t){const n=Jf(++zf);Ff(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===jf.__hooks.pendingEffects.indexOf(n)&&jf.__hooks.pendingEffects.push(n))}function nm(e,t){const n=Jf(++zf);Ff(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],jf.__hooks.pendingLayoutEffects.push(n))}function rm(e,t){const n=Jf(++zf);return Ff(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function om(e){return rm((()=>({current:e})),[])}function im(e,t){const[n,r]=em((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Jf(++zf);return o.component||(o.component=jf),nm((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]}function am(){return Xf("element")}function sm(){const e=am(),t=jf.__hooks.resizer,[n,r]=em((()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}}));return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),nm((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:i})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n}function lm(){return Xf("layout")}function cm(){const e=Xf("layout"),[t]=em({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function um(){return Xf("appLayout")}function dm(){const e=Xf("model");return e&&e.session?e:void 0}function pm(){const e=Xf("app");return e&&e.session?e:void 0}function hm(){const e=Xf("global");return e&&e.session?e:void 0}function fm(){return Xf("selections")}function mm(){return Xf("theme")}function gm(){return Xf("nebbie")}function bm(){return Xf("translator")}function ym(){return Xf("deviceType")}function vm(){return Xf("navigation")}function Sm(){return Xf("plugins")}function xm(e,t){const[n]=em({action(){n._config.action.call(null)}});return n.component||(n.component=jf,jf.__hooks.actions.list.push(n)),rm((()=>{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 Em(){return Xf("constraints")}function wm(){return Xf("interactions")}function Cm(){return Xf("options")}function Lm(e,t){const n=Jf(++zf);if(n.imperative||(n.imperative=!0),Ff(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],jf.__hooks.imperativeHandle=r}}function km(e){const t=Jf(++zf);t.value||(t.value=1,jf.__hooks.snaps.push(t)),t.fn=e}function Rm(e){const t=Jf(++zf);t.value||(t.value=1,jf.__hooks.menus.push(t)),t.fn=e}function Im(){Jf(++zf);const e=jf.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function _m(){return Xf("emitter")}function Om(){const e=Xf("keyboardNavigation"),t=Xf("focusHandler");if(!jf.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(Tm(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(jf);jf.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),qm(this))}.bind(jf);jf.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(jf);jf.__hooks.accessibility.focusSelectionFunction=r}const n=jf.__hooks.accessibility.focusFunction,r=jf.__hooks.accessibility.exitFunction,o=jf.__hooks.accessibility.focusSelectionFunction,[i,a]=em({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return jf.__hooks.accessibility.setter=a,jf.__hooks.accessibility.enabled=e,tm((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function qm(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 Tm(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 Mm={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Dm=Object.keys(Mm),Pm=e=>(Object.keys(se.prototype).forEach((t=>{e[t]=se.prototype[t]})),se.init(e),e);function Am(e,t){const n=Q({},Mm);Pm(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==Dm.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],i=Nf(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function Nm(e,t,n){"function"==typeof e.component&&(e.component=Qf(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},a=["appLayout","constraints","interactions"],s={},l={};t.model&&t.model.session||(s.select=!0,s.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}a.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(Q(Q({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(Q(Q({},r[e]),l))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return a.forEach((e=>{i[e]=JSON.stringify(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):Am(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=Of.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Of.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const s=Of.generate(i,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,s,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const jm=()=>{};function zm(e,t){return void 0===e?()=>t:()=>e}function Fm(e){const t=e||{};return{min:"function"==typeof t.min?t.min:zm(t.min,0),max:"function"==typeof t.max?t.max:zm(t.max,1e3),added:t.added||t.add||jm,description:t.description||jm,moved:t.moved||t.move||jm,removed:t.removed||t.remove||jm,replaced:t.replaced||t.replace||jm,isDefined:()=>!!e}}const Wm=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function Bm(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>Wm(e,n,{}),dimensions:Fm(e.dimensions),measures:Fm(e.measures)}}function Hm(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(Bm)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function $m(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Hm(n.qae),component:n.component||{},create:e=>Nm(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const Um=(e,t,n)=>{if(!e)return Promise.resolve();let r=Of.generate(t,n);return Ue(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},Gm=()=>{};function Vm(){let e,{model:n,halo:r,navigation:o,initialError:i,onDestroy:a=(async()=>{}),onRender:s=(()=>{}),onError:l=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=Gm,u=null,d=null,p=null,h=null;const f=new Promise((e=>{p=e})),g=new Promise((e=>{h=e})),b=e=>()=>{null==e||e(),h(),s()};let y={},v=[];const S=new se,x={id:n.id,model:n,async destroy(){await a(),c(),c=Gm},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const o=await n.getLayout();if(Rf(o)&&!t){const t=await Ih({halo:r,model:n,cellRef:u,newType:e});return await If(n,t.qProperty),t}const i=await n.getEffectiveProperties(),a=await Ih({halo:r,model:n,cellRef:u,newType:e,properties:i}),s=a.qProperty;return await Um(n,i,s),a}return await Ih({halo:r,model:n,cellRef:u,newType:e})},async toggleDataView(t){let o;if(e||!1===t)e&&!0!==t&&(o=n,await r.app.destroySessionObject(e),e=void 0);else{let t=r.config.context.dataViewType;const i=await n.getEffectiveProperties();if(!r.types.getSupportedVersion(t)){if(!r.types.getSupportedVersion("table"))throw new Error("No data view type registered");t="table"}const a=await Ih({halo:r,model:n,cellRef:u,newType:t,properties:i,viewDataMode:!0});o=await r.app.createSessionObject(a.qProperty),e=o.id}o&&u.current.setModel(o)},addListener(e,t){S.addListener(e,t)},removeListener(e,t){S.removeListener(e,t)},getImperativeHandle:async()=>(await g,u.current.getImperativeHandle()),takeSnapshot:async()=>(await g,u.current.takeSnapshot()),__DO_NOT_USE__:{mount(e){if(d)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return d=e,[c,u]=function(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,emitter:l,initialError:c,navigation:u,onError:d}=e;const{root:p}=n,h=t.createRef(),f=gp(),g=m.createPortal(t.createElement(wf,{ref:h,halo:n,model:o,currentId:f,initialSnOptions:i,initialSnPlugins:a,initialError:c,onMount:s,emitter:l,navigation:u,onError:d}),r,f),b=()=>{p.remove(g),o.removeListener("closed",b)};return o.on("closed",b),p.add(g,b),p.addCell(f,h),[b,h]}({halo:r,element:e,model:n,initialSnOptions:y,initialSnPlugins:v,initialError:i,onMount:p,emitter:S,navigation:o,onError:l}),f},async applyProperties(e){const t=Lf("/",e,await n.getEffectiveProperties());if(t.length)return n.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;d?(async()=>{await f,u.current.setSnOptions(Q(Q(Q({},y),e),{onInitialRender:b(t)}))})():y=Q(Q(Q({},y),e),{onInitialRender:b(t)})})(e)},plugins(e){(async e=>{kf(e),d?(async()=>{await f,u.current.setSnPlugins(e)})():v=e})(e)},exportImage:()=>u.current.exportImage(),takeSnapshot:()=>u.current.takeSnapshot(),getModel:()=>n,convert:{async toType(e){const t=await n.getEffectiveProperties(),o=await Ih({halo:r,model:n,cellRef:u,newType:e,properties:t}),i=o.qProperty;return await Um(n,t,i),o},async revert(){await n.clearSoftPatches()}}}};return x}async function Km(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=Vm({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}async function Zm(e,t,n,r){let{type:o,version:i,fields:a,properties:s,extendProperties:l}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:i});c=await e.initialProperties(s,l);const n=await e.supernova();a&&await mh({sn:n,properties:c,fields:a,children:u},t),s&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const Jm="njs-sheet";function Xm(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const Ym=o(((e,o)=>{var l;let{model:c,halo:u,initialSnOptions:d,initialSnPlugins:h,initialError:f,onMount:m,unmount:g,navigation:b,onError:y}=e;const{root:v}=u,[S,x]=n(c),[E]=Ta(S),{theme:w,modelStore:C}=s(va),[L,k]=n([]),[R,I]=n(void 0),[_,O]=n(void 0),[q,T]=n(""),M=p({cellCount:0,cellsRendered:0,initialRender:!1});null==b||null===(l=b.setCurrentSheetId)||void 0===l||l.call(b,S.id),r((()=>{if(E){const e=JSON.stringify(E.cells);if(e===q)return;T(e);const n=async()=>{L.forEach((e=>{v.removeCell(e.currentId)}));const e=E.cells;M.cellCount=e.length,M.cellsRendered=0;const n=()=>{M.cellsRendered++,M.cellsRendered!==M.cellCount||M.initialRender||(M.initialRender=!0,d.onInitialRender())},{columns:r,rows:o}=E,i=await Promise.all(e.map((async e=>{let i;const a=new Promise((e=>{i=e})),s=L.find((t=>t.id===e.name));if(s)return s.bounds=Xm(e,r,o),delete s.mountedPromise,s;const l=await async function(e,t,n){let{id:r,options:o,plugins:i,element:a}=e;const{modelStore:s,rpcRequestModelStore:l}=n,c="".concat(r);let u=l.get(c);u||(u=t.app.getObject(r),l.set(c,u));const d=await u;return s.set(c,d),Km(d,{options:o,plugins:i,element:a},t)}({id:e.name},u,C);return{model:l.model,id:e.name,bounds:Xm(e,r,o),cellRef:t.createRef(),currentId:gp(),mounted:i,mountedPromise:a,options:Q(Q({},d),{onInitialRender:n})}})));i.forEach((e=>v.addCell(e.currentId,e.cellRef))),k(i)};n()}}),[E]),r((()=>{const e=()=>{S.removeListener("closed",e),g()};return S.on("closed",e),()=>S.removeListener("closed",e)}),[S]);const D=i((()=>L?L.map((e=>function(e,n,r,o,i,a,s,l){var c;const{x:u,y:d,width:p,height:h}=e.bounds,f={left:"".concat(u,"%"),top:"".concat(d,"%"),width:"".concat(p,"%"),height:"".concat(h,"%"),position:"absolute"},m=null===(c=n.public.galaxy)||void 0===c?void 0:c.flags;null!=m&&m.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(f.boxSizing="border-box",f.padding="4px");const g=new se;return t.createElement("div",{style:f,key:e.model.id},t.createElement(wf,{ref:e.cellRef,halo:n,model:e.model,currentId:e.currentId,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a,emitter:g,navigation:s,onError:l}))}(e,u,e.options,h,f,e.mounted,b,y))):[]),[L]);r((()=>{const e=null!=E&&E.components?E.components.find((e=>"general"===e.key)):null;I(Ud(e,u.public.theme)),O($d(e,u.app))}),[E,u.public.theme,u.app,w]),a(o,(()=>({setModel:x})),[]);const P=!E||Number.isNaN(E.height)?"100%":"".concat(Number(E.height),"%"),A=L.map((e=>e.mountedPromise));return A.filter((e=>!!e)).length&&Promise.all(A).then((()=>{m()})),t.createElement("div",{className:Jm,style:{width:"100%",height:P,position:"relative",backgroundColor:R,backgroundImage:_&&_.url?"url(".concat(_.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:_&&_.size,backgroundPosition:_&&_.pos}},D)}));const Qm=()=>{};function eg(){let{model:e,halo:n,navigation:r,initialError:o,onDestroy:i=(async()=>{}),onRender:a=(()=>{}),onError:s=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=Qm,c=null,u=null,d=null,p=null;const h=new Promise((e=>{d=e})),f=new Promise((e=>{p=e})),g=e=>()=>{null==e||e(),p(),a()};let b={},y=[];const v={id:e.id,model:e,navigation:r,getImperativeHandle:async()=>(await f,c.current.getImperativeHandle()),async destroy(){await i(),l(),l=Qm},__DO_NOT_USE__:{mount(i){if(u)throw new Error("Already mounted");if(!(i instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return u=i,[l,c]=function(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l,navigation:c,onError:u}=e;const{root:d}=n,p=t.createRef();let h;const f=()=>{d.remove(h)};return h=m.createPortal(t.createElement(Ym,{ref:p,halo:n,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s,unmount:f,navigation:c,onError:u}),r,o.id),c.setSheetRef(p),d.add(h,f),[f,p]}({halo:n,element:i,model:e,initialSnOptions:b,initialSnPlugins:y,initialError:o,onMount:d,navigation:r,onError:s}),h},async applyProperties(t){const n=Lf("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;u?(async()=>{await h,c.current.setSnOptions(Q(Q(Q({},b),e),{onInitialRender:g(t)}))})():b=Q(Q(Q({},b),e),{onInitialRender:g(t)})})(e)},plugins(e){(async e=>{kf(e),u?(async()=>{await h,c.current.setSnPlugins(e)})():y=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return v}async function tg(e,t,n){let{id:r,options:o,plugins:i,element:a,onRender:s,onError:l,navigation:c}=e;const{modelStore:u,rpcRequestModelStore:d}=n,p="".concat(r);let h=d.get(p);h||(h=t.app.getObject(r),d.set(p,h));const f=await h;u.set(p,f);const m=c||("sheet"===f.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},s={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:l}=t,c="".concat(n);let u,d=l.get(c);d||(d=e.app.getObject(n),l.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,s.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return eu(s),s}(t,n,f):void 0);return"sheet"===f.genericType?async function(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=eg({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}(f,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m):Km(f,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m)}function ng(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var rg,og,ig,ag;function sg(){if(ag)return ig;ag=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return ig=n=>n?"object"!=typeof n?e:n:t}var lg,cg,ug,dg,pg,hg,fg,mg,gg,bg,yg,vg,Sg,xg,Eg,wg,Cg,Lg,kg,Rg,Ig,_g,Og,qg,Tg,Mg,Dg,Pg,Ag,Ng,jg,zg={exports:{}};function Fg(){if(cg)return lg;cg=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return lg={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function Wg(){if(dg)return ug;dg=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};return ug=e}function Bg(){return pg||(pg=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Fg(),i=Wg(),a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[p,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of h)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=d++;i(e,o,t),u[e]=o,l[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(p,"*")),f("MAINVERSION","(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(l[u.NUMERICIDENTIFIER],"|").concat(l[u.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[u.NUMERICIDENTIFIERLOOSE],"|").concat(l[u.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(l[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(l[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(p,"+")),f("BUILD","(?:\\+(".concat(l[u.BUILDIDENTIFIER],"(?:\\.").concat(l[u.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(l[u.MAINVERSION]).concat(l[u.PRERELEASE],"?").concat(l[u.BUILD],"?")),f("FULL","^".concat(l[u.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(l[u.MAINVERSIONLOOSE]).concat(l[u.PRERELEASELOOSE],"?").concat(l[u.BUILD],"?")),f("LOOSE","^".concat(l[u.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(l[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(l[u.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:".concat(l[u.PRERELEASE],")?").concat(l[u.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[u.PRERELEASELOOSE],")?").concat(l[u.BUILD],"?")+")?)?"),f("XRANGE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),f("COERCE","".concat(l[u.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",l[u.COERCEPLAIN]+"(?:".concat(l[u.PRERELEASE],")?")+"(?:".concat(l[u.BUILD],")?")+"(?:$|[^\\d])"),f("COERCERTL",l[u.COERCE],!0),f("COERCERTLFULL",l[u.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(l[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(l[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(l[u.GTLT],"\\s*(").concat(l[u.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],"|").concat(l[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(l[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(zg,zg.exports)),zg.exports}function Hg(){if(gg)return mg;gg=1;const e=Wg(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Fg(),{safeRe:r,safeSrc:o,t:i}=Bg(),a=sg(),{compareIdentifiers:s}=function(){if(fg)return hg;fg=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};return hg={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},hg}();class l{constructor(o,s){if(s=a(s),o instanceof l){if(o.loose===!!s.loose&&o.includePrerelease===!!s.includePrerelease)return o;o=o.version}else if("string"!=typeof o)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof o,'".'));if(o.length>t)throw new TypeError("version is longer than ".concat(t," characters"));e("SemVer",o,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const c=o.trim().match(s.loose?r[i.LOOSE]:r[i.FULL]);if(!c)throw new TypeError("Invalid Version: ".concat(o));if(this.raw=o,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof l)){if("string"==typeof t&&t===this.version)return 0;t=new l(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)}comparePre(t){if(t instanceof l||(t=new l(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return s(r,o)}while(++n)}compareBuild(t){t instanceof l||(t=new l(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return s(r,o)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=new RegExp("^".concat(this.options.loose?o[i.PRERELEASELOOSE]:o[i.PRERELEASE],"$")),n="-".concat(t).match(e);if(!n||n[1]!==t)throw new Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===s(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}return mg=l}function $g(){if(yg)return bg;yg=1;const e=Hg();return bg=(t,n,r)=>new e(t,r).compare(new e(n,r)),bg}function Ug(){if(Tg)return qg;Tg=1;const e=function(){if(Sg)return vg;Sg=1;const e=$g();return vg=(t,n,r)=>0===e(t,n,r),vg}(),t=function(){if(Eg)return xg;Eg=1;const e=$g();return xg=(t,n,r)=>0!==e(t,n,r),xg}(),n=function(){if(Cg)return wg;Cg=1;const e=$g();return wg=(t,n,r)=>e(t,n,r)>0,wg}(),r=function(){if(kg)return Lg;kg=1;const e=$g();return Lg=(t,n,r)=>e(t,n,r)>=0,Lg}(),o=function(){if(Ig)return Rg;Ig=1;const e=$g();return Rg=(t,n,r)=>e(t,n,r)<0,Rg}(),i=function(){if(Og)return _g;Og=1;const e=$g();return _g=(t,n,r)=>e(t,n,r)<=0,_g}();return qg=(a,s,l,c)=>{switch(s){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a===l;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a!==l;case"":case"=":case"==":return e(a,l,c);case"!=":return t(a,l,c);case">":return n(a,l,c);case">=":return r(a,l,c);case"<":return o(a,l,c);case"<=":return i(a,l,c);default:throw new TypeError("Invalid operator: ".concat(s))}},qg}function Gg(){if(Ag)return Pg;Ag=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&h))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(m,R(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),i("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),i("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),i("caret trim",e);let g=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));a&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),i("range list",g);const y=new Map,v=g.map((e=>new o(e,this.options)));for(const e of v){if(f(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const S=[...y.values()];return n.set(t,S),S}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1}}Pg=t;const n=new(og?rg:(og=1,rg=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=sg(),o=function(){if(Dg)return Mg;Dg=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new s(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}Mg=t;const n=sg(),{safeRe:r,t:o}=Bg(),i=Ug(),a=Wg(),s=Hg(),l=Gg();return Mg}(),i=Wg(),a=Hg(),{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=Bg(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:h}=Fg(),f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},b=(e,t)=>(i("comp",e,t),e=x(e,t),i("caret",e),e=v(e,t),i("tildes",e),e=w(e,t),i("xrange",e),e=L(e,t),i("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),y(n)?s="":y(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):y(o)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(i("replaceTilde pr",a),s=">=".concat(n,".").concat(r,".").concat(o,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),i("tilde return",s),s}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),y(n)?l="":y(o)?l=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):y(a)?l="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(i("replaceCaret pr",s),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(i("no pr"),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a," <").concat(+n+1,".0.0-0")),i("caret return",l),l}))},w=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=y(o),u=c||y(a),d=u||y(s),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),s=0,">"===r?(r=">=",u?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n="".concat(r+o,".").concat(a,".").concat(s).concat(l)):u?n=">=".concat(o,".0.0").concat(l," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(a,".0").concat(l," <").concat(o,".").concat(+a+1,".0-0")),i("xRange return",n),n}))},L=(e,t)=>(i("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),k=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),R=e=>(t,n,r,o,i,a,s,l,c,u,d,p)=>(n=y(r)?"":y(o)?">=".concat(r,".0.0").concat(e?"-0":""):y(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=y(c)?"":y(u)?"<".concat(+c+1,".0.0-0"):y(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()),I=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return Pg}var Vg=function(){if(jg)return Ng;jg=1;const e=Gg();return Ng=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},Ng}(),Kg=G(Vg);const Zg={};function Jg(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||Kg(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Zg[i]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const a=(r||o.load)({name:e,version:t}),s=Promise.resolve(a);Zg[i]=s.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new uf("Failed to load visualization: '".concat(n,"'"),e)}))}return Zg[i]}(a.name,a.version,t,o.load).then((e=>(n=n||$m(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=Q({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(Ue(!0,n,e),n):Q(Q({},n),e)}))}};return a}function Xg(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=Jg({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function Yg(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Xg(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(Zg).forEach((t=>{t.split("__")[0]===e&&(Zg[t]=void 0)}))}(e)}}}const Qg={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))}};Qg.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const eb=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Q(Q({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},tb=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var nb=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ie(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=Q(Q({},n.context),{},{translator:r.translator});const[s,l]=Ca({app:e,context:a}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=vt();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),St(xt,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:n.themes,loadTheme:n.loadTheme,root:s});a.themeApi=c.externalAPI;const u={galaxy:{translator:r.translator,flags:ng(n.flags),deviceType:Et(n.context.deviceType),hostConfig:n.hostConfig,anything:n.anything},theme:c.externalAPI,translator:r.translator,nebbie:null},d={app:e,root:s,config:n,public:u,context:a,types:null},p=Yg({halo:d});n.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let h=c.setTheme(n.context.theme),f=null,g=null;const b={render:async e=>(await h,e.id?tg(e,d,l):async function(e,t,n){let{type:r,version:o,fields:i,properties:a,options:s,plugins:l,element:c,extendProperties:u,navigation:d,onRender:p,onError:h}=e,f={};const m=[],{modelStore:g,subscribe:b}=n;let y;try{const e=t.types.get({name:r,version:o});f=await e.initialProperties(a,u);const n=await e.supernova();i&&await mh({sn:n,properties:f,fields:i,children:m},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},f)}catch(e){y=e,f={qInfo:{qType:r},visualization:r}}const v=await t.app.createSessionObject(f);m.length>0&&await v.setFullPropertyTree({qProperty:f,qChildren:m}),g.set(v.id,v);const S=b(v);return Km(v,{options:s,plugins:l,element:c,onRender:p,onError:h},t,d,y,(async()=>{await t.app.destroySessionObject(v.id),S()}))}(e,d,l)),destroy:async()=>{s.destroy()},create:async e=>Zm(e,d,!1,l),generateProperties:async e=>Zm(e,d,!0,l),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=Q(Q(Q({},a),t),{},{translator:r.translator}),t.theme&&(h=c.setTheme(t.theme),await h),t.language&&d.public.translator.language(t.language),s.context(a))},selections:async()=>(f||(f={mount(n){g||(g=function(e){let{element:n,app:r}=e;return m.createPortal(t.createElement(bp,{app:r}),n,gp())}({element:n,app:e}),s.add(g))},unmount(){g&&(s.remove(g),g=null)}}),f),field:async n=>{let r;const o="string"==typeof n?n:n.qLibraryId;if(n.qId)r=n.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const i={fieldName:o,async mount(a){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(o||r," not provided"));if(this._instance)throw new Error("Field or object ".concat(o||r," already mounted"));const c=()=>i.emit("selectionActivated"),u=()=>i.emit("selectionDeactivated");return new Promise((o=>{[this._instance,this._ref]=function(e){let{element:n,app:r,fieldIdentifier:o,qId:i,stateName:a="$",options:s={},renderedCallback:l}=e;const c=t.createRef();return[m.createPortal(t.createElement(nh,{ref:c,app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,initialOptions:s,renderedCallback:l}),n,gp()),c]}({element:a,app:e,fieldIdentifier:n,qId:r,options:th(Q({onSelectionActivated:c,onSelectionDeactivated:u},l)),stateName:l.stateName||"$",renderedCallback:o}),s.add(this._instance)}))},unmount(){this._instance&&(s.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){var t;const n=()=>i.emit("selectionActivated"),r=()=>i.emit("selectionDeactivated");if(null!==(t=i._ref)&&void 0!==t&&t.current){const t=th(Q({onSelectionActivated:n,onSelectionDeactivated:r},e));i._ref.current.setOptions(t)}}}};return eu(i),i},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(n,r,o){b._popoverInstance&&(s.remove(b._popoverInstance),b._popoverInstance=null);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Q({},rh);return Ue(!0,t,e),t}(Q({onPopoverClose:()=>b.emit("fieldPopoverClose")},o));b._popoverInstance=t.createElement(oh,{element:n,key:gp(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(b._popoverInstance)}}};return d.public.nebbie=b,d.types=p,eu(b),b}return o.createConfiguration=t=>e(((e,t)=>({context:eb(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:Q({},t.snapshot||e.snapshot),types:tb(e.types,t.types),themes:tb(e.themes,t.themes),flags:eb(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:eb(e.anything,t.anything)}))(n,t)),o.config=n,o}(Qg);function rb(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const ob=globalThis.crypto||{getRandomValues:()=>123456};function ib(e){return t=>{const n=Ue({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^ob.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=Ue({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const ab=function(e){let{args:t=[],defaultValue:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?e(...t):void 0!==e?e:n},sb=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const s=ab(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},lb=["id","session"],cb=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function ub(e){return!cb.includes(e)}function db(e){const t=ab(e.getLayout);return t.qInfo&&t.qInfo.qId}function pb(e,t){return e.reduce(((e,n)=>Q(Q({},e),function(e,t){let n=db(e);const{delay:r}=t,{id:o,session:i}=e,a=ee(e,lb);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:Q(Q({id:n,session:ab(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return Q(Q({},e),{},{[n]:sb(o,{async:ub(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function hb(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!db(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function fb(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(hb);const n=pb(e,t);return async e=>Promise.resolve(n[e])}function mb(){return()=>Promise.resolve({id:"app-layout"})}const gb={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new rb,r=new ib(n),o=new fb(e,t),i=new mb,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i,getListObject:async()=>{}};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},bb={generator:$m,hook:Qf,theme:vt,locale:te};export{gb as EnigmaMocker,bb as __DO_NOT_USE__,_h as conversion,nb as embed,Rm as onContextMenu,km as onTakeSnapshot,xm as useAction,pm as useApp,um as useAppLayout,Em as useConstraints,ym as useDeviceType,tm as useEffect,am as useElement,gm as useEmbed,_m as useEmitter,hm as useGlobal,Lm as useImperativeHandle,wm as useInteractionState,Om as useKeyboard,lm as useLayout,rm as useMemo,dm as useModel,vm as useNavigation,Cm as useOptions,Sm as usePlugins,im as usePromise,sm as useRect,om as useRef,Im as useRenderState,fm as useSelections,cm as useStaleLayout,em as useState,mm as useTheme,bm as useTranslator};
|
|
16
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),S=g>0?e.substring(v,p):"";if(n=(t="-"===(e=e.substring(h,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,v=0;v<p;v++)m+=d.charAt(v),!((v-b+1)%l)&&v<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+S}},xd({exports:{}});const Od=/,(?![^(]*\))/,Td=/\s(?![^(]*\))/,Md=/^[0-9]+[a-zA-Z%]+?$/,Dd=["none","inset","initial","inherit"],Ad=e=>{if(!e)return;const t=e.split(Td).filter((e=>!Dd.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||Md.test(e))(t)||Dd.includes(t.toLowerCase())?void 0:t;return n},Pd=e=>e?e.split(Od).map((e=>e.trim())):[];function Nd(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function jd(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:Nd(t,n,r,o)}const zd={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Fd={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function Wd(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function Hd(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=Wd(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=Fd[e.bgImage.position]),n}(e),i=function(e){var t;let n=zd.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=zd[r]),n}(e);return r?{url:r,pos:o,size:i}:void 0}}function Bd(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):jd(null==r?void 0:r.color,"","backgroundColor",t,n)}function $d(e,t,n){var r,o;const i=Nd("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&Dd.includes(e.toLowerCase()))return e.toLowerCase();const r=Pd(e);if(1!==r.length)return e;let o=n;if(!o){const n=Pd(t);if(1!==n.length)return e;o=Ad(n[0])}if(!o)return e;const i=Ad(r[0]);return i?e.replace(i,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||i,i,jd(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function Ud(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:i.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color):n.getStyle("object.".concat(r),"title.".concat(t),"color"),backgroundColor:i.backgroundColor||n.getStyle("object.".concat(r),"title.".concat(t),"backgroundColor"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const Gd={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},Vd=["theme","selections"];function Kd(e){var t,n,r,o,i,a,s,l;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:h=!1}=e;const f=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;Vd.includes(n)&&(e[n]=t)})),e}(p),m=(e,t)=>u.getStyle("object.listBox",e,t),g=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e):void 0,b=function(e){var t,n,r,o,i;let{getColorPickerColor:a,theme:s,getListboxStyle:l,overrides:c,checkboxes:u}=e;const d=null===(t=c.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,p=a(d)||l("content","color")||(null===(n=s.palette)||void 0===n?void 0:n.text.primary),h=!u&&(null===(r=null===(o=c.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),f=(null===(i=c.selections)||void 0===i?void 0:i.colors)||{},m=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),i=a(f[e])||l("","dataColors.".concat(e))||"possible"===e&&l("","backgroundColor")||(null===(t=s.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||Gd[e];return{[e]:i,[o]:h?Eu(i,p):p||(null===(n=s.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return Q(Q(Q(Q(Q({},m("selected")),m("alternative")),m("excluded")),m("selectedExcluded")),m("possible"))}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:f,checkboxes:h}),y=f.theme||{},v=g(null===(t=y.header)||void 0===t?void 0:t.fontColor)||m("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?Bd({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color),t):t}({themeApi:u,themeOverrides:y}),x=null!==(n=y.background)&&void 0!==n&&n.image?Hd({bgImage:y.background.image},c):void 0,E=S||m("","backgroundColor")||d.palette.background.default,C=function(e,t){const n=Su(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(E,m),w=function(e){return Eu("#fff",e("content","color"))}(m),L=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},k=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},R=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==x||!x.url||null!=x&&x.url.startsWith("url(")?void 0:"url('".concat(x.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==x?void 0:x.size,backgroundPosition:null==x?void 0:x.pos},header:{color:v,fontSize:(null===(i=y.header)||void 0===i?void 0:i.fontSize)||m("title.main","fontSize"),fontFamily:(null===(a=y.header)||void 0===a?void 0:a.fontFamily)||m("title.main","fontFamily"),fontWeight:R(L.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:L.underline?"underline":"initial",fontStyle:R(L.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:h?void 0:b.possible,color:b.possibleContrast||m("content","color"),fontSize:(null===(s=y.content)||void 0===s?void 0:s.fontSize)||m("content","fontSize"),fontFamily:(null===(l=y.content)||void 0===l?void 0:l.fontFamily)||m("content","fontFamily"),fontWeight:R(k.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:k.underline?"underline":"initial",fontStyle:R(k.italic,"italic","normal")||m("content","fontStyle")||"initial"},search:{color:w,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:C,backdropFilter:"blur(8px)"},selections:b}}function Zd(e){let{alignTo:o,anchorOrigin:i={vertical:"bottom",horizontal:"center"},transformOrigin:a={vertical:"top",horizontal:"center"},show:l,close:u,app:d,fieldName:h,stateName:f="$",autoFocus:m,components:g,checkboxes:b,selectDisabled:y=(()=>!1),sortCriteria:v=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:S="ltr"}=e;const x=Boolean(null==h?void 0:h.qLibraryId),E=l&&Boolean(o.current),[C,w]=n(0),L=$i(),R=p(),[I]=ka({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:f,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:v,qFieldDefs:x?void 0:[h]},qLibraryId:x?h.qLibraryId:void 0}},d,h,f),q=c((()=>{I.lock("/qListObjectDef")}),[I]),T=c((()=>{I.unlock("/qListObjectDef")}),[I]),{translator:M,themeApi:D,keyboardNavigation:A}=s(va),P=p(),N=p(),[j]=ru(d,I,N),[z]=Ta(I),[F]=n((()=>ou({selectDisabled:y}))),W=Zs({containerRef:N,enabled:A}),{checkboxes:H=b}=z||{},B=Kd({themeApi:D,theme:L,components:g,checkboxes:H});if(r((()=>{j&&E&&(j.isModal(I)||j.goModal("/qListObjectDef"))}),[j,E]),!I||!z||!M)return null;const $=!0===z.qListObject.qDimensionInfo.qLocked,U=(e,t)=>{const n="escapeKeyDown"!==t;j.noModal(n),u()},G=Cc({layout:z,model:I,translator:M,selectionState:F,selections:j}),V=au(z);return t.createElement(O,{className:"listbox-container",open:E,onClose:U,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?U():void 0,direction:S},t.createElement(k,{container:!0,direction:"column",gap:0,ref:N},t.createElement(k,{item:!0,container:!0,style:{direction:S,padding:L.spacing(1)}},t.createElement(k,{item:!0},$?t.createElement(_,{onClick:T,disabled:!$,size:"large"},t.createElement(ja,{title:M.get("Listbox.Unlock")})):t.createElement(_,{onClick:q,disabled:!V,size:"large"},t.createElement(Fa,{title:M.get("Listbox.Lock")}))),t.createElement(k,{item:!0,xs:!0}),t.createElement(k,{item:!0},t.createElement(Gc,{layout:z,more:{enabled:!$,actions:G,alignTo:P,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:j,onConfirm:U,onCancel:()=>U(0,"escapeKeyDown")}}))),t.createElement(k,{item:!0,xs:!0},t.createElement("div",{ref:P}),t.createElement(k,{item:!0},t.createElement(Yc,{ref:R,popoverOpen:E,styles:B,visible:!0,model:I,listCount:C,selections:j,selectionState:F,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:W.focusSelection},autoFocus:null==m||m,direction:S})),t.createElement(yc,{model:I,app:d,layout:z,selections:j,selectionState:F,direction:S,onSetListCount:e=>w(e),onCtrlF:()=>{R.current.focus()},styles:B,keyboard:W}))))}function Jd(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:l=null,onClose:c=(()=>{})}=e;const{translator:u}=s(va),d=l||p(),h=$i(),[f,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!f)},b=()=>{m(!1),c()},y=r.selections[i];void 0===y.qTotal&&(y.qTotal=0);const v=y.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},S=(v.qSelected+v.qLocked)/y.qTotal,x=v.qAlternative/y.qTotal,E=(v.qExcluded+v.qLockedExcluded+v.qSelectedExcluded)/y.qTotal,w=v.qSelected+v.qSelectedExcluded+v.qLocked+v.qLockedExcluded,L=0===w&&0===y.qTotal;let R="";y.qTotal===w&&y.qTotal>1?R=u.get("CurrentSelections.All"):w>1&&y.qTotal?R=u.get("CurrentSelections.Of",[w,y.qTotal]):y.qSelectedFieldSelectionInfo&&(R=y.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(R="".concat(r.states[i],": ").concat(R));const I=[{color:h.palette.selected.main,ratio:S},{color:h.palette.selected.alternative,ratio:x},{color:h.palette.selected.excluded,ratio:E}];I.forEach(((e,t)=>{e.offset=t?I[t-1].offset+I[t-1].ratio:0}));let q=null,O=null,T=null,M=null;return l||(q=t.createElement(k,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:y.qLocked?"0.3":""}},t.createElement(C,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.label),t.createElement(C,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},R)),y.qLocked?O=t.createElement(k,{item:!0},t.createElement(_,{size:"large"},t.createElement(ja,null))):y.qOneAndOnlyOne||(O=t.createElement(k,{item:!0},t.createElement(_,{title:u.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(y.qField,r.states[i])},size:"large"},t.createElement(Na,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===L&&I.map((e=>t.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),M=t.createElement(k,{container:!0,gap:1,ref:d,sx:{backgroundColor:h.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:h.palette.action.hover}},onClick:!1===a&&g||null},q,O,T,f&&t.createElement(Zd,{alignTo:d,show:f,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}))),l?t.createElement(Zd,{alignTo:d,show:!0,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}):M}var Xd=e=>Pa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const Yd={item:"".concat("MultiState","-item")},Qd=oa(k)((e=>{let{theme:t}=e;return{["&.".concat(Yd.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function ep(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[l,c]=n(!!i),[u,d]=n(-1),[h,f]=n(i?i.current:null),m=i||p(),{translator:g}=s(va),b=g.get("Selection.ClearAllStates"),y=()=>{d(-1),a()};let v=null;i||(v=t.createElement(t.Fragment,null,t.createElement(k,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(j,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(C,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.label))),t.createElement(k,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(k,{item:!0},t.createElement(_,{size:"large"},t.createElement(Xd,null)))));const S=t.createElement(z,{dense:!0},t.createElement(F,{title:b,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(W,{variant:"contained",fullWidth:!0},b)),r.states.map(((e,n)=>t.createElement(F,{key:n,title:r.label,onClick:e=>((e,t)=>{e.stopPropagation(),c(!1),d(t)})(e,n)},t.createElement(L,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(Jd,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),x=t.createElement(O,{open:l,onClose:()=>{c(!1),a()},anchorEl:h,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},S),E=i?x:t.createElement(Qd,{container:!0,gap:0,className:Yd.item,onClick:e=>{e.currentTarget.contains(e.target)&&(f(e.currentTarget),m.current=e.currentTarget,c(!l))}},v,l&&x,u>-1&&t.createElement(Zd,{alignTo:m,show:u>-1,close:y,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}));return i&&u>-1?t.createElement(Zd,{alignTo:m,show:u>-1,close:y,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}):E}const tp="More",np={item:"".concat(tp,"-item"),badge:"".concat(tp,"-badge")},rp=oa(k)((e=>{let{theme:t}=e;return{["&.".concat(np.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(np.badge)]:{padding:t.spacing(0,1)}}}));function op(e){let{items:r=[],api:o}=e;const i=$i(),[a,s]=n(!1),[l,c]=n(-1),[u,d]=n(null),h=p(),f=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(ep,{field:r[l],api:o,moreAlignTo:h,onClose:f}):t.createElement(Jd,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:h,onClose:f})),t.createElement(rp,{container:!0,gap:0,className:np.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,s(!a))}},t.createElement(k,{item:!0},t.createElement(L,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(C,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(k,{item:!0},t.createElement(_,{size:"large"},t.createElement(Xd,null))),a&&t.createElement(O,{open:a,onClose:()=>{s(!1)},anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},t.createElement(z,{dense:!0},r.map(((e,n)=>t.createElement(F,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(L,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(ep,{field:e,api:o}):t.createElement(Jd,{field:e,api:o}))))))),m)}const ip=120,ap=72;function sp(e){let{api:o,app:i}=e;const a=$i(),[l]=Ia(i),[c]=Ta(l),[u,d]=n({items:[],more:[]}),{modalObjectStore:p}=s(va).selectionStore,[h,f]=Da(),[m,g]=n(0);return r((()=>{if(!f)return;const{width:e}=f,t=Math.floor(e)-ap,n=Math.floor(t/ip);g(n)}),[f]),r((()=>{if(!(i&&l&&c&&m))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach((e=>{const r=e.qField;let o=t[r];var i;void 0===o&&(o={name:r,label:(null===(i=e.qDimensionReferences)||void 0===i||null===(i=i.find((e=>e.qLabel)))||void 0===i?void 0:i.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)}))}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach((e=>n(e.qSelectionObject,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(c);d((t=>{const n=e;if((()=>{const{model:e}=p.get(i.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&n.length+1===t.items.length){const e=t.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:r}=e.selections[0];e.selections=[{qField:r}];const o=t.items.indexOf(e);n.splice(o,0,e)}let r=[];return m<n.length&&(r=n.splice(m-n.length)),{items:n,more:r}}))}),[i,l,c,o.isInModal(),m]),t.createElement(k,{ref:h,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},u.items.map((e=>t.createElement(k,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(ip,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(ep,{field:e,api:o}):t.createElement(Jd,{field:e,api:o})))),u.more.length>0&&t.createElement(k,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(ap,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(op,{items:u.more,api:o})))}var lp=e=>Pa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var cp=e=>Pa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const up=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}}))),o=(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::"),i=(n.qStateNames||[]).map((e=>e)).join("::");o!==i&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function dp(e){let{api:o,app:i}=e;const{translator:a}=s(va),[l]=function(e){const[t]=Ia(e),[o]=Ta(t),[i]=Ma(e),[a,s]=n(null);return r((()=>{i&&t&&o&&up(t,o,i)}),[i,t,o]),r((()=>{if(!o)return;let e=!1,t=!1,n=!1;[o,...o.alternateStates||[]].forEach((r=>{e=e||r.qSelectionObject&&r.qSelectionObject.qBackCount>0,t=t||r.qSelectionObject&&r.qSelectionObject.qForwardCount>0,n=n||(r.qSelectionObject&&r.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[o]),[a,t,o]}(i);return t.createElement(k,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(k,{item:!0},t.createElement(_,{style:{marginRight:"8px"},disabled:!l||!l.canGoBack,title:a.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},t.createElement(lp,null))),t.createElement(k,{item:!0},t.createElement(_,{style:{marginRight:"8px"},disabled:!l||!l.canGoForward,title:a.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},t.createElement(cp,null))),t.createElement(k,{item:!0},t.createElement(_,{disabled:!l||!l.canClear,title:a.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},t.createElement(Oc,null))))}const pp=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function hp(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function fp(){return pp.map(hp).join("")}function mp(e){let{app:n}=e;const r=$i(),[o]=Qc(n);return o?t.createElement(k,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(k,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(dp,{api:o,app:n})),t.createElement(k,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(sp,{api:o,app:n}))):null}let gp;gp="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let bp=null,yp=null;const vp=gp.clearTimeout,Sp=gp.setTimeout,xp=gp.cancelAnimationFrame||gp.mozCancelAnimationFrame||gp.webkitCancelAnimationFrame,Ep=gp.requestAnimationFrame||gp.mozRequestAnimationFrame||gp.webkitRequestAnimationFrame;function Cp(e){let t,n,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&bp(this.__resizeRAF__),this.__resizeRAF__=yp((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=gp.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==xp||null==Ep?(bp=vp,yp=function(e){return Sp(e,20)}):(bp=function([e,t]){xp(e),vp(t)},yp=function(e){const t=Ep((function(){vp(n),e()})),n=Sp((function(){xp(t),e()}),20);return[t,n]});class wp extends f{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,p=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Cp(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:p,scaledWidth:f,width:m}=this.state,g={overflow:"visible"},b={};let y=!1;return r||(0===d&&(y=!0),g.height=0,b.height=d,b.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,b.width=m,b.scaledWidth=f),i&&(y=!1),h(c,{ref:this._setRef,style:{...g,...l},...u},!y&&e(b))}}function Lp(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:i,constraints:a,selections:s}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const a=e.currentTarget.closest(".listbox-container"),l=i();switch(n){case Gs.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(r){Ys(a)||Xs(a)||el(e,t)}else{if(!(Qs(a)||Xs(a)||Ys(a)))break}o();break;case Gs.ENTER:case Gs.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case Gs.ESCAPE:el(e,t),s.isActive()&&s.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==a?void 0:a.select)||(null==a?void 0:a.active),t=i();return e||t})())return;const{keyCode:t,ctrlKey:s=!1,shiftKey:l=!1}=e;switch(t){case Gs.ARROW_UP:r({up:1});break;case Gs.ARROW_DOWN:r({down:1});break;case Gs.PAGE_UP:r({up:o.stop-o.start});break;case Gs.PAGE_DOWN:r({down:o.stop-o.start});break;case Gs.HOME:r({scrollPosition:s&&l?"overflowStart":"start"});break;case Gs.END:r({scrollPosition:s&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const kp=oa("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Rp(e){let{text:n}=e;const{translator:r}=s(va);return t.createElement(kp,null,r.get(n))}const Ip={fontSize:"12px"},_p=oa(H)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(as,"px")}}})),qp=oa(k,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return Q(Q({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),Op=oa(C)((e=>{let{styles:t}=e;return Q(Q({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function Tp(e){let{translator:n,toggleLock:r,keyboard:o,isLoading:i}=e;const a=n.get("SelectionToolbar.ClickToUnlock");return t.createElement(_p,{title:a,tabIndex:o.enabled?0:-1,onClick:r,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:i},i?t.createElement(B,{size:16,variant:"indeterminate",color:"primary"}):t.createElement(ja,{disableRipple:!0,style:Ip}),!i&&t.createElement(C,{fontSize:"14px"},a))}var Mp=e=>Pa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var Dp=e=>Pa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var Ap=e=>Pa((e=>Q(Q({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const Pp="H",Np="C";var jp={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:i,keyboard:a}=e;switch(t.qGrouping){case Pp:return{icon:Dp,tooltip:"Listbox.DrillDown",onClick:void 0};case Np:{const e=n&&i,s=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?Ap:Mp,tooltip:"Listbox.Cyclic",onClick:e?s:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case Gs.SPACE:case Gs.ENTER:s();break;case Gs.TAB:{if(!a.enabled)return;let n;n=e.shiftKey?a.focusSelection():Xs(t)||Ys(t),n||el(e,a)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const zp=q(W)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function Fp(e){let{iconData:n,translator:r,iconStyle:o,disabled:i,keyboard:a}=e;if(!n)return;const{icon:s,tooltip:l,onClick:c,onKeyDown:u}=n,d=s,p=r.get(l);return c?t.createElement(zp,{variant:"outlined",onClick:c,tabIndex:a.innerTabStops?0:-1,title:p,size:"large",disableRipple:!0,disabled:i,onKeyDown:u,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},t.createElement(d,{style:o})):t.createElement(d,{title:p,size:"large",style:Q(Q({},o),{},{padding:"".concat(as,"px")})})}const Wp=500;let Hp=0;function Bp(e){var o,i,a;let{layout:s,translator:l,styles:c,isRtl:u,showLock:d,showSearchIcon:h,constraints:f,onShowSearch:m,classes:g,containerRect:b,isPopover:y,showToolbar:v,showDetachedToolbarOnly:S,containerRef:x,model:E,selectionState:C,isDirectQuery:w,selections:L,keyboard:R,autoConfirm:I,app:q,disablePortal:O}=e;const[T,M]=n(S),[D,A]=n(null==s||null===(o=s.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked),[P,N]=n(!1);r((()=>{var e;A(null==s||null===(e=s.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==s||null===(i=s.qListObject)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.qLocked]);const j=p(null),z=jp.createDimensionIconData({dimInfo:null==s||null===(a=s.qListObject)||void 0===a?void 0:a.qDimensionInfo,app:q,selections:L,isPopover:y,active:!(null!=f&&f.active),keyboard:R}),F=d&&D,W=!d&&D,H=h||W||z,B=os-(H?as:0),$=u?os-(H?as:0):is,U=(h?ss:0)+(W?ss:0)+(z?ss:0),G=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-Hp<Wp)return Promise.resolve();if(r)return()=>{};i(!0),Hp=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:D,setLocked:A,settingLockedState:P,setSettingLockedState:N,model:E}),V=Cc({layout:s,model:E,translator:l,selectionState:C,isDirectQuery:w,selections:L}),K=D||!d?void 0:[{key:"lock",type:void 0,label:l.get("SelectionToolbar.ClickToLock"),getSvgIconShape:za,enabled:()=>!P&&!C.selectDisabled()&&au(s),action:G}],Z=null!=f&&f.active?t.createElement(Vc,{title:l.get("Listbox.Search"),size:"large",style:Q(Q({},Ip),{},{padding:"".concat(as,"px")})}):t.createElement(_,{onClick:m,tabIndex:-1,title:l.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(Vc,{style:Ip}));r((()=>{if(!j.current||!b)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:s,paddingLeft:l,paddingRight:c}=e;const u=l+c,d=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+s+u+2+128,p=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:b,titleRef:j,iconsWidth:U,paddingLeft:B,paddingRight:$});M(S||e)}),[U,B,$,j.current,S,Object.entries(b||{}).sort().join(",")]);const J=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,extraItems:a,selections:s,keyboard:l,autoConfirm:c,disablePortal:u}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:a,more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:u},selections:{show:n,api:s,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!y&&T,showToolbar:v,containerRef:x,isLocked:D,extraItems:K,listboxSelectionToolbarItems:V,selections:L,keyboard:R,autoConfirm:I,disablePortal:O}),Y=t.createElement(Gc,X({isRtl:u,layout:s},J));if(S)return Y;const ee=W?t.createElement(ja,{size:"large",style:Q(Q({},Ip),{},{padding:"".concat(as,"px")})}):void 0;return t.createElement(qp,{item:!0,container:!0,styles:c,isRtl:u,marginY:1,paddingLeft:"".concat(B,"px"),paddingRight:"".concat($,"px"),className:"header-container"},F&&t.createElement(Tp,{isLoading:P,translator:l,toggleLock:G,keyboard:R}),H&&t.createElement(k,{item:!0,container:!0,alignItems:"center",width:U,className:"header-action-container"},ee||h&&Z,t.createElement(Fp,{iconData:z,iconStyle:Ip,disabled:L.isActive()&&y,translator:l,keyboard:R})),t.createElement(k,{item:!0,xs:!0,minWidth:0,justifyContent:u?"flex-end":"flex-start",className:g.listBoxHeader},t.createElement(Op,{variant:"h6",noWrap:!0,ref:j,title:s.title,styles:c},s.title)),t.createElement(k,{item:!0,display:"flex"},Y))}const $p="ListBoxInline",Up={listBoxHeader:"".concat($p,"-listBoxHeader"),screenReaderOnly:"".concat($p,"-screenReaderOnly"),listboxWrapper:"".concat($p,"-listboxWrapper")},Gp=oa(k,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return Q(Q({},o.background),{},{["& .".concat(Up.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Up.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Up.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const Vp=t.memo((function(e){var o,a,l,u;let{options:d,layout:h}=e;const{app:f,direction:m,frequencyMode:g,checkboxes:b,search:y=!0,focusSearch:v=!1,rangeSelect:S=!0,model:x,selections:E,update:C,fetchStart:w,postProcessPages:L,calculatePagesHeight:R,showGray:I=!0,scrollState:_,renderedCallback:q,toolbar:O=!0,isPopover:T=!1,showLock:M=!1,components:D,selectDisabled:A=(()=>!1),disablePortal:P=!0}=d,N=$i(),{translator:j,keyboardNavigation:z,themeApi:F,constraints:W}=s(va),{checkboxes:H=b}=h||{},B=Kd({app:f,themeApi:F,theme:N,components:D,checkboxes:H}),$=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==f?void 0:f.layout}),U=p(),G=p(),[V,K]=Da(),[Z,J]=n(!1),[X,Y]=n(!1),ee=p(!1),[te,ne]=n({down:0,up:0,scrollPosition:""}),re=e=>ne((t=>Q(Q({},t),e))),[oe,ie]=n({start:0,stop:0}),[ae]=Qc(f),[se]=n((()=>ou({selectDisabled:A}))),le=Zs({containerRef:U,enabled:z}),ce=c((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:f,appSelections:ae})),[f,ae]),ue=null==h?void 0:h.qListObject.qDimensionInfo.qError,de=ue&&W.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:pe,handleOnMouseEnter:he,handleOnMouseLeave:fe,globalKeyDown:me}=i((()=>Lp({keyboard:le,hovering:ee,updateKeyScroll:re,currentScrollIndex:oe,constraints:W,isModal:ce,selections:E})),[le,ee,re,U,oe,f,ae,W,ce]);r((()=>(document.addEventListener("keydown",me),()=>{document.removeEventListener("keydown",me)})),[me]),r((()=>{!0===y&&Y(!0);const e=()=>{J(!0)},t=()=>{J(!1),"toggle"===y&&Y(!1)};return T&&(E.isActive()||(E.on("activated",e),E.on("deactivated",t)),J(T)),O&&E&&(E.isModal()||(E.on("activated",e),E.on("deactivated",t)),J(T||E.isActive())),()=>{E&&E.removeListener&&(E.removeListener("activated",e),E.removeListener("deactivated",t))}}),[O,E,T]);const{wildCardSearch:ge,searchEnabled:be,autoConfirm:ye=!1,layoutOptions:ve={}}=null!=h?h:{},Se=null==h||null===(o=h.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked,xe=!1!==be&&"toggle"===y&&!Se,Ee=(null==h||null===(a=h.title)||void 0===a?void 0:a.length)&&!1!==(null==h?void 0:h.showTitle),Ce=O&&!Ee&&!T,we=O&&Ee||T,Le="rtl"===m;if(!x||!h||!j)return null;const ke=!0===y||"toggle"===y&&X&&!1!==be,Re=null!==(l=ve.dense)&&void 0!==l&&l,Ie=()=>{Y(!X)},_e=()=>{"toggle"===y?Ie():G.current.focus()},qe=ke&&("toggle"===y||v),Oe="grid"===(null==ve?void 0:ve.dataLayout),Te=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=Dl({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===i?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Oe,dense:Re,height:null===(u=U.current)||void 0===u?void 0:u.clientHeight,layoutOrder:ve.layoutOrder});ue&&(null==q||q());const Me=we?gs+cs:0,De=t.createElement(Bp,{app:f,showSearchIcon:xe,onShowSearch:Ie,isPopover:T,showToolbar:Z,isDirectQuery:$,autoConfirm:ye,showDetachedToolbarOnly:Ce,layout:h,translator:j,styles:B,isRtl:Le,showLock:M,constraints:W,classes:Up,containerRect:K,containerRef:U,model:x,selectionState:se,selections:E,keyboard:le,disablePortal:P});return t.createElement(t.Fragment,null,Ce&&De,t.createElement(Gp,{className:"listbox-container",container:!0,tabIndex:le.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Te,styles:B,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:pe,onMouseEnter:he,onMouseLeave:fe,ref:e=>{U.current=e,V(e)},isGridMode:Oe,"aria-label":le.active?j.get("Listbox.ScreenReaderInstructions"):""},we&&De,t.createElement(k,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Me,role:"region","aria-label":j.get("Listbox.ResultFilterLabel")},t.createElement(k,{item:!0},t.createElement(Yc,{ref:G,selections:E,selectionState:se,model:x,dense:Re,keyboard:le,visible:ke,search:y,autoFocus:qe,beginSelectionOnFocus:!T,wildCardSearch:ge,searchEnabled:be,direction:m,hide:xe&&Ie,styles:B})),t.createElement(k,{item:!0,xs:!0,className:Up.listboxWrapper},ue?t.createElement(Rp,{text:de}):t.createElement(wp,null,(e=>{let{height:n,width:r}=e;return t.createElement(yc,{model:x,app:f,constraints:W,layout:h,selections:E,selectionState:se,direction:m,frequencyMode:g,rangeSelect:S,checkboxes:H,height:n,width:r,update:C,fetchStart:w,postProcessPages:L,calculatePagesHeight:R,keyboard:le,showGray:I,scrollState:_,keyScroll:{state:te,reset:()=>ne({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:oe,set:ie},renderedCallback:q,onCtrlF:_e,isModal:ce,styles:B})}))))))}));function Kp(e){let{options:n={}}=e;const{model:r}=n,[o]=Ta(r);return t.createElement(Vp,{options:n,layout:o})}function Zp(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=La(),{sessionModel:c}=i,u=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],d=Object.keys(i).filter((e=>u.includes(e)));if(d.length)throw new Error('Option "'.concat(d.join(", "),'" is not applicable for existing objects.'));return r((()=>{let e=!1,n=()=>{};return async function(){const r=await Promise.resolve(c||async function(e){return l.get(e)||await t.getObject(e)}(o));if(!e){if(!l.get(r.id)){l.set(r.id,r);const e=()=>{l.clear(r.id)};r.once("closed",e),n=()=>{r.removeListener("closed",e)}}s(r)}}(),()=>{e=!0,n()}}),[]),a}const Jp={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function Xp(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const Yp=["__DO_NOT_USE__"],Qp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return Q(Q(Q({},ee(e,Yp)),n),t)},eh=o(((e,o)=>{let{app:s,fieldIdentifier:l,qId:c,stateName:u,element:d,initialOptions:h,renderedCallback:f}=e;const[m,g]=n(h),{isExistingObject:b,hasExternalSelectionsApi:y}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:c,options:m});b||Object.assign(m,{frequencyMode:Xp(m.frequencyMode)});const[v,S]=n(0);r((()=>{if(v)throw new Error("Source or selection Api can not change after a listbox has been mounted");S(v+1)}),[b,y]);const x=b?Zp({app:s,qId:c,options:m}):function(e){var t;let{app:o,fieldIdentifier:i,stateName:a,options:s={}}=e;const[l,c]=n(""),[u,d]=n(!0),[h,f]=n(),[m,g]=n(),b=null!==(t=s.title)&&void 0!==t?t:m;let{histogram:y=!1,frequencyMode:v="N"}=s;l&&l.failedToFetchFieldDef&&(y=!1,v="N"),r((()=>{const e=y||"N"!==v;i.qLibraryId&&e?async function(){try{const e=await o.getDimension(i.qLibraryId),t=await e.getLayout();g(t.qDim.title),"N"===t.qDim.qGrouping?c(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):c({multiFieldDim:!0}),d(!1)}catch(e){throw d(!1),c({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(d(!1),g(i))}),[]);const{dense:S,checkboxes:x,listLayout:E,properties:C={}}=s,w={dense:S};"horizontal"===E&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const L=p();L.current||(L.current=fp());const k=Ue(!0,{},Jp,{qInfo:{qId:L.current},qListObjectDef:{qStateName:a,qFrequencyMode:y&&"N"===v?"V":v},histogram:y,checkboxes:x,layoutOptions:w,title:b});let R;if(Ue(!0,k,C),i.qLibraryId?(k.qListObjectDef.qLibraryId=i.qLibraryId,R=i.qLibraryId):(k.qListObjectDef.qDef.qFieldDefs=[i],R=i),"P"!==v&&y)if(null!=l&&l.multiFieldDim)k.frequencyMax="fetch";else{const e=i.qLibraryId?l:R;k.frequencyMax={qValueExpression:hc(e)}}const[I]=ka(k,u?null:o,R,a);return r((()=>{I&&f(I)}),[I]),h}({app:s,fieldIdentifier:l,stateName:u,options:m}),E=p(d),C=y?m.selectionsApi:ru(s,x,[E,".njs-action-toolbar-more",".njs-action-toolbar-popover"],m)[0],w=i((()=>Q(Q({},m),{},{selections:C,model:x,app:s,renderedCallback:f})),[m,C,x,s]);return a(o,(()=>({setOptions:e=>g(e)})),[]),C&&x?t.createElement(Kp,{options:w}):null}));const th={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function nh(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(Zd,{show:l,app:r,alignTo:{current:a},anchorOrigin:s.anchorOrigin,transformOrigin:s.transformOrigin,close:()=>{c(!1),s.onPopoverClose&&s.onPopoverClose()},fieldName:o,stateName:i,autoFocus:s.autoFocus,components:s.components,sortCriteria:s.sortCriteria,direction:s.direction})}function rh(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function oh(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const ih=e=>({qDef:{qFieldDefs:[e]}}),ah=e=>({qDef:{qDef:e}});function sh(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?ih(e):Q(Q({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||fp(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<i.maxDimensions()?(t.qDimensions.push(r),rh(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return oh(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?ah(e):Q(Q({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||fp(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),rh(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];oh(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const lh=e=>({qDef:{qFieldDefs:[e]}});function ch(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?lh(e):Q(Q({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||fp(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===i.dimensions().length,canAddMeasure:()=>!1};return i}const uh=e=>({qDef:{qFieldDefs:[e]}}),dh=e=>{let t;return t="string"==typeof e?Ue(!0,{},Jp,{qListObjectDef:uh(e)}):e.qListObjectDef?Ue(!0,{},Jp,e):Ue(!0,{},Jp,{qListObjectDef:e}),t};function ph(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=dh(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||fp(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function hh(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function fh(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:s}=a,l=s.split("/");let c=r;for(let e=0;e<l.length;e++){const t=l[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?ch:e.match("/qChildListDef")?ph:sh}(s),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===hh(t)?await d.addMeasure(t):await d.addDimension(t)}}var mh={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var gh={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}};const bh=2**53-1;function yh(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function vh(e,t){const n=Ue(!0,{},t,e);return mh.getValue(n,"qOtherTotalSpec.qOtherCounted")||mh.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),mh.getValue(n,"qOtherTotalSpec.qOtherLimit")||mh.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Sh(e,t){return Ue(!0,{},t,e)}function xh(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var Eh={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===mh.getValue(e,t)&&mh.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:yh,importCommonProperties:function(e,t,n){const r="masterobject"===mh.getValue(t,"properties.qInfo.qType")?"masterobject":mh.getValue(n,"qInfo.qType");mh.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:vh,createDefaultMeasure:Sh,resolveValue:xh,getHypercubePath:function(e){const t=mh.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(gh.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,gh.indexRemoved(n.qInterColumnSortOrder,i))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=Ue(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?mh.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||yh(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ue(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},i=n.measures||{max:0},a=xh(i.max,r.dimensions.length,bh),s=xh(i.min,r.dimensions.length,0);return{maxDimensions:xh(o.max,a,bh),minDimensions:xh(o.min,s,0),maxMeasures:a,minMeasures:s}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.dimensions.length;++s)o.qDimensions.length<n?o.qDimensions.push(vh(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(vh(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(vh(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(vh(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(vh(a.excludedDimensions[s],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.measures.length;++s)o.qMeasures.length<n?o.qMeasures.push(Sh(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Sh(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Sh(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(Sh(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Sh(a.excludedMeasures[s],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=mh.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=mh.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var Ch={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,i=mh.getValue(o,n||""),a=i.qHyperCubeDef,s=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),s.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();gh.isOrderedSubset(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(Eh.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!mh.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},s=Eh.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=mh.getValue(n,i||"").qHyperCubeDef,c=mh.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h}=Eh.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=Eh.getDefaultDimension(),defaultMeasure:m=Eh.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,Eh.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h})&&Eh.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h,newHyperCubeDef:c}),Eh.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:f}),Eh.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:h,newHyperCubeDef:c,defaultMeasure:m}),Eh.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),Eh.copyPropertyIfExist("qMaxStackedCells",l,c),Eh.copyPropertyIfExist("qNoOfLeftDims",l,c),Eh.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),Eh.copyPropertyOrSetDefault("qMode",l,c,"S"),Eh.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),Eh.copyPropertyOrSetDefault("qSortbyYValue",l,c),Eh.copyPropertyOrSetDefault("qIndentMode",l,c),Eh.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),Eh.importCommonProperties(s,t,n),Eh.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),Eh.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const wh=e=>mh.getValue(e,"data.targets.0.propertyPath"),Lh=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Ch.exportProperties})(wh(e))},kh=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Ch.importProperties})(wh(e))},Rh=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:a=!1}=e;const s=i?{qProperty:i}:await n.getFullPropertyTree(),l=r.current.getQae(),c=Lh(l);if(!c)throw new Error("Source chart does not support conversion");const u=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),d=u.qae,p=kh(d);if(!p)throw new Error("Target chart does not support conversion");return p({exportFormat:c({propertyTree:s,hypercubePath:Eh.getHypercubePath(l),viewDataMode:a}),initialProperties:Q({qInfo:{qType:o},visualization:o},mh.getValue(d,"properties.initial",{})),dataDefinition:mh.getValue(d,"data.targets.0.",{}),hypercubePath:Eh.getHypercubePath(d),viewDataMode:a})},Ih={hypercube:Ch};var _h=e=>Pa((e=>Q(Q({},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 qh(e){let{d:n}=e;const r=$i();let o="inherit",i=r.palette.success.main;n.missing?i=r.palette.warning.main:n.error&&(o="error",i=r.palette.error.main);const a={color:i},s=t.createElement(C,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement($,null,n.missing||n.error?t.createElement(_h,{style:a}):t.createElement(es,{style:a})));return t.createElement(k,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(k,{item:!0},s),t.createElement(k,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(C,{noWrap:!0,component:"p"},t.createElement(C,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(C,{component:"span"}," "),t.createElement(C,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function Oh(e){let{data:n}=e;const r=$i();return t.createElement(k,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(qh,{d:e,key:n})));return o.length>0&&t.createElement(k,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(C,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function Th(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(k,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(k,{item:!0},t.createElement(_h,{style:{fontSize:"38px"}})),t.createElement(k,{item:!0},t.createElement(C,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(k,{item:!0},t.createElement(C,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(Oh,{data:o}))}const Mh=["size"],Dh="Progress",Ah={root:"".concat(Dh,"-root"),front:"".concat(Dh,"-front"),back:"".concat(Dh,"-back")},Ph=oa("div")((e=>{let{theme:t}=e;return{["&.".concat(Ah.root)]:{position:"relative",display:"inline-block"},["& .".concat(Ah.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(Ah.back)]:{color:t.palette.divider}}})),Nh={small:16,medium:32,large:64,xlarge:128};function jh(e){let{size:n="medium"}=e,r=ee(e,Mh);const o=Nh[n];return t.createElement(Ph,{className:Ah.root},t.createElement(B,X({variant:"determinate",value:100,className:Ah.back,size:o,thickness:3},r)),t.createElement(B,X({variant:"indeterminate",disableShrink:!0,className:Ah.front,size:o,thickness:3},r)))}const zh=["cancel","translator"],Fh=["retry","translator"],Wh={stripes:"".concat("LongRunningQuery","-stripes")},Hh=oa(k)((()=>({["& .".concat(Wh.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 Bh(e){let{cancel:n,translator:r}=e,o=ee(e,zh);return t.createElement(t.Fragment,null,t.createElement(Hh,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(k,{item:!0},t.createElement(jh,null)),t.createElement(k,{item:!0},t.createElement(C,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(k,X({item:!0},o),t.createElement(W,{variant:"contained",onClick:n},r.get("Cancel"))))}function $h(e){let{retry:n,translator:r}=e,o=ee(e,Fh);return t.createElement(t.Fragment,null,t.createElement(k,{item:!0},t.createElement(_h,{style:{fontSize:"38px"}})),t.createElement(k,{item:!0},t.createElement(C,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(k,{item:!0},t.createElement(W,X({variant:"contained",onClick:n},o),r.get("Retry"))))}function Uh(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=s(va);return t.createElement(k,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Wh.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(Bh,{cancel:o.cancel,translator:i,className:Wh.cancel}),r&&t.createElement($h,{retry:o.retry,translator:i,className:Wh.retry}))}function Gh(){return t.createElement(k,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(jh,{size:"large"}))}const Vh="Header",Kh={containerStyle:"".concat(Vh,"-containerStyle"),containerTitleStyle:"".concat(Vh,"-containerTitleStyle")},Zh=oa(k)((e=>{let{theme:t}=e;return{["&.".concat(Kh.containerStyle)]:{flexGrow:0},["&.".concat(Kh.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Jh="njs-cell-title",Xh="njs-cell-sub-title";function Yh(e){let{layout:o,sn:i,anchorEl:a,hovering:s,focusHandler:l,titleStyles:c={}}=e;const u=o.showTitles&&!!o.title,d=o.showTitles&&!!o.subtitle,p=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[h,f]=n([]);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{f([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]);const m=[Kh.containerStyle,...u||d?[Kh.containerTitleStyle]:[]],g=s||p,b=t.createElement(Gc,{show:!1,selections:{show:p,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:h,popover:{show:g,anchorEl:a},focusHandler:l,layout:o});return t.createElement(Zh,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},t.createElement(k,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(k,{container:!0,wrap:"nowrap",direction:"column"},u&&t.createElement(R,{title:o.title},t.createElement(C,{variant:"h6",noWrap:!0,className:Jh,style:c.main},o.title)),d&&t.createElement(R,{title:o.subtitle},t.createElement(C,{variant:"body2",noWrap:!0,className:Xh,style:c.subTitle},o.subtitle)))),t.createElement(k,{item:!0},b))}const Qh={itemStyle:"".concat("Footer","-itemStyle")},ef=oa(k)((e=>{let{theme:t}=e;return{["& .".concat(Qh.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1),width:"100%"}}})),tf="njs-cell-footer";function nf(e){let{layout:n,titleStyles:r={}}=e;return n&&n.showTitles&&n.footnote?t.createElement(ef,{container:!0},t.createElement(k,{item:!0,className:Qh.itemStyle},t.createElement(R,{title:n.footnote},t.createElement(C,{noWrap:!0,variant:"body2",className:tf,style:r.footer},n.footnote)))):null}class rf{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 of="njs-viz";function af(e){let{sn:o,snOptions:i,snPlugins:a,layout:l,appLayout:u,halo:d}=e;const{component:p}=o,{theme:h,language:f,constraints:m,interactions:g,keyboardNavigation:b}=s(va),[y]=n((()=>new rf)),[v,S]=n(!1),[x,E]=n(0),[C,w,L]=Da(),[k,R]=n(null),I=c((e=>{e&&R(e)}),[]);return r((()=>{if(k)return p.created({options:i}),p.mounted(k),S(!0),()=>{y.stop(),p.willUnmount()}}),[k,p]),r((()=>{v&&k&&w&&(!p.isHooked&&l&&l.qSelectionInfo&&l.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),m.edit||e.push("edit"),d.app&&d.app.session&&e.push("fetch"),Promise.resolve(p.render({layout:l,options:i,plugins:a,embed:d.public.nebbie,context:Q({constraints:m,interactions:g,theme:d.public.theme,appLayout:u,keyboardNavigation:b},p.isHooked?{}:{logicalSize:o.logicalSize({layout:l}),localeInfo:(u||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===x&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),E(x+1))}))})))}),[w,i,a,k,L,l,u,h,f,m,g,v,b]),t.createElement("div",{ref:C,"data-render-count":x,style:{position:"relative",height:"100%"},className:of},t.createElement("div",{ref:I,style:{position:"absolute",width:"100%",height:"100%"}}))}const sf={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart"},lf=(e,t,n,r)=>{const o=i((()=>{if(e&&t){const o=e.components?e.components.find((e=>"general"===e.key)):null,i=(r=e.visualization,sf[r.toLowerCase()]?sf[r.toLowerCase()]:r),a={main:Ud(o,"main",t,i),footer:Ud(o,"footer",t,i),subTitle:Ud(o,"subTitle",t,i)},s=Bd(o,t,i),l=Hd(o,n),c=function(e,t,n){const r=jd(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||Nd("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(o,t,i),u=function(e,t,n){return(null==e?void 0:e.borderRadius)||Nd("","borderRadius",t,n)}(o,t,i);return{titleStyles:a,bgColor:s,bgImage:l,border:c,borderRadius:u,boxShadow:$d(o,t,i)}}var r;return{}}),[e,t,n,r]);return o};class cf extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const uf=["action-button","sn-nav-menu"],df=["pivot-table","table","sn-table","sn-pivot-table","kpi","map","filterpane","sn-calendar","sn-filter-pane","sn-layout-container","sn-listbox","sn-shape","sn-tabbed-container"],pf=e=>{let{layout:t,isError:n,senseTheme:r,titleStyles:o}=e;const i=null==r?void 0:r.getStyle("","","_cards"),a=(e=>{let{isCardTheme:t,layout:n,isError:r}=e;const o=null==n?void 0:n.visualization;return!!t&&(!!r||-1===df.indexOf(o)&&!(!(null==n?void 0:n.showTitles)&&-1!==uf.indexOf(o)))})({isCardTheme:i,layout:t,isError:n});if(i){const e=(null==t?void 0:t.showTitles)&&!(null==t||!t.title),n=(null==t?void 0:t.showTitles)&&!(null==t||!t.subtitle),r=(null==t?void 0:t.showTitles)&&!(null==t||!t.footnote);let i;return e&&a&&(o.main.padding="10px 10px 0"),n&&a&&(o.subTitle.padding=e?"0 10px":"10px 10px 0"),r&&(o.footer.borderTop="1px solid #d9d9d9",o.footer.padding="6px 10px"),a&&(i="".concat(e||n?"0":"10px"," 10px ").concat(r?"0":"5px")),i}},hf="njs-cell",ff="njs-cell-body",mf=(e,t)=>{switch(t.type){case"LOADING":return Q(Q({},e),{},{loading:!0});case"LOADED":return Q(Q({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return Q(Q({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return Q(Q({},e),{},{longRunningQuery:!0});case"ERROR":return Q(Q({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function gf(e){let{delay:o=750}=e;const[i,a]=n(!1);return r((()=>{const e=setTimeout((()=>a(!0)),o);return()=>clearTimeout(e)}),[]),i?t.createElement(Gh,null):null}const bf=e=>!e.qError||7005===e.qError.qErrorCode,yf=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,s=i&&!a&&t[e].qError,l=a&&t[e].qCalcCondMsg,c="".concat(s?r:a?l||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!s&&e>=t.length||a,error:s}})),vf=e=>e&&(Array.isArray(e)?e:[e])||[],Sf=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),s=yf(o,vf(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=yf(i,vf(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:s,reqMeasErrors:l}},xf=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:s,hasLayoutErrors:l,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,s=!1;const l=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),h=u.resolveLayout(n),f=vf(h.qDimensionInfo||h.qItems).filter(bf),m=vf(h.qMeasureInfo).filter(bf);if(o+=d,i+=p,(f.length<d||m.length<p)&&(r=!0),h.qError){a=!0,s=7005===h.qError.qErrorCode;const t=s&&h.qCalcCondMsg?h.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=p||await r.getProperties();p=n;const o=Sf(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=u.filter((e=>!(e.missing||e.error))).length,f=e.get("Visualization.Incomplete.Dimensions",[h,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),b=[{title:f,descriptions:[...u]},{title:g,descriptions:[...d]}],y=l?c:b;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:y}]};function Ef(){return new se}const Cf=o(((e,o)=>{var i;let{halo:c,model:u,initialSnOptions:d,initialSnPlugins:h,initialError:f,onMount:m,currentId:g,emitter:b,navigation:y,onError:v}=e;const{app:S,types:x}=c,{nebbie:E}=c.public,{theme:C,translator:w,language:L,keyboardNavigation:R,disableCellPadding:_=!1}=s(va),[q]=n(b||Ef),O=$i(),[T,M,D]=Da(),[A,P]=l(mf,{loading:!1,loaded:!1,longRunningQuery:!1,error:(N=f)?{title:N.message}:null,sn:null,visualization:null});var N;const[j,z]=n(u),[F,{validating:W,canCancel:H,canRetry:B},$]=Ta(j),[U]=Ma(S),[G,V,K]=Da(),[Z,J]=n(d),[X,Y]=n(h),ee="njs-cell-".concat(g),[te]=ru(S,j,["#".concat(ee),".njs-action-toolbar-popover"]),[ne,re]=n(!1),oe=p({enter:null,leave:null}),{titleStyles:ie,bgColor:ae,bgImage:se,border:le,borderRadius:ce,boxShadow:ue}=lf(F,c.public.theme,c.app,C),de=p({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{eu(de.current)}),[]),de.current.blurCallback=e=>{c.root.toggleFocusOfCells(),e&&K&&K.focus()},de.current.refocusContent=()=>{A.sn.component&&"function"==typeof A.sn.component.focus&&A.sn.component.focus()};r((()=>{if(f)return void m();if(!U||!F)return;if(A.visualization===F.visualization&&A.sn)return void(async e=>{const[t,n]=await xf(w,F,e.generator.qae.data,j);P(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:A.sn,layout:F,model:j})})(A.sn);const e=x.getSupportedVersion(F.visualization,F.version);return(async(e,t)=>{P({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,onMount:d,navigation:p}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),h=e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,navigation:p});h&&(t({type:"LOADED",sn:h,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message,errorObject:e}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:P,types:x,visualization:e,version:t,model:j,app:S,selections:te,nebbie:E,focusHandler:de.current,emitter:q,onMount:m,navigation:y})})(F.visualization,e),()=>{}}),[x,A.sn,j,te,F,U,L]),r((()=>{if(!W)return;const e=setTimeout((()=>P({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[W]),a(o,(()=>({getQae:()=>A.sn.generator.qae,toggleFocus(e){"function"==typeof A.sn.component.focus&&(e?A.sn.component.focus():A.sn.component.blur())},setSnOptions:J,setSnPlugins:Y,setModel:z,getImperativeHandle(){var e;return null!==(e=A.sn)&&void 0!==e&&e.component&&"function"==typeof A.sn.component.getImperativeHandle?A.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=M;let n=JSON.parse(JSON.stringify(F));return"function"==typeof A.sn.component.setSnapshotData&&(n=await A.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:w.language(),theme:O.name,appLayout:U,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof c.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return c.config.snapshot.capture(e)}})),[A.sn,V,M,F,O.name,U]);let pe=null;if(A.loading&&!A.longRunningQuery)pe=t.createElement(gf,null);else if(A.error){if(v){v(A.error.errorObject?A.error.errorObject:new cf(A.error.title))}pe=t.createElement(Th,A.error)}else A.loaded&&(pe=t.createElement(af,{key:F.visualization,sn:A.sn,halo:c,snOptions:Z,snPlugins:X,layout:F,appLayout:U}));const he=null===(i=c.public.galaxy)||void 0===i?void 0:i.flags;let fe,me;if(_)fe=!1,me=void 0;else if(null!=he&&he.isEnabled("VNA-13_CELLPADDING_FROM_THEME")){const e=c.public.theme;fe=!1,me=pf({layout:F,isError:A.error,senseTheme:e,titleStyles:ie})}else fe=!0,me=void 0;return t.createElement(I,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:ae||"unset",backgroundImage:se&&se.url?"url(".concat(se.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:se&&se.size,backgroundPosition:se&&se.pos,border:le,borderRadius:ce,boxShadow:ue,boxSizing:"border-box"},elevation:0,square:!0,className:hf,ref:T,id:ee,onMouseEnter:()=>{oe.current.leave&&clearTimeout(oe.current.leave),oe.enter||(oe.current.enter=setTimeout((()=>{re(!0),oe.current.enter=null}),250))},onMouseLeave:()=>{oe.current.enter&&clearTimeout(oe.current.enter),oe.current.leave||(oe.current.leave=setTimeout((()=>{re(!1),oe.current.leave=null}),750))}},t.createElement(k,{container:!0,direction:"column",gap:0,style:Q(Q({position:"relative",width:"100%",height:"100%"},fe?{padding:O.spacing(1)}:{}),A.longRunningQuery?{opacity:"0.3"}:{})},D&&F&&A.sn&&t.createElement(Yh,{layout:F,sn:A.sn,anchorEl:D,hovering:ne,focusHandler:de.current,titleStyles:ie}," "),t.createElement(k,{tabIndex:R?0:-1,onKeyDown:R?e=>{["Enter"," ","Spacebar"].includes(e.key)&&c.root.toggleFocusOfCells(g)}:null,item:!0,xs:!0,className:ff,style:Q({height:"100%"},me?{padding:me}:{}),ref:G},pe),D&&F&&A.sn&&t.createElement(nf,{layout:F,titleStyles:ie})),A.longRunningQuery&&t.createElement(Uh,{canCancel:H,canRetry:B,api:$}))}));function wf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Lf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return wf(e)&&wf(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...Lf("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function kf(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))}))}const Rf=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},If=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),_f=Ue.bind(null,!0),qf={},{isArray:Of}=Array;function Tf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Mf(e){return void 0===e}function Df(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Af(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=Mf(e[r||t])?i:e[t],e=e[r||t]})),e}function Pf(e,t){let n=!0;if(Tf(e)&&Tf(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Pf(e[r],t[r])||(n=!1)})),n);if(Of(e)&&Of(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Pf(e[n],t[n]))return!1;return!0}return e===t}qf.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?_f({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Pf(i,a)||Df(t,o)||(Mf(a)?r.push({op:"add",path:s,value:i}):Tf(i)&&Tf(a)?r=r.concat(qf.generate(a,i,s)):Of(i)&&Of(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Mf(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Pf(t,o))return r;if(!Mf(t[0])&&Mf(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(qf.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{Mf(t[o])&&!Df(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},qf.apply=function(e,t){t.forEach((t=>{let n=Af(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Of(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Of(o)&&Of(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Tf(o)&&Tf(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Df(a,e)&&delete a[e]})),_f(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=Af(e,t.from);Of(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Of(n)?n.splice(+r,1):delete n[r]);var a}))},qf.clone=function(e){return _f({},e)},qf.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},qf.updateObject=function(e,t){Object.keys(e).length?qf.apply(e,qf.generate(e,t)):_f(e,t)};const Nf=e=>t=>{const n=(r=Q(Q({},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(se.prototype).forEach((e=>{r[e]=se.prototype[e]})),se.init(r),r);var r;return n};let jf,zf;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 Wf(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function Hf(e){$f(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();zf=-1,jf=e,jf.__hooks.initiated&&jf.__hooks.list.length;try{jf.fn.call(null)}catch(e){console.error(e)}jf.__hooks.initiated=!0;const t=jf.__hooks;return Kf(jf),zf=void 0,jf=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){$f(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){$f(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)}))}(t),t.chain.promise}function $f(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 Uf(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 Gf(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Vf(e){return e.__hooks.imperativeHandle}function Kf(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Zf(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Kf(e))}function Jf(e){if(void 0===jf)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=jf.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Xf(e){Jf(++zf);return jf.context[e]}function Yf(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Qf(e){return{__hooked:!0,fn:e,initiate:Wf,run:Bf,teardown:Hf,runSnaps:Uf,runMenu:Gf,focus:Om,blur:Tm,observeActions:Zf,getImperativeHandle:Vf,updateRectOnNextRun:Yf}}function em(e){const t=Jf(++zf);if(!t.value){t.component=jf;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout((()=>{r.__hooks.micro=null,Bf(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function tm(e,t){const n=Jf(++zf);Ff(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===jf.__hooks.pendingEffects.indexOf(n)&&jf.__hooks.pendingEffects.push(n))}function nm(e,t){const n=Jf(++zf);Ff(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],jf.__hooks.pendingLayoutEffects.push(n))}function rm(e,t){const n=Jf(++zf);return Ff(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function om(e){return rm((()=>({current:e})),[])}function im(e,t){const[n,r]=em((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Jf(++zf);return o.component||(o.component=jf),nm((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]}function am(){return Xf("element")}function sm(){const e=am(),t=jf.__hooks.resizer,[n,r]=em((()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}}));return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),nm((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:i})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n}function lm(){return Xf("layout")}function cm(){const e=Xf("layout"),[t]=em({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function um(){return Xf("appLayout")}function dm(){const e=Xf("model");return e&&e.session?e:void 0}function pm(){const e=Xf("app");return e&&e.session?e:void 0}function hm(){const e=Xf("global");return e&&e.session?e:void 0}function fm(){return Xf("selections")}function mm(){return Xf("theme")}function gm(){return Xf("nebbie")}function bm(){return Xf("translator")}function ym(){return Xf("deviceType")}function vm(){return Xf("navigation")}function Sm(){return Xf("plugins")}function xm(e,t){const[n]=em({action(){n._config.action.call(null)}});return n.component||(n.component=jf,jf.__hooks.actions.list.push(n)),rm((()=>{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 Em(){return Xf("constraints")}function Cm(){return Xf("interactions")}function wm(){return Xf("options")}function Lm(e,t){const n=Jf(++zf);if(n.imperative||(n.imperative=!0),Ff(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],jf.__hooks.imperativeHandle=r}}function km(e){const t=Jf(++zf);t.value||(t.value=1,jf.__hooks.snaps.push(t)),t.fn=e}function Rm(e){const t=Jf(++zf);t.value||(t.value=1,jf.__hooks.menus.push(t)),t.fn=e}function Im(){Jf(++zf);const e=jf.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function _m(){return Xf("emitter")}function qm(){const e=Xf("keyboardNavigation"),t=Xf("focusHandler");if(!jf.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(Tm(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(jf);jf.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Om(this))}.bind(jf);jf.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(jf);jf.__hooks.accessibility.focusSelectionFunction=r}const n=jf.__hooks.accessibility.focusFunction,r=jf.__hooks.accessibility.exitFunction,o=jf.__hooks.accessibility.focusSelectionFunction,[i,a]=em({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return jf.__hooks.accessibility.setter=a,jf.__hooks.accessibility.enabled=e,tm((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function Om(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 Tm(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 Mm={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Dm=Object.keys(Mm),Am=e=>(Object.keys(se.prototype).forEach((t=>{e[t]=se.prototype[t]})),se.init(e),e);function Pm(e,t){const n=Q({},Mm);Am(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==Dm.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],i=Nf(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function Nm(e,t,n){"function"==typeof e.component&&(e.component=Qf(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},a=["appLayout","constraints","interactions"],s={},l={};t.model&&t.model.session||(s.select=!0,s.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}a.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(Q(Q({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(Q(Q({},r[e]),l))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return a.forEach((e=>{i[e]=JSON.stringify(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):Pm(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=qf.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));qf.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const s=qf.generate(i,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,s,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const jm=()=>{};function zm(e,t){return void 0===e?()=>t:()=>e}function Fm(e){const t=e||{};return{min:"function"==typeof t.min?t.min:zm(t.min,0),max:"function"==typeof t.max?t.max:zm(t.max,1e3),added:t.added||t.add||jm,description:t.description||jm,moved:t.moved||t.move||jm,removed:t.removed||t.remove||jm,replaced:t.replaced||t.replace||jm,isDefined:()=>!!e}}const Wm=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function Hm(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>Wm(e,n,{}),dimensions:Fm(e.dimensions),measures:Fm(e.measures)}}function Bm(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(Hm)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function $m(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Bm(n.qae),component:n.component||{},create:e=>Nm(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const Um=(e,t,n)=>{if(!e)return Promise.resolve();let r=qf.generate(t,n);return Ue(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},Gm=()=>{};function Vm(){let e,{model:n,halo:r,navigation:o,initialError:i,onDestroy:a=(async()=>{}),onRender:s=(()=>{}),onError:l=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=Gm,u=null,d=null,p=null,h=null;const f=new Promise((e=>{p=e})),g=new Promise((e=>{h=e})),b=e=>()=>{null==e||e(),h(),s()};let y={},v=[];const S=new se,x={id:n.id,model:n,async destroy(){await a(),c(),c=Gm},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const o=await n.getLayout();if(Rf(o)&&!t){const t=await Rh({halo:r,model:n,cellRef:u,newType:e});return await If(n,t.qProperty),t}const i=await n.getEffectiveProperties(),a=await Rh({halo:r,model:n,cellRef:u,newType:e,properties:i}),s=a.qProperty;return await Um(n,i,s),a}return await Rh({halo:r,model:n,cellRef:u,newType:e})},async toggleDataView(t){let o;if(e||!1===t)e&&!0!==t&&(o=n,await r.app.destroySessionObject(e),e=void 0);else{let t=r.config.context.dataViewType;const i=await n.getEffectiveProperties();if(!r.types.getSupportedVersion(t)){if(!r.types.getSupportedVersion("table"))throw new Error("No data view type registered");t="table"}const a=await Rh({halo:r,model:n,cellRef:u,newType:t,properties:i,viewDataMode:!0});o=await r.app.createSessionObject(a.qProperty),e=o.id}o&&u.current.setModel(o)},addListener(e,t){S.addListener(e,t)},removeListener(e,t){S.removeListener(e,t)},getImperativeHandle:async()=>(await g,u.current.getImperativeHandle()),takeSnapshot:async()=>(await g,u.current.takeSnapshot()),__DO_NOT_USE__:{mount(e){if(d)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return d=e,[c,u]=function(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,emitter:l,initialError:c,navigation:u,onError:d}=e;const{root:p}=n,h=t.createRef(),f=fp(),g=m.createPortal(t.createElement(Cf,{ref:h,halo:n,model:o,currentId:f,initialSnOptions:i,initialSnPlugins:a,initialError:c,onMount:s,emitter:l,navigation:u,onError:d}),r,f),b=()=>{p.remove(g),o.removeListener("closed",b)};return o.on("closed",b),p.add(g,b),p.addCell(f,h),[b,h]}({halo:r,element:e,model:n,initialSnOptions:y,initialSnPlugins:v,initialError:i,onMount:p,emitter:S,navigation:o,onError:l}),f},async applyProperties(e){const t=Lf("/",e,await n.getEffectiveProperties());if(t.length)return n.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;d?(async()=>{await f,u.current.setSnOptions(Q(Q(Q({},y),e),{onInitialRender:b(t)}))})():y=Q(Q(Q({},y),e),{onInitialRender:b(t)})})(e)},plugins(e){(async e=>{kf(e),d?(async()=>{await f,u.current.setSnPlugins(e)})():v=e})(e)},exportImage:()=>u.current.exportImage(),takeSnapshot:()=>u.current.takeSnapshot(),getModel:()=>n,convert:{async toType(e){const t=await n.getEffectiveProperties(),o=await Rh({halo:r,model:n,cellRef:u,newType:e,properties:t}),i=o.qProperty;return await Um(n,t,i),o},async revert(){await n.clearSoftPatches()}}}};return x}async function Km(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=Vm({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}async function Zm(e,t,n,r){let{type:o,version:i,fields:a,properties:s,extendProperties:l}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:i});c=await e.initialProperties(s,l);const n=await e.supernova();a&&await fh({sn:n,properties:c,fields:a,children:u},t),s&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const Jm="njs-sheet";function Xm(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const Ym=o(((e,o)=>{var l;let{model:c,halo:u,initialSnOptions:d,initialSnPlugins:h,initialError:f,onMount:m,unmount:g,navigation:b,onError:y}=e;const{root:v}=u,[S,x]=n(c),[E]=Ta(S),{theme:C,modelStore:w}=s(va),[L,k]=n([]),[R,I]=n(void 0),[_,q]=n(void 0),[O,T]=n(""),M=p({cellCount:0,cellsRendered:0,initialRender:!1});null==b||null===(l=b.setCurrentSheetId)||void 0===l||l.call(b,S.id),r((()=>{if(E){const e=JSON.stringify(E.cells);if(e===O)return;T(e);const n=async()=>{L.forEach((e=>{v.removeCell(e.currentId)}));const e=E.cells;M.cellCount=e.length,M.cellsRendered=0;const n=()=>{M.cellsRendered++,M.cellsRendered!==M.cellCount||M.initialRender||(M.initialRender=!0,d.onInitialRender())},{columns:r,rows:o}=E,i=await Promise.all(e.map((async e=>{let i;const a=new Promise((e=>{i=e})),s=L.find((t=>t.id===e.name));if(s)return s.bounds=Xm(e,r,o),delete s.mountedPromise,s;const l=await async function(e,t,n){let{id:r,options:o,plugins:i,element:a}=e;const{modelStore:s,rpcRequestModelStore:l}=n,c="".concat(r);let u=l.get(c);u||(u=t.app.getObject(r),l.set(c,u));const d=await u;return s.set(c,d),Km(d,{options:o,plugins:i,element:a},t)}({id:e.name},u,w);return{model:l.model,id:e.name,bounds:Xm(e,r,o),cellRef:t.createRef(),currentId:fp(),mounted:i,mountedPromise:a,options:Q(Q({},d),{onInitialRender:n})}})));i.forEach((e=>v.addCell(e.currentId,e.cellRef))),k(i)};n()}}),[E]),r((()=>{const e=()=>{S.removeListener("closed",e),g()};return S.on("closed",e),()=>S.removeListener("closed",e)}),[S]);const D=i((()=>L?L.map((e=>function(e,n,r,o,i,a,s,l){var c;const{x:u,y:d,width:p,height:h}=e.bounds,f={left:"".concat(u,"%"),top:"".concat(d,"%"),width:"".concat(p,"%"),height:"".concat(h,"%"),position:"absolute"},m=null===(c=n.public.galaxy)||void 0===c?void 0:c.flags;return null!=m&&m.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(f.boxSizing="border-box",f.padding="4px"),t.createElement("div",{style:f,key:e.model.id},t.createElement(Cf,{ref:e.cellRef,halo:n,model:e.model,currentId:e.currentId,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a,navigation:s,onError:l}))}(e,u,e.options,h,f,e.mounted,b,y))):[]),[L]);r((()=>{const e=null!=E&&E.components?E.components.find((e=>"general"===e.key)):null;I(Bd(e,u.public.theme)),q(Hd(e,u.app))}),[E,u.public.theme,u.app,C]),a(o,(()=>({setModel:x})),[]);const A=!E||Number.isNaN(E.height)?"100%":"".concat(Number(E.height),"%"),P=L.map((e=>e.mountedPromise)),N=P.filter((e=>!!e));return N.length&&Promise.all(P).then((()=>{m()})),t.createElement("div",{className:Jm,style:{width:"100%",height:A,position:"relative",backgroundColor:R,backgroundImage:_&&_.url?"url(".concat(_.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:_&&_.size,backgroundPosition:_&&_.pos}},D)}));const Qm=()=>{};function eg(){let{model:e,halo:n,navigation:r,initialError:o,onDestroy:i=(async()=>{}),onRender:a=(()=>{}),onError:s=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=Qm,c=null,u=null,d=null,p=null;const h=new Promise((e=>{d=e})),f=new Promise((e=>{p=e})),g=e=>()=>{null==e||e(),p(),a()};let b={},y=[];const v={id:e.id,model:e,navigation:r,getImperativeHandle:async()=>(await f,c.current.getImperativeHandle()),async destroy(){await i(),l(),l=Qm},__DO_NOT_USE__:{mount(i){if(u)throw new Error("Already mounted");if(!(i instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return u=i,[l,c]=function(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l,navigation:c,onError:u}=e;const{root:d}=n,p=t.createRef();let h;const f=()=>{d.remove(h)};return h=m.createPortal(t.createElement(Ym,{ref:p,halo:n,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s,unmount:f,navigation:c,onError:u}),r,o.id),c.setSheetRef(p),d.add(h,f),[f,p]}({halo:n,element:i,model:e,initialSnOptions:b,initialSnPlugins:y,initialError:o,onMount:d,navigation:r,onError:s}),h},async applyProperties(t){const n=Lf("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;u?(async()=>{await h,c.current.setSnOptions(Q(Q(Q({},b),e),{onInitialRender:g(t)}))})():b=Q(Q(Q({},b),e),{onInitialRender:g(t)})})(e)},plugins(e){(async e=>{kf(e),u?(async()=>{await h,c.current.setSnPlugins(e)})():y=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return v}async function tg(e,t,n){let{id:r,options:o,plugins:i,element:a,onRender:s,onError:l,navigation:c}=e;const{modelStore:u,rpcRequestModelStore:d}=n,p="".concat(r);let h=d.get(p);h||(h=t.app.getObject(r),d.set(p,h));const f=await h;u.set(p,f);const m=c||("sheet"===f.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},s={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:l}=t,c="".concat(n);let u,d=l.get(c);d||(d=e.app.getObject(n),l.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,s.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return eu(s),s}(t,n,f):void 0);return"sheet"===f.genericType?async function(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=eg({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}(f,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m):Km(f,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m)}function ng(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var rg,og,ig,ag;function sg(){if(ag)return ig;ag=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return ig=n=>n?"object"!=typeof n?e:n:t}var lg,cg,ug,dg,pg,hg,fg,mg,gg,bg,yg,vg,Sg,xg,Eg,Cg,wg,Lg,kg,Rg,Ig,_g,qg,Og,Tg,Mg,Dg,Ag,Pg,Ng,jg,zg={exports:{}};function Fg(){if(cg)return lg;cg=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return lg={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function Wg(){if(dg)return ug;dg=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};return ug=e}function Hg(){return pg||(pg=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Fg(),i=Wg(),a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[p,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of h)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=d++;i(e,o,t),u[e]=o,l[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(p,"*")),f("MAINVERSION","(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(l[u.NUMERICIDENTIFIER],"|").concat(l[u.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[u.NUMERICIDENTIFIERLOOSE],"|").concat(l[u.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(l[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(l[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(p,"+")),f("BUILD","(?:\\+(".concat(l[u.BUILDIDENTIFIER],"(?:\\.").concat(l[u.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(l[u.MAINVERSION]).concat(l[u.PRERELEASE],"?").concat(l[u.BUILD],"?")),f("FULL","^".concat(l[u.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(l[u.MAINVERSIONLOOSE]).concat(l[u.PRERELEASELOOSE],"?").concat(l[u.BUILD],"?")),f("LOOSE","^".concat(l[u.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(l[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(l[u.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:".concat(l[u.PRERELEASE],")?").concat(l[u.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[u.PRERELEASELOOSE],")?").concat(l[u.BUILD],"?")+")?)?"),f("XRANGE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),f("COERCE","".concat(l[u.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",l[u.COERCEPLAIN]+"(?:".concat(l[u.PRERELEASE],")?")+"(?:".concat(l[u.BUILD],")?")+"(?:$|[^\\d])"),f("COERCERTL",l[u.COERCE],!0),f("COERCERTLFULL",l[u.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(l[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(l[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(l[u.GTLT],"\\s*(").concat(l[u.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],"|").concat(l[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(l[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(zg,zg.exports)),zg.exports}function Bg(){if(gg)return mg;gg=1;const e=Wg(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Fg(),{safeRe:r,safeSrc:o,t:i}=Hg(),a=sg(),{compareIdentifiers:s}=function(){if(fg)return hg;fg=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};return hg={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},hg}();class l{constructor(o,s){if(s=a(s),o instanceof l){if(o.loose===!!s.loose&&o.includePrerelease===!!s.includePrerelease)return o;o=o.version}else if("string"!=typeof o)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof o,'".'));if(o.length>t)throw new TypeError("version is longer than ".concat(t," characters"));e("SemVer",o,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const c=o.trim().match(s.loose?r[i.LOOSE]:r[i.FULL]);if(!c)throw new TypeError("Invalid Version: ".concat(o));if(this.raw=o,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof l)){if("string"==typeof t&&t===this.version)return 0;t=new l(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)}comparePre(t){if(t instanceof l||(t=new l(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return s(r,o)}while(++n)}compareBuild(t){t instanceof l||(t=new l(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return s(r,o)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=new RegExp("^".concat(this.options.loose?o[i.PRERELEASELOOSE]:o[i.PRERELEASE],"$")),n="-".concat(t).match(e);if(!n||n[1]!==t)throw new Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===s(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}return mg=l}function $g(){if(yg)return bg;yg=1;const e=Bg();return bg=(t,n,r)=>new e(t,r).compare(new e(n,r)),bg}function Ug(){if(Tg)return Og;Tg=1;const e=function(){if(Sg)return vg;Sg=1;const e=$g();return vg=(t,n,r)=>0===e(t,n,r),vg}(),t=function(){if(Eg)return xg;Eg=1;const e=$g();return xg=(t,n,r)=>0!==e(t,n,r),xg}(),n=function(){if(wg)return Cg;wg=1;const e=$g();return Cg=(t,n,r)=>e(t,n,r)>0,Cg}(),r=function(){if(kg)return Lg;kg=1;const e=$g();return Lg=(t,n,r)=>e(t,n,r)>=0,Lg}(),o=function(){if(Ig)return Rg;Ig=1;const e=$g();return Rg=(t,n,r)=>e(t,n,r)<0,Rg}(),i=function(){if(qg)return _g;qg=1;const e=$g();return _g=(t,n,r)=>e(t,n,r)<=0,_g}();return Og=(a,s,l,c)=>{switch(s){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a===l;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a!==l;case"":case"=":case"==":return e(a,l,c);case"!=":return t(a,l,c);case">":return n(a,l,c);case">=":return r(a,l,c);case"<":return o(a,l,c);case"<=":return i(a,l,c);default:throw new TypeError("Invalid operator: ".concat(s))}},Og}function Gg(){if(Pg)return Ag;Pg=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&h))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(m,R(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),i("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),i("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),i("caret trim",e);let g=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));a&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),i("range list",g);const y=new Map,v=g.map((e=>new o(e,this.options)));for(const e of v){if(f(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const S=[...y.values()];return n.set(t,S),S}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1}}Ag=t;const n=new(og?rg:(og=1,rg=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=sg(),o=function(){if(Dg)return Mg;Dg=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new s(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}Mg=t;const n=sg(),{safeRe:r,t:o}=Hg(),i=Ug(),a=Wg(),s=Bg(),l=Gg();return Mg}(),i=Wg(),a=Bg(),{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=Hg(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:h}=Fg(),f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},b=(e,t)=>(i("comp",e,t),e=x(e,t),i("caret",e),e=v(e,t),i("tildes",e),e=C(e,t),i("xrange",e),e=L(e,t),i("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),y(n)?s="":y(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):y(o)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(i("replaceTilde pr",a),s=">=".concat(n,".").concat(r,".").concat(o,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),i("tilde return",s),s}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),y(n)?l="":y(o)?l=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):y(a)?l="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(i("replaceCaret pr",s),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(i("no pr"),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a," <").concat(+n+1,".0.0-0")),i("caret return",l),l}))},C=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>w(e,t))).join(" ")),w=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=y(o),u=c||y(a),d=u||y(s),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),s=0,">"===r?(r=">=",u?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n="".concat(r+o,".").concat(a,".").concat(s).concat(l)):u?n=">=".concat(o,".0.0").concat(l," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(a,".0").concat(l," <").concat(o,".").concat(+a+1,".0-0")),i("xRange return",n),n}))},L=(e,t)=>(i("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),k=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),R=e=>(t,n,r,o,i,a,s,l,c,u,d,p)=>(n=y(r)?"":y(o)?">=".concat(r,".0.0").concat(e?"-0":""):y(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=y(c)?"":y(u)?"<".concat(+c+1,".0.0-0"):y(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()),I=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return Ag}var Vg=function(){if(jg)return Ng;jg=1;const e=Gg();return Ng=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},Ng}(),Kg=G(Vg);const Zg={};function Jg(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||Kg(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Zg[i]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const a=(r||o.load)({name:e,version:t}),s=Promise.resolve(a);Zg[i]=s.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new cf("Failed to load visualization: '".concat(n,"'"),e)}))}return Zg[i]}(a.name,a.version,t,o.load).then((e=>(n=n||$m(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=Q({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(Ue(!0,n,e),n):Q(Q({},n),e)}))}};return a}function Xg(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=Jg({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function Yg(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Xg(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(Zg).forEach((t=>{t.split("__")[0]===e&&(Zg[t]=void 0)}))}(e)}}}const Qg={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))}};Qg.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const eb=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Q(Q({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},tb=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var nb=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ie(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=Q(Q({},n.context),{},{translator:r.translator});const[s,l]=wa({app:e,context:a}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=vt();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),St(xt,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:n.themes,loadTheme:n.loadTheme,root:s});a.themeApi=c.externalAPI;const u={galaxy:{translator:r.translator,flags:ng(n.flags),deviceType:Et(n.context.deviceType),hostConfig:n.hostConfig,anything:n.anything},theme:c.externalAPI,translator:r.translator,nebbie:null},d={app:e,root:s,config:n,public:u,context:a,types:null},p=Yg({halo:d});n.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let h=c.setTheme(n.context.theme),f=null,g=null;const b={render:async e=>(await h,e.id?tg(e,d,l):async function(e,t,n){let{type:r,version:o,fields:i,properties:a,options:s,plugins:l,element:c,extendProperties:u,navigation:d,onRender:p,onError:h}=e,f={};const m=[],{modelStore:g,subscribe:b}=n;let y;try{const e=t.types.get({name:r,version:o});f=await e.initialProperties(a,u);const n=await e.supernova();i&&await fh({sn:n,properties:f,fields:i,children:m},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},f)}catch(e){y=e,f={qInfo:{qType:r},visualization:r}}const v=await t.app.createSessionObject(f);m.length>0&&await v.setFullPropertyTree({qProperty:f,qChildren:m}),g.set(v.id,v);const S=b(v);return Km(v,{options:s,plugins:l,element:c,onRender:p,onError:h},t,d,y,(async()=>{await t.app.destroySessionObject(v.id),S()}))}(e,d,l)),destroy:async()=>{s.destroy()},create:async e=>Zm(e,d,!1,l),generateProperties:async e=>Zm(e,d,!0,l),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=Q(Q(Q({},a),t),{},{translator:r.translator}),t.theme&&(h=c.setTheme(t.theme),await h),t.language&&d.public.translator.language(t.language),s.context(a))},selections:async()=>(f||(f={mount(n){g||(g=function(e){let{element:n,app:r}=e;return m.createPortal(t.createElement(mp,{app:r}),n,fp())}({element:n,app:e}),s.add(g))},unmount(){g&&(s.remove(g),g=null)}}),f),field:async n=>{let r;const o="string"==typeof n?n:n.qLibraryId;if(n.qId)r=n.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const i={fieldName:o,async mount(a){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(o||r," not provided"));if(this._instance)throw new Error("Field or object ".concat(o||r," already mounted"));const c=()=>i.emit("selectionActivated"),u=()=>i.emit("selectionDeactivated");return new Promise((o=>{[this._instance,this._ref]=function(e){let{element:n,app:r,fieldIdentifier:o,qId:i,stateName:a="$",options:s={},renderedCallback:l}=e;const c=t.createRef();return[m.createPortal(t.createElement(eh,{ref:c,app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,initialOptions:s,renderedCallback:l}),n,fp()),c]}({element:a,app:e,fieldIdentifier:n,qId:r,options:Qp(Q({onSelectionActivated:c,onSelectionDeactivated:u},l)),stateName:l.stateName||"$",renderedCallback:o}),s.add(this._instance)}))},unmount(){this._instance&&(s.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){var t;const n=()=>i.emit("selectionActivated"),r=()=>i.emit("selectionDeactivated");if(null!==(t=i._ref)&&void 0!==t&&t.current){const t=Qp(Q({onSelectionActivated:n,onSelectionDeactivated:r},e));i._ref.current.setOptions(t)}}}};return eu(i),i},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(n,r,o){b._popoverInstance&&(s.remove(b._popoverInstance),b._popoverInstance=null);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Q({},th);return Ue(!0,t,e),t}(Q({onPopoverClose:()=>b.emit("fieldPopoverClose")},o));b._popoverInstance=t.createElement(nh,{element:n,key:fp(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(b._popoverInstance)}}};return d.public.nebbie=b,d.types=p,eu(b),b}return o.createConfiguration=t=>e(((e,t)=>({context:eb(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:Q({},t.snapshot||e.snapshot),types:tb(e.types,t.types),themes:tb(e.themes,t.themes),flags:eb(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:eb(e.anything,t.anything)}))(n,t)),o.config=n,o}(Qg);function rb(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const ob=globalThis.crypto||{getRandomValues:()=>123456};function ib(e){return t=>{const n=Ue({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^ob.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=Ue({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const ab=function(e){let{args:t=[],defaultValue:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?e(...t):void 0!==e?e:n},sb=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const s=ab(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},lb=["id","session"],cb=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function ub(e){return!cb.includes(e)}function db(e){const t=ab(e.getLayout);return t.qInfo&&t.qInfo.qId}function pb(e,t){return e.reduce(((e,n)=>Q(Q({},e),function(e,t){let n=db(e);const{delay:r}=t,{id:o,session:i}=e,a=ee(e,lb);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:Q(Q({id:n,session:ab(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return Q(Q({},e),{},{[n]:sb(o,{async:ub(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function hb(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!db(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function fb(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(hb);const n=pb(e,t);return async e=>Promise.resolve(n[e])}function mb(){return()=>Promise.resolve({id:"app-layout"})}const gb={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new rb,r=new ib(n),o=new fb(e,t),i=new mb,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i,getListObject:async()=>{}};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},bb={generator:$m,hook:Qf,theme:vt,locale:te};export{gb as EnigmaMocker,bb as __DO_NOT_USE__,Ih as conversion,nb as embed,Rm as onContextMenu,km as onTakeSnapshot,xm as useAction,pm as useApp,um as useAppLayout,Em as useConstraints,ym as useDeviceType,tm as useEffect,am as useElement,gm as useEmbed,_m as useEmitter,hm as useGlobal,Lm as useImperativeHandle,Cm as useInteractionState,qm as useKeyboard,lm as useLayout,rm as useMemo,dm as useModel,vm as useNavigation,wm as useOptions,Sm as usePlugins,im as usePromise,sm as useRect,om as useRef,Im as useRenderState,fm as useSelections,cm as useStaleLayout,em as useState,mm as useTheme,bm as useTranslator};
|
|
17
17
|
//# sourceMappingURL=index.js.map
|