@nebula.js/stardust 5.14.0 → 5.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +1482 -169
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +5 -5
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +1482 -169
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +14 -14
- package/dist/stardust.js.map +1 -1
- package/package.json +10 -10
- package/types/index.d.ts +8 -1
package/core/esm/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.
|
|
2
|
+
* @nebula.js/stardust v5.16.0
|
|
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 f,createElement as p,Component as h}from"react";import m from"react-dom";import{CacheProvider as g,Global as b,ThemeContext as v,css as y,keyframes as S}from"@emotion/react";import{Checkbox as x,Radio as w,Typography as E,FormControlLabel as _,Box as C,Grid as L,Tooltip as k,Paper as q,IconButton as R,styled as I,Popover as O,MenuList as D,MenuItem as T,ListItemIcon as M,Divider as A,OutlinedInput as P,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";var V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K(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 Z,J={exports:{}};function X(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return X=function(e){this.s=e,this.n=e.next},X.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new X(e)}function Y(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 Q(){return Q=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},Q.apply(null,arguments)}function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(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}Z||(Z=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 I(r||[]);return o(a,"_invoke",{value:L(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function b(){}function v(){}function y(){}var S={};c(S,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(O([])));w&&w!==n&&r.call(w,a)&&(S=w);var E=y.prototype=b.prototype=Object.create(S);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function L(e,n,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=k(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===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function k(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,k(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 q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,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 v.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},_(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"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,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,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),R(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;R(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)}}(J));const re=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 oe,ie,ae={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":"不符計算條件"}},Object_FilterLabel_All:{id:"Object.FilterLabel.All",locale:{"en-US":"ALL"}},Object_FilterLabel_Exclude:{id:"Object.FilterLabel.Exclude",locale:{"en-US":"NOT"}},Object_FilterLabel_Unknown:{id:"Object.FilterLabel.Unknown",locale:{"en-US":"Unknown"}},Object_FiltersApplied:{id:"Object.FiltersApplied",locale:{"en-US":"Filters applied:"}}};function se(e){const t=re({initial:e});return Object.keys(ae).forEach((e=>{t.translator.add(ae[e])})),{translator:t.translator}}var le=function(){if(ie)return oe;ie=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},oe=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},oe}(),ce=G(le);function ue(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function de(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fe(){}var pe,he,me=.7,ge=1/me,be="\\s*([+-]?\\d+)\\s*",ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Se=/^#([0-9a-f]{3,8})$/,xe=new RegExp(`^rgb\\(${be},${be},${be}\\)$`),we=new RegExp(`^rgb\\(${ye},${ye},${ye}\\)$`),Ee=new RegExp(`^rgba\\(${be},${be},${be},${ve}\\)$`),_e=new RegExp(`^rgba\\(${ye},${ye},${ye},${ve}\\)$`),Ce=new RegExp(`^hsl\\(${ve},${ye},${ye}\\)$`),Le=new RegExp(`^hsla\\(${ve},${ye},${ye},${ve}\\)$`),ke={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 qe(){return this.rgb().formatHex()}function Re(){return this.rgb().formatRgb()}function Ie(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Se.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Oe(t):3===n?new Me(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?De(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?De(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=xe.exec(e))?new Me(t[1],t[2],t[3],1):(t=we.exec(e))?new Me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ee.exec(e))?De(t[1],t[2],t[3],t[4]):(t=_e.exec(e))?De(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ce.exec(e))?Fe(t[1],t[2]/100,t[3]/100,1):(t=Le.exec(e))?Fe(t[1],t[2]/100,t[3]/100,t[4]):ke.hasOwnProperty(e)?Oe(ke[e]):"transparent"===e?new Me(NaN,NaN,NaN,0):null}function Oe(e){return new Me(e>>16&255,e>>8&255,255&e,1)}function De(e,t,n,r){return r<=0&&(e=t=n=NaN),new Me(e,t,n,r)}function Te(e,t,n,r){return 1===arguments.length?function(e){return e instanceof fe||(e=Ie(e)),e?new Me((e=e.rgb()).r,e.g,e.b,e.opacity):new Me}(e):new Me(e,t,n,null==r?1:r)}function Me(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ae(){return`#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function Pe(){const e=Ne(this.opacity);return`${1===e?"rgb(":"rgba("}${je(this.r)}, ${je(this.g)}, ${je(this.b)}${1===e?")":`, ${e})`}`}function Ne(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ze(e){return((e=je(e))<16?"0":"")+e.toString(16)}function Fe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Be(e,t,n,r)}function We(e){if(e instanceof Be)return new Be(e.h,e.s,e.l,e.opacity);if(e instanceof fe||(e=Ie(e)),!e)return new Be;if(e instanceof Be)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 Be(a,s,l,e.opacity)}function Be(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function He(e){return(e=(e||0)%360)<0?e+360:e}function $e(e){return Math.max(0,Math.min(1,e||0))}function Ue(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ue(fe,Ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return We(this).formatHsl()},formatRgb:Re,toString:Re}),ue(Me,Te,de(fe,{brighter(e){return e=null==e?ge:Math.pow(ge,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?me:Math.pow(me,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Me(je(this.r),je(this.g),je(this.b),Ne(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:Ae,formatHex:Ae,formatHex8:function(){return`#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pe,toString:Pe})),ue(Be,(function(e,t,n,r){return 1===arguments.length?We(e):new Be(e,t,n,null==r?1:r)}),de(fe,{brighter(e){return e=null==e?ge:Math.pow(ge,e),new Be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?me:Math.pow(me,e),new Be(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 Me(Ue(e>=240?e-240:e+120,o,r),Ue(e,o,r),Ue(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Be(He(this.h),$e(this.s),$e(this.l),Ne(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=Ne(this.opacity);return`${1===e?"hsl(":"hsla("}${He(this.h)}, ${100*$e(this.s)}%, ${100*$e(this.l)}%${1===e?")":`, ${e})`}`}}));var Ve=function(){if(he)return pe;he=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 pe=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},pe}(),Ge=G(Ve),Ke={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"]}]}},Ze={_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"},Je={_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"}}}},Xe={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const Ye={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Qe=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,et=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,tt=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,nt=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,rt=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,ot=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:it}=Math,{round:at}=Math;class st{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,f,p,h,m=0,g=0,b=0,v=1;if(this._invalid=!1,t[0]instanceof st)m=t[0]._r,g=t[0]._g,b=t[0]._b,v=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],p=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(p[1],10),g=parseInt(p[2],10),b=parseInt(p[3],10);else if(p=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(p[1],10),g=parseInt(p[2],10),b=parseInt(p[3],10),v=parseFloat(p[4]);else if(p=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))v=parseInt(p[1],10)/255,m=parseInt(p[2],10),g=parseInt(p[3],10),b=parseInt(p[4],10);else if(p=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(p[1],16),g=parseInt(p[2],16),b=parseInt(p[3],16),v=1;else if(p=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(p[1]+p[1],16),g=parseInt(p[2]+p[2],16),b=parseInt(p[3]+p[3],16),v=1;else if(p=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),a=parseFloat(p[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]}f=a-.5*l,m=d[0]+f,g=d[1]+f,b=d[2]+f,m=at(255*m),g=at(255*g),b=at(255*b),v=1}else if(p=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),a=parseFloat(p[5]),v=parseFloat(p[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]}f=a-.5*l,m=d[0]+f,g=d[1]+f,b=d[2]+f,m=at(255*m),g=at(255*g),b=at(255*b)}else if(p=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),s=parseFloat(p[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]}f=s-l,m=d[0]+f,g=d[1]+f,b=d[2]+f,m=at(255*m),g=at(255*g),b=at(255*b),v=1}else Ye[h.toLowerCase()]?(i=h.toLowerCase(),m=Ye[i].r,g=Ye[i].g,b=Ye[i].b,v="number"==typeof Ye[i].a?Ye[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(v=(4278190080&t[0])>>>24,v/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],v=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+v)&&(this._invalid=!0),this._r=it(m),this._g=it(g),this._b=it(b),this._a=v,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=st.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=st.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=st.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=st.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=st.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=st.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=st.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=st.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 st||(e=new st(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=it(this._r+(e._r-this._r)*t),r=it(this._g+(e._g-this._g)*t),o=it(this._b+(e._b-this._b)*t),i=it(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 st(r)}static toRGB(e){if(e instanceof st)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=st.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 st)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=st.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 st?(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=st.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 st(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 st(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 st(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 st)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=st.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=st.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 st(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Qe.test(e)||et.test(e)||tt.test(e)||nt.test(e)||rt.test(e)||ot.test(e)||Ye[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new st(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class lt{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 Te(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 ct(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function ut(e,t,n){const r=[],o=new lt(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 dt(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=ct(1/t*o,t,n);i=e.getColor(r);break}}r.push(Ie(i).formatHex())}return r}function ft(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=ut(e,n,!0),o=ut(dt(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(dt(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function pt(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 ht(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 mt(e,t,n,r){let o;if(""===e)o=pt(null,n);else{o=pt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=ht(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function gt(e,t){const n=e.split(".");return{getStyle:(e,r)=>mt(e,r,n.concat(),t)}}function bt(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?bt(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function vt(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)}gt.resolveRawTheme=e=>{const t=Ge(!0,{},e);return bt(t,t._variables),t.scales&&ft(t.scales,t.dataColors&&t.dataColors.nullColor),t};const yt=1e3;function St(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(vt);return{getBestContrastColor(o){if(!t[o]){n>yt&&(t={},n=0);const i=vt(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 xt(){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]=gt(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?Je:Ze;let r=Xe;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Ge(!0,{},Ke,r,n),i=Ge(!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,gt.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 st(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const s=o.getStyle("","","color"),l=vt(s);n=St([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(ce.prototype).forEach((e=>{o[e]=ce.prototype[e]})),ce.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const wt=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),Et=5e3;function _t(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,Lt={};var kt=function(){if(Ct)return Lt;Ct=1;var e=m;return Lt.createRoot=e.createRoot,Lt.hydrateRoot=e.hydrateRoot,Lt}(),qt=G(kt);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}),Ot="$$material";function Dt(){return Dt=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},Dt.apply(null,arguments)}function Tt(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Mt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),At="-ms-",Pt="-moz-",Nt="-webkit-",jt="comm",zt="rule",Ft="decl",Wt="@keyframes",Bt=Math.abs,Ht=String.fromCharCode,$t=Object.assign;function Ut(e){return e.trim()}function Vt(e,t,n){return e.replace(t,n)}function Gt(e,t){return e.indexOf(t)}function Kt(e,t){return 0|e.charCodeAt(t)}function Zt(e,t,n){return e.slice(t,n)}function Jt(e){return e.length}function Xt(e){return e.length}function Yt(e,t){return t.push(e),e}var Qt=1,en=1,tn=0,nn=0,rn=0,on="";function an(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qt,column:en,length:a,return:""}}function sn(e,t){return $t(an("",null,null,"",null,null,0),e,{length:-e.length},t)}function ln(){return rn=nn>0?Kt(on,--nn):0,en--,10===rn&&(en=1,Qt--),rn}function cn(){return rn=nn<tn?Kt(on,nn++):0,en++,10===rn&&(en=1,Qt++),rn}function un(){return Kt(on,nn)}function dn(){return nn}function fn(e,t){return Zt(on,e,t)}function pn(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 hn(e){return Qt=en=1,tn=Jt(on=e),nn=0,[]}function mn(e){return on="",e}function gn(e){return Ut(fn(nn-1,yn(91===e?e+2:40===e?e+1:e)))}function bn(e){for(;(rn=un())&&rn<33;)cn();return pn(e)>2||pn(rn)>3?"":" "}function vn(e,t){for(;--t&&cn()&&!(rn<48||rn>102||rn>57&&rn<65||rn>70&&rn<97););return fn(e,dn()+(t<6&&32==un()&&32==cn()))}function yn(e){for(;cn();)switch(rn){case e:return nn;case 34:case 39:34!==e&&39!==e&&yn(rn);break;case 40:41===e&&yn(e);break;case 92:cn()}return nn}function Sn(e,t){for(;cn()&&e+rn!==57&&(e+rn!==84||47!==un()););return"/*"+fn(t,nn-1)+"*"+Ht(47===e?e:cn())}function xn(e){for(;!pn(un());)cn();return fn(e,nn)}function wn(e){return mn(En("",null,null,null,[""],e=hn(e),0,[0],e))}function En(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,b=1,v=0,y="",S=o,x=i,w=r,E=y;g;)switch(h=v,v=cn()){case 40:if(108!=h&&58==Kt(E,d-1)){-1!=Gt(E+=Vt(gn(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=gn(v);break;case 9:case 10:case 13:case 32:E+=bn(h);break;case 92:E+=vn(dn()-1,7);continue;case 47:switch(un()){case 42:case 47:Yt(Cn(Sn(cn(),dn()),t,n),l);break;default:E+="/"}break;case 123*m:s[c++]=Jt(E)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(E=Vt(E,/\f/g,"")),p>0&&Jt(E)-d&&Yt(p>32?Ln(E+";",r,n,d-1):Ln(Vt(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Yt(w=_n(E,t,n,c,u,o,s,y,S=[],x=[],d),i),123===v)if(0===u)En(E,t,w,w,S,i,d,s,x);else switch(99===f&&110===Kt(E,3)?100:f){case 100:case 108:case 109:case 115:En(e,w,w,r&&Yt(_n(e,w,w,0,0,o,s,y,o,S=[],d),x),o,x,d,s,r?S:x);break;default:En(E,w,w,w,[""],x,0,s,x)}}c=u=p=0,m=b=1,y=E="",d=a;break;case 58:d=1+Jt(E),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ln())continue;switch(E+=Ht(v),v*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Jt(E)-1)*b,b=1;break;case 64:45===un()&&(E+=gn(cn())),f=un(),u=d=Jt(y=E+=xn(dn())),v++;break;case 45:45===h&&2==Jt(E)&&(m=0)}}return i}function _n(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=Xt(f),h=0,m=0,g=0;h<r;++h)for(var b=0,v=Zt(e,d+1,d=Bt(m=a[h])),y=e;b<p;++b)(y=Ut(m>0?f[b]+" "+v:Vt(v,/&\f/g,f[b])))&&(l[g++]=y);return an(e,t,n,0===o?zt:s,l,c,u)}function Cn(e,t,n){return an(e,t,n,jt,Ht(rn),Zt(e,2,-2),0)}function Ln(e,t,n,r){return an(e,t,n,Ft,Zt(e,0,r),Zt(e,r+1,-1),r)}function kn(e,t){for(var n="",r=Xt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function qn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ft:return e.return=e.return||e.value;case jt:return"";case Wt:return e.return=e.value+"{"+kn(e.children,r)+"}";case zt:e.value=e.props.join(",")}return Jt(n=kn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Rn(e){var t=Xt(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,On=function(e,t,n){for(var r=0,o=0;r=o,o=un(),38===r&&12===o&&(t[n]=1),!pn(o);)cn();return fn(e,nn)},Dn=function(e,t){return mn(function(e,t){var n=-1,r=44;do{switch(pn(r)){case 0:38===r&&12===un()&&(t[n]=1),e[n]+=On(nn-1,t,n);break;case 2:e[n]+=gn(r);break;case 4:if(44===r){e[++n]=58===un()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ht(r)}}while(r=cn());return e}(hn(e),t))},Tn=new WeakMap,Mn=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)||Tn.get(n))&&!r){Tn.set(e,!0);for(var o=[],i=Dn(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},An=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Pn(e,t){switch(function(e,t){return 45^Kt(e,0)?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}(e,t)){case 5103:return Nt+"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 Nt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Nt+e+Pt+e+At+e+e;case 6828:case 4268:return Nt+e+At+e+e;case 6165:return Nt+e+At+"flex-"+e+e;case 5187:return Nt+e+Vt(e,/(\w+).+(:[^]+)/,Nt+"box-$1$2"+At+"flex-$1$2")+e;case 5443:return Nt+e+At+"flex-item-"+Vt(e,/flex-|-self/,"")+e;case 4675:return Nt+e+At+"flex-line-pack"+Vt(e,/align-content|flex-|-self/,"")+e;case 5548:return Nt+e+At+Vt(e,"shrink","negative")+e;case 5292:return Nt+e+At+Vt(e,"basis","preferred-size")+e;case 6060:return Nt+"box-"+Vt(e,"-grow","")+Nt+e+At+Vt(e,"grow","positive")+e;case 4554:return Nt+Vt(e,/([^-])(transform)/g,"$1"+Nt+"$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,Nt+"$1"),/(image-set)/,Nt+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,Nt+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,Nt+"box-pack:$3"+At+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Nt+e+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,Nt+"$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(Jt(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(45!==Kt(e,t+4))break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+Nt+"$2-$3$1"+Pt+(108==Kt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Gt(e,"stretch")?Pn(Vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Kt(e,t+1))break;case 6444:switch(Kt(e,Jt(e)-3-(~Gt(e,"!important")&&10))){case 107:return Vt(e,":",":"+Nt)+e;case 101:return Vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Nt+(45===Kt(e,14)?"inline-":"")+"box$3$1"+Nt+"$2$3$1"+At+"$2box$3")+e}break;case 5936:switch(Kt(e,t+11)){case 114:return Nt+e+At+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Nt+e+At+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Nt+e+At+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Nt+e+At+e+e}return e}var Nn,jn,zn=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]}}))})),Fn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ft:e.return=Pn(e.value,e.length);break;case Wt:return kn([sn(e,{value:Vt(e.value,"@","@"+Nt)})],r);case zt: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 kn([sn(e,{props:[Vt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return kn([sn(e,{props:[Vt(t,/:(plac\w+)/,":"+Nt+"input-$1")]}),sn(e,{props:[Vt(t,/:(plac\w+)/,":-moz-$1")]}),sn(e,{props:[Vt(t,/:(plac\w+)/,At+"input-$1")]})],r)}return""}))}}],Wn={exports:{}},Bn={};function Hn(){return jn||(jn=1,Wn.exports=function(){if(Nn)return Bn;Nn=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 Bn.Fragment=r,Bn.jsx=s,Bn.jsxs=s,Bn}()),Wn.exports}var $n=Hn();let Un;function Vn(e){const{injectFirst:t,children:n}=e;return t&&Un?$n.jsx(g,{value:Un,children:n}):n}"object"==typeof document&&(Un=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||Fn,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=[Mn,An];if(In){var u,d=[qn,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=Rn(c.concat(i,d));o=function(e,t,n,r){u=n,kn(wn(e?e+"{"+t.styles+"}":t.styles),f),r&&(b.inserted[t.name]=!0)}}else{var p=[qn],h=Rn(c.concat(i,p)),m=zn(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=kn(wn(e?e+"{"+t.styles+"}":t.styles),h)),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 Mt({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 Gn=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 $n.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 f,createElement as p,Component as h}from"react";import m from"react-dom";import{CacheProvider as g,Global as b,ThemeContext as v,css as y,keyframes as S}from"@emotion/react";import{Checkbox as x,Radio as E,Typography as w,FormControlLabel as C,Box as _,Grid as L,Tooltip as k,Paper as R,IconButton as q,styled as I,Popover as O,MenuList as T,MenuItem as D,ListItemIcon as P,Divider as M,OutlinedInput as A,InputAdornment as N,Badge as j,List as z,ListItem as F,Button as B,ButtonBase as W,CircularProgress as U,Icon as H}from"@mui/material";import $ from"@emotion/styled";var G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function V(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K(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 J,Z={exports:{}};function X(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Y(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Y(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return Y=function(e){this.s=e,this.n=e.next},Y.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Y(e)}function Q(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 ee(){return ee=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},ee.apply(null,arguments)}function te(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 ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(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}J||(J=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 I(r||[]);return o(a,"_invoke",{value:L(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function b(){}function v(){}function y(){}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 w=y.prototype=b.prototype=Object.create(S);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function L(e,n,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=k(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===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function k(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,k(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 R(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 q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,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 v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},C(_.prototype),c(_.prototype,s,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new _(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=O,I.prototype={constructor:I,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(q),!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),q(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;q(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 oe=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 ie,ae,se={Accessibility_Object_NoTitle:{id:"Accessibility.Object.NoTitle",locale:{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_ActionButton:{id:"Object.ActionButton",locale:{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},Object_AutoChart:{id:"Object.AutoChart",locale:{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},Object_BarChart:{id:"Object.BarChart",locale:{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},Object_BoxPlot:{id:"Object.BoxPlot",locale:{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},Object_BulletChart:{id:"Object.BulletChart",locale:{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},Object_ComboChart:{id:"Object.ComboChart",locale:{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},Object_Container:{id:"Object.Container",locale:{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},Object_DistributionPlot:{id:"Object.DistributionPlot",locale:{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},Object_FilterLabel_All:{id:"Object.FilterLabel.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},Object_FilterLabel_Exclude:{id:"Object.FilterLabel.Exclude",locale:{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},Object_FilterLabel_Unknown:{id:"Object.FilterLabel.Unknown",locale:{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},Object_FilterPane:{id:"Object.FilterPane",locale:{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},Object_FiltersApplied:{id:"Object.FiltersApplied",locale:{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},Object_FunnelChart:{id:"Object.FunnelChart",locale:{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},Object_Gauge:{id:"Object.Gauge",locale:{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},Object_GridChart:{id:"Object.GridChart",locale:{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},Object_Histogram:{id:"Object.Histogram",locale:{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},Object_Kpi:{id:"Object.Kpi",locale:{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},Object_LayoutContainer:{id:"Object.LayoutContainer",locale:{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},Object_LineChart:{id:"Object.LineChart",locale:{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},Object_Listbox:{id:"Object.Listbox",locale:{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","zh-CN":"列表框","zh-TW":"清單方塊"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Map:{id:"Object.Map",locale:{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},Object_MekkoChart:{id:"Object.MekkoChart",locale:{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},Object_NavMenu:{id:"Object.NavMenu",locale:{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},Object_NlgChart:{id:"Object.NlgChart",locale:{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},Object_PieChart:{id:"Object.PieChart",locale:{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},Object_PivotTable:{id:"Object.PivotTable",locale:{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},Object_RadarChart:{id:"Object.RadarChart",locale:{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},Object_SankeyChart:{id:"Object.SankeyChart",locale:{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},Object_ScatterPlot:{id:"Object.ScatterPlot",locale:{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},Object_StraightTable:{id:"Object.StraightTable",locale:{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},Object_TabContainer:{id:"Object.TabContainer",locale:{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ付きコンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},Object_Table:{id:"Object.Table",locale:{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Table_Deprecated:{id:"Object.Table.Deprecated",locale:{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Text:{id:"Object.Text",locale:{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},Object_TextImage:{id:"Object.TextImage",locale:{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},Object_Treemap:{id:"Object.Treemap",locale:{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","zh-CN":"树形图","zh-TW":"樹狀圖"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Object_WaterfallChart:{id:"Object.WaterfallChart",locale:{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","zh-CN":"瀑布图","zh-TW":"瀑布圖"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function le(e){const t=oe({initial:e});return Object.keys(se).forEach((e=>{t.translator.add(se[e])})),{translator:t.translator}}var ce=function(){if(ae)return ie;ae=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},ie=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},ie}(),ue=V(ce);function de(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function fe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function pe(){}var he,me,ge=.7,be=1/ge,ve="\\s*([+-]?\\d+)\\s*",ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xe=/^#([0-9a-f]{3,8})$/,Ee=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),we=new RegExp(`^rgb\\(${Se},${Se},${Se}\\)$`),Ce=new RegExp(`^rgba\\(${ve},${ve},${ve},${ye}\\)$`),_e=new RegExp(`^rgba\\(${Se},${Se},${Se},${ye}\\)$`),Le=new RegExp(`^hsl\\(${ye},${Se},${Se}\\)$`),ke=new RegExp(`^hsla\\(${ye},${Se},${Se},${ye}\\)$`),Re={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 qe(){return this.rgb().formatHex()}function Ie(){return this.rgb().formatRgb()}function Oe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Te(t):3===n?new Me(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?De(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?De(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=Ee.exec(e))?new Me(t[1],t[2],t[3],1):(t=we.exec(e))?new Me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ce.exec(e))?De(t[1],t[2],t[3],t[4]):(t=_e.exec(e))?De(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Le.exec(e))?Be(t[1],t[2]/100,t[3]/100,1):(t=ke.exec(e))?Be(t[1],t[2]/100,t[3]/100,t[4]):Re.hasOwnProperty(e)?Te(Re[e]):"transparent"===e?new Me(NaN,NaN,NaN,0):null}function Te(e){return new Me(e>>16&255,e>>8&255,255&e,1)}function De(e,t,n,r){return r<=0&&(e=t=n=NaN),new Me(e,t,n,r)}function Pe(e,t,n,r){return 1===arguments.length?function(e){return e instanceof pe||(e=Oe(e)),e?new Me((e=e.rgb()).r,e.g,e.b,e.opacity):new Me}(e):new Me(e,t,n,null==r?1:r)}function Me(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ae(){return`#${Fe(this.r)}${Fe(this.g)}${Fe(this.b)}`}function Ne(){const e=je(this.opacity);return`${1===e?"rgb(":"rgba("}${ze(this.r)}, ${ze(this.g)}, ${ze(this.b)}${1===e?")":`, ${e})`}`}function je(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ze(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fe(e){return((e=ze(e))<16?"0":"")+e.toString(16)}function Be(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ue(e,t,n,r)}function We(e){if(e instanceof Ue)return new Ue(e.h,e.s,e.l,e.opacity);if(e instanceof pe||(e=Oe(e)),!e)return new Ue;if(e instanceof Ue)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 Ue(a,s,l,e.opacity)}function Ue(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function He(e){return(e=(e||0)%360)<0?e+360:e}function $e(e){return Math.max(0,Math.min(1,e||0))}function Ge(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}de(pe,Oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return We(this).formatHsl()},formatRgb:Ie,toString:Ie}),de(Me,Pe,fe(pe,{brighter(e){return e=null==e?be:Math.pow(be,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ge:Math.pow(ge,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Me(ze(this.r),ze(this.g),ze(this.b),je(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:Ae,formatHex:Ae,formatHex8:function(){return`#${Fe(this.r)}${Fe(this.g)}${Fe(this.b)}${Fe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ne,toString:Ne})),de(Ue,(function(e,t,n,r){return 1===arguments.length?We(e):new Ue(e,t,n,null==r?1:r)}),fe(pe,{brighter(e){return e=null==e?be:Math.pow(be,e),new Ue(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ge:Math.pow(ge,e),new Ue(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 Me(Ge(e>=240?e-240:e+120,o,r),Ge(e,o,r),Ge(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ue(He(this.h),$e(this.s),$e(this.l),je(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=je(this.opacity);return`${1===e?"hsl(":"hsla("}${He(this.h)}, ${100*$e(this.s)}%, ${100*$e(this.l)}%${1===e?")":`, ${e})`}`}}));var Ve=function(){if(me)return he;me=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 he=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},he}(),Ke=V(Ve),Je={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"]}]}},Ze={_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"},Xe={_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"}}}},Ye={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const Qe={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}},et=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,tt=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,nt=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,rt=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,ot=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,it=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:at}=Math,{round:st}=Math;class lt{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,f,p,h,m=0,g=0,b=0,v=1;if(this._invalid=!1,t[0]instanceof lt)m=t[0]._r,g=t[0]._g,b=t[0]._b,v=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],p=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(p[1],10),g=parseInt(p[2],10),b=parseInt(p[3],10);else if(p=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(p[1],10),g=parseInt(p[2],10),b=parseInt(p[3],10),v=parseFloat(p[4]);else if(p=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))v=parseInt(p[1],10)/255,m=parseInt(p[2],10),g=parseInt(p[3],10),b=parseInt(p[4],10);else if(p=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(p[1],16),g=parseInt(p[2],16),b=parseInt(p[3],16),v=1;else if(p=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(p[1]+p[1],16),g=parseInt(p[2]+p[2],16),b=parseInt(p[3]+p[3],16),v=1;else if(p=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),a=parseFloat(p[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]}f=a-.5*l,m=d[0]+f,g=d[1]+f,b=d[2]+f,m=st(255*m),g=st(255*g),b=st(255*b),v=1}else if(p=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),a=parseFloat(p[5]),v=parseFloat(p[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]}f=a-.5*l,m=d[0]+f,g=d[1]+f,b=d[2]+f,m=st(255*m),g=st(255*g),b=st(255*b)}else if(p=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),s=parseFloat(p[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]}f=s-l,m=d[0]+f,g=d[1]+f,b=d[2]+f,m=st(255*m),g=st(255*g),b=st(255*b),v=1}else Qe[h.toLowerCase()]?(i=h.toLowerCase(),m=Qe[i].r,g=Qe[i].g,b=Qe[i].b,v="number"==typeof Qe[i].a?Qe[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(v=(4278190080&t[0])>>>24,v/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],v=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+v)&&(this._invalid=!0),this._r=at(m),this._g=at(g),this._b=at(b),this._a=v,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=lt.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=lt.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=lt.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=lt.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=lt.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=lt.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=lt.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=lt.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 lt||(e=new lt(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=at(this._r+(e._r-this._r)*t),r=at(this._g+(e._g-this._g)*t),o=at(this._b+(e._b-this._b)*t),i=at(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 lt(r)}static toRGB(e){if(e instanceof lt)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=lt.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 lt)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=lt.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 lt?(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=lt.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 lt(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 lt(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 lt(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 lt)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=lt.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=lt.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 lt(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(et.test(e)||tt.test(e)||nt.test(e)||rt.test(e)||ot.test(e)||it.test(e)||Qe[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 lt(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class ct{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Oe(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([Oe(e),Oe(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 Pe(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 ut(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function dt(e,t,n){const r=[],o=new ct(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 ft(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=ut(1/t*o,t,n);i=e.getColor(r);break}}r.push(Oe(i).formatHex())}return r}function pt(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=dt(e,n,!0),o=dt(ft(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(ft(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function ht(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 mt(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 gt(e,t,n,r){let o;if(""===e)o=ht(null,n);else{o=ht(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=mt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function bt(e,t){const n=e.split(".");return{getStyle:(e,r)=>gt(e,r,n.concat(),t)}}function vt(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?vt(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function yt(e){const t=Oe(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)}bt.resolveRawTheme=e=>{const t=Ke(!0,{},e);return vt(t,t._variables),t.scales&&pt(t.scales,t.dataColors&&t.dataColors.nullColor),t};const St=1e3;function xt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(yt);return{getBestContrastColor(o){if(!t[o]){n>St&&(t={},n=0);const i=yt(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 Et(){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]=bt(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=Oe(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Xe:Ze;let r=Ye;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Ke(!0,{},Je,r,n),i=Ke(!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,bt.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 lt(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const s=o.getStyle("","","color"),l=yt(s);n=xt([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(ue.prototype).forEach((e=>{o[e]=ue.prototype[e]})),ue.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const wt=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),Ct=5e3;function _t(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 Lt,kt={};var Rt=function(){if(Lt)return kt;Lt=1;var e=m;return kt.createRoot=e.createRoot,kt.hydrateRoot=e.hydrateRoot,kt}(),qt=V(Rt);function It(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 Ot=Object.freeze({__proto__:null,default:It}),Tt="$$material";function Dt(){return Dt=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},Dt.apply(null,arguments)}function Pt(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Mt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),At="-ms-",Nt="-moz-",jt="-webkit-",zt="comm",Ft="rule",Bt="decl",Wt="@keyframes",Ut=Math.abs,Ht=String.fromCharCode,$t=Object.assign;function Gt(e){return e.trim()}function Vt(e,t,n){return e.replace(t,n)}function Kt(e,t){return e.indexOf(t)}function Jt(e,t){return 0|e.charCodeAt(t)}function Zt(e,t,n){return e.slice(t,n)}function Xt(e){return e.length}function Yt(e){return e.length}function Qt(e,t){return t.push(e),e}var en=1,tn=1,nn=0,rn=0,on=0,an="";function sn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:en,column:tn,length:a,return:""}}function ln(e,t){return $t(sn("",null,null,"",null,null,0),e,{length:-e.length},t)}function cn(){return on=rn>0?Jt(an,--rn):0,tn--,10===on&&(tn=1,en--),on}function un(){return on=rn<nn?Jt(an,rn++):0,tn++,10===on&&(tn=1,en++),on}function dn(){return Jt(an,rn)}function fn(){return rn}function pn(e,t){return Zt(an,e,t)}function hn(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 mn(e){return en=tn=1,nn=Xt(an=e),rn=0,[]}function gn(e){return an="",e}function bn(e){return Gt(pn(rn-1,Sn(91===e?e+2:40===e?e+1:e)))}function vn(e){for(;(on=dn())&&on<33;)un();return hn(e)>2||hn(on)>3?"":" "}function yn(e,t){for(;--t&&un()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return pn(e,fn()+(t<6&&32==dn()&&32==un()))}function Sn(e){for(;un();)switch(on){case e:return rn;case 34:case 39:34!==e&&39!==e&&Sn(on);break;case 40:41===e&&Sn(e);break;case 92:un()}return rn}function xn(e,t){for(;un()&&e+on!==57&&(e+on!==84||47!==dn()););return"/*"+pn(t,rn-1)+"*"+Ht(47===e?e:un())}function En(e){for(;!hn(dn());)un();return pn(e,rn)}function wn(e){return gn(Cn("",null,null,null,[""],e=mn(e),0,[0],e))}function Cn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,b=1,v=0,y="",S=o,x=i,E=r,w=y;g;)switch(h=v,v=un()){case 40:if(108!=h&&58==Jt(w,d-1)){-1!=Kt(w+=Vt(bn(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=bn(v);break;case 9:case 10:case 13:case 32:w+=vn(h);break;case 92:w+=yn(fn()-1,7);continue;case 47:switch(dn()){case 42:case 47:Qt(Ln(xn(un(),fn()),t,n),l);break;default:w+="/"}break;case 123*m:s[c++]=Xt(w)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=Vt(w,/\f/g,"")),p>0&&Xt(w)-d&&Qt(p>32?kn(w+";",r,n,d-1):kn(Vt(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Qt(E=_n(w,t,n,c,u,o,s,y,S=[],x=[],d),i),123===v)if(0===u)Cn(w,t,E,E,S,i,d,s,x);else switch(99===f&&110===Jt(w,3)?100:f){case 100:case 108:case 109:case 115:Cn(e,E,E,r&&Qt(_n(e,E,E,0,0,o,s,y,o,S=[],d),x),o,x,d,s,r?S:x);break;default:Cn(w,E,E,E,[""],x,0,s,x)}}c=u=p=0,m=b=1,y=w="",d=a;break;case 58:d=1+Xt(w),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==cn())continue;switch(w+=Ht(v),v*m){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Xt(w)-1)*b,b=1;break;case 64:45===dn()&&(w+=bn(un())),f=dn(),u=d=Xt(y=w+=En(fn())),v++;break;case 45:45===h&&2==Xt(w)&&(m=0)}}return i}function _n(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=Yt(f),h=0,m=0,g=0;h<r;++h)for(var b=0,v=Zt(e,d+1,d=Ut(m=a[h])),y=e;b<p;++b)(y=Gt(m>0?f[b]+" "+v:Vt(v,/&\f/g,f[b])))&&(l[g++]=y);return sn(e,t,n,0===o?Ft:s,l,c,u)}function Ln(e,t,n){return sn(e,t,n,zt,Ht(on),Zt(e,2,-2),0)}function kn(e,t,n,r){return sn(e,t,n,Bt,Zt(e,0,r),Zt(e,r+1,-1),r)}function Rn(e,t){for(var n="",r=Yt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function qn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Bt:return e.return=e.return||e.value;case zt:return"";case Wt:return e.return=e.value+"{"+Rn(e.children,r)+"}";case Ft:e.value=e.props.join(",")}return Xt(n=Rn(e.children,r))?e.return=e.value+"{"+n+"}":""}function In(e){var t=Yt(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 On="undefined"!=typeof document,Tn=function(e,t,n){for(var r=0,o=0;r=o,o=dn(),38===r&&12===o&&(t[n]=1),!hn(o);)un();return pn(e,rn)},Dn=function(e,t){return gn(function(e,t){var n=-1,r=44;do{switch(hn(r)){case 0:38===r&&12===dn()&&(t[n]=1),e[n]+=Tn(rn-1,t,n);break;case 2:e[n]+=bn(r);break;case 4:if(44===r){e[++n]=58===dn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ht(r)}}while(r=un());return e}(mn(e),t))},Pn=new WeakMap,Mn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Pn.get(n))&&!r){Pn.set(e,!0);for(var o=[],i=Dn(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},An=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Nn(e,t){switch(function(e,t){return 45^Jt(e,0)?(((t<<2^Jt(e,0))<<2^Jt(e,1))<<2^Jt(e,2))<<2^Jt(e,3):0}(e,t)){case 5103:return jt+"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 jt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return jt+e+Nt+e+At+e+e;case 6828:case 4268:return jt+e+At+e+e;case 6165:return jt+e+At+"flex-"+e+e;case 5187:return jt+e+Vt(e,/(\w+).+(:[^]+)/,jt+"box-$1$2"+At+"flex-$1$2")+e;case 5443:return jt+e+At+"flex-item-"+Vt(e,/flex-|-self/,"")+e;case 4675:return jt+e+At+"flex-line-pack"+Vt(e,/align-content|flex-|-self/,"")+e;case 5548:return jt+e+At+Vt(e,"shrink","negative")+e;case 5292:return jt+e+At+Vt(e,"basis","preferred-size")+e;case 6060:return jt+"box-"+Vt(e,"-grow","")+jt+e+At+Vt(e,"grow","positive")+e;case 4554:return jt+Vt(e,/([^-])(transform)/g,"$1"+jt+"$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,jt+"$1"),/(image-set)/,jt+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,jt+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,jt+"box-pack:$3"+At+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+jt+e+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,jt+"$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(Xt(e)-1-t>6)switch(Jt(e,t+1)){case 109:if(45!==Jt(e,t+4))break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+jt+"$2-$3$1"+Nt+(108==Jt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Kt(e,"stretch")?Nn(Vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Jt(e,t+1))break;case 6444:switch(Jt(e,Xt(e)-3-(~Kt(e,"!important")&&10))){case 107:return Vt(e,":",":"+jt)+e;case 101:return Vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+jt+(45===Jt(e,14)?"inline-":"")+"box$3$1"+jt+"$2$3$1"+At+"$2box$3")+e}break;case 5936:switch(Jt(e,t+11)){case 114:return jt+e+At+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return jt+e+At+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return jt+e+At+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return jt+e+At+e+e}return e}var jn,zn,Fn=On?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]}}))})),Bn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Bt:e.return=Nn(e.value,e.length);break;case Wt:return Rn([ln(e,{value:Vt(e.value,"@","@"+jt)})],r);case Ft: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 Rn([ln(e,{props:[Vt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Rn([ln(e,{props:[Vt(t,/:(plac\w+)/,":"+jt+"input-$1")]}),ln(e,{props:[Vt(t,/:(plac\w+)/,":-moz-$1")]}),ln(e,{props:[Vt(t,/:(plac\w+)/,At+"input-$1")]})],r)}return""}))}}],Wn={exports:{}},Un={};function Hn(){return zn||(zn=1,Wn.exports=function(){if(jn)return Un;jn=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 Un.Fragment=r,Un.jsx=s,Un.jsxs=s,Un}()),Wn.exports}var $n=Hn();let Gn;function Vn(e){const{injectFirst:t,children:n}=e;return t&&Gn?$n.jsx(g,{value:Gn,children:n}):n}"object"==typeof document&&(Gn=function(e){var t=e.key;if(On&&"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||Bn,a={},s=[];On&&(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=[Mn,An];if(On){var u,d=[qn,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=In(c.concat(i,d));o=function(e,t,n,r){u=n,Rn(wn(e?e+"{"+t.styles+"}":t.styles),f),r&&(b.inserted[t.name]=!0)}}else{var p=[qn],h=In(c.concat(i,p)),m=Fn(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=Rn(wn(e?e+"{"+t.styles+"}":t.styles),h)),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 Mt({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 Kn=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 $n.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:Vn,ThemeContext:v,css:y,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 Kn(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 Zn(t){if(e.isValidElement(t)||!Kn(t))return t;const n={};return Object.keys(t).forEach((e=>{n[e]=Zn(t[e])})),n}function Jn(t,n,r={clone:!0}){const o=r.clone?Dt({},t):t;return Kn(t)&&Kn(n)&&Object.keys(n).forEach((i=>{e.isValidElement(n[i])?o[i]=n[i]:Kn(n[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Kn(t[i])?o[i]=Jn(t[i],n[i],r):r.clone?o[i]=Kn(n[i])?Zn(n[i]):n[i]:o[i]=n[i]})),o}var Xn=Object.freeze({__proto__:null,default:Jn,isPlainObject:Kn});const Yn=["values","unit","step"],Qn=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)=>Dt({},e,{[t.key]:t.val})),{})};function er(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Tt(e,Yn),i=Qn(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 Dt({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 tr={borderRadius:4};function nr(e,t){return t?Jn(e,t,{clone:!1}):e}const rr={xs:0,sm:600,md:900,lg:1200,xl:1536},or={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${rr[e]}px)`};function ir(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||or;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||or;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||rr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function ar(e){if("string"!=typeof e)throw new Error(Rt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var sr=Object.freeze({__proto__:null,default:ar});function lr(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 cr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:lr(e,n)||r,t&&(o=t(o,r,e)),o}function ur(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=lr(e.theme,r)||{};return ir(e,i,(e=>{let r=cr(a,o,e);return e===r&&"string"==typeof e&&(r=cr(a,o,`${t}${"default"===e?"":ar(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const dr={m:"margin",p:"padding"},fr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!pr[e])return[e];e=pr[e]}const[t,n]=e.split(""),r=dr[t],o=fr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),mr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function br(e,t,n,r){var o;const i=null!=(o=lr(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 br(e,"spacing",8)}function yr(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Sr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=yr(t,n),e)),{})}(hr(n),r);return ir(e,e[n],o)}function xr(e,t){const n=vr(e.theme);return Object.keys(e).map((r=>Sr(e,t,r,n))).reduce(nr,{})}function wr(e){return xr(e,mr)}function Er(e){return xr(e,gr)}function _r(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 Cr(...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]?nr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Lr(e){return"number"!=typeof e?e:`${e}px solid`}function kr(e,t){return ur({prop:e,themeKey:"borders",transform:t})}wr.propTypes={},wr.filterProps=mr,Er.propTypes={},Er.filterProps=gr;const qr=kr("border",Lr),Rr=kr("borderTop",Lr),Ir=kr("borderRight",Lr),Or=kr("borderBottom",Lr),Dr=kr("borderLeft",Lr),Tr=kr("borderColor"),Mr=kr("borderTopColor"),Ar=kr("borderRightColor"),Pr=kr("borderBottomColor"),Nr=kr("borderLeftColor"),jr=kr("outline",Lr),zr=kr("outlineColor"),Fr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=br(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:yr(t,e)});return ir(e,e.borderRadius,n)}return null};Fr.propTypes={},Fr.filterProps=["borderRadius"],Cr(qr,Rr,Ir,Or,Dr,Tr,Mr,Ar,Pr,Nr,Fr,jr,zr);const Wr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=br(e.theme,"spacing",8),n=e=>({gap:yr(t,e)});return ir(e,e.gap,n)}return null};Wr.propTypes={},Wr.filterProps=["gap"];const Br=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=br(e.theme,"spacing",8),n=e=>({columnGap:yr(t,e)});return ir(e,e.columnGap,n)}return null};Br.propTypes={},Br.filterProps=["columnGap"];const Hr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=br(e.theme,"spacing",8),n=e=>({rowGap:yr(t,e)});return ir(e,e.rowGap,n)}return null};Hr.propTypes={},Hr.filterProps=["rowGap"];function $r(e,t){return"grey"===t?t:e}Cr(Wr,Br,Hr,ur({prop:"gridColumn"}),ur({prop:"gridRow"}),ur({prop:"gridAutoFlow"}),ur({prop:"gridAutoColumns"}),ur({prop:"gridAutoRows"}),ur({prop:"gridTemplateColumns"}),ur({prop:"gridTemplateRows"}),ur({prop:"gridTemplateAreas"}),ur({prop:"gridArea"}));function Ur(e){return e<=1&&0!==e?100*e+"%":e}Cr(ur({prop:"color",themeKey:"palette",transform:$r}),ur({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$r}),ur({prop:"backgroundColor",themeKey:"palette",transform:$r}));const Vr=ur({prop:"width",transform:Ur}),Gr=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])||rr[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:Ur(t)}};return ir(e,e.maxWidth,t)}return null};Gr.filterProps=["maxWidth"];const Kr=ur({prop:"minWidth",transform:Ur}),Zr=ur({prop:"height",transform:Ur}),Jr=ur({prop:"maxHeight",transform:Ur}),Xr=ur({prop:"minHeight",transform:Ur});ur({prop:"size",cssProperty:"width",transform:Ur}),ur({prop:"size",cssProperty:"height",transform:Ur});Cr(Vr,Gr,Kr,Zr,Jr,Xr,ur({prop:"boxSizing"}));const Yr={border:{themeKey:"borders",transform:Lr},borderTop:{themeKey:"borders",transform:Lr},borderRight:{themeKey:"borders",transform:Lr},borderBottom:{themeKey:"borders",transform:Lr},borderLeft:{themeKey:"borders",transform:Lr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fr},color:{themeKey:"palette",transform:$r},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$r},backgroundColor:{themeKey:"palette",transform:$r},p:{style:Er},pt:{style:Er},pr:{style:Er},pb:{style:Er},pl:{style:Er},px:{style:Er},py:{style:Er},padding:{style:Er},paddingTop:{style:Er},paddingRight:{style:Er},paddingBottom:{style:Er},paddingLeft:{style:Er},paddingX:{style:Er},paddingY:{style:Er},paddingInline:{style:Er},paddingInlineStart:{style:Er},paddingInlineEnd:{style:Er},paddingBlock:{style:Er},paddingBlockStart:{style:Er},paddingBlockEnd:{style:Er},m:{style: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:Wr},rowGap:{style:Hr},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:Ur},maxWidth:{style:Gr},minWidth:{transform:Ur},height:{transform:Ur},maxHeight:{transform:Ur},minHeight:{transform:Ur},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qr(){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=lr(n,s)||{};if(c)return c(o);return ir(o,t,(t=>{let n=cr(u,l,t);return t===n&&"string"==typeof t&&(n=cr(u,l,`${e}${"default"===t?"":ar(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:Yr;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=nr(l,e(n,o,i,a));else{const e=ir({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=nr(l,e):l[n]=t({sx:o,theme:i})}else l=nr(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 eo=Qr();function to(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:{}}eo.filterProps=["sx"];const no=["breakpoints","palette","spacing","shape"];function ro(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Tt(e,no),s=er(n),l=_r(o);let c=Jn({breakpoints:s,direction:"ltr",components:{},palette:Dt({mode:"light"},r),spacing:l,shape:Dt({},tr,i)},a);return c.applyStyles=to,c=t.reduce(((e,t)=>Jn(e,t)),c),c.unstable_sxConfig=Dt({},Yr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return eo({sx:e,theme:this})},c}var oo=Object.freeze({__proto__:null,default:ro,private_createBreakpoints:er,unstable_applyStyles:to});function io(t=null){const n=e.useContext(v);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const ao=ro();const so=["sx"];var lo=Object.freeze({__proto__:null,default:eo,extendSxProp:function(e){const{sx:t}=e,n=Tt(e,so),{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:Yr;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 Kn(n)?Dt({},r,n):r}:Dt({},r,t),Dt({},o,{sx:i})},unstable_createStyleFunctionSx:Qr,unstable_defaultSxConfig:Yr});const co=e=>e,uo=(()=>{let e=co;return{configure(t){e=t},generate:t=>e(t),reset(){e=co}}})();function fo(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=fo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function po(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fo(e))&&(r&&(r+=" "),r+=t);return r}const ho={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 mo(e,t,n="Mui"){const r=ho[t];return r?`${n}-${r}`:`${uo.generate(e)}-${t}`}function go(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=mo(e,t,n)})),r}var bo,vo,yo={exports:{}},So={};var xo=(vo||(vo=1,yo.exports=function(){if(bo)return So;bo=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"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case p:case f:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),So.ContextConsumer=s,So.ContextProvider=a,So.Element=t,So.ForwardRef=c,So.Fragment=r,So.Lazy=p,So.Memo=f,So.Portal=n,So.Profiler=i,So.StrictMode=o,So.Suspense=u,So.SuspenseList=d,So.isAsyncMode=function(){return!1},So.isConcurrentMode=function(){return!1},So.isContextConsumer=function(e){return m(e)===s},So.isContextProvider=function(e){return m(e)===a},So.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},So.isForwardRef=function(e){return m(e)===c},So.isFragment=function(e){return m(e)===r},So.isLazy=function(e){return m(e)===p},So.isMemo=function(e){return m(e)===f},So.isPortal=function(e){return m(e)===n},So.isProfiler=function(e){return m(e)===i},So.isStrictMode=function(e){return m(e)===o},So.isSuspense=function(e){return m(e)===u},So.isSuspenseList=function(e){return m(e)===d},So.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},So.typeOf=m,So}()),yo.exports);const wo=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Eo(e){const t=`${e}`.match(wo);return t&&t[1]||""}function _o(e,t=""){return e.displayName||e.name||Eo(e)||t}function Co(e,t,n){const r=_o(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Lo=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return _o(e,"Component");if("object"==typeof e)switch(e.$$typeof){case xo.ForwardRef:return Co(e,e.render,"ForwardRef");case xo.Memo:return Co(e,e.type,"memo");default:return}}},getFunctionName:Eo});function ko(e,t){const n=Dt({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Dt({},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]=Dt({},i),Object.keys(o).forEach((e=>{n[r][e]=ko(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const qo="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var Ro=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 Io(e){return e&&e.ownerDocument||document}function Oo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Do=0;const To=e["useId".toString()];class Mo{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Mo}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let Ao=!0,Po=!1;const No=new Mo,jo={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 zo(e){e.metaKey||e.altKey||e.ctrlKey||(Ao=!0)}function Fo(){Ao=!1}function Wo(){"hidden"===this.visibilityState&&Po&&(Ao=!0)}function Bo(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ao||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!jo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const Ho=e.createContext(null);function $o(){return e.useContext(Ho)}var Uo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Vo(t){const{children:n,theme:r}=t,o=$o(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return Dt({},e,t)}(o,r);return null!=e&&(e[Uo]=null!==o),e}),[r,o]);return $n.jsx(Ho.Provider,{value:i,children:n})}const Go=["value"],Ko=e.createContext();function Zo(e){let{value:t}=e,n=Tt(e,Go);return $n.jsx(Ko.Provider,Dt({value:null==t||t},n))}const Jo=e.createContext(void 0);function Xo({value:e,children:t}){return $n.jsx(Jo.Provider,{value:e,children:t})}function Yo({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?ko(o.defaultProps,r):o.styleOverrides||o.variants?r:ko(o,r)}({props:t,name:n,theme:{components:e.useContext(Jo)}})}const Qo={};function ei(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?Dt({},n,{[t]:i}):i;return o?()=>a:a}return Dt({},n,t?{[t]:r}:r)}),[t,n,r,o])}function ti(e){const{children:t,theme:n,themeId:r}=e,o=io(Qo),i=$o()||Qo,a=ei(r,o,n),s=ei(r,i,n,!0),l="rtl"===a.direction;return $n.jsx(Vo,{theme:s,children:$n.jsx(v.Provider,{value:a,children:$n.jsx(Zo,{value:l,children:$n.jsx(Xo,{value:null==a?void 0:a.components,children:t})})})})}const ni=["defaultProps","mixins","overrides","palette","props","styleOverrides"],ri=["type","mode"];var oi,ii={},ai={exports:{}};function si(){return oi||(oi=1,(e=ai).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),ai.exports;var e}var li,ci=K(It),ui=K(Ro);function di(){if(li)return ii;li=1;var e=si();Object.defineProperty(ii,"__esModule",{value:!0}),ii.alpha=u,ii.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})},ii.colorChannel=void 0,ii.darken=d,ii.decomposeColor=i,ii.emphasize=p,ii.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},ii.getLuminance=c,ii.hexToRgb=o,ii.hslToRgb=l,ii.lighten=f,ii.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},ii.private_safeColorChannel=void 0,ii.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},ii.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},ii.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},ii.recomposeColor=s,ii.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(ci),n=e(ui);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(" ")};ii.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 f(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 p(e,t=.15){return c(e)>.5?d(e,t):f(e,t)}return ii.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},ii}var fi=di();const pi={black:"#000",white:"#fff"},hi={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"},mi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},gi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},bi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},vi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},yi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Si={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},xi=["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:pi.white,default:pi.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}},Ei={text:{primary:pi.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:pi.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 _i(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 Ci(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Tt(e,xi),i=e.primary||function(e="light"){return"dark"===e?{main:vi[200],light:vi[50],dark:vi[400]}:{main:vi[700],light:vi[400],dark:vi[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:mi[200],light:mi[50],dark:mi[400]}:{main:mi[500],light:mi[300],dark:mi[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:gi[500],light:gi[300],dark:gi[700]}:{main:gi[700],light:gi[400],dark:gi[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:yi[400],light:yi[300],dark:yi[700]}:{main:yi[700],light:yi[500],dark:yi[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Si[400],light:Si[300],dark:Si[700]}:{main:Si[800],light:Si[500],dark:Si[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:bi[400],light:bi[300],dark:bi[700]}:{main:"#ed6c02",light:bi[500],dark:bi[900]}}(t);function d(e){return fi.getContrastRatio(e,Ei.text.primary)>=n?Ei.text.primary:wi.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Dt({},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 _i(e,"light",o,r),_i(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:Ei,light:wi};return Jn(Dt({common:Dt({},pi),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:hi,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const Li=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ki={textTransform:"uppercase"},qi='"Roboto", "Helvetica", "Arial", sans-serif';function Ri(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,f=Tt(n,Li),p=o/14,h=d||(e=>e/c*p+"rem"),m=(e,t,n,o,i)=>{return Dt({fontFamily:r,fontWeight:e,fontSize:h(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,ki),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ki),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jn(Dt({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function Ii(...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 Oi=["none",Ii(0,2,1,-1,0,1,1,0,0,1,3,0),Ii(0,3,1,-2,0,2,2,0,0,1,5,0),Ii(0,3,3,-2,0,3,4,0,0,1,8,0),Ii(0,2,4,-1,0,4,5,0,0,1,10,0),Ii(0,3,5,-1,0,5,8,0,0,1,14,0),Ii(0,3,5,-1,0,6,10,0,0,1,18,0),Ii(0,4,5,-2,0,7,10,1,0,2,16,1),Ii(0,5,5,-3,0,8,10,1,0,3,14,2),Ii(0,5,6,-3,0,9,12,1,0,3,16,2),Ii(0,6,6,-3,0,10,14,1,0,4,18,3),Ii(0,6,7,-4,0,11,15,1,0,4,20,3),Ii(0,7,8,-4,0,12,17,2,0,5,22,4),Ii(0,7,8,-4,0,13,19,2,0,5,24,4),Ii(0,7,9,-4,0,14,21,2,0,5,26,4),Ii(0,8,9,-5,0,15,22,2,0,6,28,5),Ii(0,8,10,-5,0,16,24,2,0,6,30,5),Ii(0,8,11,-5,0,17,26,2,0,6,32,5),Ii(0,9,11,-5,0,18,28,2,0,7,34,6),Ii(0,9,12,-6,0,19,29,2,0,7,36,6),Ii(0,10,13,-6,0,20,31,3,0,8,38,7),Ii(0,10,13,-6,0,21,33,3,0,8,40,7),Ii(0,10,14,-6,0,22,35,3,0,8,42,7),Ii(0,11,14,-7,0,23,36,3,0,9,44,8),Ii(0,11,15,-7,0,24,38,3,0,9,46,8)],Di=["duration","easing","delay"],Ti={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)"},Mi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ai(e){return`${Math.round(e)}ms`}function Pi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ni(e){const t=Dt({},Ti,e.easing),n=Dt({},Mi,e.duration);return Dt({getAutoHeightDuration:Pi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Tt(r,Di),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ai(o)} ${i} ${"string"==typeof a?a:Ai(a)}`)).join(",")}},e,{easing:t,duration:n})}const ji={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fi(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Tt(e,zi);if(e.vars&&void 0===e.generateCssVars)throw new Error(Rt(18));const s=Ci(r),l=ro(e);let c=Jn(l,{mixins:(u=l.breakpoints,d=n,Dt({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Oi.slice(),typography:Ri(s,i),transitions:Ni(o),zIndex:Dt({},ji)});var u,d;return c=Jn(c,a),c=t.reduce(((e,t)=>Jn(e,t)),c),c.unstable_sxConfig=Dt({},Yr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return eo({sx:e,theme:this})},c}const Wi=Fi();function Bi(){const e=function(e=ao){return io(e)}(Wi);return e[Ot]||e}var Hi,$i={},Ui={exports:{}};var Vi,Gi={exports:{}};var Ki,Zi=K(Gn),Ji=K(Xn),Xi=K(sr),Yi=K(Lo),Qi=K(oo),ea=K(lo);function ta(){if(Ki)return $i;Ki=1;var e=si();Object.defineProperty($i,"__esModule",{value:!0}),$i.default=function(e={}){const{themeId:t,defaultTheme:a=p,rootShouldForwardProp:l=f,slotShouldForwardProp:c=f}=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:p,slot:v,skipVariantsResolver:y,skipSx:S,overridesResolver:x=g(h(v))}=s,w=(0,r.default)(s,u),E=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,_=S||!1;let C=f;"Root"===v||"root"===v?C=l:v?C=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const L=(0,o.default)(e,(0,n.default)({shouldForwardProp:C,label:undefined},w)),k=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,q=(r,...o)=>{let i=k(r);const s=o?o.map(k):[];p&&x&&s.push((e=>{const r=m((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[p]||!r.components[p].styleOverrides)return null;const o=r.components[p].styleOverrides,i={};return Object.entries(o).forEach((([t,o])=>{i[t]=b(o,(0,n.default)({},e,{theme:r}))})),x(e,i)})),p&&!E&&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[p])?void 0:r.variants},(0,n.default)({},e,{theme:o}))})),_||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=L(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return L.withConfig&&(q.withConfig=L.withConfig),q}},$i.shouldForwardProp=f,$i.systemDefaultTheme=void 0;var t,n=e((Hi||(Hi=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ui)),Ui.exports)),r=e((Vi||(Vi=1,(t=Gi).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports),Gi.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}(Zi),i=Ji;e(Xi),e(Yi);var a=e(Qi),s=e(ea);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 f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=$i.systemDefaultTheme=(0,a.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function b(e,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 $i}const na=G(ta())({themeId:Ot,defaultTheme:Wi,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),ra=["theme"];function oa(e){let{theme:t}=e,n=Tt(e,ra);const r=t[Ot];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=Dt({},r,{vars:null}):t&&!t.vars&&(o=Dt({},t,{vars:null}))),$n.jsx(ti,Dt({},n,{themeId:r?Ot:void 0,theme:o}))}function ia(e,t){return ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ia(e,t)}function aa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ia(e,t)}function sa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const la=go("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 ca={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 ua={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},da={mode:"light",palette:{primary:{main:ua.grey25,contrastText:ua.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:ua.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:ua.grey100,dark:ua.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:ua.grey100,default:ua.grey100,lightest:ua.grey100,lighter:ua.grey98,darker:ua.grey95,darkest:ua.grey90},custom:{focusBorder:ua.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:ua.grey45,disabledContrastText:ua.grey100},selected:{main:ua.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:ua.grey100,selectedContrastText:ua.grey100,mainContrastText:ua.grey100,alternativeContrastText:ua.grey25,excludedContrastText:ua.grey25,selectedExcludedContrastText:ua.grey100,possibleContrastText:ua.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)"}}},fa={mode:"dark",palette:{primary:{main:ua.grey20,contrastText:ua.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:ua.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:ua.grey100,dark:ua.grey0},action:{active:ua.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:ua.grey25,lighter:ua.grey20,darker:ua.grey15,darkest:ua.grey10},custom:{focusBorder:ua.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:ua.grey45,disabledContrastText:ua.grey100},selected:{main:ua.green,alternative:ua.grey20,excluded:ua.grey10,selectedExcluded:ua.grey10,possible:ua.grey80,selectedContrastText:ua.grey100,mainContrastText:ua.grey100,alternativeContrastText:ua.grey100,excludedContrastText:ua.grey100,selectedExcludedContrastText:ua.grey100,possibleContrastText:ua.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)"}}},pa={},ha=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(la.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(la.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(la.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(la.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function ma(e){let t=da,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=fa));const r=JSON.stringify(t);if(pa[r])return pa[r];const o={palette:te(te({type:t.mode},ca.palette),t.palette),typography:te({},ca.typography),shadows:ca.shadows,props:te({},ca.props),shape:te({},ca.shape)};return pa[r]=Fi(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=Dt({},Tt(e,ni),{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=_r(e.spacing);const l=er(e.breakpoints||{}),c=s.spacing;s.mixins=Dt({gutters:(e={})=>Dt({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:Dt({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,f=Tt(o,ri),p=d||u||"light";return s.palette=Dt({text:{hint:"dark"===p?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:p,type:p},f),s}(te(te({},o),{},{overrides:ha(o)}))),pa[r].name=n,pa[r]}uo.configure((e=>"njs-".concat("dc2c","-").concat(e.replace("Mui",""))));var ga=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const ba={active:!0,select:!0,passive:!0,edit:!1};function va(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(ba).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=ba[e],n[e]=!ba[e])})),e.constraints=n,e.interactions=t}var ya=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 Sa=o(((e,o)=>{let{initialContext:s,renderCallback:l,modelStore:c,selectionStore:u}=e;const[d,f]=n(s),[p,h]=n(),{theme:m}=i((()=>({theme:ma(p)})),[p]),[g,b]=n([]);return r((()=>{l&&l()}),[]),a(o,(()=>({setComps(e){b([...e])},setMuiThemeName:h,setContext:e=>f((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),d&&(d.modelStore=c,d.selectionStore=u),t.createElement(Vn,{injectFirst:!0},t.createElement(oa,{theme:m},t.createElement(ga.Provider,{value:d},g)))}));function xa(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.14.0"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),o&&va(o);const l=function(e){const[t,n]=ya({}),[r,o]=ya({}),[i,a]=ya({}),[s,l]=ya({}),[c,u]=ya({}),[,d]=ya({}),f=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},[p,h]=ya({},f);return{subscribe:e=>{const t=f({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},useModelStore:p,modelStore:h,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]=ya({}),[r,o]=ya({}),[i,a]=ya({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(r.id),u=qt.createRoot(s);u.render(t.createElement(Sa,{ref:a,initialContext:o,renderCallback:n,modelStore:l,selectionStore:c}));const d={},f=[],p=[];return[{toggleFocusOfCells(e){Object.keys(d).forEach((t=>{var n;null===(n=d[t].current)||void 0===n||n.toggleFocus(t===e)}))},cells:d,addCell(e,t){d[e]=t},removeCell(e){delete d[e]},add(e,t){(async()=>{await i,p.push(e),f.push(t),a.current.setComps(p)})()},remove(e){(async t=>{await i;const n=p.indexOf(e);var r;-1!==n&&(null===(r=f[n])||void 0===r||r.call(f),p.splice(n,1),f.splice(n,1));null==a||null===(t=a.current)||void 0===t||t.setComps(p)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,e&&va(e),a.current.setContext(e)})()},destroy(){f.forEach((e=>{e&&e()})),l.destroy(),u.unmount()}},l,c,a,i]}function wa(){const{useModelStore:e}=s(ga).modelStore;return e()}function Ea(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=wa(),[a]=function(){const{useRpcRequestSessionModelStore:e}=s(ga).modelStore;return e()}(),[l,c]=n();for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];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 _a={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Ca(e){return Ea(_a,e)}const La=e=>new Promise((t=>{setTimeout(t,e)})),ka=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=te(te({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:te({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=te(te({},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(ga).modelStore;return e()}(),[i,a]=l(ka,n?o.get(n):null),[c]=function(){const{useModelChangedStore:e}=s(ga).modelStore;return e()}(),[u]=function(){const{useRpcRequestStore:e}=s(ga).modelStore;return e()}();let d;n&&(d=u.get(n),d||(d={},u.set(n,d)));const f=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 La(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),f(!0))}},p={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,f()}};return r((()=>{e&&f()}),[e,c.get(e&&e.id),n,t]),[i&&i.result,{validating:i&&i.validating,canCancel:i&&i.canCancel,canRetry:i&&i.canRetry},p]}function Ra(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=qa(e,"getLayout");return null!=e&&e.pureLayout?[e.pureLayout,{validating:n,canCancel:r,canRetry:o},i]:[t,{validating:n,canCancel:r,canRetry:o},i]}function Ia(e){return qa(e,"getAppLayout")}function Oa(){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 Da(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Ta(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=te({fontSize:Da(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,Q({key:n},o))}))))}var Ma=e=>Ta((e=>te(te({},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 Aa=e=>Ta((e=>te(te({},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 Pa=e=>te(te({},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 Na=e=>Ta(Pa(e));var ja=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}}(),za=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},Fa=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=za(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},za(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),ja(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 f=a[0]-1;if(t(f))break;a[0]=f}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 Wa=["S","XS"],Ba=e=>e.reduce(((e,t)=>e.concat(t)));function Ha(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!Wa.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return Ba(t)}async function $a(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 Ua="RowColumn",Va={row:"".concat(Ua,"-row"),rowBorderBottom:"".concat(Ua,"-rowBorderBottom"),column:"".concat(Ua,"-column"),fieldRoot:"".concat(Ua,"-fieldRoot"),cell:"".concat(Ua,"-cell"),labelText:"".concat(Ua,"-labelText"),labelDense:"".concat(Ua,"-labelDense"),highlighted:"".concat(Ua,"-highlighted"),checkboxLabel:"".concat(Ua,"-checkboxLabel"),icon:"".concat(Ua,"-icon"),S:"".concat(Ua,"-S"),XS:"".concat(Ua,"-XS"),A:"".concat(Ua,"-A"),X:"".concat(Ua,"-X"),frequencyCount:"".concat(Ua,"-frequencyCount"),barContainer:"".concat(Ua,"-barContainer"),bar:"".concat(Ua,"-bar"),barSelected:"".concat(Ua,"-barSelected"),barWithCheckbox:"".concat(Ua,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ua,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ua,"-excludedTextWithCheckbox")},Ga=".".concat(Va.fieldRoot),Ka=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function Za(e){var t;let{selectionState:n,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:s}=e;const l=f({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(),$a({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 Ba(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)},p=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=d(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},h=c((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&Ka(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&&Ka(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");p(t)}u()}}),[]),b=c((e=>{0===e.button&&l.current.active&&(l.current.active=!1,u())}),[]),v=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");p(t)}),[]),y=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(Ga))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(Ga))||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,p(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:h}):Object.assign(x,{onMouseUp:g,onMouseDown:m,onMouseEnter:v,onTouchStart:y,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&&Ka(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const s=[];return n.updateItems(t,r,s),n.setSelectableValuesUpdating(),$a({selections:o,elemNumbers:r?s:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const Ja=e=>te(te({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var Xa=e=>Ta(Ja(e));const Ya=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,Qa=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||Ya(t))&&n};const es=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const i=[t?Va.column:Va.row];n||i.push(Va.rowBorderBottom);const a=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?Va.XS:Va.S;break;case"S":case"L":t=Va.S;break;case"A":t=!!r&&Va.A;break;case"X":case"XL":t=!!r&&Va.X;break;default:t=!1}return t}({cell:r,showGray:o});return a&&i.push(a),i},ts=9,ns=4,rs=7,os=12+2*(rs+1),is=80,as=10,ss=150,ls=56,cs=20,us="-",ds=32,fs=29,ps=20,hs=4,ms=e=>e.filter((e=>!!e)).join(" ").trim(),gs=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,"%")},bs=e=>e||us,vs=["backgroundColor"],ys=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%"},Ss=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},xs=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(Va.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(Va.labelText)]:{color:s},["& .".concat(Va.icon)]:{color:s}}},ws={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Es=na("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:f}=d,p=ne(d,vs),h=xs({theme:t,styles:u,checkboxes:n,selectionState:"selected"}),m=xs({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(Va.row)]:te({flexWrap:"nowrap"},u.content),["& .".concat(Va.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(Va.column)]:te({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(Va.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(ts,"px"),paddingRight:0},["& .".concat(Va.labelText)]:te(te({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},ws),p),["& .".concat(Va.labelDense)]:{lineHeight:"18px"},["& .".concat(Va.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(Va.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":te(te({},ws),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Va.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:p.color},["& .".concat(Va.S)]:te(te({},h),{},{border:r?"none":void 0}),["& .".concat(Va.XS)]:te(te({},xs({theme:t,styles:u,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(Va.A)]:te(te({},xs({theme:t,styles:u,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(Va.X)]:te(te({},m),{},{border:r?"none":void 0}),["& .".concat(Va.X,", & .").concat(Va.XS)]:{border:r?"none":void 0,["& .".concat(Va.barSelected," .bar-filled")]:te({},g)},["& .".concat(Va.frequencyCount)]:te(te({zIndex:3,justifyContent:"flex-end"},ws),{},{flex:"0 0 ".concat(ys({sizes:s,frequencyMode:l,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==l&&c?s.freqMinWidth:"max-content",maxWidth:Ss({sizes:s,frequencyMode:l,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(Va.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Va.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":te({},g)},["& .".concat(Va.barSelected)]:{"& .bar-filled":te({},b)},["& .".concat(Va.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Va.barSelectedWithCheckbox)]:{"& .bar-filled":te(te({},b),{},{backgroundColor:u.selections.selected||"#BFE5D0",borderColor:u.selections.selected})},["& .".concat(Va.excludedTextWithCheckbox)]:{color:u.content.color,fontStyle:"italic"}}}));var _s=t.memo(Es);const Cs="ListBoxCheckbox",Ls={cbIcon:"".concat(Cs,"-cbIcon"),cbIconChecked:"".concat(Cs,"-cbIconChecked"),cbIconExcluded:"".concat(Cs,"-cbIconExcluded"),cbIconAlternative:"".concat(Cs,"-cbIconAlternative"),checkbox:"".concat(Cs,"-checkbox"),dense:"".concat(Cs,"-dense")},ks=na(x,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(Ls.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(Ls.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(Ls.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(Ls.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(Ls.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Ls.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 Rs(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,styles:s,showGray:l=!0,dataN:c}=e;return t.createElement(ks,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[Ls.checkbox,i&&Ls.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":c},name:o,icon:qs(Ls,l,a),checkedIcon:t.createElement("span",{className:Ls.cbIconChecked}),styles:s})}const Is={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Os=na(w,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Is.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Ds(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a,styles:s}=e;return t.createElement(Os,{checked:r,onChange:n,value:o,name:o,className:Is.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:i?"small":"medium",dense:i,styles:s})}function Ts(e){let{label:n,dense:r,showGray:o=!0,checkboxes:i,cell:a,valueTextAlign:s}=e;return t.createElement(E,{component:"span",variant:"body2",className:ms([Va.labelText,r&&Va.labelDense,o&&Qa({cell:a,checkboxes:i})&&Va.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,n))}function Ms(e){let{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}=e;return"string"==typeof n?t.createElement(Ts,{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}):n}function As(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:f,styles:p}=e;const h=t.createElement(Rs,{onChange:n,label:r,checked:i,dense:a,excluded:Ya(s),isGridCol:l,showGray:c,dataN:o,styles:p}),m=t.createElement(Ds,{onChange:n,label:r,checked:i,dense:a,dataN:o,styles:p});return t.createElement(_,{control:u?m:h,className:Va.checkboxLabel,label:t.createElement(Ms,{label:r,dense:a,showGray:c,checkboxes:d,cell:s,valueTextAlign:f}),key:o})}function Ps(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?Va.highlighted:""},r)}));return t.createElement(Ts,{label:a,dense:r,showGray:o,checkboxes:i})}function Ns(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,qElemNumber:s,isSelected:l,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:f,styles:p}=e;const h=t.createElement(Ps,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(As,{onChange:n,label:h,qElemNumber:s,isSelected:l,dense:i,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:o,valueTextAlign:f,styles:p}):h}var js=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:f,styles:p}=e;return d?t.createElement(As,{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:f,styles:p}):t.createElement(Ts,{label:r,dense:a,showGray:!0,checkboxes:d,cell:s,valueTextAlign:f})}));function zs(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&bs(n)!==us))return;const s=gs({qFrequency:n,frequencyMax:a});return t.createElement(C,{className:ms([Va.bar,o&&Va.barWithCheckbox,i&&(o?Va.barSelectedWithCheckbox:Va.barSelected)])},t.createElement(C,{className:"bar-filled",width:s}))}function Fs(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;const a=bs(null==n?void 0:n.qFrequency);return t.createElement(L,{item:!0,style:{display:"flex",alignItems:"center"},className:Va.frequencyCount,"aria-label":a,title:a},t.createElement(E,{noWrap:!0,color:"inherit",variant:"body2",className:ms([o&&Va.labelDense,Va.labelText,i&&Qa({cell:n,checkboxes:r})&&Va.excludedTextWithCheckbox])},a))}function Ws(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 Bs=na(L,{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(Va.fieldRoot)]:te(te({},Ws({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[s]:o?"8px":void 0})}}));const Hs=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===Hs.ARROW_UP||e===Hs.ARROW_DOWN||e===Hs.ARROW_LEFT||e===Hs.ARROW_RIGHT});function $s(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function Us(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 Vs(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=Us(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)})),$s(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 Gs=e=>+e.getAttribute("data-n"),Ks=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},Zs=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(),$s(e),o},Js=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},Xs=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=Us(i),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||s)t.blur(!0);else{$s(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},Ys=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===Hs.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 Qs={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 el(e){var o,a;let{index:s,rowIndex:l,columnIndex:u,style:d,data:f}=e;const{onChange:p,onClick:h,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onTouchStart:v,onTouchEnd:y,pages:S,isLocked:x,column:w=!1,checkboxes:E=!1,textAlign:_,direction:C,layoutOptions:k={},freqIsAllowed:q,isSingleSelect:R,actions:I,frequencyMax:O="",histogram:D=!1,keyboard:T,showGray:M=!0,showTick:A=!0,columnCount:P=1,rowCount:N=1,dataOffset:j,deducedFrequencyMode:z,focusListItems:F,listCount:W,sizes:B,translator:H,showSearch:$,isModal:U,contentFontStyle:V,styles:G,fillHeight:K}=f,{dense:Z=!1,dataLayout:J="singleColumn",layoutOrder:X}=k,{itemPadding:Y}=B;let Q,ee;const ne={max:null,currentIndex:null};if("number"==typeof l&&"number"==typeof u){"row"===X?(Q=l*P+u,ne.max=N,ne.currentIndex=l):(Q=u*N+l,ne.max=P,ne.currentIndex=u);const e=0;ee=te(te({},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 Q=s,ne.max=W,ne.currentIndex=s,ee=te({},d);Q+=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:f,columnIndex:p,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===Hs.ARROW_LEFT||e===Hs.ARROW_RIGHT||"number"!=typeof f||"number"!=typeof p){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=Ys({rowIndex:f,columnIndex:p,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:f}=e,{keyCode:p,shiftKey:h=!1,ctrlKey:v=!1,metaKey:y=!1}=f;switch(p){case Hs.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==l||!l.enabled){if(!n)return;return l.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){Ks(t)||Js(t)||(n?l.focusSelection():Xs(e,l));break}l.focusSelection()||Js(t)||Ks(t)||(d.blur(),Xs(e,l));break}case Hs.SHIFT:b(!0);break;case Hs.SPACE:t([Gs(d)],!1,e);break;case Hs.ARROW_DOWN:case Hs.ARROW_RIGHT:u=m(p,d,!0),h&&u&&(g&&(t([Gs(d)],!0),b(!1)),t([Gs(u)],!0));break;case Hs.ARROW_UP:case Hs.ARROW_LEFT:u=m(p,d,!1),h&&u&&(g&&(t([Gs(d)],!0),b(!1)),t([Gs(u)],!0));break;case Hs.ENTER:if(o(),void 0===c)return;break;case Hs.ESCAPE:if(void 0===c)return void i();if(!c())return;i();break;case Hs.HOME:if(s.setFirst(!0),v){null==a||a("overflowStart");break}null==a||a("start");break;case Hs.END:if(s.setLast(!0),v){null==a||a("overflowEnd");break}null==a||a("end");break;case Hs.A:if(v||y){n();break}return;case Hs.F:if(v||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(te(te({},I),{},{focusListItems:F,keyboard:T,isModal:U,rowCount:N,columnCount:P,rowIndex:l,columnIndex:u,layoutOrder:X})),[I,null==T?void 0:T.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:Q})),[S,Q]),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((()=>es({column:w,histogram:D,cell:ae,showGray:M})),[null==ae?void 0:ae.qState,D,Z]),ce=c((e=>{e.preventDefault()}),[E]),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:C,cell:ae,textAlign:_})),[C,ae,_]);if(!ae)return null;const de="grid"===J&&"column"===X,fe=null!==(o=null==ae?void 0:ae.qText)&&void 0!==o?o:"";let pe;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))||[];pe=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}(fe,e)}const he={alignItems:"center",display:"flex",fontSize:"8px"},me="rtl"===C,ge={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:me?8:E?0:void 0,paddingRight:E?0:me?8:0,justifyContent:ue,textAlign:ue},be=0===s,ve=se&&x,ye=!E&&se&&!x,Se=!E&&A,xe=E||!A,we=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=Qs[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),f=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,f),u.join(". ").trim()}({translator:H,label:fe,qState:ae.qState,currentIndex:ne.currentIndex,maxIndex:ne.max,showSearch:$}),Ee=!me&&"right"===ue||me&&"left"===ue;return t.createElement(_s,{className:Va.barContainer,checkboxes:E,style:ee,styles:G,isGridCol:de,isGridMode:"grid"===J,dense:Z,direction:C,sizes:B,frequencyMode:z,freqHitsValue:Ee,contentFontStyle:V,"data-testid":"listbox.item"},t.createElement(Bs,{role:"row","aria-label":we,"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:ms(["value",...le]),classes:{root:Va.fieldRoot},onClick:h,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onKeyDown:ie,onTouchStart:v,onTouchEnd:y,onContextMenu:ce,tabIndex:be&&T.innerTabStops?0:-1,"data-n":null==ae?void 0:ae.qElemNumber,direction:C,fillHeight:K},(null==ae?void 0:ae.qFrequency)&&t.createElement(zs,{qFrequency:null==ae?void 0:ae.qFrequency,histogram:D,checkboxes:E,isSelected:se,frequencyMax:O}),t.createElement(L,{item:!0,style:ge,className:ms([Va.cell,Va.selectedCell]),title:"".concat(fe)},pe?t.createElement(Ns,{onChange:p,labels:pe,checkboxes:E,dense:Z,showGray:M,qElemNumber:ae.qElemNumber,isSelected:se,cell:ae,isGridCol:de,isSingleSelect:R,valueTextAlign:ue,styles:G}):t.createElement(js,{onChange:p,label:fe,qElemNumber:ae.qElemNumber,isSelected:se,dense:Z,cell:ae,isGridCol:de,showGray:M,isSingleSelect:R,checkboxes:E,valueTextAlign:ue,styles:G})),q&&t.createElement(Fs,{cell:ae,checkboxes:E,dense:Z,showGray:M}),Se&&t.createElement(L,{item:!0,className:Va.icon},ve&&t.createElement(Aa,{style:he,size:"small"}),ye&&t.createElement(Xa,{style:he,size:"small"}))))}var tl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function nl(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||tl(r)&&tl(o)))return!1;var r,o;return!0}function rl(e,t){var n;void 0===t&&(t=nl);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 ol="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function il(e){cancelAnimationFrame(e.id)}function al(e,t){var n=ol();var r={id:requestAnimationFrame((function o(){ol()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var sl=-1;function ll(e){if(void 0===e&&(e=!1),-1===sl||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),sl=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return sl}var cl=null;function ul(e){if(void 0===e&&(e=!1),null===cl||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?cl="positive-descending":(t.scrollLeft=1,cl=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),cl}return cl}var dl=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function fl(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,f=e.getRowOffset,h=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,b=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,sa(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:sa(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=rl((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=rl((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),p=e+":"+t;if(d.hasOwnProperty(p))o=d[p];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;d[p]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f(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=rl((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(ul()){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&&il(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=al(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}aa(t,e),t.getDerivedStateFromProps=function(e,t){return pl(e,t),v(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,f=i.rowCount,p=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=ll();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,f-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>p?b:0,S=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},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(ul()){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&&il(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,f=e.itemKey,h=void 0===f?dl:f,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,S=e.width,x=this.state.isScrolling,w=this._getHorizontalRangeToRender(),E=w[0],_=w[1],C=this._getVerticalRangeToRender(),L=C[0],k=C[1],q=[];if(r>0&&b)for(var R=L;R<=k;R++)for(var I=E;I<=_;I++)q.push(p(t,{columnIndex:I,data:d,isScrolling:y?x:void 0,key:h({columnIndex:I,data:d,rowIndex:R}),rowIndex:R,style:this._getItemStyle(R,I)}));var O=a(this.props,this._instanceProps),D=s(this.props,this._instanceProps);return p(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Dt({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},p(c||u||"div",{children:q,ref:l,style:{height:O,pointerEvents:x?"none":void 0,width:D}}))},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],f=u[1],p=u[2],h=u[3];this._callOnItemsRendered(a,s,d,f,l,c,p,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,v,g,S,y)}},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,f=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var p=r(this.props,d,this._instanceProps),h=o(this.props,p,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,f),g=u&&"forward"!==c?1:Math.max(1,f);return[Math.max(0,p-m),Math.max(0,Math.min(t-1,h+g)),p,h]},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=h(this.props,c,this._instanceProps),f=m(this.props,d,c,this._instanceProps),p=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-p),Math.max(0,Math.min(i-1,f+g)),d,f]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var pl=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},hl=function(e,t){return e};function ml(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,sa(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:sa(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=rl((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=rl((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),f=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=rl((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(ul()){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&&il(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=al(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}aa(t,e),t.getDerivedStateFromProps=function(e,t){return gl(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?ll():0:l.scrollHeight>l.clientHeight?ll():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(ul()){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&&il(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,f=void 0===d?hl:d,h=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,S=this.state.isScrolling,x="horizontal"===o||"horizontal"===h,w=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),_=E[0],C=E[1],L=[];if(c>0)for(var k=_;k<=C;k++)L.push(p(t,{data:u,key:f(k,u),index:k,isScrolling:v?S:void 0,style:this._getItemStyle(k)}));var q=r(this.props,this._instanceProps);return p(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:Dt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},p(s||l||"div",{children:L,ref:a,style:{height:x?"100%":q,pointerEvents:S?"none":void 0,width:x?q:"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),f=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var gl=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},bl=fl({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 f=Math.round(d+(u-d)/2);return f<Math.ceil(l/2)?0:f>c+Math.floor(l/2)?c:f;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 f=Math.round(d+(u-d)/2);return f<Math.ceil(s/2)?0:f>c+Math.floor(s/2)?c:f;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}}),vl=ml({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,f="horizontal"===a||"horizontal"===u?d:s,p=Math.max(0,l*c-f),h=Math.min(p,t*c),m=Math.max(0,t*c-f+c+i);switch("smart"===n&&(n=r>=m-f&&r<=h+f?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(f/2)?0:g>p+Math.floor(f/2)?p:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const yl="#BBB",Sl="#f1f1f1",xl={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const wl=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,El=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,_l=(e,t,n,r)=>e===t*n+r+n;function Cl(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=wl(t,c),d=c?r.column:r.row,f=(c?o:i)>=d,p=_l(s,u,c?i:o,l),h=!!l&&El(t,c),m=f&&!p&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:Ll,StyledFixedSizeGrid:kl}=function(){const e=e=>({scrollbarColor:"".concat(yl," ").concat(Sl),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Sl},"&::-webkit-scrollbar-thumb":{backgroundColor:yl,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:U(vl,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(xl.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:U(bl,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(xl.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)},Rl=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 Il(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Ol(e){let{isGridMode:t,dense:n}=e;let r=n?ps:t?ds:fs;return t&&(r+=hs),r}function Dl(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:f,dense:p,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==l?void 0:l.content)||{},b="".concat(m," ").concat(g),v=Rl({text:Il(t),font:b}),y=Rl({text:Il(5),font:b}),S=Rl({text:Il(8),font:b}),x=a?y:0,w=s?cs:0;let E=ls+x+w;!s&&E>=is&&(E+=cs);let _,C,L,k,q=v+18+x+w;!s&&q>=is&&(q+=cs),q=Math.min(ss,Math.max(q,E));const R=Ol({isGridMode:"grid"===h,dense:p}),I=null!=r?r:8*R;if(u){let e=n;"row"===u?(_={overflowX:"hidden"},e+=2*hs,({rowCount:k,columnWidth:L,columnCount:C}=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-as;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:f,listCount:o,containerWidth:e,columnAutoWidth:q,itemMinWidth:E}))):(_={overflowY:"hidden"},({rowCount:k,columnWidth:L,columnCount:C}=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:R,listCount:o,listHeight:I,columnAutoWidth:q,containerWidth:e,itemMinWidth:E})))}C=("singleColumn"===h?1:C)||1,k=("singleColumn"===h?i:k)||o;const O=c.dense?838e3:577e3;k=Math.min(k,O);const D=Math.floor(3355e4/L);C=Math.min(C,D)||1;const T=k*C,M=Math.min(o,T);return{columnCount:C,columnWidth:L,rowCount:k,overflowStyling:_,itemHeight:R,listHeight:I,listWidth:n,scrollBarWidth:as,count:i,listCount:M,maxCount:{row:O,column:D},itemPadding:hs,textWidth:v,freqMinWidth:y,freqMaxWidth:S}}const Tl=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[Ml,Al]=ya({});function Pl(e){const t="".concat(e.id),[n]=Ml();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const Nl=na(E,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return te({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px"),whiteSpace:"normal"},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function jl(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=s(ga);return t.createElement(k,{title:i?a.get(r):""},t.createElement(Nl,{width:n,dense:o,component:"div",variant:"body1",py:"12px"},a.get(r)))}var zl={},Fl={};function Wl(e){return mo("MuiSvgIcon",e)}go("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Bl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Hl=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${ar(t)}`,`fontSize${ar(n)}`]},Wl,r)},$l=na("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ar(n.color)}`],t[`fontSize${ar(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Ul=e.forwardRef((function(t,n){const r=Yo({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:f="0 0 24 24"}=r,p=Tt(r,Bl),h=e.isValidElement(o)&&"svg"===o.type,m=Dt({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h}),g={};u||(g.viewBox=f);const b=Hl(m);return $n.jsxs($l,Dt({as:s,className:po(b.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n},g,p,h&&o.props,{ownerState:m,children:[h?o.props.children:o,d?$n.jsx("title",{children:d}):null]}))}));Ul.muiName="SvgIcon";const Vl={configure:e=>{uo.configure(e)}};var Gl,Kl,Zl=Object.freeze({__proto__:null,capitalize:ar,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 $n.jsx(Ul,Dt({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=Ul.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:Io,ownerWindow:function(e){return Io(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:Oo,unstable_ClassNameGenerator:Vl,unstable_useEnhancedEffect:qo,unstable_useId:function(t){if(void 0!==To){const e=To();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 qo((()=>{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=>{Oo(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",zo,!0),t.addEventListener("mousedown",Fo,!0),t.addEventListener("pointerdown",Fo,!0),t.addEventListener("touchstart",Fo,!0),t.addEventListener("visibilitychange",Wo,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Bo(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(Po=!0,No.start(100,(()=>{Po=!1})),n.current=!1,!0)},ref:t}}}),Jl=K(Zl);function Xl(){return Gl||(Gl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Jl}(Fl)),Fl}function Yl(){if(Kl)return zl;Kl=1;var e=si();Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=void 0;var t=e(Xl()),n=Hn();return zl.default=(0,t.default)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),zl}var Ql=G(Yl());const ec=na(q)((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}})),tc=na("div")((()=>({paddingLeft:"6px",flexGrow:1}))),nc=na("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),rc=na(Ql)((()=>({fontSize:"14px"})));function oc(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(ec,{left:l,style:{maxWidth:s}},t.createElement(tc,null,t.createElement(jl,{text:n,dense:o,width:c,tooltip:u})),t.createElement(nc,{dense:o},a&&t.createElement(R,{"aria-label":"close",onClick:()=>r()},t.createElement(rc,null))))}const ic=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const ac=80;function sc(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>ac,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const lc=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e,cc=e=>{const t=lc(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},uc=(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=cc(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 dc=["isLoadingData"],fc=100,pc=I("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function hc(e){var o,i;let{model:a,app:l,constraints:u,layout:d,selections:p,selectionState:h,direction:m,checkboxes:g,height:b,width:v,frequencyMode:y,update:S,fetchStart:x,postProcessPages:w,calculatePagesHeight:E=!1,keyboard:_={},showGray:C=!0,scrollState:L,keyScroll:k={state:{},reset:()=>{}},currentScrollIndex:q={set:()=>{}},renderedCallback:R,onCtrlF:I,showSearch:O,isModal:D,styles:T}=e;const{translator:M}=s(ga),[A,P]=n(!1),N=!(!d||!d.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:j=g,histogram:z}=null!=d?d:{},F=f(null),W=f({queue:[],validPages:!1,dataOffset:0}),B=f({pages:[]}),{frequencyMax:H,awaitingFrequencyMax:$}=uc(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,f]=n([]);let[p]=n(0);const h=(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>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=s?s(n):n;t.current.validPages=!0,l.current.pages=r,f(r),u(!1),e()}));i&&i(r)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),h}},pages:d,isLoading:c}}({local:W,loaderRef:F,model:a,fetchStart:x,scrollTimeout:0,postProcessPages:w,listData:B}),{isLoadingData:V}=U,G=ne(U,dc),{getStoreValue:K,setStoreValue:Z}=Pl(a),J=c(G.loadMoreItems,[d]),[X,Y]=n({show:!1,dismissed:!1}),[ee,re]=n([]);null!=G&&G.pages&&h.update({setPages:re,pages:G.pages,isSingleSelect:N,layout:d});const oe=null==d?void 0:d.qListObject.qDimensionInfo.qCardinal;(null!=G&&G.pages.length&&!$||0===oe)&&(null==R||R());const ie=c((e=>{if(null==ee||!ee.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=ee.filter((e=>t(e)))[0];return n&&t(n)}),[d,ee]),{interactionEvents:ae,select:se}=Za({selectionState:h,selections:p,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=te({},ce?{rowIndex:e}:{columnIndex:e}),n=ue?t:e;F.current._listRef.scrollToItem(n)},fe=()=>{if(W.current.queue=[],W.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===k.state.scrollPosition;if(d&&d.qSelectionInfo.qInSelections||e)return void(e&&k.reset());W.current.dataOffset=0,de(0)}};S&&S.call(null,fe),r((()=>{L&&!A&&F.current&&(F.current._listRef.scrollToItem(L.initScrollPos),P(!0))}),[F.current]),r((()=>{fe()}),[d,W.current.dataOffset]);let pe=fc;const he="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?Tl({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:ee,minimumBatchSize:pe,count:me,calculatePagesHeight:E});let be=sc({itemWidth:v,layout:d,frequencyMode:y});const ve=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":"-"}(ee),ye=Dl({layout:d,width:v,height:b,listCount:ge,count:me,freqIsAllowed:be,checkboxes:j,styles:T});ye.columnWidth&&(be=sc({itemWidth:ye.columnWidth,layout:d,frequencyMode:y}));const{listCount:Se}=ye;Z("listCount",Se);const xe=K("inputText"),we=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=s(ga),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}),Ee=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=ic(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ce,sizes:ye,layout:d,offset:W.current.dataOffset});W.current.dataOffset=n,r&&h.triggerStateChanged(),de(t)};r((()=>{const e=k.state;e.up?de(q.state.start-e.up):e.down?de(q.state.stop+e.down):e.scrollPosition&&Ee(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&k.reset()}),[k.state.up,k.state.down,k.state.scrollPosition]);const{textAlign:_e}=(null==d?void 0:d.qListObject.qDimensionInfo)||{},[Ce,Le]=n({first:!1,last:!1}),{List:ke,Grid:qe}=function(e){let{layout:n,width:r,checkboxes:o,local:i,isVertical:a,pages:s,selectionState:l,interactionEvents:c,deducedFrequencyMode:u,histogram:d,isSingleSelect:f,select:p,selectAll:h,onCtrlF:m,textAlign:g,selections:b,keyboard:v,showGray:y,scrollState:S,direction:x,sizes:w,listCount:E,overflowDisclaimer:_,setScrollPosition:C,focusListItems:L,setCurrentScrollIndex:k,constraints:q,frequencyMax:R,freqIsAllowed:I,translator:O,showSearch:D,isModal:T,styles:M}=e;const{layoutOptions:A={}}=n||{},{columnWidth:P,listHeight:N,itemHeight:j,rowCount:z,columnCount:F}=w||{},W=("grid"===A.dataLayout?P:r)>is,B={direction:"rtl"===x?"rtl":"ltr",useIsScrolling:!0,className:xl.styledScrollbars},H=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,$=N<=j,U=te(te({isLocked:H,column:!a,pages:s},H||l.selectDisabled()?{}:c),{},{checkboxes:o,layoutOptions:A,deducedFrequencyMode:u,freqIsAllowed:I,isSingleSelect:f,textAlign:g,sizes:w,actions:{select:p,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:C,selectAll:h,onCtrlF:m},frequencyMax:R,histogram:d,keyboard:v,showGray:y,showTick:W,dataOffset:i.current.dataOffset,focusListItems:L,direction:x,translator:O,showSearch:D,isModal:T,styles:M,fillHeight:$});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(Ll,Q({},B,{dataTestid:"fixed-size-list",scrollDisabled:null==q?void 0:q.active,height:N,width:r,itemCount:E,itemData:te(te({},U),{},{listCount:E}),itemSize:j,onItemsRendered:e=>{var t;k({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),Cl({renderProps:e,layoutOptions:A,maxCount:w.maxCount,columnCount:F,rowCount:z,overflowDisclaimer:_,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(te({},e))},ref:a}),el)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=w,{layoutOrder:c}=A||{},u=Math.min(N,z*j+l);return i.current.listRef=a,t.createElement(kl,Q({},B,{dataTestid:"fixed-size-grid",scrollDisabled:null==q?void 0:q.active,height:u,width:r,columnCount:F,columnWidth:P,rowCount:z,rowHeight:j,style:te({},s),itemData:te(te({},U),{},{column:void 0,columnCount:F,rowCount:z}),onItemsRendered:e=>{var t;const r="row"===c;k({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,f,p,h;return n&&n.setScrollPos(u),"column"===r?(d=l*o,f=a,p=c*o,h=s):(d=l,f=a*i,p=c,h=s*i),{visibleStartIndex:d+f,visibleStopIndex:p+h}}({renderProps:e,scrollState:S,layoutOrder:c,rowCount:z,columnCount:F});Cl({renderProps:e,layoutOptions:A,maxCount:w.maxCount,columnCount:F,rowCount:z,overflowDisclaimer:_,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}),el)}}}({direction:m,layout:d,width:v,checkboxes:j,deducedFrequencyMode:ve,histogram:z,keyboard:_,showGray:C,interactionEvents:ae,select:se,selectAll:()=>{h.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:I,textAlign:_e,isVertical:he,pages:ee,selectionState:h,isSingleSelect:N,selections:p,scrollState:L,local:W,sizes:ye,listCount:Se,overflowDisclaimer:{state:X,set:e=>Y((t=>te(te({},t),{},{show:e})))},setScrollPosition:Ee,focusListItems:{first:Ce.first,setFirst:e=>Le((t=>te(te({},t),{},{first:e}))),last:Ce.last,setLast:e=>Le((t=>te(te({},t),{},{last:e})))},setCurrentScrollIndex:q.set,constraints:u,frequencyMax:H,freqIsAllowed:be,translator:M,showSearch:O,isModal:D,styles:T}),{columnWidth:Re,listHeight:Ie,itemHeight:Oe}=ye||{};return he||(pe=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:v,columnWidth:Re,listHeight:Ie,itemHeight:Oe})),t.createElement(pc,null,t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},we),!Se&&oe>0&&t.createElement(jl,{width:v,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Fa,{isItemLoaded:ie,itemCount:Se||1,loadMoreItems:J.with({minimumBatchSize:pe}),threshold:0,minimumBatchSize:pe,ref:F,role:"grid"},he?ke:qe),X.show&&!X.dismissed&&t.createElement(oc,{text:"Listbox.ItemsOverflow",dismiss:()=>Y((e=>te(te({},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 mc=e=>te(te({},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"}}]}),gc=e=>te(te({},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"}}]}),bc=e=>te(te({},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"}}]}),vc=e=>te(te({},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 yc=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:mc,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:bc,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:gc,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:vc,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectExcluded(s)}}].filter(Boolean)};const Sc=e=>te(te({},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 xc(e){const t=Bi(),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 wc={className:"njs-cell-action"},Ec=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=Bi(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=xc(o);if(s)return null;const d=Number.parseInt(a.spacing(.5),10),f=o.keyboardAction||o.action,p=f?e=>["Enter"].includes(e.key)&&f():null,h=f?e=>[" ","Spacebar"].includes(e.key)&&f():null,m="actions-toolbar-".concat(o.key);return t.createElement(R,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:p,onKeyUp:h,disabled:l,style:c,className:[wc.className,m].join(" "),size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList","data-testid":m},u&&Ta(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),_c=e=>te(te({},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 Cc=e=>Ta(_c(e));const Lc=e=>te(te({},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 kc=e=>Ta(Lc(e));const qc="njs-action-toolbar-more",Rc={icon:"".concat("More","-icon")},Ic=na(O)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Rc.icon," *")]:{color:t.palette.text.primary}}}));function Oc(e){let{item:n,autoFocus:r,onActionClick:o=(()=>{})}=e;const{hidden:i,disabled:a,hasSvgIconShape:s}=xc(n);return i?null:t.createElement(T,{autoFocus:r,title:n.label,onClick:()=>{n.action(),o()},disabled:a,tabindex:"0"},s&&t.createElement(M,{className:Rc.icon},Ta(n.getSvgIconShape())),t.createElement(E,{noWrap:!0},n.label))}const Dc=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(Ic,Q({},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:qc},paper:{style:te({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),t.createElement(D,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(Oc,{key:n,item:e,autoFocus:n===d,onActionClick:l})))))})),Tc=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},Mc=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 Ac="ActionsToolbar",Pc={item:"".concat(Ac,"-item"),itemSpacing:"".concat(Ac,"-itemSpacing")},Nc=na(O)((e=>{let{theme:t}=e;return{["& .".concat(Pc.itemSpacing)]:{padding:t.spacing(0,.25)}}})),jc={className:"njs-action-toolbar-popover"},zc=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(L,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:r},i.map(((e,r)=>t.createElement(L,{item:!0,key:e.key,className:"".concat(Pc.itemSpacing," ").concat(Pc.item)},t.createElement(Ec,{ariaExpanded:o,key:e.key,item:e,ref:0===r?n:null,addAnchor:a}))))):null})),Fc={pointerEvents:"none"},Wc={vertical:"bottom",horizontal:"right"};function Bc(e){var o,a;let{show:l=!0,actions:c=[],maxItems:u=3,selections:d={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:p,more:h={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:m={show:!1,anchorEl:null},focusHandler:g=null,actionsRefMock:b=null,isRtl:v,autoConfirm:y=!1,layout:S}=e;const x=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=s(ga);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:Lc},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:_c},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:Ja}]}(te(te({},d),{},{layout:S})),{translator:w,keyboardNavigation:E}=s(ga),[_,C]=n(!1),k={vertical:12,horizontal:(null!==(o=null===(a=m.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},q=f(),R=f(),I=Bi(),O=i((()=>({margin:I.spacing(.5,0)}))),D=e=>{const t=q.current||b;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},T=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 Hs.ARROW_LEFT:case Hs.ARROW_DOWN:case Hs.ARROW_RIGHT:case Hs.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=Tc(a);let t=[Hs.ARROW_LEFT,Hs.ARROW_DOWN].includes(l);t=i?!t:t,Mc(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case Hs.SPACE:e.preventDefault();break;case Hs.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 Hs.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:E,focusHandler:g,getEnabledButton:D,selections:d,isRtl:v})),[E,g,D,d,v]);if(r((()=>()=>{C(!1)}),[m.show,l,d.show]),r((()=>{if(!g)return;g.on("focus_toolbar_first",(()=>{const e=D(!1);null==e||e.focus()})),g.on("focus_toolbar_last",(()=>{const e=D(!0);null==e||e.focus()}))}),[]),y)return;let M=h.enabled,P=h.actions;const N=h.alignTo||R,j=c.filter((e=>!e.hidden));if(j.length>u){const e=j.splice(-(j.length-u)-1);M=!0,P=[...e,...h.actions]}if(!d.show&&0===j.length&&!M)return null;const z={key:"more",label:w.get("Menu.More"),getSvgIconShape:Sc,hidden:!1,active:_,enabled:()=>M,action:()=>C(!_)},F=j.length>0,W=P.length>0,B=F&&d.show||W&&d.show,H=t.createElement(L,{ref:q,onKeyDown:T,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:v?"row-reverse":"row"}},(null==p?void 0:p.length)&&t.createElement(zc,{className:"actions-toolbar-extra-actions",actions:p,isRtl:v}),F&&t.createElement(zc,{actions:j}),W&&t.createElement(zc,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:R,ariaExpanded:_,actions:[z],addAnchor:!0}),B&&t.createElement(L,{item:!0,className:Pc.itemSpacing,style:O},t.createElement(A,{orientation:"vertical"})),d.show&&t.createElement(zc,{className:"actions-toolbar-default-actions",actions:x,isRtl:v}),_&&t.createElement(Dc,{show:_,actions:P,alignTo:N,popoverProps:h.popoverProps,popoverPaperStyle:h.popoverPaperStyle,onCloseOrActionClick:()=>{C(!1)},disablePortal:h.disablePortal}));return m.show?t.createElement(Nc,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:m.show,anchorEl:m.anchorEl,anchorOrigin:k,transformOrigin:Wc,hideBackdrop:!0,style:Fc,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:jc.className,style:{pointerEvents:"auto",padding:I.spacing(.5,.25)}}}},H):l&&H}var Hc=e=>Ta((e=>te(te({},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 $c="/qListObjectDef",Uc=e=>null==e?void 0:e.substring(0,64e3),Vc=na(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"}}),te({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":te({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),Gc=na(R)((()=>({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 Kc=o((function(e,o){let{popoverOpen:i,selections:l,selectionState:c,model:u,keyboard:d,dense:p=!1,visible:h=!0,autoFocus:m=!0,beginSelectionOnFocus:g=!0,wildCardSearch:b=!1,searchEnabled:v,direction:y,hide:S,styles:x}=e;const{translator:w}=s(ga),[E,_]=n(""),[C,L]=n(!1),k=f(),q=f(),R=w.get("Listbox.Clear.Search"),{getStoreValue:I,setStoreValue:O}=Pl(u),D="rtl"===y,T=async()=>{try{await u.abortListObjectSearch($c)}finally{_("")}};r((()=>h?()=>T():()=>{}),[h]),r((()=>(l.on("deactivated",T),()=>{l.removeListener&&l.removeListener("deactivated",T)})),[]),r((()=>{if(C&&k.current){const e=E.length-1;k.current.setSelectionRange(e,e),L(!1)}}),[C,k.current]),r((()=>{O("inputText",E)}),[E]);const M=async()=>{let e;const t=Uc(E),n=await u.searchListObjectFor($c,t);return c.selectDisabled()?n:(n&&t.length&&I("listCount")>0&&(e=u.acceptListObjectSearch($c,!0),l.selectionsMade=!0,c.clearItemStates(!1),_("")),e)},A=()=>{var e;null===(e=k.current)||void 0===e||e.focus()},P=()=>{T(),A()};return a(o,(()=>({focus(){A()}}))),h&&!1!==v?t.createElement(Vc,{styles:x,dense:p,isRtl:D,startAdornment:t.createElement(N,{position:"start",sx:{marginLeft:p?"8px":"".concat(ts,"px")}},t.createElement(Hc,{size:p?"small":"normal"})),endAdornment:t.createElement(N,{position:"end",sx:{marginLeft:0}},""!==E&&t.createElement(Gc,{tabIndex:0,ref:q,title:R,"aria-label":R,onClick:P,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":P();break;case"Tab":e.shiftKey?A():Zs(t);break;default:return}e.preventDefault(),e.stopPropagation()}},t.createElement(Cc,{size:p?"small":"normal"}))),className:"search",inputRef:k,size:"small",fullWidth:!0,placeholder:w.get("Listbox.Search"),value:E,onFocus:()=>{b&&(_("**"),L(!0)),g&&!c.selectDisabled()&&!l.isModal()&&l.begin("/qListObjectDef")},onChange:async e=>{const t=Uc(e.target.value);return _(t),t.length?u.searchListObjectFor($c,t):T()},onKeyDown:async e=>{const{currentTarget:t}=e,n=t.closest(".listbox-container");switch(e.key){case"Enter":M();break;case"Escape":if(Zs(n),l.cancel(),i)return;break;case"Tab":e.shiftKey?Js(n)||d.focusSelection():q.current?q.current.focus():Zs(n);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;S&&(S(),Zs(n));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:m,inputProps:{tabIndex:d.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":w.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function Zc(e){if(!e.session)return[];const{selectionStore:t}=s(ga),[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 Jc(e){return Object.keys(ce.prototype).forEach((t=>{e[t]=ce.prototype[t]})),ce.init(e),e}const Xc=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 Jc(s),s},Yc=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 Qc(e,t,o,i){const a=Array.isArray(o)?o:[o],[l]=Zc(e),[c]=Ra(t),{appModalStore:u}=s(ga).selectionStore,d=u.get(e.id),[f,p]=n();return r((()=>{l&&t&&!f&&p(Xc({appSelections:l,appModal:d,model:t}))}),[l,t]),r((()=>{if(!f)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Yc({elements:a,objectSelections:f,options:i});return f.addListener("activated",e),f.addListener("deactivated",t),()=>{f.isActive()&&f.confirm(),f.removeListener("activated",e),f.removeListener("deactivated",t)}}),[f]),r((()=>{f&&f.setLayout(c)}),[f,c]),[f]}function eu(){const e=te(te({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=Ha(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[te(te({},n),{},{qState:r}),...t.slice(1)]}));return te(te({},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 tu=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 nu(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return tu(t,"qSelected",0)+tu(t,"qSelectedExcluded",0)+tu(t,"qLocked",0)+tu(t,"qLockedExcluded",0)>0}function ru(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 ou(e){if("object"==typeof e&&ru(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 iu={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 au(...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(ru(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 f=a-.5*l;n=d[0]+f,r=d[1]+f,o=d[2]+f,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 f=a-.5*l;n=d[0]+f,r=d[1]+f,o=d[2]+f,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 f=a-l;n=d[0]+f,r=d[1]+f,o=d[2]+f,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 iu}(e)){const t=iu[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 su(e){let t,n,r;if(ru(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?ou(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 lu(e){let t,n,r=0;const o="string"==typeof e?au(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 cu(e){let t,n,r=0;const o="string"==typeof e?au(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 uu(e){if(ru(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?ou(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function du(e,t){return ru(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:du(au(e))}function fu(e){return ru(e)?1===e.a?uu(e):du(e):fu(au(e))}const pu=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function hu(e){return.2126*pu(e.r)+.7152*pu(e.g)+.0722*pu(e.b)}function mu(...e){const t=au(...e);return t.invalid||hu(t)<.4}function gu(...e){const t=au(...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=lu(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=au(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:()=>mu(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=uu(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=du(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=fu(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=su(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?au(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}=lu(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}=cu(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=cu(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)=>gu(o(18*e)),getDarkenedColor:(e=1)=>gu(o(18*-e))}}function bu(e,t){if(!e||!t)return;const n=hu(e),r=hu(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function vu(e,t){const n=gu("#FFFFFF"),r=gu(e),o=gu(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=bu(n,r),a=bu(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}var yu,Su;var xu=function(){if(Su)return yu;Su=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 yu=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},yu}();function wu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Eu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function _u(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xu);var Cu=1/.7,Lu="\\s*([+-]?\\d+)\\s*",ku="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ru=/^#([0-9a-f]{3,8})$/,Iu=new RegExp(`^rgb\\(${Lu},${Lu},${Lu}\\)$`),Ou=new RegExp(`^rgb\\(${qu},${qu},${qu}\\)$`),Du=new RegExp(`^rgba\\(${Lu},${Lu},${Lu},${ku}\\)$`),Tu=new RegExp(`^rgba\\(${qu},${qu},${qu},${ku}\\)$`),Mu=new RegExp(`^hsl\\(${ku},${qu},${qu}\\)$`),Au=new RegExp(`^hsla\\(${ku},${qu},${qu},${ku}\\)$`),Pu={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 Nu(){return this.rgb().formatHex()}function ju(){return this.rgb().formatRgb()}function zu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ru.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Fu(t):3===n?new $u(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Wu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Wu(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=Iu.exec(e))?new $u(t[1],t[2],t[3],1):(t=Ou.exec(e))?new $u(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Du.exec(e))?Wu(t[1],t[2],t[3],t[4]):(t=Tu.exec(e))?Wu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Mu.exec(e))?Ju(t[1],t[2]/100,t[3]/100,1):(t=Au.exec(e))?Ju(t[1],t[2]/100,t[3]/100,t[4]):Pu.hasOwnProperty(e)?Fu(Pu[e]):"transparent"===e?new $u(NaN,NaN,NaN,0):null}function Fu(e){return new $u(e>>16&255,e>>8&255,255&e,1)}function Wu(e,t,n,r){return r<=0&&(e=t=n=NaN),new $u(e,t,n,r)}function Bu(e){return e instanceof _u||(e=zu(e)),e?new $u((e=e.rgb()).r,e.g,e.b,e.opacity):new $u}function Hu(e,t,n,r){return 1===arguments.length?Bu(e):new $u(e,t,n,null==r?1:r)}function $u(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Uu(){return`#${Zu(this.r)}${Zu(this.g)}${Zu(this.b)}`}function Vu(){const e=Gu(this.opacity);return`${1===e?"rgb(":"rgba("}${Ku(this.r)}, ${Ku(this.g)}, ${Ku(this.b)}${1===e?")":`, ${e})`}`}function Gu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ku(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zu(e){return((e=Ku(e))<16?"0":"")+e.toString(16)}function Ju(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yu(e,t,n,r)}function Xu(e){if(e instanceof Yu)return new Yu(e.h,e.s,e.l,e.opacity);if(e instanceof _u||(e=zu(e)),!e)return new Yu;if(e instanceof Yu)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 Yu(a,s,l,e.opacity)}function Yu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Qu(e){return(e=(e||0)%360)<0?e+360:e}function ed(e){return Math.max(0,Math.min(1,e||0))}function td(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}wu(_u,zu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Nu,formatHex:Nu,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xu(this).formatHsl()},formatRgb:ju,toString:ju}),wu($u,Hu,Eu(_u,{brighter(e){return e=null==e?Cu:Math.pow(Cu,e),new $u(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $u(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $u(Ku(this.r),Ku(this.g),Ku(this.b),Gu(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:Uu,formatHex:Uu,formatHex8:function(){return`#${Zu(this.r)}${Zu(this.g)}${Zu(this.b)}${Zu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Vu,toString:Vu})),wu(Yu,(function(e,t,n,r){return 1===arguments.length?Xu(e):new Yu(e,t,n,null==r?1:r)}),Eu(_u,{brighter(e){return e=null==e?Cu:Math.pow(Cu,e),new Yu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yu(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 $u(td(e>=240?e-240:e+120,o,r),td(e,o,r),td(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Yu(Qu(this.h),ed(this.s),ed(this.l),Gu(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=Gu(this.opacity);return`${1===e?"hsl(":"hsla("}${Qu(this.h)}, ${100*ed(this.s)}%, ${100*ed(this.l)}%${1===e?")":`, ${e})`}`}}));const nd=Math.PI/180,rd=180/Math.PI,od=4/29,id=6/29,ad=3*id*id;function sd(e){if(e instanceof ld)return new ld(e.l,e.a,e.b,e.opacity);if(e instanceof pd)return hd(e);e instanceof $u||(e=Bu(e));var t,n,r=fd(e.r),o=fd(e.g),i=fd(e.b),a=cd((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=cd((.4360747*r+.3850649*o+.1430804*i)/.96422),n=cd((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ld(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ld(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function cd(e){return e>.008856451679035631?Math.pow(e,1/3):e/ad+od}function ud(e){return e>id?e*e*e:ad*(e-od)}function dd(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fd(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pd(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function hd(e){if(isNaN(e.h))return new ld(e.l,0,0,e.opacity);var t=e.h*nd;return new ld(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}wu(ld,(function(e,t,n,r){return 1===arguments.length?sd(e):new ld(e,t,n,null==r?1:r)}),Eu(_u,{brighter(e){return new ld(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ld(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 $u(dd(3.1338561*(t=.96422*ud(t))-1.6168667*(e=1*ud(e))-.4906146*(n=.82521*ud(n))),dd(-.9787684*t+1.9161415*e+.033454*n),dd(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),wu(pd,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof pd)return new pd(e.h,e.c,e.l,e.opacity);if(e instanceof ld||(e=sd(e)),0===e.a&&0===e.b)return new pd(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rd;return new pd(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pd(e,t,n,null==r?1:r)}),Eu(_u,{brighter(e){return new pd(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pd(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return hd(this).rgb()}}));var md=e=>()=>e;function gd(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):md(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?gd: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):md(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Hu(e)).r,(t=Hu(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=gd(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 bd,vd="center",yd="bottom";function Sd(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 xd(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ed)):void 0===t&&(t=wd);for(var n,r,o,i,a,s=new Ld(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 Ld(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Cd)}function wd(e){return e.children}function Ed(e){return Array.isArray(e)?e[1]:null}function _d(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Cd(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ld(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:vd,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:vd,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:vd,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:vd},{key:"DataRangeIncludingZero",alignment:yd},{key:"LimitedData",alignment:yd},{key:"NegativeOrZeroValues",alignment:yd}].reduce((function(e,t){return e[t.key]=t,e}),{}),Ld.prototype=xd.prototype={constructor:Ld,count:function(){return this.eachAfter(Sd)},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 xd(this).eachBefore(_d)},[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)}},bd=function(e){
|
|
14
|
+
*/,StyledEngineProvider:Vn,ThemeContext:v,css:y,default:function(e,t){return $(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:S});function Jn(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 Zn(t){if(e.isValidElement(t)||!Jn(t))return t;const n={};return Object.keys(t).forEach((e=>{n[e]=Zn(t[e])})),n}function Xn(t,n,r={clone:!0}){const o=r.clone?Dt({},t):t;return Jn(t)&&Jn(n)&&Object.keys(n).forEach((i=>{e.isValidElement(n[i])?o[i]=n[i]:Jn(n[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Jn(t[i])?o[i]=Xn(t[i],n[i],r):r.clone?o[i]=Jn(n[i])?Zn(n[i]):n[i]:o[i]=n[i]})),o}var Yn=Object.freeze({__proto__:null,default:Xn,isPlainObject:Jn});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)=>Dt({},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=Pt(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 Dt({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(It(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 fr={m:"margin",p:"padding"},pr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hr={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(!hr[e])return[e];e=hr[e]}const[t,n]=e.split(""),r=fr[t],o=pr[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 vr(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 yr(e){return vr(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=yr(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 _r(e=8){if(e.mui)return e;const t=yr({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 Lr(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?rr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function kr(e){return"number"!=typeof e?e:`${e}px solid`}function Rr(e,t){return dr({prop:e,themeKey:"borders",transform:t})}wr.propTypes={},wr.filterProps=gr,Cr.propTypes={},Cr.filterProps=br;const qr=Rr("border",kr),Ir=Rr("borderTop",kr),Or=Rr("borderRight",kr),Tr=Rr("borderBottom",kr),Dr=Rr("borderLeft",kr),Pr=Rr("borderColor"),Mr=Rr("borderTopColor"),Ar=Rr("borderRightColor"),Nr=Rr("borderBottomColor"),jr=Rr("borderLeftColor"),zr=Rr("outline",kr),Fr=Rr("outlineColor"),Br=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=vr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Sr(t,e)});return ar(e,e.borderRadius,n)}return null};Br.propTypes={},Br.filterProps=["borderRadius"],Lr(qr,Ir,Or,Tr,Dr,Pr,Mr,Ar,Nr,jr,Br,zr,Fr);const Wr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=vr(e.theme,"spacing",8),n=e=>({gap:Sr(t,e)});return ar(e,e.gap,n)}return null};Wr.propTypes={},Wr.filterProps=["gap"];const Ur=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=vr(e.theme,"spacing",8),n=e=>({columnGap:Sr(t,e)});return ar(e,e.columnGap,n)}return null};Ur.propTypes={},Ur.filterProps=["columnGap"];const Hr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=vr(e.theme,"spacing",8),n=e=>({rowGap:Sr(t,e)});return ar(e,e.rowGap,n)}return null};Hr.propTypes={},Hr.filterProps=["rowGap"];function $r(e,t){return"grey"===t?t:e}Lr(Wr,Ur,Hr,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}Lr(dr({prop:"color",themeKey:"palette",transform:$r}),dr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$r}),dr({prop:"backgroundColor",themeKey:"palette",transform:$r}));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 Jr=dr({prop:"minWidth",transform:Gr}),Zr=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});Lr(Vr,Kr,Jr,Zr,Xr,Yr,dr({prop:"boxSizing"}));const Qr={border:{themeKey:"borders",transform:kr},borderTop:{themeKey:"borders",transform:kr},borderRight:{themeKey:"borders",transform:kr},borderBottom:{themeKey:"borders",transform:kr},borderLeft:{themeKey:"borders",transform:kr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:kr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Br},color:{themeKey:"palette",transform:$r},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$r},backgroundColor:{themeKey:"palette",transform:$r},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:Wr},rowGap:{style:Hr},columnGap:{style:Ur},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=Pt(e,ro),s=tr(n),l=_r(o);let c=Xn({breakpoints:s,direction:"ltr",components:{},palette:Dt({mode:"light"},r),spacing:l,shape:Dt({},nr,i)},a);return c.applyStyles=no,c=t.reduce(((e,t)=>Xn(e,t)),c),c.unstable_sxConfig=Dt({},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(v);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=Pt(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 Jn(n)?Dt({},r,n):r}:Dt({},r,t),Dt({},o,{sx:i})},unstable_createStyleFunctionSx:eo,unstable_defaultSxConfig:Qr});const uo=e=>e,fo=(()=>{let e=uo;return{configure(t){e=t},generate:t=>e(t),reset(){e=uo}}})();function po(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=po(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ho(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=po(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}`:`${fo.generate(e)}-${t}`}function bo(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=go(e,t,n)})),r}var vo,yo,So={exports:{}},xo={};var Eo=(yo||(yo=1,So.exports=function(){if(vo)return xo;vo=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"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case p:case f:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),xo.ContextConsumer=s,xo.ContextProvider=a,xo.Element=t,xo.ForwardRef=c,xo.Fragment=r,xo.Lazy=p,xo.Memo=f,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)===p},xo.isMemo=function(e){return m(e)===f},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===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||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 _o(e,t=""){return e.displayName||e.name||Co(e)||t}function Lo(e,t,n){const r=_o(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var ko=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return _o(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Eo.ForwardRef:return Lo(e,e.render,"ForwardRef");case Eo.Memo:return Lo(e,e.type,"memo");default:return}}},getFunctionName:Co});function Ro(e,t){const n=Dt({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Dt({},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]=Dt({},i),Object.keys(o).forEach((e=>{n[r][e]=Ro(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const qo="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var Io=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(e){return e&&e.ownerDocument||document}function To(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Do=0;const Po=e["useId".toString()];class Mo{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Mo}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let Ao=!0,No=!1;const jo=new Mo,zo={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 Fo(e){e.metaKey||e.altKey||e.ctrlKey||(Ao=!0)}function Bo(){Ao=!1}function Wo(){"hidden"===this.visibilityState&&No&&(Ao=!0)}function Uo(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ao||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!zo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const Ho=e.createContext(null);function $o(){return e.useContext(Ho)}var Go="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Vo(t){const{children:n,theme:r}=t,o=$o(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return Dt({},e,t)}(o,r);return null!=e&&(e[Go]=null!==o),e}),[r,o]);return $n.jsx(Ho.Provider,{value:i,children:n})}const Ko=["value"],Jo=e.createContext();function Zo(e){let{value:t}=e,n=Pt(e,Ko);return $n.jsx(Jo.Provider,Dt({value:null==t||t},n))}const Xo=e.createContext(void 0);function Yo({value:e,children:t}){return $n.jsx(Xo.Provider,{value:e,children:t})}function Qo({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?Ro(o.defaultProps,r):o.styleOverrides||o.variants?r:Ro(o,r)}({props:t,name:n,theme:{components:e.useContext(Xo)}})}const ei={};function ti(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?Dt({},n,{[t]:i}):i;return o?()=>a:a}return Dt({},n,t?{[t]:r}:r)}),[t,n,r,o])}function ni(e){const{children:t,theme:n,themeId:r}=e,o=ao(ei),i=$o()||ei,a=ti(r,o,n),s=ti(r,i,n,!0),l="rtl"===a.direction;return $n.jsx(Vo,{theme:s,children:$n.jsx(v.Provider,{value:a,children:$n.jsx(Zo,{value:l,children:$n.jsx(Yo,{value:null==a?void 0:a.components,children:t})})})})}const ri=["defaultProps","mixins","overrides","palette","props","styleOverrides"],oi=["type","mode"];var ii,ai={},si={exports:{}};function li(){return ii||(ii=1,(e=si).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),si.exports;var e}var ci,ui=K(Ot),di=K(Io);function fi(){if(ci)return ai;ci=1;var e=li();Object.defineProperty(ai,"__esModule",{value:!0}),ai.alpha=u,ai.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})},ai.colorChannel=void 0,ai.darken=d,ai.decomposeColor=i,ai.emphasize=p,ai.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},ai.getLuminance=c,ai.hexToRgb=o,ai.hslToRgb=l,ai.lighten=f,ai.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},ai.private_safeColorChannel=void 0,ai.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},ai.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},ai.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},ai.recomposeColor=s,ai.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(ui),n=e(di);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(" ")};ai.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 f(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 p(e,t=.15){return c(e)>.5?d(e,t):f(e,t)}return ai.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},ai}var pi=fi();const hi={black:"#000",white:"#fff"},mi={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"},gi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},bi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},vi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},yi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Si={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},xi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ei=["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:hi.white,default:hi.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}},Ci={text:{primary:hi.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:hi.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 _i(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=pi.lighten(e.main,o):"dark"===t&&(e.dark=pi.darken(e.main,i)))}function Li(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Pt(e,Ei),i=e.primary||function(e="light"){return"dark"===e?{main:yi[200],light:yi[50],dark:yi[400]}:{main:yi[700],light:yi[400],dark:yi[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:gi[200],light:gi[50],dark:gi[400]}:{main:gi[500],light:gi[300],dark:gi[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:bi[500],light:bi[300],dark:bi[700]}:{main:bi[700],light:bi[400],dark:bi[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Si[400],light:Si[300],dark:Si[700]}:{main:Si[700],light:Si[500],dark:Si[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:xi[400],light:xi[300],dark:xi[700]}:{main:xi[800],light:xi[500],dark:xi[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 pi.getContrastRatio(e,Ci.text.primary)>=n?Ci.text.primary:wi.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Dt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(It(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(It(12,t?` (${t})`:"",JSON.stringify(e.main)));return _i(e,"light",o,r),_i(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:Ci,light:wi};return Xn(Dt({common:Dt({},hi),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:mi,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const ki=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ri={textTransform:"uppercase"},qi='"Roboto", "Helvetica", "Arial", sans-serif';function Ii(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,f=Pt(n,ki),p=o/14,h=d||(e=>e/c*p+"rem"),m=(e,t,n,o,i)=>{return Dt({fontFamily:r,fontWeight:e,fontSize:h(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,Ri),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ri),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xn(Dt({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function Oi(...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 Ti=["none",Oi(0,2,1,-1,0,1,1,0,0,1,3,0),Oi(0,3,1,-2,0,2,2,0,0,1,5,0),Oi(0,3,3,-2,0,3,4,0,0,1,8,0),Oi(0,2,4,-1,0,4,5,0,0,1,10,0),Oi(0,3,5,-1,0,5,8,0,0,1,14,0),Oi(0,3,5,-1,0,6,10,0,0,1,18,0),Oi(0,4,5,-2,0,7,10,1,0,2,16,1),Oi(0,5,5,-3,0,8,10,1,0,3,14,2),Oi(0,5,6,-3,0,9,12,1,0,3,16,2),Oi(0,6,6,-3,0,10,14,1,0,4,18,3),Oi(0,6,7,-4,0,11,15,1,0,4,20,3),Oi(0,7,8,-4,0,12,17,2,0,5,22,4),Oi(0,7,8,-4,0,13,19,2,0,5,24,4),Oi(0,7,9,-4,0,14,21,2,0,5,26,4),Oi(0,8,9,-5,0,15,22,2,0,6,28,5),Oi(0,8,10,-5,0,16,24,2,0,6,30,5),Oi(0,8,11,-5,0,17,26,2,0,6,32,5),Oi(0,9,11,-5,0,18,28,2,0,7,34,6),Oi(0,9,12,-6,0,19,29,2,0,7,36,6),Oi(0,10,13,-6,0,20,31,3,0,8,38,7),Oi(0,10,13,-6,0,21,33,3,0,8,40,7),Oi(0,10,14,-6,0,22,35,3,0,8,42,7),Oi(0,11,14,-7,0,23,36,3,0,9,44,8),Oi(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)"},Mi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ai(e){return`${Math.round(e)}ms`}function Ni(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ji(e){const t=Dt({},Pi,e.easing),n=Dt({},Mi,e.duration);return Dt({getAutoHeightDuration:Ni,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Pt(r,Di),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ai(o)} ${i} ${"string"==typeof a?a:Ai(a)}`)).join(",")}},e,{easing:t,duration:n})}const zi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Fi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bi(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Pt(e,Fi);if(e.vars&&void 0===e.generateCssVars)throw new Error(It(18));const s=Li(r),l=oo(e);let c=Xn(l,{mixins:(u=l.breakpoints,d=n,Dt({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Ti.slice(),typography:Ii(s,i),transitions:ji(o),zIndex:Dt({},zi)});var u,d;return c=Xn(c,a),c=t.reduce(((e,t)=>Xn(e,t)),c),c.unstable_sxConfig=Dt({},Qr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return to({sx:e,theme:this})},c}const Wi=Bi();function Ui(){const e=function(e=so){return ao(e)}(Wi);return e[Tt]||e}var Hi,$i={},Gi={exports:{}};var Vi,Ki={exports:{}};var Ji,Zi=K(Kn),Xi=K(Yn),Yi=K(lr),Qi=K(ko),ea=K(io),ta=K(co);function na(){if(Ji)return $i;Ji=1;var e=li();Object.defineProperty($i,"__esModule",{value:!0}),$i.default=function(e={}){const{themeId:t,defaultTheme:a=p,rootShouldForwardProp:l=f,slotShouldForwardProp:c=f}=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:p,slot:v,skipVariantsResolver:y,skipSx:S,overridesResolver:x=g(h(v))}=s,E=(0,r.default)(s,u),w=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,C=S||!1;let _=f;"Root"===v||"root"===v?_=l:v?_=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(_=void 0);const L=(0,o.default)(e,(0,n.default)({shouldForwardProp:_,label:undefined},E)),k=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,R=(r,...o)=>{let i=k(r);const s=o?o.map(k):[];p&&x&&s.push((e=>{const r=m((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[p]||!r.components[p].styleOverrides)return null;const o=r.components[p].styleOverrides,i={};return Object.entries(o).forEach((([t,o])=>{i[t]=b(o,(0,n.default)({},e,{theme:r}))})),x(e,i)})),p&&!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[p])?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=L(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return L.withConfig&&(R.withConfig=L.withConfig),R}},$i.shouldForwardProp=f,$i.systemDefaultTheme=void 0;var t,n=e((Hi||(Hi=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gi)),Gi.exports)),r=e((Vi||(Vi=1,(t=Ki).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports),Ki.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}(Zi),i=Xi;e(Yi),e(Qi);var a=e(ea),s=e(ta);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 f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=$i.systemDefaultTheme=(0,a.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function b(e,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 $i}const ra=V(na())({themeId:Tt,defaultTheme:Wi,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),oa=["theme"];function ia(e){let{theme:t}=e,n=Pt(e,oa);const r=t[Tt];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=Dt({},r,{vars:null}):t&&!t.vars&&(o=Dt({},t,{vars:null}))),$n.jsx(ni,Dt({},n,{themeId:r?Tt:void 0,theme:o}))}function aa(e,t){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aa(e,t)}function sa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,aa(e,t)}function la(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const ca=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 ua={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 da={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:da.grey25,contrastText:da.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:da.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:da.grey100,dark:da.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:da.grey100,default:da.grey100,lightest:da.grey100,lighter:da.grey98,darker:da.grey95,darkest:da.grey90},custom:{focusBorder:da.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:da.grey45,disabledContrastText:da.grey100},selected:{main:da.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:da.grey100,selectedContrastText:da.grey100,mainContrastText:da.grey100,alternativeContrastText:da.grey25,excludedContrastText:da.grey25,selectedExcludedContrastText:da.grey100,possibleContrastText:da.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)"}}},pa={mode:"dark",palette:{primary:{main:da.grey20,contrastText:da.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:da.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:da.grey100,dark:da.grey0},action:{active:da.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:da.grey25,lighter:da.grey20,darker:da.grey15,darkest:da.grey10},custom:{focusBorder:da.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:da.grey45,disabledContrastText:da.grey100},selected:{main:da.green,alternative:da.grey20,excluded:da.grey10,selectedExcluded:da.grey10,possible:da.grey80,selectedContrastText:da.grey100,mainContrastText:da.grey100,alternativeContrastText:da.grey100,excludedContrastText:da.grey100,selectedExcludedContrastText:da.grey100,possibleContrastText:da.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)"}}},ha={},ma=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(ca.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(ca.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(ca.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(ca.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function ga(e){let t=fa,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=pa));const r=JSON.stringify(t);if(ha[r])return ha[r];const o={palette:ne(ne({type:t.mode},ua.palette),t.palette),typography:ne({},ua.typography),shadows:ua.shadows,props:ne({},ua.props),shape:ne({},ua.shape)};return ha[r]=Bi(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=Dt({},Pt(e,ri),{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=_r(e.spacing);const l=tr(e.breakpoints||{}),c=s.spacing;s.mixins=Dt({gutters:(e={})=>Dt({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:Dt({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,f=Pt(o,oi),p=d||u||"light";return s.palette=Dt({text:{hint:"dark"===p?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:p,type:p},f),s}(ne(ne({},o),{},{overrides:ma(o)}))),ha[r].name=n,ha[r]}fo.configure((e=>"njs-".concat("1075","-").concat(e.replace("Mui",""))));var ba=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const va={active:!0,select:!0,passive:!0,edit:!1};function ya(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(va).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=va[e],n[e]=!va[e])})),e.constraints=n,e.interactions=t}var Sa=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 xa=o(((e,o)=>{let{initialContext:s,renderCallback:l,modelStore:c,selectionStore:u}=e;const[d,f]=n(s),[p,h]=n(),{theme:m}=i((()=>({theme:ga(p)})),[p]),[g,b]=n([]);return r((()=>{l&&l()}),[]),a(o,(()=>({setComps(e){b([...e])},setMuiThemeName:h,setContext:e=>f((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),d&&(d.modelStore=c,d.selectionStore=u),t.createElement(Vn,{injectFirst:!0},t.createElement(ia,{theme:m},t.createElement(ba.Provider,{value:d},g)))}));function Ea(e){let n,{app:r,context:o}=e,i=!1;const a=new Promise((e=>{n=e})),s=t.createRef(),l=document.createElement("div");l.style.display="none",l.setAttribute("data-nebulajs-version","5.16.0"),l.setAttribute("data-app-id",r.id),document.body.appendChild(l),o&&ya(o);const c=function(e){const[t,n]=Sa({}),[r,o]=Sa({}),[i,a]=Sa({}),[s,l]=Sa({}),[c,u]=Sa({}),[,d]=Sa({}),f=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},[p,h]=Sa({},f);return{subscribe:e=>{const t=f({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},useModelStore:p,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:s,rpcRequestModelStore:l,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(r.id),u=function(e){const[t,n]=Sa({}),[r,o]=Sa({}),[i,a]=Sa({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(r.id),d=qt.createRoot(l);d.render(t.createElement(xa,{ref:s,initialContext:o,renderCallback:n,modelStore:c,selectionStore:u}));const f={},p=[],h=[];return[{toggleFocusOfCells(e){Object.keys(f).forEach((t=>{var n;null===(n=f[t].current)||void 0===n||n.toggleFocus(t===e)}))},cells:f,addCell(e,t){f[e]=t},removeCell(e){delete f[e]},add:(e,t)=>(async()=>{await a,h.push(e),p.push(t),s.current.setComps(h)})(),remove(e){i||(async t=>{await a;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==s||null===(t=s.current)||void 0===t||t.setComps(h)})()},setMuiThemeName(e){(async()=>{await a,s.current.setMuiThemeName(e)})()},context(e){(async()=>{await a,e&&ya(e),s.current.setContext(e)})()},destroy(){i=!0,p.forEach((e=>{e&&e()})),c.destroy(),d.unmount(),document.body.removeChild(l)}},c,u,s,a]}function wa(){const{useModelStore:e}=s(ba).modelStore;return e()}function Ca(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=wa(),[a]=function(){const{useRpcRequestSessionModelStore:e}=s(ba).modelStore;return e()}(),[l,c]=n();for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];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 _a={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function La(e){return Ca(_a,e)}const ka=e=>new Promise((t=>{setTimeout(t,e)})),Ra=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=ne(ne({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:ne({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=ne(ne({},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(ba).modelStore;return e()}(),[i,a]=l(Ra,n?o.get(n):null),[c]=function(){const{useModelChangedStore:e}=s(ba).modelStore;return e()}(),[u]=function(){const{useRpcRequestStore:e}=s(ba).modelStore;return e()}();let d;n&&(d=u.get(n),d||(d={},u.set(n,d)));const f=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 ka(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),f(!0))}},p={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,f()}};return r((()=>{e&&f()}),[e,c.get(e&&e.id),n,t]),[i&&i.result,{validating:i&&i.validating,canCancel:i&&i.canCancel,canRetry:i&&i.canRetry},p]}function Ia(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=qa(e,"getLayout");return null!=e&&e.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:r,canRetry:o},i]:[t,{validating:n,canCancel:r,canRetry:o},i]}function Oa(e){return qa(e,"getAppLayout")}function Ta(){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 Da(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=ne({fontSize:Da(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,ee({key:n},o))}))))}var Ma=e=>Pa((e=>ne(ne({},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 Aa=e=>Pa((e=>ne(ne({},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 Na=e=>ne(ne({},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 ja=e=>Pa(Na(e));var za=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}}(),Fa=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=Fa(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},Fa(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),za(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 f=a[0]-1;if(t(f))break;a[0]=f}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 Wa=["S","XS"],Ua=e=>e.reduce(((e,t)=>e.concat(t)));function Ha(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!Wa.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return Ua(t)}async function $a(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 Ga="RowColumn",Va={row:"".concat(Ga,"-row"),rowBorderBottom:"".concat(Ga,"-rowBorderBottom"),column:"".concat(Ga,"-column"),fieldRoot:"".concat(Ga,"-fieldRoot"),cell:"".concat(Ga,"-cell"),labelText:"".concat(Ga,"-labelText"),labelDense:"".concat(Ga,"-labelDense"),highlighted:"".concat(Ga,"-highlighted"),checkboxLabel:"".concat(Ga,"-checkboxLabel"),icon:"".concat(Ga,"-icon"),S:"".concat(Ga,"-S"),XS:"".concat(Ga,"-XS"),A:"".concat(Ga,"-A"),X:"".concat(Ga,"-X"),frequencyCount:"".concat(Ga,"-frequencyCount"),barContainer:"".concat(Ga,"-barContainer"),bar:"".concat(Ga,"-bar"),barSelected:"".concat(Ga,"-barSelected"),barWithCheckbox:"".concat(Ga,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ga,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ga,"-excludedTextWithCheckbox")},Ka=".".concat(Va.fieldRoot),Ja=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function Za(e){var t;let{selectionState:n,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:s}=e;const l=f({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(),$a({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)},p=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=d(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},h=c((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&Ja(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&&Ja(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");p(t)}u()}}),[]),b=c((e=>{0===e.button&&l.current.active&&(l.current.active=!1,u())}),[]),v=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");p(t)}),[]),y=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(Ka))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(Ka))||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,p(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:h}):Object.assign(x,{onMouseUp:g,onMouseDown:m,onMouseEnter:v,onTouchStart:y,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&&Ja(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const s=[];return n.updateItems(t,r,s),n.setSelectableValuesUpdating(),$a({selections:o,elemNumbers:r?s:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const Xa=e=>ne(ne({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var Ya=e=>Pa(Xa(e));const Qa=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,es=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||Qa(t))&&n};const ts=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const i=[t?Va.column:Va.row];n||i.push(Va.rowBorderBottom);const a=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?Va.XS:Va.S;break;case"S":case"L":t=Va.S;break;case"A":t=!!r&&Va.A;break;case"X":case"XL":t=!!r&&Va.X;break;default:t=!1}return t}({cell:r,showGray:o});return a&&i.push(a),i},ns=9,rs=4,os=7,is=12+2*(os+1),as=80,ss=10,ls=150,cs=56,us=20,ds="-",fs=32,ps=29,hs=20,ms=4,gs=e=>e.filter((e=>!!e)).join(" ").trim(),bs=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,"%")},vs=e=>e||ds,ys=["backgroundColor"],Ss=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%"},xs=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},Es=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(Va.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(Va.labelText)]:{color:s},["& .".concat(Va.icon)]:{color:s}}},ws={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Cs=ra("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:f}=d,p=re(d,ys),h=Es({theme:t,styles:u,checkboxes:n,selectionState:"selected"}),m=Es({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(Va.row)]:ne({flexWrap:"nowrap"},u.content),["& .".concat(Va.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(Va.column)]:ne({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(Va.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(ns,"px"),paddingRight:0},["& .".concat(Va.labelText)]:ne(ne({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},ws),p),["& .".concat(Va.labelDense)]:{lineHeight:"18px"},["& .".concat(Va.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(Va.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":ne(ne({},ws),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Va.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:p.color},["& .".concat(Va.S)]:ne(ne({},h),{},{border:r?"none":void 0}),["& .".concat(Va.XS)]:ne(ne({},Es({theme:t,styles:u,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(Va.A)]:ne(ne({},Es({theme:t,styles:u,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(Va.X)]:ne(ne({},m),{},{border:r?"none":void 0}),["& .".concat(Va.X,", & .").concat(Va.XS)]:{border:r?"none":void 0,["& .".concat(Va.barSelected," .bar-filled")]:ne({},g)},["& .".concat(Va.frequencyCount)]:ne(ne({zIndex:3,justifyContent:"flex-end"},ws),{},{flex:"0 0 ".concat(Ss({sizes:s,frequencyMode:l,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==l&&c?s.freqMinWidth:"max-content",maxWidth:xs({sizes:s,frequencyMode:l,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(Va.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Va.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":ne({},g)},["& .".concat(Va.barSelected)]:{"& .bar-filled":ne({},b)},["& .".concat(Va.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Va.barSelectedWithCheckbox)]:{"& .bar-filled":ne(ne({},b),{},{backgroundColor:u.selections.selected||"#BFE5D0",borderColor:u.selections.selected})},["& .".concat(Va.excludedTextWithCheckbox)]:{color:u.content.color,fontStyle:"italic"}}}));var _s=t.memo(Cs);const Ls="ListBoxCheckbox",ks={cbIcon:"".concat(Ls,"-cbIcon"),cbIconChecked:"".concat(Ls,"-cbIconChecked"),cbIconExcluded:"".concat(Ls,"-cbIconExcluded"),cbIconAlternative:"".concat(Ls,"-cbIconAlternative"),checkbox:"".concat(Ls,"-checkbox"),dense:"".concat(Ls,"-dense")},Rs=ra(x,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(ks.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(ks.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(ks.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(ks.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(ks.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(ks.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 Is(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,styles:s,showGray:l=!0,dataN:c}=e;return t.createElement(Rs,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[ks.checkbox,i&&ks.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":c},name:o,icon:qs(ks,l,a),checkedIcon:t.createElement("span",{className:ks.cbIconChecked}),styles:s})}const Os={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Ts=ra(E,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Os.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Ds(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a,styles:s}=e;return t.createElement(Ts,{checked:r,onChange:n,value:o,name:o,className:Os.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(w,{component:"span",variant:"body2",className:gs([Va.labelText,r&&Va.labelDense,o&&es({cell:a,checkboxes:i})&&Va.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,n))}function Ms(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 As(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:f,styles:p}=e;const h=t.createElement(Is,{onChange:n,label:r,checked:i,dense:a,excluded:Qa(s),isGridCol:l,showGray:c,dataN:o,styles:p}),m=t.createElement(Ds,{onChange:n,label:r,checked:i,dense:a,dataN:o,styles:p});return t.createElement(C,{control:u?m:h,className:Va.checkboxLabel,label:t.createElement(Ms,{label:r,dense:a,showGray:c,checkboxes:d,cell:s,valueTextAlign:f}),key:o})}function Ns(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?Va.highlighted:""},r)}));return t.createElement(Ps,{label:a,dense:r,showGray:o,checkboxes:i})}function js(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,qElemNumber:s,isSelected:l,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:f,styles:p}=e;const h=t.createElement(Ns,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(As,{onChange:n,label:h,qElemNumber:s,isSelected:l,dense:i,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:o,valueTextAlign:f,styles:p}):h}var zs=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:f,styles:p}=e;return d?t.createElement(As,{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:f,styles:p}):t.createElement(Ps,{label:r,dense:a,showGray:!0,checkboxes:d,cell:s,valueTextAlign:f})}));function Fs(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&vs(n)!==ds))return;const s=bs({qFrequency:n,frequencyMax:a});return t.createElement(_,{className:gs([Va.bar,o&&Va.barWithCheckbox,i&&(o?Va.barSelectedWithCheckbox:Va.barSelected)])},t.createElement(_,{className:"bar-filled",width:s}))}function Bs(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;const a=vs(null==n?void 0:n.qFrequency);return t.createElement(L,{item:!0,style:{display:"flex",alignItems:"center"},className:Va.frequencyCount,"aria-label":a,title:a},t.createElement(w,{noWrap:!0,color:"inherit",variant:"body2",className:gs([o&&Va.labelDense,Va.labelText,i&&es({cell:n,checkboxes:r})&&Va.excludedTextWithCheckbox])},a))}function Ws(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=ra(L,{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(Va.fieldRoot)]:ne(ne({},Ws({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[s]:o?"8px":void 0})}}));const Hs=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===Hs.ARROW_UP||e===Hs.ARROW_DOWN||e===Hs.ARROW_LEFT||e===Hs.ARROW_RIGHT});function $s(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function Gs(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 Vs(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=Gs(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)})),$s(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 Ks=e=>+e.getAttribute("data-n"),Js=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},Zs=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(),$s(e),o},Xs=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},Ys=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=Gs(i),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||s)t.blur(!0);else{$s(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},Qs=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===Hs.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 el={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 tl(e){var o,a;let{index:s,rowIndex:l,columnIndex:u,style:d,data:f}=e;const{onChange:p,onClick:h,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onTouchStart:v,onTouchEnd:y,pages:S,isLocked:x,column:E=!1,checkboxes:w=!1,textAlign:C,direction:_,layoutOptions:k={},freqIsAllowed:R,isSingleSelect:q,actions:I,frequencyMax:O="",histogram:T=!1,keyboard:D,showGray:P=!0,showTick:M=!0,columnCount:A=1,rowCount:N=1,dataOffset:j,deducedFrequencyMode:z,focusListItems:F,listCount:B,sizes:W,translator:U,showSearch:H,isModal:$,contentFontStyle:G,styles:V,fillHeight:K}=f,{dense:J=!1,dataLayout:Z="singleColumn",layoutOrder:X}=k,{itemPadding:Y}=W;let Q,ee;const te={max:null,currentIndex:null};if("number"==typeof l&&"number"==typeof u){"row"===X?(Q=l*A+u,te.max=N,te.currentIndex=l):(Q=u*N+l,te.max=A,te.currentIndex=u);const e=0;ee=ne(ne({},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 Q=s,te.max=B,te.currentIndex=s,ee=ne({},d);Q+=j;const[re,oe]=n(null);r((()=>{null!==re&&(0===te.currentIndex&&F.first&&(re.focus(),F.setFirst(!1)),te.currentIndex===te.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:f,columnIndex:p,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===Hs.ARROW_LEFT||e===Hs.ARROW_RIGHT||"number"!=typeof f||"number"!=typeof p){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=Qs({rowIndex:f,columnIndex:p,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:f}=e,{keyCode:p,shiftKey:h=!1,ctrlKey:v=!1,metaKey:y=!1}=f;switch(p){case Hs.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==l||!l.enabled){if(!n)return;return l.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){Js(t)||Xs(t)||(n?l.focusSelection():Ys(e,l));break}l.focusSelection()||Xs(t)||Js(t)||(d.blur(),Ys(e,l));break}case Hs.SHIFT:b(!0);break;case Hs.SPACE:t([Ks(d)],!1,e);break;case Hs.ARROW_DOWN:case Hs.ARROW_RIGHT:u=m(p,d,!0),h&&u&&(g&&(t([Ks(d)],!0),b(!1)),t([Ks(u)],!0));break;case Hs.ARROW_UP:case Hs.ARROW_LEFT:u=m(p,d,!1),h&&u&&(g&&(t([Ks(d)],!0),b(!1)),t([Ks(u)],!0));break;case Hs.ENTER:if(o(),void 0===c)return;break;case Hs.ESCAPE:if(void 0===c)return void i();if(!c())return;i();break;case Hs.HOME:if(s.setFirst(!0),v){null==a||a("overflowStart");break}null==a||a("start");break;case Hs.END:if(s.setLast(!0),v){null==a||a("overflowEnd");break}null==a||a("end");break;case Hs.A:if(v||y){n();break}return;case Hs.F:if(v||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(ne(ne({},I),{},{focusListItems:F,keyboard:D,isModal:$,rowCount:N,columnCount:A,rowIndex:l,columnIndex:u,layoutOrder:X})),[I,null==D?void 0:D.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:Q})),[S,Q]),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((()=>ts({column:E,histogram:T,cell:ae,showGray:P})),[null==ae?void 0:ae.qState,T,J]),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:_,cell:ae,textAlign:C})),[_,ae,C]);if(!ae)return null;const de="grid"===Z&&"column"===X,fe=null!==(o=null==ae?void 0:ae.qText)&&void 0!==o?o:"";let pe;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))||[];pe=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}(fe,e)}const he={alignItems:"center",display:"flex",fontSize:"8px"},me="rtl"===_,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,ve=se&&x,ye=!w&&se&&!x,Se=!w&&M,xe=w||!M,Ee=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=el[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),f=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,f),u.join(". ").trim()}({translator:U,label:fe,qState:ae.qState,currentIndex:te.currentIndex,maxIndex:te.max,showSearch:H}),we=!me&&"right"===ue||me&&"left"===ue;return t.createElement(_s,{className:Va.barContainer,checkboxes:w,style:ee,styles:V,isGridCol:de,isGridMode:"grid"===Z,dense:J,direction:_,sizes:W,frequencyMode:z,freqHitsValue:we,contentFontStyle:G,"data-testid":"listbox.item"},t.createElement(Us,{role:"row","aria-label":Ee,"aria-selected":se,"aria-setsize":te.max,"aria-rowindex":te.currentIndex,ref:oe,container:!0,dataLayout:Z,cellPaddingRight:xe,layoutOrder:X,itemPadding:Y,gap:0,className:gs(["value",...le]),classes:{root:Va.fieldRoot},onClick:h,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onKeyDown:ie,onTouchStart:v,onTouchEnd:y,onContextMenu:ce,tabIndex:be&&D.innerTabStops?0:-1,"data-n":null==ae?void 0:ae.qElemNumber,direction:_,fillHeight:K},(null==ae?void 0:ae.qFrequency)&&t.createElement(Fs,{qFrequency:null==ae?void 0:ae.qFrequency,histogram:T,checkboxes:w,isSelected:se,frequencyMax:O}),t.createElement(L,{item:!0,style:ge,className:gs([Va.cell,Va.selectedCell]),title:"".concat(fe)},pe?t.createElement(js,{onChange:p,labels:pe,checkboxes:w,dense:J,showGray:P,qElemNumber:ae.qElemNumber,isSelected:se,cell:ae,isGridCol:de,isSingleSelect:q,valueTextAlign:ue,styles:V}):t.createElement(zs,{onChange:p,label:fe,qElemNumber:ae.qElemNumber,isSelected:se,dense:J,cell:ae,isGridCol:de,showGray:P,isSingleSelect:q,checkboxes:w,valueTextAlign:ue,styles:V})),R&&t.createElement(Bs,{cell:ae,checkboxes:w,dense:J,showGray:P}),Se&&t.createElement(L,{item:!0,className:Va.icon},ve&&t.createElement(Aa,{style:he,size:"small"}),ye&&t.createElement(Ya,{style:he,size:"small"}))))}var nl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function rl(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||nl(r)&&nl(o)))return!1;var r,o;return!0}function ol(e,t){var n;void 0===t&&(t=rl);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 il="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function al(e){cancelAnimationFrame(e.id)}function sl(e,t){var n=il();var r={id:requestAnimationFrame((function o(){il()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var ll=-1;function cl(e){if(void 0===e&&(e=!1),-1===ll||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ll=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ll}var ul=null;function dl(e){if(void 0===e&&(e=!1),null===ul||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?ul="positive-descending":(t.scrollLeft=1,ul=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ul}return ul}var fl=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function pl(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,f=e.getRowOffset,h=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,b=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,la(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:la(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=ol((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=ol((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),p=e+":"+t;if(d.hasOwnProperty(p))o=d[p];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;d[p]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f(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=ol((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(dl()){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&&al(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=sl(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}sa(t,e),t.getDerivedStateFromProps=function(e,t){return hl(e,t),v(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,f=i.rowCount,p=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=cl();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,f-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>p?b:0,S=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},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(dl()){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&&al(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,f=e.itemKey,h=void 0===f?fl:f,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,S=e.width,x=this.state.isScrolling,E=this._getHorizontalRangeToRender(),w=E[0],C=E[1],_=this._getVerticalRangeToRender(),L=_[0],k=_[1],R=[];if(r>0&&b)for(var q=L;q<=k;q++)for(var I=w;I<=C;I++)R.push(p(t,{columnIndex:I,data:d,isScrolling:y?x:void 0,key:h({columnIndex:I,data:d,rowIndex:q}),rowIndex:q,style:this._getItemStyle(q,I)}));var O=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return p(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Dt({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},p(c||u||"div",{children:R,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],f=u[1],p=u[2],h=u[3];this._callOnItemsRendered(a,s,d,f,l,c,p,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,v,g,S,y)}},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,f=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var p=r(this.props,d,this._instanceProps),h=o(this.props,p,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,f),g=u&&"forward"!==c?1:Math.max(1,f);return[Math.max(0,p-m),Math.max(0,Math.min(t-1,h+g)),p,h]},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=h(this.props,c,this._instanceProps),f=m(this.props,d,c,this._instanceProps),p=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-p),Math.max(0,Math.min(i-1,f+g)),d,f]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var hl=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ml=function(e,t){return e};function gl(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,la(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:la(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=ol((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=ol((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),f=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=ol((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(dl()){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&&al(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=sl(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}sa(t,e),t.getDerivedStateFromProps=function(e,t){return bl(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?cl():0:l.scrollHeight>l.clientHeight?cl():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(dl()){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&&al(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,f=void 0===d?ml:d,h=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,S=this.state.isScrolling,x="horizontal"===o||"horizontal"===h,E=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],_=w[1],L=[];if(c>0)for(var k=C;k<=_;k++)L.push(p(t,{data:u,key:f(k,u),index:k,isScrolling:v?S:void 0,style:this._getItemStyle(k)}));var R=r(this.props,this._instanceProps);return p(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:Dt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},p(s||l||"div",{children:L,ref:a,style:{height:x?"100%":R,pointerEvents:S?"none":void 0,width:x?R:"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),f=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bl=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},vl=pl({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 f=Math.round(d+(u-d)/2);return f<Math.ceil(l/2)?0:f>c+Math.floor(l/2)?c:f;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 f=Math.round(d+(u-d)/2);return f<Math.ceil(s/2)?0:f>c+Math.floor(s/2)?c:f;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}}),yl=gl({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,f="horizontal"===a||"horizontal"===u?d:s,p=Math.max(0,l*c-f),h=Math.min(p,t*c),m=Math.max(0,t*c-f+c+i);switch("smart"===n&&(n=r>=m-f&&r<=h+f?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(f/2)?0:g>p+Math.floor(f/2)?p:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const Sl="#BBB",xl="#f1f1f1",El={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const wl=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Cl=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,_l=(e,t,n,r)=>e===t*n+r+n;function Ll(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=wl(t,c),d=c?r.column:r.row,f=(c?o:i)>=d,p=_l(s,u,c?i:o,l),h=!!l&&Cl(t,c),m=f&&!p&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:kl,StyledFixedSizeGrid:Rl}=function(){const e=e=>({scrollbarColor:"".concat(Sl," ").concat(xl),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:xl},"&::-webkit-scrollbar-thumb":{backgroundColor:Sl,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:$(yl,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(El.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:$(vl,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(El.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)},Il=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 Ol(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Tl(e){let{isGridMode:t,dense:n}=e;let r=n?hs:t?fs:ps;return t&&(r+=ms),r}function Dl(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:f,dense:p,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==l?void 0:l.content)||{},b="".concat(m," ").concat(g),v=Il({text:Ol(t),font:b}),y=Il({text:Ol(5),font:b}),S=Il({text:Ol(8),font:b}),x=a?y:0,E=s?us:0;let w=cs+x+E;!s&&w>=as&&(w+=us);let C,_,L,k,R=v+18+x+E;!s&&R>=as&&(R+=us),R=Math.min(ls,Math.max(R,w));const q=Tl({isGridMode:"grid"===h,dense:p}),I=null!=r?r:8*q;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*ms,({rowCount:k,columnWidth:L,columnCount:_}=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-ss;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:f,listCount:o,containerWidth:e,columnAutoWidth:R,itemMinWidth:w}))):(C={overflowY:"hidden"},({rowCount:k,columnWidth:L,columnCount:_}=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:q,listCount:o,listHeight:I,columnAutoWidth:R,containerWidth:e,itemMinWidth:w})))}_=("singleColumn"===h?1:_)||1,k=("singleColumn"===h?i:k)||o;const O=c.dense?838e3:577e3;k=Math.min(k,O);const T=Math.floor(3355e4/L);_=Math.min(_,T)||1;const D=k*_,P=Math.min(o,D);return{columnCount:_,columnWidth:L,rowCount:k,overflowStyling:C,itemHeight:q,listHeight:I,listWidth:n,scrollBarWidth:ss,count:i,listCount:P,maxCount:{row:O,column:T},itemPadding:ms,textWidth:v,freqMinWidth:y,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[Ml,Al]=Sa({});function Nl(e){const t="".concat(e.id),[n]=Ml();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const jl=ra(w,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return ne({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px"),whiteSpace:"normal"},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function zl(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=s(ba);return t.createElement(k,{title:i?a.get(r):""},t.createElement(jl,{width:n,dense:o,component:"div",variant:"body1",py:"12px"},a.get(r)))}var Fl={},Bl={};function Wl(e){return go("MuiSvgIcon",e)}bo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ul=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Hl=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)}`]},Wl,r)},$l=ra("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,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Gl=e.forwardRef((function(t,n){const r=Qo({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:f="0 0 24 24"}=r,p=Pt(r,Ul),h=e.isValidElement(o)&&"svg"===o.type,m=Dt({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h}),g={};u||(g.viewBox=f);const b=Hl(m);return $n.jsxs($l,Dt({as:s,className:ho(b.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n},g,p,h&&o.props,{ownerState:m,children:[h?o.props.children:o,d?$n.jsx("title",{children:d}):null]}))}));Gl.muiName="SvgIcon";const Vl={configure:e=>{fo.configure(e)}};var Kl,Jl,Zl=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 $n.jsx(Gl,Dt({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=Gl.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:Oo,ownerWindow:function(e){return Oo(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:To,unstable_ClassNameGenerator:Vl,unstable_useEnhancedEffect:qo,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 qo((()=>{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=>{To(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Fo,!0),t.addEventListener("mousedown",Bo,!0),t.addEventListener("pointerdown",Bo,!0),t.addEventListener("touchstart",Bo,!0),t.addEventListener("visibilitychange",Wo,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Uo(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(No=!0,jo.start(100,(()=>{No=!1})),n.current=!1,!0)},ref:t}}}),Xl=K(Zl);function Yl(){return Kl||(Kl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Xl}(Bl)),Bl}function Ql(){if(Jl)return Fl;Jl=1;var e=li();Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=void 0;var t=e(Yl()),n=Hn();return Fl.default=(0,t.default)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Fl}var ec=V(Ql());const tc=ra(R)((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}})),nc=ra("div")((()=>({paddingLeft:"6px",flexGrow:1}))),rc=ra("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),oc=ra(ec)((()=>({fontSize:"14px"})));function ic(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(tc,{left:l,style:{maxWidth:s}},t.createElement(nc,null,t.createElement(zl,{text:n,dense:o,width:c,tooltip:u})),t.createElement(rc,{dense:o},a&&t.createElement(q,{"aria-label":"close",onClick:()=>r()},t.createElement(oc,null))))}const ac=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const sc=80;function lc(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>sc,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const cc=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e,uc=e=>{const t=cc(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},dc=(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=uc(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 fc=["isLoadingData"],pc=100,hc=I("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function mc(e){var o,i;let{model:a,app:l,constraints:u,layout:d,selections:p,selectionState:h,direction:m,checkboxes:g,height:b,width:v,frequencyMode:y,update:S,fetchStart:x,postProcessPages:E,calculatePagesHeight:w=!1,keyboard:C={},showGray:_=!0,scrollState:L,keyScroll:k={state:{},reset:()=>{}},currentScrollIndex:R={set:()=>{}},renderedCallback:q,onCtrlF:I,showSearch:O,isModal:T,styles:D}=e;const{translator:P}=s(ba),[M,A]=n(!1),N=!(!d||!d.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:j=g,histogram:z}=null!=d?d:{},F=f(null),B=f({queue:[],validPages:!1,dataOffset:0}),W=f({pages:[]}),{frequencyMax:U,awaitingFrequencyMax:H}=dc(l,d),$=function(e){let{local:t,loaderRef:r,model:o,fetchStart:i,scrollTimeout:a,postProcessPages:s,listData:l}=e;const[c,u]=n(!1),[d,f]=n([]);let[p]=n(0);const h=(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>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=s?s(n):n;t.current.validPages=!0,l.current.pages=r,f(r),u(!1),e()}));i&&i(r)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),h}},pages:d,isLoading:c}}({local:B,loaderRef:F,model:a,fetchStart:x,scrollTimeout:0,postProcessPages:E,listData:W}),{isLoadingData:G}=$,V=re($,fc),{getStoreValue:K,setStoreValue:J}=Nl(a),Z=c(V.loadMoreItems,[d]),[X,Y]=n({show:!1,dismissed:!1}),[Q,te]=n([]);null!=V&&V.pages&&h.update({setPages:te,pages:V.pages,isSingleSelect:N,layout:d});const oe=null==d?void 0:d.qListObject.qDimensionInfo.qCardinal;(null!=V&&V.pages.length&&!H||0===oe)&&(null==q||q());const ie=c((e=>{if(null==Q||!Q.length||!B.current.validPages)return!1;B.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Q.filter((e=>t(e)))[0];return n&&t(n)}),[d,Q]),{interactionEvents:ae,select:se}=Za({selectionState:h,selections:p,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=ne({},ce?{rowIndex:e}:{columnIndex:e}),n=ue?t:e;F.current._listRef.scrollToItem(n)},fe=()=>{if(B.current.queue=[],B.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===k.state.scrollPosition;if(d&&d.qSelectionInfo.qInSelections||e)return void(e&&k.reset());B.current.dataOffset=0,de(0)}};S&&S.call(null,fe),r((()=>{L&&!M&&F.current&&(F.current._listRef.scrollToItem(L.initScrollPos),A(!0))}),[F.current]),r((()=>{fe()}),[d,B.current.dataOffset]);let pe=pc;const he="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:Q,minimumBatchSize:pe,count:me,calculatePagesHeight:w});let be=lc({itemWidth:v,layout:d,frequencyMode:y});const ve=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(Q),ye=Dl({layout:d,width:v,height:b,listCount:ge,count:me,freqIsAllowed:be,checkboxes:j,styles:D});ye.columnWidth&&(be=lc({itemWidth:ye.columnWidth,layout:d,frequencyMode:y}));const{listCount:Se}=ye;J("listCount",Se);const xe=K("inputText"),Ee=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=s(ba),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=ac(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ce,sizes:ye,layout:d,offset:B.current.dataOffset});B.current.dataOffset=n,r&&h.triggerStateChanged(),de(t)};r((()=>{const e=k.state;e.up?de(R.state.start-e.up):e.down?de(R.state.stop+e.down):e.scrollPosition&&we(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&k.reset()}),[k.state.up,k.state.down,k.state.scrollPosition]);const{textAlign:Ce}=(null==d?void 0:d.qListObject.qDimensionInfo)||{},[_e,Le]=n({first:!1,last:!1}),{List:ke,Grid:Re}=function(e){let{layout:n,width:r,checkboxes:o,local:i,isVertical:a,pages:s,selectionState:l,interactionEvents:c,deducedFrequencyMode:u,histogram:d,isSingleSelect:f,select:p,selectAll:h,onCtrlF:m,textAlign:g,selections:b,keyboard:v,showGray:y,scrollState:S,direction:x,sizes:E,listCount:w,overflowDisclaimer:C,setScrollPosition:_,focusListItems:L,setCurrentScrollIndex:k,constraints:R,frequencyMax:q,freqIsAllowed:I,translator:O,showSearch:T,isModal:D,styles:P}=e;const{layoutOptions:M={}}=n||{},{columnWidth:A,listHeight:N,itemHeight:j,rowCount:z,columnCount:F}=E||{},B=("grid"===M.dataLayout?A:r)>as,W={direction:"rtl"===x?"rtl":"ltr",useIsScrolling:!0,className:El.styledScrollbars},U=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,H=N<=j,$=ne(ne({isLocked:U,column:!a,pages:s},U||l.selectDisabled()?{}:c),{},{checkboxes:o,layoutOptions:M,deducedFrequencyMode:u,freqIsAllowed:I,isSingleSelect:f,textAlign:g,sizes:E,actions:{select:p,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:_,selectAll:h,onCtrlF:m},frequencyMax:q,histogram:d,keyboard:v,showGray:y,showTick:B,dataOffset:i.current.dataOffset,focusListItems:L,direction:x,translator:O,showSearch:T,isModal:D,styles:P,fillHeight:H});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(kl,ee({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==R?void 0:R.active,height:N,width:r,itemCount:w,itemData:ne(ne({},$),{},{listCount:w}),itemSize:j,onItemsRendered:e=>{var t;k({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),Ll({renderProps:e,layoutOptions:M,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(ne({},e))},ref:a}),tl)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=E,{layoutOrder:c}=M||{},u=Math.min(N,z*j+l);return i.current.listRef=a,t.createElement(Rl,ee({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==R?void 0:R.active,height:u,width:r,columnCount:F,columnWidth:A,rowCount:z,rowHeight:j,style:ne({},s),itemData:ne(ne({},$),{},{column:void 0,columnCount:F,rowCount:z}),onItemsRendered:e=>{var t;const r="row"===c;k({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,f,p,h;return n&&n.setScrollPos(u),"column"===r?(d=l*o,f=a,p=c*o,h=s):(d=l,f=a*i,p=c,h=s*i),{visibleStartIndex:d+f,visibleStopIndex:p+h}}({renderProps:e,scrollState:S,layoutOrder:c,rowCount:z,columnCount:F});Ll({renderProps:e,layoutOptions:M,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}),tl)}}}({direction:m,layout:d,width:v,checkboxes:j,deducedFrequencyMode:ve,histogram:z,keyboard:C,showGray:_,interactionEvents:ae,select:se,selectAll:()=>{h.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:I,textAlign:Ce,isVertical:he,pages:Q,selectionState:h,isSingleSelect:N,selections:p,scrollState:L,local:B,sizes:ye,listCount:Se,overflowDisclaimer:{state:X,set:e=>Y((t=>ne(ne({},t),{},{show:e})))},setScrollPosition:we,focusListItems:{first:_e.first,setFirst:e=>Le((t=>ne(ne({},t),{},{first:e}))),last:_e.last,setLast:e=>Le((t=>ne(ne({},t),{},{last:e})))},setCurrentScrollIndex:R.set,constraints:u,frequencyMax:U,freqIsAllowed:be,translator:P,showSearch:O,isModal:T,styles:D}),{columnWidth:qe,listHeight:Ie,itemHeight:Oe}=ye||{};return he||(pe=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:v,columnWidth:qe,listHeight:Ie,itemHeight:Oe})),t.createElement(hc,null,t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},Ee),!Se&&oe>0&&t.createElement(zl,{width:v,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Ba,{isItemLoaded:ie,itemCount:Se||1,loadMoreItems:Z.with({minimumBatchSize:pe}),threshold:0,minimumBatchSize:pe,ref:F,role:"grid"},he?ke:Re),X.show&&!X.dismissed&&t.createElement(ic,{text:"Listbox.ItemsOverflow",dismiss:()=>Y((e=>ne(ne({},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 gc=e=>ne(ne({},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"}}]}),bc=e=>ne(ne({},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"}}]}),vc=e=>ne(ne({},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"}}]}),yc=e=>ne(ne({},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 Sc=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:gc,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:vc,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:bc,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:yc,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectExcluded(s)}}].filter(Boolean)};const xc=e=>ne(ne({},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 Ec(e){const t=Ui(),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 wc={className:"njs-cell-action"},Cc=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=Ui(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=Ec(o);if(s)return null;const d=Number.parseInt(a.spacing(.5),10),f=o.keyboardAction||o.action,p=f?e=>["Enter"].includes(e.key)&&f():null,h=f?e=>[" ","Spacebar"].includes(e.key)&&f():null,m="actions-toolbar-".concat(o.key);return t.createElement(q,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:p,onKeyUp:h,disabled:l,style:c,className:[wc.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}}))})),_c=e=>ne(ne({},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 Lc=e=>Pa(_c(e));const kc=e=>ne(ne({},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 Rc=e=>Pa(kc(e));const qc="njs-action-toolbar-more",Ic={icon:"".concat("More","-icon")},Oc=ra(O)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Ic.icon," *")]:{color:t.palette.text.primary}}}));function Tc(e){let{item:n,autoFocus:r,onActionClick:o=(()=>{})}=e;const{hidden:i,disabled:a,hasSvgIconShape:s}=Ec(n);return i?null:t.createElement(D,{autoFocus:r,title:n.label,onClick:()=>{n.action(),o()},disabled:a,tabindex:"0"},s&&t.createElement(P,{className:Ic.icon},Pa(n.getSvgIconShape())),t.createElement(w,{noWrap:!0},n.label))}const Dc=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(Oc,ee({},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:qc},paper:{style:ne({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(Tc,{key:n,item:e,autoFocus:n===d,onActionClick:l})))))})),Pc=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},Mc=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 Ac="ActionsToolbar",Nc={item:"".concat(Ac,"-item"),itemSpacing:"".concat(Ac,"-itemSpacing")},jc=ra(O)((e=>{let{theme:t}=e;return{["& .".concat(Nc.itemSpacing)]:{padding:t.spacing(0,.25)}}})),zc={className:"njs-action-toolbar-popover"},Fc=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(L,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:r},i.map(((e,r)=>t.createElement(L,{item:!0,key:e.key,className:"".concat(Nc.itemSpacing," ").concat(Nc.item)},t.createElement(Cc,{ariaExpanded:o,key:e.key,item:e,ref:0===r?n:null,addAnchor:a}))))):null})),Bc={pointerEvents:"none"};function Wc(e){var o,a;let{show:l=!0,actions:c=[],maxItems:u=3,selections:d={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:p,more:h={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:m={show:!1,anchorEl:null},focusHandler:g=null,actionsRefMock:b=null,isRtl:v,autoConfirm:y=!1,layout:S}=e;const x=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=s(ba);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:kc},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:_c},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:Xa}]}(ne(ne({},d),{},{layout:S})),{translator:E,keyboardNavigation:w}=s(ba),[C,_]=n(!1),k={vertical:12,horizontal:v?0:(null!==(o=null===(a=m.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},R={vertical:"bottom",horizontal:v?-7:"right"},q=f(),I=f(),O=Ui(),T=i((()=>({margin:O.spacing(.5,0)}))),D=e=>{const t=q.current||b;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},P=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 Hs.ARROW_LEFT:case Hs.ARROW_DOWN:case Hs.ARROW_RIGHT:case Hs.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=Pc(a);let t=[Hs.ARROW_LEFT,Hs.ARROW_DOWN].includes(l);t=i?!t:t,Mc(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case Hs.SPACE:e.preventDefault();break;case Hs.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 Hs.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:w,focusHandler:g,getEnabledButton:D,selections:d,isRtl:v})),[w,g,D,d,v]);if(r((()=>()=>{_(!1)}),[m.show,l,d.show]),r((()=>{if(!g)return;g.on("focus_toolbar_first",(()=>{const e=D(!1);null==e||e.focus()})),g.on("focus_toolbar_last",(()=>{const e=D(!0);null==e||e.focus()}))}),[]),y)return;let A=h.enabled,N=h.actions;const j=h.alignTo||I,z=c.filter((e=>!e.hidden));if(z.length>u){const e=z.splice(-(z.length-u)-1);A=!0,N=[...e,...h.actions]}if(!d.show&&0===z.length&&!A)return null;const F={key:"more",label:E.get("Menu.More"),getSvgIconShape:xc,hidden:!1,active:C,enabled:()=>A,action:()=>_(!C)},B=z.length>0,W=N.length>0,U=B&&d.show||W&&d.show,H=t.createElement(L,{ref:q,onKeyDown:P,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:v?"row-reverse":"row"}},(null==p?void 0:p.length)&&t.createElement(Fc,{className:"actions-toolbar-extra-actions",actions:p,isRtl:v}),B&&t.createElement(Fc,{actions:z}),W&&t.createElement(Fc,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:I,ariaExpanded:C,actions:[F],addAnchor:!0}),U&&t.createElement(L,{item:!0,className:Nc.itemSpacing,style:T},t.createElement(M,{orientation:"vertical"})),d.show&&t.createElement(Fc,{className:"actions-toolbar-default-actions",actions:x,isRtl:v}),C&&t.createElement(Dc,{show:C,actions:N,alignTo:j,popoverProps:h.popoverProps,popoverPaperStyle:h.popoverPaperStyle,onCloseOrActionClick:()=>{_(!1)},disablePortal:h.disablePortal}));return m.show?t.createElement(jc,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:m.show,anchorEl:m.anchorEl,anchorOrigin:k,transformOrigin:R,hideBackdrop:!0,style:Bc,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:zc.className,style:{pointerEvents:"auto",padding:O.spacing(.5,.25)}}}},H):l&&H}var Uc=e=>Pa((e=>ne(ne({},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 Hc="/qListObjectDef",$c=e=>null==e?void 0:e.substring(0,64e3),Gc=ra(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"}}),ne({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":ne({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),Vc=ra(q)((()=>({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 Kc=o((function(e,o){let{popoverOpen:i,selections:l,selectionState:c,model:u,keyboard:d,dense:p=!1,visible:h=!0,autoFocus:m=!0,beginSelectionOnFocus:g=!0,wildCardSearch:b=!1,searchEnabled:v,direction:y,hide:S,styles:x}=e;const{translator:E}=s(ba),[w,C]=n(""),[_,L]=n(!1),k=f(),R=f(),q=E.get("Listbox.Clear.Search"),{getStoreValue:I,setStoreValue:O}=Nl(u),T="rtl"===y,D=async()=>{try{await u.abortListObjectSearch(Hc)}finally{C("")}};r((()=>h?()=>D():()=>{}),[h]),r((()=>(l.on("deactivated",D),()=>{l.removeListener&&l.removeListener("deactivated",D)})),[]),r((()=>{if(_&&k.current){const e=w.length-1;k.current.setSelectionRange(e,e),L(!1)}}),[_,k.current]),r((()=>{O("inputText",w)}),[w]);const P=async()=>{let e;const t=$c(w),n=await u.searchListObjectFor(Hc,t);return c.selectDisabled()?n:(n&&t.length&&I("listCount")>0&&(e=u.acceptListObjectSearch(Hc,!0),l.selectionsMade=!0,c.clearItemStates(!1),C("")),e)},M=()=>{var e;null===(e=k.current)||void 0===e||e.focus()},A=()=>{D(),M()};return a(o,(()=>({focus(){M()}}))),h&&!1!==v?t.createElement(Gc,{styles:x,dense:p,isRtl:T,startAdornment:t.createElement(N,{position:"start",sx:{marginLeft:p?"8px":"".concat(ns,"px")}},t.createElement(Uc,{size:p?"small":"normal"})),endAdornment:t.createElement(N,{position:"end",sx:{marginLeft:0}},""!==w&&t.createElement(Vc,{tabIndex:0,ref:R,title:q,"aria-label":q,onClick:A,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":A();break;case"Tab":e.shiftKey?M():Zs(t);break;default:return}e.preventDefault(),e.stopPropagation()}},t.createElement(Lc,{size:p?"small":"normal"}))),className:"search",inputRef:k,size:"small",fullWidth:!0,placeholder:E.get("Listbox.Search"),value:w,onFocus:()=>{b&&(C("**"),L(!0)),g&&!c.selectDisabled()&&!l.isModal()&&l.begin("/qListObjectDef")},onChange:async e=>{const t=$c(e.target.value);return C(t),t.length?u.searchListObjectFor(Hc,t):D()},onKeyDown:async e=>{const{currentTarget:t}=e,n=t.closest(".listbox-container");switch(e.key){case"Enter":P();break;case"Escape":if(Zs(n),l.cancel(),i)return;break;case"Tab":e.shiftKey?Xs(n)||d.focusSelection():R.current?R.current.focus():Zs(n);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;S&&(S(),Zs(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 Jc(e){if(!e.session)return[];const{selectionStore:t}=s(ba),[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 Zc(e){return Object.keys(ue.prototype).forEach((t=>{e[t]=ue.prototype[t]})),ue.init(e),e}const Xc=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 Zc(s),s},Yc=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 Qc(e,t,o,i){const a=Array.isArray(o)?o:[o],[l]=Jc(e),[c]=Ia(t),{appModalStore:u}=s(ba).selectionStore,d=u.get(e.id),[f,p]=n();return r((()=>{l&&t&&!f&&p(Xc({appSelections:l,appModal:d,model:t}))}),[l,t]),r((()=>{if(!f)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Yc({elements:a,objectSelections:f,options:i});return f.addListener("activated",e),f.addListener("deactivated",t),()=>{f.isActive()&&f.confirm(),f.removeListener("activated",e),f.removeListener("deactivated",t)}}),[f]),r((()=>{f&&f.setLayout(c)}),[f,c]),[f]}function eu(){const e=ne(ne({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=Ha(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[ne(ne({},n),{},{qState:r}),...t.slice(1)]}));return ne(ne({},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 tu=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 nu(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return tu(t,"qSelected",0)+tu(t,"qSelectedExcluded",0)+tu(t,"qLocked",0)+tu(t,"qLockedExcluded",0)>0}function ru(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 ou(e){if("object"==typeof e&&ru(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 iu={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 au(...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(ru(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 f=a-.5*l;n=d[0]+f,r=d[1]+f,o=d[2]+f,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 f=a-.5*l;n=d[0]+f,r=d[1]+f,o=d[2]+f,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 f=a-l;n=d[0]+f,r=d[1]+f,o=d[2]+f,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 iu}(e)){const t=iu[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 su(e){let t,n,r;if(ru(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?ou(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 lu(e){let t,n,r=0;const o="string"==typeof e?au(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 cu(e){let t,n,r=0;const o="string"==typeof e?au(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 uu(e){if(ru(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?ou(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function du(e,t){return ru(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:du(au(e))}function fu(e){return ru(e)?1===e.a?uu(e):du(e):fu(au(e))}const pu=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function hu(e){return.2126*pu(e.r)+.7152*pu(e.g)+.0722*pu(e.b)}function mu(...e){const t=au(...e);return t.invalid||hu(t)<.4}function gu(...e){const t=au(...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=lu(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=au(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:()=>mu(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=uu(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=du(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=fu(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=su(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?au(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}=lu(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}=cu(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=cu(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)=>gu(o(18*e)),getDarkenedColor:(e=1)=>gu(o(18*-e))}}function bu(e,t){if(!e||!t)return;const n=hu(e),r=hu(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function vu(e,t){const n=gu("#FFFFFF"),r=gu(e),o=gu(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=bu(n,r),a=bu(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}var yu,Su;var xu=function(){if(Su)return yu;Su=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 yu=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},yu}();function Eu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Cu(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xu);var _u=1/.7,Lu="\\s*([+-]?\\d+)\\s*",ku="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ru="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qu=/^#([0-9a-f]{3,8})$/,Iu=new RegExp(`^rgb\\(${Lu},${Lu},${Lu}\\)$`),Ou=new RegExp(`^rgb\\(${Ru},${Ru},${Ru}\\)$`),Tu=new RegExp(`^rgba\\(${Lu},${Lu},${Lu},${ku}\\)$`),Du=new RegExp(`^rgba\\(${Ru},${Ru},${Ru},${ku}\\)$`),Pu=new RegExp(`^hsl\\(${ku},${Ru},${Ru}\\)$`),Mu=new RegExp(`^hsla\\(${ku},${Ru},${Ru},${ku}\\)$`),Au={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 Nu(){return this.rgb().formatHex()}function ju(){return this.rgb().formatRgb()}function zu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qu.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Fu(t):3===n?new Hu(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Bu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Bu(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=Iu.exec(e))?new Hu(t[1],t[2],t[3],1):(t=Ou.exec(e))?new Hu(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Tu.exec(e))?Bu(t[1],t[2],t[3],t[4]):(t=Du.exec(e))?Bu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Pu.exec(e))?Zu(t[1],t[2]/100,t[3]/100,1):(t=Mu.exec(e))?Zu(t[1],t[2]/100,t[3]/100,t[4]):Au.hasOwnProperty(e)?Fu(Au[e]):"transparent"===e?new Hu(NaN,NaN,NaN,0):null}function Fu(e){return new Hu(e>>16&255,e>>8&255,255&e,1)}function Bu(e,t,n,r){return r<=0&&(e=t=n=NaN),new Hu(e,t,n,r)}function Wu(e){return e instanceof Cu||(e=zu(e)),e?new Hu((e=e.rgb()).r,e.g,e.b,e.opacity):new Hu}function Uu(e,t,n,r){return 1===arguments.length?Wu(e):new Hu(e,t,n,null==r?1:r)}function Hu(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $u(){return`#${Ju(this.r)}${Ju(this.g)}${Ju(this.b)}`}function Gu(){const e=Vu(this.opacity);return`${1===e?"rgb(":"rgba("}${Ku(this.r)}, ${Ku(this.g)}, ${Ku(this.b)}${1===e?")":`, ${e})`}`}function Vu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ku(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ju(e){return((e=Ku(e))<16?"0":"")+e.toString(16)}function Zu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yu(e,t,n,r)}function Xu(e){if(e instanceof Yu)return new Yu(e.h,e.s,e.l,e.opacity);if(e instanceof Cu||(e=zu(e)),!e)return new Yu;if(e instanceof Yu)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 Yu(a,s,l,e.opacity)}function Yu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Qu(e){return(e=(e||0)%360)<0?e+360:e}function ed(e){return Math.max(0,Math.min(1,e||0))}function td(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Eu(Cu,zu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Nu,formatHex:Nu,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xu(this).formatHsl()},formatRgb:ju,toString:ju}),Eu(Hu,Uu,wu(Cu,{brighter(e){return e=null==e?_u:Math.pow(_u,e),new Hu(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Hu(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Hu(Ku(this.r),Ku(this.g),Ku(this.b),Vu(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:$u,formatHex:$u,formatHex8:function(){return`#${Ju(this.r)}${Ju(this.g)}${Ju(this.b)}${Ju(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Gu,toString:Gu})),Eu(Yu,(function(e,t,n,r){return 1===arguments.length?Xu(e):new Yu(e,t,n,null==r?1:r)}),wu(Cu,{brighter(e){return e=null==e?_u:Math.pow(_u,e),new Yu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yu(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 Hu(td(e>=240?e-240:e+120,o,r),td(e,o,r),td(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Yu(Qu(this.h),ed(this.s),ed(this.l),Vu(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=Vu(this.opacity);return`${1===e?"hsl(":"hsla("}${Qu(this.h)}, ${100*ed(this.s)}%, ${100*ed(this.l)}%${1===e?")":`, ${e})`}`}}));const nd=Math.PI/180,rd=180/Math.PI,od=4/29,id=6/29,ad=3*id*id;function sd(e){if(e instanceof ld)return new ld(e.l,e.a,e.b,e.opacity);if(e instanceof pd)return hd(e);e instanceof Hu||(e=Wu(e));var t,n,r=fd(e.r),o=fd(e.g),i=fd(e.b),a=cd((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=cd((.4360747*r+.3850649*o+.1430804*i)/.96422),n=cd((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ld(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ld(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function cd(e){return e>.008856451679035631?Math.pow(e,1/3):e/ad+od}function ud(e){return e>id?e*e*e:ad*(e-od)}function dd(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fd(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pd(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function hd(e){if(isNaN(e.h))return new ld(e.l,0,0,e.opacity);var t=e.h*nd;return new ld(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Eu(ld,(function(e,t,n,r){return 1===arguments.length?sd(e):new ld(e,t,n,null==r?1:r)}),wu(Cu,{brighter(e){return new ld(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ld(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 Hu(dd(3.1338561*(t=.96422*ud(t))-1.6168667*(e=1*ud(e))-.4906146*(n=.82521*ud(n))),dd(-.9787684*t+1.9161415*e+.033454*n),dd(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Eu(pd,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof pd)return new pd(e.h,e.c,e.l,e.opacity);if(e instanceof ld||(e=sd(e)),0===e.a&&0===e.b)return new pd(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rd;return new pd(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pd(e,t,n,null==r?1:r)}),wu(Cu,{brighter(e){return new pd(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pd(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return hd(this).rgb()}}));var md=e=>()=>e;function gd(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):md(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?gd: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):md(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Uu(e)).r,(t=Uu(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=gd(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 bd,vd="center",yd="bottom";function Sd(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 xd(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wd)):void 0===t&&(t=Ed);for(var n,r,o,i,a,s=new Ld(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 Ld(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_d)}function Ed(e){return e.children}function wd(e){return Array.isArray(e)?e[1]:null}function Cd(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 Ld(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:vd,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:vd,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:vd,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:vd},{key:"DataRangeIncludingZero",alignment:yd},{key:"LimitedData",alignment:yd},{key:"NegativeOrZeroValues",alignment:yd}].reduce((function(e,t){return e[t.key]=t,e}),{}),Ld.prototype=xd.prototype={constructor:Ld,count:function(){return this.eachAfter(Sd)},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 xd(this).eachBefore(Cd)},[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)}},bd=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,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=f-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),S=g>0?e.substring(y,f):"";if(n=(t="-"===(e=e.substring(p,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%l,f=d.length,y=0;y<f;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<f-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+S}},bd({exports:{}});const kd=/,(?![^(]*\))/,qd=/\s(?![^(]*\))/,Rd=/^[0-9]+[a-zA-Z%]+?$/,Id=["none","inset","initial","inherit"],Od=e=>{if(!e)return;const t=e.split(qd).filter((e=>!Id.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||Rd.test(e))(t)||Id.includes(t.toLowerCase())?void 0:t;return n},Dd=e=>e?e.split(kd).map((e=>e.trim())):[];function Td(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function Md(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:Td(t,n,r,o)}const Ad={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Pd={"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 Nd(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 jd(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=Nd(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=Pd[e.bgImage.position]),n}(e),i=function(e){var t;let n=Ad.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=Ad[r]),n}(e);return r?{url:r,pos:o,size:i}:void 0}}function zd(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):Md(null==r?void 0:r.color,"","backgroundColor",t,n)}function Fd(e,t,n){var r,o;const i=Td("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&Id.includes(e.toLowerCase()))return e.toLowerCase();const r=Dd(e);if(1!==r.length)return e;let o=n;if(!o){const n=Dd(t);if(1!==n.length)return e;o=Od(n[0])}if(!o)return e;const i=Od(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,Md(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function Wd(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 Bd={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},Hd=["theme","selections"];function $d(e){var t,n,r,o,i,a,s,l;let{app:c,themeApi:u,theme:d,components:f=[],checkboxes:p=!1}=e;const h=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;Hd.includes(n)&&(e[n]=t)})),e}(f),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,f=a(d)||l("content","color")||(null===(n=s.palette)||void 0===n?void 0:n.text.primary),p=!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),h=(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(h[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])||Bd[e];return{[e]:i,[o]:p?vu(i,f):f||(null===(n=s.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return te(te(te(te(te({},m("selected")),m("alternative")),m("excluded")),m("selectedExcluded")),m("possible"))}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:h,checkboxes:p}),v=h.theme||{},y=g(null===(t=v.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?zd({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color),t):t}({themeApi:u,themeOverrides:v}),x=null!==(n=v.background)&&void 0!==n&&n.image?jd({bgImage:v.background.image},c):void 0,w=S||m("","backgroundColor")||d.palette.background.default,E=function(e,t){const n=gu(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(w,m),_=function(e){return vu("#fff",e("content","color"))}(m),C=(null===(r=v.header)||void 0===r?void 0:r.fontStyle)||{},L=(null===(o=v.content)||void 0===o?void 0:o.fontStyle)||{},k=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:w,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:y,fontSize:(null===(i=v.header)||void 0===i?void 0:i.fontSize)||m("title.main","fontSize"),fontFamily:(null===(a=v.header)||void 0===a?void 0:a.fontFamily)||m("title.main","fontFamily"),fontWeight:k(C.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:C.underline?"underline":"initial",fontStyle:k(C.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:p?void 0:b.possible,color:b.possibleContrast||m("content","color"),fontSize:(null===(s=v.content)||void 0===s?void 0:s.fontSize)||m("content","fontSize"),fontFamily:(null===(l=v.content)||void 0===l?void 0:l.fontFamily)||m("content","fontFamily"),fontWeight:k(L.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:L.underline?"underline":"initial",fontStyle:k(L.italic,"italic","normal")||m("content","fontStyle")||"initial"},search:{color:_,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:E,backdropFilter:"blur(8px)"},selections:b}}function Ud(e){let{alignTo:o,anchorOrigin:i={vertical:"bottom",horizontal:"center"},transformOrigin:a={vertical:"top",horizontal:"center"},show:l,close:u,app:d,fieldName:p,stateName:h="$",autoFocus:m,components:g,checkboxes:b,selectDisabled:v=(()=>!1),sortCriteria:y=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:S="ltr"}=e;const x=Boolean(null==p?void 0:p.qLibraryId),w=l&&Boolean(o.current),[E,_]=n(0),C=Bi(),k=f(),[q]=Ea({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:h,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:y,qFieldDefs:x?void 0:[p]},qLibraryId:x?p.qLibraryId:void 0}},d,p,h),I=c((()=>{q.lock("/qListObjectDef")}),[q]),D=c((()=>{q.unlock("/qListObjectDef")}),[q]),{translator:T,themeApi:M,keyboardNavigation:A}=s(ga),P=f(),N=f(),[j]=Qc(d,q,N),[z]=Ra(q),[F]=n((()=>eu({selectDisabled:v}))),W=Vs({containerRef:N,enabled:A}),{checkboxes:B=b}=z||{},H=$d({themeApi:M,theme:C,components:g,checkboxes:B});if(r((()=>{j&&w&&(j.isModal(q)||j.goModal("/qListObjectDef"))}),[j,w]),!q||!z||!T)return null;const $=!0===z.qListObject.qDimensionInfo.qLocked,U=(e,t)=>{const n="escapeKeyDown"!==t;j.noModal(n),u()},V=yc({layout:z,model:q,translator:T,selectionState:F,selections:j}),G=nu(z);return t.createElement(O,{className:"listbox-container",open:w,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(L,{container:!0,direction:"column",gap:0,ref:N},t.createElement(L,{item:!0,container:!0,style:{direction:S,padding:C.spacing(1)}},t.createElement(L,{item:!0},$?t.createElement(R,{onClick:D,disabled:!$,size:"large"},t.createElement(Aa,{title:T.get("Listbox.Unlock")})):t.createElement(R,{onClick:I,disabled:!G,size:"large"},t.createElement(Na,{title:T.get("Listbox.Lock")}))),t.createElement(L,{item:!0,xs:!0}),t.createElement(L,{item:!0},t.createElement(Bc,{layout:z,more:{enabled:!$,actions:V,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(L,{item:!0,xs:!0},t.createElement("div",{ref:P}),t.createElement(L,{item:!0},t.createElement(Kc,{ref:k,popoverOpen:w,styles:H,visible:!0,model:q,listCount:E,selections:j,selectionState:F,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:W.focusSelection},autoFocus:null==m||m,direction:S})),t.createElement(hc,{model:q,app:d,layout:z,selections:j,selectionState:F,direction:S,onSetListCount:e=>_(e),onCtrlF:()=>{k.current.focus()},styles:H,keyboard:W}))))}function Vd(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:l=null,onClose:c=(()=>{})}=e;const{translator:u}=s(ga),d=l||f(),p=Bi(),[h,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!h)},b=()=>{m(!1),c()},v=r.selections[i];void 0===v.qTotal&&(v.qTotal=0);const y=v.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},S=(y.qSelected+y.qLocked)/v.qTotal,x=y.qAlternative/v.qTotal,w=(y.qExcluded+y.qLockedExcluded+y.qSelectedExcluded)/v.qTotal,_=y.qSelected+y.qSelectedExcluded+y.qLocked+y.qLockedExcluded,C=0===_&&0===v.qTotal;let k="";v.qTotal===_&&v.qTotal>1?k=u.get("CurrentSelections.All"):_>1&&v.qTotal?k=u.get("CurrentSelections.Of",[_,v.qTotal]):v.qSelectedFieldSelectionInfo&&(k=v.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(k="".concat(r.states[i],": ").concat(k));const q=[{color:p.palette.selected.main,ratio:S},{color:p.palette.selected.alternative,ratio:x},{color:p.palette.selected.excluded,ratio:w}];q.forEach(((e,t)=>{e.offset=t?q[t-1].offset+q[t-1].ratio:0}));let I=null,O=null,D=null,T=null;return l||(I=t.createElement(L,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:v.qLocked?"0.3":""}},t.createElement(E,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.label),t.createElement(E,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},k)),v.qLocked?O=t.createElement(L,{item:!0},t.createElement(R,{size:"large"},t.createElement(Aa,null))):v.qOneAndOnlyOne||(O=t.createElement(L,{item:!0},t.createElement(R,{title:u.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(v.qField,r.states[i])},size:"large"},t.createElement(Ma,null)))),D=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===C&&q.map((e=>t.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),T=t.createElement(L,{container:!0,gap:1,ref:d,sx:{backgroundColor:p.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:p.palette.action.hover}},onClick:!1===a&&g||null},I,O,D,h&&t.createElement(Ud,{alignTo:d,show:h,close:b,app:o.model,fieldName:v.qField,stateName:r.states[i]}))),l?t.createElement(Ud,{alignTo:d,show:!0,close:b,app:o.model,fieldName:v.qField,stateName:r.states[i]}):T}var Gd=e=>Ta((e=>te(te({},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 Kd={item:"".concat("MultiState","-item")},Zd=na(L)((e=>{let{theme:t}=e;return{["&.".concat(Kd.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function Jd(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[l,c]=n(!!i),[u,d]=n(-1),[p,h]=n(i?i.current:null),m=i||f(),{translator:g}=s(ga),b=g.get("Selection.ClearAllStates"),v=()=>{d(-1),a()};let y=null;i||(y=t.createElement(t.Fragment,null,t.createElement(L,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(j,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(E,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.label))),t.createElement(L,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(L,{item:!0},t.createElement(R,{size:"large"},t.createElement(Gd,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(C,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(Vd,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),x=t.createElement(O,{open:l,onClose:()=>{c(!1),a()},anchorEl:p,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},S),w=i?x:t.createElement(Zd,{container:!0,gap:0,className:Kd.item,onClick:e=>{e.currentTarget.contains(e.target)&&(h(e.currentTarget),m.current=e.currentTarget,c(!l))}},y,l&&x,u>-1&&t.createElement(Ud,{alignTo:m,show:u>-1,close:v,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}));return i&&u>-1?t.createElement(Ud,{alignTo:m,show:u>-1,close:v,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}):w}const Xd="More",Yd={item:"".concat(Xd,"-item"),badge:"".concat(Xd,"-badge")},Qd=na(L)((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"},["& .".concat(Yd.badge)]:{padding:t.spacing(0,1)}}}));function ef(e){let{items:r=[],api:o}=e;const i=Bi(),[a,s]=n(!1),[l,c]=n(-1),[u,d]=n(null),p=f(),h=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(Jd,{field:r[l],api:o,moreAlignTo:p,onClose:h}):t.createElement(Vd,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:p,onClose:h})),t.createElement(Qd,{container:!0,gap:0,className:Yd.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),p.current=e.currentTarget,s(!a))}},t.createElement(L,{item:!0},t.createElement(C,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(E,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(L,{item:!0},t.createElement(R,{size:"large"},t.createElement(Gd,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(C,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(Jd,{field:e,api:o}):t.createElement(Vd,{field:e,api:o}))))))),m)}const tf=120,nf=72;function rf(e){let{api:o,app:i}=e;const a=Bi(),[l]=Ca(i),[c]=Ra(l),[u,d]=n({items:[],more:[]}),{modalObjectStore:f}=s(ga).selectionStore,[p,h]=Oa(),[m,g]=n(0);return r((()=>{if(!h)return;const{width:e}=h,t=Math.floor(e)-nf,n=Math.floor(t/tf);g(n)}),[h]),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}=f.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(L,{ref:p,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},u.items.map((e=>t.createElement(L,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(tf,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(Jd,{field:e,api:o}):t.createElement(Vd,{field:e,api:o})))),u.more.length>0&&t.createElement(L,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(nf,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(ef,{items:u.more,api:o})))}var of=e=>Ta((e=>te(te({},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 af=e=>Ta((e=>te(te({},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 sf=(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 lf(e){let{api:o,app:i}=e;const{translator:a}=s(ga),[l]=function(e){const[t]=Ca(e),[o]=Ra(t),[i]=Ia(e),[a,s]=n(null);return r((()=>{i&&t&&o&&sf(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(L,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(L,{item:!0},t.createElement(R,{style:{marginRight:"8px"},disabled:!l||!l.canGoBack,title:a.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},t.createElement(of,null))),t.createElement(L,{item:!0},t.createElement(R,{style:{marginRight:"8px"},disabled:!l||!l.canGoForward,title:a.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},t.createElement(af,null))),t.createElement(L,{item:!0},t.createElement(R,{disabled:!l||!l.canClear,title:a.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},t.createElement(kc,null))))}const cf=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function uf(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function df(){return cf.map(uf).join("")}function ff(e){let{app:n}=e;const r=Bi(),[o]=Zc(n);return o?t.createElement(L,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(L,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(lf,{api:o,app:n})),t.createElement(L,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(rf,{api:o,app:n}))):null}let pf;pf="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let hf=null,mf=null;const gf=pf.clearTimeout,bf=pf.setTimeout,vf=pf.cancelAnimationFrame||pf.mozCancelAnimationFrame||pf.webkitCancelAnimationFrame,yf=pf.requestAnimationFrame||pf.mozRequestAnimationFrame||pf.webkitRequestAnimationFrame;function Sf(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__&&hf(this.__resizeRAF__),this.__resizeRAF__=mf((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=pf.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==vf||null==yf?(hf=gf,mf=function(e){return bf(e,20)}):(hf=function([e,t]){vf(e),gf(t)},mf=function(e){const t=yf((function(){gf(n),e()})),n=bf((function(){vf(t),e()}),20);return[t,n]});class xf extends h{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,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},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=Sf(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:f,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},b={};let v=!1;return r||(0===d&&(v=!0),g.height=0,b.height=d,b.scaledHeight=f),o||(0===m&&(v=!0),g.width=0,b.width=m,b.scaledWidth=h),i&&(v=!1),p(c,{ref:this._setRef,style:{...g,...l},...u},!v&&e(b))}}function wf(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 Hs.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(r){Zs(a)||Ks(a)||Xs(e,t)}else{if(!(Js(a)||Ks(a)||Zs(a)))break}o();break;case Hs.ENTER:case Hs.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case Hs.ESCAPE:Xs(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 Hs.ARROW_UP:r({up:1});break;case Hs.ARROW_DOWN:r({down:1});break;case Hs.PAGE_UP:r({up:o.stop-o.start});break;case Hs.PAGE_DOWN:r({down:o.stop-o.start});break;case Hs.HOME:r({scrollPosition:s&&l?"overflowStart":"start"});break;case Hs.END:r({scrollPosition:s&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Ef=na("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function _f(e){let{text:n}=e;const{translator:r}=s(ga);return t.createElement(Ef,null,r.get(n))}const Cf={fontSize:"12px"},Lf=na(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(rs,"px")}}})),kf=na(L,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return te(te({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),qf=na(E)((e=>{let{styles:t}=e;return te(te({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function Rf(e){let{translator:n,toggleLock:r,keyboard:o,isLoading:i}=e;const a=n.get("SelectionToolbar.ClickToUnlock");return t.createElement(Lf,{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(Aa,{disableRipple:!0,style:Cf}),!i&&t.createElement(E,{fontSize:"14px"},a))}var If=e=>Ta((e=>te(te({},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 Of=e=>Ta((e=>te(te({},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 Df=e=>Ta((e=>te(te({},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 Tf="H",Mf="C";var Af={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:i,keyboard:a}=e;switch(t.qGrouping){case Tf:return{icon:Of,tooltip:"Listbox.DrillDown",onClick:void 0};case Mf:{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?Df:If,tooltip:"Listbox.Cyclic",onClick:e?s:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case Hs.SPACE:case Hs.ENTER:s();break;case Hs.TAB:{if(!a.enabled)return;let n;n=e.shiftKey?a.focusSelection():Ks(t)||Zs(t),n||Xs(e,a)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const Pf=I(W)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function Nf(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,f=r.get(l);return c?t.createElement(Pf,{variant:"outlined",onClick:c,tabIndex:a.innerTabStops?0:-1,title:f,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:f,size:"large",style:te(te({},o),{},{padding:"".concat(rs,"px")})})}const jf=500;let zf=0;function Ff(e){var o,i,a;let{layout:s,translator:l,styles:c,isRtl:u,showLock:d,showSearchIcon:p,constraints:h,onShowSearch:m,classes:g,containerRect:b,isPopover:v,showToolbar:y,showDetachedToolbarOnly:S,containerRef:x,model:w,selectionState:E,isDirectQuery:_,selections:C,keyboard:k,autoConfirm:q,app:I,disablePortal:O}=e;const[D,T]=n(S),[M,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=f(null),z=Af.createDimensionIconData({dimInfo:null==s||null===(a=s.qListObject)||void 0===a?void 0:a.qDimensionInfo,app:I,selections:C,isPopover:v,active:!(null!=h&&h.active),keyboard:k}),F=d&&M,W=!d&&M,B=p||W||z,H=ts-(B?rs:0),$=u?ts-(B?rs:0):ns,U=(p?os:0)+(W?os:0)+(z?os:0),V=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-zf<jf)return Promise.resolve();if(r)return()=>{};i(!0),zf=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:M,setLocked:A,settingLockedState:P,setSettingLockedState:N,model:w}),G=yc({layout:s,model:w,translator:l,selectionState:E,isDirectQuery:_,selections:C}),K=M||!d?void 0:[{key:"lock",type:void 0,label:l.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Pa,enabled:()=>!P&&!E.selectDisabled()&&nu(s),action:V}],Z=null!=h&&h.active?t.createElement(Hc,{title:l.get("Listbox.Search"),size:"large",style:te(te({},Cf),{},{padding:"".concat(rs,"px")})}):t.createElement(R,{onClick:m,tabIndex:-1,title:l.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(Hc,{style:Cf}));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,f=(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&&!f)}({containerRect:b,titleRef:j,iconsWidth:U,paddingLeft:H,paddingRight:$});T(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:!v&&D,showToolbar:y,containerRef:x,isLocked:M,extraItems:K,listboxSelectionToolbarItems:G,selections:C,keyboard:k,autoConfirm:q,disablePortal:O}),X=t.createElement(Bc,Q({isRtl:u,layout:s},J));if(S)return X;const Y=W?t.createElement(Aa,{size:"large",style:te(te({},Cf),{},{padding:"".concat(rs,"px")})}):void 0;return t.createElement(kf,{item:!0,container:!0,styles:c,isRtl:u,marginY:1,paddingLeft:"".concat(H,"px"),paddingRight:"".concat($,"px"),className:"header-container"},F&&t.createElement(Rf,{isLoading:P,translator:l,toggleLock:V,keyboard:k}),B&&t.createElement(L,{item:!0,container:!0,alignItems:"center",width:U,className:"header-action-container"},Y||p&&Z,t.createElement(Nf,{iconData:z,iconStyle:Cf,disabled:C.isActive()&&v,translator:l,keyboard:k})),t.createElement(L,{item:!0,xs:!0,minWidth:0,justifyContent:u?"flex-end":"flex-start",className:g.listBoxHeader},t.createElement(qf,{variant:"h6",noWrap:!0,ref:j,title:s.title,styles:c},s.title)),t.createElement(L,{item:!0,display:"flex"},X))}const Wf="ListBoxInline",Bf={listBoxHeader:"".concat(Wf,"-listBoxHeader"),screenReaderOnly:"".concat(Wf,"-screenReaderOnly"),listboxWrapper:"".concat(Wf,"-listboxWrapper")},Hf=na(L,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return te(te({},o.background),{},{["& .".concat(Bf.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Bf.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Bf.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 $f=t.memo((function(e){var o,a,l,u;let{options:d,layout:p}=e;const{app:h,direction:m,frequencyMode:g,checkboxes:b,search:v=!0,focusSearch:y=!1,rangeSelect:S=!0,model:x,selections:w,update:E,fetchStart:_,postProcessPages:C,calculatePagesHeight:k,showGray:q=!0,scrollState:R,renderedCallback:I,toolbar:O=!0,isPopover:D=!1,showLock:T=!1,components:M,selectDisabled:A=(()=>!1),disablePortal:P=!0}=d,N=Bi(),{translator:j,keyboardNavigation:z,themeApi:F,constraints:W}=s(ga),{checkboxes:B=b}=p||{},H=$d({app:h,themeApi:F,theme:N,components:M,checkboxes:B}),$=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==h?void 0:h.layout}),U=f(),V=f(),[G,K]=Oa(),[Z,J]=n(!1),[X,Y]=n(!1),Q=f(!1),[ee,ne]=n({down:0,up:0,scrollPosition:""}),re=e=>ne((t=>te(te({},t),e))),[oe,ie]=n({start:0,stop:0}),[ae]=Zc(h),[se]=n((()=>eu({selectDisabled:A}))),le=Vs({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:h,appSelections:ae})),[h,ae]),ue=null==p?void 0:p.qListObject.qDimensionInfo.qError,de=ue&&W.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:fe,handleOnMouseEnter:pe,handleOnMouseLeave:he,globalKeyDown:me}=i((()=>wf({keyboard:le,hovering:Q,updateKeyScroll:re,currentScrollIndex:oe,constraints:W,isModal:ce,selections:w})),[le,Q,re,U,oe,h,ae,W,ce]);r((()=>(document.addEventListener("keydown",me),()=>{document.removeEventListener("keydown",me)})),[me]),r((()=>{!0===v&&Y(!0);const e=()=>{J(!0)},t=()=>{J(!1),"toggle"===v&&Y(!1)};return D&&(w.isActive()||(w.on("activated",e),w.on("deactivated",t)),J(D)),O&&w&&(w.isModal()||(w.on("activated",e),w.on("deactivated",t)),J(D||w.isActive())),()=>{w&&w.removeListener&&(w.removeListener("activated",e),w.removeListener("deactivated",t))}}),[O,w,D]);const{wildCardSearch:ge,searchEnabled:be,autoConfirm:ve=!1,layoutOptions:ye={}}=null!=p?p:{},Se=null==p||null===(o=p.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked,xe=!1!==be&&"toggle"===v&&!Se,we=(null==p||null===(a=p.title)||void 0===a?void 0:a.length)&&!1!==(null==p?void 0:p.showTitle),Ee=O&&!we&&!D,_e=O&&we||D,Ce="rtl"===m;if(!x||!p||!j)return null;const Le=!0===v||"toggle"===v&&X&&!1!==be,ke=null!==(l=ye.dense)&&void 0!==l&&l,qe=()=>{Y(!X)},Re=()=>{"toggle"===v?qe():V.current.focus()},Ie=Le&&("toggle"===v||y),Oe="grid"===(null==ye?void 0:ye.dataLayout),De=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=Ol({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:ke,height:null===(u=U.current)||void 0===u?void 0:u.clientHeight,layoutOrder:ye.layoutOrder});ue&&(null==I||I());const Te=_e?ps+as:0,Me=t.createElement(Ff,{app:h,showSearchIcon:xe,onShowSearch:qe,isPopover:D,showToolbar:Z,isDirectQuery:$,autoConfirm:ve,showDetachedToolbarOnly:Ee,layout:p,translator:j,styles:H,isRtl:Ce,showLock:T,constraints:W,classes:Bf,containerRect:K,containerRef:U,model:x,selectionState:se,selections:w,keyboard:le,disablePortal:P});return t.createElement(t.Fragment,null,Ee&&Me,t.createElement(Hf,{className:"listbox-container",container:!0,tabIndex:le.enabled?-1:void 0,direction:"column",gap:0,containerPadding:De,styles:H,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:fe,onMouseEnter:pe,onMouseLeave:he,ref:e=>{U.current=e,G(e)},isGridMode:Oe,"aria-label":le.active?j.get("Listbox.ScreenReaderInstructions"):""},_e&&Me,t.createElement(L,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Te,role:"region","aria-label":j.get("Listbox.ResultFilterLabel")},t.createElement(L,{item:!0},t.createElement(Kc,{ref:V,selections:w,selectionState:se,model:x,dense:ke,keyboard:le,visible:Le,search:v,autoFocus:Ie,beginSelectionOnFocus:!D,wildCardSearch:ge,searchEnabled:be,direction:m,hide:xe&&qe,styles:H})),t.createElement(L,{item:!0,xs:!0,className:Bf.listboxWrapper},ue?t.createElement(_f,{text:de}):t.createElement(xf,null,(e=>{let{height:n,width:r}=e;return t.createElement(hc,{model:x,app:h,constraints:W,layout:p,selections:w,selectionState:se,direction:m,frequencyMode:g,rangeSelect:S,checkboxes:B,height:n,width:r,update:E,fetchStart:_,postProcessPages:C,calculatePagesHeight:k,keyboard:le,showGray:q,scrollState:R,keyScroll:{state:ee,reset:()=>ne({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:oe,set:ie},renderedCallback:I,onCtrlF:Re,isModal:ce,styles:H})}))))))}));function Uf(e){let{options:n={}}=e;const{model:r}=n,[o]=Ra(r);return t.createElement($f,{options:n,layout:o})}function Vf(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=wa(),{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 Gf={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 Kf(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 Zf=["__DO_NOT_USE__"],Jf=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 te(te(te({},ne(e,Zf)),n),t)},Xf=o(((e,o)=>{let{app:s,fieldIdentifier:l,qId:c,stateName:u,element:d,initialOptions:p,renderedCallback:h}=e;const[m,g]=n(p),{isExistingObject:b,hasExternalSelectionsApi:v}=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:Kf(m.frequencyMode)});const[y,S]=n(0);r((()=>{if(y)throw new Error("Source or selection Api can not change after a listbox has been mounted");S(y+1)}),[b,v]);const x=b?Vf({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),[p,h]=n(),[m,g]=n(),b=null!==(t=s.title)&&void 0!==t?t:m;let{histogram:v=!1,frequencyMode:y="N"}=s;l&&l.failedToFetchFieldDef&&(v=!1,y="N"),r((()=>{const e=v||"N"!==y;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:w,properties:E={}}=s,_={dense:S};"horizontal"===w&&(_.dataLayout="grid",_.layoutOrder="column",_.maxVisibleColumns={auto:!0},_.maxVisibleRows={auto:!1,maxRows:1});const C=f();C.current||(C.current=df());const L=Ge(!0,{},Gf,{qInfo:{qId:C.current},qListObjectDef:{qStateName:a,qFrequencyMode:v&&"N"===y?"V":y},histogram:v,checkboxes:x,layoutOptions:_,title:b});let k;if(Ge(!0,L,E),i.qLibraryId?(L.qListObjectDef.qLibraryId=i.qLibraryId,k=i.qLibraryId):(L.qListObjectDef.qDef.qFieldDefs=[i],k=i),"P"!==y&&v)if(null!=l&&l.multiFieldDim)L.frequencyMax="fetch";else{const e=i.qLibraryId?l:k;L.frequencyMax={qValueExpression:cc(e)}}const[q]=Ea(L,u?null:o,k,a);return r((()=>{q&&h(q)}),[q]),p}({app:s,fieldIdentifier:l,stateName:u,options:m}),w=f(d),E=v?m.selectionsApi:Qc(s,x,[w,".njs-action-toolbar-more",".njs-action-toolbar-popover"],m)[0],_=i((()=>te(te({},m),{},{selections:E,model:x,app:s,renderedCallback:h})),[m,E,x,s]);return a(o,(()=>({setOptions:e=>g(e)})),[]),E&&x?t.createElement(Uf,{options:_}):null}));const Yf={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function Qf(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(Ud,{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 ep(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function tp(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 np=e=>({qDef:{qFieldDefs:[e]}}),rp=e=>({qDef:{qDef:e}});function op(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?np(e):te(te({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||df(),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),ep(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 tp(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?rp(e):te(te({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||df(),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),ep(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];tp(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 ip=e=>({qDef:{qFieldDefs:[e]}});function ap(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?ip(e):te(te({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||df(),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 sp=e=>({qDef:{qFieldDefs:[e]}}),lp=e=>{let t;return t="string"==typeof e?Ge(!0,{},Gf,{qListObjectDef:sp(e)}):e.qListObjectDef?Ge(!0,{},Gf,e):Ge(!0,{},Gf,{qListObjectDef:e}),t};function cp(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=lp(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||df(),!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 up(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 dp(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")?ap:e.match("/qChildListDef")?cp:op}(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"===up(t)?await d.addMeasure(t):await d.addDimension(t)}}var fp={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 pp={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 hp=2**53-1;function mp(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function gp(e,t){const n=Ge(!0,{},t,e);return fp.getValue(n,"qOtherTotalSpec.qOtherCounted")||fp.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),fp.getValue(n,"qOtherTotalSpec.qOtherLimit")||fp.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function bp(e,t){return Ge(!0,{},t,e)}function vp(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var yp={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===fp.getValue(e,t)&&fp.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:mp,importCommonProperties:function(e,t,n){const r="masterobject"===fp.getValue(t,"properties.qInfo.qType")?"masterobject":fp.getValue(n,"qInfo.qType");fp.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:gp,createDefaultMeasure:bp,resolveValue:vp,getHypercubePath:function(e){const t=fp.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?(pp.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,pp.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=Ge(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?fp.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||mp(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ge(!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=vp(i.max,r.dimensions.length,hp),s=vp(i.min,r.dimensions.length,0);return{maxDimensions:vp(o.max,a,hp),minDimensions:vp(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(gp(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gp(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gp(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(gp(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gp(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(bp(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(bp(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(bp(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(bp(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(bp(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=fp.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=fp.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var Sp={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=fp.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();pp.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&&(yp.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!fp.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=yp.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=fp.getValue(n,i||"").qHyperCubeDef,c=fp.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p}=yp.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=yp.getDefaultDimension(),defaultMeasure:m=yp.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,yp.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p})&&yp.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p,newHyperCubeDef:c}),yp.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),yp.addDefaultMeasures({exportFormat:t,maxMeasures:f,minMeasures:p,newHyperCubeDef:c,defaultMeasure:m}),yp.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),yp.copyPropertyIfExist("qMaxStackedCells",l,c),yp.copyPropertyIfExist("qNoOfLeftDims",l,c),yp.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),yp.copyPropertyOrSetDefault("qMode",l,c,"S"),yp.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),yp.copyPropertyOrSetDefault("qSortbyYValue",l,c),yp.copyPropertyOrSetDefault("qIndentMode",l,c),yp.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),yp.importCommonProperties(s,t,n),yp.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),yp.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const xp=e=>fp.getValue(e,"data.targets.0.propertyPath"),wp=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Sp.exportProperties})(xp(e))},Ep=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Sp.importProperties})(xp(e))},_p=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=wp(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,f=Ep(d);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:c({propertyTree:s,hypercubePath:yp.getHypercubePath(l),viewDataMode:a}),initialProperties:te({qInfo:{qType:o},visualization:o},fp.getValue(d,"properties.initial",{})),dataDefinition:fp.getValue(d,"data.targets.0.",{}),hypercubePath:yp.getHypercubePath(d),viewDataMode:a})},Cp={hypercube:Sp};var Lp=e=>Ta((e=>te(te({},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 kp(e){let{d:n}=e;const r=Bi();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(E,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement($,null,n.missing||n.error?t.createElement(Lp,{style:a}):t.createElement(Xa,{style:a})));return t.createElement(L,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(L,{item:!0},s),t.createElement(L,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(E,{noWrap:!0,component:"p"},t.createElement(E,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(E,{component:"span"}," "),t.createElement(E,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function qp(e){let{data:n}=e;const r=Bi();return t.createElement(L,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(kp,{d:e,key:n})));return o.length>0&&t.createElement(L,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(E,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function Rp(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(L,{item:!0},t.createElement(Lp,{style:{fontSize:"38px"}})),t.createElement(L,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(L,{item:!0},t.createElement(E,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(qp,{data:o}))}const Ip=["size"],Op="Progress",Dp={root:"".concat(Op,"-root"),front:"".concat(Op,"-front"),back:"".concat(Op,"-back")},Tp=na("div")((e=>{let{theme:t}=e;return{["&.".concat(Dp.root)]:{position:"relative",display:"inline-block"},["& .".concat(Dp.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(Dp.back)]:{color:t.palette.divider}}})),Mp={small:16,medium:32,large:64,xlarge:128};function Ap(e){let{size:n="medium"}=e,r=ne(e,Ip);const o=Mp[n];return t.createElement(Tp,{className:Dp.root},t.createElement(H,Q({variant:"determinate",value:100,className:Dp.back,size:o,thickness:3},r)),t.createElement(H,Q({variant:"indeterminate",disableShrink:!0,className:Dp.front,size:o,thickness:3},r)))}const Pp=["cancel","translator"],Np=["retry","translator"],jp={stripes:"".concat("LongRunningQuery","-stripes")},zp=na(L)((()=>({["& .".concat(jp.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 Fp(e){let{cancel:n,translator:r}=e,o=ne(e,Pp);return t.createElement(t.Fragment,null,t.createElement(zp,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(L,{item:!0},t.createElement(Ap,null)),t.createElement(L,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(L,Q({item:!0},o),t.createElement(W,{variant:"contained",onClick:n},r.get("Cancel"))))}function Wp(e){let{retry:n,translator:r}=e,o=ne(e,Np);return t.createElement(t.Fragment,null,t.createElement(L,{item:!0},t.createElement(Lp,{style:{fontSize:"38px"}})),t.createElement(L,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(L,{item:!0},t.createElement(W,Q({variant:"contained",onClick:n},o),r.get("Retry"))))}function Bp(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=s(ga);return t.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:jp.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(Fp,{cancel:o.cancel,translator:i,className:jp.cancel}),r&&t.createElement(Wp,{retry:o.retry,translator:i,className:jp.retry}))}function Hp(){return t.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(Ap,{size:"large"}))}const $p="Header",Up={containerStyle:"".concat($p,"-containerStyle"),containerTitleStyle:"".concat($p,"-containerTitleStyle")},Vp=na(L)((e=>{let{theme:t}=e;return{["&.".concat(Up.containerStyle)]:{flexGrow:0},["&.".concat(Up.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Gp="njs-cell-title",Kp="njs-cell-sub-title";function Zp(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,f=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[p,h]=n([]);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{h([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]);const m=[Up.containerStyle,...u||d?[Up.containerTitleStyle]:[]],g=s||f,b=t.createElement(Bc,{show:!1,selections:{show:f,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:p,popover:{show:g,anchorEl:a},focusHandler:l,layout:o});return t.createElement(Vp,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},t.createElement(L,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(L,{container:!0,wrap:"nowrap",direction:"column"},u&&t.createElement(k,{title:o.title},t.createElement(E,{variant:"h6",noWrap:!0,className:Gp,style:c.main},o.title)),d&&t.createElement(k,{title:o.subtitle},t.createElement(E,{variant:"body2",noWrap:!0,className:Kp,style:c.subTitle},o.subtitle)))),t.createElement(L,{item:!0},b))}const Jp="condition",Xp="search",Yp="clear_selection",Qp="matches_exactly",eh="starts_with",th="ends_with",nh="beginning_of_word",rh="general",oh="fixed_value",ih=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude"),r=e.filter((e=>!1!==e.showInFooter));return r.map((e=>{var r;let o="";switch(e.type){case Xp:o+=(e=>{var t,n,r;let o="",i="";switch(null===(t=e.options)||void 0===t?void 0:t.mode){case nh:o="*^",i="*";break;case th:o="*";break;case eh:i="*";break;case Qp:break;default:o="*",i="*"}const a=null!==(n=null===(r=e.options.values)||void 0===r?void 0:r[0])&&void 0!==n?n:"";return""!==a?'"'.concat(o).concat(a).concat(i,'"'):""})(e);break;case Jp:o+=(e=>{var t,n,r,o,i,a,s;const{options:l}=e,c=(null==l?void 0:l.mode)===rh,u=(null==l||null===(t=l.modifier)||void 0===t?void 0:t.type)===oh,d=null!=l&&null!==(n=l.modifier)&&void 0!==n&&n.operator?l.modifier.operator.split(" "):[];if(0===d.length||!u&&(null===(r=l.firstValue)||void 0===r||!r.aggregator||null===(o=l.firstValue)||void 0===o||!o.field)||u&&(null===(i=l.firstValue)||void 0===i||!i.fixedValue)||c&&(null===(a=l.conditionField)||void 0===a||!a.aggregator||null===(s=l.conditionField)||void 0===s||!s.field))return"";let f,p,h="=";var m,g,b;if(c&&u)f="".concat(null===(m=l.conditionField)||void 0===m?void 0:m.aggregator,"(").concat(lc(null===(g=l.conditionField)||void 0===g?void 0:g.field),")"),p="".concat(null===(b=l.firstValue)||void 0===b?void 0:b.fixedValue);else if(!c&&u){var v;f="",p="".concat(null===(v=l.firstValue)||void 0===v?void 0:v.fixedValue),h=""}else if(c||u){var y,S,x,w;f="".concat(null===(y=l.conditionField)||void 0===y?void 0:y.aggregator,"(").concat(lc(null===(S=l.conditionField)||void 0===S?void 0:S.field),")"),p="".concat(null===(x=l.firstValue)||void 0===x?void 0:x.aggregator,"(").concat(lc(null===(w=l.firstValue)||void 0===w?void 0:w.field),")")}else{var E,_;f="".concat(lc(e.field)),p="".concat(null===(E=l.firstValue)||void 0===E?void 0:E.aggregator,"(total ").concat(lc(null===(_=l.firstValue)||void 0===_?void 0:_.field),")")}const C="".concat(h).concat(f).concat(d[0]).concat(p);let L="";if(d.length>1){var k,q,R;if(!u&&(null===(k=l.secondValue)||void 0===k||!k.aggregator||null===(q=l.secondValue)||void 0===q||!q.field)||u&&(null===(R=l.secondValue)||void 0===R||!R.fixedValue))return"";let e,t;var I;if(c&&u)e="".concat(null===(I=l.secondValue)||void 0===I?void 0:I.fixedValue),t=" and ".concat(f);else if(!c&&u){var O;e="".concat(null===(O=l.secondValue)||void 0===O?void 0:O.fixedValue),t=""}else if(c||u){var D,T;e="".concat(null===(D=l.secondValue)||void 0===D?void 0:D.aggregator,"(").concat(lc(null===(T=l.secondValue)||void 0===T?void 0:T.field),")"),t=" and ".concat(f)}else{var M,A;e="".concat(null===(M=l.secondValue)||void 0===M?void 0:M.aggregator,"(total ").concat(lc(null===(A=l.secondValue)||void 0===A?void 0:A.field),")"),t=" and ".concat(f)}L="".concat(t).concat(d[1]).concat(e)}return'"'.concat(C).concat(L,'"')})(e);break;case Yp:o+=t.get("Object.FilterLabel.All");break;default:o+=null!==(r=e.options)&&void 0!==r&&r.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==o&&(o=o.replace(/^"|"$/g,""),e.exclude&&(o="".concat(n," ").concat(o))),{field:e.field,label:o}})).filter((e=>""!==e.label))},ah=(e,t)=>ih(e,t).map((e=>"".concat(e.field,": ").concat(e.label))).join("; ");var sh=e=>Ta((e=>te(te({},e),{},{shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function lh(e){let{styles:n,children:r}=e;return t.createElement(E,{noWrap:!0,variant:"body2",style:te(te({},n),{},{fontStyle:"italic"})},r)}function ch(e){var n;let{layout:r,translator:o,filtersFootnoteString:i,footerStyle:a}=e;const s=ih(null!==(n=null==r?void 0:r.filters)&&void 0!==n?n:[],o),l={color:null==a?void 0:a.color,fontFamily:null==a?void 0:a.fontFamily,fontSize:null==a?void 0:a.fontSize,fontWeight:null==a?void 0:a.fontWeight};return t.createElement(k,{title:i},t.createElement(L,{container:!0,wrap:"nowrap",sx:{backgroundColor:null==a?void 0:a.backgroundColor,padding:null==a?void 0:a.padding,borderTop:null==a?void 0:a.borderTop},"data-testid":"filters-footnote"},t.createElement(L,{item:!0,display:"flex"},t.createElement(sh,{style:{fontSize:"12px",color:a.color,margin:"auto"}}),t.createElement(lh,{styles:te(te({},l),{},{marginLeft:"2px"})},o.get("Object.FiltersApplied")," ")),t.createElement(L,{item:!0,display:"flex"},s.map((e=>t.createElement(L,{container:!0,wrap:"nowrap",key:"".concat(e.field,"-").concat(e.label)},t.createElement(lh,{styles:te(te({},l),{},{fontWeight:"bold"})},"".concat(e.field,":")),t.createElement(lh,{styles:l}," ",e.label," ")))))))}const uh={itemStyle:"".concat("Footer","-itemStyle")},dh=na(L)((()=>({["& .".concat(uh.itemStyle)]:{minWidth:0,width:"100%"}}))),fh="njs-cell-footer";function ph(e){var n,r,o;let{layout:i,titleStyles:a={},translator:s,flags:l,isCardTheme:c}=e;const u=a.footer,d=(null==i||null===(n=i.filters)||void 0===n?void 0:n.length)>0&&(null==i||null===(r=i.qHyperCube)||void 0===r||null===(r=r.qMeasureInfo)||void 0===r?void 0:r.length)>0,f=ah(null!==(o=null==i?void 0:i.filters)&&void 0!==o?o:[],s),p=!(null!=i&&i.footnote)&&d&&f,h=null==l?void 0:l.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),m=c?"1px":"6px";return i&&i.showTitles&&(i.footnote||p)?t.createElement(dh,{container:!0},t.createElement(L,{item:!0,className:uh.itemStyle,"data-testid":fh,sx:{paddingTop:e=>h?m:e.spacing(1)}},i.footnote&&t.createElement(k,{title:i.footnote},t.createElement(E,{noWrap:!0,variant:"body2",className:fh,style:u},i.footnote)),p&&t.createElement(ch,{layout:i,translator:s,filtersFootnoteString:f,footerStyle:u}))):null}class hh{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 mh="njs-viz";function gh(e){let{sn:o,snOptions:i,snPlugins:a,layout:l,appLayout:u,halo:d}=e;const{component:f}=o,{theme:p,language:h,constraints:m,interactions:g,keyboardNavigation:b}=s(ga),[v]=n((()=>new hh)),[y,S]=n(!1),[x,w]=n(0),[E,_,C]=Oa(),[L,k]=n(null),q=c((e=>{e&&k(e)}),[]);return r((()=>{if(L)return f.created({options:i}),f.mounted(L),S(!0),()=>{v.stop(),f.willUnmount()}}),[L,f]),r((()=>{y&&L&&_&&(!f.isHooked&&l&&l.qSelectionInfo&&l.qSelectionInfo.qInSelections||v.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(f.render({layout:l,options:i,plugins:a,embed:d.public.nebbie,context:te({constraints:m,interactions:g,theme:d.public.theme,appLayout:u,keyboardNavigation:b},f.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),w(x+1))}))})))}),[_,i,a,L,C,l,u,p,h,m,g,y,b]),t.createElement("div",{ref:E,"data-render-count":x,style:{position:"relative",height:"100%"},className:mh},t.createElement("div",{ref:q,style:{position:"absolute",width:"100%",height:"100%"}}))}const bh={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"},vh=e=>{let{layout:t,theme:n,app:r,themeName:o,disableThemeBorder:a}=e;const s=i((()=>{if(t&&n){const o=t.components?t.components.find((e=>"general"===e.key)):null,i=(e=t.visualization,bh[e.toLowerCase()]?bh[e.toLowerCase()]:e),s={main:Wd(o,"main",n,i),footer:Wd(o,"footer",n,i),subTitle:Wd(o,"subTitle",n,i)},l=zd(o,n,i),c=jd(o,r),u=function(e,t,n,r){const o=Md(null==e?void 0:e.borderColor,"","borderColor",t,n);let i=null==e?void 0:e.borderWidth;return!i&&!r&&(i=Td("","borderWidth",t,n)),i&&o?"".concat(i," solid ").concat(o):void 0}(o,n,i,a),d=function(e,t,n){return(null==e?void 0:e.borderRadius)||Td("","borderRadius",t,n)}(o,n,i);return{titleStyles:s,bgColor:l,bgImage:c,border:u,borderRadius:d,boxShadow:Fd(o,n,i)}}var e;return{}}),[t,n,r,o,a]);return s};class yh extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const Sh=["action-button","sn-nav-menu"],xh=["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"],wh=e=>{let{layout:t,isError:n,isCardTheme:r,titleStyles:o,translator:i}=e;const a=(e=>{let{isCardTheme:t,layout:n,isError:r}=e;const o=null==n?void 0:n.visualization;return!!t&&(!!r||-1===xh.indexOf(o)&&!(!(null==n?void 0:n.showTitles)&&-1!==Sh.indexOf(o)))})({isCardTheme:r,layout:t,isError:n});if(r){var s,l,c;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||null===(s=t.filters)||void 0===s?void 0:s.length)>0&&(null==t||null===(l=t.qHyperCube)||void 0===l||null===(l=l.qMeasureInfo)||void 0===l?void 0:l.length)>0,u=ah(null!==(c=null==t?void 0:t.filters)&&void 0!==c?c:[],i),d=!(null!=t&&t.footnote)&&r&&u,f=(null==t?void 0:t.showTitles)&&(!(null==t||!t.footnote)||d);let p;return e&&a&&(o.main.padding="10px 10px 0"),n&&a&&(o.subTitle.padding=e?"0 10px":"10px 10px 0"),f&&(o.footer.borderTop="1px solid #d9d9d9",o.footer.padding="6px 10px"),a&&(p="".concat(e||n?"0":"10px"," 10px ").concat(f?"0":"5px")),p}},Eh="njs-cell",_h="njs-cell-body";const Ch=(e,t)=>{switch(t.type){case"LOADING":return te(te({},e),{},{loading:!0});case"LOADED":return te(te({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return te(te({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return te(te({},e),{},{longRunningQuery:!0});case"ERROR":return te(te({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Lh(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(Hp,null):null}const kh=e=>!e.qError||7005===e.qError.qErrorCode,qh=(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}})),Rh=e=>e&&(Array.isArray(e)?e:[e])||[],Ih=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),s=qh(o,Rh(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=qh(i,Rh(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:s,reqMeasErrors:l}},Oh=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(),f=u.measures.min(),p=u.resolveLayout(n),h=Rh(p.qDimensionInfo||p.qItems).filter(kh),m=Rh(p.qMeasureInfo).filter(kh);if(o+=d,i+=f,(h.length<d||m.length<f)&&(r=!0),p.qError){a=!0,s=7005===p.qError.qErrorCode;const t=s&&p.qCalcCondMsg?p.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 f=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=f||await r.getProperties();f=n;const o=Ih(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const p=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[p,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),b=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],v=l?c:b;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:v}]};function Dh(){return new ce}const Th=o(((e,o)=>{var i,c;let{halo:u,model:d,initialSnOptions:p,initialSnPlugins:h,initialError:m,onMount:g,currentId:b,emitter:v,navigation:y,onError:S}=e;const{app:x,types:w}=u,{nebbie:E}=u.public,{theme:_,translator:C,language:k,keyboardNavigation:R,externalFocusManagement:I,disableCellPadding:O=!1}=s(ga),[D]=n(v||Dh),T=Bi(),[M,A,P]=Oa(),[N,j]=l(Ch,{loading:!1,loaded:!1,longRunningQuery:!1,error:(z=m)?{title:z.message}:null,sn:null,visualization:null});var z;const[F,W]=n(d),[B,{validating:H,canCancel:$,canRetry:U},V]=Ra(F),[G]=Ia(x),[K,Z,J]=Oa(),[X,Y]=n(p),[Q,ee]=n(h),ne="njs-cell-".concat(b),[re]=Qc(x,F,["#".concat(ne),".njs-action-toolbar-popover"]),[oe,ie]=n(!1),ae=f({enter:null,leave:null}),{titleStyles:se,bgColor:le,bgImage:ce,border:ue,borderRadius:de,boxShadow:fe}=vh({layout:B,theme:u.public.theme,app:u.app,themeName:_,disableThemeBorder:null==X?void 0:X.disableThemeBorder}),pe=f({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{Jc(pe.current),pe.current.blurCallback=e=>{pe.current.onBlurHandler?pe.current.onBlurHandler(e):(u.root.toggleFocusOfCells(),e&&J&&J.focus())},pe.current.refocusContent=()=>{N.sn.component&&"function"==typeof N.sn.component.focus&&N.sn.component.focus()}}),[]);r((()=>{if(m)return void g();if(!G||!B)return;if(N.visualization===B.visualization&&N.sn)return void(async e=>{const[t,n]=await Oh(C,B,e.generator.qae.data,F);j(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:N.sn,layout:B,model:F})})(N.sn);const e=w.getSupportedVersion(B.visualization,B.version);return(async(e,t)=>{j({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:f}=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}),p=e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,navigation:f});p&&(t({type:"LOADED",sn:p,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:j,types:w,visualization:e,version:t,model:F,app:x,selections:re,nebbie:E,focusHandler:pe.current,emitter:D,onMount:g,navigation:y})})(B.visualization,e),()=>{}}),[w,N.sn,F,re,B,G,k]),r((()=>{if(!H)return;const e=setTimeout((()=>j({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[H]),a(o,(()=>({getQae:()=>N.sn.generator.qae,getExtensionDefinition:()=>N.sn.generator.definition.ext,support(e,t,n){if(B&&N.loaded&&!N.error){var r;const o=t||(null===(r=N.sn.generator.definition.ext)||void 0===r?void 0:r.support);if(o)return function(e,t,n){const r=t[e];return"function"==typeof r?r.call(null,n):"boolean"==typeof r&&r}(e,o,n||B)}return!1},toggleFocus(e){"function"==typeof N.sn.component.focus&&(e?N.sn.component.focus():N.sn.component.blur())},setOnBlurHandler(e){pe.current.onBlurHandler=e},setSnOptions:Y,setSnPlugins:ee,setModel:W,getImperativeHandle(){var e;return null!==(e=N.sn)&&void 0!==e&&e.component&&"function"==typeof N.sn.component.getImperativeHandle?N.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=A;let n=JSON.parse(JSON.stringify(B));return"function"==typeof N.sn.component.setSnapshotData&&(n=await N.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:C.language(),theme:T.name,appLayout:G,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof u.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return u.config.snapshot.capture(e)}})),[N.sn,Z,A,B,T.name,G]);let he=null;if(N.loading&&!N.longRunningQuery)he=t.createElement(Lh,null);else if(N.error){if(S){S(N.error.errorObject?N.error.errorObject:new yh(N.error.title))}he=t.createElement(Rp,N.error)}else N.loaded&&(he=t.createElement(gh,{key:B.visualization,sn:N.sn,halo:u,snOptions:X,snPlugins:Q,layout:B,appLayout:G}));const me=!(null===(i=u.public.theme)||void 0===i||!i.getStyle("","","_cards")),ge=null===(c=u.public.galaxy)||void 0===c?void 0:c.flags;let be,ve;return O?(be=!1,ve=void 0):null!=ge&&ge.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(be=!1,ve=wh({layout:B,isError:N.error,isCardTheme:me,titleStyles:se,translator:C})):(be=!0,ve=void 0),t.createElement(q,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:le||"unset",backgroundImage:ce&&ce.url?"url(".concat(ce.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:ce&&ce.size,backgroundPosition:ce&&ce.pos,border:ue,borderRadius:de,boxShadow:fe,boxSizing:"border-box"},elevation:0,square:!0,className:Eh,ref:M,id:ne,onMouseEnter:()=>{ae.current.leave&&clearTimeout(ae.current.leave),ae.enter||(ae.current.enter=setTimeout((()=>{ie(!0),ae.current.enter=null}),250))},onMouseLeave:()=>{ae.current.enter&&clearTimeout(ae.current.enter),ae.current.leave||(ae.current.leave=setTimeout((()=>{ie(!1),ae.current.leave=null}),750))}},t.createElement(L,{container:!0,direction:"column",gap:0,style:te(te({position:"relative",width:"100%",height:"100%"},be?{padding:T.spacing(1)}:{}),N.longRunningQuery?{opacity:"0.3"}:{})},P&&B&&N.sn&&t.createElement(Zp,{layout:B,sn:N.sn,anchorEl:P,hovering:oe,focusHandler:pe.current,titleStyles:se}," "),t.createElement(L,{tabIndex:R&&!I?0:-1,onKeyDown:R&&!I?e=>{["Enter"," ","Spacebar"].includes(e.key)&&u.root.toggleFocusOfCells(b)}:null,item:!0,xs:!0,className:_h,style:te({height:"100%"},ve?{padding:ve}:{}),ref:K},he),P&&B&&N.sn&&t.createElement(ph,{layout:B,titleStyles:se,translator:C,flags:ge,isCardTheme:me})),N.longRunningQuery&&t.createElement(Bp,{canCancel:$,canRetry:U,api:V}))}));function Mh(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Ah(){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 Mh(e)&&Mh(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(...Ah("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Ph(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 Nh=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},jh=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t);var zh,Fh={exports:{}};
|
|
16
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=f-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),S=g>0?e.substring(y,f):"";if(n=(t="-"===(e=e.substring(p,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%l,f=d.length,y=0;y<f;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<f-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+S}},bd({exports:{}});const kd=/,(?![^(]*\))/,Rd=/\s(?![^(]*\))/,qd=/^[0-9]+[a-zA-Z%]+?$/,Id=["none","inset","initial","inherit"],Od=e=>{if(!e)return;const t=e.split(Rd).filter((e=>!Id.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||qd.test(e))(t)||Id.includes(t.toLowerCase())?void 0:t;return n},Td=e=>e?e.split(kd).map((e=>e.trim())):[];function Dd(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function Pd(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:Dd(t,n,r,o)}const Md={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Ad={"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 Nd(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 jd(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=Nd(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=Ad[e.bgImage.position]),n}(e),i=function(e){var t;let n=Md.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=Md[r]),n}(e);return r?{url:r,pos:o,size:i}:void 0}}function zd(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):Pd(null==r?void 0:r.color,"","backgroundColor",t,n)}function Fd(e,t,n){var r,o;const i=Dd("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&Id.includes(e.toLowerCase()))return e.toLowerCase();const r=Td(e);if(1!==r.length)return e;let o=n;if(!o){const n=Td(t);if(1!==n.length)return e;o=Od(n[0])}if(!o)return e;const i=Od(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,Pd(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function Bd(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 Wd={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},Ud=["theme","selections"];function Hd(e){var t,n,r,o,i,a,s,l;let{app:c,themeApi:u,theme:d,components:f=[],checkboxes:p=!1}=e;const h=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;Ud.includes(n)&&(e[n]=t)})),e}(f),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,f=a(d)||l("content","color")||(null===(n=s.palette)||void 0===n?void 0:n.text.primary),p=!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),h=(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(h[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])||Wd[e];return{[e]:i,[o]:p?vu(i,f):f||(null===(n=s.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return ne(ne(ne(ne(ne({},m("selected")),m("alternative")),m("excluded")),m("selectedExcluded")),m("possible"))}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:h,checkboxes:p}),v=h.theme||{},y=g(null===(t=v.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?zd({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color),t):t}({themeApi:u,themeOverrides:v}),x=null!==(n=v.background)&&void 0!==n&&n.image?jd({bgImage:v.background.image},c):void 0,E=S||m("","backgroundColor")||d.palette.background.default,w=function(e,t){const n=gu(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(E,m),C=function(e){return vu("#fff",e("content","color"))}(m),_=(null===(r=v.header)||void 0===r?void 0:r.fontStyle)||{},L=(null===(o=v.content)||void 0===o?void 0:o.fontStyle)||{},k=(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:y,fontSize:(null===(i=v.header)||void 0===i?void 0:i.fontSize)||m("title.main","fontSize"),fontFamily:(null===(a=v.header)||void 0===a?void 0:a.fontFamily)||m("title.main","fontFamily"),fontWeight:k(_.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:_.underline?"underline":"initial",fontStyle:k(_.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:p?void 0:b.possible,color:b.possibleContrast||m("content","color"),fontSize:(null===(s=v.content)||void 0===s?void 0:s.fontSize)||m("content","fontSize"),fontFamily:(null===(l=v.content)||void 0===l?void 0:l.fontFamily)||m("content","fontFamily"),fontWeight:k(L.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:L.underline?"underline":"initial",fontStyle:k(L.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 $d(e){let{alignTo:o,anchorOrigin:i={vertical:"bottom",horizontal:"center"},transformOrigin:a={vertical:"top",horizontal:"center"},show:l,close:u,app:d,fieldName:p,stateName:h="$",autoFocus:m,components:g,checkboxes:b,selectDisabled:v=(()=>!1),sortCriteria:y=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:S="ltr"}=e;const x=Boolean(null==p?void 0:p.qLibraryId),E=l&&Boolean(o.current),[w,C]=n(0),_=Ui(),k=f(),[R]=Ca({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:h,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:y,qFieldDefs:x?void 0:[p]},qLibraryId:x?p.qLibraryId:void 0}},d,p,h),I=c((()=>{R.lock("/qListObjectDef")}),[R]),T=c((()=>{R.unlock("/qListObjectDef")}),[R]),{translator:D,themeApi:P,keyboardNavigation:M}=s(ba),A=f(),N=f(),[j]=Qc(d,R,N),[z]=Ia(R),[F]=n((()=>eu({selectDisabled:v}))),B=Vs({containerRef:N,enabled:M}),{checkboxes:W=b}=z||{},U=Hd({themeApi:P,theme:_,components:g,checkboxes:W});if(r((()=>{j&&E&&(j.isModal(R)||j.goModal("/qListObjectDef"))}),[j,E]),!R||!z||!D)return null;const H=!0===z.qListObject.qDimensionInfo.qLocked,$=(e,t)=>{const n="escapeKeyDown"!==t;j.noModal(n),u()},G=Sc({layout:z,model:R,translator:D,selectionState:F,selections:j}),V=nu(z);return t.createElement(O,{className:"listbox-container",open:E,onClose:$,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?$():void 0,direction:S},t.createElement(L,{container:!0,direction:"column",gap:0,ref:N},t.createElement(L,{item:!0,container:!0,style:{direction:S,padding:_.spacing(1)}},t.createElement(L,{item:!0},H?t.createElement(q,{onClick:T,disabled:!H,size:"large"},t.createElement(Aa,{title:D.get("Listbox.Unlock")})):t.createElement(q,{onClick:I,disabled:!V,size:"large"},t.createElement(ja,{title:D.get("Listbox.Lock")}))),t.createElement(L,{item:!0,xs:!0}),t.createElement(L,{item:!0},t.createElement(Wc,{layout:z,more:{enabled:!H,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:$,onCancel:()=>$(0,"escapeKeyDown")}}))),t.createElement(L,{item:!0,xs:!0},t.createElement("div",{ref:A}),t.createElement(L,{item:!0},t.createElement(Kc,{ref:k,popoverOpen:E,styles:U,visible:!0,model:R,listCount:w,selections:j,selectionState:F,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:B.focusSelection},autoFocus:null==m||m,direction:S})),t.createElement(mc,{model:R,app:d,layout:z,selections:j,selectionState:F,direction:S,onSetListCount:e=>C(e),onCtrlF:()=>{k.current.focus()},styles:U,keyboard:B}))))}function Gd(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:l=null,onClose:c=(()=>{})}=e;const{translator:u}=s(ba),d=l||f(),p=Ui(),[h,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!h)},b=()=>{m(!1),c()},v=r.selections[i];void 0===v.qTotal&&(v.qTotal=0);const y=v.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},S=(y.qSelected+y.qLocked)/v.qTotal,x=y.qAlternative/v.qTotal,E=(y.qExcluded+y.qLockedExcluded+y.qSelectedExcluded)/v.qTotal,C=y.qSelected+y.qSelectedExcluded+y.qLocked+y.qLockedExcluded,_=0===C&&0===v.qTotal;let k="";v.qTotal===C&&v.qTotal>1?k=u.get("CurrentSelections.All"):C>1&&v.qTotal?k=u.get("CurrentSelections.Of",[C,v.qTotal]):v.qSelectedFieldSelectionInfo&&(k=v.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(k="".concat(r.states[i],": ").concat(k));const R=[{color:p.palette.selected.main,ratio:S},{color:p.palette.selected.alternative,ratio:x},{color:p.palette.selected.excluded,ratio:E}];R.forEach(((e,t)=>{e.offset=t?R[t-1].offset+R[t-1].ratio:0}));let I=null,O=null,T=null,D=null;return l||(I=t.createElement(L,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:v.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"}},k)),v.qLocked?O=t.createElement(L,{item:!0},t.createElement(q,{size:"large"},t.createElement(Aa,null))):v.qOneAndOnlyOne||(O=t.createElement(L,{item:!0},t.createElement(q,{title:u.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(v.qField,r.states[i])},size:"large"},t.createElement(Ma,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===_&&R.map((e=>t.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),D=t.createElement(L,{container:!0,gap:1,ref:d,sx:{backgroundColor:p.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:p.palette.action.hover}},onClick:!1===a&&g||null},I,O,T,h&&t.createElement($d,{alignTo:d,show:h,close:b,app:o.model,fieldName:v.qField,stateName:r.states[i]}))),l?t.createElement($d,{alignTo:d,show:!0,close:b,app:o.model,fieldName:v.qField,stateName:r.states[i]}):D}var Vd=e=>Pa((e=>ne(ne({},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 Kd={item:"".concat("MultiState","-item")},Jd=ra(L)((e=>{let{theme:t}=e;return{["&.".concat(Kd.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function Zd(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[l,c]=n(!!i),[u,d]=n(-1),[p,h]=n(i?i.current:null),m=i||f(),{translator:g}=s(ba),b=g.get("Selection.ClearAllStates"),v=()=>{d(-1),a()};let y=null;i||(y=t.createElement(t.Fragment,null,t.createElement(L,{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(L,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(L,{item:!0},t.createElement(q,{size:"large"},t.createElement(Vd,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(B,{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(_,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(Gd,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),x=t.createElement(O,{open:l,onClose:()=>{c(!1),a()},anchorEl:p,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},S),E=i?x:t.createElement(Jd,{container:!0,gap:0,className:Kd.item,onClick:e=>{e.currentTarget.contains(e.target)&&(h(e.currentTarget),m.current=e.currentTarget,c(!l))}},y,l&&x,u>-1&&t.createElement($d,{alignTo:m,show:u>-1,close:v,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}));return i&&u>-1?t.createElement($d,{alignTo:m,show:u>-1,close:v,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}):E}const Xd="More",Yd={item:"".concat(Xd,"-item"),badge:"".concat(Xd,"-badge")},Qd=ra(L)((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"},["& .".concat(Yd.badge)]:{padding:t.spacing(0,1)}}}));function ef(e){let{items:r=[],api:o}=e;const i=Ui(),[a,s]=n(!1),[l,c]=n(-1),[u,d]=n(null),p=f(),h=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(Zd,{field:r[l],api:o,moreAlignTo:p,onClose:h}):t.createElement(Gd,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:p,onClose:h})),t.createElement(Qd,{container:!0,gap:0,className:Yd.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),p.current=e.currentTarget,s(!a))}},t.createElement(L,{item:!0},t.createElement(_,{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(L,{item:!0},t.createElement(q,{size:"large"},t.createElement(Vd,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(_,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(Zd,{field:e,api:o}):t.createElement(Gd,{field:e,api:o}))))))),m)}const tf=120,nf=72;function rf(e){let{api:o,app:i}=e;const a=Ui(),[l]=La(i),[c]=Ia(l),[u,d]=n({items:[],more:[]}),{modalObjectStore:f}=s(ba).selectionStore,[p,h]=Ta(),[m,g]=n(0);return r((()=>{if(!h)return;const{width:e}=h,t=Math.floor(e)-nf,n=Math.floor(t/tf);g(n)}),[h]),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}=f.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(L,{ref:p,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},u.items.map((e=>t.createElement(L,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(tf,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(Zd,{field:e,api:o}):t.createElement(Gd,{field:e,api:o})))),u.more.length>0&&t.createElement(L,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(nf,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(ef,{items:u.more,api:o})))}var of=e=>Pa((e=>ne(ne({},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 af=e=>Pa((e=>ne(ne({},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 sf=(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 lf(e){let{api:o,app:i}=e;const{translator:a}=s(ba),[l]=function(e){const[t]=La(e),[o]=Ia(t),[i]=Oa(e),[a,s]=n(null);return r((()=>{i&&t&&o&&sf(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(L,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(L,{item:!0},t.createElement(q,{style:{marginRight:"8px"},disabled:!l||!l.canGoBack,title:a.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},t.createElement(of,null))),t.createElement(L,{item:!0},t.createElement(q,{style:{marginRight:"8px"},disabled:!l||!l.canGoForward,title:a.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},t.createElement(af,null))),t.createElement(L,{item:!0},t.createElement(q,{disabled:!l||!l.canClear,title:a.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},t.createElement(Rc,null))))}const cf=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function uf(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function df(){return cf.map(uf).join("")}function ff(e){let{app:n}=e;const r=Ui(),[o]=Jc(n);return o?t.createElement(L,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(L,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(lf,{api:o,app:n})),t.createElement(L,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(rf,{api:o,app:n}))):null}let pf;pf="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let hf=null,mf=null;const gf=pf.clearTimeout,bf=pf.setTimeout,vf=pf.cancelAnimationFrame||pf.mozCancelAnimationFrame||pf.webkitCancelAnimationFrame,yf=pf.requestAnimationFrame||pf.mozRequestAnimationFrame||pf.webkitRequestAnimationFrame;function Sf(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__&&hf(this.__resizeRAF__),this.__resizeRAF__=mf((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=pf.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==vf||null==yf?(hf=gf,mf=function(e){return bf(e,20)}):(hf=function([e,t]){vf(e),gf(t)},mf=function(e){const t=yf((function(){gf(n),e()})),n=bf((function(){vf(t),e()}),20);return[t,n]});class xf extends h{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,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},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=Sf(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:f,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},b={};let v=!1;return r||(0===d&&(v=!0),g.height=0,b.height=d,b.scaledHeight=f),o||(0===m&&(v=!0),g.width=0,b.width=m,b.scaledWidth=h),i&&(v=!1),p(c,{ref:this._setRef,style:{...g,...l},...u},!v&&e(b))}}function Ef(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 Hs.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(r){Zs(a)||Js(a)||Ys(e,t)}else{if(!(Xs(a)||Js(a)||Zs(a)))break}o();break;case Hs.ENTER:case Hs.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case Hs.ESCAPE:Ys(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 Hs.ARROW_UP:r({up:1});break;case Hs.ARROW_DOWN:r({down:1});break;case Hs.PAGE_UP:r({up:o.stop-o.start});break;case Hs.PAGE_DOWN:r({down:o.stop-o.start});break;case Hs.HOME:r({scrollPosition:s&&l?"overflowStart":"start"});break;case Hs.END:r({scrollPosition:s&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const wf=ra("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Cf(e){let{text:n}=e;const{translator:r}=s(ba);return t.createElement(wf,null,r.get(n))}const _f={fontSize:"12px"},Lf=ra(W)((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(os,"px")}}})),kf=ra(L,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return ne(ne({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),Rf=ra(w)((e=>{let{styles:t}=e;return ne(ne({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function qf(e){let{translator:n,toggleLock:r,keyboard:o,isLoading:i}=e;const a=n.get("SelectionToolbar.ClickToUnlock");return t.createElement(Lf,{title:a,tabIndex:o.enabled?0:-1,onClick:r,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:i},i?t.createElement(U,{size:16,variant:"indeterminate",color:"primary"}):t.createElement(Aa,{disableRipple:!0,style:_f}),!i&&t.createElement(w,{fontSize:"14px"},a))}var If=e=>Pa((e=>ne(ne({},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 Of=e=>Pa((e=>ne(ne({},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 Tf=e=>Pa((e=>ne(ne({},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 Df="H",Pf="C";var Mf={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:i,keyboard:a}=e;switch(t.qGrouping){case Df:return{icon:Of,tooltip:"Listbox.DrillDown",onClick:void 0};case Pf:{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?Tf:If,tooltip:"Listbox.Cyclic",onClick:e?s:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case Hs.SPACE:case Hs.ENTER:s();break;case Hs.TAB:{if(!a.enabled)return;let n;n=e.shiftKey?a.focusSelection():Js(t)||Zs(t),n||Ys(e,a)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const Af=I(B)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function Nf(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,f=r.get(l);return c?t.createElement(Af,{variant:"outlined",onClick:c,tabIndex:a.innerTabStops?0:-1,title:f,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:f,size:"large",style:ne(ne({},o),{},{padding:"".concat(os,"px")})})}const jf=500;let zf=0;function Ff(e){var o,i,a;let{layout:s,translator:l,styles:c,isRtl:u,showLock:d,showSearchIcon:p,constraints:h,onShowSearch:m,classes:g,containerRect:b,isPopover:v,showToolbar:y,showDetachedToolbarOnly:S,containerRef:x,model:E,selectionState:w,isDirectQuery:C,selections:_,keyboard:k,autoConfirm:R,app:I,disablePortal:O}=e;const[T,D]=n(S),[P,M]=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;M(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=f(null),z=Mf.createDimensionIconData({dimInfo:null==s||null===(a=s.qListObject)||void 0===a?void 0:a.qDimensionInfo,app:I,selections:_,isPopover:v,active:!(null!=h&&h.active),keyboard:k}),F=d&&P,B=!d&&P,W=p||B||z,U=ns-(W?os:0),H=u?ns-(W?os:0):rs,$=(p?is:0)+(B?is:0)+(z?is:0),G=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-zf<jf)return Promise.resolve();if(r)return()=>{};i(!0),zf=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:P,setLocked:M,settingLockedState:A,setSettingLockedState:N,model:E}),V=Sc({layout:s,model:E,translator:l,selectionState:w,isDirectQuery:C,selections:_}),K=P||!d?void 0:[{key:"lock",type:void 0,label:l.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Na,enabled:()=>!A&&!w.selectDisabled()&&nu(s),action:G}],J=null!=h&&h.active?t.createElement(Uc,{title:l.get("Listbox.Search"),size:"large",style:ne(ne({},_f),{},{padding:"".concat(os,"px")})}):t.createElement(q,{onClick:m,tabIndex:-1,title:l.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(Uc,{style:_f}));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,f=(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&&!f)}({containerRect:b,titleRef:j,iconsWidth:$,paddingLeft:U,paddingRight:H});D(S||e)}),[$,U,H,j.current,S,Object.entries(b||{}).sort().join(",")]);const Z=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:!v&&T,showToolbar:y,containerRef:x,isLocked:P,extraItems:K,listboxSelectionToolbarItems:V,selections:_,keyboard:k,autoConfirm:R,disablePortal:O}),X=t.createElement(Wc,ee({isRtl:u,layout:s},Z));if(S)return X;const Y=B?t.createElement(Aa,{size:"large",style:ne(ne({},_f),{},{padding:"".concat(os,"px")})}):void 0;return t.createElement(kf,{item:!0,container:!0,styles:c,isRtl:u,marginY:1,paddingLeft:"".concat(U,"px"),paddingRight:"".concat(H,"px"),className:"header-container"},F&&t.createElement(qf,{isLoading:A,translator:l,toggleLock:G,keyboard:k}),W&&t.createElement(L,{item:!0,container:!0,alignItems:"center",width:$,className:"header-action-container"},Y||p&&J,t.createElement(Nf,{iconData:z,iconStyle:_f,disabled:_.isActive()&&v,translator:l,keyboard:k})),t.createElement(L,{item:!0,xs:!0,minWidth:0,justifyContent:u?"flex-end":"flex-start",className:g.listBoxHeader},t.createElement(Rf,{variant:"h6",noWrap:!0,ref:j,title:s.title,styles:c},s.title)),t.createElement(L,{item:!0,display:"flex"},X))}const Bf="ListBoxInline",Wf={listBoxHeader:"".concat(Bf,"-listBoxHeader"),screenReaderOnly:"".concat(Bf,"-screenReaderOnly"),listboxWrapper:"".concat(Bf,"-listboxWrapper")},Uf=ra(L,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return ne(ne({},o.background),{},{["& .".concat(Wf.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Wf.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Wf.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 Hf=t.memo((function(e){var o,a,l,u;let{options:d,layout:p}=e;const{app:h,direction:m,frequencyMode:g,checkboxes:b,search:v=!0,focusSearch:y=!1,rangeSelect:S=!0,model:x,selections:E,update:w,fetchStart:C,postProcessPages:_,calculatePagesHeight:k,showGray:R=!0,scrollState:q,renderedCallback:I,toolbar:O=!0,isPopover:T=!1,showLock:D=!1,components:P,selectDisabled:M=(()=>!1),disablePortal:A=!0}=d,N=Ui(),{translator:j,keyboardNavigation:z,themeApi:F,constraints:B}=s(ba),{checkboxes:W=b}=p||{},U=Hd({app:h,themeApi:F,theme:N,components:P,checkboxes:W}),H=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==h?void 0:h.layout}),$=f(),G=f(),[V,K]=Ta(),[J,Z]=n(!1),[X,Y]=n(!1),Q=f(!1),[ee,te]=n({down:0,up:0,scrollPosition:""}),re=e=>te((t=>ne(ne({},t),e))),[oe,ie]=n({start:0,stop:0}),[ae]=Jc(h),[se]=n((()=>eu({selectDisabled:M}))),le=Vs({containerRef:$,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:h,appSelections:ae})),[h,ae]),ue=null==p?void 0:p.qListObject.qDimensionInfo.qError,de=ue&&B.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:fe,handleOnMouseEnter:pe,handleOnMouseLeave:he,globalKeyDown:me}=i((()=>Ef({keyboard:le,hovering:Q,updateKeyScroll:re,currentScrollIndex:oe,constraints:B,isModal:ce,selections:E})),[le,Q,re,$,oe,h,ae,B,ce]);r((()=>(document.addEventListener("keydown",me),()=>{document.removeEventListener("keydown",me)})),[me]),r((()=>{!0===v&&Y(!0);const e=()=>{Z(!0)},t=()=>{Z(!1),"toggle"===v&&Y(!1)};return T&&(E.isActive()||(E.on("activated",e),E.on("deactivated",t)),Z(T)),O&&E&&(E.isModal()||(E.on("activated",e),E.on("deactivated",t)),Z(T||E.isActive())),()=>{E&&E.removeListener&&(E.removeListener("activated",e),E.removeListener("deactivated",t))}}),[O,E,T]);const{wildCardSearch:ge,searchEnabled:be,autoConfirm:ve=!1,layoutOptions:ye={}}=null!=p?p:{},Se=null==p||null===(o=p.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked,xe=!1!==be&&"toggle"===v&&!Se,Ee=(null==p||null===(a=p.title)||void 0===a?void 0:a.length)&&!1!==(null==p?void 0:p.showTitle),we=O&&!Ee&&!T,Ce=O&&Ee||T,_e="rtl"===m;if(!x||!p||!j)return null;const Le=!0===v||"toggle"===v&&X&&!1!==be,ke=null!==(l=ye.dense)&&void 0!==l&&l,Re=()=>{Y(!X)},qe=()=>{"toggle"===v?Re():G.current.focus()},Ie=Le&&("toggle"===v||y),Oe="grid"===(null==ye?void 0:ye.dataLayout),Te=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=Tl({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:ke,height:null===(u=$.current)||void 0===u?void 0:u.clientHeight,layoutOrder:ye.layoutOrder});ue&&(null==I||I());const De=Ce?hs+ss:0,Pe=t.createElement(Ff,{app:h,showSearchIcon:xe,onShowSearch:Re,isPopover:T,showToolbar:J,isDirectQuery:H,autoConfirm:ve,showDetachedToolbarOnly:we,layout:p,translator:j,styles:U,isRtl:_e,showLock:D,constraints:B,classes:Wf,containerRect:K,containerRef:$,model:x,selectionState:se,selections:E,keyboard:le,disablePortal:A});return t.createElement(t.Fragment,null,we&&Pe,t.createElement(Uf,{className:"listbox-container",container:!0,tabIndex:le.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Te,styles:U,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:fe,onMouseEnter:pe,onMouseLeave:he,ref:e=>{$.current=e,V(e)},isGridMode:Oe,"aria-label":le.active?j.get("Listbox.ScreenReaderInstructions"):""},Ce&&Pe,t.createElement(L,{item:!0,container:!0,direction:"column",height:"100%",minHeight:De,role:"region","aria-label":j.get("Listbox.ResultFilterLabel")},t.createElement(L,{item:!0},t.createElement(Kc,{ref:G,selections:E,selectionState:se,model:x,dense:ke,keyboard:le,visible:Le,search:v,autoFocus:Ie,beginSelectionOnFocus:!T,wildCardSearch:ge,searchEnabled:be,direction:m,hide:xe&&Re,styles:U})),t.createElement(L,{item:!0,xs:!0,className:Wf.listboxWrapper},ue?t.createElement(Cf,{text:de}):t.createElement(xf,null,(e=>{let{height:n,width:r}=e;return t.createElement(mc,{model:x,app:h,constraints:B,layout:p,selections:E,selectionState:se,direction:m,frequencyMode:g,rangeSelect:S,checkboxes:W,height:n,width:r,update:w,fetchStart:C,postProcessPages:_,calculatePagesHeight:k,keyboard:le,showGray:R,scrollState:q,keyScroll:{state:ee,reset:()=>te({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:oe,set:ie},renderedCallback:I,onCtrlF:qe,isModal:ce,styles:U})}))))))}));function $f(e){let{options:n={}}=e;const{model:r}=n,[o]=Ia(r);return t.createElement(Hf,{options:n,layout:o})}function Gf(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=wa(),{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 Vf={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 Kf(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 Jf=["__DO_NOT_USE__"],Zf=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 ne(ne(ne({},re(e,Jf)),n),t)},Xf=o(((e,o)=>{let{app:s,fieldIdentifier:l,qId:c,stateName:u,element:d,initialOptions:p,renderedCallback:h}=e;const[m,g]=n(p),{isExistingObject:b,hasExternalSelectionsApi:v}=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:Kf(m.frequencyMode)});const[y,S]=n(0);r((()=>{if(y)throw new Error("Source or selection Api can not change after a listbox has been mounted");S(y+1)}),[b,v]);const x=b?Gf({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),[p,h]=n(),[m,g]=n(),b=null!==(t=s.title)&&void 0!==t?t:m;let{histogram:v=!1,frequencyMode:y="N"}=s;l&&l.failedToFetchFieldDef&&(v=!1,y="N"),r((()=>{const e=v||"N"!==y;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 _=f();_.current||(_.current=df());const L=Ke(!0,{},Vf,{qInfo:{qId:_.current},qListObjectDef:{qStateName:a,qFrequencyMode:v&&"N"===y?"V":y},histogram:v,checkboxes:x,layoutOptions:C,title:b});let k;if(Ke(!0,L,w),i.qLibraryId?(L.qListObjectDef.qLibraryId=i.qLibraryId,k=i.qLibraryId):(L.qListObjectDef.qDef.qFieldDefs=[i],k=i),"P"!==y&&v)if(null!=l&&l.multiFieldDim)L.frequencyMax="fetch";else{const e=i.qLibraryId?l:k;L.frequencyMax={qValueExpression:uc(e)}}const[R]=Ca(L,u?null:o,k,a);return r((()=>{R&&h(R)}),[R]),p}({app:s,fieldIdentifier:l,stateName:u,options:m}),E=f(d),w=v?m.selectionsApi:Qc(s,x,[E,".njs-action-toolbar-more",".njs-action-toolbar-popover"],m)[0],C=i((()=>ne(ne({},m),{},{selections:w,model:x,app:s,renderedCallback:h})),[m,w,x,s]);return a(o,(()=>({setOptions:e=>g(e)})),[]),w&&x?t.createElement($f,{options:C}):null}));const Yf={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function Qf(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement($d,{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 ep(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function tp(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 np=e=>({qDef:{qFieldDefs:[e]}}),rp=e=>({qDef:{qDef:e}});function op(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?np(e):ne(ne({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||df(),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),ep(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 tp(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?rp(e):ne(ne({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||df(),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),ep(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];tp(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 ip=e=>({qDef:{qFieldDefs:[e]}});function ap(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?ip(e):ne(ne({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||df(),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 sp=e=>({qDef:{qFieldDefs:[e]}}),lp=e=>{let t;return t="string"==typeof e?Ke(!0,{},Vf,{qListObjectDef:sp(e)}):e.qListObjectDef?Ke(!0,{},Vf,e):Ke(!0,{},Vf,{qListObjectDef:e}),t};function cp(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=lp(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||df(),!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 up(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 dp(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")?ap:e.match("/qChildListDef")?cp:op}(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"===up(t)?await d.addMeasure(t):await d.addDimension(t)}}var fp={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 pp={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},move:function(e,t,n){if(n<0)throw Error("newIndex cannot be a negative value!");if(n>=e.length){let t=n-e.length+1;for(;t;)e.push(void 0),t--}const r=e.at(t);e.splice(t,1),e.splice(n,0,r)}};const hp=2**53-1;function mp(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function gp(e,t){const n=Ke(!0,{},t,e);return fp.getValue(n,"qOtherTotalSpec.qOtherCounted")||fp.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),fp.getValue(n,"qOtherTotalSpec.qOtherLimit")||fp.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function bp(e,t){return Ke(!0,{},t,e)}function vp(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var yp={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===fp.getValue(e,t)&&fp.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:mp,importCommonProperties:function(e,t,n){const r="masterobject"===fp.getValue(t,"properties.qInfo.qType")?"masterobject":fp.getValue(n,"qInfo.qType");fp.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:gp,createDefaultMeasure:bp,resolveValue:vp,getHypercubePath:function(e){const t=fp.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?(pp.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,pp.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=Ke(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?fp.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||mp(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ke(!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=vp(i.max,r.dimensions.length,hp),s=vp(i.min,r.dimensions.length,0);return{maxDimensions:vp(o.max,a,hp),minDimensions:vp(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(gp(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gp(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gp(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(gp(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gp(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(bp(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(bp(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(bp(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(bp(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(bp(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=fp.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=fp.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var Sp={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=fp.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();pp.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&&(yp.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!fp.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=yp.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=fp.getValue(n,i||"").qHyperCubeDef,c=fp.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p}=yp.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=yp.getDefaultDimension(),defaultMeasure:m=yp.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,yp.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p})&&yp.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:f,minMeasures:p,newHyperCubeDef:c}),yp.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),yp.addDefaultMeasures({exportFormat:t,maxMeasures:f,minMeasures:p,newHyperCubeDef:c,defaultMeasure:m}),yp.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),yp.copyPropertyIfExist("qMaxStackedCells",l,c),yp.copyPropertyIfExist("qNoOfLeftDims",l,c),yp.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),yp.copyPropertyOrSetDefault("qMode",l,c,"S"),yp.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),yp.copyPropertyOrSetDefault("qSortbyYValue",l,c),yp.copyPropertyOrSetDefault("qIndentMode",l,c),yp.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),yp.importCommonProperties(s,t,n),yp.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),yp.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const xp=e=>fp.getValue(e,"data.targets.0.propertyPath"),Ep=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Sp.exportProperties})(xp(e))},wp=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Sp.importProperties})(xp(e))},Cp=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=Ep(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,f=wp(d);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:c({propertyTree:s,hypercubePath:yp.getHypercubePath(l),viewDataMode:a}),initialProperties:ne({qInfo:{qType:o},visualization:o},fp.getValue(d,"properties.initial",{})),dataDefinition:fp.getValue(d,"data.targets.0.",{}),hypercubePath:yp.getHypercubePath(d),viewDataMode:a})},_p={hypercube:Sp};var Lp=e=>Pa((e=>ne(ne({},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 kp(e){let{d:n}=e;const r=Ui();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(H,null,n.missing||n.error?t.createElement(Lp,{style:a}):t.createElement(Ya,{style:a})));return t.createElement(L,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(L,{item:!0},s),t.createElement(L,{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 Rp(e){let{data:n}=e;const r=Ui();return t.createElement(L,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(kp,{d:e,key:n})));return o.length>0&&t.createElement(L,{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 qp(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(L,{item:!0},t.createElement(Lp,{style:{fontSize:"38px"}})),t.createElement(L,{item:!0},t.createElement(w,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(L,{item:!0},t.createElement(w,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(Rp,{data:o}))}const Ip=["size"],Op="Progress",Tp={root:"".concat(Op,"-root"),front:"".concat(Op,"-front"),back:"".concat(Op,"-back")},Dp=ra("div")((e=>{let{theme:t}=e;return{["&.".concat(Tp.root)]:{position:"relative",display:"inline-block"},["& .".concat(Tp.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(Tp.back)]:{color:t.palette.divider}}})),Pp={small:16,medium:32,large:64,xlarge:128};function Mp(e){let{size:n="medium"}=e,r=re(e,Ip);const o=Pp[n];return t.createElement(Dp,{className:Tp.root},t.createElement(U,ee({variant:"determinate",value:100,className:Tp.back,size:o,thickness:3},r)),t.createElement(U,ee({variant:"indeterminate",disableShrink:!0,className:Tp.front,size:o,thickness:3},r)))}const Ap=["cancel","translator"],Np=["retry","translator"],jp={stripes:"".concat("LongRunningQuery","-stripes")},zp=ra(L)((()=>({["& .".concat(jp.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 Fp(e){let{cancel:n,translator:r}=e,o=re(e,Ap);return t.createElement(t.Fragment,null,t.createElement(zp,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(L,{item:!0},t.createElement(Mp,null)),t.createElement(L,{item:!0},t.createElement(w,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(L,ee({item:!0},o),t.createElement(B,{variant:"contained",onClick:n},r.get("Cancel"))))}function Bp(e){let{retry:n,translator:r}=e,o=re(e,Np);return t.createElement(t.Fragment,null,t.createElement(L,{item:!0},t.createElement(Lp,{style:{fontSize:"38px"}})),t.createElement(L,{item:!0},t.createElement(w,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(L,{item:!0},t.createElement(B,ee({variant:"contained",onClick:n},o),r.get("Retry"))))}function Wp(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=s(ba);return t.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:jp.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(Fp,{cancel:o.cancel,translator:i,className:jp.cancel}),r&&t.createElement(Bp,{retry:o.retry,translator:i,className:jp.retry}))}function Up(){return t.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(Mp,{size:"large"}))}const Hp={width:0,height:0},$p="Header",Gp={containerStyle:"".concat($p,"-containerStyle"),containerTitleStyle:"".concat($p,"-containerTitleStyle")},Vp=ra(L)((e=>{let{theme:t}=e;return{["&.".concat(Gp.containerStyle)]:{flexGrow:0},["&.".concat(Gp.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Kp="njs-cell-title",Jp="njs-cell-sub-title";function Zp(e){let{id:o,layout:i,sn:a,anchorEl:s,hovering:l,focusHandler:c,titleStyles:u={},isRtl:d,translator:f}=e;const p=i.showTitles&&!!i.title,h=i.showTitles&&!!i.subtitle,m=i.qSelectionInfo&&i.qSelectionInfo.qInSelections,[g,b]=n([]);r((()=>{a&&a.component&&a.component.isHooked&&a.component.observeActions((e=>{b([...e,...a&&a.selectionToolbar&&a.selectionToolbar.items||[]])}))}),[a]);const v=[Gp.containerStyle,...p||h?[Gp.containerTitleStyle]:[]],y=l||m,S=t.createElement(Wc,{show:!1,selections:{show:m,api:a.component.selections,onKeyDeactivate:c.refocusContent},actions:g,popover:{show:y,anchorEl:s},focusHandler:c,layout:i,isRtl:d});return t.createElement(Vp,{item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},t.createElement(L,{item:!0,zeroMinWidth:!0,xs:!0,dir:d?"rtl":"ltr"},t.createElement(L,{container:!0,wrap:"nowrap",direction:"column"},p?t.createElement(k,{title:i.title},t.createElement(w,{id:"".concat(o,"_title"),variant:"h6",noWrap:!0,className:Kp,style:u.main},i.title)):t.createElement("div",{id:"".concat(o,"_title"),style:Hp,"aria-label":f.get("Accessibility.Object.NoTitle")}),h&&t.createElement(k,{title:i.subtitle},t.createElement(w,{variant:"body2",noWrap:!0,className:Jp,style:u.subTitle},i.subtitle)))),t.createElement(L,{item:!0},S))}const Xp="condition",Yp="search",Qp="clear_selection",eh="matches_exactly",th="starts_with",nh="ends_with",rh="beginning_of_word",oh="general",ih="fixed_value",ah=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude"),r=e.filter((e=>!1!==e.showInFooter));return r.map((e=>{var r;let o="";switch(e.type){case Yp:o+=(e=>{var t,n,r;let o="",i="";switch(null===(t=e.options)||void 0===t?void 0:t.mode){case rh:o="*^",i="*";break;case nh:o="*";break;case th:i="*";break;case eh:break;default:o="*",i="*"}const a=null!==(n=null===(r=e.options.values)||void 0===r?void 0:r[0])&&void 0!==n?n:"";return""!==a?'"'.concat(o).concat(a).concat(i,'"'):""})(e);break;case Xp:o+=(e=>{var t,n,r,o,i,a,s;const{options:l}=e,c=(null==l?void 0:l.mode)===oh,u=(null==l||null===(t=l.modifier)||void 0===t?void 0:t.type)===ih,d=null!=l&&null!==(n=l.modifier)&&void 0!==n&&n.operator?l.modifier.operator.split(" "):[];if(0===d.length||!u&&(null===(r=l.firstValue)||void 0===r||!r.aggregator||null===(o=l.firstValue)||void 0===o||!o.field)||u&&(null===(i=l.firstValue)||void 0===i||!i.fixedValue)||c&&(null===(a=l.conditionField)||void 0===a||!a.aggregator||null===(s=l.conditionField)||void 0===s||!s.field))return"";let f,p,h="=";var m,g,b;if(c&&u)f="".concat(null===(m=l.conditionField)||void 0===m?void 0:m.aggregator,"(").concat(cc(null===(g=l.conditionField)||void 0===g?void 0:g.field),")"),p="".concat(null===(b=l.firstValue)||void 0===b?void 0:b.fixedValue);else if(!c&&u){var v;f="",p="".concat(null===(v=l.firstValue)||void 0===v?void 0:v.fixedValue),h=""}else if(c||u){var y,S,x,E;f="".concat(null===(y=l.conditionField)||void 0===y?void 0:y.aggregator,"(").concat(cc(null===(S=l.conditionField)||void 0===S?void 0:S.field),")"),p="".concat(null===(x=l.firstValue)||void 0===x?void 0:x.aggregator,"(").concat(cc(null===(E=l.firstValue)||void 0===E?void 0:E.field),")")}else{var w,C;f="".concat(cc(e.field)),p="".concat(null===(w=l.firstValue)||void 0===w?void 0:w.aggregator,"(total ").concat(cc(null===(C=l.firstValue)||void 0===C?void 0:C.field),")")}const _="".concat(h).concat(f).concat(d[0]).concat(p);let L="";if(d.length>1){var k,R,q;if(!u&&(null===(k=l.secondValue)||void 0===k||!k.aggregator||null===(R=l.secondValue)||void 0===R||!R.field)||u&&(null===(q=l.secondValue)||void 0===q||!q.fixedValue))return"";let e,t;var I;if(c&&u)e="".concat(null===(I=l.secondValue)||void 0===I?void 0:I.fixedValue),t=" and ".concat(f);else if(!c&&u){var O;e="".concat(null===(O=l.secondValue)||void 0===O?void 0:O.fixedValue),t=""}else if(c||u){var T,D;e="".concat(null===(T=l.secondValue)||void 0===T?void 0:T.aggregator,"(").concat(cc(null===(D=l.secondValue)||void 0===D?void 0:D.field),")"),t=" and ".concat(f)}else{var P,M;e="".concat(null===(P=l.secondValue)||void 0===P?void 0:P.aggregator,"(total ").concat(cc(null===(M=l.secondValue)||void 0===M?void 0:M.field),")"),t=" and ".concat(f)}L="".concat(t).concat(d[1]).concat(e)}return'"'.concat(_).concat(L,'"')})(e);break;case Qp:o+=t.get("Object.FilterLabel.All");break;default:o+=null!==(r=e.options)&&void 0!==r&&r.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==o&&(o=o.replace(/^"|"$/g,""),e.exclude&&(o="".concat(n," ").concat(o))),{field:e.field,label:o}})).filter((e=>""!==e.label))},sh=(e,t)=>ah(e,t).map((e=>"".concat(e.field,": ").concat(e.label))).join("; ");var lh=e=>Pa((e=>ne(ne({},e),{},{shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function ch(e){let{styles:n,children:r}=e;return t.createElement(w,{noWrap:!0,variant:"body2",style:ne(ne({},n),{},{fontStyle:"italic"})},r)}function uh(e){var n;let{layout:r,translator:o,filtersFootnoteString:i,footerStyle:a,isRtl:s}=e;const l=ah(null!==(n=null==r?void 0:r.filters)&&void 0!==n?n:[],o),c={color:null==a?void 0:a.color,fontFamily:null==a?void 0:a.fontFamily,fontSize:null==a?void 0:a.fontSize,fontWeight:null==a?void 0:a.fontWeight};return t.createElement(k,{title:i},t.createElement(L,{container:!0,wrap:"nowrap",sx:{backgroundColor:null==a?void 0:a.backgroundColor,padding:null==a?void 0:a.padding,borderTop:null==a?void 0:a.borderTop},"data-testid":"filters-footnote",justifyContent:s?"flex-end":"flex-start"},t.createElement(L,{item:!0,display:"flex"},t.createElement(lh,{style:{fontSize:"12px",color:a.color,margin:"auto"}}),t.createElement(ch,{styles:ne(ne({},c),{},{marginLeft:"2px"})},o.get("Object.FiltersApplied")," ")),t.createElement(L,{item:!0,display:"flex"},l.map((e=>t.createElement(L,{container:!0,wrap:"nowrap",key:"".concat(e.field,"-").concat(e.label)},t.createElement(ch,{styles:ne(ne({},c),{},{fontWeight:"bold"})},"".concat(e.field,":")),t.createElement(ch,{styles:c}," ",e.label," ")))))))}const dh={itemStyle:"".concat("Footer","-itemStyle")},fh=ra(L)((()=>({["& .".concat(dh.itemStyle)]:{minWidth:0,width:"100%"}}))),ph="njs-cell-footer";function hh(e){var n,r,o;let{layout:i,titleStyles:a={},translator:s,flags:l,isCardTheme:c,isRtl:u}=e;const d=a.footer,f=(null==i||null===(n=i.filters)||void 0===n?void 0:n.length)>0&&(null==i||null===(r=i.qHyperCube)||void 0===r||null===(r=r.qMeasureInfo)||void 0===r?void 0:r.length)>0,p=sh(null!==(o=null==i?void 0:i.filters)&&void 0!==o?o:[],s),h=!(null!=i&&i.footnote)&&f&&p,m=null==l?void 0:l.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),g=c?"1px":"6px";return i&&i.showTitles&&(i.footnote||h)?t.createElement(fh,{container:!0},t.createElement(L,{item:!0,className:dh.itemStyle,"data-testid":ph,sx:{paddingTop:e=>m?g:e.spacing(1)}},i.footnote&&t.createElement(k,{title:i.footnote},t.createElement(w,{noWrap:!0,variant:"body2",className:ph,style:d,align:u?"right":"left"},i.footnote)),h&&t.createElement(uh,{layout:i,translator:s,filtersFootnoteString:p,footerStyle:d,isRtl:u}))):null}class mh{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 gh="njs-viz";function bh(e){let{sn:o,snOptions:i,snPlugins:a,layout:l,appLayout:u,halo:d,cellId:f}=e;const{component:p}=o,{theme:h,language:m,constraints:g,interactions:b,keyboardNavigation:v}=s(ba),[y]=n((()=>new mh)),[S,x]=n(!1),[E,w]=n(0),[C,_,L]=Ta(),[k,R]=n(null),q=c((e=>{e&&R(e)}),[]);return r((()=>{if(k)return p.created({options:i}),p.mounted(k),x(!0),()=>{y.stop(),p.willUnmount()}}),[k,p]),r((()=>{S&&k&&_&&(!p.isHooked&&l&&l.qSelectionInfo&&l.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return g.passive||e.push("passive"),g.active||e.push("interact"),g.select||e.push("select"),g.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:ne({constraints:g,interactions:b,theme:d.public.theme,appLayout:u,keyboardNavigation:v},p.isHooked?{}:{logicalSize:o.logicalSize({layout:l}),localeInfo:(u||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===E&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),w(E+1))}))})))}),[_,i,a,k,L,l,u,h,m,g,b,S,v]),t.createElement("div",{ref:C,"data-render-count":E,style:{position:"relative",height:"100%"},className:gh},t.createElement("div",{ref:q,id:"".concat(f,"_content"),style:{position:"absolute",width:"100%",height:"100%"}}))}const vh={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"},yh=e=>{let{layout:t,theme:n,app:r,themeName:o,disableThemeBorder:a}=e;const s=i((()=>{if(t&&n){const o=t.components?t.components.find((e=>"general"===e.key)):null,i=(e=t.visualization,vh[e.toLowerCase()]?vh[e.toLowerCase()]:e),s={main:Bd(o,"main",n,i),footer:Bd(o,"footer",n,i),subTitle:Bd(o,"subTitle",n,i)},l=zd(o,n,i),c=jd(o,r),u=function(e,t,n,r){const o=Pd(null==e?void 0:e.borderColor,"","borderColor",t,n);let i=null==e?void 0:e.borderWidth;return!i&&!r&&(i=Dd("","borderWidth",t,n)),i&&o?"".concat(i," solid ").concat(o):void 0}(o,n,i,a),d=function(e,t,n){return(null==e?void 0:e.borderRadius)||Dd("","borderRadius",t,n)}(o,n,i);return{titleStyles:s,bgColor:l,bgImage:c,border:u,borderRadius:d,boxShadow:Fd(o,n,i)}}var e;return{}}),[t,n,r,o,a]);return s};class Sh extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const xh=["action-button","sn-nav-menu","filterpane","sn-shape"],Eh=[...xh,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],wh=e=>-1===xh.indexOf(e),Ch=e=>wh(e)?"10px 10px 0":"10px 0 0",_h=e=>{let{layout:t,isError:n,isCardTheme:r,titleStyles:o,translator:i}=e;if(r){var a,s,l;const e=(null==t?void 0:t.showTitles)&&!(null==t||!t.title),r=(null==t?void 0:t.showTitles)&&!(null==t||!t.subtitle),c=(null==t||null===(a=t.filters)||void 0===a?void 0:a.length)>0&&(null==t||null===(s=t.qHyperCube)||void 0===s||null===(s=s.qMeasureInfo)||void 0===s?void 0:s.length)>0,u=null==t?void 0:t.visualization,d=sh(null!==(l=null==t?void 0:t.filters)&&void 0!==l?l:[],i),f=!(null!=t&&t.footnote)&&c&&d,p=(null==t?void 0:t.showTitles)&&(!(null==t||!t.footnote)||f);let h;return e&&(o.main.padding=Ch(u)),r&&(o.subTitle.padding=((e,t)=>{const n=wh(e);return t?n?"0 10px":"0":Ch(e)})(u,e)),p&&(-1===xh.indexOf(u)&&(o.footer.borderTop="1px solid #d9d9d9"),o.footer.padding="6px 10px"),(n||-1===Eh.indexOf(u))&&(h="".concat(e||r?"0":"10px"," 10px ").concat(p?"0":"5px")),h}},Lh=new Map;[["auto-chart","Object.AutoChart"],["dummy-chart","Dummy"],["barchart","Object.BarChart"],["combochart","Object.ComboChart"],["container","Object.Container"],["distributionplot","Object.DistributionPlot"],["boxplot","Object.BoxPlot"],["filterpane","Object.FilterPane"],["gauge","Object.Gauge"],["histogram","Object.Histogram"],["kpi","Object.Kpi"],["linechart","Object.LineChart"],["listbox","Object.Listbox"],["piechart","Object.PieChart"],["pivot-table","Object.PivotTable"],["map","Object.Map"],["scatterplot","Object.ScatterPlot"],["sn-table","Object.StraightTable"],["text-image","Object.TextImage"],["treemap","Object.Treemap"],["waterfallchart","Object.WaterfallChart"],["mekkochart","Object.MekkoChart"],["action-button","Object.ActionButton"],["sn-nav-menu","Object.NavMenu"],["bulletchart","Object.BulletChart"],["sn-nlg-chart","Object.NlgChart"],["sn-analysis-autochart","Common.AnalysisTypes"],["sn-tabbed-container","Object.TabContainer"],["qlik-sankey-chart-ext","Object.SankeyChart"],["qlik-radar-chart","Object.RadarChart"],["qlik-funnel-chart-ext","Object.FunnelChart"],["sn-grid-chart","Object.GridChart"],["sn-layout-container","Object.LayoutContainer"]].forEach((e=>{let[t,n]=e;Lh.set(t,n)}));const kh="njs-cell",Rh="njs-cell-body";const qh=(e,t)=>{switch(t.type){case"LOADING":return ne(ne({},e),{},{loading:!0});case"LOADED":return ne(ne({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return ne(ne({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return ne(ne({},e),{},{longRunningQuery:!0});case"ERROR":return ne(ne({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Ih(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(Up,null):null}const Oh=e=>!e.qError||7005===e.qError.qErrorCode,Th=(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}})),Dh=e=>e&&(Array.isArray(e)?e:[e])||[],Ph=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),s=Th(o,Dh(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=Th(i,Dh(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:s,reqMeasErrors:l}},Mh=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(),f=u.measures.min(),p=u.resolveLayout(n),h=Dh(p.qDimensionInfo||p.qItems).filter(Oh),m=Dh(p.qMeasureInfo).filter(Oh);if(o+=d,i+=f,(h.length<d||m.length<f)&&(r=!0),p.qError){a=!0,s=7005===p.qError.qErrorCode;const t=s&&p.qCalcCondMsg?p.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 f=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=f||await r.getProperties();f=n;const o=Ph(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const p=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[p,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),b=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],v=l?c:b;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:v}]};function Ah(){return new ue}const Nh=o(((e,o)=>{var i,c;let{halo:u,model:d,initialSnOptions:p,initialSnPlugins:h,initialError:m,onMount:g,currentId:b,emitter:v,navigation:y,onError:S}=e;const{app:x,types:E}=u,{nebbie:w}=u.public,{theme:C,translator:_,language:k,keyboardNavigation:q,externalFocusManagement:I,disableCellPadding:O=!1,navigation:T}=s(ba),[D]=n(v||Ah),P=Ui(),[M,A,N]=Ta(),[j,z]=l(qh,{loading:!1,loaded:!1,longRunningQuery:!1,error:(F=m)?{title:F.message}:null,sn:null,visualization:null});var F;const[B,W]=n(d),[U,{validating:H,canCancel:$,canRetry:G},V]=Ia(B),[K]=Oa(x),[J,Z,X]=Ta(),[Y,Q]=n(p),[ee,te]=n(h),re="njs-cell-".concat(b),[oe]=Qc(x,B,["#".concat(re),".njs-action-toolbar-popover"]),[ie,ae]=n(!1),se=f({enter:null,leave:null}),{titleStyles:le,bgColor:ce,bgImage:ue,border:de,borderRadius:fe,boxShadow:pe}=yh({layout:U,theme:u.public.theme,app:u.app,themeName:C,disableThemeBorder:null==Y?void 0:Y.disableThemeBorder}),he=!("rtl"!==(null==Y?void 0:Y.direction)),me=f({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{Zc(me.current),me.current.blurCallback=e=>{me.current.onBlurHandler?me.current.onBlurHandler(e):(u.root.toggleFocusOfCells(),e&&X&&X.focus())},me.current.refocusContent=()=>{j.sn.component&&"function"==typeof j.sn.component.focus&&j.sn.component.focus()}}),[]);r((()=>{if(m)return void g();if(!K||!U)return;if(j.visualization===U.visualization&&j.sn)return void(async e=>{const[t,n]=await Mh(_,U,e.generator.qae.data,B);z(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:j.sn,layout:U,model:B})})(j.sn);const e=E.getSupportedVersion(U.visualization,U.version);return(async(e,t)=>{z({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:f}=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}),p=e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,navigation:f});p&&(t({type:"LOADED",sn:p,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:z,types:E,visualization:e,version:t,model:B,app:x,selections:oe,nebbie:w,focusHandler:me.current,emitter:D,onMount:g,navigation:null!=y?y:T})})(U.visualization,e),()=>{}}),[E,j.sn,B,oe,U,K,k]),r((()=>{if(!H)return;const e=setTimeout((()=>z({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[H]),a(o,(()=>({getQae:()=>j.sn.generator.qae,getExtensionDefinition:()=>j.sn.generator.definition.ext,support(e,t,n){if(U&&j.loaded&&!j.error){var r;const o=t||(null===(r=j.sn.generator.definition.ext)||void 0===r?void 0:r.support);if(o)return function(e,t,n){const r=t[e];return"function"==typeof r?r.call(null,n):"boolean"==typeof r&&r}(e,o,n||U)}return!1},toggleFocus(e){"function"==typeof j.sn.component.focus&&(e?j.sn.component.focus():j.sn.component.blur())},setOnBlurHandler(e){me.current.onBlurHandler=e},setSnOptions:Q,setSnPlugins:te,setModel:W,getImperativeHandle(){var e;return null!==(e=j.sn)&&void 0!==e&&e.component&&"function"==typeof j.sn.component.getImperativeHandle?j.sn.component.getImperativeHandle():{}},onContextMenu(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=j.sn)||void 0===e?void 0:e.component.onContextMenu(...n)},async takeSnapshot(){const{width:e,height:t}=A;let n=JSON.parse(JSON.stringify(U));return"function"==typeof j.sn.component.setSnapshotData&&(n=await j.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:_.language(),theme:P.name,appLayout:K,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof u.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return u.config.snapshot.capture(e)}})),[j.sn,Z,A,U,P.name,K]);let ge=null;if(j.loading&&!j.longRunningQuery)ge=t.createElement(Ih,null);else if(j.error){if(S){S(j.error.errorObject?j.error.errorObject:new Sh(j.error.title))}ge=t.createElement(qp,j.error)}else j.loaded&&(ge=t.createElement(bh,{key:U.visualization,sn:j.sn,halo:u,snOptions:Y,snPlugins:ee,layout:U,appLayout:K,cellId:b}));const be=!(null===(i=u.public.theme)||void 0===i||!i.getStyle("","","_cards")),ve=null===(c=u.public.galaxy)||void 0===c?void 0:c.flags;let ye,Se;O?(ye=!1,Se=void 0):null!=ve&&ve.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(ye=!1,Se=_h({layout:U,isError:j.error,isCardTheme:be,titleStyles:le,translator:_})):(ye=!0,Se=void 0);const xe=Lh.get(null==U?void 0:U.visualization),Ee=_.get(xe);return t.createElement(R,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:ce||"unset",backgroundImage:ue&&ue.url?"url(".concat(ue.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:ue&&ue.size,backgroundPosition:ue&&ue.pos,border:de,borderRadius:fe,boxShadow:pe,boxSizing:"border-box"},elevation:0,square:!0,className:kh,ref:M,id:re,onMouseEnter:()=>{se.current.leave&&clearTimeout(se.current.leave),se.enter||(se.current.enter=setTimeout((()=>{ae(!0),se.current.enter=null}),250))},onMouseLeave:()=>{se.current.enter&&clearTimeout(se.current.enter),se.current.leave||(se.current.leave=setTimeout((()=>{ae(!1),se.current.leave=null}),750))}},t.createElement(L,{container:!0,direction:"column",gap:0,style:ne(ne({position:"relative",width:"100%",height:"100%"},ye?{padding:P.spacing(1)}:{}),j.longRunningQuery?{opacity:"0.3"}:{}),"aria-labelledby":"".concat(b,"_title ").concat(b,"_type ").concat(b,"_content")},U&&t.createElement("div",{id:"".concat(b,"_type"),style:Hp,"aria-label":null!=Ee?Ee:U.visualization}),N&&U&&j.sn&&t.createElement(Zp,{layout:U,sn:j.sn,anchorEl:N,hovering:ie,focusHandler:me.current,titleStyles:le,isRtl:he,id:b,translator:_}," "),t.createElement(L,{tabIndex:q&&!I?0:-1,onKeyDown:q&&!I?e=>{["Enter"," ","Spacebar"].includes(e.key)&&u.root.toggleFocusOfCells(b)}:null,item:!0,xs:!0,className:Rh,style:ne({height:"100%"},Se?{padding:Se}:{}),ref:J},ge),N&&U&&j.sn&&t.createElement(hh,{layout:U,titleStyles:le,translator:_,flags:ve,isCardTheme:be,isRtl:he})),j.longRunningQuery&&t.createElement(Wp,{canCancel:$,canRetry:G,api:V}))}));function jh(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function zh(){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 jh(e)&&jh(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(...zh("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Fh(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 Bh=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},Wh=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t);var Uh,Hh={exports:{}};
|
|
17
17
|
/**
|
|
18
18
|
* @license
|
|
19
19
|
* Lodash <https://lodash.com/>
|
|
@@ -21,5 +21,5 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,f=e.le
|
|
|
21
21
|
* Released under MIT license <https://lodash.com/license>
|
|
22
22
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
23
23
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
24
|
-
*/var Wh,Bh,Hh=(zh||(zh=1,Wh=Fh,Bh=Fh.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",o=32,i=128,a=256,s=1/0,l=9007199254740991,c=NaN,u=4294967295,d=[["ary",i],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",a]],f="[object Arguments]",p="[object Array]",h="[object Boolean]",m="[object Date]",g="[object Error]",b="[object Function]",v="[object GeneratorFunction]",y="[object Map]",S="[object Number]",x="[object Object]",w="[object Promise]",E="[object RegExp]",_="[object Set]",C="[object String]",L="[object Symbol]",k="[object WeakMap]",q="[object ArrayBuffer]",R="[object DataView]",I="[object Float32Array]",O="[object Float64Array]",D="[object Int8Array]",T="[object Int16Array]",M="[object Int32Array]",A="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",j="[object Uint32Array]",z=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,$=RegExp(B.source),U=RegExp(H.source),G=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,ee=RegExp(Q.source),te=/^\s+/,ne=/\s/,re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ie=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ue=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,he=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,ye="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",we="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",_e="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Le="['’]",ke="["+ye+"]",qe="["+Ce+"]",Re="["+Se+"]",Ie="\\d+",Oe="["+xe+"]",De="["+we+"]",Te="[^"+ye+Ce+Ie+xe+we+Ee+"]",Me="\\ud83c[\\udffb-\\udfff]",Ae="[^"+ye+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Ee+"]",ze="\\u200d",Fe="(?:"+De+"|"+Te+")",We="(?:"+je+"|"+Te+")",Be="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Re+"|"+Me+")?",Ue="["+_e+"]?",Ve=Ue+$e+"(?:"+ze+"(?:"+[Ae,Pe,Ne].join("|")+")"+Ue+$e+")*",Ge="(?:"+[Oe,Pe,Ne].join("|")+")"+Ve,Ke="(?:"+[Ae+Re+"?",Re,Pe,Ne,ke].join("|")+")",Ze=RegExp(Le,"g"),Je=RegExp(Re,"g"),Xe=RegExp(Me+"(?="+Me+")|"+Ke+Ve,"g"),Ye=RegExp([je+"?"+De+"+"+Be+"(?="+[qe,je,"$"].join("|")+")",We+"+"+He+"(?="+[qe,je+Fe,"$"].join("|")+")",je+"?"+Fe+"+"+Be,je+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ge].join("|"),"g"),Qe=RegExp("["+ze+ye+Se+_e+"]"),et=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,rt={};rt[I]=rt[O]=rt[D]=rt[T]=rt[M]=rt[A]=rt[P]=rt[N]=rt[j]=!0,rt[f]=rt[p]=rt[q]=rt[h]=rt[R]=rt[m]=rt[g]=rt[b]=rt[y]=rt[S]=rt[x]=rt[E]=rt[_]=rt[C]=rt[k]=!1;var ot={};ot[f]=ot[p]=ot[q]=ot[R]=ot[h]=ot[m]=ot[I]=ot[O]=ot[D]=ot[T]=ot[M]=ot[y]=ot[S]=ot[x]=ot[E]=ot[_]=ot[C]=ot[L]=ot[A]=ot[P]=ot[N]=ot[j]=!0,ot[g]=ot[b]=ot[k]=!1;var it={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,st=parseInt,lt="object"==typeof V&&V&&V.Object===Object&&V,ct="object"==typeof self&&self&&self.Object===Object&&self,ut=lt||ct||Function("return this")(),dt=Bh&&!Bh.nodeType&&Bh,ft=dt&&Wh&&!Wh.nodeType&&Wh,pt=ft&&ft.exports===dt,ht=pt&<.process,mt=function(){try{var e=ft&&ft.require&&ft.require("util").types;return e||ht&&ht.binding&&ht.binding("util")}catch(e){}}(),gt=mt&&mt.isArrayBuffer,bt=mt&&mt.isDate,vt=mt&&mt.isMap,yt=mt&&mt.isRegExp,St=mt&&mt.isSet,xt=mt&&mt.isTypedArray;function wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function kt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function qt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Rt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function It(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ot(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Dt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Tt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var At=Bt("length");function Pt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Nt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Nt(e,Ft,n)}function zt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ft(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Ut(e,t)/n:c}function Bt(t){return function(n){return null==n?e:n[t]}}function Ht(t){return function(n){return null==t?e:t[n]}}function $t(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Ut(t,n){for(var r,o=-1,i=t.length;++o<i;){var a=n(t[o]);a!==e&&(r=r===e?a:r+a)}return r}function Vt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gt(e){return e?e.slice(0,dn(e)+1).replace(te,""):e}function Kt(e){return function(t){return e(t)}}function Zt(e,t){return It(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function Xt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var Qt=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),en=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function tn(e){return"\\"+it[e]}function nn(e){return Qe.test(e)}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function on(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,o=e.length,i=0,a=[];++n<o;){var s=e[n];s!==t&&s!==r||(e[n]=r,a[i++]=n)}return a}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function cn(e){return nn(e)?function(e){for(var t=Xe.lastIndex=0;Xe.test(e);)++t;return t}(e):At(e)}function un(e){return nn(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&ne.test(e.charAt(t)););return t}var fn=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function V(ne){var ye=(ne=null==ne?ut:pn.defaults(ut.Object(),ne,pn.pick(ut,tt))).Array,Se=ne.Date,xe=ne.Error,we=ne.Function,Ee=ne.Math,_e=ne.Object,Ce=ne.RegExp,Le=ne.String,ke=ne.TypeError,qe=ye.prototype,Re=we.prototype,Ie=_e.prototype,Oe=ne["__core-js_shared__"],De=Re.toString,Te=Ie.hasOwnProperty,Me=0,Ae=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pe=Ie.toString,Ne=De.call(_e),je=ut._,ze=Ce("^"+De.call(Te).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=pt?ne.Buffer:e,We=ne.Symbol,Be=ne.Uint8Array,He=Fe?Fe.allocUnsafe:e,$e=on(_e.getPrototypeOf,_e),Ue=_e.create,Ve=Ie.propertyIsEnumerable,Ge=qe.splice,Ke=We?We.isConcatSpreadable:e,Xe=We?We.iterator:e,Qe=We?We.toStringTag:e,it=function(){try{var e=ui(_e,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=ne.clearTimeout!==ut.clearTimeout&&ne.clearTimeout,ct=Se&&Se.now!==ut.Date.now&&Se.now,dt=ne.setTimeout!==ut.setTimeout&&ne.setTimeout,ft=Ee.ceil,ht=Ee.floor,mt=_e.getOwnPropertySymbols,At=Fe?Fe.isBuffer:e,Ht=ne.isFinite,hn=qe.join,mn=on(_e.keys,_e),gn=Ee.max,bn=Ee.min,vn=Se.now,yn=ne.parseInt,Sn=Ee.random,xn=qe.reverse,wn=ui(ne,"DataView"),En=ui(ne,"Map"),_n=ui(ne,"Promise"),Cn=ui(ne,"Set"),Ln=ui(ne,"WeakMap"),kn=ui(_e,"create"),qn=Ln&&new Ln,Rn={},In=Pi(wn),On=Pi(En),Dn=Pi(_n),Tn=Pi(Cn),Mn=Pi(Ln),An=We?We.prototype:e,Pn=An?An.valueOf:e,Nn=An?An.toString:e;function jn(e){if(Qa(e)&&!Ba(e)&&!(e instanceof Bn)){if(e instanceof Wn)return e;if(Te.call(e,"__wrapped__"))return Ni(e)}return new Wn(e)}var zn=function(){function t(){}return function(n){if(!Ya(n))return{};if(Ue)return Ue(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function Fn(){}function Wn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=u,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Un;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new $n(e);this.size=t.size}function Kn(e,t){var n=Ba(e),r=!n&&Wa(e),o=!n&&!r&&Va(e),i=!n&&!r&&!o&&ss(e),a=n||r||o||i,s=a?Vt(e.length,Le):[],l=s.length;for(var c in e)!t&&!Te.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bi(c,l))||s.push(c);return s}function Zn(t){var n=t.length;return n?t[Vr(0,n-1)]:e}function Jn(e,t){return Ti(qo(e),ir(t,0,e.length))}function Xn(e){return Ti(qo(e))}function Yn(t,n,r){(r!==e&&!ja(t[n],r)||r===e&&!(n in t))&&rr(t,n,r)}function Qn(t,n,r){var o=t[n];Te.call(t,n)&&ja(o,r)&&(r!==e||n in t)||rr(t,n,r)}function er(e,t){for(var n=e.length;n--;)if(ja(e[n][0],t))return n;return-1}function tr(e,t,n,r){return ur(e,(function(e,o,i){t(r,e,n(e),i)})),r}function nr(e,t){return e&&Ro(t,Rs(t),e)}function rr(e,t,n){"__proto__"==t&&it?it(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(t,n){for(var r=-1,o=n.length,i=ye(o),a=null==t;++r<o;)i[r]=a?e:_s(t,n[r]);return i}function ir(t,n,r){return t==t&&(r!==e&&(t=t<=r?t:r),n!==e&&(t=t>=n?t:n)),t}function ar(t,n,r,o,i,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),s!==e)return s;if(!Ya(t))return t;var d=Ba(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Te.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return qo(t,s)}else{var p=pi(t),g=p==b||p==v;if(Va(t))return wo(t,l);if(p==x||p==f||g&&!i){if(s=c||g?{}:mi(t),!l)return c?function(e,t){return Ro(e,fi(e),t)}(t,function(e,t){return e&&Ro(t,Is(t),e)}(s,t)):function(e,t){return Ro(e,di(e),t)}(t,nr(s,t))}else{if(!ot[p])return i?t:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case q:return Eo(e);case h:case m:return new o(+e);case R:return function(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case O:case D:case T:case M:case A:case P:case N:case j:return _o(e,n);case y:return new o;case S:case C:return new o(e);case E:return function(e){var t=new e.constructor(e.source,ue.exec(e));return t.lastIndex=e.lastIndex,t}(e);case _:return new o;case L:return r=e,Pn?_e(Pn.call(r)):{}}}(t,p,l)}}a||(a=new Gn);var w=a.get(t);if(w)return w;a.set(t,s),os(t)?t.forEach((function(e){s.add(ar(e,n,r,e,t,a))})):es(t)&&t.forEach((function(e,o){s.set(o,ar(e,n,r,o,t,a))}));var k=d?e:(u?c?ri:ni:c?Is:Rs)(t);return _t(k||t,(function(e,o){k&&(e=t[o=e]),Qn(s,o,ar(e,n,r,o,t,a))})),s}function sr(t,n,r){var o=r.length;if(null==t)return!o;for(t=_e(t);o--;){var i=r[o],a=n[i],s=t[i];if(s===e&&!(i in t)||!a(s))return!1}return!0}function lr(n,r,o){if("function"!=typeof n)throw new ke(t);return Ri((function(){n.apply(e,o)}),r)}function cr(e,t,n,r){var o=-1,i=qt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=It(t,Kt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=Jt,a=!1,t=new Vn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}jn.templateSettings={escape:G,evaluate:K,interpolate:Z,variable:"",imports:{_:jn}},jn.prototype=Fn.prototype,jn.prototype.constructor=jn,Wn.prototype=zn(Fn.prototype),Wn.prototype.constructor=Wn,Bn.prototype=zn(Fn.prototype),Bn.prototype.constructor=Bn,Hn.prototype.clear=function(){this.__data__=kn?kn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(t){var r=this.__data__;if(kn){var o=r[t];return o===n?e:o}return Te.call(r,t)?r[t]:e},Hn.prototype.has=function(t){var n=this.__data__;return kn?n[t]!==e:Te.call(n,t)},Hn.prototype.set=function(t,r){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=kn&&r===e?n:r,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},$n.prototype.get=function(t){var n=this.__data__,r=er(n,t);return r<0?e:n[r][1]},$n.prototype.has=function(e){return er(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(En||$n),string:new Hn}},Un.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},Un.prototype.get=function(e){return li(this,e).get(e)},Un.prototype.has=function(e){return li(this,e).has(e)},Un.prototype.set=function(e,t){var n=li(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,n),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new $n,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Un(r)}return n.set(e,t),this.size=n.size,this};var ur=Do(vr),dr=Do(yr,!0);function fr(e,t){var n=!0;return ur(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function pr(t,n,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],s=n(a);if(null!=s&&(l===e?s==s&&!as(s):r(s,l)))var l=s,c=a}return c}function hr(e,t){var n=[];return ur(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):Ot(o,s):r||(o[o.length]=s)}return o}var gr=To(),br=To(!0);function vr(e,t){return e&&gr(e,t,Rs)}function yr(e,t){return e&&br(e,t,Rs)}function Sr(e,t){return kt(t,(function(t){return Za(e[t])}))}function xr(t,n){for(var r=0,o=(n=vo(n,t)).length;null!=t&&r<o;)t=t[Ai(n[r++])];return r&&r==o?t:e}function wr(e,t,n){var r=t(e);return Ba(e)?r:Ot(r,n(e))}function Er(t){return null==t?t===e?"[object Undefined]":"[object Null]":Qe&&Qe in _e(t)?function(t){var n=Te.call(t,Qe),r=t[Qe];try{t[Qe]=e;var o=!0}catch(e){}var i=Pe.call(t);return o&&(n?t[Qe]=r:delete t[Qe]),i}(t):function(e){return Pe.call(e)}(t)}function _r(e,t){return e>t}function Cr(e,t){return null!=e&&Te.call(e,t)}function Lr(e,t){return null!=e&&t in _e(e)}function kr(t,n,r){for(var o=r?Rt:qt,i=t[0].length,a=t.length,s=a,l=ye(a),c=1/0,u=[];s--;){var d=t[s];s&&n&&(d=It(d,Kt(n))),c=bn(d.length,c),l[s]=!r&&(n||i>=120&&d.length>=120)?new Vn(s&&d):e}d=t[0];var f=-1,p=l[0];e:for(;++f<i&&u.length<c;){var h=d[f],m=n?n(h):h;if(h=r||0!==h?h:0,!(p?Jt(p,m):o(u,m,r))){for(s=a;--s;){var g=l[s];if(!(g?Jt(g,m):o(t[s],m,r)))continue e}p&&p.push(m),u.push(h)}}return u}function qr(t,n,r){var o=null==(t=Li(t,n=vo(n,t)))?t:t[Ai(Ki(n))];return null==o?e:wt(o,t,r)}function Rr(e){return Qa(e)&&Er(e)==f}function Ir(t,n,r,o,i){return t===n||(null==t||null==n||!Qa(t)&&!Qa(n)?t!=t&&n!=n:function(t,n,r,o,i,a){var s=Ba(t),l=Ba(n),c=s?p:pi(t),u=l?p:pi(n),d=(c=c==f?x:c)==x,b=(u=u==f?x:u)==x,v=c==u;if(v&&Va(t)){if(!Va(n))return!1;s=!0,d=!1}if(v&&!d)return a||(a=new Gn),s||ss(t)?ei(t,n,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case q:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case h:case m:case S:return ja(+e,+t);case g:return e.name==t.name&&e.message==t.message;case E:case C:return e==t+"";case y:var s=rn;case _:var l=1&r;if(s||(s=sn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ei(s(e),s(t),r,o,i,a);return a.delete(e),u;case L:if(Pn)return Pn.call(e)==Pn.call(t)}return!1}(t,n,c,r,o,i,a);if(!(1&r)){var w=d&&Te.call(t,"__wrapped__"),k=b&&Te.call(n,"__wrapped__");if(w||k){var I=w?t.value():t,O=k?n.value():n;return a||(a=new Gn),i(I,O,r,o,a)}}return!!v&&(a||(a=new Gn),function(t,n,r,o,i,a){var s=1&r,l=ni(t),c=l.length,u=ni(n),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in n:Te.call(n,p)))return!1}var h=a.get(t),m=a.get(n);if(h&&m)return h==n&&m==t;var g=!0;a.set(t,n),a.set(n,t);for(var b=s;++f<c;){var v=t[p=l[f]],y=n[p];if(o)var S=s?o(y,v,p,n,t,a):o(v,y,p,t,n,a);if(!(S===e?v===y||i(v,y,r,o,a):S)){g=!1;break}b||(b="constructor"==p)}if(g&&!b){var x=t.constructor,w=n.constructor;x==w||!("constructor"in t)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(t),a.delete(n),g}(t,n,r,o,i,a))}(t,n,r,o,Ir,i))}function Or(t,n,r,o){var i=r.length,a=i,s=!o;if(null==t)return!a;for(t=_e(t);i--;){var l=r[i];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i<a;){var c=(l=r[i])[0],u=t[c],d=l[1];if(s&&l[2]){if(u===e&&!(c in t))return!1}else{var f=new Gn;if(o)var p=o(u,d,c,t,n,f);if(!(p===e?Ir(d,u,3,o,f):p))return!1}}return!0}function Dr(e){return!(!Ya(e)||(t=e,Ae&&Ae in t))&&(Za(e)?ze:pe).test(Pi(e));var t}function Tr(e){return"function"==typeof e?e:null==e?tl:"object"==typeof e?Ba(e)?zr(e[0],e[1]):jr(e):ul(e)}function Mr(e){if(!wi(e))return mn(e);var t=[];for(var n in _e(e))Te.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ar(e){if(!Ya(e))return function(e){var t=[];if(null!=e)for(var n in _e(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Te.call(e,r))&&n.push(r);return n}function Pr(e,t){return e<t}function Nr(e,t){var n=-1,r=$a(e)?ye(e.length):[];return ur(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function jr(e){var t=ci(e);return 1==t.length&&t[0][2]?_i(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}}function zr(t,n){return yi(t)&&Ei(n)?_i(Ai(t),n):function(r){var o=_s(r,t);return o===e&&o===n?Cs(r,t):Ir(n,o,3)}}function Fr(t,n,r,o,i){t!==n&&gr(n,(function(a,s){if(i||(i=new Gn),Ya(a))!function(t,n,r,o,i,a,s){var l=ki(t,r),c=ki(n,r),u=s.get(c);if(u)Yn(t,r,u);else{var d=a?a(l,c,r+"",t,n,s):e,f=d===e;if(f){var p=Ba(c),h=!p&&Va(c),m=!p&&!h&&ss(c);d=c,p||h||m?Ba(l)?d=l:Ua(l)?d=qo(l):h?(f=!1,d=wo(c,!0)):m?(f=!1,d=_o(c,!0)):d=[]:ns(c)||Wa(c)?(d=l,Wa(l)?d=ms(l):Ya(l)&&!Za(l)||(d=mi(c))):f=!1}f&&(s.set(c,d),i(d,c,o,a,s),s.delete(c)),Yn(t,r,d)}}(t,n,s,r,Fr,o,i);else{var l=o?o(ki(t,s),a,s+"",t,n,i):e;l===e&&(l=a),Yn(t,s,l)}}),Is)}function Wr(t,n){var r=t.length;if(r)return bi(n+=n<0?r:0,r)?t[n]:e}function Br(e,t,n){t=t.length?It(t,(function(e){return Ba(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[tl];var r=-1;t=It(t,Kt(si()));var o=Nr(e,(function(e,n,o){var i=It(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=Co(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Hr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=xr(e,a);n(s,a)&&Xr(i,vo(a,e),s)}return i}function $r(e,t,n,r){var o=r?zt:jt,i=-1,a=t.length,s=e;for(e===t&&(t=qo(t)),n&&(s=It(e,Kt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Ge.call(s,l,1),Ge.call(e,l,1);return e}function Ur(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;bi(o)?Ge.call(e,o,1):co(e,o)}}return e}function Vr(e,t){return e+ht(Sn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>l)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ii(Ci(e,t,tl),e+"")}function Zr(e){return Zn(js(e))}function Jr(e,t){var n=js(e);return Ti(n,ir(t,0,n.length))}function Xr(t,n,r,o){if(!Ya(t))return t;for(var i=-1,a=(n=vo(n,t)).length,s=a-1,l=t;null!=l&&++i<a;){var c=Ai(n[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=s){var d=l[c];(u=o?o(d,c,l):e)===e&&(u=Ya(d)?d:bi(n[i+1])?[]:{})}Qn(l,c,u),l=l[c]}return t}var Yr=qn?function(e,t){return qn.set(e,t),e}:tl,Qr=it?function(e,t){return it(e,"toString",{configurable:!0,enumerable:!1,value:Ys(t),writable:!0})}:tl;function eo(e){return Ti(js(e))}function to(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=ye(o);++r<o;)i[r]=e[r+t];return i}function no(e,t){var n;return ur(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!as(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,tl,n)}function oo(t,n,r,o){var i=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(n=r(n))!=n,l=null===n,c=as(n),u=n===e;i<a;){var d=ht((i+a)/2),f=r(t[d]),p=f!==e,h=null===f,m=f==f,g=as(f);if(s)var b=o||m;else b=u?m&&(o||p):l?m&&p&&(o||!h):c?m&&p&&!h&&(o||!g):!h&&!g&&(o?f<=n:f<n);b?i=d+1:a=d}return bn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ja(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:as(e)?c:+e}function so(e){if("string"==typeof e)return e;if(Ba(e))return It(e,so)+"";if(as(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lo(e,t,n){var r=-1,o=qt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Rt;else if(i>=200){var c=t?null:Ko(e);if(c)return sn(c);a=!1,o=Jt,l=new Vn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function co(e,t){return null==(e=Li(e,t=vo(t,e)))||delete e[Ai(Ki(t))]}function uo(e,t,n,r){return Xr(e,t,n(xr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Bn&&(n=n.value()),Dt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function ho(e,t,n){var r=e.length;if(r<2)return r?lo(e[0]):[];for(var o=-1,i=ye(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=cr(i[o]||a,e[s],t,n));return lo(mr(i,1),t,n)}function mo(t,n,r){for(var o=-1,i=t.length,a=n.length,s={};++o<i;){var l=o<a?n[o]:e;r(s,t[o],l)}return s}function go(e){return Ua(e)?e:[]}function bo(e){return"function"==typeof e?e:tl}function vo(e,t){return Ba(e)?e:yi(e,t)?[e]:Mi(gs(e))}var yo=Kr;function So(t,n,r){var o=t.length;return r=r===e?o:r,!n&&r>=o?t:to(t,n,r)}var xo=lt||function(e){return ut.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Eo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function _o(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(t,n){if(t!==n){var r=t!==e,o=null===t,i=t==t,a=as(t),s=n!==e,l=null===n,c=n==n,u=as(n);if(!l&&!u&&!a&&t>n||a&&s&&c&&!l&&!u||o&&s&&c||!r&&c||!i)return 1;if(!o&&!a&&!u&&t<n||u&&r&&i&&!o&&!a||l&&r&&i||!s&&i||!c)return-1}return 0}function Lo(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,c=gn(i-a,0),u=ye(l+c),d=!r;++s<l;)u[s]=t[s];for(;++o<a;)(d||o<i)&&(u[n[o]]=e[o]);for(;c--;)u[s++]=e[o++];return u}function ko(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,c=t.length,u=gn(i-s,0),d=ye(u+c),f=!r;++o<u;)d[o]=e[o];for(var p=o;++l<c;)d[p+l]=t[l];for(;++a<s;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function qo(e,t){var n=-1,r=e.length;for(t||(t=ye(r));++n<r;)t[n]=e[n];return t}function Ro(t,n,r,o){var i=!r;r||(r={});for(var a=-1,s=n.length;++a<s;){var l=n[a],c=o?o(r[l],t[l],l,r,t):e;c===e&&(c=t[l]),i?rr(r,l,c):Qn(r,l,c)}return r}function Io(e,t){return function(n,r){var o=Ba(n)?Et:tr,i=t?t():{};return o(n,e,si(r,2),i)}}function Oo(t){return Kr((function(n,r){var o=-1,i=r.length,a=i>1?r[i-1]:e,s=i>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(i--,a):e,s&&vi(r[0],r[1],s)&&(a=i<3?e:a,i=1),n=_e(n);++o<i;){var l=r[o];l&&t(n,l,o,a)}return n}))}function Do(e,t){return function(n,r){if(null==n)return n;if(!$a(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=_e(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function To(e){return function(t,n,r){for(var o=-1,i=_e(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Mo(t){return function(n){var r=nn(n=gs(n))?un(n):e,o=r?r[0]:n.charAt(0),i=r?So(r,1).join(""):n.slice(1);return o[t]()+i}}function Ao(e){return function(t){return Dt(Zs(Ws(t).replace(Ze,"")),e,"")}}function Po(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return Ya(r)?r:n}}function No(t){return function(n,r,o){var i=_e(n);if(!$a(n)){var a=si(r,3);n=Rs(n),r=function(e){return a(i[e],e,i)}}var s=t(n,r,o);return s>-1?i[a?n[s]:s]:e}}function jo(n){return ti((function(r){var o=r.length,i=o,a=Wn.prototype.thru;for(n&&r.reverse();i--;){var s=r[i];if("function"!=typeof s)throw new ke(t);if(a&&!l&&"wrapper"==ii(s))var l=new Wn([],!0)}for(i=l?i:o;++i<o;){var c=ii(s=r[i]),u="wrapper"==c?oi(s):e;l=u&&Si(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ii(u[0])].apply(l,u[3]):1==s.length&&Si(s)?l[c]():l.thru(s)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&Ba(t))return l.plant(t).value();for(var n=0,i=o?r[n].apply(this,e):t;++n<o;)i=r[n].call(this,i);return i}}))}function zo(t,n,r,o,a,s,l,c,u,d){var f=n&i,p=1&n,h=2&n,m=24&n,g=512&n,b=h?e:Po(t);return function i(){for(var v=arguments.length,y=ye(v),S=v;S--;)y[S]=arguments[S];if(m)var x=ai(i),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,x);if(o&&(y=Lo(y,o,a,m)),s&&(y=ko(y,s,l,m)),v-=w,m&&v<d){var E=an(y,x);return Vo(t,n,zo,i.placeholder,r,y,E,c,u,d-v)}var _=p?r:this,C=h?_[t]:t;return v=y.length,c?y=function(t,n){for(var r=t.length,o=bn(n.length,r),i=qo(t);o--;){var a=n[o];t[o]=bi(a,r)?i[a]:e}return t}(y,c):g&&v>1&&y.reverse(),f&&u<v&&(y.length=u),this&&this!==ut&&this instanceof i&&(C=b||Po(C)),C.apply(_,y)}}function Fo(e,t){return function(n,r){return function(e,t,n,r){return vr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Wo(t,n){return function(r,o){var i;if(r===e&&o===e)return n;if(r!==e&&(i=r),o!==e){if(i===e)return o;"string"==typeof r||"string"==typeof o?(r=so(r),o=so(o)):(r=ao(r),o=ao(o)),i=t(r,o)}return i}}function Bo(e){return ti((function(t){return t=It(t,Kt(si())),Kr((function(n){var r=this;return e(t,(function(e){return wt(e,r,n)}))}))}))}function Ho(t,n){var r=(n=n===e?" ":so(n)).length;if(r<2)return r?Gr(n,t):n;var o=Gr(n,ft(t/cn(n)));return nn(n)?So(un(o),0,t).join(""):o.slice(0,t)}function $o(t){return function(n,r,o){return o&&"number"!=typeof o&&vi(n,r,o)&&(r=o=e),n=ds(n),r===e?(r=n,n=0):r=ds(r),function(e,t,n,r){for(var o=-1,i=gn(ft((t-e)/(n||1)),0),a=ye(i);i--;)a[r?i:++o]=e,e+=n;return a}(n,r,o=o===e?n<r?1:-1:ds(o),t)}}function Uo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=hs(t),n=hs(n)),e(t,n)}}function Vo(t,n,r,i,a,s,l,c,u,d){var f=8&n;n|=f?o:64,4&(n&=~(f?64:o))||(n&=-4);var p=[t,n,a,f?s:e,f?l:e,f?e:s,f?e:l,c,u,d],h=r.apply(e,p);return Si(t)&&qi(h,p),h.placeholder=i,Oi(h,t,n)}function Go(e){var t=Ee[e];return function(e,n){if(e=hs(e),(n=null==n?0:bn(fs(n),292))&&Ht(e)){var r=(gs(e)+"e").split("e");return+((r=(gs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ko=Cn&&1/sn(new Cn([,-0]))[1]==s?function(e){return new Cn(e)}:al;function Zo(e){return function(t){var n=pi(t);return n==y?rn(t):n==_?ln(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(n,s,l,c,u,d,f,p){var h=2&s;if(!h&&"function"!=typeof n)throw new ke(t);var m=c?c.length:0;if(m||(s&=-97,c=u=e),f=f===e?f:gn(fs(f),0),p=p===e?p:fs(p),m-=u?u.length:0,64&s){var g=c,b=u;c=u=e}var v=h?e:oi(n),y=[n,s,l,c,u,g,b,d,f,p];if(v&&function(e,t){var n=e[1],o=t[1],s=n|o,l=s<131,c=o==i&&8==n||o==i&&n==a&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!l&&!c)return e;1&o&&(e[2]=t[2],s|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Lo(d,u,t[4]):u,e[4]=d?an(e[3],r):t[4]}(u=t[5])&&(d=e[5],e[5]=d?ko(d,u,t[6]):u,e[6]=d?an(e[5],r):t[6]),(u=t[7])&&(e[7]=u),o&i&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=s}(y,v),n=y[0],s=y[1],l=y[2],c=y[3],u=y[4],!(p=y[9]=y[9]===e?h?0:n.length:gn(y[9]-m,0))&&24&s&&(s&=-25),s&&1!=s)S=8==s||16==s?function(t,n,r){var o=Po(t);return function i(){for(var a=arguments.length,s=ye(a),l=a,c=ai(i);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:an(s,c);return(a-=u.length)<r?Vo(t,n,zo,i.placeholder,e,s,u,e,e,r-a):wt(this&&this!==ut&&this instanceof i?o:t,this,s)}}(n,s,p):s!=o&&33!=s||u.length?zo.apply(e,y):function(e,t,n,r){var o=1&t,i=Po(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=ye(c+s),d=this&&this!==ut&&this instanceof t?i:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return wt(d,o?n:this,u)}}(n,s,l,c);else var S=function(e,t,n){var r=1&t,o=Po(e);return function t(){return(this&&this!==ut&&this instanceof t?o:e).apply(r?n:this,arguments)}}(n,s,l);return Oi((v?Yr:qi)(S,y),n,s)}function Xo(t,n,r,o){return t===e||ja(t,Ie[r])&&!Te.call(o,r)?n:t}function Yo(t,n,r,o,i,a){return Ya(t)&&Ya(n)&&(a.set(n,t),Fr(t,n,e,Yo,a),a.delete(n)),t}function Qo(t){return ns(t)?e:t}function ei(t,n,r,o,i,a){var s=1&r,l=t.length,c=n.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(t),d=a.get(n);if(u&&d)return u==n&&d==t;var f=-1,p=!0,h=2&r?new Vn:e;for(a.set(t,n),a.set(n,t);++f<l;){var m=t[f],g=n[f];if(o)var b=s?o(g,m,f,n,t,a):o(m,g,f,t,n,a);if(b!==e){if(b)continue;p=!1;break}if(h){if(!Mt(n,(function(e,t){if(!Jt(h,t)&&(m===e||i(m,e,r,o,a)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!i(m,g,r,o,a)){p=!1;break}}return a.delete(t),a.delete(n),p}function ti(t){return Ii(Ci(t,e,Hi),t+"")}function ni(e){return wr(e,Rs,di)}function ri(e){return wr(e,Is,fi)}var oi=qn?function(e){return qn.get(e)}:al;function ii(e){for(var t=e.name+"",n=Rn[t],r=Te.call(Rn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Te.call(jn,"placeholder")?jn:e).placeholder}function si(){var e=jn.iteratee||nl;return e=e===nl?Tr:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ci(e){for(var t=Rs(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ei(o)]}return t}function ui(t,n){var r=function(t,n){return null==t?e:t[n]}(t,n);return Dr(r)?r:e}var di=mt?function(e){return null==e?[]:(e=_e(e),kt(mt(e),(function(t){return Ve.call(e,t)})))}:pl,fi=mt?function(e){for(var t=[];e;)Ot(t,di(e)),e=$e(e);return t}:pl,pi=Er;function hi(e,t,n){for(var r=-1,o=(t=vo(t,e)).length,i=!1;++r<o;){var a=Ai(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Xa(o)&&bi(a,o)&&(Ba(e)||Wa(e))}function mi(e){return"function"!=typeof e.constructor||wi(e)?{}:zn($e(e))}function gi(e){return Ba(e)||Wa(e)||!!(Ke&&e&&e[Ke])}function bi(e,t){var n=typeof e;return!!(t=null==t?l:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!Ya(n))return!1;var r=typeof t;return!!("number"==r?$a(n)&&bi(t,n.length):"string"==r&&t in n)&&ja(n[t],e)}function yi(e,t){if(Ba(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!as(e))||X.test(e)||!J.test(e)||null!=t&&e in _e(t)}function Si(e){var t=ii(e),n=jn[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(wn&&pi(new wn(new ArrayBuffer(1)))!=R||En&&pi(new En)!=y||_n&&pi(_n.resolve())!=w||Cn&&pi(new Cn)!=_||Ln&&pi(new Ln)!=k)&&(pi=function(t){var n=Er(t),r=n==x?t.constructor:e,o=r?Pi(r):"";if(o)switch(o){case In:return R;case On:return y;case Dn:return w;case Tn:return _;case Mn:return k}return n});var xi=Oe?Za:hl;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function Ei(e){return e==e&&!Ya(e)}function _i(t,n){return function(r){return null!=r&&r[t]===n&&(n!==e||t in _e(r))}}function Ci(t,n,r){return n=gn(n===e?t.length-1:n,0),function(){for(var e=arguments,o=-1,i=gn(e.length-n,0),a=ye(i);++o<i;)a[o]=e[n+o];o=-1;for(var s=ye(n+1);++o<n;)s[o]=e[o];return s[n]=r(a),wt(t,this,s)}}function Li(e,t){return t.length<2?e:xr(e,to(t,0,-1))}function ki(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var qi=Di(Yr),Ri=dt||function(e,t){return ut.setTimeout(e,t)},Ii=Di(Qr);function Oi(e,t,n){var r=t+"";return Ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return _t(d,(function(n){var r="_."+n[0];t&n[1]&&!qt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(ie):[]}(r),n)))}function Di(t){var n=0,r=0;return function(){var o=vn(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Ti(t,n){var r=-1,o=t.length,i=o-1;for(n=n===e?o:n;++r<n;){var a=Vr(r,i),s=t[a];t[a]=t[r],t[r]=s}return t.length=n,t}var Mi=function(e){var t=Da(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Y,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}));function Ai(e){if("string"==typeof e||as(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pi(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ni(e){if(e instanceof Bn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=qo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ji=Kr((function(e,t){return Ua(e)?cr(e,mr(t,1,Ua,!0)):[]})),zi=Kr((function(t,n){var r=Ki(n);return Ua(r)&&(r=e),Ua(t)?cr(t,mr(n,1,Ua,!0),si(r,2)):[]})),Fi=Kr((function(t,n){var r=Ki(n);return Ua(r)&&(r=e),Ua(t)?cr(t,mr(n,1,Ua,!0),e,r):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fs(n);return o<0&&(o=gn(r+o,0)),Nt(e,si(t,3),o)}function Bi(t,n,r){var o=null==t?0:t.length;if(!o)return-1;var i=o-1;return r!==e&&(i=fs(r),i=r<0?gn(o+i,0):bn(i,o-1)),Nt(t,si(n,3),i,!0)}function Hi(e){return null!=e&&e.length?mr(e,1):[]}function $i(t){return t&&t.length?t[0]:e}var Ui=Kr((function(e){var t=It(e,go);return t.length&&t[0]===e[0]?kr(t):[]})),Vi=Kr((function(t){var n=Ki(t),r=It(t,go);return n===Ki(r)?n=e:r.pop(),r.length&&r[0]===t[0]?kr(r,si(n,2)):[]})),Gi=Kr((function(t){var n=Ki(t),r=It(t,go);return(n="function"==typeof n?n:e)&&r.pop(),r.length&&r[0]===t[0]?kr(r,e,n):[]}));function Ki(t){var n=null==t?0:t.length;return n?t[n-1]:e}var Zi=Kr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}var Xi=ti((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Ur(e,It(t,(function(e){return bi(e,n)?+e:e})).sort(Co)),r}));function Yi(e){return null==e?e:xn.call(e)}var Qi=Kr((function(e){return lo(mr(e,1,Ua,!0))})),ea=Kr((function(t){var n=Ki(t);return Ua(n)&&(n=e),lo(mr(t,1,Ua,!0),si(n,2))})),ta=Kr((function(t){var n=Ki(t);return n="function"==typeof n?n:e,lo(mr(t,1,Ua,!0),e,n)}));function na(e){if(!e||!e.length)return[];var t=0;return e=kt(e,(function(e){if(Ua(e))return t=gn(e.length,t),!0})),Vt(t,(function(t){return It(e,Bt(t))}))}function ra(t,n){if(!t||!t.length)return[];var r=na(t);return null==n?r:It(r,(function(t){return wt(n,e,t)}))}var oa=Kr((function(e,t){return Ua(e)?cr(e,t):[]})),ia=Kr((function(e){return ho(kt(e,Ua))})),aa=Kr((function(t){var n=Ki(t);return Ua(n)&&(n=e),ho(kt(t,Ua),si(n,2))})),sa=Kr((function(t){var n=Ki(t);return n="function"==typeof n?n:e,ho(kt(t,Ua),e,n)})),la=Kr(na),ca=Kr((function(t){var n=t.length,r=n>1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,ra(t,r)}));function ua(e){var t=jn(e);return t.__chain__=!0,t}function da(e,t){return t(e)}var fa=ti((function(t){var n=t.length,r=n?t[0]:0,o=this.__wrapped__,i=function(e){return or(e,t)};return!(n>1||this.__actions__.length)&&o instanceof Bn&&bi(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:da,args:[i],thisArg:e}),new Wn(o,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(i)})),pa=Io((function(e,t,n){Te.call(e,n)?++e[n]:rr(e,n,1)})),ha=No(Wi),ma=No(Bi);function ga(e,t){return(Ba(e)?_t:ur)(e,si(t,3))}function ba(e,t){return(Ba(e)?Ct:dr)(e,si(t,3))}var va=Io((function(e,t,n){Te.call(e,n)?e[n].push(t):rr(e,n,[t])})),ya=Kr((function(e,t,n){var r=-1,o="function"==typeof t,i=$a(e)?ye(e.length):[];return ur(e,(function(e){i[++r]=o?wt(t,e,n):qr(e,t,n)})),i})),Sa=Io((function(e,t,n){rr(e,n,t)}));function xa(e,t){return(Ba(e)?It:Nr)(e,si(t,3))}var wa=Io((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ea=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vi(e,t[0],t[1])?t=[]:n>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,mr(t,1),[])})),_a=ct||function(){return ut.Date.now()};function Ca(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,Jo(t,i,e,e,e,e,n)}function La(n,r){var o;if("function"!=typeof r)throw new ke(t);return n=fs(n),function(){return--n>0&&(o=r.apply(this,arguments)),n<=1&&(r=e),o}}var ka=Kr((function(e,t,n){var r=1;if(n.length){var i=an(n,ai(ka));r|=o}return Jo(e,r,t,n,i)})),qa=Kr((function(e,t,n){var r=3;if(n.length){var i=an(n,ai(qa));r|=o}return Jo(t,r,e,n,i)}));function Ra(n,r,o){var i,a,s,l,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof n)throw new ke(t);function m(t){var r=i,o=a;return i=a=e,d=t,l=n.apply(o,r)}function g(t){var n=t-u;return u===e||n>=r||n<0||p&&t-d>=s}function b(){var e=_a();if(g(e))return v(e);c=Ri(b,function(e){var t=r-(e-u);return p?bn(t,s-(e-d)):t}(e))}function v(t){return c=e,h&&i?m(t):(i=a=e,l)}function y(){var t=_a(),n=g(t);if(i=arguments,a=this,u=t,n){if(c===e)return function(e){return d=e,c=Ri(b,r),f?m(e):l}(u);if(p)return xo(c),c=Ri(b,r),m(u)}return c===e&&(c=Ri(b,r)),l}return r=hs(r)||0,Ya(o)&&(f=!!o.leading,s=(p="maxWait"in o)?gn(hs(o.maxWait)||0,r):s,h="trailing"in o?!!o.trailing:h),y.cancel=function(){c!==e&&xo(c),d=0,i=u=a=c=e},y.flush=function(){return c===e?l:v(_a())},y}var Ia=Kr((function(e,t){return lr(e,1,t)})),Oa=Kr((function(e,t,n){return lr(e,hs(t)||0,n)}));function Da(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new ke(t);var r=function(){var t=arguments,o=n?n.apply(this,t):t[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,t);return r.cache=i.set(o,a)||i,a};return r.cache=new(Da.Cache||Un),r}function Ta(e){if("function"!=typeof e)throw new ke(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=Un;var Ma=yo((function(e,t){var n=(t=1==t.length&&Ba(t[0])?It(t[0],Kt(si())):It(mr(t,1),Kt(si()))).length;return Kr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return wt(e,this,r)}))})),Aa=Kr((function(t,n){var r=an(n,ai(Aa));return Jo(t,o,e,n,r)})),Pa=Kr((function(t,n){var r=an(n,ai(Pa));return Jo(t,64,e,n,r)})),Na=ti((function(t,n){return Jo(t,a,e,e,e,n)}));function ja(e,t){return e===t||e!=e&&t!=t}var za=Uo(_r),Fa=Uo((function(e,t){return e>=t})),Wa=Rr(function(){return arguments}())?Rr:function(e){return Qa(e)&&Te.call(e,"callee")&&!Ve.call(e,"callee")},Ba=ye.isArray,Ha=gt?Kt(gt):function(e){return Qa(e)&&Er(e)==q};function $a(e){return null!=e&&Xa(e.length)&&!Za(e)}function Ua(e){return Qa(e)&&$a(e)}var Va=At||hl,Ga=bt?Kt(bt):function(e){return Qa(e)&&Er(e)==m};function Ka(e){if(!Qa(e))return!1;var t=Er(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function Za(e){if(!Ya(e))return!1;var t=Er(e);return t==b||t==v||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==fs(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function Ya(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qa(e){return null!=e&&"object"==typeof e}var es=vt?Kt(vt):function(e){return Qa(e)&&pi(e)==y};function ts(e){return"number"==typeof e||Qa(e)&&Er(e)==S}function ns(e){if(!Qa(e)||Er(e)!=x)return!1;var t=$e(e);if(null===t)return!0;var n=Te.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Ne}var rs=yt?Kt(yt):function(e){return Qa(e)&&Er(e)==E},os=St?Kt(St):function(e){return Qa(e)&&pi(e)==_};function is(e){return"string"==typeof e||!Ba(e)&&Qa(e)&&Er(e)==C}function as(e){return"symbol"==typeof e||Qa(e)&&Er(e)==L}var ss=xt?Kt(xt):function(e){return Qa(e)&&Xa(e.length)&&!!rt[Er(e)]},ls=Uo(Pr),cs=Uo((function(e,t){return e<=t}));function us(e){if(!e)return[];if($a(e))return is(e)?un(e):qo(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=pi(e);return(t==y?rn:t==_?sn:js)(e)}function ds(e){return e?(e=hs(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=ds(e),n=t%1;return t==t?n?t-n:t:0}function ps(e){return e?ir(fs(e),0,u):0}function hs(e){if("number"==typeof e)return e;if(as(e))return c;if(Ya(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ya(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var n=fe.test(e);return n||he.test(e)?st(e.slice(2),n?2:8):de.test(e)?c:+e}function ms(e){return Ro(e,Is(e))}function gs(e){return null==e?"":so(e)}var bs=Oo((function(e,t){if(wi(t)||$a(t))Ro(t,Rs(t),e);else for(var n in t)Te.call(t,n)&&Qn(e,n,t[n])})),vs=Oo((function(e,t){Ro(t,Is(t),e)})),ys=Oo((function(e,t,n,r){Ro(t,Is(t),e,r)})),Ss=Oo((function(e,t,n,r){Ro(t,Rs(t),e,r)})),xs=ti(or),ws=Kr((function(t,n){t=_e(t);var r=-1,o=n.length,i=o>2?n[2]:e;for(i&&vi(n[0],n[1],i)&&(o=1);++r<o;)for(var a=n[r],s=Is(a),l=-1,c=s.length;++l<c;){var u=s[l],d=t[u];(d===e||ja(d,Ie[u])&&!Te.call(t,u))&&(t[u]=a[u])}return t})),Es=Kr((function(t){return t.push(e,Yo),wt(Ds,e,t)}));function _s(t,n,r){var o=null==t?e:xr(t,n);return o===e?r:o}function Cs(e,t){return null!=e&&hi(e,t,Lr)}var Ls=Fo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),e[t]=n}),Ys(tl)),ks=Fo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),Te.call(e,t)?e[t].push(n):e[t]=[n]}),si),qs=Kr(qr);function Rs(e){return $a(e)?Kn(e):Mr(e)}function Is(e){return $a(e)?Kn(e,!0):Ar(e)}var Os=Oo((function(e,t,n){Fr(e,t,n)})),Ds=Oo((function(e,t,n,r){Fr(e,t,n,r)})),Ts=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=It(t,(function(t){return t=vo(t,e),r||(r=t.length>1),t})),Ro(e,ri(e),n),r&&(n=ar(n,7,Qo));for(var o=t.length;o--;)co(n,t[o]);return n})),Ms=ti((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function As(e,t){if(null==e)return{};var n=It(ri(e),(function(e){return[e]}));return t=si(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Ps=Zo(Rs),Ns=Zo(Is);function js(e){return null==e?[]:Zt(e,Rs(e))}var zs=Ao((function(e,t,n){return t=t.toLowerCase(),e+(n?Fs(t):t)}));function Fs(e){return Ks(gs(e).toLowerCase())}function Ws(e){return(e=gs(e))&&e.replace(ge,Qt).replace(Je,"")}var Bs=Ao((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Hs=Ao((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$s=Mo("toLowerCase"),Us=Ao((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Vs=Ao((function(e,t,n){return e+(n?" ":"")+Ks(t)})),Gs=Ao((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Mo("toUpperCase");function Zs(t,n,r){return t=gs(t),(n=r?e:n)===e?function(e){return et.test(e)}(t)?function(e){return e.match(Ye)||[]}(t):function(e){return e.match(ae)||[]}(t):t.match(n)||[]}var Js=Kr((function(t,n){try{return wt(t,e,n)}catch(e){return Ka(e)?e:new xe(e)}})),Xs=ti((function(e,t){return _t(t,(function(t){t=Ai(t),rr(e,t,ka(e[t],e))})),e}));function Ys(e){return function(){return e}}var Qs=jo(),el=jo(!0);function tl(e){return e}function nl(e){return Tr("function"==typeof e?e:ar(e,1))}var rl=Kr((function(e,t){return function(n){return qr(n,e,t)}})),ol=Kr((function(e,t){return function(n){return qr(e,n,t)}}));function il(e,t,n){var r=Rs(t),o=Sr(t,r);null!=n||Ya(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Sr(t,Rs(t)));var i=!(Ya(n)&&"chain"in n&&!n.chain),a=Za(e);return _t(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=qo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function al(){}var sl=Bo(It),ll=Bo(Lt),cl=Bo(Mt);function ul(e){return yi(e)?Bt(Ai(e)):function(e){return function(t){return xr(t,e)}}(e)}var dl=$o(),fl=$o(!0);function pl(){return[]}function hl(){return!1}var ml,gl=Wo((function(e,t){return e+t}),0),bl=Go("ceil"),vl=Wo((function(e,t){return e/t}),1),yl=Go("floor"),Sl=Wo((function(e,t){return e*t}),1),xl=Go("round"),wl=Wo((function(e,t){return e-t}),0);return jn.after=function(e,n){if("function"!=typeof n)throw new ke(t);return e=fs(e),function(){if(--e<1)return n.apply(this,arguments)}},jn.ary=Ca,jn.assign=bs,jn.assignIn=vs,jn.assignInWith=ys,jn.assignWith=Ss,jn.at=xs,jn.before=La,jn.bind=ka,jn.bindAll=Xs,jn.bindKey=qa,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ba(e)?e:[e]},jn.chain=ua,jn.chunk=function(t,n,r){n=(r?vi(t,n,r):n===e)?1:gn(fs(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var i=0,a=0,s=ye(ft(o/n));i<o;)s[a++]=to(t,i,i+=n);return s},jn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},jn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ye(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Ot(Ba(n)?qo(n):[n],mr(t,1))},jn.cond=function(e){var n=null==e?0:e.length,r=si();return e=n?It(e,(function(e){if("function"!=typeof e[1])throw new ke(t);return[r(e[0]),e[1]]})):[],Kr((function(t){for(var r=-1;++r<n;){var o=e[r];if(wt(o[0],this,t))return wt(o[1],this,t)}}))},jn.conforms=function(e){return function(e){var t=Rs(e);return function(n){return sr(n,e,t)}}(ar(e,1))},jn.constant=Ys,jn.countBy=pa,jn.create=function(e,t){var n=zn(e);return null==t?n:nr(n,t)},jn.curry=function t(n,r,o){var i=Jo(n,8,e,e,e,e,e,r=o?e:r);return i.placeholder=t.placeholder,i},jn.curryRight=function t(n,r,o){var i=Jo(n,16,e,e,e,e,e,r=o?e:r);return i.placeholder=t.placeholder,i},jn.debounce=Ra,jn.defaults=ws,jn.defaultsDeep=Es,jn.defer=Ia,jn.delay=Oa,jn.difference=ji,jn.differenceBy=zi,jn.differenceWith=Fi,jn.drop=function(t,n,r){var o=null==t?0:t.length;return o?to(t,(n=r||n===e?1:fs(n))<0?0:n,o):[]},jn.dropRight=function(t,n,r){var o=null==t?0:t.length;return o?to(t,0,(n=o-(n=r||n===e?1:fs(n)))<0?0:n):[]},jn.dropRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0):[]},jn.fill=function(t,n,r,o){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&vi(t,n,r)&&(r=0,o=i),function(t,n,r,o){var i=t.length;for((r=fs(r))<0&&(r=-r>i?0:i+r),(o=o===e||o>i?i:fs(o))<0&&(o+=i),o=r>o?0:ps(o);r<o;)t[r++]=n;return t}(t,n,r,o)):[]},jn.filter=function(e,t){return(Ba(e)?kt:hr)(e,si(t,3))},jn.flatMap=function(e,t){return mr(xa(e,t),1)},jn.flatMapDeep=function(e,t){return mr(xa(e,t),s)},jn.flatMapDepth=function(t,n,r){return r=r===e?1:fs(r),mr(xa(t,n),r)},jn.flatten=Hi,jn.flattenDeep=function(e){return null!=e&&e.length?mr(e,s):[]},jn.flattenDepth=function(t,n){return null!=t&&t.length?mr(t,n=n===e?1:fs(n)):[]},jn.flip=function(e){return Jo(e,512)},jn.flow=Qs,jn.flowRight=el,jn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},jn.functions=function(e){return null==e?[]:Sr(e,Rs(e))},jn.functionsIn=function(e){return null==e?[]:Sr(e,Is(e))},jn.groupBy=va,jn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},jn.intersection=Ui,jn.intersectionBy=Vi,jn.intersectionWith=Gi,jn.invert=Ls,jn.invertBy=ks,jn.invokeMap=ya,jn.iteratee=nl,jn.keyBy=Sa,jn.keys=Rs,jn.keysIn=Is,jn.map=xa,jn.mapKeys=function(e,t){var n={};return t=si(t,3),vr(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},jn.mapValues=function(e,t){var n={};return t=si(t,3),vr(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},jn.matches=function(e){return jr(ar(e,1))},jn.matchesProperty=function(e,t){return zr(e,ar(t,1))},jn.memoize=Da,jn.merge=Os,jn.mergeWith=Ds,jn.method=rl,jn.methodOf=ol,jn.mixin=il,jn.negate=Ta,jn.nthArg=function(e){return e=fs(e),Kr((function(t){return Wr(t,e)}))},jn.omit=Ts,jn.omitBy=function(e,t){return As(e,Ta(si(t)))},jn.once=function(e){return La(2,e)},jn.orderBy=function(t,n,r,o){return null==t?[]:(Ba(n)||(n=null==n?[]:[n]),Ba(r=o?e:r)||(r=null==r?[]:[r]),Br(t,n,r))},jn.over=sl,jn.overArgs=Ma,jn.overEvery=ll,jn.overSome=cl,jn.partial=Aa,jn.partialRight=Pa,jn.partition=wa,jn.pick=Ms,jn.pickBy=As,jn.property=ul,jn.propertyOf=function(t){return function(n){return null==t?e:xr(t,n)}},jn.pull=Zi,jn.pullAll=Ji,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,si(n,2)):e},jn.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?$r(t,n,e,r):t},jn.pullAt=Xi,jn.range=dl,jn.rangeRight=fl,jn.rearg=Na,jn.reject=function(e,t){return(Ba(e)?kt:hr)(e,Ta(si(t,3)))},jn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Ur(e,o),n},jn.rest=function(n,r){if("function"!=typeof n)throw new ke(t);return Kr(n,r=r===e?r:fs(r))},jn.reverse=Yi,jn.sampleSize=function(t,n,r){return n=(r?vi(t,n,r):n===e)?1:fs(n),(Ba(t)?Jn:Jr)(t,n)},jn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},jn.setWith=function(t,n,r,o){return o="function"==typeof o?o:e,null==t?t:Xr(t,n,r,o)},jn.shuffle=function(e){return(Ba(e)?Xn:eo)(e)},jn.slice=function(t,n,r){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&vi(t,n,r)?(n=0,r=o):(n=null==n?0:fs(n),r=r===e?o:fs(r)),to(t,n,r)):[]},jn.sortBy=Ea,jn.sortedUniq=function(e){return e&&e.length?io(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},jn.split=function(t,n,r){return r&&"number"!=typeof r&&vi(t,n,r)&&(n=r=e),(r=r===e?u:r>>>0)?(t=gs(t))&&("string"==typeof n||null!=n&&!rs(n))&&!(n=so(n))&&nn(t)?So(un(t),0,r):t.split(n,r):[]},jn.spread=function(e,n){if("function"!=typeof e)throw new ke(t);return n=null==n?0:gn(fs(n),0),Kr((function(t){var r=t[n],o=So(t,0,n);return r&&Ot(o,r),wt(e,this,o)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},jn.take=function(t,n,r){return t&&t.length?to(t,0,(n=r||n===e?1:fs(n))<0?0:n):[]},jn.takeRight=function(t,n,r){var o=null==t?0:t.length;return o?to(t,(n=o-(n=r||n===e?1:fs(n)))<0?0:n,o):[]},jn.takeRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?fo(e,si(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw new ke(t);return Ya(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Ra(e,n,{leading:o,maxWait:n,trailing:i})},jn.thru=da,jn.toArray=us,jn.toPairs=Ps,jn.toPairsIn=Ns,jn.toPath=function(e){return Ba(e)?It(e,Ai):as(e)?[e]:qo(Mi(gs(e)))},jn.toPlainObject=ms,jn.transform=function(e,t,n){var r=Ba(e),o=r||Va(e)||ss(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ya(e)&&Za(i)?zn($e(e)):{}}return(o?_t:vr)(e,(function(e,r,o){return t(n,e,r,o)})),n},jn.unary=function(e){return Ca(e,1)},jn.union=Qi,jn.unionBy=ea,jn.unionWith=ta,jn.uniq=function(e){return e&&e.length?lo(e):[]},jn.uniqBy=function(e,t){return e&&e.length?lo(e,si(t,2)):[]},jn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?lo(t,e,n):[]},jn.unset=function(e,t){return null==e||co(e,t)},jn.unzip=na,jn.unzipWith=ra,jn.update=function(e,t,n){return null==e?e:uo(e,t,bo(n))},jn.updateWith=function(t,n,r,o){return o="function"==typeof o?o:e,null==t?t:uo(t,n,bo(r),o)},jn.values=js,jn.valuesIn=function(e){return null==e?[]:Zt(e,Is(e))},jn.without=oa,jn.words=Zs,jn.wrap=function(e,t){return Aa(bo(t),e)},jn.xor=ia,jn.xorBy=aa,jn.xorWith=sa,jn.zip=la,jn.zipObject=function(e,t){return mo(e||[],t||[],Qn)},jn.zipObjectDeep=function(e,t){return mo(e||[],t||[],Xr)},jn.zipWith=ca,jn.entries=Ps,jn.entriesIn=Ns,jn.extend=vs,jn.extendWith=ys,il(jn,jn),jn.add=gl,jn.attempt=Js,jn.camelCase=zs,jn.capitalize=Fs,jn.ceil=bl,jn.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=hs(r))==r?r:0),n!==e&&(n=(n=hs(n))==n?n:0),ir(hs(t),n,r)},jn.clone=function(e){return ar(e,4)},jn.cloneDeep=function(e){return ar(e,5)},jn.cloneDeepWith=function(t,n){return ar(t,5,n="function"==typeof n?n:e)},jn.cloneWith=function(t,n){return ar(t,4,n="function"==typeof n?n:e)},jn.conformsTo=function(e,t){return null==t||sr(e,t,Rs(t))},jn.deburr=Ws,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=vl,jn.endsWith=function(t,n,r){t=gs(t),n=so(n);var o=t.length,i=r=r===e?o:ir(fs(r),0,o);return(r-=n.length)>=0&&t.slice(r,i)==n},jn.eq=ja,jn.escape=function(e){return(e=gs(e))&&U.test(e)?e.replace(H,en):e},jn.escapeRegExp=function(e){return(e=gs(e))&&ee.test(e)?e.replace(Q,"\\$&"):e},jn.every=function(t,n,r){var o=Ba(t)?Lt:fr;return r&&vi(t,n,r)&&(n=e),o(t,si(n,3))},jn.find=ha,jn.findIndex=Wi,jn.findKey=function(e,t){return Pt(e,si(t,3),vr)},jn.findLast=ma,jn.findLastIndex=Bi,jn.findLastKey=function(e,t){return Pt(e,si(t,3),yr)},jn.floor=yl,jn.forEach=ga,jn.forEachRight=ba,jn.forIn=function(e,t){return null==e?e:gr(e,si(t,3),Is)},jn.forInRight=function(e,t){return null==e?e:br(e,si(t,3),Is)},jn.forOwn=function(e,t){return e&&vr(e,si(t,3))},jn.forOwnRight=function(e,t){return e&&yr(e,si(t,3))},jn.get=_s,jn.gt=za,jn.gte=Fa,jn.has=function(e,t){return null!=e&&hi(e,t,Cr)},jn.hasIn=Cs,jn.head=$i,jn.identity=tl,jn.includes=function(e,t,n,r){e=$a(e)?e:js(e),n=n&&!r?fs(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),is(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&jt(e,t,n)>-1},jn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fs(n);return o<0&&(o=gn(r+o,0)),jt(e,t,o)},jn.inRange=function(t,n,r){return n=ds(n),r===e?(r=n,n=0):r=ds(r),function(e,t,n){return e>=bn(t,n)&&e<gn(t,n)}(t=hs(t),n,r)},jn.invoke=qs,jn.isArguments=Wa,jn.isArray=Ba,jn.isArrayBuffer=Ha,jn.isArrayLike=$a,jn.isArrayLikeObject=Ua,jn.isBoolean=function(e){return!0===e||!1===e||Qa(e)&&Er(e)==h},jn.isBuffer=Va,jn.isDate=Ga,jn.isElement=function(e){return Qa(e)&&1===e.nodeType&&!ns(e)},jn.isEmpty=function(e){if(null==e)return!0;if($a(e)&&(Ba(e)||"string"==typeof e||"function"==typeof e.splice||Va(e)||ss(e)||Wa(e)))return!e.length;var t=pi(e);if(t==y||t==_)return!e.size;if(wi(e))return!Mr(e).length;for(var n in e)if(Te.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Ir(e,t)},jn.isEqualWith=function(t,n,r){var o=(r="function"==typeof r?r:e)?r(t,n):e;return o===e?Ir(t,n,e,r):!!o},jn.isError=Ka,jn.isFinite=function(e){return"number"==typeof e&&Ht(e)},jn.isFunction=Za,jn.isInteger=Ja,jn.isLength=Xa,jn.isMap=es,jn.isMatch=function(e,t){return e===t||Or(e,t,ci(t))},jn.isMatchWith=function(t,n,r){return r="function"==typeof r?r:e,Or(t,n,ci(n),r)},jn.isNaN=function(e){return ts(e)&&e!=+e},jn.isNative=function(e){if(xi(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=ts,jn.isObject=Ya,jn.isObjectLike=Qa,jn.isPlainObject=ns,jn.isRegExp=rs,jn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=l},jn.isSet=os,jn.isString=is,jn.isSymbol=as,jn.isTypedArray=ss,jn.isUndefined=function(t){return t===e},jn.isWeakMap=function(e){return Qa(e)&&pi(e)==k},jn.isWeakSet=function(e){return Qa(e)&&"[object WeakSet]"==Er(e)},jn.join=function(e,t){return null==e?"":hn.call(e,t)},jn.kebabCase=Bs,jn.last=Ki,jn.lastIndexOf=function(t,n,r){var o=null==t?0:t.length;if(!o)return-1;var i=o;return r!==e&&(i=(i=fs(r))<0?gn(o+i,0):bn(i,o-1)),n==n?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(t,n,i):Nt(t,Ft,i,!0)},jn.lowerCase=Hs,jn.lowerFirst=$s,jn.lt=ls,jn.lte=cs,jn.max=function(t){return t&&t.length?pr(t,tl,_r):e},jn.maxBy=function(t,n){return t&&t.length?pr(t,si(n,2),_r):e},jn.mean=function(e){return Wt(e,tl)},jn.meanBy=function(e,t){return Wt(e,si(t,2))},jn.min=function(t){return t&&t.length?pr(t,tl,Pr):e},jn.minBy=function(t,n){return t&&t.length?pr(t,si(n,2),Pr):e},jn.stubArray=pl,jn.stubFalse=hl,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=Sl,jn.nth=function(t,n){return t&&t.length?Wr(t,fs(n)):e},jn.noConflict=function(){return ut._===this&&(ut._=je),this},jn.noop=al,jn.now=_a,jn.pad=function(e,t,n){e=gs(e);var r=(t=fs(t))?cn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ho(ht(o),n)+e+Ho(ft(o),n)},jn.padEnd=function(e,t,n){e=gs(e);var r=(t=fs(t))?cn(e):0;return t&&r<t?e+Ho(t-r,n):e},jn.padStart=function(e,t,n){e=gs(e);var r=(t=fs(t))?cn(e):0;return t&&r<t?Ho(t-r,n)+e:e},jn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(gs(e).replace(te,""),t||0)},jn.random=function(t,n,r){if(r&&"boolean"!=typeof r&&vi(t,n,r)&&(n=r=e),r===e&&("boolean"==typeof n?(r=n,n=e):"boolean"==typeof t&&(r=t,t=e)),t===e&&n===e?(t=0,n=1):(t=ds(t),n===e?(n=t,t=0):n=ds(n)),t>n){var o=t;t=n,n=o}if(r||t%1||n%1){var i=Sn();return bn(t+i*(n-t+at("1e-"+((i+"").length-1))),n)}return Vr(t,n)},jn.reduce=function(e,t,n){var r=Ba(e)?Dt:$t,o=arguments.length<3;return r(e,si(t,4),n,o,ur)},jn.reduceRight=function(e,t,n){var r=Ba(e)?Tt:$t,o=arguments.length<3;return r(e,si(t,4),n,o,dr)},jn.repeat=function(t,n,r){return n=(r?vi(t,n,r):n===e)?1:fs(n),Gr(gs(t),n)},jn.replace=function(){var e=arguments,t=gs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(t,n,r){var o=-1,i=(n=vo(n,t)).length;for(i||(i=1,t=e);++o<i;){var a=null==t?e:t[Ai(n[o])];a===e&&(o=i,a=r),t=Za(a)?a.call(t):a}return t},jn.round=xl,jn.runInContext=V,jn.sample=function(e){return(Ba(e)?Zn:Zr)(e)},jn.size=function(e){if(null==e)return 0;if($a(e))return is(e)?cn(e):e.length;var t=pi(e);return t==y||t==_?e.size:Mr(e).length},jn.snakeCase=Us,jn.some=function(t,n,r){var o=Ba(t)?Mt:no;return r&&vi(t,n,r)&&(n=e),o(t,si(n,3))},jn.sortedIndex=function(e,t){return ro(e,t)},jn.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},jn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&ja(e[r],t))return r}return-1},jn.sortedLastIndex=function(e,t){return ro(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},jn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(ja(e[n],t))return n}return-1},jn.startCase=Vs,jn.startsWith=function(e,t,n){return e=gs(e),n=null==n?0:ir(fs(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},jn.subtract=wl,jn.sum=function(e){return e&&e.length?Ut(e,tl):0},jn.sumBy=function(e,t){return e&&e.length?Ut(e,si(t,2)):0},jn.template=function(t,n,r){var o=jn.templateSettings;r&&vi(t,n,r)&&(n=e),t=gs(t),n=ys({},n,o,Xo);var i,a,s=ys({},n.imports,o.imports,Xo),l=Rs(s),c=Zt(s,l),u=0,d=n.interpolate||be,f="__p += '",p=Ce((n.escape||be).source+"|"+d.source+"|"+(d===Z?ce:be).source+"|"+(n.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Te.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";t.replace(p,(function(e,n,r,o,s,l){return r||(r=o),f+=t.slice(u,l).replace(ve,tn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+e.length,e})),f+="';\n";var m=Te.call(n,"variable")&&n.variable;if(m){if(se.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(z,""):f).replace(F,"$1").replace(W,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Js((function(){return we(l,h+"return "+f).apply(e,c)}));if(g.source=f,Ka(g))throw g;return g},jn.times=function(e,t){if((e=fs(e))<1||e>l)return[];var n=u,r=bn(e,u);t=si(t),e-=u;for(var o=Vt(r,t);++n<e;)t(n);return o},jn.toFinite=ds,jn.toInteger=fs,jn.toLength=ps,jn.toLower=function(e){return gs(e).toLowerCase()},jn.toNumber=hs,jn.toSafeInteger=function(e){return e?ir(fs(e),-9007199254740991,l):0===e?e:0},jn.toString=gs,jn.toUpper=function(e){return gs(e).toUpperCase()},jn.trim=function(t,n,r){if((t=gs(t))&&(r||n===e))return Gt(t);if(!t||!(n=so(n)))return t;var o=un(t),i=un(n);return So(o,Xt(o,i),Yt(o,i)+1).join("")},jn.trimEnd=function(t,n,r){if((t=gs(t))&&(r||n===e))return t.slice(0,dn(t)+1);if(!t||!(n=so(n)))return t;var o=un(t);return So(o,0,Yt(o,un(n))+1).join("")},jn.trimStart=function(t,n,r){if((t=gs(t))&&(r||n===e))return t.replace(te,"");if(!t||!(n=so(n)))return t;var o=un(t);return So(o,Xt(o,un(n))).join("")},jn.truncate=function(t,n){var r=30,o="...";if(Ya(n)){var i="separator"in n?n.separator:i;r="length"in n?fs(n.length):r,o="omission"in n?so(n.omission):o}var a=(t=gs(t)).length;if(nn(t)){var s=un(t);a=s.length}if(r>=a)return t;var l=r-cn(o);if(l<1)return o;var c=s?So(s,0,l).join(""):t.slice(0,l);if(i===e)return c+o;if(s&&(l+=c.length-l),rs(i)){if(t.slice(l).search(i)){var u,d=c;for(i.global||(i=Ce(i.source,gs(ue.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;c=c.slice(0,f===e?l:f)}}else if(t.indexOf(so(i),l)!=l){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+o},jn.unescape=function(e){return(e=gs(e))&&$.test(e)?e.replace(B,fn):e},jn.uniqueId=function(e){var t=++Me;return gs(e)+t},jn.upperCase=Gs,jn.upperFirst=Ks,jn.each=ga,jn.eachRight=ba,jn.first=$i,il(jn,(ml={},vr(jn,(function(e,t){Te.call(jn.prototype,t)||(ml[t]=e)})),ml),{chain:!1}),jn.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),_t(["drop","take"],(function(t,n){Bn.prototype[t]=function(r){r=r===e?1:gn(fs(r),0);var o=this.__filtered__&&!n?new Bn(this):this.clone();return o.__filtered__?o.__takeCount__=bn(r,o.__takeCount__):o.__views__.push({size:bn(r,u),type:t+(o.__dir__<0?"Right":"")}),o},Bn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),_t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(tl)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return qr(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(Ta(si(e)))},Bn.prototype.slice=function(t,n){t=fs(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Bn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=fs(n))<0?r.dropRight(-n):r.take(n-t)),r)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(u)},vr(Bn.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=jn[o?"take"+("last"==n?"Right":""):n],a=o||/^find/.test(n);i&&(jn.prototype[n]=function(){var n=this.__wrapped__,s=o?[1]:arguments,l=n instanceof Bn,c=s[0],u=l||Ba(n),d=function(e){var t=i.apply(jn,Ot([e],s));return o&&f?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,m=l&&!p;if(!a&&u){n=m?n:new Bn(this);var g=t.apply(n,s);return g.__actions__.push({func:da,args:[d],thisArg:e}),new Wn(g,f)}return h&&m?t.apply(this,s):(g=this.thru(d),h?o?g.value()[0]:g.value():g)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=qe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ba(o)?o:[],e)}return this[n]((function(n){return t.apply(Ba(n)?n:[],e)}))}})),vr(Bn.prototype,(function(e,t){var n=jn[t];if(n){var r=n.name+"";Te.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[zo(e,2).name]=[{name:"wrapper",func:e}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=qo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qo(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ba(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,p=bn(l,this.__takeCount__);if(!n||!r&&o==l&&p==l)return po(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var m=-1,g=e[c+=t];++m<d;){var b=u[m],v=b.iteratee,y=b.type,S=v(g);if(2==y)g=S;else if(!S){if(1==y)continue e;break e}}h[f++]=g}return h},jn.prototype.at=fa,jn.prototype.chain=function(){return ua(this)},jn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===e&&(this.__values__=us(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},jn.prototype.plant=function(t){for(var n,r=this;r instanceof Fn;){var o=Ni(r);o.__index__=0,o.__values__=e,n?i.__wrapped__=o:n=o;var i=o;r=r.__wrapped__}return i.__wrapped__=t,n},jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Bn){var n=t;return this.__actions__.length&&(n=new Bn(this)),(n=n.reverse()).__actions__.push({func:da,args:[Yi],thisArg:e}),new Wn(n,this.__chain__)}return this.thru(Yi)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,Xe&&(jn.prototype[Xe]=function(){return this}),jn}();ft?((ft.exports=pn)._=pn,dt._=pn):ut._=pn}.call(Fh.exports)),Fh.exports);function $h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const Uh=1e3,Vh=1e3,Gh=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Kh=(e,t)=>e&&e.find((e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t}))||null,Zh=e=>{var t,n;return te(te({},e),{},{qDef:te(te({},e.qDef),{},{cId:null!==(t=null===(n=e.qDef)||void 0===n?void 0:n.cId)&&void 0!==t?t:df()})})},Jh=e=>{var t;return te(te({},Zh(e)),{},{qOtherTotalSpec:null!==(t=e.qOtherTotalSpec)&&void 0!==t?t:{}})},Xh=(e,t,n)=>{const r=t;e.forEach(((e,t)=>{const o=e.qTags,i={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(r,n.properties,o,i,n):(i.qSortByNumeric=1,i.qSortByAscii=1),r.qDef.qSortCriterias?r.qDef.qSortCriterias[t]=i:r.qDef.qSortCriterias=[i]}))},Yh=new Error("Not supported in this object, need to implement in subclass."),Qh=e=>{if(!e)return[];return[...e].map((e=>{var t;return null!==(t=e.qDef)&&void 0!==t&&t.autoSort&&void 0!==e.autoSort?te(te({},e),{},{qDef:te(te({},e.qDef),{},{autoSort:e.autoSort}),autoSort:void 0}):e}))},em=(e,t)=>{if(e)return t&&fp(e,t)?fp(e,t).qHyperCube:e.qHyperCube};function tm(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions,o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function nm(e,t){return e.getAlternativeDimensions().length+t.length>=Uh}function rm(e,t){const n=e.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions;return t||e.maxDimensions()<=n.length&&n.length<Uh}async function om(e,t,n,r,o){const i=n.length;await e.autoSortDimension(t),pp.indexAdded(e.hcProperties.qInterColumnSortOrder,i+o),n.push(t),r.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function im(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures,o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function am(e,t,n){return n||e.maxMeasures()<=t.length&&t.length<Vh}class sm{constructor(e){var t,n;const r=e||{};this.dimensionDefinition=r.dimensionDefinition||{max:0},this.measureDefinition=r.measureDefinition||{max:0},this.dimensionProperties=null!==(t=r.dimensionProperties)&&void 0!==t?t:{},this.measureProperties=null!==(n=r.measureProperties)&&void 0!==n?n:{},this.globalChangeListeners=r.globalChangeListeners,this.app=r.app}setProperties(e){var t;this.properties=e,this.isAnalysisType=null===(t=this.properties)||void 0===t||null===(t=t.metaData)||void 0===t?void 0:t.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}static type(){throw new Error("Must override this method")}static getDimensions(){return[]}getDimension(e){var t;const n=this.getDimensions(),r=this.getAlternativeDimensions();return null!==(t=Kh(n,e))&&void 0!==t?t:Kh(r,e)}static getAlternativeDimensions(){throw new Error("Method not implemented.")}static addDimension(){throw Yh}static addDimensions(){throw Yh}static autoSortDimension(){throw Yh}createLibraryDimension(e,t){let n=Hh.merge({},this.dimensionProperties||{},t||{});return n=Jh(n),n.qLibraryId=e,n.qDef.autoSort=!0,n.qDef.qSortCriterias=Gh,delete n.qDef.qFieldDefs,delete n.qDef.qFieldLabels,n}createFieldDimension(e,t,n){let r=Hh.merge({},this.dimensionProperties||{},n||{});return r=Jh(r),e||(r.qDef.qFieldDefs=[],r.qDef.qFieldLabels=[],r.qDef.qSortCriterias=[]),r.qDef.qFieldDefs=[e],r.qDef.qFieldLabels=t?[t]:[""],r.qDef.qSortCriterias=Gh,r.qDef.autoSort=!0,r}addFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r)}addFieldDimensions(e){const t=e.map((e=>{let{field:t,label:n,defaults:r}=e;return this.createFieldDimension(t,n,r)}));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map((e=>{let{id:t,defaults:n}=e;return this.createLibraryDimension(t,n)}));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map((e=>{let{id:t}=e;return this.createLibraryDimension(t)}));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map((e=>{let{field:t}=e;return this.createFieldDimension(t)}));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}maxDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){var n;const e=$h("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return null===(n=this.dimensionDefinition.max)||void 0===n?void 0:n.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}getMeasure(e){var t;const n=this.getMeasures(),r=this.getAlternativeMeasures();return null!==(t=Kh(n,e))&&void 0!==t?t:Kh(r,e)}static getMeasures(){return[]}static getAlternativeMeasures(){throw new Error("Method not implemented.")}static addMeasure(){throw Yh}static addMeasures(){throw Yh}static autoSortMeasure(){throw Yh}createExpressionMeasure(e,t,n){var r,o;const i=Hh.merge({},this.measureProperties||{},n||{});return i.qDef=null!==(r=i.qDef)&&void 0!==r?r:{},i.qDef.qNumFormat=null!==(o=i.qDef.qNumFormat)&&void 0!==o?o:{},i.qDef.qDef=e,i.qDef.qLabel=t,i.qDef.autoSort=!0,i}addExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r)}addExpressionMeasures(e){const t=e.map((e=>{let{expression:t,label:n,defaults:r}=e;return this.createExpressionMeasure(t,n,r)}));return this.addMeasures(t)}createLibraryMeasure(e,t){var n,r;const o=Hh.merge({},this.measureProperties||{},t||{});return o.qDef=null!==(n=o.qDef)&&void 0!==n?n:{},o.qDef.qNumFormat=null!==(r=o.qDef.qNumFormat)&&void 0!==r?r:{},$h("MASTER_MEASURE_FORMAT")&&(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(o.qDef),o.qLibraryId=e,o.qDef.autoSort=!0,delete o.qDef.qDef,delete o.qDef.qLabel,o}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map((e=>{let{id:t,defaults:n}=e;return this.createLibraryMeasure(t,n)}));return this.addMeasures(t)}addAltLibraryMeasures(e){const t=e.map((e=>{let{id:t}=e;return this.createLibraryMeasure(t)}));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map((e=>{let{expression:t}=e;return this.createExpressionMeasure(t)}));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}maxMeasures(e){const t=e||0;if("function"==typeof this.measureDefinition.max){const e=this.getDimensions().length-t,n=$h("PS_21371_ANALYSIS_TYPES")?[e,this.properties]:[e];return this.measureDefinition.max.apply(null,n)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}}function lm(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?function(e,t,n,r){return n.splice(r,0,t),e.autoSortDimension(t).then((()=>(pp.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1),"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)):t)))}(e,t,r,o):Promise.resolve()}function cm(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()&&function(e,t,n,r){n.splice(r,0,t),e.autoSortMeasure(t).then((()=>(pp.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1),"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):t)))}(t,r,o),t}class um extends sm{constructor(e){super(e),this.path=e.path}setProperties(e){return e?(super.setProperties(e),this.hcProperties=this.path?fp.getValue(e,"".concat(this.path,".qHyperCubeDef")):e.qHyperCubeDef,this.hcProperties?(function(e){var t,n,r,o,i,a,s;const l=e;l.hcProperties.qDimensions=null!==(t=l.hcProperties.qDimensions)&&void 0!==t?t:[],l.hcProperties.qMeasures=null!==(n=l.hcProperties.qMeasures)&&void 0!==n?n:[],l.hcProperties.qInterColumnSortOrder=null!==(r=l.hcProperties.qInterColumnSortOrder)&&void 0!==r?r:[],l.hcProperties.qLayoutExclude=null!==(o=l.hcProperties.qLayoutExclude)&&void 0!==o?o:{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},l.hcProperties.qLayoutExclude.qHyperCubeDef=null!==(i=l.hcProperties.qLayoutExclude.qHyperCubeDef)&&void 0!==i?i:{qDimensions:[],qMeasures:[]},l.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=null!==(a=l.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions)&&void 0!==a?a:[],l.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=null!==(s=l.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures)&&void 0!==s?s:[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=Qh(this.hcProperties.qDimensions),this.hcProperties.qMeasures=Qh(this.hcProperties.qMeasures),{}):{}):{}}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qDimensions)&&void 0!==e?e:[]}getDimensionLayout(e){return this.getDimensionLayouts().filter((t=>e===t.cId))[0]}getDimensionLayouts(){const e=em(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=Jh(e);return rm(this,r)?tm(this,r,n):lm(this,r,n)}async addDimensions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getDimensions(),r=[];let o=0;var i,a=!1,s=!1;try{for(var l,c=function(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new X(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}(e);a=!(l=await c.next()).done;a=!1){const e=l.value;{if(nm(this,n))return r;const i=Jh(e);if(rm(this,t)){const e=await tm(this,i);r.push(e)}else n.length<this.maxDimensions()&&(await om(this,i,n,r,o),o++)}}}catch(e){s=!0,i=e}finally{try{a&&null!=c.return&&await c.return()}finally{if(s)throw i}}return r}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then((n=>{const r=(null==t?void 0:t.qLibraryId)&&(o=t.qLibraryId,(i=n)&&i.find((e=>e.qInfo.qId===o))||null);var o,i;return r&&Xh(r.qData.info,t,e),t}))}(this,e):function(e,t){return e.app.getFieldList().then((n=>{var r;const o=(null==t||null===(r=t.qDef)||void 0===r?void 0:r.qFieldDefs)&&((e,t)=>{const n=(e=>{const t=[];return e.forEach((e=>{t.push((e=>{const t=e;return t.isDateField=(e=>{var t,n;return(null==e?void 0:e.qDerivedFieldData)&&((null==e||null===(t=e.qTags)||void 0===t?void 0:t.indexOf("$date"))>-1||(null==e||null===(n=e.qTags)||void 0===n?void 0:n.indexOf("$timestamp"))>-1)})(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach((n=>{n.qFieldDefs.forEach((r=>{var o;t.push({qName:r.qName,displayName:(o=r.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:r.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})}))})),t):t})(e);t.push(...n)})),t})(t.slice(0)),r=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find((t=>t.qName===e))||null)(r,n)||null})(t.qDef.qFieldDefs[0],n);return o&&Xh([o],t,e),t}))}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)&&void 0!==e?e:[]}getMeasureLayouts(){const e=em(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter((t=>e===t.cId))[0]}addMeasure(e,t,n){const r=Jh(e);if(am(this,r,t)){return im(r,this.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures,n)}return cm(this,r,n)}autoSortMeasure(e){const t=te({},e);return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getMeasures(),r=[];let o=0;return e.forEach((async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=Vh}(this,n))return!1;const i=Zh(e);return am(this,n,t)?(im(this,i),r.push(i)):n.length<this.maxMeasures()&&(await function(e,t,n,r,o){const i=e.getDimensions(),a=te({},t);return a.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},pp.indexAdded(e.hcProperties.qInterColumnSortOrder,i.length+n.length+o),n.push(a),r.push(a),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,a,e.properties,e),Promise.resolve(r)}(this,i,n,r,o),o++),!0})),r}}const dm=Ge.bind(null,!0),fm={},{isArray:pm}=Array;function hm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function mm(e){return void 0===e}function gm(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function bm(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]=mm(e[r||t])?i:e[t],e=e[r||t]})),e}function vm(e,t){let n=!0;if(hm(e)&&hm(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{vm(e[r],t[r])||(n=!1)})),n);if(pm(e)&&pm(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!vm(e[n],t[n]))return!1;return!0}return e===t}fm.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?dm({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);vm(i,a)||gm(t,o)||(mm(a)?r.push({op:"add",path:s,value:i}):hm(i)&&hm(a)?r=r.concat(fm.generate(a,i,s)):pm(i)&&pm(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]&&mm(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(vm(t,o))return r;if(!mm(t[0])&&mm(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(fm.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=>{mm(t[o])&&!gm(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},fm.apply=function(e,t){t.forEach((t=>{let n=bm(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(pm(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(pm(o)&&pm(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(hm(o)&&hm(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!gm(a,e)&&delete a[e]})),dm(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=bm(e,t.from);pm(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(pm(n)?n.splice(+r,1):delete n[r]);var a}))},fm.clone=function(e){return dm({},e)},fm.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},fm.updateObject=function(e,t){Object.keys(e).length?fm.apply(e,fm.generate(e,t)):dm(e,t)};const ym=e=>t=>{const n=(r=te(te({},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(ce.prototype).forEach((e=>{r[e]=ce.prototype[e]})),ce.init(r),r);var r;return n};let Sm,xm;function wm(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 Em(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 _m(e){Lm(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 Cm(e){if(e.__hooks.obsolete)return Promise.resolve();xm=-1,Sm=e,Sm.__hooks.initiated&&Sm.__hooks.list.length;try{Sm.fn.call(null)}catch(e){console.error(e)}Sm.__hooks.initiated=!0;const t=Sm.__hooks;return Im(Sm),xm=void 0,Sm=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){Lm(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){Lm(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 Lm(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 km(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 qm(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 Rm(e){return e.__hooks.imperativeHandle}function Im(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Om(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Im(e))}function Dm(e){if(void 0===Sm)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Sm.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Tm(e){Dm(++xm);return Sm.context[e]}function Mm(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Am(e){return{__hooked:!0,fn:e,initiate:Em,run:Cm,teardown:_m,runSnaps:km,runMenu:qm,focus:pg,blur:hg,observeActions:Om,getImperativeHandle:Rm,updateRectOnNextRun:Mm}}function Pm(e){const t=Dm(++xm);if(!t.value){t.component=Sm;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,Cm(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Nm(e,t){const n=Dm(++xm);wm(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Sm.__hooks.pendingEffects.indexOf(n)&&Sm.__hooks.pendingEffects.push(n))}function jm(e,t){const n=Dm(++xm);wm(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Sm.__hooks.pendingLayoutEffects.push(n))}function zm(e,t){const n=Dm(++xm);return wm(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Fm(e){return zm((()=>({current:e})),[])}function Wm(e,t){const[n,r]=Pm((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Dm(++xm);return o.component||(o.component=Sm),jm((()=>{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 Bm(){return Tm("element")}function Hm(){const e=Bm(),t=Sm.__hooks.resizer,[n,r]=Pm((()=>{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()),jm((()=>{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 $m(){return Tm("layout")}function Um(){const e=Tm("layout"),[t]=Pm({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Vm(){return Tm("appLayout")}function Gm(){const e=Tm("model");return e&&e.session?e:void 0}function Km(){const e=Tm("app");return e&&e.session?e:void 0}function Zm(){const e=Tm("global");return e&&e.session?e:void 0}function Jm(){return Tm("selections")}function Xm(){return Tm("theme")}function Ym(){return Tm("nebbie")}function Qm(){return Tm("translator")}function eg(){return Tm("deviceType")}function tg(){return Tm("navigation")}function ng(){return Tm("plugins")}function rg(e,t){const[n]=Pm({action(){n._config.action.call(null)}});return n.component||(n.component=Sm,Sm.__hooks.actions.list.push(n)),zm((()=>{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 og(){return Tm("constraints")}function ig(){return Tm("interactions")}function ag(){return Tm("options")}function sg(e,t){const n=Dm(++xm);if(n.imperative||(n.imperative=!0),wm(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Sm.__hooks.imperativeHandle=r}}function lg(e){const t=Dm(++xm);t.value||(t.value=1,Sm.__hooks.snaps.push(t)),t.fn=e}function cg(e){const t=Dm(++xm);t.value||(t.value=1,Sm.__hooks.menus.push(t)),t.fn=e}function ug(){Dm(++xm);const e=Sm.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function dg(){return Tm("emitter")}function fg(){const e=Tm("keyboardNavigation"),t=Tm("focusHandler");if(!Sm.__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&&(hg(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Sm);Sm.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),pg(this))}.bind(Sm);Sm.__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(Sm);Sm.__hooks.accessibility.focusSelectionFunction=r}const n=Sm.__hooks.accessibility.focusFunction,r=Sm.__hooks.accessibility.exitFunction,o=Sm.__hooks.accessibility.focusSelectionFunction,[i,a]=Pm({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Sm.__hooks.accessibility.setter=a,Sm.__hooks.accessibility.enabled=e,Nm((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function pg(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 hg(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 mg={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},gg=Object.keys(mg),bg=e=>(Object.keys(ce.prototype).forEach((t=>{e[t]=ce.prototype[t]})),ce.init(e),e);function vg(e,t){const n=te({},mg);bg(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==gg.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=ym(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 yg(e,t,n){"function"==typeof e.component&&(e.component=Am(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},a=["appLayout","constraints","interactions"],s={},l={};t.model&&t.model.session||(s.select=!0,s.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:s,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}a.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(te(te({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(te(te({},r[e]),l))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?t.focus():e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return a.forEach((e=>{i[e]=JSON.stringify(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):vg(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=fm.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));fm.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const s=fm.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 Sg=()=>{};function xg(e,t){return void 0===e?()=>t:()=>e}function wg(e){const t=e||{};return{min:"function"==typeof t.min?t.min:xg(t.min,0),max:"function"==typeof t.max?t.max:xg(t.max,1e3),added:t.added||t.add||Sg,description:t.description||Sg,moved:t.moved||t.move||Sg,removed:t.removed||t.remove||Sg,replaced:t.replaced||t.replace||Sg,isDefined:()=>!!e}}const Eg=(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 _g(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=>Eg(e,n,{}),dimensions:wg(e.dimensions),measures:wg(e.measures)}}function Cg(){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(_g)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function Lg(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Cg(n.qae),component:n.component||{},create:e=>yg(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new um(e)}:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const kg=(e,t,n)=>{if(!e)return Promise.resolve();let r=fm.generate(t,n);return Ge(!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()},qg=()=>{};function Rg(){var e;let n,r,o,{model:i,halo:a,navigation:s,initialError:l,onDestroy:c=(async()=>{}),onRender:u=(()=>{}),onError:d=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=qg,p=null,h=null,g=null,b=null,v=!1;const y=new Promise((e=>{g=e})),S=new Promise((e=>{b=e})),x=e=>()=>{null==e||e(),b(),u(),v=!0};let w={},E=[];const _=new ce;let C={};null!==(e=a.context)&&void 0!==e&&e.enablePrivateExperimental&&(C={support(e){var t;return!(!h||!v)&&p.current.support(e,null===(t=r)||void 0===t?void 0:t.support,o)},getPropertyPanelDefinition:()=>!(!h||!v)&&(r?r.definition:p.current.getExtensionDefinition().definition),toggleFocus(e){p.current.toggleFocus(e)},setOnBlurHandler(e){p.current.setOnBlurHandler(e)}});const L=te(te({id:i.id,model:i,async destroy(){await c(),f(),f=qg},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const n=await i.getLayout();if(Nh(n)&&!t){const t=await _p({halo:a,model:i,cellRef:p,newType:e});return await jh(i,t.qProperty),t}const r=await i.getEffectiveProperties(),o=await _p({halo:a,model:i,cellRef:p,newType:e,properties:r}),s=o.qProperty;return await kg(i,r,s),o}return await _p({halo:a,model:i,cellRef:p,newType:e})},async toggleDataView(e){let t;if(n||!1===e)n&&!0!==e&&(t=i,await a.app.destroySessionObject(n),n=void 0,r=void 0,o=void 0);else{let e=a.context.dataViewType;const s=await i.getEffectiveProperties();if(!a.types.getSupportedVersion(e)){if(!a.types.getSupportedVersion("table"))throw new Error("No data view type registered");e="table"}const l=await _p({halo:a,model:i,cellRef:p,newType:e,properties:s,viewDataMode:!0});t=await a.app.createSessionObject(l.qProperty),n=t.id,r=p.current.getExtensionDefinition(),o=await i.getLayout()}t&&p.current.setModel(t)},get viewDataToggled(){return void 0!==n},addListener(e,t){_.addListener(e,t)},removeListener(e,t){_.removeListener(e,t)},getImperativeHandle:async()=>(await S,p.current.getImperativeHandle()),takeSnapshot:async()=>(await S,p.current.takeSnapshot())},C),{},{__DO_NOT_USE__:{mount(e){if(h)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return h=e,[f,p]=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:f}=n,p=t.createRef(),h=df(),g=m.createPortal(t.createElement(Th,{ref:p,halo:n,model:o,currentId:h,initialSnOptions:i,initialSnPlugins:a,initialError:c,onMount:s,emitter:l,navigation:u,onError:d}),r,h),b=()=>{f.remove(g),o.removeListener("closed",b)};return o.on("closed",b),f.add(g,b),f.addCell(h,p),[b,p]}({halo:a,element:e,model:i,initialSnOptions:w,initialSnPlugins:E,initialError:l,onMount:g,emitter:_,navigation:s,onError:d}),y},async applyProperties(e){const t=Ah("/",e,await i.getEffectiveProperties());if(t.length)return i.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;h?(async()=>{await y,p.current.setSnOptions(te(te(te({},w),e),{onInitialRender:x(t)}))})():w=te(te(te({},w),e),{onInitialRender:x(t)})})(e)},plugins(e){(async e=>{Ph(e),h?(async()=>{await y,p.current.setSnPlugins(e)})():E=e})(e)},exportImage:()=>p.current.exportImage(),takeSnapshot:()=>p.current.takeSnapshot(),getModel:()=>i,convert:{async toType(e){const t=await i.getEffectiveProperties(),n=await _p({halo:a,model:i,cellRef:p,newType:e,properties:t}),r=n.qProperty;return await kg(i,t,r),n},async revert(){await i.clearSoftPatches()}}}});return L}async function Ig(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=Rg({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 Og(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 dp({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 Dg="njs-sheet";function Tg(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 Mg=o(((e,o)=>{var l;let{model:c,halo:u,initialSnOptions:d,initialSnPlugins:p,initialError:h,onMount:m,unmount:g,navigation:b,onError:v}=e;const{root:y}=u,[S,x]=n(c),[w]=Ra(S),{theme:E,modelStore:_}=s(ga),[C,L]=n([]),[k,q]=n(void 0),[R,I]=n(void 0),[O,D]=n(""),T=f({cellCount:0,cellsRendered:0,initialRender:!1});null==b||null===(l=b.setCurrentSheetId)||void 0===l||l.call(b,S.id),r((()=>{if(w){const e=JSON.stringify(w.cells);if(e===O)return;D(e);const n=async()=>{C.forEach((e=>{y.removeCell(e.currentId)}));const e=w.cells;T.cellCount=e.length,T.cellsRendered=0;const n=()=>{T.cellsRendered++,T.cellsRendered!==T.cellCount||T.initialRender||(T.initialRender=!0,d.onInitialRender())},{columns:r,rows:o}=w,i=await Promise.all(e.map((async e=>{let i;const a=new Promise((e=>{i=e})),s=C.find((t=>t.id===e.name));if(s)return s.bounds=Tg(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),Ig(d,{options:o,plugins:i,element:a},t)}({id:e.name},u,_);return{model:l.model,id:e.name,bounds:Tg(e,r,o),cellRef:t.createRef(),currentId:df(),mounted:i,mountedPromise:a,options:te(te({},d),{onInitialRender:n})}})));i.forEach((e=>y.addCell(e.currentId,e.cellRef))),L(i)};n()}}),[w]),r((()=>{const e=()=>{S.removeListener("closed",e),g()};return S.on("closed",e),()=>S.removeListener("closed",e)}),[S]);const M=i((()=>C?C.map((e=>function(e,n,r,o,i,a,s,l){var c;const{x:u,y:d,width:f,height:p}=e.bounds,h={left:"".concat(u,"%"),top:"".concat(d,"%"),width:"".concat(f,"%"),height:"".concat(p,"%"),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")&&(h.boxSizing="border-box",h.padding="4px"),t.createElement("div",{style:h,key:e.model.id},t.createElement(Th,{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,p,h,e.mounted,b,v))):[]),[C]);r((()=>{const e=null!=w&&w.components?w.components.find((e=>"general"===e.key)):null;q(zd(e,u.public.theme)),I(jd(e,u.app))}),[w,u.public.theme,u.app,E]),a(o,(()=>({setModel:x})),[]);const A=!w||void 0===w.height||Number.isNaN(w.height)?"100%":"".concat(Number(w.height),"%"),P=C.map((e=>e.mountedPromise)),N=P.filter((e=>!!e));return N.length&&Promise.all(P).then((()=>{m()})),t.createElement("div",{className:Dg,style:{width:"100%",height:A,position:"relative",backgroundColor:k,backgroundImage:R&&R.url?"url(".concat(R.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:R&&R.size,backgroundPosition:R&&R.pos}},M)}));const Ag=()=>{};function Pg(){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=Ag,c=null,u=null,d=null,f=null;const p=new Promise((e=>{d=e})),h=new Promise((e=>{f=e})),g=e=>()=>{null==e||e(),f(),a()};let b={},v=[];const y={id:e.id,model:e,navigation:r,getImperativeHandle:async()=>(await h,c.current.getImperativeHandle()),async destroy(){await i(),l(),l=Ag},__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,f=t.createRef();let p;const h=()=>{d.remove(p)};return p=m.createPortal(t.createElement(Mg,{ref:f,halo:n,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s,unmount:h,navigation:c,onError:u}),r,o.id),c.setSheetRef(f),d.add(p,h),[h,f]}({halo:n,element:i,model:e,initialSnOptions:b,initialSnPlugins:v,initialError:o,onMount:d,navigation:r,onError:s}),p},async applyProperties(t){const n=Ah("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;u?(async()=>{await p,c.current.setSnOptions(te(te(te({},b),e),{onInitialRender:g(t)}))})():b=te(te(te({},b),e),{onInitialRender:g(t)})})(e)},plugins(e){(async e=>{Ph(e),u?(async()=>{await p,c.current.setSnPlugins(e)})():v=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return y}async function Ng(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,f="".concat(r);let p=d.get(f);p||(p=t.app.getObject(r),d.set(f,p));const h=await p;u.set(f,h);const m=c||("sheet"===h.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},s={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:l}=t,c="".concat(n);let u,d=l.get(c);d||(d=e.app.getObject(n),l.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,s.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return Jc(s),s}(t,n,h):void 0);return"sheet"===h.genericType?async function(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=Pg({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}(h,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m):Ig(h,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m)}var jg,zg,Fg,Wg;function Bg(){if(Wg)return Fg;Wg=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Fg=n=>n?"object"!=typeof n?e:n:t}var Hg,$g,Ug,Vg,Gg,Kg,Zg,Jg,Xg,Yg,Qg,eb,tb,nb,rb,ob,ib,ab,sb,lb,cb,ub,db,fb,pb,hb,mb,gb,bb,vb,yb,Sb={exports:{}};function xb(){if($g)return Hg;$g=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return Hg={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 wb(){if(Vg)return Ug;Vg=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 Eb(){return Gg||(Gg=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=xb(),i=wb(),a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=d++;i(e,o,t),u[e]=o,l[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(f,"*")),h("MAINVERSION","(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(l[u.NUMERICIDENTIFIER],"|").concat(l[u.NONNUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[u.NUMERICIDENTIFIERLOOSE],"|").concat(l[u.NONNUMERICIDENTIFIER],")")),h("PRERELEASE","(?:-(".concat(l[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(l[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(f,"+")),h("BUILD","(?:\\+(".concat(l[u.BUILDIDENTIFIER],"(?:\\.").concat(l[u.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(l[u.MAINVERSION]).concat(l[u.PRERELEASE],"?").concat(l[u.BUILD],"?")),h("FULL","^".concat(l[u.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(l[u.MAINVERSIONLOOSE]).concat(l[u.PRERELEASELOOSE],"?").concat(l[u.BUILD],"?")),h("LOOSE","^".concat(l[u.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(l[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(l[u.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:".concat(l[u.PRERELEASE],")?").concat(l[u.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[u.PRERELEASELOOSE],")?").concat(l[u.BUILD],"?")+")?)?"),h("XRANGE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAINLOOSE],"$")),h("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),h("COERCE","".concat(l[u.COERCEPLAIN],"(?:$|[^\\d])")),h("COERCEFULL",l[u.COERCEPLAIN]+"(?:".concat(l[u.PRERELEASE],")?")+"(?:".concat(l[u.BUILD],")?")+"(?:$|[^\\d])"),h("COERCERTL",l[u.COERCE],!0),h("COERCERTLFULL",l[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(l[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",h("TILDE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(l[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",h("CARET","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(l[u.GTLT],"\\s*(").concat(l[u.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],"|").concat(l[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(l[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Sb,Sb.exports)),Sb.exports}function _b(){if(Xg)return Jg;Xg=1;const e=wb(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=xb(),{safeRe:r,safeSrc:o,t:i}=Eb(),a=Bg(),{compareIdentifiers:s}=function(){if(Zg)return Kg;Zg=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 Kg={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},Kg}();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 Jg=l}function Cb(){if(Qg)return Yg;Qg=1;const e=_b();return Yg=(t,n,r)=>new e(t,r).compare(new e(n,r)),Yg}function Lb(){if(pb)return fb;pb=1;const e=function(){if(tb)return eb;tb=1;const e=Cb();return eb=(t,n,r)=>0===e(t,n,r),eb}(),t=function(){if(rb)return nb;rb=1;const e=Cb();return nb=(t,n,r)=>0!==e(t,n,r),nb}(),n=function(){if(ib)return ob;ib=1;const e=Cb();return ob=(t,n,r)=>e(t,n,r)>0,ob}(),r=function(){if(sb)return ab;sb=1;const e=Cb();return ab=(t,n,r)=>e(t,n,r)>=0,ab}(),o=function(){if(cb)return lb;cb=1;const e=Cb();return lb=(t,n,r)=>e(t,n,r)<0,lb}(),i=function(){if(db)return ub;db=1;const e=Cb();return ub=(t,n,r)=>e(t,n,r)<=0,ub}();return fb=(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))}},fb}function kb(){if(bb)return gb;bb=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&p))+":"+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,k(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=>L(e,this.options)));a&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),i("range list",g);const v=new Map,y=g.map((e=>new o(e,this.options)));for(const e of y){if(h(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const S=[...v.values()];return n.set(t,S),S}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(q(this.set[t],e,this.options))return!0;return!1}}gb=t;const n=new(zg?jg:(zg=1,jg=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=Bg(),o=function(){if(mb)return hb;mb=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(">")))}}hb=t;const n=Bg(),{safeRe:r,t:o}=Eb(),i=Lb(),a=wb(),s=_b(),l=kb();return hb}(),i=wb(),a=_b(),{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=Eb(),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:p}=xb(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},b=(e,t)=>(i("comp",e,t),e=x(e,t),i("caret",e),e=y(e,t),i("tildes",e),e=E(e,t),i("xrange",e),e=C(e,t),i("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),v(n)?s="":v(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):v(o)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(i("replaceTilde pr",a),s=">=".concat(n,".").concat(r,".").concat(o,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),i("tilde return",s),s}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),v(n)?l="":v(o)?l=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):v(a)?l="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(i("replaceCaret pr",s),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(i("no pr"),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a," <").concat(+n+1,".0.0-0")),i("caret return",l),l}))},E=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>_(e,t))).join(" ")),_=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=v(o),u=c||v(a),d=u||v(s),f=d;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(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}))},C=(e,t)=>(i("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),L=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),k=e=>(t,n,r,o,i,a,s,l,c,u,d,f)=>(n=v(r)?"":v(o)?">=".concat(r,".0.0").concat(e?"-0":""):v(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=v(c)?"":v(u)?"<".concat(+c+1,".0.0-0"):v(d)?"<".concat(c,".").concat(+u+1,".0-0"):f?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(f):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()),q=(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 gb}var qb=function(){if(yb)return vb;yb=1;const e=kb();return vb=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},vb}(),Rb=G(qb);const Ib={};function Ob(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)||Rb(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Ib[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);Ib[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 yh("Failed to load visualization: '".concat(n,"'"),e)}))}return Ib[i]}(a.name,a.version,t,o.load).then((e=>(n=n||Lg(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=te({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(Ge(!0,n,e),n):te(te({},n),e)}))}};return a}function Db(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]=Ob({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 Tb(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Db(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(Ib).forEach((t=>{t.split("__")[0]===e&&(Ib[t]=void 0)}))}(e)}}}const Mb={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()))}};Mb.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const Ab=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return te(te({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},Pb=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=se(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=te(te({},n.context),{},{translator:r.translator});const[s,l]=xa({app:e,context:a}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=xt();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),wt(Et,{__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,theme:c.externalAPI,flags:$h(n.flags),deviceType:_t(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},f=Tb({halo:d});n.types.forEach((e=>f.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=c.setTheme(n.context.theme),h=null,g=null;const b={render:async e=>(await p,e.id?Ng(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:f,onError:p}=e,h={};const m=[],{modelStore:g,subscribe:b}=n;let v;try{const e=t.types.get({name:r,version:o});h=await e.initialProperties(a,u);const n=await e.supernova();i&&await dp({sn:n,properties:h,fields:i,children:m},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},h)}catch(e){v=e,h={qInfo:{qType:r},visualization:r}}const y=await t.app.createSessionObject(h);m.length>0&&await y.setFullPropertyTree({qProperty:h,qChildren:m}),g.set(y.id,y);const S=b(y);return Ig(y,{options:s,plugins:l,element:c,onRender:f,onError:p},t,d,v,(async()=>{await t.app.destroySessionObject(y.id),S()}))}(e,d,l)),destroy:async()=>{s.destroy()},create:async e=>Og(e,d,!1,l),generateProperties:async e=>Og(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=te(te(te({},a),t),{},{translator:r.translator}),t.theme&&(p=c.setTheme(t.theme),await p),t.language&&d.public.translator.language(t.language),s.context(a))},selections:async()=>(h||(h={mount(n){g||(g=function(e){let{element:n,app:r}=e;return m.createPortal(t.createElement(ff,{app:r}),n,df())}({element:n,app:e}),s.add(g))},unmount(){g&&(s.remove(g),g=null)}}),h),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(Xf,{ref:c,app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,initialOptions:s,renderedCallback:l}),n,df()),c]}({element:a,app:e,fieldIdentifier:n,qId:r,options:Jf(te({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=Jf(te({onSelectionActivated:n,onSelectionDeactivated:r},e));i._ref.current.setOptions(t)}}}};return Jc(i),i},getRegisteredTypes:f.getList,__DO_NOT_USE__:{types:f,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=te({},Yf);return Ge(!0,t,e),t}(te({onPopoverClose:()=>b.emit("fieldPopoverClose")},o));b._popoverInstance=t.createElement(Qf,{element:n,key:df(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(b._popoverInstance)}}};return d.public.nebbie=b,d.types=f,Jc(b),b}return o.createConfiguration=t=>e(((e,t)=>({context:Ab(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:te({},t.snapshot||e.snapshot),types:Pb(e.types,t.types),themes:Pb(e.themes,t.themes),flags:Ab(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:Ab(e.anything,t.anything)}))(n,t)),o.config=n,o}(Mb);function jb(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const zb=globalThis.crypto||{getRandomValues:()=>123456};function Fb(e){return t=>{const n=Ge({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^zb.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=Ge({},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 Wb=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},Bb=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=Wb(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},Hb=["id","session"],$b=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Ub(e){return!$b.includes(e)}function Vb(e){const t=Wb(e.getLayout);return t.qInfo&&t.qInfo.qId}function Gb(e,t){return e.reduce(((e,n)=>te(te({},e),function(e,t){let n=Vb(e);const{delay:r}=t,{id:o,session:i}=e,a=ne(e,Hb);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]:te(te({id:n,session:Wb(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return te(te({},e),{},{[n]:Bb(o,{async:Ub(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Kb(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Vb(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Zb(){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(Kb);const n=Gb(e,t);return async e=>Promise.resolve(n[e])}function Jb(){return()=>Promise.resolve({id:"app-layout"})}const Xb={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new jb,r=new Fb(n),o=new Zb(e,t),i=new Jb,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]:{})}},Yb={generator:Lg,hook:Am,theme:xt,locale:re};export{Xb as EnigmaMocker,Yb as __DO_NOT_USE__,Cp as conversion,Nb as embed,cg as onContextMenu,lg as onTakeSnapshot,rg as useAction,Km as useApp,Vm as useAppLayout,og as useConstraints,eg as useDeviceType,Nm as useEffect,Bm as useElement,Ym as useEmbed,dg as useEmitter,Zm as useGlobal,sg as useImperativeHandle,ig as useInteractionState,fg as useKeyboard,$m as useLayout,zm as useMemo,Gm as useModel,tg as useNavigation,ag as useOptions,ng as usePlugins,Wm as usePromise,Hm as useRect,Fm as useRef,ug as useRenderState,Jm as useSelections,Um as useStaleLayout,Pm as useState,Xm as useTheme,Qm as useTranslator};
|
|
24
|
+
*/var $h,Gh,Vh=(Uh||(Uh=1,$h=Hh,Gh=Hh.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",o=32,i=128,a=256,s=1/0,l=9007199254740991,c=NaN,u=4294967295,d=[["ary",i],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",a]],f="[object Arguments]",p="[object Array]",h="[object Boolean]",m="[object Date]",g="[object Error]",b="[object Function]",v="[object GeneratorFunction]",y="[object Map]",S="[object Number]",x="[object Object]",E="[object Promise]",w="[object RegExp]",C="[object Set]",_="[object String]",L="[object Symbol]",k="[object WeakMap]",R="[object ArrayBuffer]",q="[object DataView]",I="[object Float32Array]",O="[object Float64Array]",T="[object Int8Array]",D="[object Int16Array]",P="[object Int32Array]",M="[object Uint8Array]",A="[object Uint8ClampedArray]",N="[object Uint16Array]",j="[object Uint32Array]",z=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,H=RegExp(W.source),$=RegExp(U.source),V=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,ee=RegExp(Q.source),te=/^\s+/,ne=/\s/,re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ie=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ue=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,he=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,ye="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",we="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",_e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Le="['’]",ke="["+ye+"]",Re="["+_e+"]",qe="["+Se+"]",Ie="\\d+",Oe="["+xe+"]",Te="["+Ee+"]",De="[^"+ye+_e+Ie+xe+Ee+we+"]",Pe="\\ud83c[\\udffb-\\udfff]",Me="[^"+ye+"]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+we+"]",ze="\\u200d",Fe="(?:"+Te+"|"+De+")",Be="(?:"+je+"|"+De+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+qe+"|"+Pe+")?",$e="["+Ce+"]?",Ge=$e+He+"(?:"+ze+"(?:"+[Me,Ae,Ne].join("|")+")"+$e+He+")*",Ve="(?:"+[Oe,Ae,Ne].join("|")+")"+Ge,Ke="(?:"+[Me+qe+"?",qe,Ae,Ne,ke].join("|")+")",Je=RegExp(Le,"g"),Ze=RegExp(qe,"g"),Xe=RegExp(Pe+"(?="+Pe+")|"+Ke+Ge,"g"),Ye=RegExp([je+"?"+Te+"+"+We+"(?="+[Re,je,"$"].join("|")+")",Be+"+"+Ue+"(?="+[Re,je+Fe,"$"].join("|")+")",je+"?"+Fe+"+"+We,je+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ve].join("|"),"g"),Qe=RegExp("["+ze+ye+Se+Ce+"]"),et=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,rt={};rt[I]=rt[O]=rt[T]=rt[D]=rt[P]=rt[M]=rt[A]=rt[N]=rt[j]=!0,rt[f]=rt[p]=rt[R]=rt[h]=rt[q]=rt[m]=rt[g]=rt[b]=rt[y]=rt[S]=rt[x]=rt[w]=rt[C]=rt[_]=rt[k]=!1;var ot={};ot[f]=ot[p]=ot[R]=ot[q]=ot[h]=ot[m]=ot[I]=ot[O]=ot[T]=ot[D]=ot[P]=ot[y]=ot[S]=ot[x]=ot[w]=ot[C]=ot[_]=ot[L]=ot[M]=ot[A]=ot[N]=ot[j]=!0,ot[g]=ot[b]=ot[k]=!1;var it={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,st=parseInt,lt="object"==typeof G&&G&&G.Object===Object&&G,ct="object"==typeof self&&self&&self.Object===Object&&self,ut=lt||ct||Function("return this")(),dt=Gh&&!Gh.nodeType&&Gh,ft=dt&&$h&&!$h.nodeType&&$h,pt=ft&&ft.exports===dt,ht=pt&<.process,mt=function(){try{var e=ft&&ft.require&&ft.require("util").types;return e||ht&&ht.binding&&ht.binding("util")}catch(e){}}(),gt=mt&&mt.isArrayBuffer,bt=mt&&mt.isDate,vt=mt&&mt.isMap,yt=mt&&mt.isRegExp,St=mt&&mt.isSet,xt=mt&&mt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function kt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Rt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function qt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function It(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ot(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Tt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Dt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Mt=Wt("length");function At(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Nt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Nt(e,Ft,n)}function zt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ft(e){return e!=e}function Bt(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:c}function Wt(t){return function(n){return null==n?e:n[t]}}function Ut(t){return function(n){return null==t?e:t[n]}}function Ht(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function $t(t,n){for(var r,o=-1,i=t.length;++o<i;){var a=n(t[o]);a!==e&&(r=r===e?a:r+a)}return r}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Vt(e){return e?e.slice(0,dn(e)+1).replace(te,""):e}function Kt(e){return function(t){return e(t)}}function Jt(e,t){return It(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function Xt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var Qt=Ut({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),en=Ut({"&":"&","<":"<",">":">",'"':""","'":"'"});function tn(e){return"\\"+it[e]}function nn(e){return Qe.test(e)}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function on(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,o=e.length,i=0,a=[];++n<o;){var s=e[n];s!==t&&s!==r||(e[n]=r,a[i++]=n)}return a}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function cn(e){return nn(e)?function(e){for(var t=Xe.lastIndex=0;Xe.test(e);)++t;return t}(e):Mt(e)}function un(e){return nn(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&ne.test(e.charAt(t)););return t}var fn=Ut({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function G(ne){var ye=(ne=null==ne?ut:pn.defaults(ut.Object(),ne,pn.pick(ut,tt))).Array,Se=ne.Date,xe=ne.Error,Ee=ne.Function,we=ne.Math,Ce=ne.Object,_e=ne.RegExp,Le=ne.String,ke=ne.TypeError,Re=ye.prototype,qe=Ee.prototype,Ie=Ce.prototype,Oe=ne["__core-js_shared__"],Te=qe.toString,De=Ie.hasOwnProperty,Pe=0,Me=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ae=Ie.toString,Ne=Te.call(Ce),je=ut._,ze=_e("^"+Te.call(De).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=pt?ne.Buffer:e,Be=ne.Symbol,We=ne.Uint8Array,Ue=Fe?Fe.allocUnsafe:e,He=on(Ce.getPrototypeOf,Ce),$e=Ce.create,Ge=Ie.propertyIsEnumerable,Ve=Re.splice,Ke=Be?Be.isConcatSpreadable:e,Xe=Be?Be.iterator:e,Qe=Be?Be.toStringTag:e,it=function(){try{var e=ui(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=ne.clearTimeout!==ut.clearTimeout&&ne.clearTimeout,ct=Se&&Se.now!==ut.Date.now&&Se.now,dt=ne.setTimeout!==ut.setTimeout&&ne.setTimeout,ft=we.ceil,ht=we.floor,mt=Ce.getOwnPropertySymbols,Mt=Fe?Fe.isBuffer:e,Ut=ne.isFinite,hn=Re.join,mn=on(Ce.keys,Ce),gn=we.max,bn=we.min,vn=Se.now,yn=ne.parseInt,Sn=we.random,xn=Re.reverse,En=ui(ne,"DataView"),wn=ui(ne,"Map"),Cn=ui(ne,"Promise"),_n=ui(ne,"Set"),Ln=ui(ne,"WeakMap"),kn=ui(Ce,"create"),Rn=Ln&&new Ln,qn={},In=Ai(En),On=Ai(wn),Tn=Ai(Cn),Dn=Ai(_n),Pn=Ai(Ln),Mn=Be?Be.prototype:e,An=Mn?Mn.valueOf:e,Nn=Mn?Mn.toString:e;function jn(e){if(Qa(e)&&!Wa(e)&&!(e instanceof Wn)){if(e instanceof Bn)return e;if(De.call(e,"__wrapped__"))return Ni(e)}return new Bn(e)}var zn=function(){function t(){}return function(n){if(!Ya(n))return{};if($e)return $e(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function Fn(){}function Bn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=u,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $n;++t<n;)this.add(e[t])}function Vn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Kn(e,t){var n=Wa(e),r=!n&&Ba(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&ss(e),a=n||r||o||i,s=a?Gt(e.length,Le):[],l=s.length;for(var c in e)!t&&!De.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bi(c,l))||s.push(c);return s}function Jn(t){var n=t.length;return n?t[Gr(0,n-1)]:e}function Zn(e,t){return Di(Ro(e),ir(t,0,e.length))}function Xn(e){return Di(Ro(e))}function Yn(t,n,r){(r!==e&&!ja(t[n],r)||r===e&&!(n in t))&&rr(t,n,r)}function Qn(t,n,r){var o=t[n];De.call(t,n)&&ja(o,r)&&(r!==e||n in t)||rr(t,n,r)}function er(e,t){for(var n=e.length;n--;)if(ja(e[n][0],t))return n;return-1}function tr(e,t,n,r){return ur(e,(function(e,o,i){t(r,e,n(e),i)})),r}function nr(e,t){return e&&qo(t,qs(t),e)}function rr(e,t,n){"__proto__"==t&&it?it(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(t,n){for(var r=-1,o=n.length,i=ye(o),a=null==t;++r<o;)i[r]=a?e:Cs(t,n[r]);return i}function ir(t,n,r){return t==t&&(r!==e&&(t=t<=r?t:r),n!==e&&(t=t>=n?t:n)),t}function ar(t,n,r,o,i,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),s!==e)return s;if(!Ya(t))return t;var d=Wa(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return Ro(t,s)}else{var p=pi(t),g=p==b||p==v;if(Ga(t))return Eo(t,l);if(p==x||p==f||g&&!i){if(s=c||g?{}:mi(t),!l)return c?function(e,t){return qo(e,fi(e),t)}(t,function(e,t){return e&&qo(t,Is(t),e)}(s,t)):function(e,t){return qo(e,di(e),t)}(t,nr(s,t))}else{if(!ot[p])return i?t:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case R:return wo(e);case h:case m:return new o(+e);case q:return function(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case O:case T:case D:case P:case M:case A:case N:case j:return Co(e,n);case y:return new o;case S:case _:return new o(e);case w:return function(e){var t=new e.constructor(e.source,ue.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new o;case L:return r=e,An?Ce(An.call(r)):{}}}(t,p,l)}}a||(a=new Vn);var E=a.get(t);if(E)return E;a.set(t,s),os(t)?t.forEach((function(e){s.add(ar(e,n,r,e,t,a))})):es(t)&&t.forEach((function(e,o){s.set(o,ar(e,n,r,o,t,a))}));var k=d?e:(u?c?ri:ni:c?Is:qs)(t);return Ct(k||t,(function(e,o){k&&(e=t[o=e]),Qn(s,o,ar(e,n,r,o,t,a))})),s}function sr(t,n,r){var o=r.length;if(null==t)return!o;for(t=Ce(t);o--;){var i=r[o],a=n[i],s=t[i];if(s===e&&!(i in t)||!a(s))return!1}return!0}function lr(n,r,o){if("function"!=typeof n)throw new ke(t);return qi((function(){n.apply(e,o)}),r)}function cr(e,t,n,r){var o=-1,i=Rt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=It(t,Kt(n))),r?(i=qt,a=!1):t.length>=200&&(i=Zt,a=!1,t=new Gn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}jn.templateSettings={escape:V,evaluate:K,interpolate:J,variable:"",imports:{_:jn}},jn.prototype=Fn.prototype,jn.prototype.constructor=jn,Bn.prototype=zn(Fn.prototype),Bn.prototype.constructor=Bn,Wn.prototype=zn(Fn.prototype),Wn.prototype.constructor=Wn,Un.prototype.clear=function(){this.__data__=kn?kn(null):{},this.size=0},Un.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Un.prototype.get=function(t){var r=this.__data__;if(kn){var o=r[t];return o===n?e:o}return De.call(r,t)?r[t]:e},Un.prototype.has=function(t){var n=this.__data__;return kn?n[t]!==e:De.call(n,t)},Un.prototype.set=function(t,r){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=kn&&r===e?n:r,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ve.call(t,n,1),--this.size,0))},Hn.prototype.get=function(t){var n=this.__data__,r=er(n,t);return r<0?e:n[r][1]},Hn.prototype.has=function(e){return er(this.__data__,e)>-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(wn||Hn),string:new Un}},$n.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return li(this,e).get(e)},$n.prototype.has=function(e){return li(this,e).has(e)},$n.prototype.set=function(e,t){var n=li(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,n),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Vn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Vn.prototype.get=function(e){return this.__data__.get(e)},Vn.prototype.has=function(e){return this.__data__.has(e)},Vn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!wn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var ur=To(vr),dr=To(yr,!0);function fr(e,t){var n=!0;return ur(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function pr(t,n,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],s=n(a);if(null!=s&&(l===e?s==s&&!as(s):r(s,l)))var l=s,c=a}return c}function hr(e,t){var n=[];return ur(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):Ot(o,s):r||(o[o.length]=s)}return o}var gr=Do(),br=Do(!0);function vr(e,t){return e&&gr(e,t,qs)}function yr(e,t){return e&&br(e,t,qs)}function Sr(e,t){return kt(t,(function(t){return Ja(e[t])}))}function xr(t,n){for(var r=0,o=(n=vo(n,t)).length;null!=t&&r<o;)t=t[Mi(n[r++])];return r&&r==o?t:e}function Er(e,t,n){var r=t(e);return Wa(e)?r:Ot(r,n(e))}function wr(t){return null==t?t===e?"[object Undefined]":"[object Null]":Qe&&Qe in Ce(t)?function(t){var n=De.call(t,Qe),r=t[Qe];try{t[Qe]=e;var o=!0}catch(e){}var i=Ae.call(t);return o&&(n?t[Qe]=r:delete t[Qe]),i}(t):function(e){return Ae.call(e)}(t)}function Cr(e,t){return e>t}function _r(e,t){return null!=e&&De.call(e,t)}function Lr(e,t){return null!=e&&t in Ce(e)}function kr(t,n,r){for(var o=r?qt:Rt,i=t[0].length,a=t.length,s=a,l=ye(a),c=1/0,u=[];s--;){var d=t[s];s&&n&&(d=It(d,Kt(n))),c=bn(d.length,c),l[s]=!r&&(n||i>=120&&d.length>=120)?new Gn(s&&d):e}d=t[0];var f=-1,p=l[0];e:for(;++f<i&&u.length<c;){var h=d[f],m=n?n(h):h;if(h=r||0!==h?h:0,!(p?Zt(p,m):o(u,m,r))){for(s=a;--s;){var g=l[s];if(!(g?Zt(g,m):o(t[s],m,r)))continue e}p&&p.push(m),u.push(h)}}return u}function Rr(t,n,r){var o=null==(t=Li(t,n=vo(n,t)))?t:t[Mi(Ki(n))];return null==o?e:Et(o,t,r)}function qr(e){return Qa(e)&&wr(e)==f}function Ir(t,n,r,o,i){return t===n||(null==t||null==n||!Qa(t)&&!Qa(n)?t!=t&&n!=n:function(t,n,r,o,i,a){var s=Wa(t),l=Wa(n),c=s?p:pi(t),u=l?p:pi(n),d=(c=c==f?x:c)==x,b=(u=u==f?x:u)==x,v=c==u;if(v&&Ga(t)){if(!Ga(n))return!1;s=!0,d=!1}if(v&&!d)return a||(a=new Vn),s||ss(t)?ei(t,n,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case q:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new We(e),new We(t)));case h:case m:case S:return ja(+e,+t);case g:return e.name==t.name&&e.message==t.message;case w:case _:return e==t+"";case y:var s=rn;case C:var l=1&r;if(s||(s=sn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ei(s(e),s(t),r,o,i,a);return a.delete(e),u;case L:if(An)return An.call(e)==An.call(t)}return!1}(t,n,c,r,o,i,a);if(!(1&r)){var E=d&&De.call(t,"__wrapped__"),k=b&&De.call(n,"__wrapped__");if(E||k){var I=E?t.value():t,O=k?n.value():n;return a||(a=new Vn),i(I,O,r,o,a)}}return!!v&&(a||(a=new Vn),function(t,n,r,o,i,a){var s=1&r,l=ni(t),c=l.length,u=ni(n),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in n:De.call(n,p)))return!1}var h=a.get(t),m=a.get(n);if(h&&m)return h==n&&m==t;var g=!0;a.set(t,n),a.set(n,t);for(var b=s;++f<c;){var v=t[p=l[f]],y=n[p];if(o)var S=s?o(y,v,p,n,t,a):o(v,y,p,t,n,a);if(!(S===e?v===y||i(v,y,r,o,a):S)){g=!1;break}b||(b="constructor"==p)}if(g&&!b){var x=t.constructor,E=n.constructor;x==E||!("constructor"in t)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(g=!1)}return a.delete(t),a.delete(n),g}(t,n,r,o,i,a))}(t,n,r,o,Ir,i))}function Or(t,n,r,o){var i=r.length,a=i,s=!o;if(null==t)return!a;for(t=Ce(t);i--;){var l=r[i];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i<a;){var c=(l=r[i])[0],u=t[c],d=l[1];if(s&&l[2]){if(u===e&&!(c in t))return!1}else{var f=new Vn;if(o)var p=o(u,d,c,t,n,f);if(!(p===e?Ir(d,u,3,o,f):p))return!1}}return!0}function Tr(e){return!(!Ya(e)||(t=e,Me&&Me in t))&&(Ja(e)?ze:pe).test(Ai(e));var t}function Dr(e){return"function"==typeof e?e:null==e?tl:"object"==typeof e?Wa(e)?zr(e[0],e[1]):jr(e):ul(e)}function Pr(e){if(!Ei(e))return mn(e);var t=[];for(var n in Ce(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mr(e){if(!Ya(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}function Ar(e,t){return e<t}function Nr(e,t){var n=-1,r=Ha(e)?ye(e.length):[];return ur(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function jr(e){var t=ci(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}}function zr(t,n){return yi(t)&&wi(n)?Ci(Mi(t),n):function(r){var o=Cs(r,t);return o===e&&o===n?_s(r,t):Ir(n,o,3)}}function Fr(t,n,r,o,i){t!==n&&gr(n,(function(a,s){if(i||(i=new Vn),Ya(a))!function(t,n,r,o,i,a,s){var l=ki(t,r),c=ki(n,r),u=s.get(c);if(u)Yn(t,r,u);else{var d=a?a(l,c,r+"",t,n,s):e,f=d===e;if(f){var p=Wa(c),h=!p&&Ga(c),m=!p&&!h&&ss(c);d=c,p||h||m?Wa(l)?d=l:$a(l)?d=Ro(l):h?(f=!1,d=Eo(c,!0)):m?(f=!1,d=Co(c,!0)):d=[]:ns(c)||Ba(c)?(d=l,Ba(l)?d=ms(l):Ya(l)&&!Ja(l)||(d=mi(c))):f=!1}f&&(s.set(c,d),i(d,c,o,a,s),s.delete(c)),Yn(t,r,d)}}(t,n,s,r,Fr,o,i);else{var l=o?o(ki(t,s),a,s+"",t,n,i):e;l===e&&(l=a),Yn(t,s,l)}}),Is)}function Br(t,n){var r=t.length;if(r)return bi(n+=n<0?r:0,r)?t[n]:e}function Wr(e,t,n){t=t.length?It(t,(function(e){return Wa(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[tl];var r=-1;t=It(t,Kt(si()));var o=Nr(e,(function(e,n,o){var i=It(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=_o(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ur(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=xr(e,a);n(s,a)&&Xr(i,vo(a,e),s)}return i}function Hr(e,t,n,r){var o=r?zt:jt,i=-1,a=t.length,s=e;for(e===t&&(t=Ro(t)),n&&(s=It(e,Kt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Ve.call(s,l,1),Ve.call(e,l,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;bi(o)?Ve.call(e,o,1):co(e,o)}}return e}function Gr(e,t){return e+ht(Sn()*(t-e+1))}function Vr(e,t){var n="";if(!e||t<1||t>l)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ii(_i(e,t,tl),e+"")}function Jr(e){return Jn(js(e))}function Zr(e,t){var n=js(e);return Di(n,ir(t,0,n.length))}function Xr(t,n,r,o){if(!Ya(t))return t;for(var i=-1,a=(n=vo(n,t)).length,s=a-1,l=t;null!=l&&++i<a;){var c=Mi(n[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=s){var d=l[c];(u=o?o(d,c,l):e)===e&&(u=Ya(d)?d:bi(n[i+1])?[]:{})}Qn(l,c,u),l=l[c]}return t}var Yr=Rn?function(e,t){return Rn.set(e,t),e}:tl,Qr=it?function(e,t){return it(e,"toString",{configurable:!0,enumerable:!1,value:Ys(t),writable:!0})}:tl;function eo(e){return Di(js(e))}function to(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=ye(o);++r<o;)i[r]=e[r+t];return i}function no(e,t){var n;return ur(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!as(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,tl,n)}function oo(t,n,r,o){var i=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(n=r(n))!=n,l=null===n,c=as(n),u=n===e;i<a;){var d=ht((i+a)/2),f=r(t[d]),p=f!==e,h=null===f,m=f==f,g=as(f);if(s)var b=o||m;else b=u?m&&(o||p):l?m&&p&&(o||!h):c?m&&p&&!h&&(o||!g):!h&&!g&&(o?f<=n:f<n);b?i=d+1:a=d}return bn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ja(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:as(e)?c:+e}function so(e){if("string"==typeof e)return e;if(Wa(e))return It(e,so)+"";if(as(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lo(e,t,n){var r=-1,o=Rt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=qt;else if(i>=200){var c=t?null:Ko(e);if(c)return sn(c);a=!1,o=Zt,l=new Gn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function co(e,t){return null==(e=Li(e,t=vo(t,e)))||delete e[Mi(Ki(t))]}function uo(e,t,n,r){return Xr(e,t,n(xr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Tt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function ho(e,t,n){var r=e.length;if(r<2)return r?lo(e[0]):[];for(var o=-1,i=ye(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=cr(i[o]||a,e[s],t,n));return lo(mr(i,1),t,n)}function mo(t,n,r){for(var o=-1,i=t.length,a=n.length,s={};++o<i;){var l=o<a?n[o]:e;r(s,t[o],l)}return s}function go(e){return $a(e)?e:[]}function bo(e){return"function"==typeof e?e:tl}function vo(e,t){return Wa(e)?e:yi(e,t)?[e]:Pi(gs(e))}var yo=Kr;function So(t,n,r){var o=t.length;return r=r===e?o:r,!n&&r>=o?t:to(t,n,r)}var xo=lt||function(e){return ut.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function wo(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Co(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _o(t,n){if(t!==n){var r=t!==e,o=null===t,i=t==t,a=as(t),s=n!==e,l=null===n,c=n==n,u=as(n);if(!l&&!u&&!a&&t>n||a&&s&&c&&!l&&!u||o&&s&&c||!r&&c||!i)return 1;if(!o&&!a&&!u&&t<n||u&&r&&i&&!o&&!a||l&&r&&i||!s&&i||!c)return-1}return 0}function Lo(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,c=gn(i-a,0),u=ye(l+c),d=!r;++s<l;)u[s]=t[s];for(;++o<a;)(d||o<i)&&(u[n[o]]=e[o]);for(;c--;)u[s++]=e[o++];return u}function ko(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,c=t.length,u=gn(i-s,0),d=ye(u+c),f=!r;++o<u;)d[o]=e[o];for(var p=o;++l<c;)d[p+l]=t[l];for(;++a<s;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function Ro(e,t){var n=-1,r=e.length;for(t||(t=ye(r));++n<r;)t[n]=e[n];return t}function qo(t,n,r,o){var i=!r;r||(r={});for(var a=-1,s=n.length;++a<s;){var l=n[a],c=o?o(r[l],t[l],l,r,t):e;c===e&&(c=t[l]),i?rr(r,l,c):Qn(r,l,c)}return r}function Io(e,t){return function(n,r){var o=Wa(n)?wt:tr,i=t?t():{};return o(n,e,si(r,2),i)}}function Oo(t){return Kr((function(n,r){var o=-1,i=r.length,a=i>1?r[i-1]:e,s=i>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(i--,a):e,s&&vi(r[0],r[1],s)&&(a=i<3?e:a,i=1),n=Ce(n);++o<i;){var l=r[o];l&&t(n,l,o,a)}return n}))}function To(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ce(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Do(e){return function(t,n,r){for(var o=-1,i=Ce(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Po(t){return function(n){var r=nn(n=gs(n))?un(n):e,o=r?r[0]:n.charAt(0),i=r?So(r,1).join(""):n.slice(1);return o[t]()+i}}function Mo(e){return function(t){return Tt(Js(Bs(t).replace(Je,"")),e,"")}}function Ao(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return Ya(r)?r:n}}function No(t){return function(n,r,o){var i=Ce(n);if(!Ha(n)){var a=si(r,3);n=qs(n),r=function(e){return a(i[e],e,i)}}var s=t(n,r,o);return s>-1?i[a?n[s]:s]:e}}function jo(n){return ti((function(r){var o=r.length,i=o,a=Bn.prototype.thru;for(n&&r.reverse();i--;){var s=r[i];if("function"!=typeof s)throw new ke(t);if(a&&!l&&"wrapper"==ii(s))var l=new Bn([],!0)}for(i=l?i:o;++i<o;){var c=ii(s=r[i]),u="wrapper"==c?oi(s):e;l=u&&Si(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ii(u[0])].apply(l,u[3]):1==s.length&&Si(s)?l[c]():l.thru(s)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&Wa(t))return l.plant(t).value();for(var n=0,i=o?r[n].apply(this,e):t;++n<o;)i=r[n].call(this,i);return i}}))}function zo(t,n,r,o,a,s,l,c,u,d){var f=n&i,p=1&n,h=2&n,m=24&n,g=512&n,b=h?e:Ao(t);return function i(){for(var v=arguments.length,y=ye(v),S=v;S--;)y[S]=arguments[S];if(m)var x=ai(i),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,x);if(o&&(y=Lo(y,o,a,m)),s&&(y=ko(y,s,l,m)),v-=E,m&&v<d){var w=an(y,x);return Go(t,n,zo,i.placeholder,r,y,w,c,u,d-v)}var C=p?r:this,_=h?C[t]:t;return v=y.length,c?y=function(t,n){for(var r=t.length,o=bn(n.length,r),i=Ro(t);o--;){var a=n[o];t[o]=bi(a,r)?i[a]:e}return t}(y,c):g&&v>1&&y.reverse(),f&&u<v&&(y.length=u),this&&this!==ut&&this instanceof i&&(_=b||Ao(_)),_.apply(C,y)}}function Fo(e,t){return function(n,r){return function(e,t,n,r){return vr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Bo(t,n){return function(r,o){var i;if(r===e&&o===e)return n;if(r!==e&&(i=r),o!==e){if(i===e)return o;"string"==typeof r||"string"==typeof o?(r=so(r),o=so(o)):(r=ao(r),o=ao(o)),i=t(r,o)}return i}}function Wo(e){return ti((function(t){return t=It(t,Kt(si())),Kr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Uo(t,n){var r=(n=n===e?" ":so(n)).length;if(r<2)return r?Vr(n,t):n;var o=Vr(n,ft(t/cn(n)));return nn(n)?So(un(o),0,t).join(""):o.slice(0,t)}function Ho(t){return function(n,r,o){return o&&"number"!=typeof o&&vi(n,r,o)&&(r=o=e),n=ds(n),r===e?(r=n,n=0):r=ds(r),function(e,t,n,r){for(var o=-1,i=gn(ft((t-e)/(n||1)),0),a=ye(i);i--;)a[r?i:++o]=e,e+=n;return a}(n,r,o=o===e?n<r?1:-1:ds(o),t)}}function $o(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=hs(t),n=hs(n)),e(t,n)}}function Go(t,n,r,i,a,s,l,c,u,d){var f=8&n;n|=f?o:64,4&(n&=~(f?64:o))||(n&=-4);var p=[t,n,a,f?s:e,f?l:e,f?e:s,f?e:l,c,u,d],h=r.apply(e,p);return Si(t)&&Ri(h,p),h.placeholder=i,Oi(h,t,n)}function Vo(e){var t=we[e];return function(e,n){if(e=hs(e),(n=null==n?0:bn(fs(n),292))&&Ut(e)){var r=(gs(e)+"e").split("e");return+((r=(gs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ko=_n&&1/sn(new _n([,-0]))[1]==s?function(e){return new _n(e)}:al;function Jo(e){return function(t){var n=pi(t);return n==y?rn(t):n==C?ln(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zo(n,s,l,c,u,d,f,p){var h=2&s;if(!h&&"function"!=typeof n)throw new ke(t);var m=c?c.length:0;if(m||(s&=-97,c=u=e),f=f===e?f:gn(fs(f),0),p=p===e?p:fs(p),m-=u?u.length:0,64&s){var g=c,b=u;c=u=e}var v=h?e:oi(n),y=[n,s,l,c,u,g,b,d,f,p];if(v&&function(e,t){var n=e[1],o=t[1],s=n|o,l=s<131,c=o==i&&8==n||o==i&&n==a&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!l&&!c)return e;1&o&&(e[2]=t[2],s|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Lo(d,u,t[4]):u,e[4]=d?an(e[3],r):t[4]}(u=t[5])&&(d=e[5],e[5]=d?ko(d,u,t[6]):u,e[6]=d?an(e[5],r):t[6]),(u=t[7])&&(e[7]=u),o&i&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=s}(y,v),n=y[0],s=y[1],l=y[2],c=y[3],u=y[4],!(p=y[9]=y[9]===e?h?0:n.length:gn(y[9]-m,0))&&24&s&&(s&=-25),s&&1!=s)S=8==s||16==s?function(t,n,r){var o=Ao(t);return function i(){for(var a=arguments.length,s=ye(a),l=a,c=ai(i);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:an(s,c);return(a-=u.length)<r?Go(t,n,zo,i.placeholder,e,s,u,e,e,r-a):Et(this&&this!==ut&&this instanceof i?o:t,this,s)}}(n,s,p):s!=o&&33!=s||u.length?zo.apply(e,y):function(e,t,n,r){var o=1&t,i=Ao(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=ye(c+s),d=this&&this!==ut&&this instanceof t?i:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return Et(d,o?n:this,u)}}(n,s,l,c);else var S=function(e,t,n){var r=1&t,o=Ao(e);return function t(){return(this&&this!==ut&&this instanceof t?o:e).apply(r?n:this,arguments)}}(n,s,l);return Oi((v?Yr:Ri)(S,y),n,s)}function Xo(t,n,r,o){return t===e||ja(t,Ie[r])&&!De.call(o,r)?n:t}function Yo(t,n,r,o,i,a){return Ya(t)&&Ya(n)&&(a.set(n,t),Fr(t,n,e,Yo,a),a.delete(n)),t}function Qo(t){return ns(t)?e:t}function ei(t,n,r,o,i,a){var s=1&r,l=t.length,c=n.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(t),d=a.get(n);if(u&&d)return u==n&&d==t;var f=-1,p=!0,h=2&r?new Gn:e;for(a.set(t,n),a.set(n,t);++f<l;){var m=t[f],g=n[f];if(o)var b=s?o(g,m,f,n,t,a):o(m,g,f,t,n,a);if(b!==e){if(b)continue;p=!1;break}if(h){if(!Pt(n,(function(e,t){if(!Zt(h,t)&&(m===e||i(m,e,r,o,a)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!i(m,g,r,o,a)){p=!1;break}}return a.delete(t),a.delete(n),p}function ti(t){return Ii(_i(t,e,Ui),t+"")}function ni(e){return Er(e,qs,di)}function ri(e){return Er(e,Is,fi)}var oi=Rn?function(e){return Rn.get(e)}:al;function ii(e){for(var t=e.name+"",n=qn[t],r=De.call(qn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(De.call(jn,"placeholder")?jn:e).placeholder}function si(){var e=jn.iteratee||nl;return e=e===nl?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ci(e){for(var t=qs(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,wi(o)]}return t}function ui(t,n){var r=function(t,n){return null==t?e:t[n]}(t,n);return Tr(r)?r:e}var di=mt?function(e){return null==e?[]:(e=Ce(e),kt(mt(e),(function(t){return Ge.call(e,t)})))}:pl,fi=mt?function(e){for(var t=[];e;)Ot(t,di(e)),e=He(e);return t}:pl,pi=wr;function hi(e,t,n){for(var r=-1,o=(t=vo(t,e)).length,i=!1;++r<o;){var a=Mi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Xa(o)&&bi(a,o)&&(Wa(e)||Ba(e))}function mi(e){return"function"!=typeof e.constructor||Ei(e)?{}:zn(He(e))}function gi(e){return Wa(e)||Ba(e)||!!(Ke&&e&&e[Ke])}function bi(e,t){var n=typeof e;return!!(t=null==t?l:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!Ya(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&bi(t,n.length):"string"==r&&t in n)&&ja(n[t],e)}function yi(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!as(e))||X.test(e)||!Z.test(e)||null!=t&&e in Ce(t)}function Si(e){var t=ii(e),n=jn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(En&&pi(new En(new ArrayBuffer(1)))!=q||wn&&pi(new wn)!=y||Cn&&pi(Cn.resolve())!=E||_n&&pi(new _n)!=C||Ln&&pi(new Ln)!=k)&&(pi=function(t){var n=wr(t),r=n==x?t.constructor:e,o=r?Ai(r):"";if(o)switch(o){case In:return q;case On:return y;case Tn:return E;case Dn:return C;case Pn:return k}return n});var xi=Oe?Ja:hl;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function wi(e){return e==e&&!Ya(e)}function Ci(t,n){return function(r){return null!=r&&r[t]===n&&(n!==e||t in Ce(r))}}function _i(t,n,r){return n=gn(n===e?t.length-1:n,0),function(){for(var e=arguments,o=-1,i=gn(e.length-n,0),a=ye(i);++o<i;)a[o]=e[n+o];o=-1;for(var s=ye(n+1);++o<n;)s[o]=e[o];return s[n]=r(a),Et(t,this,s)}}function Li(e,t){return t.length<2?e:xr(e,to(t,0,-1))}function ki(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ri=Ti(Yr),qi=dt||function(e,t){return ut.setTimeout(e,t)},Ii=Ti(Qr);function Oi(e,t,n){var r=t+"";return Ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(d,(function(n){var r="_."+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(ie):[]}(r),n)))}function Ti(t){var n=0,r=0;return function(){var o=vn(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Di(t,n){var r=-1,o=t.length,i=o-1;for(n=n===e?o:n;++r<n;){var a=Gr(r,i),s=t[a];t[a]=t[r],t[r]=s}return t.length=n,t}var Pi=function(e){var t=Ta(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Y,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}));function Mi(e){if("string"==typeof e||as(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ai(e){if(null!=e){try{return Te.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ni(e){if(e instanceof Wn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=Ro(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ji=Kr((function(e,t){return $a(e)?cr(e,mr(t,1,$a,!0)):[]})),zi=Kr((function(t,n){var r=Ki(n);return $a(r)&&(r=e),$a(t)?cr(t,mr(n,1,$a,!0),si(r,2)):[]})),Fi=Kr((function(t,n){var r=Ki(n);return $a(r)&&(r=e),$a(t)?cr(t,mr(n,1,$a,!0),e,r):[]}));function Bi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fs(n);return o<0&&(o=gn(r+o,0)),Nt(e,si(t,3),o)}function Wi(t,n,r){var o=null==t?0:t.length;if(!o)return-1;var i=o-1;return r!==e&&(i=fs(r),i=r<0?gn(o+i,0):bn(i,o-1)),Nt(t,si(n,3),i,!0)}function Ui(e){return null!=e&&e.length?mr(e,1):[]}function Hi(t){return t&&t.length?t[0]:e}var $i=Kr((function(e){var t=It(e,go);return t.length&&t[0]===e[0]?kr(t):[]})),Gi=Kr((function(t){var n=Ki(t),r=It(t,go);return n===Ki(r)?n=e:r.pop(),r.length&&r[0]===t[0]?kr(r,si(n,2)):[]})),Vi=Kr((function(t){var n=Ki(t),r=It(t,go);return(n="function"==typeof n?n:e)&&r.pop(),r.length&&r[0]===t[0]?kr(r,e,n):[]}));function Ki(t){var n=null==t?0:t.length;return n?t[n-1]:e}var Ji=Kr(Zi);function Zi(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var Xi=ti((function(e,t){var n=null==e?0:e.length,r=or(e,t);return $r(e,It(t,(function(e){return bi(e,n)?+e:e})).sort(_o)),r}));function Yi(e){return null==e?e:xn.call(e)}var Qi=Kr((function(e){return lo(mr(e,1,$a,!0))})),ea=Kr((function(t){var n=Ki(t);return $a(n)&&(n=e),lo(mr(t,1,$a,!0),si(n,2))})),ta=Kr((function(t){var n=Ki(t);return n="function"==typeof n?n:e,lo(mr(t,1,$a,!0),e,n)}));function na(e){if(!e||!e.length)return[];var t=0;return e=kt(e,(function(e){if($a(e))return t=gn(e.length,t),!0})),Gt(t,(function(t){return It(e,Wt(t))}))}function ra(t,n){if(!t||!t.length)return[];var r=na(t);return null==n?r:It(r,(function(t){return Et(n,e,t)}))}var oa=Kr((function(e,t){return $a(e)?cr(e,t):[]})),ia=Kr((function(e){return ho(kt(e,$a))})),aa=Kr((function(t){var n=Ki(t);return $a(n)&&(n=e),ho(kt(t,$a),si(n,2))})),sa=Kr((function(t){var n=Ki(t);return n="function"==typeof n?n:e,ho(kt(t,$a),e,n)})),la=Kr(na),ca=Kr((function(t){var n=t.length,r=n>1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,ra(t,r)}));function ua(e){var t=jn(e);return t.__chain__=!0,t}function da(e,t){return t(e)}var fa=ti((function(t){var n=t.length,r=n?t[0]:0,o=this.__wrapped__,i=function(e){return or(e,t)};return!(n>1||this.__actions__.length)&&o instanceof Wn&&bi(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:da,args:[i],thisArg:e}),new Bn(o,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(i)})),pa=Io((function(e,t,n){De.call(e,n)?++e[n]:rr(e,n,1)})),ha=No(Bi),ma=No(Wi);function ga(e,t){return(Wa(e)?Ct:ur)(e,si(t,3))}function ba(e,t){return(Wa(e)?_t:dr)(e,si(t,3))}var va=Io((function(e,t,n){De.call(e,n)?e[n].push(t):rr(e,n,[t])})),ya=Kr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ha(e)?ye(e.length):[];return ur(e,(function(e){i[++r]=o?Et(t,e,n):Rr(e,t,n)})),i})),Sa=Io((function(e,t,n){rr(e,n,t)}));function xa(e,t){return(Wa(e)?It:Nr)(e,si(t,3))}var Ea=Io((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),wa=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vi(e,t[0],t[1])?t=[]:n>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,mr(t,1),[])})),Ca=ct||function(){return ut.Date.now()};function _a(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,Zo(t,i,e,e,e,e,n)}function La(n,r){var o;if("function"!=typeof r)throw new ke(t);return n=fs(n),function(){return--n>0&&(o=r.apply(this,arguments)),n<=1&&(r=e),o}}var ka=Kr((function(e,t,n){var r=1;if(n.length){var i=an(n,ai(ka));r|=o}return Zo(e,r,t,n,i)})),Ra=Kr((function(e,t,n){var r=3;if(n.length){var i=an(n,ai(Ra));r|=o}return Zo(t,r,e,n,i)}));function qa(n,r,o){var i,a,s,l,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof n)throw new ke(t);function m(t){var r=i,o=a;return i=a=e,d=t,l=n.apply(o,r)}function g(t){var n=t-u;return u===e||n>=r||n<0||p&&t-d>=s}function b(){var e=Ca();if(g(e))return v(e);c=qi(b,function(e){var t=r-(e-u);return p?bn(t,s-(e-d)):t}(e))}function v(t){return c=e,h&&i?m(t):(i=a=e,l)}function y(){var t=Ca(),n=g(t);if(i=arguments,a=this,u=t,n){if(c===e)return function(e){return d=e,c=qi(b,r),f?m(e):l}(u);if(p)return xo(c),c=qi(b,r),m(u)}return c===e&&(c=qi(b,r)),l}return r=hs(r)||0,Ya(o)&&(f=!!o.leading,s=(p="maxWait"in o)?gn(hs(o.maxWait)||0,r):s,h="trailing"in o?!!o.trailing:h),y.cancel=function(){c!==e&&xo(c),d=0,i=u=a=c=e},y.flush=function(){return c===e?l:v(Ca())},y}var Ia=Kr((function(e,t){return lr(e,1,t)})),Oa=Kr((function(e,t,n){return lr(e,hs(t)||0,n)}));function Ta(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new ke(t);var r=function(){var t=arguments,o=n?n.apply(this,t):t[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,t);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ta.Cache||$n),r}function Da(e){if("function"!=typeof e)throw new ke(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ta.Cache=$n;var Pa=yo((function(e,t){var n=(t=1==t.length&&Wa(t[0])?It(t[0],Kt(si())):It(mr(t,1),Kt(si()))).length;return Kr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Et(e,this,r)}))})),Ma=Kr((function(t,n){var r=an(n,ai(Ma));return Zo(t,o,e,n,r)})),Aa=Kr((function(t,n){var r=an(n,ai(Aa));return Zo(t,64,e,n,r)})),Na=ti((function(t,n){return Zo(t,a,e,e,e,n)}));function ja(e,t){return e===t||e!=e&&t!=t}var za=$o(Cr),Fa=$o((function(e,t){return e>=t})),Ba=qr(function(){return arguments}())?qr:function(e){return Qa(e)&&De.call(e,"callee")&&!Ge.call(e,"callee")},Wa=ye.isArray,Ua=gt?Kt(gt):function(e){return Qa(e)&&wr(e)==R};function Ha(e){return null!=e&&Xa(e.length)&&!Ja(e)}function $a(e){return Qa(e)&&Ha(e)}var Ga=Mt||hl,Va=bt?Kt(bt):function(e){return Qa(e)&&wr(e)==m};function Ka(e){if(!Qa(e))return!1;var t=wr(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function Ja(e){if(!Ya(e))return!1;var t=wr(e);return t==b||t==v||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==fs(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function Ya(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qa(e){return null!=e&&"object"==typeof e}var es=vt?Kt(vt):function(e){return Qa(e)&&pi(e)==y};function ts(e){return"number"==typeof e||Qa(e)&&wr(e)==S}function ns(e){if(!Qa(e)||wr(e)!=x)return!1;var t=He(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Te.call(n)==Ne}var rs=yt?Kt(yt):function(e){return Qa(e)&&wr(e)==w},os=St?Kt(St):function(e){return Qa(e)&&pi(e)==C};function is(e){return"string"==typeof e||!Wa(e)&&Qa(e)&&wr(e)==_}function as(e){return"symbol"==typeof e||Qa(e)&&wr(e)==L}var ss=xt?Kt(xt):function(e){return Qa(e)&&Xa(e.length)&&!!rt[wr(e)]},ls=$o(Ar),cs=$o((function(e,t){return e<=t}));function us(e){if(!e)return[];if(Ha(e))return is(e)?un(e):Ro(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=pi(e);return(t==y?rn:t==C?sn:js)(e)}function ds(e){return e?(e=hs(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=ds(e),n=t%1;return t==t?n?t-n:t:0}function ps(e){return e?ir(fs(e),0,u):0}function hs(e){if("number"==typeof e)return e;if(as(e))return c;if(Ya(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ya(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Vt(e);var n=fe.test(e);return n||he.test(e)?st(e.slice(2),n?2:8):de.test(e)?c:+e}function ms(e){return qo(e,Is(e))}function gs(e){return null==e?"":so(e)}var bs=Oo((function(e,t){if(Ei(t)||Ha(t))qo(t,qs(t),e);else for(var n in t)De.call(t,n)&&Qn(e,n,t[n])})),vs=Oo((function(e,t){qo(t,Is(t),e)})),ys=Oo((function(e,t,n,r){qo(t,Is(t),e,r)})),Ss=Oo((function(e,t,n,r){qo(t,qs(t),e,r)})),xs=ti(or),Es=Kr((function(t,n){t=Ce(t);var r=-1,o=n.length,i=o>2?n[2]:e;for(i&&vi(n[0],n[1],i)&&(o=1);++r<o;)for(var a=n[r],s=Is(a),l=-1,c=s.length;++l<c;){var u=s[l],d=t[u];(d===e||ja(d,Ie[u])&&!De.call(t,u))&&(t[u]=a[u])}return t})),ws=Kr((function(t){return t.push(e,Yo),Et(Ts,e,t)}));function Cs(t,n,r){var o=null==t?e:xr(t,n);return o===e?r:o}function _s(e,t){return null!=e&&hi(e,t,Lr)}var Ls=Fo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),e[t]=n}),Ys(tl)),ks=Fo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]}),si),Rs=Kr(Rr);function qs(e){return Ha(e)?Kn(e):Pr(e)}function Is(e){return Ha(e)?Kn(e,!0):Mr(e)}var Os=Oo((function(e,t,n){Fr(e,t,n)})),Ts=Oo((function(e,t,n,r){Fr(e,t,n,r)})),Ds=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=It(t,(function(t){return t=vo(t,e),r||(r=t.length>1),t})),qo(e,ri(e),n),r&&(n=ar(n,7,Qo));for(var o=t.length;o--;)co(n,t[o]);return n})),Ps=ti((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return _s(e,n)}))}(e,t)}));function Ms(e,t){if(null==e)return{};var n=It(ri(e),(function(e){return[e]}));return t=si(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var As=Jo(qs),Ns=Jo(Is);function js(e){return null==e?[]:Jt(e,qs(e))}var zs=Mo((function(e,t,n){return t=t.toLowerCase(),e+(n?Fs(t):t)}));function Fs(e){return Ks(gs(e).toLowerCase())}function Bs(e){return(e=gs(e))&&e.replace(ge,Qt).replace(Ze,"")}var Ws=Mo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Us=Mo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Po("toLowerCase"),$s=Mo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gs=Mo((function(e,t,n){return e+(n?" ":"")+Ks(t)})),Vs=Mo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Po("toUpperCase");function Js(t,n,r){return t=gs(t),(n=r?e:n)===e?function(e){return et.test(e)}(t)?function(e){return e.match(Ye)||[]}(t):function(e){return e.match(ae)||[]}(t):t.match(n)||[]}var Zs=Kr((function(t,n){try{return Et(t,e,n)}catch(e){return Ka(e)?e:new xe(e)}})),Xs=ti((function(e,t){return Ct(t,(function(t){t=Mi(t),rr(e,t,ka(e[t],e))})),e}));function Ys(e){return function(){return e}}var Qs=jo(),el=jo(!0);function tl(e){return e}function nl(e){return Dr("function"==typeof e?e:ar(e,1))}var rl=Kr((function(e,t){return function(n){return Rr(n,e,t)}})),ol=Kr((function(e,t){return function(n){return Rr(e,n,t)}}));function il(e,t,n){var r=qs(t),o=Sr(t,r);null!=n||Ya(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Sr(t,qs(t)));var i=!(Ya(n)&&"chain"in n&&!n.chain),a=Ja(e);return Ct(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ro(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function al(){}var sl=Wo(It),ll=Wo(Lt),cl=Wo(Pt);function ul(e){return yi(e)?Wt(Mi(e)):function(e){return function(t){return xr(t,e)}}(e)}var dl=Ho(),fl=Ho(!0);function pl(){return[]}function hl(){return!1}var ml,gl=Bo((function(e,t){return e+t}),0),bl=Vo("ceil"),vl=Bo((function(e,t){return e/t}),1),yl=Vo("floor"),Sl=Bo((function(e,t){return e*t}),1),xl=Vo("round"),El=Bo((function(e,t){return e-t}),0);return jn.after=function(e,n){if("function"!=typeof n)throw new ke(t);return e=fs(e),function(){if(--e<1)return n.apply(this,arguments)}},jn.ary=_a,jn.assign=bs,jn.assignIn=vs,jn.assignInWith=ys,jn.assignWith=Ss,jn.at=xs,jn.before=La,jn.bind=ka,jn.bindAll=Xs,jn.bindKey=Ra,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},jn.chain=ua,jn.chunk=function(t,n,r){n=(r?vi(t,n,r):n===e)?1:gn(fs(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var i=0,a=0,s=ye(ft(o/n));i<o;)s[a++]=to(t,i,i+=n);return s},jn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},jn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ye(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Ot(Wa(n)?Ro(n):[n],mr(t,1))},jn.cond=function(e){var n=null==e?0:e.length,r=si();return e=n?It(e,(function(e){if("function"!=typeof e[1])throw new ke(t);return[r(e[0]),e[1]]})):[],Kr((function(t){for(var r=-1;++r<n;){var o=e[r];if(Et(o[0],this,t))return Et(o[1],this,t)}}))},jn.conforms=function(e){return function(e){var t=qs(e);return function(n){return sr(n,e,t)}}(ar(e,1))},jn.constant=Ys,jn.countBy=pa,jn.create=function(e,t){var n=zn(e);return null==t?n:nr(n,t)},jn.curry=function t(n,r,o){var i=Zo(n,8,e,e,e,e,e,r=o?e:r);return i.placeholder=t.placeholder,i},jn.curryRight=function t(n,r,o){var i=Zo(n,16,e,e,e,e,e,r=o?e:r);return i.placeholder=t.placeholder,i},jn.debounce=qa,jn.defaults=Es,jn.defaultsDeep=ws,jn.defer=Ia,jn.delay=Oa,jn.difference=ji,jn.differenceBy=zi,jn.differenceWith=Fi,jn.drop=function(t,n,r){var o=null==t?0:t.length;return o?to(t,(n=r||n===e?1:fs(n))<0?0:n,o):[]},jn.dropRight=function(t,n,r){var o=null==t?0:t.length;return o?to(t,0,(n=o-(n=r||n===e?1:fs(n)))<0?0:n):[]},jn.dropRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0):[]},jn.fill=function(t,n,r,o){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&vi(t,n,r)&&(r=0,o=i),function(t,n,r,o){var i=t.length;for((r=fs(r))<0&&(r=-r>i?0:i+r),(o=o===e||o>i?i:fs(o))<0&&(o+=i),o=r>o?0:ps(o);r<o;)t[r++]=n;return t}(t,n,r,o)):[]},jn.filter=function(e,t){return(Wa(e)?kt:hr)(e,si(t,3))},jn.flatMap=function(e,t){return mr(xa(e,t),1)},jn.flatMapDeep=function(e,t){return mr(xa(e,t),s)},jn.flatMapDepth=function(t,n,r){return r=r===e?1:fs(r),mr(xa(t,n),r)},jn.flatten=Ui,jn.flattenDeep=function(e){return null!=e&&e.length?mr(e,s):[]},jn.flattenDepth=function(t,n){return null!=t&&t.length?mr(t,n=n===e?1:fs(n)):[]},jn.flip=function(e){return Zo(e,512)},jn.flow=Qs,jn.flowRight=el,jn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},jn.functions=function(e){return null==e?[]:Sr(e,qs(e))},jn.functionsIn=function(e){return null==e?[]:Sr(e,Is(e))},jn.groupBy=va,jn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},jn.intersection=$i,jn.intersectionBy=Gi,jn.intersectionWith=Vi,jn.invert=Ls,jn.invertBy=ks,jn.invokeMap=ya,jn.iteratee=nl,jn.keyBy=Sa,jn.keys=qs,jn.keysIn=Is,jn.map=xa,jn.mapKeys=function(e,t){var n={};return t=si(t,3),vr(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},jn.mapValues=function(e,t){var n={};return t=si(t,3),vr(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},jn.matches=function(e){return jr(ar(e,1))},jn.matchesProperty=function(e,t){return zr(e,ar(t,1))},jn.memoize=Ta,jn.merge=Os,jn.mergeWith=Ts,jn.method=rl,jn.methodOf=ol,jn.mixin=il,jn.negate=Da,jn.nthArg=function(e){return e=fs(e),Kr((function(t){return Br(t,e)}))},jn.omit=Ds,jn.omitBy=function(e,t){return Ms(e,Da(si(t)))},jn.once=function(e){return La(2,e)},jn.orderBy=function(t,n,r,o){return null==t?[]:(Wa(n)||(n=null==n?[]:[n]),Wa(r=o?e:r)||(r=null==r?[]:[r]),Wr(t,n,r))},jn.over=sl,jn.overArgs=Pa,jn.overEvery=ll,jn.overSome=cl,jn.partial=Ma,jn.partialRight=Aa,jn.partition=Ea,jn.pick=Ps,jn.pickBy=Ms,jn.property=ul,jn.propertyOf=function(t){return function(n){return null==t?e:xr(t,n)}},jn.pull=Ji,jn.pullAll=Zi,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,si(n,2)):e},jn.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?Hr(t,n,e,r):t},jn.pullAt=Xi,jn.range=dl,jn.rangeRight=fl,jn.rearg=Na,jn.reject=function(e,t){return(Wa(e)?kt:hr)(e,Da(si(t,3)))},jn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return $r(e,o),n},jn.rest=function(n,r){if("function"!=typeof n)throw new ke(t);return Kr(n,r=r===e?r:fs(r))},jn.reverse=Yi,jn.sampleSize=function(t,n,r){return n=(r?vi(t,n,r):n===e)?1:fs(n),(Wa(t)?Zn:Zr)(t,n)},jn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},jn.setWith=function(t,n,r,o){return o="function"==typeof o?o:e,null==t?t:Xr(t,n,r,o)},jn.shuffle=function(e){return(Wa(e)?Xn:eo)(e)},jn.slice=function(t,n,r){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&vi(t,n,r)?(n=0,r=o):(n=null==n?0:fs(n),r=r===e?o:fs(r)),to(t,n,r)):[]},jn.sortBy=wa,jn.sortedUniq=function(e){return e&&e.length?io(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},jn.split=function(t,n,r){return r&&"number"!=typeof r&&vi(t,n,r)&&(n=r=e),(r=r===e?u:r>>>0)?(t=gs(t))&&("string"==typeof n||null!=n&&!rs(n))&&!(n=so(n))&&nn(t)?So(un(t),0,r):t.split(n,r):[]},jn.spread=function(e,n){if("function"!=typeof e)throw new ke(t);return n=null==n?0:gn(fs(n),0),Kr((function(t){var r=t[n],o=So(t,0,n);return r&&Ot(o,r),Et(e,this,o)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},jn.take=function(t,n,r){return t&&t.length?to(t,0,(n=r||n===e?1:fs(n))<0?0:n):[]},jn.takeRight=function(t,n,r){var o=null==t?0:t.length;return o?to(t,(n=o-(n=r||n===e?1:fs(n)))<0?0:n,o):[]},jn.takeRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?fo(e,si(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw new ke(t);return Ya(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),qa(e,n,{leading:o,maxWait:n,trailing:i})},jn.thru=da,jn.toArray=us,jn.toPairs=As,jn.toPairsIn=Ns,jn.toPath=function(e){return Wa(e)?It(e,Mi):as(e)?[e]:Ro(Pi(gs(e)))},jn.toPlainObject=ms,jn.transform=function(e,t,n){var r=Wa(e),o=r||Ga(e)||ss(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ya(e)&&Ja(i)?zn(He(e)):{}}return(o?Ct:vr)(e,(function(e,r,o){return t(n,e,r,o)})),n},jn.unary=function(e){return _a(e,1)},jn.union=Qi,jn.unionBy=ea,jn.unionWith=ta,jn.uniq=function(e){return e&&e.length?lo(e):[]},jn.uniqBy=function(e,t){return e&&e.length?lo(e,si(t,2)):[]},jn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?lo(t,e,n):[]},jn.unset=function(e,t){return null==e||co(e,t)},jn.unzip=na,jn.unzipWith=ra,jn.update=function(e,t,n){return null==e?e:uo(e,t,bo(n))},jn.updateWith=function(t,n,r,o){return o="function"==typeof o?o:e,null==t?t:uo(t,n,bo(r),o)},jn.values=js,jn.valuesIn=function(e){return null==e?[]:Jt(e,Is(e))},jn.without=oa,jn.words=Js,jn.wrap=function(e,t){return Ma(bo(t),e)},jn.xor=ia,jn.xorBy=aa,jn.xorWith=sa,jn.zip=la,jn.zipObject=function(e,t){return mo(e||[],t||[],Qn)},jn.zipObjectDeep=function(e,t){return mo(e||[],t||[],Xr)},jn.zipWith=ca,jn.entries=As,jn.entriesIn=Ns,jn.extend=vs,jn.extendWith=ys,il(jn,jn),jn.add=gl,jn.attempt=Zs,jn.camelCase=zs,jn.capitalize=Fs,jn.ceil=bl,jn.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=hs(r))==r?r:0),n!==e&&(n=(n=hs(n))==n?n:0),ir(hs(t),n,r)},jn.clone=function(e){return ar(e,4)},jn.cloneDeep=function(e){return ar(e,5)},jn.cloneDeepWith=function(t,n){return ar(t,5,n="function"==typeof n?n:e)},jn.cloneWith=function(t,n){return ar(t,4,n="function"==typeof n?n:e)},jn.conformsTo=function(e,t){return null==t||sr(e,t,qs(t))},jn.deburr=Bs,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=vl,jn.endsWith=function(t,n,r){t=gs(t),n=so(n);var o=t.length,i=r=r===e?o:ir(fs(r),0,o);return(r-=n.length)>=0&&t.slice(r,i)==n},jn.eq=ja,jn.escape=function(e){return(e=gs(e))&&$.test(e)?e.replace(U,en):e},jn.escapeRegExp=function(e){return(e=gs(e))&&ee.test(e)?e.replace(Q,"\\$&"):e},jn.every=function(t,n,r){var o=Wa(t)?Lt:fr;return r&&vi(t,n,r)&&(n=e),o(t,si(n,3))},jn.find=ha,jn.findIndex=Bi,jn.findKey=function(e,t){return At(e,si(t,3),vr)},jn.findLast=ma,jn.findLastIndex=Wi,jn.findLastKey=function(e,t){return At(e,si(t,3),yr)},jn.floor=yl,jn.forEach=ga,jn.forEachRight=ba,jn.forIn=function(e,t){return null==e?e:gr(e,si(t,3),Is)},jn.forInRight=function(e,t){return null==e?e:br(e,si(t,3),Is)},jn.forOwn=function(e,t){return e&&vr(e,si(t,3))},jn.forOwnRight=function(e,t){return e&&yr(e,si(t,3))},jn.get=Cs,jn.gt=za,jn.gte=Fa,jn.has=function(e,t){return null!=e&&hi(e,t,_r)},jn.hasIn=_s,jn.head=Hi,jn.identity=tl,jn.includes=function(e,t,n,r){e=Ha(e)?e:js(e),n=n&&!r?fs(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),is(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&jt(e,t,n)>-1},jn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fs(n);return o<0&&(o=gn(r+o,0)),jt(e,t,o)},jn.inRange=function(t,n,r){return n=ds(n),r===e?(r=n,n=0):r=ds(r),function(e,t,n){return e>=bn(t,n)&&e<gn(t,n)}(t=hs(t),n,r)},jn.invoke=Rs,jn.isArguments=Ba,jn.isArray=Wa,jn.isArrayBuffer=Ua,jn.isArrayLike=Ha,jn.isArrayLikeObject=$a,jn.isBoolean=function(e){return!0===e||!1===e||Qa(e)&&wr(e)==h},jn.isBuffer=Ga,jn.isDate=Va,jn.isElement=function(e){return Qa(e)&&1===e.nodeType&&!ns(e)},jn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||ss(e)||Ba(e)))return!e.length;var t=pi(e);if(t==y||t==C)return!e.size;if(Ei(e))return!Pr(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Ir(e,t)},jn.isEqualWith=function(t,n,r){var o=(r="function"==typeof r?r:e)?r(t,n):e;return o===e?Ir(t,n,e,r):!!o},jn.isError=Ka,jn.isFinite=function(e){return"number"==typeof e&&Ut(e)},jn.isFunction=Ja,jn.isInteger=Za,jn.isLength=Xa,jn.isMap=es,jn.isMatch=function(e,t){return e===t||Or(e,t,ci(t))},jn.isMatchWith=function(t,n,r){return r="function"==typeof r?r:e,Or(t,n,ci(n),r)},jn.isNaN=function(e){return ts(e)&&e!=+e},jn.isNative=function(e){if(xi(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tr(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=ts,jn.isObject=Ya,jn.isObjectLike=Qa,jn.isPlainObject=ns,jn.isRegExp=rs,jn.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=l},jn.isSet=os,jn.isString=is,jn.isSymbol=as,jn.isTypedArray=ss,jn.isUndefined=function(t){return t===e},jn.isWeakMap=function(e){return Qa(e)&&pi(e)==k},jn.isWeakSet=function(e){return Qa(e)&&"[object WeakSet]"==wr(e)},jn.join=function(e,t){return null==e?"":hn.call(e,t)},jn.kebabCase=Ws,jn.last=Ki,jn.lastIndexOf=function(t,n,r){var o=null==t?0:t.length;if(!o)return-1;var i=o;return r!==e&&(i=(i=fs(r))<0?gn(o+i,0):bn(i,o-1)),n==n?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(t,n,i):Nt(t,Ft,i,!0)},jn.lowerCase=Us,jn.lowerFirst=Hs,jn.lt=ls,jn.lte=cs,jn.max=function(t){return t&&t.length?pr(t,tl,Cr):e},jn.maxBy=function(t,n){return t&&t.length?pr(t,si(n,2),Cr):e},jn.mean=function(e){return Bt(e,tl)},jn.meanBy=function(e,t){return Bt(e,si(t,2))},jn.min=function(t){return t&&t.length?pr(t,tl,Ar):e},jn.minBy=function(t,n){return t&&t.length?pr(t,si(n,2),Ar):e},jn.stubArray=pl,jn.stubFalse=hl,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=Sl,jn.nth=function(t,n){return t&&t.length?Br(t,fs(n)):e},jn.noConflict=function(){return ut._===this&&(ut._=je),this},jn.noop=al,jn.now=Ca,jn.pad=function(e,t,n){e=gs(e);var r=(t=fs(t))?cn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Uo(ht(o),n)+e+Uo(ft(o),n)},jn.padEnd=function(e,t,n){e=gs(e);var r=(t=fs(t))?cn(e):0;return t&&r<t?e+Uo(t-r,n):e},jn.padStart=function(e,t,n){e=gs(e);var r=(t=fs(t))?cn(e):0;return t&&r<t?Uo(t-r,n)+e:e},jn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(gs(e).replace(te,""),t||0)},jn.random=function(t,n,r){if(r&&"boolean"!=typeof r&&vi(t,n,r)&&(n=r=e),r===e&&("boolean"==typeof n?(r=n,n=e):"boolean"==typeof t&&(r=t,t=e)),t===e&&n===e?(t=0,n=1):(t=ds(t),n===e?(n=t,t=0):n=ds(n)),t>n){var o=t;t=n,n=o}if(r||t%1||n%1){var i=Sn();return bn(t+i*(n-t+at("1e-"+((i+"").length-1))),n)}return Gr(t,n)},jn.reduce=function(e,t,n){var r=Wa(e)?Tt:Ht,o=arguments.length<3;return r(e,si(t,4),n,o,ur)},jn.reduceRight=function(e,t,n){var r=Wa(e)?Dt:Ht,o=arguments.length<3;return r(e,si(t,4),n,o,dr)},jn.repeat=function(t,n,r){return n=(r?vi(t,n,r):n===e)?1:fs(n),Vr(gs(t),n)},jn.replace=function(){var e=arguments,t=gs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(t,n,r){var o=-1,i=(n=vo(n,t)).length;for(i||(i=1,t=e);++o<i;){var a=null==t?e:t[Mi(n[o])];a===e&&(o=i,a=r),t=Ja(a)?a.call(t):a}return t},jn.round=xl,jn.runInContext=G,jn.sample=function(e){return(Wa(e)?Jn:Jr)(e)},jn.size=function(e){if(null==e)return 0;if(Ha(e))return is(e)?cn(e):e.length;var t=pi(e);return t==y||t==C?e.size:Pr(e).length},jn.snakeCase=$s,jn.some=function(t,n,r){var o=Wa(t)?Pt:no;return r&&vi(t,n,r)&&(n=e),o(t,si(n,3))},jn.sortedIndex=function(e,t){return ro(e,t)},jn.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},jn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&ja(e[r],t))return r}return-1},jn.sortedLastIndex=function(e,t){return ro(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},jn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(ja(e[n],t))return n}return-1},jn.startCase=Gs,jn.startsWith=function(e,t,n){return e=gs(e),n=null==n?0:ir(fs(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},jn.subtract=El,jn.sum=function(e){return e&&e.length?$t(e,tl):0},jn.sumBy=function(e,t){return e&&e.length?$t(e,si(t,2)):0},jn.template=function(t,n,r){var o=jn.templateSettings;r&&vi(t,n,r)&&(n=e),t=gs(t),n=ys({},n,o,Xo);var i,a,s=ys({},n.imports,o.imports,Xo),l=qs(s),c=Jt(s,l),u=0,d=n.interpolate||be,f="__p += '",p=_e((n.escape||be).source+"|"+d.source+"|"+(d===J?ce:be).source+"|"+(n.evaluate||be).source+"|$","g"),h="//# sourceURL="+(De.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";t.replace(p,(function(e,n,r,o,s,l){return r||(r=o),f+=t.slice(u,l).replace(ve,tn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+e.length,e})),f+="';\n";var m=De.call(n,"variable")&&n.variable;if(m){if(se.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(z,""):f).replace(F,"$1").replace(B,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Zs((function(){return Ee(l,h+"return "+f).apply(e,c)}));if(g.source=f,Ka(g))throw g;return g},jn.times=function(e,t){if((e=fs(e))<1||e>l)return[];var n=u,r=bn(e,u);t=si(t),e-=u;for(var o=Gt(r,t);++n<e;)t(n);return o},jn.toFinite=ds,jn.toInteger=fs,jn.toLength=ps,jn.toLower=function(e){return gs(e).toLowerCase()},jn.toNumber=hs,jn.toSafeInteger=function(e){return e?ir(fs(e),-9007199254740991,l):0===e?e:0},jn.toString=gs,jn.toUpper=function(e){return gs(e).toUpperCase()},jn.trim=function(t,n,r){if((t=gs(t))&&(r||n===e))return Vt(t);if(!t||!(n=so(n)))return t;var o=un(t),i=un(n);return So(o,Xt(o,i),Yt(o,i)+1).join("")},jn.trimEnd=function(t,n,r){if((t=gs(t))&&(r||n===e))return t.slice(0,dn(t)+1);if(!t||!(n=so(n)))return t;var o=un(t);return So(o,0,Yt(o,un(n))+1).join("")},jn.trimStart=function(t,n,r){if((t=gs(t))&&(r||n===e))return t.replace(te,"");if(!t||!(n=so(n)))return t;var o=un(t);return So(o,Xt(o,un(n))).join("")},jn.truncate=function(t,n){var r=30,o="...";if(Ya(n)){var i="separator"in n?n.separator:i;r="length"in n?fs(n.length):r,o="omission"in n?so(n.omission):o}var a=(t=gs(t)).length;if(nn(t)){var s=un(t);a=s.length}if(r>=a)return t;var l=r-cn(o);if(l<1)return o;var c=s?So(s,0,l).join(""):t.slice(0,l);if(i===e)return c+o;if(s&&(l+=c.length-l),rs(i)){if(t.slice(l).search(i)){var u,d=c;for(i.global||(i=_e(i.source,gs(ue.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;c=c.slice(0,f===e?l:f)}}else if(t.indexOf(so(i),l)!=l){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+o},jn.unescape=function(e){return(e=gs(e))&&H.test(e)?e.replace(W,fn):e},jn.uniqueId=function(e){var t=++Pe;return gs(e)+t},jn.upperCase=Vs,jn.upperFirst=Ks,jn.each=ga,jn.eachRight=ba,jn.first=Hi,il(jn,(ml={},vr(jn,(function(e,t){De.call(jn.prototype,t)||(ml[t]=e)})),ml),{chain:!1}),jn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),Ct(["drop","take"],(function(t,n){Wn.prototype[t]=function(r){r=r===e?1:gn(fs(r),0);var o=this.__filtered__&&!n?new Wn(this):this.clone();return o.__filtered__?o.__takeCount__=bn(r,o.__takeCount__):o.__views__.push({size:bn(r,u),type:t+(o.__dir__<0?"Right":"")}),o},Wn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(tl)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Rr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Da(si(e)))},Wn.prototype.slice=function(t,n){t=fs(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Wn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=fs(n))<0?r.dropRight(-n):r.take(n-t)),r)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(u)},vr(Wn.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=jn[o?"take"+("last"==n?"Right":""):n],a=o||/^find/.test(n);i&&(jn.prototype[n]=function(){var n=this.__wrapped__,s=o?[1]:arguments,l=n instanceof Wn,c=s[0],u=l||Wa(n),d=function(e){var t=i.apply(jn,Ot([e],s));return o&&f?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,m=l&&!p;if(!a&&u){n=m?n:new Wn(this);var g=t.apply(n,s);return g.__actions__.push({func:da,args:[d],thisArg:e}),new Bn(g,f)}return h&&m?t.apply(this,s):(g=this.thru(d),h?o?g.value()[0]:g.value():g)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Re[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),vr(Wn.prototype,(function(e,t){var n=jn[t];if(n){var r=n.name+"";De.call(qn,r)||(qn[r]=[]),qn[r].push({name:t,func:n})}})),qn[zo(e,2).name]=[{name:"wrapper",func:e}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ro(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,p=bn(l,this.__takeCount__);if(!n||!r&&o==l&&p==l)return po(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var m=-1,g=e[c+=t];++m<d;){var b=u[m],v=b.iteratee,y=b.type,S=v(g);if(2==y)g=S;else if(!S){if(1==y)continue e;break e}}h[f++]=g}return h},jn.prototype.at=fa,jn.prototype.chain=function(){return ua(this)},jn.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===e&&(this.__values__=us(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},jn.prototype.plant=function(t){for(var n,r=this;r instanceof Fn;){var o=Ni(r);o.__index__=0,o.__values__=e,n?i.__wrapped__=o:n=o;var i=o;r=r.__wrapped__}return i.__wrapped__=t,n},jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Wn){var n=t;return this.__actions__.length&&(n=new Wn(this)),(n=n.reverse()).__actions__.push({func:da,args:[Yi],thisArg:e}),new Bn(n,this.__chain__)}return this.thru(Yi)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,Xe&&(jn.prototype[Xe]=function(){return this}),jn}();ft?((ft.exports=pn)._=pn,dt._=pn):ut._=pn}.call(Hh.exports)),Hh.exports);function Kh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const Jh=1e3,Zh=1e3,Xh=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Yh=(e,t)=>e&&e.find((e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t}))||null,Qh=e=>{var t,n;return ne(ne({},e),{},{qDef:ne(ne({},e.qDef),{},{cId:null!==(t=null===(n=e.qDef)||void 0===n?void 0:n.cId)&&void 0!==t?t:df()})})},em=e=>{var t;return ne(ne({},Qh(e)),{},{qOtherTotalSpec:null!==(t=e.qOtherTotalSpec)&&void 0!==t?t:{}})},tm=(e,t,n)=>{const r=t;e.forEach(((e,t)=>{const o=e.qTags,i={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(r,n.properties,o,i,n):(i.qSortByNumeric=1,i.qSortByAscii=1),r.qDef.qSortCriterias?r.qDef.qSortCriterias[t]=i:r.qDef.qSortCriterias=[i]}))},nm=new Error("Not supported in this object, need to implement in subclass."),rm=e=>{if(!e)return[];return[...e].map((e=>{var t;return null!==(t=e.qDef)&&void 0!==t&&t.autoSort&&void 0!==e.autoSort?ne(ne({},e),{},{qDef:ne(ne({},e.qDef),{},{autoSort:e.autoSort}),autoSort:void 0}):e}))},om=(e,t)=>{if(e)return t&&fp(e,t)?fp(e,t).qHyperCube:e.qHyperCube};function im(e,t){return e.filter(((e,n)=>t.includes(n)))}function am(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.getAlternativeDimensions(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function sm(e,t,n){pp.indexAdded(e.hcProperties.qInterColumnSortOrder,null!=n?n:t.length-1)}function lm(e,t){return"function"==typeof e.dimensionDefinition.move?Promise.resolve(e.dimensionDefinition.move.call(e,t,e.properties,e)).then((()=>t)):Promise.resolve(t)}function cm(e,t){return e.getAlternativeDimensions().length+t.length>=Jh}function um(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<Jh}async function dm(e,t,n,r,o,i){await e.autoSortDimension(t),pp.indexAdded(e.hcProperties.qInterColumnSortOrder,n+i),r.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function fm(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=e.getAlternativeMeasures(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function pm(e,t){pp.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function hm(e,t,n){return n||e.maxMeasures()<=t.length&&t.length<Zh}function mm(e,t,n,r){const o=e-n.length;let[i]=n.splice(n.length-1,1);return r.splice(0,0,i),[i]=r.splice(o+1,1),n.splice(t,0,i),Promise.resolve(i)}class gm{constructor(e){var t,n;const r=e||{};this.dimensionDefinition=r.dimensionDefinition||{max:0},this.measureDefinition=r.measureDefinition||{max:0},this.dimensionProperties=null!==(t=r.dimensionProperties)&&void 0!==t?t:{},this.measureProperties=null!==(n=r.measureProperties)&&void 0!==n?n:{},this.globalChangeListeners=r.globalChangeListeners,this.app=r.app}setProperties(e){var t;this.properties=e,this.isAnalysisType=null===(t=this.properties)||void 0===t||null===(t=t.metaData)||void 0===t?void 0:t.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}static type(){throw new Error("Must override this method")}static getDimensions(){return[]}getDimension(e){var t;const n=this.getDimensions(),r=this.getAlternativeDimensions();return null!==(t=Yh(n,e))&&void 0!==t?t:Yh(r,e)}static getAlternativeDimensions(){throw new Error("Method not implemented.")}static addDimension(){throw nm}static addDimensions(){throw nm}static removeDimension(){throw nm}static removeDimensions(){throw nm}static autoSortDimension(){throw nm}static replaceDimension(){throw nm}static getSorting(){throw nm}createLibraryDimension(e,t){var n,r;const o=Vh.merge({},this.dimensionProperties||{},t||{});return o.qDef=null!==(n=o.qDef)&&void 0!==n?n:{},o.qOtherTotalSpec=null!==(r=o.qOtherTotalSpec)&&void 0!==r?r:{},o.qLibraryId=e,o.qDef.autoSort=!0,o.qDef.qSortCriterias=Xh,delete o.qDef.qFieldDefs,delete o.qDef.qFieldLabels,o}createFieldDimension(e,t,n){var r,o;const i=Vh.merge({},this.dimensionProperties||{},n||{});return i.qDef=null!==(r=i.qDef)&&void 0!==r?r:{},i.qOtherTotalSpec=null!==(o=i.qOtherTotalSpec)&&void 0!==o?o:{},e||(i.qDef.qFieldDefs=[],i.qDef.qFieldLabels=[],i.qDef.qSortCriterias=[]),i.qDef.qFieldDefs=[e],i.qDef.qFieldLabels=t?[t]:[""],i.qDef.qSortCriterias=Xh,i.qDef.autoSort=!0,i}addFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r)}addFieldDimensions(e){const t=e.map((e=>{let{field:t,label:n,defaults:r}=e;return this.createFieldDimension(t,n,r)}));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map((e=>{let{id:t,defaults:n}=e;return this.createLibraryDimension(t,n)}));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map((e=>{let{id:t}=e;return this.createLibraryDimension(t)}));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map((e=>{let{field:t}=e;return this.createFieldDimension(t)}));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){var n;const e=Kh("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return null===(n=this.dimensionDefinition.max)||void 0===n?void 0:n.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasure(e){var t;const n=this.getMeasures(),r=this.getAlternativeMeasures();return null!==(t=Yh(n,e))&&void 0!==t?t:Yh(r,e)}static getMeasures(){return[]}static getAlternativeMeasures(){throw new Error("Method not implemented.")}static addMeasure(){throw nm}static addMeasures(){throw nm}static removeMeasure(){throw nm}static removeMeasures(){throw nm}static autoSortMeasure(){throw nm}static replaceMeasure(){throw nm}createExpressionMeasure(e,t,n){var r,o;const i=Vh.merge({},this.measureProperties||{},n||{});return i.qDef=null!==(r=i.qDef)&&void 0!==r?r:{},i.qDef.qNumFormat=null!==(o=i.qDef.qNumFormat)&&void 0!==o?o:{},i.qDef.qDef=e,i.qDef.qLabel=t,i.qDef.autoSort=!0,i}addExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r)}addExpressionMeasures(e){const t=e.map((e=>{let{expression:t,label:n,defaults:r}=e;return this.createExpressionMeasure(t,n,r)}));return this.addMeasures(t)}createLibraryMeasure(e,t){var n,r;const o=Vh.merge({},this.measureProperties||{},t||{});return o.qDef=null!==(n=o.qDef)&&void 0!==n?n:{},o.qDef.qNumFormat=null!==(r=o.qDef.qNumFormat)&&void 0!==r?r:{},Kh("MASTER_measureURE_FORMAT")&&(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(o.qDef),o.qLibraryId=e,o.qDef.autoSort=!0,delete o.qDef.qDef,delete o.qDef.qLabel,o}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map((e=>{let{id:t,defaults:n}=e;return this.createLibraryMeasure(t,n)}));return this.addMeasures(t)}addAltLibraryMeasures(e){const t=e.map((e=>{let{id:t}=e;return this.createLibraryMeasure(t)}));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map((e=>{let{expression:t}=e;return this.createExpressionMeasure(t)}));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("function"==typeof this.measureDefinition.max){const t=this.getDimensions().length-e,n=Kh("PS_21371_ANALYSIS_TYPES")?[t,this.properties]:[t];return this.measureDefinition.max.apply(null,n)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach((t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})}))}}function bm(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then((async()=>(sm(e,r,n),await function(e,t){return t&&"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)).then((()=>t)):Promise.resolve(t)}(e,t),t)))}function vm(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),e.autoSortMeasure(t).then((()=>(pm(e,r),function(e,t){return t&&"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):Promise.resolve()}(e,t).then((()=>t)))))):t}async function ym(e,t){!function(e,t){pp.indexRemoved(e.hcProperties.qInterColumnSortOrder,t)}(e,t),await function(e,t){const[n]=e.getDimensions().splice(t,1);return n&&"function"==typeof e.dimensionDefinition.remove?Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}async function Sm(e,t){!function(e,t){pp.indexRemoved(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t)}(e,t),await function(e,t){const[n]=e.getMeasures().splice(t,1);return n&&"function"==typeof e.measureDefinition.remove?Promise.resolve(e.measureDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}function xm(e,t){const[n]=e.getAlternativeDimensions().splice(t,1);if(n&&"function"==typeof e.dimensionDefinition.remove)return n.isAlternative=!0,Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)).then((()=>{delete n.isAlternative}))}function Em(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),pm(e,r),function(e,t){return"function"==typeof e.measureDefinition.move?Promise.resolve(e.measureDefinition.move.call(null,t,e.properties,e,!0)).then((()=>t)):Promise.resolve(t)}(e,t)):Promise.resolve(t)}class wm extends gm{constructor(e){super(e),this.path=e.path}setProperties(e){return e?(super.setProperties(e),this.hcProperties=this.path?fp.getValue(e,"".concat(this.path,".qHyperCubeDef")):e.qHyperCubeDef,this.hcProperties?(function(e){var t,n,r,o,i,a,s;const l=e;l.hcProperties.qDimensions=null!==(t=l.getDimensions())&&void 0!==t?t:[],l.hcProperties.qMeasures=null!==(n=l.getMeasures())&&void 0!==n?n:[],l.hcProperties.qInterColumnSortOrder=null!==(r=l.hcProperties.qInterColumnSortOrder)&&void 0!==r?r:[],l.hcProperties.qLayoutExclude=null!==(o=l.hcProperties.qLayoutExclude)&&void 0!==o?o:{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},l.hcProperties.qLayoutExclude.qHyperCubeDef=null!==(i=l.hcProperties.qLayoutExclude.qHyperCubeDef)&&void 0!==i?i:{qDimensions:[],qMeasures:[]},l.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=null!==(a=l.getAlternativeDimensions())&&void 0!==a?a:[],l.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=null!==(s=l.getAlternativeMeasures())&&void 0!==s?s:[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=rm(this.hcProperties.qDimensions),this.hcProperties.qMeasures=rm(this.hcProperties.qMeasures),{}):{}):{}}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qDimensions)&&void 0!==e?e:[]}getDimensionLayout(e){return this.getDimensionLayouts().filter((t=>e===t.cId))[0]}getDimensionLayouts(){const e=om(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=em(e);return um(this,t)?am(this,r,n):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?bm(e,t,o):Promise.resolve(t)}(this,r,n)}async addDimensions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getDimensions(),r=n.length,o=[];let i=0;var a,s=!1,l=!1;try{for(var c,u=X(e);s=!(c=await u.next()).done;s=!1){const e=c.value;{if(cm(this,n))return o;const a=em(e);if(um(this,t)){const e=await am(this,a);o.push(e)}else n.length<this.maxDimensions()&&(await dm(this,a,r,n,o,i),i++)}}}catch(e){l=!0,a=e}finally{try{s&&null!=u.return&&await u.return()}finally{if(l)throw a}}return o}removeDimension(e,t){t&&xm(this,e),ym(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),r=this.getDimensions();if(0===e.length)return[];let o=[];const i=[...e].sort(((e,t)=>t-e));if(t&&n.length>0){o=im(n,e);var a,s=!1,l=!1;try{for(var c,u=X(i);s=!(c=await u.next()).done;s=!1){const e=c.value;await xm(this,e)}}catch(e){l=!0,a=e}finally{try{s&&null!=u.return&&await u.return()}finally{if(l)throw a}}}else if(r.length>0){o=im(r,e);var d,f=!1,p=!1;try{for(var h,m=X(i);f=!(h=await m.next()).done;f=!1){const e=h.value;await ym(this,e)}}catch(e){p=!0,d=e}finally{try{f&&null!=m.return&&await m.return()}finally{if(p)throw d}}}return o}replaceDimension(e,t){return this.autoSortDimension(t).then((()=>function(e,t,n){if(!n)return;const r=e.getDimensions(),o=r[t],i=ne(ne({},n),{},{qDef:ne(ne({},n.qDef),{},{cId:df()})});return r[t]=i,i&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t)))}reinsertDimension(e,t,n){const r=Qh(e);return um(this,t)?am(this,r,n).then((()=>{lm(this,r)})):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?(r.splice(o,0,t),sm(e,r),lm(e,t)):Promise.resolve(t)}(this,r,n)}moveDimension(e,t){const n=this.getDimensions(),r=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(pp.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?Promise.resolve(mm(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;pp.move(r,o,i)}(e,t,n,r))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then((n=>{const r=(null==t?void 0:t.qLibraryId)&&(o=t.qLibraryId,(i=n)&&i.find((e=>e.qInfo.qId===o))||null);var o,i;return r&&tm(r.qData.info,t,e),t}))}(this,e):function(e,t){return e.app.getFieldList().then((n=>{var r;const o=(null==t||null===(r=t.qDef)||void 0===r?void 0:r.qFieldDefs)&&((e,t)=>{const n=(e=>{const t=[];return e.forEach((e=>{t.push((e=>{const t=e;return t.isDateField=(e=>{var t,n;return(null==e?void 0:e.qDerivedFieldData)&&((null==e||null===(t=e.qTags)||void 0===t?void 0:t.indexOf("$date"))>-1||(null==e||null===(n=e.qTags)||void 0===n?void 0:n.indexOf("$timestamp"))>-1)})(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach((n=>{n.qFieldDefs.forEach((r=>{var o;t.push({qName:r.qName,displayName:(o=r.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:r.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})}))})),t):t})(e);t.push(...n)})),t})(t.slice(0)),r=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find((t=>t.qName===e))||null)(r,n)||null})(t.qDef.qFieldDefs[0],n);return o&&tm([o],t,e),t}))}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)&&void 0!==e?e:[]}getMeasureLayouts(){const e=om(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter((t=>e===t.cId))[0]}addMeasure(e,t,n){const r=this.getAlternativeMeasure(),o=Qh(e);return hm(this,r,t)?fm(this,o,n):vm(this,o,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getMeasures(),r=[];let o=0;return e.forEach((async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=Zh}(this,n))return!1;const i=Qh(e);return hm(this,n,t)?(fm(this,i),r.push(i)):n.length<this.maxMeasures()&&(await function(e,t,n,r,o){const i=e.getDimensions(),a=ne({},t);return a.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},pp.indexAdded(e.hcProperties.qInterColumnSortOrder,i.length+n.length+o),n.push(a),r.push(a),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,a,e.properties,e),Promise.resolve(r)}(this,i,n,r,o),o++),!0})),r}removeMeasure(e,t){t&&function(e,t){e.getAlternativeMeasures().splice(t,1)}(this,e),Sm(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();if(0===e.length)return[];let o=[];if(t&&r.length>0)o=im(r,e),function(e,t){const n=e,r=function(e,t){return e.filter(((e,n)=>!t.includes(n)))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=r}(this,e);else if(n.length>0){o=im(n,e);const t=[...e].sort(((e,t)=>t-e));var i,a=!1,s=!1;try{for(var l,c=X(t);a=!(l=await c.next()).done;a=!1){const e=l.value;await Sm(this,e)}}catch(e){s=!0,i=e}finally{try{a&&null!=c.return&&await c.return()}finally{if(s)throw i}}}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then((()=>function(e,t,n){const r=e.getMeasures(),o=r[t],i=ne(ne({},n),{},{qDef:ne(ne({},n.qDef),{},{cId:df()})});return r[t]=i,i&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t)))}reinsertMeasure(e,t,n){const r=this.getAlternativeMeasures(),o=Qh(e);return hm(this,r,t)?fm(this,o,n):Em(this,o,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(pp.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?mm(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;pp.move(r,o,i)}(e,t,n,r))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){fp.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){var e;return(null===(e=this.hcProperties)||void 0===e?void 0:e.qDynamicScript)||[]}}const Cm=Ke.bind(null,!0),_m={},{isArray:Lm}=Array;function km(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Rm(e){return void 0===e}function qm(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Im(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]=Rm(e[r||t])?i:e[t],e=e[r||t]})),e}function Om(e,t){let n=!0;if(km(e)&&km(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Om(e[r],t[r])||(n=!1)})),n);if(Lm(e)&&Lm(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Om(e[n],t[n]))return!1;return!0}return e===t}_m.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Cm({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Om(i,a)||qm(t,o)||(Rm(a)?r.push({op:"add",path:s,value:i}):km(i)&&km(a)?r=r.concat(_m.generate(a,i,s)):Lm(i)&&Lm(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]&&Rm(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(Om(t,o))return r;if(!Rm(t[0])&&Rm(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(_m.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=>{Rm(t[o])&&!qm(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},_m.apply=function(e,t){t.forEach((t=>{let n=Im(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(Lm(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Lm(o)&&Lm(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(km(o)&&km(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!qm(a,e)&&delete a[e]})),Cm(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=Im(e,t.from);Lm(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Lm(n)?n.splice(+r,1):delete n[r]);var a}))},_m.clone=function(e){return Cm({},e)},_m.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},_m.updateObject=function(e,t){Object.keys(e).length?_m.apply(e,_m.generate(e,t)):Cm(e,t)};const Tm=e=>t=>{const n=(r=ne(ne({},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(ue.prototype).forEach((e=>{r[e]=ue.prototype[e]})),ue.init(r),r);var r;return n};let Dm,Pm;function Mm(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 Am(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 Nm(e){zm(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 jm(e){if(e.__hooks.obsolete)return Promise.resolve();Pm=-1,Dm=e,Dm.__hooks.initiated&&Dm.__hooks.list.length;try{Dm.fn.call(null)}catch(e){console.error(e)}Dm.__hooks.initiated=!0;const t=Dm.__hooks;return Um(Dm),Pm=void 0,Dm=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){zm(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){zm(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 zm(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 Fm(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 Bm(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 Wm(e){return e.__hooks.imperativeHandle}function Um(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Hm(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Um(e))}function $m(e){if(void 0===Dm)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Dm.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Gm(e){$m(++Pm);return Dm.context[e]}function Vm(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Km(e){return{__hooked:!0,fn:e,initiate:Am,run:jm,teardown:Nm,runSnaps:Fm,runMenu:Bm,focus:Lg,blur:kg,observeActions:Hm,getImperativeHandle:Wm,updateRectOnNextRun:Vm}}function Jm(e){const t=$m(++Pm);if(!t.value){t.component=Dm;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,jm(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Zm(e,t){const n=$m(++Pm);Mm(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Dm.__hooks.pendingEffects.indexOf(n)&&Dm.__hooks.pendingEffects.push(n))}function Xm(e,t){const n=$m(++Pm);Mm(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Dm.__hooks.pendingLayoutEffects.push(n))}function Ym(e,t){const n=$m(++Pm);return Mm(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Qm(e){return Ym((()=>({current:e})),[])}function eg(e,t){const[n,r]=Jm((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=$m(++Pm);return o.component||(o.component=Dm),Xm((()=>{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 tg(){return Gm("element")}function ng(){const e=tg(),t=Dm.__hooks.resizer,[n,r]=Jm((()=>{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()),Xm((()=>{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 rg(){return Gm("layout")}function og(){const e=Gm("layout"),[t]=Jm({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function ig(){return Gm("appLayout")}function ag(){const e=Gm("model");return e&&e.session?e:void 0}function sg(){const e=Gm("app");return e&&e.session?e:void 0}function lg(){const e=Gm("global");return e&&e.session?e:void 0}function cg(){return Gm("selections")}function ug(){return Gm("theme")}function dg(){return Gm("nebbie")}function fg(){return Gm("translator")}function pg(){return Gm("deviceType")}function hg(){return Gm("navigation")}function mg(){return Gm("plugins")}function gg(e,t){const[n]=Jm({action(){n._config.action.call(null)}});return n.component||(n.component=Dm,Dm.__hooks.actions.list.push(n)),Ym((()=>{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 bg(){return Gm("constraints")}function vg(){return Gm("interactions")}function yg(){return Gm("options")}function Sg(e,t){const n=$m(++Pm);if(n.imperative||(n.imperative=!0),Mm(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Dm.__hooks.imperativeHandle=r}}function xg(e){const t=$m(++Pm);t.value||(t.value=1,Dm.__hooks.snaps.push(t)),t.fn=e}function Eg(e){const t=$m(++Pm);t.value||(t.value=1,Dm.__hooks.menus.push(t)),t.fn=e}function wg(){$m(++Pm);const e=Dm.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function Cg(){return Gm("emitter")}function _g(){const e=Gm("keyboardNavigation"),t=Gm("focusHandler");if(!Dm.__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&&(kg(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Dm);Dm.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Lg(this))}.bind(Dm);Dm.__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(Dm);Dm.__hooks.accessibility.focusSelectionFunction=r}const n=Dm.__hooks.accessibility.focusFunction,r=Dm.__hooks.accessibility.exitFunction,o=Dm.__hooks.accessibility.focusSelectionFunction,[i,a]=Jm({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Dm.__hooks.accessibility.setter=a,Dm.__hooks.accessibility.enabled=e,Zm((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function Lg(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 kg(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 Rg={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},qg=Object.keys(Rg),Ig=e=>(Object.keys(ue.prototype).forEach((t=>{e[t]=ue.prototype[t]})),ue.init(e),e);function Og(e,t){const n=ne({},Rg);Ig(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==qg.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=Tm(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 Tg(e,t,n){"function"==typeof e.component&&(e.component=Km(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},a=["appLayout","constraints","interactions"],s={},l={};t.model&&t.model.session||(s.select=!0,s.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:s,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}a.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(ne(ne({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(ne(ne({},r[e]),l))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?t.focus():e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return a.forEach((e=>{i[e]=JSON.stringify(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):Og(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=_m.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));_m.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const s=_m.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 Dg=()=>{};function Pg(e,t){return void 0===e?()=>t:()=>e}function Mg(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Pg(t.min,0),max:"function"==typeof t.max?t.max:Pg(t.max,1e3),added:t.added||t.add||Dg,description:t.description||Dg,moved:t.moved||t.move||Dg,removed:t.removed||t.remove||Dg,replaced:t.replaced||t.replace||Dg,isDefined:()=>!!e}}const Ag=(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 Ng(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=>Ag(e,n,{}),dimensions:Mg(e.dimensions),measures:Mg(e.measures)}}function jg(){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(Ng)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function zg(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:jg(n.qae),component:n.component||{},create:e=>Tg(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new wm(e)}:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const Fg=(e,t,n)=>{if(!e)return Promise.resolve();let r=_m.generate(t,n);return Ke(!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()},Bg=()=>{};function Wg(){var e;let n,r,o,{model:i,halo:a,navigation:s,initialError:l,onDestroy:c=(async()=>{}),onRender:u=(()=>{}),onError:d=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=Bg,p=null,h=null,g=null,b=null,v=!1;const y=new Promise((e=>{g=e})),S=new Promise((e=>{b=e})),x=e=>()=>{null==e||e(),b(),u(),v=!0};let E={},w=[];const C=new ue;let _={};null!==(e=a.context)&&void 0!==e&&e.enablePrivateExperimental&&(_={support(e){var t;return!(!h||!v)&&p.current.support(e,null===(t=r)||void 0===t?void 0:t.support,o)},getPropertyPanelDefinition:()=>!(!h||!v)&&(r?r.definition:p.current.getExtensionDefinition().definition),toggleFocus(e){p.current.toggleFocus(e)},setOnBlurHandler(e){p.current.setOnBlurHandler(e)},onContextMenu(){return p.current.onContextMenu(...arguments)}});const L=ne(ne({id:i.id,model:i,async destroy(){await c(),f(),f=Bg},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const n=await i.getLayout();if(Bh(n)&&!t){const t=await Cp({halo:a,model:i,cellRef:p,newType:e});return await Wh(i,t.qProperty),t}const r=await i.getEffectiveProperties(),o=await Cp({halo:a,model:i,cellRef:p,newType:e,properties:r}),s=o.qProperty;return await Fg(i,r,s),o}return await Cp({halo:a,model:i,cellRef:p,newType:e})},async toggleDataView(e){let t;if(n||!1===e)n&&!0!==e&&(t=i,await a.app.destroySessionObject(n),n=void 0,r=void 0,o=void 0);else{let e=a.context.dataViewType;const s=await i.getEffectiveProperties();if(!a.types.getSupportedVersion(e)){if(!a.types.getSupportedVersion("table"))throw new Error("No data view type registered");e="table"}const l=await Cp({halo:a,model:i,cellRef:p,newType:e,properties:s,viewDataMode:!0});t=await a.app.createSessionObject(l.qProperty),n=t.id,r=p.current.getExtensionDefinition(),o=await i.getLayout()}t&&p.current.setModel(t)},get viewDataToggled(){return void 0!==n},addListener(e,t){C.addListener(e,t)},removeListener(e,t){C.removeListener(e,t)},getImperativeHandle:async()=>(await S,p.current.getImperativeHandle()),takeSnapshot:async()=>(await S,p.current.takeSnapshot())},_),{},{__DO_NOT_USE__:{mount(e){if(h)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return h=e,[f,p]=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:f}=n,p=t.createRef(),h=df(),g=m.createPortal(t.createElement(Nh,{ref:p,halo:n,model:o,currentId:h,initialSnOptions:i,initialSnPlugins:a,initialError:c,onMount:s,emitter:l,navigation:u,onError:d}),r,h),b=()=>{f.remove(g),o.removeListener("closed",b)};return o.on("closed",b),f.addCell(h,p),(async()=>{try{await f.add(g,b)}catch(e){b(),s(),d(e)}})(),[b,p]}({halo:a,element:e,model:i,initialSnOptions:E,initialSnPlugins:w,initialError:l,onMount:g,emitter:C,navigation:s,onError:d}),y},async applyProperties(e){const t=zh("/",e,await i.getEffectiveProperties());if(t.length)return i.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;h?(async()=>{await y,p.current.setSnOptions(ne(ne(ne({},E),e),{onInitialRender:x(t)}))})():E=ne(ne(ne({},E),e),{onInitialRender:x(t)})})(e)},plugins(e){(async e=>{Fh(e),h?(async()=>{await y,p.current.setSnPlugins(e)})():w=e})(e)},exportImage:()=>p.current.exportImage(),takeSnapshot:()=>p.current.takeSnapshot(),getModel:()=>i,convert:{async toType(e){const t=await i.getEffectiveProperties(),n=await Cp({halo:a,model:i,cellRef:p,newType:e,properties:t}),r=n.qProperty;return await Fg(i,t,r),n},async revert(){await i.clearSoftPatches()}}}});return L}async function Ug(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=Wg({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 Hg(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 dp({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 $g="njs-sheet";function Gg(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 Vg=o(((e,o)=>{var l;let{model:c,halo:u,initialSnOptions:d,initialSnPlugins:p,initialError:h,onMount:m,unmount:g,navigation:b,onError:v}=e;const{root:y}=u,[S,x]=n(c),[E]=Ia(S),{theme:w,modelStore:C}=s(ba),[_,L]=n([]),[k,R]=n(void 0),[q,I]=n(void 0),[O,T]=n(""),D=f({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()=>{_.forEach((e=>{y.removeCell(e.currentId)}));const e=E.cells;D.cellCount=e.length,D.cellsRendered=0;const n=()=>{D.cellsRendered++,D.cellsRendered!==D.cellCount||D.initialRender||(D.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=_.find((t=>t.id===e.name));if(s)return s.bounds=Gg(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),Ug(d,{options:o,plugins:i,element:a},t)}({id:e.name},u,C);return{model:l.model,id:e.name,bounds:Gg(e,r,o),cellRef:t.createRef(),currentId:df(),mounted:i,mountedPromise:a,options:ne(ne({},d),{onInitialRender:n})}})));i.forEach((e=>y.addCell(e.currentId,e.cellRef))),L(i)};n()}}),[E]),r((()=>{const e=()=>{S.removeListener("closed",e),g()};return S.on("closed",e),()=>S.removeListener("closed",e)}),[S]);const P=i((()=>_?_.map((e=>function(e,n,r,o,i,a,s,l){var c;const{x:u,y:d,width:f,height:p}=e.bounds,h={left:"".concat(u,"%"),top:"".concat(d,"%"),width:"".concat(f,"%"),height:"".concat(p,"%"),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")&&(h.boxSizing="border-box",h.padding="4px"),t.createElement("div",{style:h,key:e.model.id},t.createElement(Nh,{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,p,h,e.mounted,b,v))):[]),[_]);r((()=>{const e=null!=E&&E.components?E.components.find((e=>"general"===e.key)):null;R(zd(e,u.public.theme)),I(jd(e,u.app))}),[E,u.public.theme,u.app,w]),a(o,(()=>({setModel:x})),[]);const M=!E||void 0===E.height||Number.isNaN(E.height)?"100%":"".concat(Number(E.height),"%"),A=_.map((e=>e.mountedPromise)),N=A.filter((e=>!!e));return N.length&&Promise.all(A).then((()=>{m()})),t.createElement("div",{className:$g,style:{width:"100%",height:M,position:"relative",backgroundColor:k,backgroundImage:q&&q.url?"url(".concat(q.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:q&&q.size,backgroundPosition:q&&q.pos}},P)}));const Kg=()=>{};function Jg(){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=Kg,c=null,u=null,d=null,f=null;const p=new Promise((e=>{d=e})),h=new Promise((e=>{f=e})),g=e=>()=>{null==e||e(),f(),a()};let b={},v=[];const y={id:e.id,model:e,navigation:r,getImperativeHandle:async()=>(await h,c.current.getImperativeHandle()),async destroy(){await i(),l(),l=Kg},__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,f=t.createRef();let p;const h=()=>{d.remove(p)};return p=m.createPortal(t.createElement(Vg,{ref:f,halo:n,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s,unmount:h,navigation:c,onError:u}),r,o.id),c.setSheetRef(f),d.add(p,h),[h,f]}({halo:n,element:i,model:e,initialSnOptions:b,initialSnPlugins:v,initialError:o,onMount:d,navigation:r,onError:s}),p},async applyProperties(t){const n=zh("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;u?(async()=>{await p,c.current.setSnOptions(ne(ne(ne({},b),e),{onInitialRender:g(t)}))})():b=ne(ne(ne({},b),e),{onInitialRender:g(t)})})(e)},plugins(e){(async e=>{Fh(e),u?(async()=>{await p,c.current.setSnPlugins(e)})():v=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return y}async function Zg(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,f="".concat(r);let p=d.get(f);p||(p=t.app.getObject(r),d.set(f,p));const h=await p;u.set(f,h);const m=c||("sheet"===h.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},s={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:l}=t,c="".concat(n);let u,d=l.get(c);d||(d=e.app.getObject(n),l.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,s.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return Zc(s),s}(t,n,h):void 0);return"sheet"===h.genericType?async function(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=Jg({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}(h,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m):Ug(h,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m)}var Xg,Yg,Qg,eb;function tb(){if(eb)return Qg;eb=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Qg=n=>n?"object"!=typeof n?e:n:t}var nb,rb,ob,ib,ab,sb,lb,cb,ub,db,fb,pb,hb,mb,gb,bb,vb,yb,Sb,xb,Eb,wb,Cb,_b,Lb,kb,Rb,qb,Ib,Ob,Tb,Db={exports:{}};function Pb(){if(rb)return nb;rb=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return nb={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 Mb(){if(ib)return ob;ib=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 ob=e}function Ab(){return ab||(ab=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Pb(),i=Mb(),a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=d++;i(e,o,t),u[e]=o,l[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(f,"*")),h("MAINVERSION","(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(l[u.NONNUMERICIDENTIFIER],"|").concat(l[u.NUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[u.NONNUMERICIDENTIFIER],"|").concat(l[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASE","(?:-(".concat(l[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(l[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(f,"+")),h("BUILD","(?:\\+(".concat(l[u.BUILDIDENTIFIER],"(?:\\.").concat(l[u.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(l[u.MAINVERSION]).concat(l[u.PRERELEASE],"?").concat(l[u.BUILD],"?")),h("FULL","^".concat(l[u.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(l[u.MAINVERSIONLOOSE]).concat(l[u.PRERELEASELOOSE],"?").concat(l[u.BUILD],"?")),h("LOOSE","^".concat(l[u.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(l[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(l[u.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:".concat(l[u.PRERELEASE],")?").concat(l[u.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[u.PRERELEASELOOSE],")?").concat(l[u.BUILD],"?")+")?)?"),h("XRANGE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAINLOOSE],"$")),h("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),h("COERCE","".concat(l[u.COERCEPLAIN],"(?:$|[^\\d])")),h("COERCEFULL",l[u.COERCEPLAIN]+"(?:".concat(l[u.PRERELEASE],")?")+"(?:".concat(l[u.BUILD],")?")+"(?:$|[^\\d])"),h("COERCERTL",l[u.COERCE],!0),h("COERCERTLFULL",l[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(l[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",h("TILDE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(l[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",h("CARET","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(l[u.GTLT],"\\s*(").concat(l[u.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],"|").concat(l[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(l[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Db,Db.exports)),Db.exports}function Nb(){if(ub)return cb;ub=1;const e=Mb(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Pb(),{safeRe:r,t:o}=Ab(),i=tb(),{compareIdentifiers:a}=function(){if(lb)return sb;lb=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 sb={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},sb}();class s{constructor(a,l){if(l=i(l),a instanceof s){if(a.loose===!!l.loose&&a.includePrerelease===!!l.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof a,'".'));if(a.length>t)throw new TypeError("version is longer than ".concat(t," characters"));e("SemVer",a,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const c=a.trim().match(l.loose?r[o.LOOSE]:r[o.FULL]);if(!c)throw new TypeError("Invalid Version: ".concat(a));if(this.raw=a,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof s)){if("string"==typeof t&&t===this.version)return 0;t=new s(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof s||(e=new s(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch)}comparePre(t){if(t instanceof s||(t=new s(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return a(r,o)}while(++n)}compareBuild(t){t instanceof s||(t=new s(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return a(r,o)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e="-".concat(t).match(this.options.loose?r[o.PRERELEASELOOSE]:r[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===a(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}return cb=s}function jb(){if(fb)return db;fb=1;const e=Nb();return db=(t,n,r)=>new e(t,r).compare(new e(n,r)),db}function zb(){if(Lb)return _b;Lb=1;const e=function(){if(hb)return pb;hb=1;const e=jb();return pb=(t,n,r)=>0===e(t,n,r),pb}(),t=function(){if(gb)return mb;gb=1;const e=jb();return mb=(t,n,r)=>0!==e(t,n,r),mb}(),n=function(){if(vb)return bb;vb=1;const e=jb();return bb=(t,n,r)=>e(t,n,r)>0,bb}(),r=function(){if(Sb)return yb;Sb=1;const e=jb();return yb=(t,n,r)=>e(t,n,r)>=0,yb}(),o=function(){if(Eb)return xb;Eb=1;const e=jb();return xb=(t,n,r)=>e(t,n,r)<0,xb}(),i=function(){if(Cb)return wb;Cb=1;const e=jb();return wb=(t,n,r)=>e(t,n,r)<=0,wb}();return _b=(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))}},_b}function Fb(){if(Ib)return qb;Ib=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&p))+":"+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,k(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=>L(e,this.options)));a&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),i("range list",g);const v=new Map,y=g.map((e=>new o(e,this.options)));for(const e of y){if(h(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const S=[...v.values()];return n.set(t,S),S}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}qb=t;const n=new(Yg?Xg:(Yg=1,Xg=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=tb(),o=function(){if(Rb)return kb;Rb=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(">")))}}kb=t;const n=tb(),{safeRe:r,t:o}=Ab(),i=zb(),a=Mb(),s=Nb(),l=Fb();return kb}(),i=Mb(),a=Nb(),{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=Ab(),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:p}=Pb(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},b=(e,t)=>(i("comp",e,t),e=x(e,t),i("caret",e),e=y(e,t),i("tildes",e),e=w(e,t),i("xrange",e),e=_(e,t),i("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),v(n)?s="":v(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):v(o)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(i("replaceTilde pr",a),s=">=".concat(n,".").concat(r,".").concat(o,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),i("tilde return",s),s}))},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),v(n)?l="":v(o)?l=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):v(a)?l="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(i("replaceCaret pr",s),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(i("no pr"),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a," <").concat(+n+1,".0.0-0")),i("caret return",l),l}))},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=v(o),u=c||v(a),d=u||v(s),f=d;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(a=0),s=0,">"===r?(r=">=",u?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n="".concat(r+o,".").concat(a,".").concat(s).concat(l)):u?n=">=".concat(o,".0.0").concat(l," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(a,".0").concat(l," <").concat(o,".").concat(+a+1,".0-0")),i("xRange return",n),n}))},_=(e,t)=>(i("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),L=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),k=e=>(t,n,r,o,i,a,s,l,c,u,d,f)=>(n=v(r)?"":v(o)?">=".concat(r,".0.0").concat(e?"-0":""):v(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=v(c)?"":v(u)?"<".concat(+c+1,".0.0-0"):v(d)?"<".concat(c,".").concat(+u+1,".0-0"):f?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(f):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()),R=(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 qb}var Bb=function(){if(Tb)return Ob;Tb=1;const e=Fb();return Ob=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},Ob}(),Wb=V(Bb);const Ub={};function Hb(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)||Wb(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Ub[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);Ub[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 Sh("Failed to load visualization: '".concat(n,"'"),e)}))}return Ub[i]}(a.name,a.version,t,o.load).then((e=>(n=n||zg(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=ne({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(Ke(!0,n,e),n):ne(ne({},n),e)}))}};return a}function $b(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]=Hb({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 Gb(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=$b(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(Ub).forEach((t=>{t.split("__")[0]===e&&(Ub[t]=void 0)}))}(e)}}}const Vb={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()))}};Vb.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:{}};const Kb=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ne(ne({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},Jb=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 Zb=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=le(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=ne(ne({},n.context),{},{translator:r.translator});const[s,l]=Ea({app:e,context:a}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=Et();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),wt(Ct,{__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,theme:c.externalAPI,flags:Kh(n.flags),deviceType:_t(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},f=Gb({halo:d});n.types.forEach((e=>f.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=c.setTheme(n.context.theme),h=null,g=null;const b={render:async e=>(await p,e.id?Zg(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:f,onError:p}=e,h={};const m=[],{modelStore:g,subscribe:b}=n;let v;try{const e=t.types.get({name:r,version:o});h=await e.initialProperties(a,u);const n=await e.supernova();i&&await dp({sn:n,properties:h,fields:i,children:m},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},h)}catch(e){v=e,h={qInfo:{qType:r},visualization:r}}const y=await t.app.createSessionObject(h);m.length>0&&await y.setFullPropertyTree({qProperty:h,qChildren:m}),g.set(y.id,y);const S=b(y);return Ug(y,{options:s,plugins:l,element:c,onRender:f,onError:p},t,d,v,(async()=>{await t.app.destroySessionObject(y.id),S()}))}(e,d,l)),destroy:async()=>{s.destroy()},create:async e=>Hg(e,d,!1,l),generateProperties:async e=>Hg(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=ne(ne(ne({},a),t),{},{translator:r.translator}),t.theme&&(p=c.setTheme(t.theme),await p),t.language&&d.public.translator.language(t.language),s.context(a))},selections:async()=>(h||(h={mount(n){g||(g=function(e){let{element:n,app:r}=e;return m.createPortal(t.createElement(ff,{app:r}),n,df())}({element:n,app:e}),s.add(g))},unmount(){g&&(s.remove(g),g=null)}}),h),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(Xf,{ref:c,app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,initialOptions:s,renderedCallback:l}),n,df()),c]}({element:a,app:e,fieldIdentifier:n,qId:r,options:Zf(ne({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=Zf(ne({onSelectionActivated:n,onSelectionDeactivated:r},e));i._ref.current.setOptions(t)}}}};return Zc(i),i},getRegisteredTypes:f.getList,__DO_NOT_USE__:{types:f,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=ne({},Yf);return Ke(!0,t,e),t}(ne({onPopoverClose:()=>b.emit("fieldPopoverClose")},o));b._popoverInstance=t.createElement(Qf,{element:n,key:df(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(b._popoverInstance)}}};return d.public.nebbie=b,d.types=f,Zc(b),b}return o.createConfiguration=t=>e(((e,t)=>({context:Kb(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:ne({},t.snapshot||e.snapshot),types:Jb(e.types,t.types),themes:Jb(e.themes,t.themes),flags:Kb(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:Kb(e.anything,t.anything)}))(n,t)),o.config=n,o}(Vb);function Xb(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Yb=globalThis.crypto||{getRandomValues:()=>123456};function Qb(e){return t=>{const n=Ke({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Yb.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=Ke({},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 ev=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},tv=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=ev(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},nv=["id","session"],rv=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function ov(e){return!rv.includes(e)}function iv(e){const t=ev(e.getLayout);return t.qInfo&&t.qInfo.qId}function av(e,t){return e.reduce(((e,n)=>ne(ne({},e),function(e,t){let n=iv(e);const{delay:r}=t,{id:o,session:i}=e,a=re(e,nv);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]:ne(ne({id:n,session:ev(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return ne(ne({},e),{},{[n]:tv(o,{async:ov(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function sv(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!iv(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function lv(){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(sv);const n=av(e,t);return async e=>Promise.resolve(n[e])}function cv(){return()=>Promise.resolve({id:"app-layout"})}const uv={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Xb,r=new Qb(n),o=new lv(e,t),i=new cv,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i,getListObject:async e=>{var t;return o(null===(t=e.qInfo)||void 0===t?void 0:t.qId)}};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},dv={generator:zg,hook:Km,theme:Et,locale:oe};export{uv as EnigmaMocker,dv as __DO_NOT_USE__,_p as conversion,Zb as embed,Eg as onContextMenu,xg as onTakeSnapshot,gg as useAction,sg as useApp,ig as useAppLayout,bg as useConstraints,pg as useDeviceType,Zm as useEffect,tg as useElement,dg as useEmbed,Cg as useEmitter,lg as useGlobal,Sg as useImperativeHandle,vg as useInteractionState,_g as useKeyboard,rg as useLayout,Ym as useMemo,ag as useModel,hg as useNavigation,yg as useOptions,mg as usePlugins,eg as usePromise,ng as useRect,Qm as useRef,wg as useRenderState,cg as useSelections,og as useStaleLayout,Jm as useState,ug as useTheme,fg as useTranslator};
|
|
25
25
|
//# sourceMappingURL=index.js.map
|