@nebula.js/stardust 6.0.0-alpha.1 → 6.0.0-alpha.2
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 +1306 -1545
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -4
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +1803 -1608
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +13 -13
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
- package/types/index.d.ts +24 -24
package/core/esm/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v6.0.0-alpha.
|
|
2
|
+
* @nebula.js/stardust v6.0.0-alpha.2
|
|
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 h,createElement as p,Component as f}from"react";import m from"react-dom";import{CacheProvider as g,Global as b,ThemeContext as y,css as v,keyframes as S}from"@emotion/react";import w from"@emotion/styled";import{Checkbox as x,Radio as C,Typography as E,FormControlLabel as k,Box as L,Grid as R,Tooltip as q,Paper as I,IconButton as _,styled as O,Popover as T,MenuList as P,MenuItem as D,ListItemIcon as A,Divider as M,OutlinedInput as N,InputAdornment as j,Badge as z,List as F,ListItem as $,Button as W,ButtonBase as B,CircularProgress as U,Icon as H}from"@mui/material";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(){var n=!1;try{n=this instanceof e}catch{}return n?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 V,J={exports:{}};function Z(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")}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 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 Y(){return Y=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},Y.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){Q(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}function re(e){return!!globalThis.process?.argv?Promise.resolve().then(function(){return $S}):Promise.resolve().then(function(){return WS}).then(t=>t.importRuntimeModule("auth@v1",e))}V||(V=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 _(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 h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function b(){}function y(){}function v(){}var S={};c(S,a,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==n&&r.call(x,a)&&(S=x);var C=v.prototype=b.prototype=Object.create(S);function E(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function k(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=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=R(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m: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 R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function 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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(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 y.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},E(k.prototype),c(k.prototype,s,function(){return this}),e.AsyncIterator=k,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new k(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),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,_.prototype={constructor:_,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(I),!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),I(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;I(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));var oe={registerAuthModule:function(e,t){re().then(n=>n.registerAuthModule(e,t))},setDefaultHostConfig:function(e){re(e).then(t=>t.setDefaultHostConfig(e))},registerHostConfig:function(e,t){re(t).then(n=>n.registerHostConfig(e,t))},unregisterHostConfig:function(e){re().then(t=>t.unregisterHostConfig(e))},getAccessToken:async function({hostConfig:e}){return re(e).then(t=>t.getAccessToken({hostConfig:e}))},getWebResourceAuthParams:async function({hostConfig:e}){return re(e).then(t=>t.getWebResourceAuthParams({hostConfig:e}))}};const ie=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 ae,se,le={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 ce(e){const t=ie({initial:e});return Object.keys(le).forEach(e=>{t.translator.add(le[e])}),{translator:t.translator}}var ue=function(){if(se)return ae;se=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},ae=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},ae}(),de=G(ue);function he(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fe(){}var me,ge,be=.7,ye=1/be,ve="\\s*([+-]?\\d+)\\s*",Se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",we="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xe=/^#([0-9a-f]{3,8})$/,Ce=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),Ee=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),ke=new RegExp(`^rgba\\(${ve},${ve},${ve},${Se}\\)$`),Le=new RegExp(`^rgba\\(${we},${we},${we},${Se}\\)$`),Re=new RegExp(`^hsl\\(${Se},${we},${we}\\)$`),qe=new RegExp(`^hsla\\(${Se},${we},${we},${Se}\\)$`),Ie={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 _e(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Te(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Pe(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=Ce.exec(e))?new Me(t[1],t[2],t[3],1):(t=Ee.exec(e))?new Me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ke.exec(e))?De(t[1],t[2],t[3],t[4]):(t=Le.exec(e))?De(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Re.exec(e))?We(t[1],t[2]/100,t[3]/100,1):(t=qe.exec(e))?We(t[1],t[2]/100,t[3]/100,t[4]):Ie.hasOwnProperty(e)?Pe(Ie[e]):"transparent"===e?new Me(NaN,NaN,NaN,0):null}function Pe(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 Ae(e,t,n,r){return 1===arguments.length?function(e){return e instanceof fe||(e=Te(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 Ne(){return`#${$e(this.r)}${$e(this.g)}${$e(this.b)}`}function je(){const e=ze(this.opacity);return`${1===e?"rgb(":"rgba("}${Fe(this.r)}, ${Fe(this.g)}, ${Fe(this.b)}${1===e?")":`, ${e})`}`}function ze(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $e(e){return((e=Fe(e))<16?"0":"")+e.toString(16)}function We(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 Be(e){if(e instanceof Ue)return new Ue(e.h,e.s,e.l,e.opacity);if(e instanceof fe||(e=Te(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 Ge(e){return Math.max(0,Math.min(1,e||0))}function Ke(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}he(fe,Te,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_e,formatHex:_e,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Be(this).formatHsl()},formatRgb:Oe,toString:Oe}),he(Me,Ae,pe(fe,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?be:Math.pow(be,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Me(Fe(this.r),Fe(this.g),Fe(this.b),ze(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:Ne,formatHex:Ne,formatHex8:function(){return`#${$e(this.r)}${$e(this.g)}${$e(this.b)}${$e(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),he(Ue,function(e,t,n,r){return 1===arguments.length?Be(e):new Ue(e,t,n,null==r?1:r)},pe(fe,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new Ue(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?be:Math.pow(be,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(Ke(e>=240?e-240:e+120,o,r),Ke(e,o,r),Ke(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ue(He(this.h),Ge(this.s),Ge(this.l),ze(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=ze(this.opacity);return`${1===e?"hsl(":"hsla("}${He(this.h)}, ${100*Ge(this.s)}%, ${100*Ge(this.l)}%${1===e?")":`, ${e})`}`}}));var Ve=function(){if(ge)return me;ge=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 me=function e(){var t,n,r,l,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},me}(),Je=G(Ve),Ze={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"]}]}},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:"light",color:"@B35"},Qe={_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 et={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}},tt=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,nt=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,rt=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,ot=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,it=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,at=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:st}=Math,{round:lt}=Math;class ct{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,h,p,f,m=0,g=0,b=0,y=1;if(this._invalid=!1,t[0]instanceof ct)m=t[0]._r,g=t[0]._g,b=t[0]._b,y=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(f=t[0],p=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))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(f))m=parseInt(p[1],10),g=parseInt(p[2],10),b=parseInt(p[3],10),y=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(f))y=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(f))m=parseInt(p[1],16),g=parseInt(p[2],16),b=parseInt(p[3],16),y=1;else if(p=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(f))m=parseInt(p[1]+p[1],16),g=parseInt(p[2]+p[2],16),b=parseInt(p[3]+p[3],16),y=1;else if(p=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){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]}h=a-.5*l,m=d[0]+h,g=d[1]+h,b=d[2]+h,m=lt(255*m),g=lt(255*g),b=lt(255*b),y=1}else if(p=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(f)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),a=parseFloat(p[5]),y=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]}h=a-.5*l,m=d[0]+h,g=d[1]+h,b=d[2]+h,m=lt(255*m),g=lt(255*g),b=lt(255*b)}else if(p=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){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]}h=s-l,m=d[0]+h,g=d[1]+h,b=d[2]+h,m=lt(255*m),g=lt(255*g),b=lt(255*b),y=1}else et[f.toLowerCase()]?(i=f.toLowerCase(),m=et[i].r,g=et[i].g,b=et[i].b,y="number"==typeof et[i].a?et[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(y=(4278190080&t[0])>>>24,y/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],y=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+y)&&(this._invalid=!0),this._r=st(m),this._g=st(g),this._b=st(b),this._a=y,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=ct.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=ct.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=ct.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=ct.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=ct.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=ct.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=ct.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=ct.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 ct||(e=new ct(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=st(this._r+(e._r-this._r)*t),r=st(this._g+(e._g-this._g)*t),o=st(this._b+(e._b-this._b)*t),i=st(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 ct(r)}static toRGB(e){if(e instanceof ct)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=ct.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 ct)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=ct.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 ct?(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=ct.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 ct(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 ct(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 ct(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 ct)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=ct.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=ct.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 ct(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(tt.test(e)||nt.test(e)||rt.test(e)||ot.test(e)||it.test(e)||at.test(e)||et[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 ct(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class ut{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Te(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([Te(e),Te(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 Ae(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 dt(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function ht(e,t,n){const r=[],o=new ut(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 pt(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=dt(1/t*o,t,n);i=e.getColor(r);break}}r.push(Te(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=ht(e,n,!0),o=ht(pt(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(pt(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}})}function mt(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 gt(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 bt(e,t,n,r){let o;if(""===e)o=mt(null,n);else{o=mt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=gt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function yt(e,t){const n=e.split(".");return{getStyle:(e,r)=>bt(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 St(e){const t=Te(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)}yt.resolveRawTheme=e=>{const t=Je(!0,{},e);return vt(t,t._variables),t.scales&&ft(t.scales,t.dataColors&&t.dataColors.nullColor),t};function wt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(St);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=St(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]=yt(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=Te(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Qe:Xe;let r=Ye;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Je(!0,{},Ze,r,n),i=Je(!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,yt.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 ct(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const s=o.getStyle("","","color"),l=St(s);n=wt([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(de.prototype).forEach(e=>{o[e]=de.prototype[e]}),de.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const Ct=(e,t)=>new Promise(n=>{setTimeout(()=>n(t),e)});function Et(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var kt,Lt={};var Rt=function(){if(kt)return Lt;kt=1;var e=m;return Lt.createRoot=e.createRoot,Lt.hydrateRoot=e.hydrateRoot,Lt}(),qt=G(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 _t=Object.freeze({__proto__:null,default:It}),Ot="$$material";function Tt(){return Tt=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},Tt.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 Dt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function At(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Mt=/[A-Z]|^ms/g,Nt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jt=function(e){return 45===e.charCodeAt(1)},zt=function(e){return null!=e&&"boolean"!=typeof e},Ft=At(function(e){return jt(e)?e:e.replace(Mt,"-$&").toLowerCase()}),$t=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Nt,function(e,t,n){return Bt={name:t,styles:n,next:Bt},t})}return 1===Dt[e]||jt(e)||"number"!=typeof t||0===t?t:t+"px"};function Wt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Bt={name:o.name,styles:o.styles,next:Bt},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Bt={name:a.name,styles:a.styles,next:Bt},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Wt(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;zt(s)&&(r+=Ft(i)+":"+$t(i,s)+";")}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var l=0;l<a.length;l++)zt(a[l])&&(r+=Ft(i)+":"+$t(i,a[l])+";");else{var c=Wt(e,t,a);switch(i){case"animation":case"animationName":r+=Ft(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}}return r}(e,t,n)}return n}var Bt,Ut=/label:\s*([^\s;{]+)\s*(;|$)/g;var Ht=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}(),Gt="-ms-",Kt="-moz-",Vt="-webkit-",Jt="comm",Zt="rule",Xt="decl",Qt="@keyframes",Yt=Math.abs,en=String.fromCharCode,tn=Object.assign;function nn(e){return e.trim()}function rn(e,t,n){return e.replace(t,n)}function on(e,t){return e.indexOf(t)}function an(e,t){return 0|e.charCodeAt(t)}function sn(e,t,n){return e.slice(t,n)}function ln(e){return e.length}function cn(e){return e.length}function un(e,t){return t.push(e),e}var dn=1,hn=1,pn=0,fn=0,mn=0,gn="";function bn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:dn,column:hn,length:a,return:""}}function yn(e,t){return tn(bn("",null,null,"",null,null,0),e,{length:-e.length},t)}function vn(){return mn=fn>0?an(gn,--fn):0,hn--,10===mn&&(hn=1,dn--),mn}function Sn(){return mn=fn<pn?an(gn,fn++):0,hn++,10===mn&&(hn=1,dn++),mn}function wn(){return an(gn,fn)}function xn(){return fn}function Cn(e,t){return sn(gn,e,t)}function En(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 kn(e){return dn=hn=1,pn=ln(gn=e),fn=0,[]}function Ln(e){return gn="",e}function Rn(e){return nn(Cn(fn-1,_n(91===e?e+2:40===e?e+1:e)))}function qn(e){for(;(mn=wn())&&mn<33;)Sn();return En(e)>2||En(mn)>3?"":" "}function In(e,t){for(;--t&&Sn()&&!(mn<48||mn>102||mn>57&&mn<65||mn>70&&mn<97););return Cn(e,xn()+(t<6&&32==wn()&&32==Sn()))}function _n(e){for(;Sn();)switch(mn){case e:return fn;case 34:case 39:34!==e&&39!==e&&_n(mn);break;case 40:41===e&&_n(e);break;case 92:Sn()}return fn}function On(e,t){for(;Sn()&&e+mn!==57&&(e+mn!==84||47!==wn()););return"/*"+Cn(t,fn-1)+"*"+en(47===e?e:Sn())}function Tn(e){for(;!En(wn());)Sn();return Cn(e,fn)}function Pn(e){return Ln(Dn("",null,null,null,[""],e=kn(e),0,[0],e))}function Dn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,f=0,m=1,g=1,b=1,y=0,v="",S=o,w=i,x=r,C=v;g;)switch(f=y,y=Sn()){case 40:if(108!=f&&58==an(C,d-1)){-1!=on(C+=rn(Rn(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=Rn(y);break;case 9:case 10:case 13:case 32:C+=qn(f);break;case 92:C+=In(xn()-1,7);continue;case 47:switch(wn()){case 42:case 47:un(Mn(On(Sn(),xn()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=ln(C)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(C=rn(C,/\f/g,"")),p>0&&ln(C)-d&&un(p>32?Nn(C+";",r,n,d-1):Nn(rn(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(un(x=An(C,t,n,c,u,o,s,v,S=[],w=[],d),i),123===y)if(0===u)Dn(C,t,x,x,S,i,d,s,w);else switch(99===h&&110===an(C,3)?100:h){case 100:case 108:case 109:case 115:Dn(e,x,x,r&&un(An(e,x,x,0,0,o,s,v,o,S=[],d),w),o,w,d,s,r?S:w);break;default:Dn(C,x,x,x,[""],w,0,s,w)}}c=u=p=0,m=b=1,v=C="",d=a;break;case 58:d=1+ln(C),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==vn())continue;switch(C+=en(y),y*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(ln(C)-1)*b,b=1;break;case 64:45===wn()&&(C+=Rn(Sn())),h=wn(),u=d=ln(v=C+=Tn(xn())),y++;break;case 45:45===f&&2==ln(C)&&(m=0)}}return i}function An(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,h=0===o?i:[""],p=cn(h),f=0,m=0,g=0;f<r;++f)for(var b=0,y=sn(e,d+1,d=Yt(m=a[f])),v=e;b<p;++b)(v=nn(m>0?h[b]+" "+y:rn(y,/&\f/g,h[b])))&&(l[g++]=v);return bn(e,t,n,0===o?Zt:s,l,c,u)}function Mn(e,t,n){return bn(e,t,n,Jt,en(mn),sn(e,2,-2),0)}function Nn(e,t,n,r){return bn(e,t,n,Xt,sn(e,0,r),sn(e,r+1,-1),r)}function jn(e,t){for(var n="",r=cn(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function zn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Xt:return e.return=e.return||e.value;case Jt:return"";case Qt:return e.return=e.value+"{"+jn(e.children,r)+"}";case Zt:e.value=e.props.join(",")}return ln(n=jn(e.children,r))?e.return=e.value+"{"+n+"}":""}var Fn=function(e,t,n){for(var r=0,o=0;r=o,o=wn(),38===r&&12===o&&(t[n]=1),!En(o);)Sn();return Cn(e,fn)},$n=function(e,t){return Ln(function(e,t){var n=-1,r=44;do{switch(En(r)){case 0:38===r&&12===wn()&&(t[n]=1),e[n]+=Fn(fn-1,t,n);break;case 2:e[n]+=Rn(r);break;case 4:if(44===r){e[++n]=58===wn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=en(r)}}while(r=Sn());return e}(kn(e),t))},Wn=new WeakMap,Bn=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)||Wn.get(n))&&!r){Wn.set(e,!0);for(var o=[],i=$n(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]}}},Un=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Hn(e,t){switch(function(e,t){return 45^an(e,0)?(((t<<2^an(e,0))<<2^an(e,1))<<2^an(e,2))<<2^an(e,3):0}(e,t)){case 5103:return Vt+"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 Vt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Vt+e+Kt+e+Gt+e+e;case 6828:case 4268:return Vt+e+Gt+e+e;case 6165:return Vt+e+Gt+"flex-"+e+e;case 5187:return Vt+e+rn(e,/(\w+).+(:[^]+)/,Vt+"box-$1$2"+Gt+"flex-$1$2")+e;case 5443:return Vt+e+Gt+"flex-item-"+rn(e,/flex-|-self/,"")+e;case 4675:return Vt+e+Gt+"flex-line-pack"+rn(e,/align-content|flex-|-self/,"")+e;case 5548:return Vt+e+Gt+rn(e,"shrink","negative")+e;case 5292:return Vt+e+Gt+rn(e,"basis","preferred-size")+e;case 6060:return Vt+"box-"+rn(e,"-grow","")+Vt+e+Gt+rn(e,"grow","positive")+e;case 4554:return Vt+rn(e,/([^-])(transform)/g,"$1"+Vt+"$2")+e;case 6187:return rn(rn(rn(e,/(zoom-|grab)/,Vt+"$1"),/(image-set)/,Vt+"$1"),e,"")+e;case 5495:case 3959:return rn(e,/(image-set\([^]*)/,Vt+"$1$`$1");case 4968:return rn(rn(e,/(.+:)(flex-)?(.*)/,Vt+"box-pack:$3"+Gt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Vt+e+e;case 4095:case 3583:case 4068:case 2532:return rn(e,/(.+)-inline(.+)/,Vt+"$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(ln(e)-1-t>6)switch(an(e,t+1)){case 109:if(45!==an(e,t+4))break;case 102:return rn(e,/(.+:)(.+)-([^]+)/,"$1"+Vt+"$2-$3$1"+Kt+(108==an(e,t+3)?"$3":"$2-$3"))+e;case 115:return~on(e,"stretch")?Hn(rn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==an(e,t+1))break;case 6444:switch(an(e,ln(e)-3-(~on(e,"!important")&&10))){case 107:return rn(e,":",":"+Vt)+e;case 101:return rn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Vt+(45===an(e,14)?"inline-":"")+"box$3$1"+Vt+"$2$3$1"+Gt+"$2box$3")+e}break;case 5936:switch(an(e,t+11)){case 114:return Vt+e+Gt+rn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Vt+e+Gt+rn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Vt+e+Gt+rn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Vt+e+Gt+e+e}return e}var Gn,Kn,Vn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xt:e.return=Hn(e.value,e.length);break;case Qt:return jn([yn(e,{value:rn(e.value,"@","@"+Vt)})],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 jn([yn(e,{props:[rn(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return jn([yn(e,{props:[rn(t,/:(plac\w+)/,":"+Vt+"input-$1")]}),yn(e,{props:[rn(t,/:(plac\w+)/,":-moz-$1")]}),yn(e,{props:[rn(t,/:(plac\w+)/,Gt+"input-$1")]})],r)}return""})}}],Jn=function(e){var t=e.key;if("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||Vn,a={},s=[];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,u=[zn,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=cn(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Bn,Un].concat(i,u));o=function(e,t,n,r){l=n,jn(Pn(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Ht({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 h.sheet.hydrate(s),h},Zn={exports:{}},Xn={};function Qn(){return Kn||(Kn=1,Zn.exports=function(){if(Gn)return Xn;Gn=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 Xn.Fragment=r,Xn.jsx=s,Xn.jsxs=s,Xn}()),Zn.exports}var Yn=Qn();const er=new Map;function tr(t){const{injectFirst:n,enableCssLayer:r,children:o}=t,i=e.useMemo(()=>{const e=`${n}-${r}`;if("object"==typeof document&&er.has(e))return er.get(e);const t=function(e,t){const n=Jn({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(n,r);return er.set(e,t),t},[n,r]);return n||r?Yn.jsx(g,{value:i,children:o}):o}function nr(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 Yn.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 h,createElement as p,Component as f}from"react";import m from"react-dom";import{CacheProvider as g,Global as b,ThemeContext as y,css as v,keyframes as S}from"@emotion/react";import w from"@emotion/styled";import{Checkbox as x,Radio as C,Typography as E,FormControlLabel as k,Box as L,Grid as R,Tooltip as q,Paper as I,IconButton as _,styled as O,Popover as T,MenuList as P,MenuItem as D,ListItemIcon as A,Divider as M,OutlinedInput as N,InputAdornment as j,Badge as z,List as F,ListItem as W,Button as B,ButtonBase as U,CircularProgress as H,Icon as $}from"@mui/material";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(){var n=!1;try{n=this instanceof e}catch{}return n?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 V,J={exports:{}};function Z(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")}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 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 Y(){return Y=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},Y.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){Q(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}function re(e){return!!globalThis.process?.argv?Promise.resolve().then((function(){return nw})):Promise.resolve().then((function(){return rw})).then((t=>t.importRuntimeModule("auth@v1",e)))}V||(V=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 _(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 h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function b(){}function y(){}function v(){}var S={};c(S,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==n&&r.call(x,a)&&(S=x);var C=v.prototype=b.prototype=Object.create(S);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(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=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=R(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m: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 R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function 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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(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 y.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},E(k.prototype),c(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new k(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),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,_.prototype={constructor:_,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(I),!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),I(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;I(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));var oe={registerAuthModule:function(e,t){re().then((n=>n.registerAuthModule(e,t)))},setDefaultHostConfig:function(e){re(e).then((t=>t.setDefaultHostConfig(e)))},registerHostConfig:function(e,t){re(t).then((n=>n.registerHostConfig(e,t)))},unregisterHostConfig:function(e){re().then((t=>t.unregisterHostConfig(e)))},getAccessToken:async function({hostConfig:e}){return re(e).then((t=>t.getAccessToken({hostConfig:e})))},getWebResourceAuthParams:async function({hostConfig:e}){return re(e).then((t=>t.getWebResourceAuthParams({hostConfig:e})))}};const ie=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 ae,se,le={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 ce(e){const t=ie({initial:e});return Object.keys(le).forEach((e=>{t.translator.add(le[e])})),{translator:t.translator}}var ue=function(){if(se)return ae;se=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},ae=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},ae}(),de=G(ue);function he(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fe(){}var me,ge,be=.7,ye=1/be,ve="\\s*([+-]?\\d+)\\s*",Se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",we="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xe=/^#([0-9a-f]{3,8})$/,Ce=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),Ee=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),ke=new RegExp(`^rgba\\(${ve},${ve},${ve},${Se}\\)$`),Le=new RegExp(`^rgba\\(${we},${we},${we},${Se}\\)$`),Re=new RegExp(`^hsl\\(${Se},${we},${we}\\)$`),qe=new RegExp(`^hsla\\(${Se},${we},${we},${Se}\\)$`),Ie={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 _e(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Te(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Pe(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=Ce.exec(e))?new Me(t[1],t[2],t[3],1):(t=Ee.exec(e))?new Me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ke.exec(e))?De(t[1],t[2],t[3],t[4]):(t=Le.exec(e))?De(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Re.exec(e))?Be(t[1],t[2]/100,t[3]/100,1):(t=qe.exec(e))?Be(t[1],t[2]/100,t[3]/100,t[4]):Ie.hasOwnProperty(e)?Pe(Ie[e]):"transparent"===e?new Me(NaN,NaN,NaN,0):null}function Pe(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 Ae(e,t,n,r){return 1===arguments.length?function(e){return e instanceof fe||(e=Te(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 Ne(){return`#${We(this.r)}${We(this.g)}${We(this.b)}`}function je(){const e=ze(this.opacity);return`${1===e?"rgb(":"rgba("}${Fe(this.r)}, ${Fe(this.g)}, ${Fe(this.b)}${1===e?")":`, ${e})`}`}function ze(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function We(e){return((e=Fe(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 He(e,t,n,r)}function Ue(e){if(e instanceof He)return new He(e.h,e.s,e.l,e.opacity);if(e instanceof fe||(e=Te(e)),!e)return new He;if(e instanceof He)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 He(a,s,l,e.opacity)}function He(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function $e(e){return(e=(e||0)%360)<0?e+360:e}function Ge(e){return Math.max(0,Math.min(1,e||0))}function Ke(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}he(fe,Te,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_e,formatHex:_e,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ue(this).formatHsl()},formatRgb:Oe,toString:Oe}),he(Me,Ae,pe(fe,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?be:Math.pow(be,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Me(Fe(this.r),Fe(this.g),Fe(this.b),ze(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:Ne,formatHex:Ne,formatHex8:function(){return`#${We(this.r)}${We(this.g)}${We(this.b)}${We(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),he(He,(function(e,t,n,r){return 1===arguments.length?Ue(e):new He(e,t,n,null==r?1:r)}),pe(fe,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new He(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?be:Math.pow(be,e),new He(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(Ke(e>=240?e-240:e+120,o,r),Ke(e,o,r),Ke(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new He($e(this.h),Ge(this.s),Ge(this.l),ze(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=ze(this.opacity);return`${1===e?"hsl(":"hsla("}${$e(this.h)}, ${100*Ge(this.s)}%, ${100*Ge(this.l)}%${1===e?")":`, ${e})`}`}}));var Ve=function(){if(ge)return me;ge=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 me=function e(){var t,n,r,l,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},me}(),Je=G(Ve),Ze={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"]}]}},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:"light",color:"@B35"},Qe={_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 et={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}},tt=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,nt=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,rt=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,ot=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,it=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,at=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:st}=Math,{round:lt}=Math;class ct{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,h,p,f,m=0,g=0,b=0,y=1;if(this._invalid=!1,t[0]instanceof ct)m=t[0]._r,g=t[0]._g,b=t[0]._b,y=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(f=t[0],p=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))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(f))m=parseInt(p[1],10),g=parseInt(p[2],10),b=parseInt(p[3],10),y=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(f))y=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(f))m=parseInt(p[1],16),g=parseInt(p[2],16),b=parseInt(p[3],16),y=1;else if(p=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(f))m=parseInt(p[1]+p[1],16),g=parseInt(p[2]+p[2],16),b=parseInt(p[3]+p[3],16),y=1;else if(p=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){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]}h=a-.5*l,m=d[0]+h,g=d[1]+h,b=d[2]+h,m=lt(255*m),g=lt(255*g),b=lt(255*b),y=1}else if(p=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(f)){switch(r=parseFloat(p[1]),o=parseFloat(p[3]),a=parseFloat(p[5]),y=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]}h=a-.5*l,m=d[0]+h,g=d[1]+h,b=d[2]+h,m=lt(255*m),g=lt(255*g),b=lt(255*b)}else if(p=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){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]}h=s-l,m=d[0]+h,g=d[1]+h,b=d[2]+h,m=lt(255*m),g=lt(255*g),b=lt(255*b),y=1}else et[f.toLowerCase()]?(i=f.toLowerCase(),m=et[i].r,g=et[i].g,b=et[i].b,y="number"==typeof et[i].a?et[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(y=(4278190080&t[0])>>>24,y/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],y=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+y)&&(this._invalid=!0),this._r=st(m),this._g=st(g),this._b=st(b),this._a=y,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=ct.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=ct.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=ct.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=ct.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=ct.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=ct.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=ct.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=ct.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 ct||(e=new ct(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=st(this._r+(e._r-this._r)*t),r=st(this._g+(e._g-this._g)*t),o=st(this._b+(e._b-this._b)*t),i=st(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 ct(r)}static toRGB(e){if(e instanceof ct)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=ct.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 ct)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=ct.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 ct?(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=ct.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 ct(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 ct(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 ct(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 ct)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=ct.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=ct.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 ct(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(tt.test(e)||nt.test(e)||rt.test(e)||ot.test(e)||it.test(e)||at.test(e)||et[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 ct(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class ut{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Te(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([Te(e),Te(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 Ae(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 dt(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function ht(e,t,n){const r=[],o=new ut(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 pt(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=dt(1/t*o,t,n);i=e.getColor(r);break}}r.push(Te(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=ht(e,n,!0),o=ht(pt(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(pt(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function mt(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 gt(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 bt(e,t,n,r){let o;if(""===e)o=mt(null,n);else{o=mt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=gt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function yt(e,t){const n=e.split(".");return{getStyle:(e,r)=>bt(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 St(e){const t=Te(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)}yt.resolveRawTheme=e=>{const t=Je(!0,{},e);return vt(t,t._variables),t.scales&&ft(t.scales,t.dataColors&&t.dataColors.nullColor),t};const wt=1e3;function xt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(St);return{getBestContrastColor(o){if(!t[o]){n>wt&&(t={},n=0);const i=St(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 Ct(){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]=yt(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=Te(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Qe:Xe;let r=Ye;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Je(!0,{},Ze,r,n),i=Je(!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,yt.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 ct(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const s=o.getStyle("","","color"),l=St(s);n=xt([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(de.prototype).forEach((e=>{o[e]=de.prototype[e]})),de.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const Et=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),kt=5e3;function Lt(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 Rt,qt={};var It=function(){if(Rt)return qt;Rt=1;var e=m;return qt.createRoot=e.createRoot,qt.hydrateRoot=e.hydrateRoot,qt}(),_t=G(It);function Ot(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 Tt=Object.freeze({__proto__:null,default:Ot}),Pt="$$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 At(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={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Nt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var jt=/[A-Z]|^ms/g,zt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ft=function(e){return 45===e.charCodeAt(1)},Wt=function(e){return null!=e&&"boolean"!=typeof e},Bt=Nt((function(e){return Ft(e)?e:e.replace(jt,"-$&").toLowerCase()})),Ut=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(zt,(function(e,t,n){return $t={name:t,styles:n,next:$t},t}))}return 1===Mt[e]||Ft(e)||"number"!=typeof t||0===t?t:t+"px"};function Ht(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return $t={name:o.name,styles:o.styles,next:$t},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)$t={name:a.name,styles:a.styles,next:$t},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ht(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;Wt(s)&&(r+=Bt(i)+":"+Ut(i,s)+";")}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var l=0;l<a.length;l++)Wt(a[l])&&(r+=Bt(i)+":"+Ut(i,a[l])+";");else{var c=Ht(e,t,a);switch(i){case"animation":case"animationName":r+=Bt(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}}return r}(e,t,n)}return n}var $t,Gt=/label:\s*([^\s;{]+)\s*(;|$)/g;var Kt=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}(),Vt="-ms-",Jt="-moz-",Zt="-webkit-",Xt="comm",Qt="rule",Yt="decl",en="@keyframes",tn=Math.abs,nn=String.fromCharCode,rn=Object.assign;function on(e){return e.trim()}function an(e,t,n){return e.replace(t,n)}function sn(e,t){return e.indexOf(t)}function ln(e,t){return 0|e.charCodeAt(t)}function cn(e,t,n){return e.slice(t,n)}function un(e){return e.length}function dn(e){return e.length}function hn(e,t){return t.push(e),e}var pn=1,fn=1,mn=0,gn=0,bn=0,yn="";function vn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:pn,column:fn,length:a,return:""}}function Sn(e,t){return rn(vn("",null,null,"",null,null,0),e,{length:-e.length},t)}function wn(){return bn=gn>0?ln(yn,--gn):0,fn--,10===bn&&(fn=1,pn--),bn}function xn(){return bn=gn<mn?ln(yn,gn++):0,fn++,10===bn&&(fn=1,pn++),bn}function Cn(){return ln(yn,gn)}function En(){return gn}function kn(e,t){return cn(yn,e,t)}function Ln(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 Rn(e){return pn=fn=1,mn=un(yn=e),gn=0,[]}function qn(e){return yn="",e}function In(e){return on(kn(gn-1,Tn(91===e?e+2:40===e?e+1:e)))}function _n(e){for(;(bn=Cn())&&bn<33;)xn();return Ln(e)>2||Ln(bn)>3?"":" "}function On(e,t){for(;--t&&xn()&&!(bn<48||bn>102||bn>57&&bn<65||bn>70&&bn<97););return kn(e,En()+(t<6&&32==Cn()&&32==xn()))}function Tn(e){for(;xn();)switch(bn){case e:return gn;case 34:case 39:34!==e&&39!==e&&Tn(bn);break;case 40:41===e&&Tn(e);break;case 92:xn()}return gn}function Pn(e,t){for(;xn()&&e+bn!==57&&(e+bn!==84||47!==Cn()););return"/*"+kn(t,gn-1)+"*"+nn(47===e?e:xn())}function Dn(e){for(;!Ln(Cn());)xn();return kn(e,gn)}function An(e){return qn(Mn("",null,null,null,[""],e=Rn(e),0,[0],e))}function Mn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,f=0,m=1,g=1,b=1,y=0,v="",S=o,w=i,x=r,C=v;g;)switch(f=y,y=xn()){case 40:if(108!=f&&58==ln(C,d-1)){-1!=sn(C+=an(In(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=In(y);break;case 9:case 10:case 13:case 32:C+=_n(f);break;case 92:C+=On(En()-1,7);continue;case 47:switch(Cn()){case 42:case 47:hn(jn(Pn(xn(),En()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=un(C)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(C=an(C,/\f/g,"")),p>0&&un(C)-d&&hn(p>32?zn(C+";",r,n,d-1):zn(an(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(hn(x=Nn(C,t,n,c,u,o,s,v,S=[],w=[],d),i),123===y)if(0===u)Mn(C,t,x,x,S,i,d,s,w);else switch(99===h&&110===ln(C,3)?100:h){case 100:case 108:case 109:case 115:Mn(e,x,x,r&&hn(Nn(e,x,x,0,0,o,s,v,o,S=[],d),w),o,w,d,s,r?S:w);break;default:Mn(C,x,x,x,[""],w,0,s,w)}}c=u=p=0,m=b=1,v=C="",d=a;break;case 58:d=1+un(C),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==wn())continue;switch(C+=nn(y),y*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(un(C)-1)*b,b=1;break;case 64:45===Cn()&&(C+=In(xn())),h=Cn(),u=d=un(v=C+=Dn(En())),y++;break;case 45:45===f&&2==un(C)&&(m=0)}}return i}function Nn(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,h=0===o?i:[""],p=dn(h),f=0,m=0,g=0;f<r;++f)for(var b=0,y=cn(e,d+1,d=tn(m=a[f])),v=e;b<p;++b)(v=on(m>0?h[b]+" "+y:an(y,/&\f/g,h[b])))&&(l[g++]=v);return vn(e,t,n,0===o?Qt:s,l,c,u)}function jn(e,t,n){return vn(e,t,n,Xt,nn(bn),cn(e,2,-2),0)}function zn(e,t,n,r){return vn(e,t,n,Yt,cn(e,0,r),cn(e,r+1,-1),r)}function Fn(e,t){for(var n="",r=dn(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Wn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Yt:return e.return=e.return||e.value;case Xt:return"";case en:return e.return=e.value+"{"+Fn(e.children,r)+"}";case Qt:e.value=e.props.join(",")}return un(n=Fn(e.children,r))?e.return=e.value+"{"+n+"}":""}var Bn=function(e,t,n){for(var r=0,o=0;r=o,o=Cn(),38===r&&12===o&&(t[n]=1),!Ln(o);)xn();return kn(e,gn)},Un=function(e,t){return qn(function(e,t){var n=-1,r=44;do{switch(Ln(r)){case 0:38===r&&12===Cn()&&(t[n]=1),e[n]+=Bn(gn-1,t,n);break;case 2:e[n]+=In(r);break;case 4:if(44===r){e[++n]=58===Cn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=nn(r)}}while(r=xn());return e}(Rn(e),t))},Hn=new WeakMap,$n=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)||Hn.get(n))&&!r){Hn.set(e,!0);for(var o=[],i=Un(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]}}},Gn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Kn(e,t){switch(function(e,t){return 45^ln(e,0)?(((t<<2^ln(e,0))<<2^ln(e,1))<<2^ln(e,2))<<2^ln(e,3):0}(e,t)){case 5103:return Zt+"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 Zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Zt+e+Jt+e+Vt+e+e;case 6828:case 4268:return Zt+e+Vt+e+e;case 6165:return Zt+e+Vt+"flex-"+e+e;case 5187:return Zt+e+an(e,/(\w+).+(:[^]+)/,Zt+"box-$1$2"+Vt+"flex-$1$2")+e;case 5443:return Zt+e+Vt+"flex-item-"+an(e,/flex-|-self/,"")+e;case 4675:return Zt+e+Vt+"flex-line-pack"+an(e,/align-content|flex-|-self/,"")+e;case 5548:return Zt+e+Vt+an(e,"shrink","negative")+e;case 5292:return Zt+e+Vt+an(e,"basis","preferred-size")+e;case 6060:return Zt+"box-"+an(e,"-grow","")+Zt+e+Vt+an(e,"grow","positive")+e;case 4554:return Zt+an(e,/([^-])(transform)/g,"$1"+Zt+"$2")+e;case 6187:return an(an(an(e,/(zoom-|grab)/,Zt+"$1"),/(image-set)/,Zt+"$1"),e,"")+e;case 5495:case 3959:return an(e,/(image-set\([^]*)/,Zt+"$1$`$1");case 4968:return an(an(e,/(.+:)(flex-)?(.*)/,Zt+"box-pack:$3"+Vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Zt+e+e;case 4095:case 3583:case 4068:case 2532:return an(e,/(.+)-inline(.+)/,Zt+"$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(un(e)-1-t>6)switch(ln(e,t+1)){case 109:if(45!==ln(e,t+4))break;case 102:return an(e,/(.+:)(.+)-([^]+)/,"$1"+Zt+"$2-$3$1"+Jt+(108==ln(e,t+3)?"$3":"$2-$3"))+e;case 115:return~sn(e,"stretch")?Kn(an(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ln(e,t+1))break;case 6444:switch(ln(e,un(e)-3-(~sn(e,"!important")&&10))){case 107:return an(e,":",":"+Zt)+e;case 101:return an(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Zt+(45===ln(e,14)?"inline-":"")+"box$3$1"+Zt+"$2$3$1"+Vt+"$2box$3")+e}break;case 5936:switch(ln(e,t+11)){case 114:return Zt+e+Vt+an(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Zt+e+Vt+an(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Zt+e+Vt+an(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Zt+e+Vt+e+e}return e}var Vn,Jn,Zn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Yt:e.return=Kn(e.value,e.length);break;case en:return Fn([Sn(e,{value:an(e.value,"@","@"+Zt)})],r);case Qt: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 Fn([Sn(e,{props:[an(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Fn([Sn(e,{props:[an(t,/:(plac\w+)/,":"+Zt+"input-$1")]}),Sn(e,{props:[an(t,/:(plac\w+)/,":-moz-$1")]}),Sn(e,{props:[an(t,/:(plac\w+)/,Vt+"input-$1")]})],r)}return""}))}}],Xn=function(e){var t=e.key;if("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||Zn,a={},s=[];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,u=[Wn,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=dn(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([$n,Gn].concat(i,u));o=function(e,t,n,r){l=n,Fn(An(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Kt({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 h.sheet.hydrate(s),h},Qn={exports:{}},Yn={};function er(){return Jn||(Jn=1,Qn.exports=function(){if(Vn)return Yn;Vn=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 Yn.Fragment=r,Yn.jsx=s,Yn.jsxs=s,Yn}()),Qn.exports}var tr=er();const nr=new Map;function rr(t){const{injectFirst:n,enableCssLayer:r,children:o}=t,i=e.useMemo((()=>{const e=`${n}-${r}`;if("object"==typeof document&&nr.has(e))return nr.get(e);const t=function(e,t){const n=Xn({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(n,r);return nr.set(e,t),t}),[n,r]);return n||r?tr.jsx(g,{value:i,children:o}):o}function or(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 tr.jsx(b,{styles:r})}
|
|
8
8
|
/**
|
|
9
9
|
* @mui/styled-engine v5.18.0
|
|
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
|
-
*/const rr=[];function or(e){return rr[0]=e,function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Bt=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Wt(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Wt(n,t,e[a]),r&&(o+=i[a]);Ut.lastIndex=0;for(var s,l="";null!==(s=Ut.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Bt}}(rr)}var ir=Object.freeze({__proto__:null,GlobalStyles:nr,StyledEngineProvider:tr,ThemeContext:y,css:v,default:function(e,t){return w(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:or,keyframes:S});function ar(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 sr(t){if(e.isValidElement(t)||!ar(t))return t;const n={};return Object.keys(t).forEach(e=>{n[e]=sr(t[e])}),n}function lr(t,n,r={clone:!0}){const o=r.clone?Tt({},t):t;return ar(t)&&ar(n)&&Object.keys(n).forEach(i=>{e.isValidElement(n[i])?o[i]=n[i]:ar(n[i])&&Object.prototype.hasOwnProperty.call(t,i)&&ar(t[i])?o[i]=lr(t[i],n[i],r):r.clone?o[i]=ar(n[i])?sr(n[i]):n[i]:o[i]=n[i]}),o}var cr=Object.freeze({__proto__:null,default:lr,isPlainObject:ar});const ur=["values","unit","step"];function dr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Pt(e,ur),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>Tt({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Tt({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 hr={borderRadius:4};function pr(e,t){return t?lr(e,t,{clone:!1}):e}const fr={xs:0,sm:600,md:900,lg:1200,xl:1536},mr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fr[e]}px)`};function gr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||mr;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||mr;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||fr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function br(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function yr(e){if("string"!=typeof e)throw new Error(It(7));return e.charAt(0).toUpperCase()+e.slice(1)}var vr=Object.freeze({__proto__:null,default:yr});function Sr(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 wr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Sr(e,n)||r,t&&(o=t(o,r,e)),o}function xr(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=Sr(e.theme,r)||{};return gr(e,i,e=>{let r=wr(a,o,e);return e===r&&"string"==typeof e&&(r=wr(a,o,`${t}${"default"===e?"":yr(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const Cr={m:"margin",p:"padding"},Er={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Lr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!kr[e])return[e];e=kr[e]}const[t,n]=e.split(""),r=Cr[t],o=Er[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Rr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ir(e,t,n,r){var o;const i=null!=(o=Sr(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 _r(e){return Ir(e,"spacing",8)}function Or(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 Tr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Or(t,n),e),{})}(Lr(n),r);return gr(e,e[n],o)}function Pr(e,t){const n=_r(e.theme);return Object.keys(e).map(r=>Tr(e,t,r,n)).reduce(pr,{})}function Dr(e){return Pr(e,Rr)}function Ar(e){return Pr(e,qr)}function Mr(e=8){if(e.mui)return e;const t=_r({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 Nr(...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]?pr(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function jr(e){return"number"!=typeof e?e:`${e}px solid`}function zr(e,t){return xr({prop:e,themeKey:"borders",transform:t})}Dr.propTypes={},Dr.filterProps=Rr,Ar.propTypes={},Ar.filterProps=qr;const Fr=zr("border",jr),$r=zr("borderTop",jr),Wr=zr("borderRight",jr),Br=zr("borderBottom",jr),Ur=zr("borderLeft",jr),Hr=zr("borderColor"),Gr=zr("borderTopColor"),Kr=zr("borderRightColor"),Vr=zr("borderBottomColor"),Jr=zr("borderLeftColor"),Zr=zr("outline",jr),Xr=zr("outlineColor"),Qr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ir(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Or(t,e)});return gr(e,e.borderRadius,n)}return null};Qr.propTypes={},Qr.filterProps=["borderRadius"],Nr(Fr,$r,Wr,Br,Ur,Hr,Gr,Kr,Vr,Jr,Qr,Zr,Xr);const Yr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ir(e.theme,"spacing",8),n=e=>({gap:Or(t,e)});return gr(e,e.gap,n)}return null};Yr.propTypes={},Yr.filterProps=["gap"];const eo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ir(e.theme,"spacing",8),n=e=>({columnGap:Or(t,e)});return gr(e,e.columnGap,n)}return null};eo.propTypes={},eo.filterProps=["columnGap"];const to=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ir(e.theme,"spacing",8),n=e=>({rowGap:Or(t,e)});return gr(e,e.rowGap,n)}return null};to.propTypes={},to.filterProps=["rowGap"];function no(e,t){return"grey"===t?t:e}Nr(Yr,eo,to,xr({prop:"gridColumn"}),xr({prop:"gridRow"}),xr({prop:"gridAutoFlow"}),xr({prop:"gridAutoColumns"}),xr({prop:"gridAutoRows"}),xr({prop:"gridTemplateColumns"}),xr({prop:"gridTemplateRows"}),xr({prop:"gridTemplateAreas"}),xr({prop:"gridArea"}));function ro(e){return e<=1&&0!==e?100*e+"%":e}Nr(xr({prop:"color",themeKey:"palette",transform:no}),xr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:no}),xr({prop:"backgroundColor",themeKey:"palette",transform:no}));const oo=xr({prop:"width",transform:ro}),io=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])||fr[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:ro(t)}};return gr(e,e.maxWidth,t)}return null};io.filterProps=["maxWidth"];const ao=xr({prop:"minWidth",transform:ro}),so=xr({prop:"height",transform:ro}),lo=xr({prop:"maxHeight",transform:ro}),co=xr({prop:"minHeight",transform:ro});xr({prop:"size",cssProperty:"width",transform:ro}),xr({prop:"size",cssProperty:"height",transform:ro});Nr(oo,io,ao,so,lo,co,xr({prop:"boxSizing"}));const uo={border:{themeKey:"borders",transform:jr},borderTop:{themeKey:"borders",transform:jr},borderRight:{themeKey:"borders",transform:jr},borderBottom:{themeKey:"borders",transform:jr},borderLeft:{themeKey:"borders",transform:jr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qr},color:{themeKey:"palette",transform:no},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:no},backgroundColor:{themeKey:"palette",transform:no},p:{style:Ar},pt:{style:Ar},pr:{style:Ar},pb:{style:Ar},pl:{style:Ar},px:{style:Ar},py:{style:Ar},padding:{style:Ar},paddingTop:{style:Ar},paddingRight:{style:Ar},paddingBottom:{style:Ar},paddingLeft:{style:Ar},paddingX:{style:Ar},paddingY:{style:Ar},paddingInline:{style:Ar},paddingInlineStart:{style:Ar},paddingInlineEnd:{style:Ar},paddingBlock:{style:Ar},paddingBlockStart:{style:Ar},paddingBlockEnd:{style:Ar},m:{style:Dr},mt:{style:Dr},mr:{style:Dr},mb:{style:Dr},ml:{style:Dr},mx:{style:Dr},my:{style:Dr},margin:{style:Dr},marginTop:{style:Dr},marginRight:{style:Dr},marginBottom:{style:Dr},marginLeft:{style:Dr},marginX:{style:Dr},marginY:{style:Dr},marginInline:{style:Dr},marginInlineStart:{style:Dr},marginInlineEnd:{style:Dr},marginBlock:{style:Dr},marginBlockStart:{style:Dr},marginBlockEnd:{style:Dr},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:Yr},rowGap:{style:to},columnGap:{style:eo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ro},maxWidth:{style:io},minWidth:{transform:ro},height:{transform:ro},maxHeight:{transform:ro},minHeight:{transform:ro},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ho(){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=Sr(n,s)||{};if(c)return c(o);return gr(o,t,t=>{let n=wr(u,l,t);return t===n&&"string"==typeof t&&(n=wr(u,l,`${e}${"default"===t?"":yr(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:uo;function l(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),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=pr(c,e(n,o,i,s));else{const e=gr({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)?c=pr(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=pr(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":br(l,c)}:br(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const po=ho();function fo(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}po.filterProps=["sx"];const mo=["breakpoints","palette","spacing","shape"];function go(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Pt(e,mo),s=dr(n),l=Mr(o);let c=lr({breakpoints:s,direction:"ltr",components:{},palette:Tt({mode:"light"},r),spacing:l,shape:Tt({},hr,i)},a);return c.applyStyles=fo,c=t.reduce((e,t)=>lr(e,t),c),c.unstable_sxConfig=Tt({},uo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return po({sx:e,theme:this})},c}var bo=Object.freeze({__proto__:null,default:go,private_createBreakpoints:dr,unstable_applyStyles:fo});function yo(t=null){const n=e.useContext(y);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const vo=go();function So(e=vo){return yo(e)}function wo(e){const t=or(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function xo({styles:e,themeId:t,defaultTheme:n={}}){const r=So(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>wo("function"==typeof e?e(o):e)):wo(i)),Yn.jsx(nr,{styles:i})}const Co=["sx"];var Eo=Object.freeze({__proto__:null,default:po,extendSxProp:function(e){const{sx:t}=e,n=Pt(e,Co),{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:uo;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 ar(n)?Tt({},r,n):r}:Tt({},r,t),Tt({},o,{sx:i})},unstable_createStyleFunctionSx:ho,unstable_defaultSxConfig:uo});const ko=e=>e,Lo=(()=>{let e=ko;return{configure(t){e=t},generate:t=>e(t),reset(){e=ko}}})();function Ro(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=Ro(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ro(e))&&(r&&(r+=" "),r+=t);return r}const Io={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 _o(e,t,n="Mui"){const r=Io[t];return r?`${n}-${r}`:`${Lo.generate(e)}-${t}`}function Oo(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=_o(e,t,n)}),r}var To,Po,Do={exports:{}},Ao={};var Mo=(Po||(Po=1,Do.exports=function(){if(To)return Ao;To=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"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case p:case h:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),Ao.ContextConsumer=s,Ao.ContextProvider=a,Ao.Element=t,Ao.ForwardRef=c,Ao.Fragment=r,Ao.Lazy=p,Ao.Memo=h,Ao.Portal=n,Ao.Profiler=i,Ao.StrictMode=o,Ao.Suspense=u,Ao.SuspenseList=d,Ao.isAsyncMode=function(){return!1},Ao.isConcurrentMode=function(){return!1},Ao.isContextConsumer=function(e){return m(e)===s},Ao.isContextProvider=function(e){return m(e)===a},Ao.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ao.isForwardRef=function(e){return m(e)===c},Ao.isFragment=function(e){return m(e)===r},Ao.isLazy=function(e){return m(e)===p},Ao.isMemo=function(e){return m(e)===h},Ao.isPortal=function(e){return m(e)===n},Ao.isProfiler=function(e){return m(e)===i},Ao.isStrictMode=function(e){return m(e)===o},Ao.isSuspense=function(e){return m(e)===u},Ao.isSuspenseList=function(e){return m(e)===d},Ao.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===h||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Ao.typeOf=m,Ao}()),Do.exports);const No=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jo(e){const t=`${e}`.match(No);return t&&t[1]||""}function zo(e,t=""){return e.displayName||e.name||jo(e)||t}function Fo(e,t,n){const r=zo(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var $o=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return zo(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Mo.ForwardRef:return Fo(e,e.render,"ForwardRef");case Mo.Memo:return Fo(e,e.type,"memo");default:return}}},getFunctionName:jo});function Wo(e,t){const n=Tt({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Tt({},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]=Tt({},i),Object.keys(o).forEach(e=>{n[r][e]=Wo(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const Bo="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var Uo=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 Ho(e){return e&&e.ownerDocument||document}function Go(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Ko=0;const Vo=e["useId".toString()];function Jo(t){if(void 0!==Vo){const e=Vo();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect(()=>{null==n&&(Ko+=1,r(`mui-${Ko}`))},[n]),o}(t)}class Zo{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Zo}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}let Xo=!0,Qo=!1;const Yo=new Zo,ei={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 ti(e){e.metaKey||e.altKey||e.ctrlKey||(Xo=!0)}function ni(){Xo=!1}function ri(){"hidden"===this.visibilityState&&Qo&&(Xo=!0)}function oi(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Xo||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ei[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const ii=e.createContext(null);function ai(){return e.useContext(ii)}var si="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function li(t){const{children:n,theme:r}=t,o=ai(),i=e.useMemo(()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return Tt({},e,t)}(o,r);return null!=e&&(e[si]=null!==o),e},[r,o]);return Yn.jsx(ii.Provider,{value:i,children:n})}const ci=["value"],ui=e.createContext();function di(e){let{value:t}=e,n=Pt(e,ci);return Yn.jsx(ui.Provider,Tt({value:null==t||t},n))}const hi=e.createContext(void 0);function pi({value:e,children:t}){return Yn.jsx(hi.Provider,{value:e,children:t})}function fi({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?Wo(o.defaultProps,r):o.styleOverrides||o.variants?r:Wo(o,r)}({props:t,name:n,theme:{components:e.useContext(hi)}})}const mi={};function gi(t,n,r,o=!1){return e.useMemo(()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?Tt({},n,{[t]:i}):i;return o?()=>a:a}return Tt({},n,t?{[t]:r}:r)},[t,n,r,o])}function bi(e){const{children:t,theme:n,themeId:r}=e,o=yo(mi),i=ai()||mi,a=gi(r,o,n),s=gi(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=yo(),n=Jo()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Bo(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Yn.jsx(xo,{styles:o}):null}(a);return Yn.jsx(li,{theme:s,children:Yn.jsx(y.Provider,{value:a,children:Yn.jsx(di,{value:l,children:Yn.jsxs(pi,{value:null==a?void 0:a.components,children:[c,t]})})})})}const yi=["defaultProps","mixins","overrides","palette","props","styleOverrides"],vi=["type","mode"];var Si,wi={},xi={exports:{}};function Ci(){return Si||(Si=1,(e=xi).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),xi.exports;var e}var Ei,ki=K(_t),Li=K(Uo);function Ri(){if(Ei)return wi;Ei=1;var e=Ci();Object.defineProperty(wi,"__esModule",{value:!0}),wi.alpha=u,wi.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})},wi.colorChannel=void 0,wi.darken=d,wi.decomposeColor=i,wi.emphasize=p,wi.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},wi.getLuminance=c,wi.hexToRgb=o,wi.hslToRgb=l,wi.lighten=h,wi.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},wi.private_safeColorChannel=void 0,wi.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},wi.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},wi.private_safeLighten=function(e,t,n){try{return h(e,t)}catch(t){return e}},wi.recomposeColor=s,wi.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(ki),n=e(Li);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(" ")};wi.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 h(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):h(e,t)}return wi.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},wi}var qi=Ri();const Ii={black:"#000",white:"#fff"},_i={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"},Oi="#f3e5f5",Ti="#ce93d8",Pi="#ba68c8",Di="#ab47bc",Ai="#9c27b0",Mi="#7b1fa2",Ni="#e57373",ji="#ef5350",zi="#f44336",Fi="#d32f2f",$i="#c62828",Wi="#ffb74d",Bi="#ffa726",Ui="#ff9800",Hi="#f57c00",Gi="#e65100",Ki="#e3f2fd",Vi="#90caf9",Ji="#42a5f5",Zi="#1976d2",Xi="#1565c0",Qi="#4fc3f7",Yi="#29b6f6",ea="#03a9f4",ta="#0288d1",na="#01579b",ra="#81c784",oa="#66bb6a",ia="#4caf50",aa="#388e3c",sa="#2e7d32",la="#1b5e20",ca=["mode","contrastThreshold","tonalOffset"],ua={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:Ii.white,default:Ii.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}},da={text:{primary:Ii.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:Ii.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 ha(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=qi.lighten(e.main,o):"dark"===t&&(e.dark=qi.darken(e.main,i)))}function pa(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Pt(e,ca),i=e.primary||function(e="light"){return"dark"===e?{main:Vi,light:Ki,dark:Ji}:{main:Zi,light:Ji,dark:Xi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ti,light:Oi,dark:Di}:{main:Ai,light:Pi,dark:Mi}}(t),s=e.error||function(e="light"){return"dark"===e?{main:zi,light:Ni,dark:Fi}:{main:Fi,light:ji,dark:$i}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Yi,light:Qi,dark:ta}:{main:ta,light:ea,dark:na}}(t),c=e.success||function(e="light"){return"dark"===e?{main:oa,light:ra,dark:aa}:{main:sa,light:ia,dark:la}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Bi,light:Wi,dark:Hi}:{main:"#ed6c02",light:Ui,dark:Gi}}(t);function d(e){return qi.getContrastRatio(e,da.text.primary)>=n?da.text.primary:ua.text.primary}const h=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Tt({},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 ha(e,"light",o,r),ha(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:da,light:ua};return lr(Tt({common:Tt({},Ii),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:_i,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r},p[t]),o)}const fa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ma={textTransform:"uppercase"},ga='"Roboto", "Helvetica", "Arial", sans-serif';function ba(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=ga,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,h=Pt(n,fa),p=o/14,f=d||(e=>e/c*p+"rem"),m=(e,t,n,o,i)=>{return Tt({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===ga?{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,ma),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ma),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return lr(Tt({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),h,{clone:!1})}function ya(...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 va=["none",ya(0,2,1,-1,0,1,1,0,0,1,3,0),ya(0,3,1,-2,0,2,2,0,0,1,5,0),ya(0,3,3,-2,0,3,4,0,0,1,8,0),ya(0,2,4,-1,0,4,5,0,0,1,10,0),ya(0,3,5,-1,0,5,8,0,0,1,14,0),ya(0,3,5,-1,0,6,10,0,0,1,18,0),ya(0,4,5,-2,0,7,10,1,0,2,16,1),ya(0,5,5,-3,0,8,10,1,0,3,14,2),ya(0,5,6,-3,0,9,12,1,0,3,16,2),ya(0,6,6,-3,0,10,14,1,0,4,18,3),ya(0,6,7,-4,0,11,15,1,0,4,20,3),ya(0,7,8,-4,0,12,17,2,0,5,22,4),ya(0,7,8,-4,0,13,19,2,0,5,24,4),ya(0,7,9,-4,0,14,21,2,0,5,26,4),ya(0,8,9,-5,0,15,22,2,0,6,28,5),ya(0,8,10,-5,0,16,24,2,0,6,30,5),ya(0,8,11,-5,0,17,26,2,0,6,32,5),ya(0,9,11,-5,0,18,28,2,0,7,34,6),ya(0,9,12,-6,0,19,29,2,0,7,36,6),ya(0,10,13,-6,0,20,31,3,0,8,38,7),ya(0,10,13,-6,0,21,33,3,0,8,40,7),ya(0,10,14,-6,0,22,35,3,0,8,42,7),ya(0,11,14,-7,0,23,36,3,0,9,44,8),ya(0,11,15,-7,0,24,38,3,0,9,46,8)],Sa=["duration","easing","delay"],wa={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)"},xa={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ca(e){return`${Math.round(e)}ms`}function Ea(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ka(e){const t=Tt({},wa,e.easing),n=Tt({},xa,e.duration);return Tt({getAutoHeightDuration:Ea,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Pt(r,Sa),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Ca(o)} ${i} ${"string"==typeof a?a:Ca(a)}`).join(",")}},e,{easing:t,duration:n})}const La={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ra=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qa(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Pt(e,Ra);if(e.vars&&void 0===e.generateCssVars)throw new Error(It(18));const s=pa(r),l=go(e);let c=lr(l,{mixins:(u=l.breakpoints,d=n,Tt({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:va.slice(),typography:ba(s,i),transitions:ka(o),zIndex:Tt({},La)});var u,d;return c=lr(c,a),c=t.reduce((e,t)=>lr(e,t),c),c.unstable_sxConfig=Tt({},uo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return po({sx:e,theme:this})},c}const Ia=qa();function _a(){const e=So(Ia);return e[Ot]||e}var Oa,Ta={},Pa={exports:{}};var Da,Aa={exports:{}};var Ma,Na=K(ir),ja=K(cr),za=K(vr),Fa=K($o),$a=K(bo),Wa=K(Eo);function Ba(){if(Ma)return Ta;Ma=1;var e=Ci();Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=h,slotShouldForwardProp:c=h}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:g((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:f,skipVariantsResolver:v,skipSx:S,overridesResolver:w=b(m(f))}=s,x=(0,r.default)(s,u),C=p&&p.startsWith("Mui")||f?"components":"custom",E=void 0!==v?v:f&&"Root"!==f&&"root"!==f||!1,k=S||!1;let L=h;"Root"===f||"root"===f?L=l:f?L=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(L=void 0);const R=(0,o.default)(e,(0,n.default)({shouldForwardProp:L,label:undefined},x)),q=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>{const o=g({theme:r.theme,defaultTheme:a,themeId:t});return y(e,(0,n.default)({},r,{theme:o}),o.modularCssLayers?C:void 0)}:e,I=(r,...o)=>{let i=q(r);const s=o?o.map(q):[];p&&w&&s.push(e=>{const r=g((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]=y(o,(0,n.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),w(e,i)}),p&&!E&&s.push(e=>{var r;const o=g((0,n.default)({},e,{defaultTheme:a,themeId:t}));return y({variants:null==o||null==(r=o.components)||null==(r=r[p])?void 0:r.variants},(0,n.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),k||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=R(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return R.withConfig&&(I.withConfig=R.withConfig),I}},Ta.shouldForwardProp=h,Ta.systemDefaultTheme=void 0;var t,n=e((Oa||(Oa=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}(Pa)),Pa.exports)),r=e((Da||(Da=1,(t=Aa).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),Aa.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}(Na),i=ja;e(za),e(Fa);var a=e($a),s=e(Wa);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 h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=Ta.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function b(e){return e?(t,n)=>n[e]:null}function y(e,t,i){let{ownerState:a}=t,s=(0,r.default)(t,l);const u="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(u))return u.flatMap(e=>y(e,(0,n.default)({ownerState:a},s),i));if(u&&"object"==typeof u&&Array.isArray(u.variants)){const{variants:e=[]}=u;let t=(0,r.default)(u,c);return e.forEach(e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,n.default)({ownerState:a},s,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&s[t]!==e.props[t]&&(r=!1)}),r){Array.isArray(t)||(t=[t]);const r="function"==typeof e.style?e.style((0,n.default)({ownerState:a},s,a)):e.style;t.push(i?p((0,o.internal_serializeStyles)(r),i):r)}}),t}return i?p((0,o.internal_serializeStyles)(u),i):u}return Ta}const Ua=G(Ba())({themeId:Ot,defaultTheme:Ia,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),Ha=["theme"];function Ga(e){let{theme:t}=e,n=Pt(e,Ha);const r=t[Ot];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=Tt({},r,{vars:null}):t&&!t.vars&&(o=Tt({},t,{vars:null}))),Yn.jsx(bi,Tt({},n,{themeId:r?Ot:void 0,theme:o}))}function Ka(e,t){return Ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ka(e,t)}function Va(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ka(e,t)}function Ja(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Za=Oo("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 Xa={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 Qa={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},Ya={mode:"light",palette:{primary:{main:Qa.grey25,contrastText:Qa.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Qa.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Qa.grey100,dark:Qa.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:Qa.grey100,default:Qa.grey100,lightest:Qa.grey100,lighter:Qa.grey98,darker:Qa.grey95,darkest:Qa.grey90},custom:{focusBorder:Qa.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Qa.grey45,disabledContrastText:Qa.grey100},selected:{main:Qa.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Qa.grey100,selectedContrastText:Qa.grey100,mainContrastText:Qa.grey100,alternativeContrastText:Qa.grey25,excludedContrastText:Qa.grey25,selectedExcludedContrastText:Qa.grey100,possibleContrastText:Qa.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)"}}},es={mode:"dark",palette:{primary:{main:Qa.grey20,contrastText:Qa.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Qa.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Qa.grey100,dark:Qa.grey0},action:{active:Qa.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:Qa.grey25,lighter:Qa.grey20,darker:Qa.grey15,darkest:Qa.grey10},custom:{focusBorder:Qa.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Qa.grey45,disabledContrastText:Qa.grey100},selected:{main:Qa.green,alternative:Qa.grey20,excluded:Qa.grey10,selectedExcluded:Qa.grey10,possible:Qa.grey80,selectedContrastText:Qa.grey100,mainContrastText:Qa.grey100,alternativeContrastText:Qa.grey100,excludedContrastText:Qa.grey100,selectedExcludedContrastText:Qa.grey100,possibleContrastText:Qa.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)"}}},ts={},ns=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(Za.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(Za.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(Za.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Za.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function rs(e){let t=Ya,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=es));const r=JSON.stringify(t);if(ts[r])return ts[r];const o={palette:te(te({type:t.mode},Xa.palette),t.palette),typography:te({},Xa.typography),shadows:Xa.shadows,props:te({},Xa.props),shape:te({},Xa.shape)};return ts[r]=qa(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=Tt({},Pt(e,yi),{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=Mr(e.spacing);const l=dr(e.breakpoints||{}),c=s.spacing;s.mixins=Tt({gutters:(e={})=>Tt({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:Tt({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,h=Pt(o,vi),p=d||u||"light";return s.palette=Tt({text:{hint:"dark"===p?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:p,type:p},h),s}(te(te({},o),{},{overrides:ns(o)}))),ts[r].name=n,ts[r]}Lo.configure(e=>"njs-".concat("3b94","-").concat(e.replace("Mui","")));var os=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null});const is={active:!0,select:!0,passive:!0,edit:!1};function as(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(is).forEach(e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=is[e],n[e]=!is[e])}),e.constraints=n,e.interactions=t}var ss=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 ls=o((e,o)=>{let{initialContext:s,renderCallback:l,modelStore:c,selectionStore:u}=e;const[d,h]=n(s),[p,f]=n(),{theme:m}=i(()=>({theme:rs(p)}),[p]),[g,b]=n([]);return r(()=>{l&&l()},[]),a(o,()=>({setComps(e){b([...e])},setMuiThemeName:f,setContext:e=>h(t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)}),[]),d&&(d.modelStore=c,d.selectionStore=u),t.createElement(tr,{injectFirst:!0},t.createElement(Ga,{theme:m},t.createElement(os.Provider,{value:d},g)))});function cs(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","6.0.0-alpha.1"),l.setAttribute("data-app-id",r.id),document.body.appendChild(l),o&&as(o);const c=function(e){const[t,n]=ss({}),[r,o]=ss({}),[i,a]=ss({}),[s,l]=ss({}),[c,u]=ss({}),[,d]=ss({}),h=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,f]=ss({},h);return{subscribe:e=>{const t=h({type:"SET",value:e});return()=>{t(),f.clear(e.id)}},destroy:()=>{f.destroy()},useModelStore:p,modelStore:f,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:s,rpcRequestModelStore:l,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(r.id),u=function(e){const[t,n]=ss({}),[r,o]=ss({}),[i,a]=ss({});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(ls,{ref:s,initialContext:o,renderCallback:n,modelStore:c,selectionStore:u}));const h={},p=[],f=[];return[{toggleFocusOfCells(e){Object.keys(h).forEach(t=>{var n;null===(n=h[t].current)||void 0===n||n.toggleFocus(t===e)})},cells:h,addCell(e,t){h[e]=t},removeCell(e){delete h[e]},add:(e,t)=>(async()=>{await a,f.push(e),p.push(t),s.current.setComps(f)})(),remove(e){i||(async t=>{await a;const n=f.indexOf(e);var r;-1!==n&&(null===(r=p[n])||void 0===r||r.call(p),f.splice(n,1),p.splice(n,1));null==s||null===(t=s.current)||void 0===t||t.setComps(f)})()},setMuiThemeName(e){(async()=>{await a,s.current.setMuiThemeName(e)})()},context(e){(async()=>{await a,e&&as(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 us(){const{useModelStore:e}=s(os).modelStore;return e()}function ds(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=us(),[a]=function(){const{useRpcRequestSessionModelStore:e}=s(os).modelStore;return e()}(),[l,c]=n();for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];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 hs={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function ps(e){return ds(hs,e)}const fs=(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 ms(e,t){const n=e?"".concat(e.id):null,[o]=function(){const{useRpcResultStore:e}=s(os).modelStore;return e()}(),[i,a]=l(fs,n?o.get(n):null),[c]=function(){const{useModelChangedStore:e}=s(os).modelStore;return e()}(),[u]=function(){const{useRpcRequestStore:e}=s(os).modelStore;return e()}();let d;n&&(d=u.get(n),d||(d={},u.set(n,d)));const h=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(s=0,new Promise(e=>{setTimeout(e,s)}));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),h(!0))}var s},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,h()}};return r(()=>{e&&h()},[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 gs(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=ms(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 bs(e){return ms(e,"getAppLayout")}function ys(){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 vs(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Ss(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=te({fontSize:vs(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,Y({key:n},o))})))}var ws=e=>Ss((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 xs=e=>Ss((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 Cs=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 Es=e=>Ss(Cs(e));var ks=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}}(),Ls=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},Rs=function(){function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Ls(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[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},Ls(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)}(e,d),ks(e,[{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 h=a[0]-1;if(t(h))break;a[0]=h}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)}}]),e}();const qs=["S","XS"],Is=e=>e.reduce((e,t)=>e.concat(t));function _s(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[t]=e;return n=t.qState,!!qs.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return Is(t)}async function Os(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 Ts="RowColumn",Ps={row:"".concat(Ts,"-row"),rowBorderBottom:"".concat(Ts,"-rowBorderBottom"),column:"".concat(Ts,"-column"),fieldRoot:"".concat(Ts,"-fieldRoot"),cell:"".concat(Ts,"-cell"),labelText:"".concat(Ts,"-labelText"),labelDense:"".concat(Ts,"-labelDense"),highlighted:"".concat(Ts,"-highlighted"),checkboxLabel:"".concat(Ts,"-checkboxLabel"),icon:"".concat(Ts,"-icon"),S:"".concat(Ts,"-S"),XS:"".concat(Ts,"-XS"),A:"".concat(Ts,"-A"),X:"".concat(Ts,"-X"),frequencyCount:"".concat(Ts,"-frequencyCount"),barContainer:"".concat(Ts,"-barContainer"),bar:"".concat(Ts,"-bar"),barSelected:"".concat(Ts,"-barSelected"),barWithCheckbox:"".concat(Ts,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ts,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ts,"-excludedTextWithCheckbox")},Ds=".".concat(Ps.fieldRoot),As=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function Ms(e){var t;let{selectionState:n,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:s}=e;const l=h({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(),Os({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 Is(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)},f=c(e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&As(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&&As(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())},[]),y=c(e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");p(t)},[]),v=c(e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void u();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(Ds))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(Ds))||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 w={};return i?Object.assign(w,{onChange:f}):Object.assign(w,{onMouseUp:g,onMouseDown:m,onMouseEnter:y,onTouchStart:v,onTouchEnd:S}),{interactionEvents:w,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&&As(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const s=[];return n.updateItems(t,r,s),n.setSelectableValuesUpdating(),Os({selections:o,elemNumbers:r?s:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const Ns=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 js=e=>Ss(Ns(e));const zs=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,Fs=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||zs(t))&&n};const $s=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const i=[t?Ps.column:Ps.row];n||i.push(Ps.rowBorderBottom);const a=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?Ps.XS:Ps.S;break;case"S":case"L":t=Ps.S;break;case"A":t=!!r&&Ps.A;break;case"X":case"XL":t=!!r&&Ps.X;break;default:t=!1}return t}({cell:r,showGray:o});return a&&i.push(a),i},Ws=e=>e.filter(e=>!!e).join(" ").trim(),Bs=e=>e||"-",Us=["backgroundColor"],Hs=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%"},Gs=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},Ks=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(Ps.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(Ps.labelText)]:{color:s},["& .".concat(Ps.icon)]:{color:s}}},Vs={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Js=Ua("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:h}=d,p=ne(d,Us),f=Ks({theme:t,styles:u,checkboxes:n,selectionState:"selected"}),m=Ks({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(Ps.row)]:te({flexWrap:"nowrap"},u.content),["& .".concat(Ps.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(Ps.column)]:te({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(Ps.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(Ps.labelText)]:te(te({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},Vs),p),["& .".concat(Ps.labelDense)]:{lineHeight:"18px"},["& .".concat(Ps.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(Ps.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":te(te({},Vs),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Ps.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:p.color},["& .".concat(Ps.S)]:te(te({},f),{},{border:r?"none":void 0}),["& .".concat(Ps.XS)]:te(te({},Ks({theme:t,styles:u,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(Ps.A)]:te(te({},Ks({theme:t,styles:u,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(Ps.X)]:te(te({},m),{},{border:r?"none":void 0}),["& .".concat(Ps.X,", & .").concat(Ps.XS)]:{border:r?"none":void 0,["& .".concat(Ps.barSelected," .bar-filled")]:te({},g)},["& .".concat(Ps.frequencyCount)]:te(te({zIndex:3,justifyContent:"flex-end"},Vs),{},{flex:"0 0 ".concat(Hs({sizes:s,frequencyMode:l,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==l&&c?s.freqMinWidth:"max-content",maxWidth:Gs({sizes:s,frequencyMode:l,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(Ps.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Ps.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(Ps.barSelected)]:{"& .bar-filled":te({},b)},["& .".concat(Ps.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Ps.barSelectedWithCheckbox)]:{"& .bar-filled":te(te({},b),{},{backgroundColor:u.selections.selected||"#BFE5D0",borderColor:u.selections.selected})},["& .".concat(Ps.excludedTextWithCheckbox)]:{color:u.content.color,fontStyle:"italic"}}});var Zs=t.memo(Js);const Xs="ListBoxCheckbox",Qs={cbIcon:"".concat(Xs,"-cbIcon"),cbIconChecked:"".concat(Xs,"-cbIconChecked"),cbIconExcluded:"".concat(Xs,"-cbIconExcluded"),cbIconAlternative:"".concat(Xs,"-cbIconAlternative"),checkbox:"".concat(Xs,"-checkbox"),dense:"".concat(Xs,"-dense")},Ys=Ua(x,{shouldForwardProp:e=>"styles"!==e})(e=>{let{styles:t}=e;return{["& .".concat(Qs.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(Qs.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(Qs.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(Qs.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(Qs.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Qs.dense)]:{padding:"4px 8px"}}}),el=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 tl(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,styles:s,showGray:l=!0,dataN:c}=e;return t.createElement(Ys,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[Qs.checkbox,i&&Qs.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":c},name:o,icon:el(Qs,l,a),checkedIcon:t.createElement("span",{className:Qs.cbIconChecked}),styles:s})}const nl={radioButton:"".concat("ListBoxRadioButton","-radioButton")},rl=Ua(C,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(nl.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}});function ol(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a,styles:s}=e;return t.createElement(rl,{checked:r,onChange:n,value:o,name:o,className:nl.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:i?"small":"medium",dense:i,styles:s})}function il(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:Ws([Ps.labelText,r&&Ps.labelDense,o&&Fs({cell:a,checkboxes:i})&&Ps.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,n))}function al(e){let{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}=e;return"string"==typeof n?t.createElement(il,{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}):n}function sl(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:h,styles:p}=e;const f=t.createElement(tl,{onChange:n,label:r,checked:i,dense:a,excluded:zs(s),isGridCol:l,showGray:c,dataN:o,styles:p}),m=t.createElement(ol,{onChange:n,label:r,checked:i,dense:a,dataN:o,styles:p});return t.createElement(k,{control:u?m:f,className:Ps.checkboxLabel,label:t.createElement(al,{label:r,dense:a,showGray:c,checkboxes:d,cell:s,valueTextAlign:h}),key:o})}function ll(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?Ps.highlighted:""},r)});return t.createElement(il,{label:a,dense:r,showGray:o,checkboxes:i})}function cl(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,qElemNumber:s,isSelected:l,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:h,styles:p}=e;const f=t.createElement(ll,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(sl,{onChange:n,label:f,qElemNumber:s,isSelected:l,dense:i,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:o,valueTextAlign:h,styles:p}):f}var ul=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:h,styles:p}=e;return d?t.createElement(sl,{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:h,styles:p}):t.createElement(il,{label:r,dense:a,showGray:!0,checkboxes:d,cell:s,valueTextAlign:h})});function dl(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&"-"!==Bs(n)))return;const s=(e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")})({qFrequency:n,frequencyMax:a});return t.createElement(L,{className:Ws([Ps.bar,o&&Ps.barWithCheckbox,i&&(o?Ps.barSelectedWithCheckbox:Ps.barSelected)])},t.createElement(L,{className:"bar-filled",width:s}))}function hl(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;const a=Bs(null==n?void 0:n.qFrequency);return t.createElement(R,{item:!0,style:{display:"flex",alignItems:"center"},className:Ps.frequencyCount,"aria-label":a,title:a},t.createElement(E,{noWrap:!0,color:"inherit",variant:"body2",className:Ws([o&&Ps.labelDense,Ps.labelText,i&&Fs({cell:n,checkboxes:r})&&Ps.excludedTextWithCheckbox])},a))}function pl(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 fl=Ua(R,{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(Ps.fieldRoot)]:te(te({},pl({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[s]:o?"8px":void 0})}});const ml=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===ml.ARROW_UP||e===ml.ARROW_DOWN||e===ml.ARROW_LEFT||e===ml.ARROW_RIGHT});function gl(e){null==e||e.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function bl(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 yl(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=bl(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)}),gl(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 vl=e=>+e.getAttribute("data-n"),Sl=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},wl=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(),gl(e),o},xl=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},Cl=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=bl(i),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||s)t.blur(!0);else{gl(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}};function El(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:h,columnIndex:p,layoutOrder:f}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===ml.ARROW_LEFT||e===ml.ARROW_RIGHT||"number"!=typeof h||"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=(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===ml.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})({rowIndex:h,columnIndex:p,rowCount:u,columnCount:d,layoutOrder:f,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:h}=e,{keyCode:p,shiftKey:f=!1,ctrlKey:y=!1,metaKey:v=!1}=h;switch(p){case ml.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;d.classList.add("last-focused");if(!(null!=l&&l.enabled)){if(!n)return;return l.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(f){Sl(t)||xl(t)||(n?l.focusSelection():Cl(e,l));break}l.focusSelection()||xl(t)||Sl(t)||(d.blur(),Cl(e,l));break}case ml.SHIFT:b(!0);break;case ml.SPACE:t([vl(d)],!1,e);break;case ml.ARROW_DOWN:case ml.ARROW_RIGHT:u=m(p,d,!0),f&&u&&(g&&(t([vl(d)],!0),b(!1)),t([vl(u)],!0));break;case ml.ARROW_UP:case ml.ARROW_LEFT:u=m(p,d,!1),f&&u&&(g&&(t([vl(d)],!0),b(!1)),t([vl(u)],!0));break;case ml.ENTER:if(o(),void 0===c)return;break;case ml.ESCAPE:if(void 0===c)return void i();if(!c())return;i();break;case ml.HOME:if(s.setFirst(!0),y){null==a||a("overflowStart");break}null==a||a("start");break;case ml.END:if(s.setLast(!0),y){null==a||a("overflowEnd");break}null==a||a("end");break;case ml.A:if(y||v){n();break}return;case ml.F:if(y||v){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}const kl={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 Ll(e){var o,a;let{index:s,rowIndex:l,columnIndex:u,style:d,data:h}=e;const{onChange:p,onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onTouchStart:y,onTouchEnd:v,pages:S,isLocked:w,column:x=!1,checkboxes:C=!1,textAlign:E,direction:k,layoutOptions:L={},freqIsAllowed:q,isSingleSelect:I,actions:_,frequencyMax:O="",histogram:T=!1,keyboard:P,showGray:D=!0,showTick:A=!0,columnCount:M=1,rowCount:N=1,dataOffset:j,deducedFrequencyMode:z,focusListItems:F,listCount:$,sizes:W,translator:B,showSearch:U,isModal:H,contentFontStyle:G,styles:K,fillHeight:V}=h,{dense:J=!1,dataLayout:Z="singleColumn",layoutOrder:X}=L,{itemPadding:Q}=W;let Y,ee;const ne={max:null,currentIndex:null};if("number"==typeof l&&"number"==typeof u){"row"===X?(Y=l*M+u,ne.max=N,ne.currentIndex=l):(Y=u*N+l,ne.max=M,ne.currentIndex=u);const e=0;ee=te(te({},d),{},{height:V?"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 Y=s,ne.max=$,ne.currentIndex=s,ee=te({},d);Y+=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(El(te(te({},_),{},{focusListItems:F,keyboard:P,isModal:H,rowCount:N,columnCount:M,rowIndex:l,columnIndex:u,layoutOrder:X})),[_,null==P?void 0:P.innerTabStops,N,M,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:Y}),[S,Y]),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(()=>$s({column:x,histogram:T,cell:ae,showGray:D}),[null==ae?void 0:ae.qState,T,J]),ce=c(e=>{e.preventDefault()},[C]),ue=i(()=>ae&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:k,cell:ae,textAlign:E}),[k,ae,E]);if(!ae)return null;const de="grid"===Z&&"column"===X,he=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}(he,e)}const fe={alignItems:"center",display:"flex",fontSize:"8px"},me="rtl"===k,ge={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:me?8:C?0:void 0,paddingRight:C?0:me?8:0,justifyContent:ue,textAlign:ue},be=0===s,ye=se&&w,ve=!C&&se&&!w,Se=!C&&A,we=C||!A,xe=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=kl[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),h=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,h),u.join(". ").trim()}({translator:B,label:he,qState:ae.qState,currentIndex:ne.currentIndex,maxIndex:ne.max,showSearch:U}),Ce=!me&&"right"===ue||me&&"left"===ue;return t.createElement(Zs,{className:Ps.barContainer,checkboxes:C,style:ee,styles:K,isGridCol:de,isGridMode:"grid"===Z,dense:J,direction:k,sizes:W,frequencyMode:z,freqHitsValue:Ce,contentFontStyle:G,"data-testid":"listbox.item"},t.createElement(fl,{role:"row","aria-label":xe,"aria-selected":se,"aria-setsize":ne.max,"aria-rowindex":ne.currentIndex,ref:oe,container:!0,dataLayout:Z,cellPaddingRight:we,layoutOrder:X,itemPadding:Q,gap:0,className:Ws(["value",...le]),classes:{root:Ps.fieldRoot},onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onKeyDown:ie,onTouchStart:y,onTouchEnd:v,onContextMenu:ce,tabIndex:be&&P.innerTabStops?0:-1,"data-n":null==ae?void 0:ae.qElemNumber,direction:k,fillHeight:V},(null==ae?void 0:ae.qFrequency)&&t.createElement(dl,{qFrequency:null==ae?void 0:ae.qFrequency,histogram:T,checkboxes:C,isSelected:se,frequencyMax:O}),t.createElement(R,{item:!0,style:ge,className:Ws([Ps.cell,Ps.selectedCell]),title:"".concat(he)},pe?t.createElement(cl,{onChange:p,labels:pe,checkboxes:C,dense:J,showGray:D,qElemNumber:ae.qElemNumber,isSelected:se,cell:ae,isGridCol:de,isSingleSelect:I,valueTextAlign:ue,styles:K}):t.createElement(ul,{onChange:p,label:he,qElemNumber:ae.qElemNumber,isSelected:se,dense:J,cell:ae,isGridCol:de,showGray:D,isSingleSelect:I,checkboxes:C,valueTextAlign:ue,styles:K})),q&&t.createElement(hl,{cell:ae,checkboxes:C,dense:J,showGray:D}),Se&&t.createElement(R,{item:!0,className:Ps.icon},ye&&t.createElement(xs,{style:fe,size:"small"}),ve&&t.createElement(js,{style:fe,size:"small"}))))}var Rl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ql(e,t){return e===t||!(!Rl(e)||!Rl(t))}function Il(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!ql(e[n],t[n]))return!1;return!0}function _l(e,t){var n;void 0===t&&(t=Il);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var Ol="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Tl(e){cancelAnimationFrame(e.id)}function Pl(e,t){var n=Ol();var r={id:requestAnimationFrame(function o(){Ol()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var Dl=-1;function Al(e){if(void 0===e&&(e=!1),-1===Dl||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Dl=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Dl}var Ml=null;function Nl(e){if(void 0===e&&(e=!1),null===Ml||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?Ml="positive-descending":(t.scrollLeft=1,Ml=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Ml}return Ml}var jl=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function zl(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,h=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,b=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,Ja(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ja(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=_l(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=_l(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 f=n(r.props,t,r._instanceProps),m="rtl"===l;d[p]=o={position:"absolute",left:m?void 0:f,right:m?f:void 0,top:h(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=_l(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(Nl()){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&&Tl(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Pl(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Va(t,e),t.getDerivedStateFromProps=function(e,t){return Fl(e,t),y(e),null};var d=t.prototype;return d.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,h=i.rowCount,p=i.width,f=this.state,m=f.scrollLeft,g=f.scrollTop,b=Al();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,h-1)));var y=a(this.props,this._instanceProps),v=s(this.props,this._instanceProps)>p?b:0,S=y>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,v):g})},d.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Nl()){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&&Tl(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,h=e.itemKey,f=void 0===h?jl:h,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,y=e.style,v=e.useIsScrolling,S=e.width,w=this.state.isScrolling,x=this._getHorizontalRangeToRender(),C=x[0],E=x[1],k=this._getVerticalRangeToRender(),L=k[0],R=k[1],q=[];if(r>0&&b)for(var I=L;I<=R;I++)for(var _=C;_<=E;_++)q.push(p(t,{columnIndex:_,data:d,isScrolling:v?w:void 0,key:f({columnIndex:_,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(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:Tt({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},p(c||u||"div",{children:q,ref:l,style:{height:O,pointerEvents:w?"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],h=u[1],p=u[2],f=u[3];this._callOnItemsRendered(a,s,d,h,l,c,p,f)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,y=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,y,g,S,v)}},d._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,h=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var p=r(this.props,d,this._instanceProps),f=o(this.props,p,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,h),g=u&&"forward"!==c?1:Math.max(1,h);return[Math.max(0,p-m),Math.max(0,Math.min(t-1,f+g)),p,f]},d._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),h=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,h+g)),d,h]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Fl=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},$l=function(e,t){return e};function Wl(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,Ja(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ja(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=_l(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=_l(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),h=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,f="rtl"===a,m=p?d:0;u[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:p?0:d,height:p?"100%":h,width:p?h:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=_l(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(Nl()){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&&Tl(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Pl(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Va(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?Al():0:l.scrollHeight>l.clientHeight?Al():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(Nl()){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&&Tl(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,h=void 0===d?$l:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,y=e.useIsScrolling,v=e.width,S=this.state.isScrolling,w="horizontal"===o||"horizontal"===f,x=w?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],k=C[1],L=[];if(c>0)for(var R=E;R<=k;R++)L.push(p(t,{data:u,key:h(R,u),index:R,isScrolling:y?S:void 0,style:this._getItemStyle(R)}));var q=r(this.props,this._instanceProps);return p(m||g||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:Tt({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},p(s||l||"div",{children:L,ref:a,style:{height:w?"100%":q,pointerEvents:S?"none":void 0,width:w?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),h=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+h)),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},Ul=zl({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 h=Math.round(d+(u-d)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h;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 h=Math.round(d+(u-d)/2);return h<Math.ceil(s/2)?0:h>c+Math.floor(s/2)?c:h;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}}),Hl=Wl({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,h="horizontal"===a||"horizontal"===u?d:s,p=Math.max(0,l*c-h),f=Math.min(p,t*c),m=Math.max(0,t*c-h+c+i);switch("smart"===n&&(n=r>=m-h&&r<=f+h?"auto":"center"),n){case"start":return f;case"end":return m;case"center":var g=Math.round(m+(f-m)/2);return g<Math.ceil(h/2)?0:g>p+Math.floor(h/2)?p:g;default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const Gl="#BBB",Kl="#f1f1f1",Vl={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function Jl(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:s,dataOffset:l}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=((e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(t,c),d=c?r.column:r.row,h=(c?o:i)>=d,p=((e,t,n,r)=>e===t*n+r+n)(s,u,c?i:o,l),f=!!l&&((e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(t,c),m=h&&!p&&u>=d-1||f||a.state.show;a.set(m)}const{StyledFixedSizeList:Zl,StyledFixedSizeGrid:Xl}=function(){const e=e=>({scrollbarColor:"".concat(Gl," ").concat(Kl),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Kl},"&::-webkit-scrollbar-thumb":{backgroundColor:Gl,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:w(Hl,{shouldForwardProp:e=>"scrollDisabled"!==e})(t=>{let{scrollDisabled:n}=t;return{["&.".concat(Vl.styledScrollbars)]:e(n)}}),StyledFixedSizeGrid:w(Ul,{shouldForwardProp:e=>"scrollDisabled"!==e})(t=>{let{scrollDisabled:n}=t;return{["&.".concat(Vl.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)},Yl=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 ec(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function tc(e){let{isGridMode:t,dense:n}=e;let r=n?20:t?32:29;return t&&(r+=4),r}function nc(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:h,dense:p,dataLayout:f}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==l?void 0:l.content)||{},b="".concat(m," ").concat(g),y=Yl({text:ec(t),font:b}),v=Yl({text:ec(5),font:b}),S=Yl({text:ec(8),font:b}),w=a?v:0,x=s?20:0;let C=56+w+x;!s&&C>=80&&(C+=20);let E,k,L,R,q=y+18+w+x;!s&&q>=80&&(q+=20),q=Math.min(150,Math.max(q,C));const I=tc({isGridMode:"grid"===f,dense:p}),_=null!=r?r:8*I;if(u){let e=n;"row"===u?(E={overflowX:"hidden"},e+=8,({rowCount:R,columnWidth:L,columnCount:k}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,s=r-10;let l;const c=Math.min(n,Math.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:h,listCount:o,containerWidth:e,columnAutoWidth:q,itemMinWidth:C}))):(E={overflowY:"hidden"},({rowCount:R,columnWidth:L,columnCount:k}=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:I,listCount:o,listHeight:_,columnAutoWidth:q,containerWidth:e,itemMinWidth:C})))}k=("singleColumn"===f?1:k)||1,R=("singleColumn"===f?i:R)||o;const O=c.dense?838e3:577e3;R=Math.min(R,O);const T=Math.floor(3355e4/L);k=Math.min(k,T)||1;const P=R*k;return{columnCount:k,columnWidth:L,rowCount:R,overflowStyling:E,itemHeight:I,listHeight:_,listWidth:n,scrollBarWidth:10,count:i,listCount:Math.min(o,P),maxCount:{row:O,column:T},itemPadding:4,textWidth:y,freqMinWidth:v,freqMaxWidth:S}}function rc(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;const i=null!=t&&t.length&&o?(e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some(e=>e.qArea.qHeight<n),i=Math.max(...t.map(e=>e.qArea.qTop+e.qArea.qHeight));return o?i:r})({pages:t,minimumBatchSize:n,count:r}):r;return i||0}const[oc,ic]=ss({});function ac(e){const t="".concat(e.id),[n]=oc();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const sc=Ua(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 lc(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=s(os);return t.createElement(q,{title:i?a.get(r):""},t.createElement(sc,{width:n,dense:o,component:"div",variant:"body1",py:"12px"},a.get(r)))}var cc={},uc={};function dc(e){return _o("MuiSvgIcon",e)}Oo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const hc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pc=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${yr(t)}`,`fontSize${yr(n)}`]},dc,r)},fc=Ua("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${yr(n.color)}`],t[`fontSize${yr(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(h=(e.vars||e).palette)||null==(h=h[t.color])?void 0:h.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}}),mc=e.forwardRef(function(t,n){const r=fi({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:h="0 0 24 24"}=r,p=Pt(r,hc),f=e.isValidElement(o)&&"svg"===o.type,m=Tt({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:f}),g={};u||(g.viewBox=h);const b=pc(m);return Yn.jsxs(fc,Tt({as:s,className:qo(b.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n},g,p,f&&o.props,{ownerState:m,children:[f?o.props.children:o,d?Yn.jsx("title",{children:d}):null]}))});mc.muiName="SvgIcon";const gc={configure:e=>{Lo.configure(e)}};var bc,yc,vc=Object.freeze({__proto__:null,capitalize:yr,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 Yn.jsx(mc,Tt({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=mc.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:Ho,ownerWindow:function(e){return Ho(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:Go,unstable_ClassNameGenerator:gc,unstable_useEnhancedEffect:Bo,unstable_useId:Jo,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 Bo(()=>{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=>{Go(t,e)})},t)},useIsFocusVisible:function(){const t=e.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ti,!0),t.addEventListener("mousedown",ni,!0),t.addEventListener("pointerdown",ni,!0),t.addEventListener("touchstart",ni,!0),t.addEventListener("visibilitychange",ri,!0))},[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!oi(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(Qo=!0,Yo.start(100,()=>{Qo=!1}),n.current=!1,!0)},ref:t}}}),Sc=K(vc);function wc(){return bc||(bc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Sc}(uc)),uc}function xc(){if(yc)return cc;yc=1;var e=Ci();Object.defineProperty(cc,"__esModule",{value:!0}),cc.default=void 0;var t=e(wc()),n=Qn();return cc.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"),cc}var Cc=G(xc());const Ec=Ua(I)(e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}}),kc=Ua("div")(()=>({paddingLeft:"6px",flexGrow:1})),Lc=Ua("div")(e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}}),Rc=Ua(Cc)(()=>({fontSize:"14px"}));function qc(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(kc,null,t.createElement(lc,{text:n,dense:o,width:c,tooltip:u})),t.createElement(Lc,{dense:o},a&&t.createElement(_,{"aria-label":"close",onClick:()=>r()},t.createElement(Rc,null))))}function Ic(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>80,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const _c=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e,Oc=e=>{const t=_c(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},Tc=(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=Oc(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 Pc=["isLoadingData"],Dc=O("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Ac(e){var o,i;let{model:a,app:l,constraints:u,layout:d,selections:p,selectionState:f,direction:m,checkboxes:g,height:b,width:y,frequencyMode:v,update:S,fetchStart:w,postProcessPages:x,calculatePagesHeight:C=!1,keyboard:E={},showGray:k=!0,scrollState:L,keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:q={set:()=>{}},renderedCallback:I,onCtrlF:_,showSearch:O,isModal:T,styles:P}=e;const{translator:D}=s(os),[A,M]=n(!1),N=!(!d||!d.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:j=g,histogram:z}=null!=d?d:{},F=h(null),$=h({queue:[],validPages:!1,dataOffset:0}),W=h({pages:[]}),{frequencyMax:B,awaitingFrequencyMax:U}=Tc(l,d),H=function(e){let{local:t,loaderRef:r,model:o,fetchStart:i,scrollTimeout:a,postProcessPages:s,listData:l}=e;const[c,u]=n(!1),[d,h]=n([]);let[p]=n(0);const f=(e,n)=>{const c=t.current.dataOffset;t.current.queue.push({start:e+c,stop:n+c});const d=!!r.current&&r.current._listRef&&r.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),u(!0),new Promise(e=>{t.current.timeout=setTimeout(()=>{const n=t.current.queue.slice(-1)[0],r=o.getListObjectData("/qListObjectDef",[{qTop:n.start>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,h(r),u(!1),e()});i&&i(r)},d?a:0)})};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:d,isLoading:c}}({local:$,loaderRef:F,model:a,fetchStart:w,scrollTimeout:0,postProcessPages:x,listData:W}),{isLoadingData:G}=H,K=ne(H,Pc),{getStoreValue:V,setStoreValue:J}=ac(a),Z=c(K.loadMoreItems,[d]),[X,Q]=n({show:!1,dismissed:!1}),[ee,re]=n([]);null!=K&&K.pages&&f.update({setPages:re,pages:K.pages,isSingleSelect:N,layout:d});const oe=null==d?void 0:d.qListObject.qDimensionInfo.qCardinal;(null!=K&&K.pages.length&&!U||0===oe)&&(null==I||I());const ie=c(e=>{if(null==ee||!ee.length||!$.current.validPages)return!1;$.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}=Ms({selectionState:f,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)},he=()=>{if($.current.queue=[],$.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(d&&d.qSelectionInfo.qInSelections||e)return void(e&&R.reset());$.current.dataOffset=0,de(0)}};S&&S.call(null,he),r(()=>{L&&!A&&F.current&&(F.current._listRef.scrollToItem(L.initScrollPos),M(!0))},[F.current]),r(()=>{he()},[d,$.current.dataOffset]);let pe=100;const fe="grid"!==le.dataLayout,me=null==d||null===(o=d.qListObject.qSize)||void 0===o?void 0:o.qcy,ge=rc({pages:ee,minimumBatchSize:pe,count:me,calculatePagesHeight:C});let be=Ic({itemWidth:y,layout:d,frequencyMode:v});const ye=function(e){return e.some(e=>{let{qMatrix:t}=e;return t.some(e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))})})?"P":"-"}(ee),ve=nc({layout:d,width:y,height:b,listCount:ge,count:me,freqIsAllowed:be,checkboxes:j,styles:P});ve.columnWidth&&(be=Ic({itemWidth:ve.columnWidth,layout:d,frequencyMode:v}));const{listCount:Se}=ve;J("listCount",Se);const we=V("inputText"),xe=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=s(os),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:we,listCount:Se}),Ce=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,s=!1,l=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":l=0,t=0,s=!0;break;case"overflowEnd":l=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ce,sizes:ve,layout:d,offset:$.current.dataOffset});$.current.dataOffset=n,r&&f.triggerStateChanged(),de(t)};r(()=>{const e=R.state;e.up?de(q.state.start-e.up):e.down?de(q.state.stop+e.down):e.scrollPosition&&Ce(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()},[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:Ee}=(null==d?void 0:d.qListObject.qDimensionInfo)||{},[ke,Le]=n({first:!1,last:!1}),{List:Re,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:h,select:p,selectAll:f,onCtrlF:m,textAlign:g,selections:b,keyboard:y,showGray:v,scrollState:S,direction:w,sizes:x,listCount:C,overflowDisclaimer:E,setScrollPosition:k,focusListItems:L,setCurrentScrollIndex:R,constraints:q,frequencyMax:I,freqIsAllowed:_,translator:O,showSearch:T,isModal:P,styles:D}=e;const{layoutOptions:A={}}=n||{},{columnWidth:M,listHeight:N,itemHeight:j,rowCount:z,columnCount:F}=x||{},$=("grid"===A.dataLayout?M:r)>80,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:Vl.styledScrollbars},B=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,U=N<=j,H=te(te({isLocked:B,column:!a,pages:s},B||l.selectDisabled()?{}:c),{},{checkboxes:o,layoutOptions:A,deducedFrequencyMode:u,freqIsAllowed:_,isSingleSelect:h,textAlign:g,sizes:x,actions:{select:p,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:k,selectAll:f,onCtrlF:m},frequencyMax:I,histogram:d,keyboard:y,showGray:v,showTick:$,dataOffset:i.current.dataOffset,focusListItems:L,direction:w,translator:O,showSearch:T,isModal:P,styles:D,fillHeight:U});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(Zl,Y({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==q?void 0:q.active,height:N,width:r,itemCount:C,itemData:te(te({},H),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var t;R({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),Jl({renderProps:e,layoutOptions:A,maxCount:x.maxCount,columnCount:F,rowCount:z,overflowDisclaimer:E,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}),Ll)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=x,{layoutOrder:c}=A||{},u=Math.min(N,z*j+l);return i.current.listRef=a,t.createElement(Xl,Y({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==q?void 0:q.active,height:u,width:r,columnCount:F,columnWidth:M,rowCount:z,rowHeight:j,style:te({},s),itemData:te(te({},H),{},{column:void 0,columnCount:F,rowCount:z}),onItemsRendered:e=>{var t;const r="row"===c;R({start:r?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:r?e.visibleRowStopIndex:e.visibleColumnStopIndex});const a=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:s,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,h,p,f;return n&&n.setScrollPos(u),"column"===r?(d=l*o,h=a,p=c*o,f=s):(d=l,h=a*i,p=c,f=s*i),{visibleStartIndex:d+h,visibleStopIndex:p+f}}({renderProps:e,scrollState:S,layoutOrder:c,rowCount:z,columnCount:F});Jl({renderProps:e,layoutOptions:A,maxCount:x.maxCount,columnCount:F,rowCount:z,overflowDisclaimer:E,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}),Ll)}}}({direction:m,layout:d,width:y,checkboxes:j,deducedFrequencyMode:ye,histogram:z,keyboard:E,showGray:k,interactionEvents:ae,select:se,selectAll:()=>{f.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:_,textAlign:Ee,isVertical:fe,pages:ee,selectionState:f,isSingleSelect:N,selections:p,scrollState:L,local:$,sizes:ve,listCount:Se,overflowDisclaimer:{state:X,set:e=>Q(t=>te(te({},t),{},{show:e}))},setScrollPosition:Ce,focusListItems:{first:ke.first,setFirst:e=>Le(t=>te(te({},t),{},{first:e})),last:ke.last,setLast:e=>Le(t=>te(te({},t),{},{last:e}))},setCurrentScrollIndex:q.set,constraints:u,frequencyMax:B,freqIsAllowed:be,translator:D,showSearch:O,isModal:T,styles:P}),{columnWidth:Ie,listHeight:_e,itemHeight:Oe}=ve||{};return fe||(pe=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:y,columnWidth:Ie,listHeight:_e,itemHeight:Oe})),t.createElement(Dc,null,t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},xe),!Se&&oe>0&&t.createElement(lc,{width:y,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Rs,{isItemLoaded:ie,itemCount:Se||1,loadMoreItems:Z.with({minimumBatchSize:pe}),threshold:0,minimumBatchSize:pe,ref:F,role:"grid"},fe?Re:qe),X.show&&!X.dismissed&&t.createElement(qc,{text:"Listbox.ItemsOverflow",dismiss:()=>Q(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"}}]}),Nc=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"}}]}),jc=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"}}]}),zc=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 Fc=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:jc,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:Nc,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:zc,enabled:()=>["qAlternative","qExcluded"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectExcluded(s)}}].filter(Boolean)};const $c=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 Wc(e){const t=_a(),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 Bc={className:"njs-cell-action"},Uc=t.forwardRef((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=_a(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=Wc(o);if(s)return null;const d=Number.parseInt(a.spacing(.5),10),h=o.keyboardAction||o.action,p=h?e=>["Enter"].includes(e.key)&&h():null,f=h?e=>[" ","Spacebar"].includes(e.key)&&h():null,m="actions-toolbar-".concat(o.key);return t.createElement(_,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:p,onKeyUp:f,disabled:l,style:c,className:[Bc.className,m].join(" "),size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList","data-testid":m},u&&Ss(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))}),Hc=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 Gc=e=>Ss(Hc(e));const Kc=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 Vc=e=>Ss(Kc(e));const Jc="njs-action-toolbar-more",Zc={icon:"".concat("More","-icon")},Xc=Ua(T)(e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Zc.icon," *")]:{color:t.palette.text.primary}}});function Qc(e){let{item:n,autoFocus:r,onActionClick:o=()=>{}}=e;const{hidden:i,disabled:a,hasSvgIconShape:s}=Wc(n);return i?null:t.createElement(D,{autoFocus:r,title:n.label,onClick:()=>{n.action(),o()},disabled:a,tabindex:"0"},s&&t.createElement(A,{className:Zc.icon},Ss(n.getSvgIconShape())),t.createElement(E,{noWrap:!0},n.label))}const Yc=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(Xc,Y({},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:Jc},paper:{style:te({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),t.createElement(P,{id:"moreMenuList"},r.map((e,n)=>t.createElement(Qc,{key:n,item:e,autoFocus:n===d,onActionClick:l}))))});function eu(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 ml.ARROW_LEFT:case ml.ARROW_DOWN:case ml.ARROW_RIGHT:case ml.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(a);let t=[ml.ARROW_LEFT,ml.ARROW_DOWN].includes(l);t=i?!t:t,(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()})(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case ml.SPACE:e.preventDefault();break;case ml.TAB:if(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 ml.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}const tu="ActionsToolbar",nu={item:"".concat(tu,"-item"),itemSpacing:"".concat(tu,"-itemSpacing")},ru=Ua(T)(e=>{let{theme:t}=e;return{["& .".concat(nu.itemSpacing)]:{padding:t.spacing(0,.25)}}}),ou="njs-action-toolbar-popover",iu=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(R,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:r},i.map((e,r)=>t.createElement(R,{item:!0,key:e.key,className:"".concat(nu.itemSpacing," ").concat(nu.item)},t.createElement(Uc,{ariaExpanded:o,key:e.key,item:e,ref:0===r?n:null,addAnchor:a})))):null}),au={pointerEvents:"none"};function su(e){var o,a;let{show:l=!0,actions:c=[],maxItems:u=3,selections:d={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:p,more:f={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:m={show:!1,anchorEl:null},focusHandler:g=null,actionsRefMock:b=null,isRtl:y,autoConfirm:v=!1,layout:S}=e;const w=function(e){let{api:t,layout:n,onConfirm:r=()=>{},onCancel:o=()=>{},onKeyDeactivate:i=()=>{}}=e;const{translator:a}=s(os);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:Hc},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:Ns}]}(te(te({},d),{},{layout:S})),{translator:x,keyboardNavigation:C}=s(os),[E,k]=n(!1),L={vertical:12,horizontal:y?0:(null!==(o=null===(a=m.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},q={vertical:"bottom",horizontal:y?-7:"right"},I=h(),_=h(),O=_a(),T=i(()=>({margin:O.spacing(.5,0)})),P=e=>{const t=I.current||b;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},D=i(()=>eu({keyboardNavigation:C,focusHandler:g,getEnabledButton:P,selections:d,isRtl:y}),[C,g,P,d,y]);if(r(()=>()=>{k(!1)},[m.show,l,d.show]),r(()=>{if(!g)return;g.on("focus_toolbar_first",()=>{const e=P(!1);null==e||e.focus()}),g.on("focus_toolbar_last",()=>{const e=P(!0);null==e||e.focus()})},[]),v)return;let A=f.enabled,N=f.actions;const j=f.alignTo||_,z=c.filter(e=>!e.hidden);if(z.length>u){const e=z.splice(-(z.length-u)-1);A=!0,N=[...e,...f.actions]}if(!d.show&&0===z.length&&!A)return null;const F={key:"more",label:x.get("Menu.More"),getSvgIconShape:$c,hidden:!1,active:E,enabled:()=>A,action:()=>k(!E)},$=z.length>0,W=N.length>0,B=$&&d.show||W&&d.show,U=t.createElement(R,{ref:I,onKeyDown:D,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:y?"row-reverse":"row"}},(null==p?void 0:p.length)&&t.createElement(iu,{className:"actions-toolbar-extra-actions",actions:p,isRtl:y}),$&&t.createElement(iu,{actions:z}),W&&t.createElement(iu,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:_,ariaExpanded:E,actions:[F],addAnchor:!0}),B&&t.createElement(R,{item:!0,className:nu.itemSpacing,style:T},t.createElement(M,{orientation:"vertical"})),d.show&&t.createElement(iu,{className:"actions-toolbar-default-actions",actions:w,isRtl:y}),E&&t.createElement(Yc,{show:E,actions:N,alignTo:j,popoverProps:f.popoverProps,popoverPaperStyle:f.popoverPaperStyle,onCloseOrActionClick:()=>{k(!1)},disablePortal:f.disablePortal}));return m.show?t.createElement(ru,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:m.show,anchorEl:m.anchorEl,anchorOrigin:L,transformOrigin:q,hideBackdrop:!0,style:au,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:ou,style:{pointerEvents:"auto",padding:O.spacing(.5,.25)}}}},U):l&&U}var lu=e=>Ss((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 cu="/qListObjectDef",uu=e=>null==e?void 0:e.substring(0,64e3),du=Ua(N,{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)}),hu=Ua(_)(()=>({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 pu=o(function(e,o){let{popoverOpen:i,selections:l,selectionState:c,model:u,keyboard:d,dense:p=!1,visible:f=!0,autoFocus:m=!0,beginSelectionOnFocus:g=!0,wildCardSearch:b=!1,searchEnabled:y,direction:v,hide:S,styles:w}=e;const{translator:x}=s(os),[C,E]=n(""),[k,L]=n(!1),R=h(),q=h(),I=x.get("Listbox.Clear.Search"),{getStoreValue:_,setStoreValue:O}=ac(u),T="rtl"===v,P=async()=>{try{await u.abortListObjectSearch(cu)}finally{E("")}};r(()=>f?()=>P():()=>{},[f]),r(()=>(l.on("deactivated",P),()=>{l.removeListener&&l.removeListener("deactivated",P)}),[]),r(()=>{if(k&&R.current){const e=C.length-1;R.current.setSelectionRange(e,e),L(!1)}},[k,R.current]),r(()=>{O("inputText",C)},[C]);const D=async()=>{let e;const t=uu(C),n=await u.searchListObjectFor(cu,t);return c.selectDisabled()?n:(n&&t.length&&_("listCount")>0&&(e=u.acceptListObjectSearch(cu,!0),l.selectionsMade=!0,c.clearItemStates(!1),E("")),e)},A=()=>{var e;null===(e=R.current)||void 0===e||e.focus()},M=()=>{P(),A()};return a(o,()=>({focus(){A()}})),f&&!1!==y?t.createElement(du,{styles:w,dense:p,isRtl:T,startAdornment:t.createElement(j,{position:"start",sx:{marginLeft:p?"8px":"".concat(9,"px")}},t.createElement(lu,{size:p?"small":"normal"})),endAdornment:t.createElement(j,{position:"end",sx:{marginLeft:0}},""!==C&&t.createElement(hu,{tabIndex:0,ref:q,title:I,"aria-label":I,onClick:M,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":M();break;case"Tab":e.shiftKey?A():wl(t);break;default:return}e.preventDefault(),e.stopPropagation()}},t.createElement(Gc,{size:p?"small":"normal"}))),className:"search",inputRef:R,size:"small",fullWidth:!0,placeholder:x.get("Listbox.Search"),value:C,onFocus:()=>{b&&(E("**"),L(!0)),g&&!c.selectDisabled()&&!l.isModal()&&l.begin("/qListObjectDef")},onChange:async e=>{const t=uu(e.target.value);return E(t),t.length?u.searchListObjectFor(cu,t):P()},onKeyDown:async e=>{const{currentTarget:t}=e,n=t.closest(".listbox-container");switch(e.key){case"Enter":D();break;case"Escape":if(wl(n),l.cancel(),i)return;break;case"Tab":e.shiftKey?xl(n)||d.focusSelection():q.current?q.current.focus():wl(n);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;S&&(S(),wl(n));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:m,inputProps:{tabIndex:d.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":x.get("Listbox.Search.ScreenReaderInstructions")}}):null});function fu(e){if(!e.session)return[];const{selectionStore:t}=s(os),[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 mu(e){return Object.keys(de.prototype).forEach(t=>{e[t]=de.prototype[t]}),de.init(e),e}const gu=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 mu(s),s},bu=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 yu(e,t,o,i){const a=Array.isArray(o)?o:[o],[l]=fu(e),[c]=gs(t),{appModalStore:u}=s(os).selectionStore,d=u.get(e.id),[h,p]=n();return r(()=>{l&&t&&!h&&p(gu({appSelections:l,appModal:d,model:t}))},[l,t]),r(()=>{if(!h)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=bu({elements:a,objectSelections:h,options:i});return h.addListener("activated",e),h.addListener("deactivated",t),()=>{h.isActive()&&h.confirm(),h.removeListener("activated",e),h.removeListener("deactivated",t)}},[h]),r(()=>{h&&h.setLayout(c)},[h,c]),[h]}function vu(){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=_s(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 Su=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 wu(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return Su(t,"qSelected",0)+Su(t,"qSelectedExcluded",0)+Su(t,"qLocked",0)+Su(t,"qLockedExcluded",0)>0}function xu(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 Cu(e){if("object"==typeof e&&xu(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 Eu={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 ku(...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(xu(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 h=a-.5*l;n=d[0]+h,r=d[1]+h,o=d[2]+h,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 h=a-.5*l;n=d[0]+h,r=d[1]+h,o=d[2]+h,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 h=a-l;n=d[0]+h,r=d[1]+h,o=d[2]+h,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 Eu}(e)){const t=Eu[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 Lu(e){let t,n,r;if(xu(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?Cu(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 Ru(e){let t,n,r=0;const o="string"==typeof e?ku(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 qu(e){let t,n,r=0;const o="string"==typeof e?ku(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 Iu(e){if(xu(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?Cu(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function _u(e,t){return xu(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:_u(ku(e))}function Ou(e){return xu(e)?1===e.a?Iu(e):_u(e):Ou(ku(e))}const Tu=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Pu(e){return.2126*Tu(e.r)+.7152*Tu(e.g)+.0722*Tu(e.b)}function Du(...e){const t=ku(...e);return t.invalid||Pu(t)<.4}function Au(...e){const t=ku(...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=Ru(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=ku(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:()=>Du(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=Iu(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=_u(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Ou(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=Lu(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?ku(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}=Ru(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}=qu(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=qu(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)=>Au(o(18*e)),getDarkenedColor:(e=1)=>Au(o(18*-e))}}function Mu(e,t){if(!e||!t)return;const n=Pu(e),r=Pu(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Nu(e,t){const n=Au("#FFFFFF"),r=Au(e),o=Au(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=Mu(n,r),a=Mu(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}function ju(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zu,Fu,$u,Wu="top",Bu="top-right",Uu="right",Hu="bottom-right",Gu="bottom",Ku="bottom-left",Vu="left",Ju="top-left";ju(ju(ju(ju(ju(ju(ju(ju(ju(ju(zu={},"equal-equal",[Wu,Gu]),"equal-higher",[Gu,Hu]),"equal-lower",[Wu,Bu]),"equal-void",[Wu,Gu]),"higher-equal",[Vu,Ku,Wu,Bu]),"higher-higher-acute",[Gu,Ku,Vu,Bu]),"higher-higher-obtuse",[Gu,Wu]),"higher-lower-negative",[Wu,Bu,Uu]),"higher-lower-positive",[Gu,Ku,Vu]),"higher-void",[Wu]),ju(ju(ju(ju(ju(ju(ju(ju(ju(ju(zu,"lower-equal",[Wu]),"lower-higher-negative",[Wu,Ju]),"lower-higher-positive",[Hu]),"lower-lower-acute",[Wu,Ju,Vu,Bu,Uu]),"lower-lower-obtuse",[Wu,Gu]),"lower-void",[Wu]),"void-equal",[Wu]),"void-higher",[Wu,Gu]),"void-lower",[Wu,Gu,Vu]),"void-void",[Wu]),ju(zu,"unclassified",[Wu,Gu,Uu,Vu,Bu,Hu,Ku,Ju]);var Zu=function(){if($u)return Fu;$u=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 Fu=function e(){var t,n,r,l,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Fu}();function Xu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Qu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Yu(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Zu);var ed=1/.7,td="\\s*([+-]?\\d+)\\s*",nd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",od=/^#([0-9a-f]{3,8})$/,id=new RegExp(`^rgb\\(${td},${td},${td}\\)$`),ad=new RegExp(`^rgb\\(${rd},${rd},${rd}\\)$`),sd=new RegExp(`^rgba\\(${td},${td},${td},${nd}\\)$`),ld=new RegExp(`^rgba\\(${rd},${rd},${rd},${nd}\\)$`),cd=new RegExp(`^hsl\\(${nd},${rd},${rd}\\)$`),ud=new RegExp(`^hsla\\(${nd},${rd},${rd},${nd}\\)$`),dd={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 hd(){return this.rgb().formatHex()}function pd(){return this.rgb().formatRgb()}function fd(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=od.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?md(t):3===n?new vd(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gd(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gd(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=id.exec(e))?new vd(t[1],t[2],t[3],1):(t=ad.exec(e))?new vd(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sd.exec(e))?gd(t[1],t[2],t[3],t[4]):(t=ld.exec(e))?gd(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=cd.exec(e))?kd(t[1],t[2]/100,t[3]/100,1):(t=ud.exec(e))?kd(t[1],t[2]/100,t[3]/100,t[4]):dd.hasOwnProperty(e)?md(dd[e]):"transparent"===e?new vd(NaN,NaN,NaN,0):null}function md(e){return new vd(e>>16&255,e>>8&255,255&e,1)}function gd(e,t,n,r){return r<=0&&(e=t=n=NaN),new vd(e,t,n,r)}function bd(e){return e instanceof Yu||(e=fd(e)),e?new vd((e=e.rgb()).r,e.g,e.b,e.opacity):new vd}function yd(e,t,n,r){return 1===arguments.length?bd(e):new vd(e,t,n,null==r?1:r)}function vd(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Sd(){return`#${Ed(this.r)}${Ed(this.g)}${Ed(this.b)}`}function wd(){const e=xd(this.opacity);return`${1===e?"rgb(":"rgba("}${Cd(this.r)}, ${Cd(this.g)}, ${Cd(this.b)}${1===e?")":`, ${e})`}`}function xd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Cd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ed(e){return((e=Cd(e))<16?"0":"")+e.toString(16)}function kd(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rd(e,t,n,r)}function Ld(e){if(e instanceof Rd)return new Rd(e.h,e.s,e.l,e.opacity);if(e instanceof Yu||(e=fd(e)),!e)return new Rd;if(e instanceof Rd)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 Rd(a,s,l,e.opacity)}function Rd(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qd(e){return(e=(e||0)%360)<0?e+360:e}function Id(e){return Math.max(0,Math.min(1,e||0))}function _d(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Xu(Yu,fd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:hd,formatHex:hd,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ld(this).formatHsl()},formatRgb:pd,toString:pd}),Xu(vd,yd,Qu(Yu,{brighter(e){return e=null==e?ed:Math.pow(ed,e),new vd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new vd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vd(Cd(this.r),Cd(this.g),Cd(this.b),xd(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:Sd,formatHex:Sd,formatHex8:function(){return`#${Ed(this.r)}${Ed(this.g)}${Ed(this.b)}${Ed(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wd,toString:wd})),Xu(Rd,function(e,t,n,r){return 1===arguments.length?Ld(e):new Rd(e,t,n,null==r?1:r)},Qu(Yu,{brighter(e){return e=null==e?ed:Math.pow(ed,e),new Rd(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Rd(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 vd(_d(e>=240?e-240:e+120,o,r),_d(e,o,r),_d(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Rd(qd(this.h),Id(this.s),Id(this.l),xd(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=xd(this.opacity);return`${1===e?"hsl(":"hsla("}${qd(this.h)}, ${100*Id(this.s)}%, ${100*Id(this.l)}%${1===e?")":`, ${e})`}`}}));const Od=Math.PI/180,Td=180/Math.PI,Pd=4/29,Dd=6/29,Ad=3*Dd*Dd;function Md(e){if(e instanceof Nd)return new Nd(e.l,e.a,e.b,e.opacity);if(e instanceof Wd)return Bd(e);e instanceof vd||(e=bd(e));var t,n,r=$d(e.r),o=$d(e.g),i=$d(e.b),a=jd((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=jd((.4360747*r+.3850649*o+.1430804*i)/.96422),n=jd((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Nd(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Nd(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function jd(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ad+Pd}function zd(e){return e>Dd?e*e*e:Ad*(e-Pd)}function Fd(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $d(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Wd(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Bd(e){if(isNaN(e.h))return new Nd(e.l,0,0,e.opacity);var t=e.h*Od;return new Nd(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Xu(Nd,function(e,t,n,r){return 1===arguments.length?Md(e):new Nd(e,t,n,null==r?1:r)},Qu(Yu,{brighter(e){return new Nd(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Nd(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 vd(Fd(3.1338561*(t=.96422*zd(t))-1.6168667*(e=1*zd(e))-.4906146*(n=.82521*zd(n))),Fd(-.9787684*t+1.9161415*e+.033454*n),Fd(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Xu(Wd,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Wd)return new Wd(e.h,e.c,e.l,e.opacity);if(e instanceof Nd||(e=Md(e)),0===e.a&&0===e.b)return new Wd(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Td;return new Wd(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Wd(e,t,n,null==r?1:r)},Qu(Yu,{brighter(e){return new Wd(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Wd(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Bd(this).rgb()}}));var Ud=e=>()=>e;function Hd(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ud(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Hd: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):Ud(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=yd(e)).r,(t=yd(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Hd(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 Gd,Kd="center",Vd="bottom";function Jd(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 Zd(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Qd)):void 0===t&&(t=Xd);for(var n,r,o,i,a,s=new th(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 th(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(eh)}function Xd(e){return e.children}function Qd(e){return Array.isArray(e)?e[1]:null}function Yd(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function eh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function th(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Kd,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:Kd,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:Kd,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:Kd},{key:"DataRangeIncludingZero",alignment:Vd},{key:"LimitedData",alignment:Vd},{key:"NegativeOrZeroValues",alignment:Vd}].reduce(function(e,t){return e[t.key]=t,e},{}),th.prototype=Zd.prototype={constructor:th,count:function(){return this.eachAfter(Jd)},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 Zd(this).eachBefore(Yd)},[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)}},Gd=function(e){
|
|
14
|
+
*/const ir=[];function ar(e){return ir[0]=e,function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";$t=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Ht(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Ht(n,t,e[a]),r&&(o+=i[a]);Gt.lastIndex=0;for(var s,l="";null!==(s=Gt.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:$t}}(ir)}var sr=Object.freeze({__proto__:null,GlobalStyles:or,StyledEngineProvider:rr,ThemeContext:y,css:v,default:function(e,t){return w(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:ar,keyframes:S});function lr(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 cr(t){if(e.isValidElement(t)||!lr(t))return t;const n={};return Object.keys(t).forEach((e=>{n[e]=cr(t[e])})),n}function ur(t,n,r={clone:!0}){const o=r.clone?Dt({},t):t;return lr(t)&&lr(n)&&Object.keys(n).forEach((i=>{e.isValidElement(n[i])?o[i]=n[i]:lr(n[i])&&Object.prototype.hasOwnProperty.call(t,i)&&lr(t[i])?o[i]=ur(t[i],n[i],r):r.clone?o[i]=lr(n[i])?cr(n[i]):n[i]:o[i]=n[i]})),o}var dr=Object.freeze({__proto__:null,default:ur,isPlainObject:lr});const hr=["values","unit","step"],pr=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 fr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=At(e,hr),i=pr(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 mr={borderRadius:4};function gr(e,t){return t?ur(e,t,{clone:!1}):e}const br={xs:0,sm:600,md:900,lg:1200,xl:1536},yr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${br[e]}px)`};function vr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||yr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||yr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||br).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,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function wr(e){if("string"!=typeof e)throw new Error(Ot(7));return e.charAt(0).toUpperCase()+e.slice(1)}var xr=Object.freeze({__proto__:null,default:wr});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 Er(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 kr(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 vr(e,i,(e=>{let r=Er(a,o,e);return e===r&&"string"==typeof e&&(r=Er(a,o,`${t}${"default"===e?"":wr(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Lr={m:"margin",p:"padding"},Rr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ir=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qr[e])return[e];e=qr[e]}const[t,n]=e.split(""),r=Lr[t],o=Rr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),_r=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Or=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Tr(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 Pr(e){return Tr(e,"spacing",8)}function Dr(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 Ar(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Dr(t,n),e)),{})}(Ir(n),r);return vr(e,e[n],o)}function Mr(e,t){const n=Pr(e.theme);return Object.keys(e).map((r=>Ar(e,t,r,n))).reduce(gr,{})}function Nr(e){return Mr(e,_r)}function jr(e){return Mr(e,Or)}function zr(e=8){if(e.mui)return e;const t=Pr({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 Fr(...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]?gr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Wr(e){return"number"!=typeof e?e:`${e}px solid`}function Br(e,t){return kr({prop:e,themeKey:"borders",transform:t})}Nr.propTypes={},Nr.filterProps=_r,jr.propTypes={},jr.filterProps=Or;const Ur=Br("border",Wr),Hr=Br("borderTop",Wr),$r=Br("borderRight",Wr),Gr=Br("borderBottom",Wr),Kr=Br("borderLeft",Wr),Vr=Br("borderColor"),Jr=Br("borderTopColor"),Zr=Br("borderRightColor"),Xr=Br("borderBottomColor"),Qr=Br("borderLeftColor"),Yr=Br("outline",Wr),eo=Br("outlineColor"),to=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Tr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Dr(t,e)});return vr(e,e.borderRadius,n)}return null};to.propTypes={},to.filterProps=["borderRadius"],Fr(Ur,Hr,$r,Gr,Kr,Vr,Jr,Zr,Xr,Qr,to,Yr,eo);const no=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Tr(e.theme,"spacing",8),n=e=>({gap:Dr(t,e)});return vr(e,e.gap,n)}return null};no.propTypes={},no.filterProps=["gap"];const ro=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Tr(e.theme,"spacing",8),n=e=>({columnGap:Dr(t,e)});return vr(e,e.columnGap,n)}return null};ro.propTypes={},ro.filterProps=["columnGap"];const oo=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Tr(e.theme,"spacing",8),n=e=>({rowGap:Dr(t,e)});return vr(e,e.rowGap,n)}return null};oo.propTypes={},oo.filterProps=["rowGap"];function io(e,t){return"grey"===t?t:e}Fr(no,ro,oo,kr({prop:"gridColumn"}),kr({prop:"gridRow"}),kr({prop:"gridAutoFlow"}),kr({prop:"gridAutoColumns"}),kr({prop:"gridAutoRows"}),kr({prop:"gridTemplateColumns"}),kr({prop:"gridTemplateRows"}),kr({prop:"gridTemplateAreas"}),kr({prop:"gridArea"}));function ao(e){return e<=1&&0!==e?100*e+"%":e}Fr(kr({prop:"color",themeKey:"palette",transform:io}),kr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:io}),kr({prop:"backgroundColor",themeKey:"palette",transform:io}));const so=kr({prop:"width",transform:ao}),lo=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])||br[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:ao(t)}};return vr(e,e.maxWidth,t)}return null};lo.filterProps=["maxWidth"];const co=kr({prop:"minWidth",transform:ao}),uo=kr({prop:"height",transform:ao}),ho=kr({prop:"maxHeight",transform:ao}),po=kr({prop:"minHeight",transform:ao});kr({prop:"size",cssProperty:"width",transform:ao}),kr({prop:"size",cssProperty:"height",transform:ao});Fr(so,lo,co,uo,ho,po,kr({prop:"boxSizing"}));const fo={border:{themeKey:"borders",transform:Wr},borderTop:{themeKey:"borders",transform:Wr},borderRight:{themeKey:"borders",transform:Wr},borderBottom:{themeKey:"borders",transform:Wr},borderLeft:{themeKey:"borders",transform:Wr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Wr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:to},color:{themeKey:"palette",transform:io},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:io},backgroundColor:{themeKey:"palette",transform:io},p:{style:jr},pt:{style:jr},pr:{style:jr},pb:{style:jr},pl:{style:jr},px:{style:jr},py:{style:jr},padding:{style:jr},paddingTop:{style:jr},paddingRight:{style:jr},paddingBottom:{style:jr},paddingLeft:{style:jr},paddingX:{style:jr},paddingY:{style:jr},paddingInline:{style:jr},paddingInlineStart:{style:jr},paddingInlineEnd:{style:jr},paddingBlock:{style:jr},paddingBlockStart:{style:jr},paddingBlockEnd:{style:jr},m:{style:Nr},mt:{style:Nr},mr:{style:Nr},mb:{style:Nr},ml:{style:Nr},mx:{style:Nr},my:{style:Nr},margin:{style:Nr},marginTop:{style:Nr},marginRight:{style:Nr},marginBottom:{style:Nr},marginLeft:{style:Nr},marginX:{style:Nr},marginY:{style:Nr},marginInline:{style:Nr},marginInlineStart:{style:Nr},marginInlineEnd:{style:Nr},marginBlock:{style:Nr},marginBlockStart:{style:Nr},marginBlockEnd:{style:Nr},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:no},rowGap:{style:oo},columnGap:{style:ro},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ao},maxWidth:{style:lo},minWidth:{transform:ao},height:{transform:ao},maxHeight:{transform:ao},minHeight:{transform:ao},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function mo(){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 vr(o,t,(t=>{let n=Er(u,l,t);return t===n&&"string"==typeof t&&(n=Er(u,l,`${e}${"default"===t?"":wr(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:fo;function l(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),l=Object.keys(o);let c=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=gr(c,e(n,o,i,s));else{const e=vr({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)?c=gr(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=gr(c,e(n,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":Sr(l,c)}:Sr(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const go=mo();function bo(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:{}}go.filterProps=["sx"];const yo=["breakpoints","palette","spacing","shape"];function vo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=At(e,yo),s=fr(n),l=zr(o);let c=ur({breakpoints:s,direction:"ltr",components:{},palette:Dt({mode:"light"},r),spacing:l,shape:Dt({},mr,i)},a);return c.applyStyles=bo,c=t.reduce(((e,t)=>ur(e,t)),c),c.unstable_sxConfig=Dt({},fo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return go({sx:e,theme:this})},c}var So=Object.freeze({__proto__:null,default:vo,private_createBreakpoints:fr,unstable_applyStyles:bo});function wo(t=null){const n=e.useContext(y);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const xo=vo();function Co(e=xo){return wo(e)}function Eo(e){const t=ar(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ko({styles:e,themeId:t,defaultTheme:n={}}){const r=Co(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>Eo("function"==typeof e?e(o):e))):Eo(i)),tr.jsx(or,{styles:i})}const Lo=["sx"];var Ro=Object.freeze({__proto__:null,default:go,extendSxProp:function(e){const{sx:t}=e,n=At(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:fo;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 lr(n)?Dt({},r,n):r}:Dt({},r,t),Dt({},o,{sx:i})},unstable_createStyleFunctionSx:mo,unstable_defaultSxConfig:fo});const qo=e=>e,Io=(()=>{let e=qo;return{configure(t){e=t},generate:t=>e(t),reset(){e=qo}}})();function _o(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=_o(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Oo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_o(e))&&(r&&(r+=" "),r+=t);return r}const To={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 Po(e,t,n="Mui"){const r=To[t];return r?`${n}-${r}`:`${Io.generate(e)}-${t}`}function Do(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Po(e,t,n)})),r}var Ao,Mo,No={exports:{}},jo={};var zo=(Mo||(Mo=1,No.exports=function(){if(Ao)return jo;Ao=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"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case p:case h:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),jo.ContextConsumer=s,jo.ContextProvider=a,jo.Element=t,jo.ForwardRef=c,jo.Fragment=r,jo.Lazy=p,jo.Memo=h,jo.Portal=n,jo.Profiler=i,jo.StrictMode=o,jo.Suspense=u,jo.SuspenseList=d,jo.isAsyncMode=function(){return!1},jo.isConcurrentMode=function(){return!1},jo.isContextConsumer=function(e){return m(e)===s},jo.isContextProvider=function(e){return m(e)===a},jo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},jo.isForwardRef=function(e){return m(e)===c},jo.isFragment=function(e){return m(e)===r},jo.isLazy=function(e){return m(e)===p},jo.isMemo=function(e){return m(e)===h},jo.isPortal=function(e){return m(e)===n},jo.isProfiler=function(e){return m(e)===i},jo.isStrictMode=function(e){return m(e)===o},jo.isSuspense=function(e){return m(e)===u},jo.isSuspenseList=function(e){return m(e)===d},jo.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===h||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},jo.typeOf=m,jo}()),No.exports);const Fo=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Wo(e){const t=`${e}`.match(Fo);return t&&t[1]||""}function Bo(e,t=""){return e.displayName||e.name||Wo(e)||t}function Uo(e,t,n){const r=Bo(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ho=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Bo(e,"Component");if("object"==typeof e)switch(e.$$typeof){case zo.ForwardRef:return Uo(e,e.render,"ForwardRef");case zo.Memo:return Uo(e,e.type,"memo");default:return}}},getFunctionName:Wo});function $o(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]=$o(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const Go="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var Ko=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 Vo(e){return e&&e.ownerDocument||document}function Jo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Zo=0;const Xo=e["useId".toString()];function Qo(t){if(void 0!==Xo){const e=Xo();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(Zo+=1,r(`mui-${Zo}`))}),[n]),o}(t)}class Yo{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Yo}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let ei=!0,ti=!1;const ni=new Yo,ri={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 oi(e){e.metaKey||e.altKey||e.ctrlKey||(ei=!0)}function ii(){ei=!1}function ai(){"hidden"===this.visibilityState&&ti&&(ei=!0)}function si(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ei||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ri[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const li=e.createContext(null);function ci(){return e.useContext(li)}var ui="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function di(t){const{children:n,theme:r}=t,o=ci(),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[ui]=null!==o),e}),[r,o]);return tr.jsx(li.Provider,{value:i,children:n})}const hi=["value"],pi=e.createContext();function fi(e){let{value:t}=e,n=At(e,hi);return tr.jsx(pi.Provider,Dt({value:null==t||t},n))}const mi=e.createContext(void 0);function gi({value:e,children:t}){return tr.jsx(mi.Provider,{value:e,children:t})}function bi({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?$o(o.defaultProps,r):o.styleOverrides||o.variants?r:$o(o,r)}({props:t,name:n,theme:{components:e.useContext(mi)}})}const yi={};function vi(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 Si(e){const{children:t,theme:n,themeId:r}=e,o=wo(yi),i=ci()||yi,a=vi(r,o,n),s=vi(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=wo(),n=Qo()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Go((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}}),[o,n]),o?tr.jsx(ko,{styles:o}):null}(a);return tr.jsx(di,{theme:s,children:tr.jsx(y.Provider,{value:a,children:tr.jsx(fi,{value:l,children:tr.jsxs(gi,{value:null==a?void 0:a.components,children:[c,t]})})})})}const wi=["defaultProps","mixins","overrides","palette","props","styleOverrides"],xi=["type","mode"];var Ci,Ei={},ki={exports:{}};function Li(){return Ci||(Ci=1,(e=ki).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),ki.exports;var e}var Ri,qi=K(Tt),Ii=K(Ko);function _i(){if(Ri)return Ei;Ri=1;var e=Li();Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.alpha=u,Ei.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})},Ei.colorChannel=void 0,Ei.darken=d,Ei.decomposeColor=i,Ei.emphasize=p,Ei.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ei.getLuminance=c,Ei.hexToRgb=o,Ei.hslToRgb=l,Ei.lighten=h,Ei.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},Ei.private_safeColorChannel=void 0,Ei.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},Ei.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},Ei.private_safeLighten=function(e,t,n){try{return h(e,t)}catch(t){return e}},Ei.recomposeColor=s,Ei.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(qi),n=e(Ii);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(" ")};Ei.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 h(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):h(e,t)}return Ei.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Ei}var Oi=_i();const Ti={black:"#000",white:"#fff"},Pi={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"},Di={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ai={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Mi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ni={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ji={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},zi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Fi=["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:Ti.white,default:Ti.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}},Bi={text:{primary:Ti.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:Ti.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 Ui(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=Oi.lighten(e.main,o):"dark"===t&&(e.dark=Oi.darken(e.main,i)))}function Hi(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=At(e,Fi),i=e.primary||function(e="light"){return"dark"===e?{main:Ni[200],light:Ni[50],dark:Ni[400]}:{main:Ni[700],light:Ni[400],dark:Ni[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Di[200],light:Di[50],dark:Di[400]}:{main:Di[500],light:Di[300],dark:Di[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ai[500],light:Ai[300],dark:Ai[700]}:{main:Ai[700],light:Ai[400],dark:Ai[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:ji[400],light:ji[300],dark:ji[700]}:{main:ji[700],light:ji[500],dark:ji[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:zi[400],light:zi[300],dark:zi[700]}:{main:zi[800],light:zi[500],dark:zi[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Mi[400],light:Mi[300],dark:Mi[700]}:{main:"#ed6c02",light:Mi[500],dark:Mi[900]}}(t);function d(e){return Oi.getContrastRatio(e,Bi.text.primary)>=n?Bi.text.primary:Wi.text.primary}const h=({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(Ot(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Ot(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ui(e,"light",o,r),Ui(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:Bi,light:Wi};return ur(Dt({common:Dt({},Ti),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:Pi,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r},p[t]),o)}const $i=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Gi={textTransform:"uppercase"},Ki='"Roboto", "Helvetica", "Arial", sans-serif';function Vi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ki,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,h=At(n,$i),p=o/14,f=d||(e=>e/c*p+"rem"),m=(e,t,n,o,i)=>{return Dt({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Ki?{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,Gi),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Gi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ur(Dt({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),h,{clone:!1})}function Ji(...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 Zi=["none",Ji(0,2,1,-1,0,1,1,0,0,1,3,0),Ji(0,3,1,-2,0,2,2,0,0,1,5,0),Ji(0,3,3,-2,0,3,4,0,0,1,8,0),Ji(0,2,4,-1,0,4,5,0,0,1,10,0),Ji(0,3,5,-1,0,5,8,0,0,1,14,0),Ji(0,3,5,-1,0,6,10,0,0,1,18,0),Ji(0,4,5,-2,0,7,10,1,0,2,16,1),Ji(0,5,5,-3,0,8,10,1,0,3,14,2),Ji(0,5,6,-3,0,9,12,1,0,3,16,2),Ji(0,6,6,-3,0,10,14,1,0,4,18,3),Ji(0,6,7,-4,0,11,15,1,0,4,20,3),Ji(0,7,8,-4,0,12,17,2,0,5,22,4),Ji(0,7,8,-4,0,13,19,2,0,5,24,4),Ji(0,7,9,-4,0,14,21,2,0,5,26,4),Ji(0,8,9,-5,0,15,22,2,0,6,28,5),Ji(0,8,10,-5,0,16,24,2,0,6,30,5),Ji(0,8,11,-5,0,17,26,2,0,6,32,5),Ji(0,9,11,-5,0,18,28,2,0,7,34,6),Ji(0,9,12,-6,0,19,29,2,0,7,36,6),Ji(0,10,13,-6,0,20,31,3,0,8,38,7),Ji(0,10,13,-6,0,21,33,3,0,8,40,7),Ji(0,10,14,-6,0,22,35,3,0,8,42,7),Ji(0,11,14,-7,0,23,36,3,0,9,44,8),Ji(0,11,15,-7,0,24,38,3,0,9,46,8)],Xi=["duration","easing","delay"],Qi={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)"},Yi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ea(e){return`${Math.round(e)}ms`}function ta(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function na(e){const t=Dt({},Qi,e.easing),n=Dt({},Yi,e.duration);return Dt({getAutoHeightDuration:ta,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return At(r,Xi),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ea(o)} ${i} ${"string"==typeof a?a:ea(a)}`)).join(",")}},e,{easing:t,duration:n})}const ra={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},oa=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ia(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=At(e,oa);if(e.vars&&void 0===e.generateCssVars)throw new Error(Ot(18));const s=Hi(r),l=vo(e);let c=ur(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:Zi.slice(),typography:Vi(s,i),transitions:na(o),zIndex:Dt({},ra)});var u,d;return c=ur(c,a),c=t.reduce(((e,t)=>ur(e,t)),c),c.unstable_sxConfig=Dt({},fo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return go({sx:e,theme:this})},c}const aa=ia();function sa(){const e=Co(aa);return e[Pt]||e}var la,ca={},ua={exports:{}};var da,ha={exports:{}};var pa,fa=K(sr),ma=K(dr),ga=K(xr),ba=K(Ho),ya=K(So),va=K(Ro);function Sa(){if(pa)return ca;pa=1;var e=Li();Object.defineProperty(ca,"__esModule",{value:!0}),ca.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=h,slotShouldForwardProp:c=h}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:g((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:f,skipVariantsResolver:v,skipSx:S,overridesResolver:w=b(m(f))}=s,x=(0,r.default)(s,u),C=p&&p.startsWith("Mui")||f?"components":"custom",E=void 0!==v?v:f&&"Root"!==f&&"root"!==f||!1,k=S||!1;let L=h;"Root"===f||"root"===f?L=l:f?L=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(L=void 0);const R=(0,o.default)(e,(0,n.default)({shouldForwardProp:L,label:undefined},x)),q=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>{const o=g({theme:r.theme,defaultTheme:a,themeId:t});return y(e,(0,n.default)({},r,{theme:o}),o.modularCssLayers?C:void 0)}:e,I=(r,...o)=>{let i=q(r);const s=o?o.map(q):[];p&&w&&s.push((e=>{const r=g((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]=y(o,(0,n.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),w(e,i)})),p&&!E&&s.push((e=>{var r;const o=g((0,n.default)({},e,{defaultTheme:a,themeId:t}));return y({variants:null==o||null==(r=o.components)||null==(r=r[p])?void 0:r.variants},(0,n.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),k||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=R(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return R.withConfig&&(I.withConfig=R.withConfig),I}},ca.shouldForwardProp=h,ca.systemDefaultTheme=void 0;var t,n=e((la||(la=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}(ua)),ua.exports)),r=e((da||(da=1,(t=ha).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),ha.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}(fa),i=ma;e(ga),e(ba);var a=e(ya),s=e(va);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 h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=ca.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function b(e){return e?(t,n)=>n[e]:null}function y(e,t,i){let{ownerState:a}=t,s=(0,r.default)(t,l);const u="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(u))return u.flatMap((e=>y(e,(0,n.default)({ownerState:a},s),i)));if(u&&"object"==typeof u&&Array.isArray(u.variants)){const{variants:e=[]}=u;let t=(0,r.default)(u,c);return e.forEach((e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,n.default)({ownerState:a},s,a)):Object.keys(e.props).forEach((t=>{(null==a?void 0:a[t])!==e.props[t]&&s[t]!==e.props[t]&&(r=!1)})),r){Array.isArray(t)||(t=[t]);const r="function"==typeof e.style?e.style((0,n.default)({ownerState:a},s,a)):e.style;t.push(i?p((0,o.internal_serializeStyles)(r),i):r)}})),t}return i?p((0,o.internal_serializeStyles)(u),i):u}return ca}const wa=G(Sa())({themeId:Pt,defaultTheme:aa,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),xa=["theme"];function Ca(e){let{theme:t}=e,n=At(e,xa);const r=t[Pt];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=Dt({},r,{vars:null}):t&&!t.vars&&(o=Dt({},t,{vars:null}))),tr.jsx(Si,Dt({},n,{themeId:r?Pt:void 0,theme:o}))}function Ea(e,t){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ea(e,t)}function ka(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ea(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 Ra=Do("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 qa={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 Ia={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},_a={mode:"light",palette:{primary:{main:Ia.grey25,contrastText:Ia.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Ia.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Ia.grey100,dark:Ia.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:Ia.grey100,default:Ia.grey100,lightest:Ia.grey100,lighter:Ia.grey98,darker:Ia.grey95,darkest:Ia.grey90},custom:{focusBorder:Ia.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Ia.grey45,disabledContrastText:Ia.grey100},selected:{main:Ia.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Ia.grey100,selectedContrastText:Ia.grey100,mainContrastText:Ia.grey100,alternativeContrastText:Ia.grey25,excludedContrastText:Ia.grey25,selectedExcludedContrastText:Ia.grey100,possibleContrastText:Ia.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)"}}},Oa={mode:"dark",palette:{primary:{main:Ia.grey20,contrastText:Ia.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Ia.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Ia.grey100,dark:Ia.grey0},action:{active:Ia.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:Ia.grey25,lighter:Ia.grey20,darker:Ia.grey15,darkest:Ia.grey10},custom:{focusBorder:Ia.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Ia.grey45,disabledContrastText:Ia.grey100},selected:{main:Ia.green,alternative:Ia.grey20,excluded:Ia.grey10,selectedExcluded:Ia.grey10,possible:Ia.grey80,selectedContrastText:Ia.grey100,mainContrastText:Ia.grey100,alternativeContrastText:Ia.grey100,excludedContrastText:Ia.grey100,selectedExcludedContrastText:Ia.grey100,possibleContrastText:Ia.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)"}}},Ta={},Pa=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(Ra.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(Ra.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(Ra.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Ra.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Da(e){let t=_a,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Oa));const r=JSON.stringify(t);if(Ta[r])return Ta[r];const o={palette:te(te({type:t.mode},qa.palette),t.palette),typography:te({},qa.typography),shadows:qa.shadows,props:te({},qa.props),shape:te({},qa.shape)};return Ta[r]=ia(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=Dt({},At(e,wi),{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=zr(e.spacing);const l=fr(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,h=At(o,xi),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},h),s}(te(te({},o),{},{overrides:Pa(o)}))),Ta[r].name=n,Ta[r]}Io.configure((e=>"njs-".concat("3efc","-").concat(e.replace("Mui",""))));var Aa=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null});const Ma={active:!0,select:!0,passive:!0,edit:!1};function Na(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(Ma).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Ma[e],n[e]=!Ma[e])})),e.constraints=n,e.interactions=t}var ja=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 za=o(((e,o)=>{let{initialContext:s,renderCallback:l,modelStore:c,selectionStore:u}=e;const[d,h]=n(s),[p,f]=n(),{theme:m}=i((()=>({theme:Da(p)})),[p]),[g,b]=n([]);return r((()=>{l&&l()}),[]),a(o,(()=>({setComps(e){b([...e])},setMuiThemeName:f,setContext:e=>h((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),d&&(d.modelStore=c,d.selectionStore=u),t.createElement(rr,{injectFirst:!0},t.createElement(Ca,{theme:m},t.createElement(Aa.Provider,{value:d},g)))}));function Fa(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","6.0.0-alpha.2"),l.setAttribute("data-app-id",r.id),document.body.appendChild(l),o&&Na(o);const c=function(e){const[t,n]=ja({}),[r,o]=ja({}),[i,a]=ja({}),[s,l]=ja({}),[c,u]=ja({}),[,d]=ja({}),h=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,f]=ja({},h);return{subscribe:e=>{const t=h({type:"SET",value:e});return()=>{t(),f.clear(e.id)}},destroy:()=>{f.destroy()},useModelStore:p,modelStore:f,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:s,rpcRequestModelStore:l,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(r.id),u=function(e){const[t,n]=ja({}),[r,o]=ja({}),[i,a]=ja({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(r.id),d=_t.createRoot(l);d.render(t.createElement(za,{ref:s,initialContext:o,renderCallback:n,modelStore:c,selectionStore:u}));const h={},p=[],f=[];return[{toggleFocusOfCells(e){Object.keys(h).forEach((t=>{var n;null===(n=h[t].current)||void 0===n||n.toggleFocus(t===e)}))},cells:h,addCell(e,t){h[e]=t},removeCell(e){delete h[e]},add:(e,t)=>(async()=>{await a,f.push(e),p.push(t),s.current.setComps(f)})(),remove(e){i||(async t=>{await a;const n=f.indexOf(e);var r;-1!==n&&(null===(r=p[n])||void 0===r||r.call(p),f.splice(n,1),p.splice(n,1));null==s||null===(t=s.current)||void 0===t||t.setComps(f)})()},setMuiThemeName(e){(async()=>{await a,s.current.setMuiThemeName(e)})()},context(e){(async()=>{await a,e&&Na(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(Aa).modelStore;return e()}function Ba(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=Wa(),[a]=function(){const{useRpcRequestSessionModelStore:e}=s(Aa).modelStore;return e()}(),[l,c]=n();for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];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 Ua={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Ha(e){return Ba(Ua,e)}const $a=e=>new Promise((t=>{setTimeout(t,e)})),Ga=(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 Ka(e,t){const n=e?"".concat(e.id):null,[o]=function(){const{useRpcResultStore:e}=s(Aa).modelStore;return e()}(),[i,a]=l(Ga,n?o.get(n):null),[c]=function(){const{useModelChangedStore:e}=s(Aa).modelStore;return e()}(),[u]=function(){const{useRpcRequestStore:e}=s(Aa).modelStore;return e()}();let d;n&&(d=u.get(n),d||(d={},u.set(n,d)));const h=async r=>{let i=d[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},d[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0})}try{await $a(0);const r=await i.rpc;a({type:"VALID",result:r,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||r||(i.rpcRetry||(i.rpcRetry=!0),h(!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,h()}};return r((()=>{e&&h()}),[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 Va(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=Ka(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 Ja(e){return Ka(e,"getAppLayout")}function Za(){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 Xa(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Qa(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=te({fontSize:Xa(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,Y({key:n},o))}))))}var Ya=e=>Qa((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 es=e=>Qa((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 ts=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 ns=e=>Qa(ts(e));var rs=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}}(),os=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},is=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=os(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},os(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),rs(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 h=a[0]-1;if(t(h))break;a[0]=h}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 as=["S","XS"],ss=e=>e.reduce(((e,t)=>e.concat(t)));function ls(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!as.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return ss(t)}async function cs(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 us="RowColumn",ds={row:"".concat(us,"-row"),rowBorderBottom:"".concat(us,"-rowBorderBottom"),column:"".concat(us,"-column"),fieldRoot:"".concat(us,"-fieldRoot"),cell:"".concat(us,"-cell"),labelText:"".concat(us,"-labelText"),labelDense:"".concat(us,"-labelDense"),highlighted:"".concat(us,"-highlighted"),checkboxLabel:"".concat(us,"-checkboxLabel"),icon:"".concat(us,"-icon"),S:"".concat(us,"-S"),XS:"".concat(us,"-XS"),A:"".concat(us,"-A"),X:"".concat(us,"-X"),frequencyCount:"".concat(us,"-frequencyCount"),barContainer:"".concat(us,"-barContainer"),bar:"".concat(us,"-bar"),barSelected:"".concat(us,"-barSelected"),barWithCheckbox:"".concat(us,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(us,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(us,"-excludedTextWithCheckbox")},hs=".".concat(ds.fieldRoot),ps=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function fs(e){var t;let{selectionState:n,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:s}=e;const l=h({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(),cs({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 ss(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)},f=c((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&ps(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&&ps(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())}),[]),y=c((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");p(t)}),[]),v=c((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void u();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(hs))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(hs))||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 w={};return i?Object.assign(w,{onChange:f}):Object.assign(w,{onMouseUp:g,onMouseDown:m,onMouseEnter:y,onTouchStart:v,onTouchEnd:S}),{interactionEvents:w,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&&ps(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const s=[];return n.updateItems(t,r,s),n.setSelectableValuesUpdating(),cs({selections:o,elemNumbers:r?s:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const ms=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 gs=e=>Qa(ms(e));const bs=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,ys=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||bs(t))&&n};const vs=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const i=[t?ds.column:ds.row];n||i.push(ds.rowBorderBottom);const a=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?ds.XS:ds.S;break;case"S":case"L":t=ds.S;break;case"A":t=!!r&&ds.A;break;case"X":case"XL":t=!!r&&ds.X;break;default:t=!1}return t}({cell:r,showGray:o});return a&&i.push(a),i},Ss=9,ws=4,xs=7,Cs=12+2*(xs+1),Es=80,ks=10,Ls=150,Rs=56,qs=20,Is="-",_s=32,Os=29,Ts=20,Ps=4,Ds=e=>e.filter((e=>!!e)).join(" ").trim(),As=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,"%")},Ms=e=>e||Is,Ns=["backgroundColor"],js=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%"},zs=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},Fs=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(ds.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(ds.labelText)]:{color:s},["& .".concat(ds.icon)]:{color:s}}},Ws={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Bs=wa("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:h}=d,p=ne(d,Ns),f=Fs({theme:t,styles:u,checkboxes:n,selectionState:"selected"}),m=Fs({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(ds.row)]:te({flexWrap:"nowrap"},u.content),["& .".concat(ds.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(ds.column)]:te({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(ds.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(Ss,"px"),paddingRight:0},["& .".concat(ds.labelText)]:te(te({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},Ws),p),["& .".concat(ds.labelDense)]:{lineHeight:"18px"},["& .".concat(ds.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(ds.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(ds.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:p.color},["& .".concat(ds.S)]:te(te({},f),{},{border:r?"none":void 0}),["& .".concat(ds.XS)]:te(te({},Fs({theme:t,styles:u,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(ds.A)]:te(te({},Fs({theme:t,styles:u,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(ds.X)]:te(te({},m),{},{border:r?"none":void 0}),["& .".concat(ds.X,", & .").concat(ds.XS)]:{border:r?"none":void 0,["& .".concat(ds.barSelected," .bar-filled")]:te({},g)},["& .".concat(ds.frequencyCount)]:te(te({zIndex:3,justifyContent:"flex-end"},Ws),{},{flex:"0 0 ".concat(js({sizes:s,frequencyMode:l,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==l&&c?s.freqMinWidth:"max-content",maxWidth:zs({sizes:s,frequencyMode:l,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(ds.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(ds.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(ds.barSelected)]:{"& .bar-filled":te({},b)},["& .".concat(ds.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(ds.barSelectedWithCheckbox)]:{"& .bar-filled":te(te({},b),{},{backgroundColor:u.selections.selected||"#BFE5D0",borderColor:u.selections.selected})},["& .".concat(ds.excludedTextWithCheckbox)]:{color:u.content.color,fontStyle:"italic"}}}));var Us=t.memo(Bs);const Hs="ListBoxCheckbox",$s={cbIcon:"".concat(Hs,"-cbIcon"),cbIconChecked:"".concat(Hs,"-cbIconChecked"),cbIconExcluded:"".concat(Hs,"-cbIconExcluded"),cbIconAlternative:"".concat(Hs,"-cbIconAlternative"),checkbox:"".concat(Hs,"-checkbox"),dense:"".concat(Hs,"-dense")},Gs=wa(x,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat($s.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat($s.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat($s.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat($s.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat($s.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat($s.dense)]:{padding:"4px 8px"}}})),Ks=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 Vs(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,styles:s,showGray:l=!0,dataN:c}=e;return t.createElement(Gs,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[$s.checkbox,i&&$s.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":c},name:o,icon:Ks($s,l,a),checkedIcon:t.createElement("span",{className:$s.cbIconChecked}),styles:s})}const Js={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Zs=wa(C,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Js.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Xs(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a,styles:s}=e;return t.createElement(Zs,{checked:r,onChange:n,value:o,name:o,className:Js.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:i?"small":"medium",dense:i,styles:s})}function Qs(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:Ds([ds.labelText,r&&ds.labelDense,o&&ys({cell:a,checkboxes:i})&&ds.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,n))}function Ys(e){let{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}=e;return"string"==typeof n?t.createElement(Qs,{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}):n}function el(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:h,styles:p}=e;const f=t.createElement(Vs,{onChange:n,label:r,checked:i,dense:a,excluded:bs(s),isGridCol:l,showGray:c,dataN:o,styles:p}),m=t.createElement(Xs,{onChange:n,label:r,checked:i,dense:a,dataN:o,styles:p});return t.createElement(k,{control:u?m:f,className:ds.checkboxLabel,label:t.createElement(Ys,{label:r,dense:a,showGray:c,checkboxes:d,cell:s,valueTextAlign:h}),key:o})}function tl(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?ds.highlighted:""},r)}));return t.createElement(Qs,{label:a,dense:r,showGray:o,checkboxes:i})}function nl(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,qElemNumber:s,isSelected:l,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:h,styles:p}=e;const f=t.createElement(tl,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(el,{onChange:n,label:f,qElemNumber:s,isSelected:l,dense:i,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:o,valueTextAlign:h,styles:p}):f}var rl=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:h,styles:p}=e;return d?t.createElement(el,{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:h,styles:p}):t.createElement(Qs,{label:r,dense:a,showGray:!0,checkboxes:d,cell:s,valueTextAlign:h})}));function ol(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&Ms(n)!==Is))return;const s=As({qFrequency:n,frequencyMax:a});return t.createElement(L,{className:Ds([ds.bar,o&&ds.barWithCheckbox,i&&(o?ds.barSelectedWithCheckbox:ds.barSelected)])},t.createElement(L,{className:"bar-filled",width:s}))}function il(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;const a=Ms(null==n?void 0:n.qFrequency);return t.createElement(R,{item:!0,style:{display:"flex",alignItems:"center"},className:ds.frequencyCount,"aria-label":a,title:a},t.createElement(E,{noWrap:!0,color:"inherit",variant:"body2",className:Ds([o&&ds.labelDense,ds.labelText,i&&ys({cell:n,checkboxes:r})&&ds.excludedTextWithCheckbox])},a))}function al(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 sl=wa(R,{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(ds.fieldRoot)]:te(te({},al({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[s]:o?"8px":void 0})}}));const ll=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===ll.ARROW_UP||e===ll.ARROW_DOWN||e===ll.ARROW_LEFT||e===ll.ARROW_RIGHT});function cl(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function ul(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 dl(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=ul(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)})),cl(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 hl=e=>+e.getAttribute("data-n"),pl=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},fl=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(),cl(e),o},ml=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},gl=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=ul(i),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||s)t.blur(!0);else{cl(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},bl=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===ll.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 yl={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 vl(e){var o,a;let{index:s,rowIndex:l,columnIndex:u,style:d,data:h}=e;const{onChange:p,onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onTouchStart:y,onTouchEnd:v,pages:S,isLocked:w,column:x=!1,checkboxes:C=!1,textAlign:E,direction:k,layoutOptions:L={},freqIsAllowed:q,isSingleSelect:I,actions:_,frequencyMax:O="",histogram:T=!1,keyboard:P,showGray:D=!0,showTick:A=!0,columnCount:M=1,rowCount:N=1,dataOffset:j,deducedFrequencyMode:z,focusListItems:F,listCount:W,sizes:B,translator:U,showSearch:H,isModal:$,contentFontStyle:G,styles:K,fillHeight:V}=h,{dense:J=!1,dataLayout:Z="singleColumn",layoutOrder:X}=L,{itemPadding:Q}=B;let Y,ee;const ne={max:null,currentIndex:null};if("number"==typeof l&&"number"==typeof u){"row"===X?(Y=l*M+u,ne.max=N,ne.currentIndex=l):(Y=u*N+l,ne.max=M,ne.currentIndex=u);const e=0;ee=te(te({},d),{},{height:V?"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 Y=s,ne.max=W,ne.currentIndex=s,ee=te({},d);Y+=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:h,columnIndex:p,layoutOrder:f}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===ll.ARROW_LEFT||e===ll.ARROW_RIGHT||"number"!=typeof h||"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=bl({rowIndex:h,columnIndex:p,rowCount:u,columnCount:d,layoutOrder:f,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:h}=e,{keyCode:p,shiftKey:f=!1,ctrlKey:y=!1,metaKey:v=!1}=h;switch(p){case ll.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==l||!l.enabled){if(!n)return;return l.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(f){pl(t)||ml(t)||(n?l.focusSelection():gl(e,l));break}l.focusSelection()||ml(t)||pl(t)||(d.blur(),gl(e,l));break}case ll.SHIFT:b(!0);break;case ll.SPACE:t([hl(d)],!1,e);break;case ll.ARROW_DOWN:case ll.ARROW_RIGHT:u=m(p,d,!0),f&&u&&(g&&(t([hl(d)],!0),b(!1)),t([hl(u)],!0));break;case ll.ARROW_UP:case ll.ARROW_LEFT:u=m(p,d,!1),f&&u&&(g&&(t([hl(d)],!0),b(!1)),t([hl(u)],!0));break;case ll.ENTER:if(o(),void 0===c)return;break;case ll.ESCAPE:if(void 0===c)return void i();if(!c())return;i();break;case ll.HOME:if(s.setFirst(!0),y){null==a||a("overflowStart");break}null==a||a("start");break;case ll.END:if(s.setLast(!0),y){null==a||a("overflowEnd");break}null==a||a("end");break;case ll.A:if(y||v){n();break}return;case ll.F:if(y||v){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(te(te({},_),{},{focusListItems:F,keyboard:P,isModal:$,rowCount:N,columnCount:M,rowIndex:l,columnIndex:u,layoutOrder:X})),[_,null==P?void 0:P.innerTabStops,N,M,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:Y})),[S,Y]),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((()=>vs({column:x,histogram:T,cell:ae,showGray:D})),[null==ae?void 0:ae.qState,T,J]),ce=c((e=>{e.preventDefault()}),[C]),ue=i((()=>ae&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:k,cell:ae,textAlign:E})),[k,ae,E]);if(!ae)return null;const de="grid"===Z&&"column"===X,he=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}(he,e)}const fe={alignItems:"center",display:"flex",fontSize:"8px"},me="rtl"===k,ge={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:me?8:C?0:void 0,paddingRight:C?0:me?8:0,justifyContent:ue,textAlign:ue},be=0===s,ye=se&&w,ve=!C&&se&&!w,Se=!C&&A,we=C||!A,xe=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=yl[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),h=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,h),u.join(". ").trim()}({translator:U,label:he,qState:ae.qState,currentIndex:ne.currentIndex,maxIndex:ne.max,showSearch:H}),Ce=!me&&"right"===ue||me&&"left"===ue;return t.createElement(Us,{className:ds.barContainer,checkboxes:C,style:ee,styles:K,isGridCol:de,isGridMode:"grid"===Z,dense:J,direction:k,sizes:B,frequencyMode:z,freqHitsValue:Ce,contentFontStyle:G,"data-testid":"listbox.item"},t.createElement(sl,{role:"row","aria-label":xe,"aria-selected":se,"aria-setsize":ne.max,"aria-rowindex":ne.currentIndex,ref:oe,container:!0,dataLayout:Z,cellPaddingRight:we,layoutOrder:X,itemPadding:Q,gap:0,className:Ds(["value",...le]),classes:{root:ds.fieldRoot},onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onKeyDown:ie,onTouchStart:y,onTouchEnd:v,onContextMenu:ce,tabIndex:be&&P.innerTabStops?0:-1,"data-n":null==ae?void 0:ae.qElemNumber,direction:k,fillHeight:V},(null==ae?void 0:ae.qFrequency)&&t.createElement(ol,{qFrequency:null==ae?void 0:ae.qFrequency,histogram:T,checkboxes:C,isSelected:se,frequencyMax:O}),t.createElement(R,{item:!0,style:ge,className:Ds([ds.cell,ds.selectedCell]),title:"".concat(he)},pe?t.createElement(nl,{onChange:p,labels:pe,checkboxes:C,dense:J,showGray:D,qElemNumber:ae.qElemNumber,isSelected:se,cell:ae,isGridCol:de,isSingleSelect:I,valueTextAlign:ue,styles:K}):t.createElement(rl,{onChange:p,label:he,qElemNumber:ae.qElemNumber,isSelected:se,dense:J,cell:ae,isGridCol:de,showGray:D,isSingleSelect:I,checkboxes:C,valueTextAlign:ue,styles:K})),q&&t.createElement(il,{cell:ae,checkboxes:C,dense:J,showGray:D}),Se&&t.createElement(R,{item:!0,className:ds.icon},ye&&t.createElement(es,{style:fe,size:"small"}),ve&&t.createElement(gs,{style:fe,size:"small"}))))}var Sl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function wl(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||Sl(r)&&Sl(o)))return!1;var r,o;return!0}function xl(e,t){var n;void 0===t&&(t=wl);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 Cl="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function El(e){cancelAnimationFrame(e.id)}function kl(e,t){var n=Cl();var r={id:requestAnimationFrame((function o(){Cl()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Ll=-1;function Rl(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 ql=null;function Il(e){if(void 0===e&&(e=!1),null===ql||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?ql="positive-descending":(t.scrollLeft=1,ql=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ql}return ql}var _l=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Ol(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,h=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,b=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,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=xl((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=xl((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 f=n(r.props,t,r._instanceProps),m="rtl"===l;d[p]=o={position:"absolute",left:m?void 0:f,right:m?f:void 0,top:h(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=xl((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(Il()){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&&El(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=kl(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}ka(t,e),t.getDerivedStateFromProps=function(e,t){return Tl(e,t),y(e),null};var d=t.prototype;return d.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,h=i.rowCount,p=i.width,f=this.state,m=f.scrollLeft,g=f.scrollTop,b=Rl();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,h-1)));var y=a(this.props,this._instanceProps),v=s(this.props,this._instanceProps)>p?b:0,S=y>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,v):g})},d.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Il()){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&&El(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,h=e.itemKey,f=void 0===h?_l:h,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,y=e.style,v=e.useIsScrolling,S=e.width,w=this.state.isScrolling,x=this._getHorizontalRangeToRender(),C=x[0],E=x[1],k=this._getVerticalRangeToRender(),L=k[0],R=k[1],q=[];if(r>0&&b)for(var I=L;I<=R;I++)for(var _=C;_<=E;_++)q.push(p(t,{columnIndex:_,data:d,isScrolling:v?w:void 0,key:f({columnIndex:_,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(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},y)},p(c||u||"div",{children:q,ref:l,style:{height:O,pointerEvents:w?"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],h=u[1],p=u[2],f=u[3];this._callOnItemsRendered(a,s,d,h,l,c,p,f)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,y=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,y,g,S,v)}},d._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,h=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var p=r(this.props,d,this._instanceProps),f=o(this.props,p,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,h),g=u&&"forward"!==c?1:Math.max(1,h);return[Math.max(0,p-m),Math.max(0,Math.min(t-1,f+g)),p,f]},d._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),h=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,h+g)),d,h]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Tl=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Pl=function(e,t){return e};function Dl(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=xl((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=xl((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),h=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,f="rtl"===a,m=p?d:0;u[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:p?0:d,height:p?"100%":h,width:p?h:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=xl((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(Il()){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&&El(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=kl(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}ka(t,e),t.getDerivedStateFromProps=function(e,t){return Al(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?Rl():0:l.scrollHeight>l.clientHeight?Rl():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(Il()){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&&El(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,h=void 0===d?Pl:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,y=e.useIsScrolling,v=e.width,S=this.state.isScrolling,w="horizontal"===o||"horizontal"===f,x=w?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],k=C[1],L=[];if(c>0)for(var R=E;R<=k;R++)L.push(p(t,{data:u,key:h(R,u),index:R,isScrolling:y?S:void 0,style:this._getItemStyle(R)}));var q=r(this.props,this._instanceProps);return p(m||g||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:Dt({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},p(s||l||"div",{children:L,ref:a,style:{height:w?"100%":q,pointerEvents:S?"none":void 0,width:w?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),h=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+h)),c,u]},t}(d),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Al=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Ml=Ol({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 h=Math.round(d+(u-d)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h;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 h=Math.round(d+(u-d)/2);return h<Math.ceil(s/2)?0:h>c+Math.floor(s/2)?c:h;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}}),Nl=Dl({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,h="horizontal"===a||"horizontal"===u?d:s,p=Math.max(0,l*c-h),f=Math.min(p,t*c),m=Math.max(0,t*c-h+c+i);switch("smart"===n&&(n=r>=m-h&&r<=f+h?"auto":"center"),n){case"start":return f;case"end":return m;case"center":var g=Math.round(m+(f-m)/2);return g<Math.ceil(h/2)?0:g>p+Math.floor(h/2)?p:g;default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const jl="#BBB",zl="#f1f1f1",Fl={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,Bl=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,Ul=(e,t,n,r)=>e===t*n+r+n;function Hl(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,h=(c?o:i)>=d,p=Ul(s,u,c?i:o,l),f=!!l&&Bl(t,c),m=h&&!p&&u>=d-1||f||a.state.show;a.set(m)}const{StyledFixedSizeList:$l,StyledFixedSizeGrid:Gl}=function(){const e=e=>({scrollbarColor:"".concat(jl," ").concat(zl),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:zl},"&::-webkit-scrollbar-thumb":{backgroundColor:jl,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:w(Nl,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Fl.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:w(Ml,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Fl.styledScrollbars)]:e(n)}}))}}();const Kl=(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)},Vl=e=>{const t=i((()=>"text"in e?e:{}),[e]);return i((()=>Kl(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Jl(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Zl(e){let{isGridMode:t,dense:n}=e;let r=n?Ts:t?_s:Os;return t&&(r+=Ps),r}function Xl(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:h,dense:p,dataLayout:f}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==l?void 0:l.content)||{},b="".concat(m," ").concat(g),y=Vl({text:Jl(t),font:b}),v=Vl({text:Jl(5),font:b}),S=Vl({text:Jl(8),font:b}),w=a?v:0,x=s?qs:0;let C=Rs+w+x;!s&&C>=Es&&(C+=qs);let E,k,L,R,q=y+18+w+x;!s&&q>=Es&&(q+=qs),q=Math.min(Ls,Math.max(q,C));const I=Zl({isGridMode:"grid"===f,dense:p}),_=null!=r?r:8*I;if(u){let e=n;"row"===u?(E={overflowX:"hidden"},e+=2*Ps,({rowCount:R,columnWidth:L,columnCount:k}=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-ks;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:h,listCount:o,containerWidth:e,columnAutoWidth:q,itemMinWidth:C}))):(E={overflowY:"hidden"},({rowCount:R,columnWidth:L,columnCount:k}=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:I,listCount:o,listHeight:_,columnAutoWidth:q,containerWidth:e,itemMinWidth:C})))}k=("singleColumn"===f?1:k)||1,R=("singleColumn"===f?i:R)||o;const O=c.dense?838e3:577e3;R=Math.min(R,O);const T=Math.floor(3355e4/L);k=Math.min(k,T)||1;const P=R*k,D=Math.min(o,P);return{columnCount:k,columnWidth:L,rowCount:R,overflowStyling:E,itemHeight:I,listHeight:_,listWidth:n,scrollBarWidth:ks,count:i,listCount:D,maxCount:{row:O,column:T},itemPadding:Ps,textWidth:y,freqMinWidth:v,freqMaxWidth:S}}const Ql=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[Yl,ec]=ja({});function tc(e){const t="".concat(e.id),[n]=Yl();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const nc=wa(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 rc(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=s(Aa);return t.createElement(q,{title:i?a.get(r):""},t.createElement(nc,{width:n,dense:o,component:"div",variant:"body1",py:"12px"},a.get(r)))}var oc={},ic={};function ac(e){return Po("MuiSvgIcon",e)}Do("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const sc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],lc=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${wr(t)}`,`fontSize${wr(n)}`]},ac,r)},cc=wa("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${wr(n.color)}`],t[`fontSize${wr(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(h=(e.vars||e).palette)||null==(h=h[t.color])?void 0:h.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),uc=e.forwardRef((function(t,n){const r=bi({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:h="0 0 24 24"}=r,p=At(r,sc),f=e.isValidElement(o)&&"svg"===o.type,m=Dt({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:f}),g={};u||(g.viewBox=h);const b=lc(m);return tr.jsxs(cc,Dt({as:s,className:Oo(b.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n},g,p,f&&o.props,{ownerState:m,children:[f?o.props.children:o,d?tr.jsx("title",{children:d}):null]}))}));uc.muiName="SvgIcon";const dc={configure:e=>{Io.configure(e)}};var hc,pc,fc=Object.freeze({__proto__:null,capitalize:wr,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 tr.jsx(uc,Dt({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=uc.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:Vo,ownerWindow:function(e){return Vo(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:Jo,unstable_ClassNameGenerator:dc,unstable_useEnhancedEffect:Go,unstable_useId:Qo,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 Go((()=>{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=>{Jo(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",oi,!0),t.addEventListener("mousedown",ii,!0),t.addEventListener("pointerdown",ii,!0),t.addEventListener("touchstart",ii,!0),t.addEventListener("visibilitychange",ai,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!si(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(ti=!0,ni.start(100,(()=>{ti=!1})),n.current=!1,!0)},ref:t}}}),mc=K(fc);function gc(){return hc||(hc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mc}(ic)),ic}function bc(){if(pc)return oc;pc=1;var e=Li();Object.defineProperty(oc,"__esModule",{value:!0}),oc.default=void 0;var t=e(gc()),n=er();return oc.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"),oc}var yc=G(bc());const vc=wa(I)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),Sc=wa("div")((()=>({paddingLeft:"6px",flexGrow:1}))),wc=wa("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),xc=wa(yc)((()=>({fontSize:"14px"})));function Cc(e){let{text:n,dismiss:r,dense:o,parentWidth:i=0}=e;const a="function"==typeof r,s=o?370:282,l=Math.max(i/2-s/2,0),c=Math.min(s,i)-42,u=o&&i<s;return t.createElement(vc,{left:l,style:{maxWidth:s}},t.createElement(Sc,null,t.createElement(rc,{text:n,dense:o,width:c,tooltip:u})),t.createElement(wc,{dense:o},a&&t.createElement(_,{"aria-label":"close",onClick:()=>r()},t.createElement(xc,null))))}const Ec=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const kc=80;function Lc(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>kc,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const Rc=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e,qc=e=>{const t=Rc(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},Ic=(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=qc(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 _c=["isLoadingData"],Oc=100,Tc=O("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function Pc(e){var o,i;let{model:a,app:l,constraints:u,layout:d,selections:p,selectionState:f,direction:m,checkboxes:g,height:b,width:y,frequencyMode:v,update:S,fetchStart:w,postProcessPages:x,calculatePagesHeight:C=!1,keyboard:E={},showGray:k=!0,scrollState:L,keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:q={set:()=>{}},renderedCallback:I,onCtrlF:_,showSearch:O,isModal:T,styles:P}=e;const{translator:D}=s(Aa),[A,M]=n(!1),N=!(!d||!d.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:j=g,histogram:z}=null!=d?d:{},F=h(null),W=h({queue:[],validPages:!1,dataOffset:0}),B=h({pages:[]}),{frequencyMax:U,awaitingFrequencyMax:H}=Ic(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,h]=n([]);let[p]=n(0);const f=(e,n)=>{const c=t.current.dataOffset;t.current.queue.push({start:e+c,stop:n+c});const d=!!r.current&&r.current._listRef&&r.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),u(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],r=o.getListObjectData("/qListObjectDef",[{qTop:n.start>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,h(r),u(!1),e()}));i&&i(r)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:d,isLoading:c}}({local:W,loaderRef:F,model:a,fetchStart:w,scrollTimeout:0,postProcessPages:x,listData:B}),{isLoadingData:G}=$,K=ne($,_c),{getStoreValue:V,setStoreValue:J}=tc(a),Z=c(K.loadMoreItems,[d]),[X,Q]=n({show:!1,dismissed:!1}),[ee,re]=n([]);null!=K&&K.pages&&f.update({setPages:re,pages:K.pages,isSingleSelect:N,layout:d});const oe=null==d?void 0:d.qListObject.qDimensionInfo.qCardinal;(null!=K&&K.pages.length&&!H||0===oe)&&(null==I||I());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}=fs({selectionState:f,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)},he=()=>{if(W.current.queue=[],W.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(d&&d.qSelectionInfo.qInSelections||e)return void(e&&R.reset());W.current.dataOffset=0,de(0)}};S&&S.call(null,he),r((()=>{L&&!A&&F.current&&(F.current._listRef.scrollToItem(L.initScrollPos),M(!0))}),[F.current]),r((()=>{he()}),[d,W.current.dataOffset]);let pe=Oc;const fe="grid"!==le.dataLayout,me=null==d||null===(o=d.qListObject.qSize)||void 0===o?void 0:o.qcy,ge=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?Ql({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:ee,minimumBatchSize:pe,count:me,calculatePagesHeight:C});let be=Lc({itemWidth:y,layout:d,frequencyMode:v});const ye=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(ee),ve=Xl({layout:d,width:y,height:b,listCount:ge,count:me,freqIsAllowed:be,checkboxes:j,styles:P});ve.columnWidth&&(be=Lc({itemWidth:ve.columnWidth,layout:d,frequencyMode:v}));const{listCount:Se}=ve;J("listCount",Se);const we=V("inputText"),xe=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=s(Aa),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:we,listCount:Se}),Ce=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,s=!1,l=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":l=0,t=0,s=!0;break;case"overflowEnd":l=Ec(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ce,sizes:ve,layout:d,offset:W.current.dataOffset});W.current.dataOffset=n,r&&f.triggerStateChanged(),de(t)};r((()=>{const e=R.state;e.up?de(q.state.start-e.up):e.down?de(q.state.stop+e.down):e.scrollPosition&&Ce(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:Ee}=(null==d?void 0:d.qListObject.qDimensionInfo)||{},[ke,Le]=n({first:!1,last:!1}),{List:Re,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:h,select:p,selectAll:f,onCtrlF:m,textAlign:g,selections:b,keyboard:y,showGray:v,scrollState:S,direction:w,sizes:x,listCount:C,overflowDisclaimer:E,setScrollPosition:k,focusListItems:L,setCurrentScrollIndex:R,constraints:q,frequencyMax:I,freqIsAllowed:_,translator:O,showSearch:T,isModal:P,styles:D}=e;const{layoutOptions:A={}}=n||{},{columnWidth:M,listHeight:N,itemHeight:j,rowCount:z,columnCount:F}=x||{},W=("grid"===A.dataLayout?M:r)>Es,B={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:Fl.styledScrollbars},U=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,H=N<=j,$=te(te({isLocked:U,column:!a,pages:s},U||l.selectDisabled()?{}:c),{},{checkboxes:o,layoutOptions:A,deducedFrequencyMode:u,freqIsAllowed:_,isSingleSelect:h,textAlign:g,sizes:x,actions:{select:p,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:k,selectAll:f,onCtrlF:m},frequencyMax:I,histogram:d,keyboard:y,showGray:v,showTick:W,dataOffset:i.current.dataOffset,focusListItems:L,direction:w,translator:O,showSearch:T,isModal:P,styles:D,fillHeight:H});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement($l,Y({},B,{dataTestid:"fixed-size-list",scrollDisabled:null==q?void 0:q.active,height:N,width:r,itemCount:C,itemData:te(te({},$),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var t;R({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),Hl({renderProps:e,layoutOptions:A,maxCount:x.maxCount,columnCount:F,rowCount:z,overflowDisclaimer:E,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}),vl)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=x,{layoutOrder:c}=A||{},u=Math.min(N,z*j+l);return i.current.listRef=a,t.createElement(Gl,Y({},B,{dataTestid:"fixed-size-grid",scrollDisabled:null==q?void 0:q.active,height:u,width:r,columnCount:F,columnWidth:M,rowCount:z,rowHeight:j,style:te({},s),itemData:te(te({},$),{},{column:void 0,columnCount:F,rowCount:z}),onItemsRendered:e=>{var t;const r="row"===c;R({start:r?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:r?e.visibleRowStopIndex:e.visibleColumnStopIndex});const a=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:s,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,h,p,f;return n&&n.setScrollPos(u),"column"===r?(d=l*o,h=a,p=c*o,f=s):(d=l,h=a*i,p=c,f=s*i),{visibleStartIndex:d+h,visibleStopIndex:p+f}}({renderProps:e,scrollState:S,layoutOrder:c,rowCount:z,columnCount:F});Hl({renderProps:e,layoutOptions:A,maxCount:x.maxCount,columnCount:F,rowCount:z,overflowDisclaimer:E,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}),vl)}}}({direction:m,layout:d,width:y,checkboxes:j,deducedFrequencyMode:ye,histogram:z,keyboard:E,showGray:k,interactionEvents:ae,select:se,selectAll:()=>{f.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:_,textAlign:Ee,isVertical:fe,pages:ee,selectionState:f,isSingleSelect:N,selections:p,scrollState:L,local:W,sizes:ve,listCount:Se,overflowDisclaimer:{state:X,set:e=>Q((t=>te(te({},t),{},{show:e})))},setScrollPosition:Ce,focusListItems:{first:ke.first,setFirst:e=>Le((t=>te(te({},t),{},{first:e}))),last:ke.last,setLast:e=>Le((t=>te(te({},t),{},{last:e})))},setCurrentScrollIndex:q.set,constraints:u,frequencyMax:U,freqIsAllowed:be,translator:D,showSearch:O,isModal:T,styles:P}),{columnWidth:Ie,listHeight:_e,itemHeight:Oe}=ve||{};return fe||(pe=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:y,columnWidth:Ie,listHeight:_e,itemHeight:Oe})),t.createElement(Tc,null,t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},xe),!Se&&oe>0&&t.createElement(rc,{width:y,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(is,{isItemLoaded:ie,itemCount:Se||1,loadMoreItems:Z.with({minimumBatchSize:pe}),threshold:0,minimumBatchSize:pe,ref:F,role:"grid"},fe?Re:qe),X.show&&!X.dismissed&&t.createElement(Cc,{text:"Listbox.ItemsOverflow",dismiss:()=>Q((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 Dc=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"}}]}),Ac=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"}}]}),Mc=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"}}]}),Nc=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 jc=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:Dc,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:Mc,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:Ac,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:Nc,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{l(),o.clearItemStates(!1),n.selectListObjectExcluded(s)}}].filter(Boolean)};const zc=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 Fc(e){const t=sa(),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"},Bc=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=sa(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=Fc(o);if(s)return null;const d=Number.parseInt(a.spacing(.5),10),h=o.keyboardAction||o.action,p=h?e=>["Enter"].includes(e.key)&&h():null,f=h?e=>[" ","Spacebar"].includes(e.key)&&h():null,m="actions-toolbar-".concat(o.key);return t.createElement(_,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:p,onKeyUp:f,disabled:l,style:c,className:[Wc.className,m].join(" "),size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList","data-testid":m},u&&Qa(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Uc=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 Hc=e=>Qa(Uc(e));const $c=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 Gc=e=>Qa($c(e));const Kc="njs-action-toolbar-more",Vc={icon:"".concat("More","-icon")},Jc=wa(T)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Vc.icon," *")]:{color:t.palette.text.primary}}}));function Zc(e){let{item:n,autoFocus:r,onActionClick:o=(()=>{})}=e;const{hidden:i,disabled:a,hasSvgIconShape:s}=Fc(n);return i?null:t.createElement(D,{autoFocus:r,title:n.label,onClick:()=>{n.action(),o()},disabled:a,tabindex:"0"},s&&t.createElement(A,{className:Vc.icon},Qa(n.getSvgIconShape())),t.createElement(E,{noWrap:!0},n.label))}const Xc=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(Jc,Y({},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:Kc},paper:{style:te({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),t.createElement(P,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(Zc,{key:n,item:e,autoFocus:n===d,onActionClick:l})))))})),Qc=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},Yc=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 eu="ActionsToolbar",tu={item:"".concat(eu,"-item"),itemSpacing:"".concat(eu,"-itemSpacing")},nu=wa(T)((e=>{let{theme:t}=e;return{["& .".concat(tu.itemSpacing)]:{padding:t.spacing(0,.25)}}})),ru={className:"njs-action-toolbar-popover"},ou=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(R,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:r},i.map(((e,r)=>t.createElement(R,{item:!0,key:e.key,className:"".concat(tu.itemSpacing," ").concat(tu.item)},t.createElement(Bc,{ariaExpanded:o,key:e.key,item:e,ref:0===r?n:null,addAnchor:a}))))):null})),iu={pointerEvents:"none"};function au(e){var o,a;let{show:l=!0,actions:c=[],maxItems:u=3,selections:d={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:p,more:f={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:m={show:!1,anchorEl:null},focusHandler:g=null,actionsRefMock:b=null,isRtl:y,autoConfirm:v=!1,layout:S}=e;const w=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=s(Aa);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:$c},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:Uc},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:ms}]}(te(te({},d),{},{layout:S})),{translator:x,keyboardNavigation:C}=s(Aa),[E,k]=n(!1),L={vertical:12,horizontal:y?0:(null!==(o=null===(a=m.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},q={vertical:"bottom",horizontal:y?-7:"right"},I=h(),_=h(),O=sa(),T=i((()=>({margin:O.spacing(.5,0)}))),P=e=>{const t=I.current||b;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},D=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 ll.ARROW_LEFT:case ll.ARROW_DOWN:case ll.ARROW_RIGHT:case ll.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=Qc(a);let t=[ll.ARROW_LEFT,ll.ARROW_DOWN].includes(l);t=i?!t:t,Yc(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case ll.SPACE:e.preventDefault();break;case ll.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 ll.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:C,focusHandler:g,getEnabledButton:P,selections:d,isRtl:y})),[C,g,P,d,y]);if(r((()=>()=>{k(!1)}),[m.show,l,d.show]),r((()=>{if(!g)return;g.on("focus_toolbar_first",(()=>{const e=P(!1);null==e||e.focus()})),g.on("focus_toolbar_last",(()=>{const e=P(!0);null==e||e.focus()}))}),[]),v)return;let A=f.enabled,N=f.actions;const j=f.alignTo||_,z=c.filter((e=>!e.hidden));if(z.length>u){const e=z.splice(-(z.length-u)-1);A=!0,N=[...e,...f.actions]}if(!d.show&&0===z.length&&!A)return null;const F={key:"more",label:x.get("Menu.More"),getSvgIconShape:zc,hidden:!1,active:E,enabled:()=>A,action:()=>k(!E)},W=z.length>0,B=N.length>0,U=W&&d.show||B&&d.show,H=t.createElement(R,{ref:I,onKeyDown:D,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:y?"row-reverse":"row"}},(null==p?void 0:p.length)&&t.createElement(ou,{className:"actions-toolbar-extra-actions",actions:p,isRtl:y}),W&&t.createElement(ou,{actions:z}),B&&t.createElement(ou,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:_,ariaExpanded:E,actions:[F],addAnchor:!0}),U&&t.createElement(R,{item:!0,className:tu.itemSpacing,style:T},t.createElement(M,{orientation:"vertical"})),d.show&&t.createElement(ou,{className:"actions-toolbar-default-actions",actions:w,isRtl:y}),E&&t.createElement(Xc,{show:E,actions:N,alignTo:j,popoverProps:f.popoverProps,popoverPaperStyle:f.popoverPaperStyle,onCloseOrActionClick:()=>{k(!1)},disablePortal:f.disablePortal}));return m.show?t.createElement(nu,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:m.show,anchorEl:m.anchorEl,anchorOrigin:L,transformOrigin:q,hideBackdrop:!0,style:iu,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:ru.className,style:{pointerEvents:"auto",padding:O.spacing(.5,.25)}}}},H):l&&H}var su=e=>Qa((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 lu="/qListObjectDef",cu=e=>null==e?void 0:e.substring(0,64e3),uu=wa(N,{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)})),du=wa(_)((()=>({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 hu=o((function(e,o){let{popoverOpen:i,selections:l,selectionState:c,model:u,keyboard:d,dense:p=!1,visible:f=!0,autoFocus:m=!0,beginSelectionOnFocus:g=!0,wildCardSearch:b=!1,searchEnabled:y,direction:v,hide:S,styles:w}=e;const{translator:x}=s(Aa),[C,E]=n(""),[k,L]=n(!1),R=h(),q=h(),I=x.get("Listbox.Clear.Search"),{getStoreValue:_,setStoreValue:O}=tc(u),T="rtl"===v,P=async()=>{try{await u.abortListObjectSearch(lu)}finally{E("")}};r((()=>f?()=>P():()=>{}),[f]),r((()=>(l.on("deactivated",P),()=>{l.removeListener&&l.removeListener("deactivated",P)})),[]),r((()=>{if(k&&R.current){const e=C.length-1;R.current.setSelectionRange(e,e),L(!1)}}),[k,R.current]),r((()=>{O("inputText",C)}),[C]);const D=async()=>{let e;const t=cu(C),n=await u.searchListObjectFor(lu,t);return c.selectDisabled()?n:(n&&t.length&&_("listCount")>0&&(e=u.acceptListObjectSearch(lu,!0),l.selectionsMade=!0,c.clearItemStates(!1),E("")),e)},A=()=>{var e;null===(e=R.current)||void 0===e||e.focus()},M=()=>{P(),A()};return a(o,(()=>({focus(){A()}}))),f&&!1!==y?t.createElement(uu,{styles:w,dense:p,isRtl:T,startAdornment:t.createElement(j,{position:"start",sx:{marginLeft:p?"8px":"".concat(Ss,"px")}},t.createElement(su,{size:p?"small":"normal"})),endAdornment:t.createElement(j,{position:"end",sx:{marginLeft:0}},""!==C&&t.createElement(du,{tabIndex:0,ref:q,title:I,"aria-label":I,onClick:M,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":M();break;case"Tab":e.shiftKey?A():fl(t);break;default:return}e.preventDefault(),e.stopPropagation()}},t.createElement(Hc,{size:p?"small":"normal"}))),className:"search",inputRef:R,size:"small",fullWidth:!0,placeholder:x.get("Listbox.Search"),value:C,onFocus:()=>{b&&(E("**"),L(!0)),g&&!c.selectDisabled()&&!l.isModal()&&l.begin("/qListObjectDef")},onChange:async e=>{const t=cu(e.target.value);return E(t),t.length?u.searchListObjectFor(lu,t):P()},onKeyDown:async e=>{const{currentTarget:t}=e,n=t.closest(".listbox-container");switch(e.key){case"Enter":D();break;case"Escape":if(fl(n),l.cancel(),i)return;break;case"Tab":e.shiftKey?ml(n)||d.focusSelection():q.current?q.current.focus():fl(n);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;S&&(S(),fl(n));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:m,inputProps:{tabIndex:d.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":x.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function pu(e){if(!e.session)return[];const{selectionStore:t}=s(Aa),[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 fu(e){return Object.keys(de.prototype).forEach((t=>{e[t]=de.prototype[t]})),de.init(e),e}const mu=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 fu(s),s},gu=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 bu(e,t,o,i){const a=Array.isArray(o)?o:[o],[l]=pu(e),[c]=Va(t),{appModalStore:u}=s(Aa).selectionStore,d=u.get(e.id),[h,p]=n();return r((()=>{l&&t&&!h&&p(mu({appSelections:l,appModal:d,model:t}))}),[l,t]),r((()=>{if(!h)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=gu({elements:a,objectSelections:h,options:i});return h.addListener("activated",e),h.addListener("deactivated",t),()=>{h.isActive()&&h.confirm(),h.removeListener("activated",e),h.removeListener("deactivated",t)}}),[h]),r((()=>{h&&h.setLayout(c)}),[h,c]),[h]}function yu(){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=ls(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 vu=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 Su(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return vu(t,"qSelected",0)+vu(t,"qSelectedExcluded",0)+vu(t,"qLocked",0)+vu(t,"qLockedExcluded",0)>0}function wu(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 xu(e){if("object"==typeof e&&wu(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const Cu={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function Eu(...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(wu(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 h=a-.5*l;n=d[0]+h,r=d[1]+h,o=d[2]+h,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 h=a-.5*l;n=d[0]+h,r=d[1]+h,o=d[2]+h,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 h=a-l;n=d[0]+h,r=d[1]+h,o=d[2]+h,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in Cu}(e)){const t=Cu[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function ku(e){let t,n,r;if(wu(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?xu(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?Eu(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 Ru(e){let t,n,r=0;const o="string"==typeof e?Eu(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 qu(e){if(wu(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?xu(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function Iu(e,t){return wu(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Iu(Eu(e))}function _u(e){return wu(e)?1===e.a?qu(e):Iu(e):_u(Eu(e))}const Ou=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Tu(e){return.2126*Ou(e.r)+.7152*Ou(e.g)+.0722*Ou(e.b)}function Pu(...e){const t=Eu(...e);return t.invalid||Tu(t)<.4}function Du(...e){const t=Eu(...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=Eu(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:()=>Pu(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=qu(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=Iu(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=_u(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=ku(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Eu(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}=Ru(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=Ru(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)=>Du(o(18*e)),getDarkenedColor:(e=1)=>Du(o(18*-e))}}function Au(e,t){if(!e||!t)return;const n=Tu(e),r=Tu(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Mu(e,t){const n=Du("#FFFFFF"),r=Du(e),o=Du(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=Au(n,r),a=Au(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}function Nu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ju,zu,Fu,Wu="top",Bu="top-right",Uu="right",Hu="bottom-right",$u="bottom",Gu="bottom-left",Ku="left",Vu="top-left";Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(ju={},"equal-equal",[Wu,$u]),"equal-higher",[$u,Hu]),"equal-lower",[Wu,Bu]),"equal-void",[Wu,$u]),"higher-equal",[Ku,Gu,Wu,Bu]),"higher-higher-acute",[$u,Gu,Ku,Bu]),"higher-higher-obtuse",[$u,Wu]),"higher-lower-negative",[Wu,Bu,Uu]),"higher-lower-positive",[$u,Gu,Ku]),"higher-void",[Wu]),Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(ju,"lower-equal",[Wu]),"lower-higher-negative",[Wu,Vu]),"lower-higher-positive",[Hu]),"lower-lower-acute",[Wu,Vu,Ku,Bu,Uu]),"lower-lower-obtuse",[Wu,$u]),"lower-void",[Wu]),"void-equal",[Wu]),"void-higher",[Wu,$u]),"void-lower",[Wu,$u,Ku]),"void-void",[Wu]),Nu(ju,"unclassified",[Wu,$u,Uu,Ku,Bu,Hu,Gu,Vu]);var Ju=function(){if(Fu)return zu;Fu=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 zu=function e(){var t,n,r,l,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},zu}();function Zu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Xu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Qu(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Ju);var Yu=1/.7,ed="\\s*([+-]?\\d+)\\s*",td="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rd=/^#([0-9a-f]{3,8})$/,od=new RegExp(`^rgb\\(${ed},${ed},${ed}\\)$`),id=new RegExp(`^rgb\\(${nd},${nd},${nd}\\)$`),ad=new RegExp(`^rgba\\(${ed},${ed},${ed},${td}\\)$`),sd=new RegExp(`^rgba\\(${nd},${nd},${nd},${td}\\)$`),ld=new RegExp(`^hsl\\(${td},${nd},${nd}\\)$`),cd=new RegExp(`^hsla\\(${td},${nd},${nd},${td}\\)$`),ud={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 dd(){return this.rgb().formatHex()}function hd(){return this.rgb().formatRgb()}function pd(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rd.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?fd(t):3===n?new yd(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?md(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?md(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=od.exec(e))?new yd(t[1],t[2],t[3],1):(t=id.exec(e))?new yd(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ad.exec(e))?md(t[1],t[2],t[3],t[4]):(t=sd.exec(e))?md(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ld.exec(e))?Ed(t[1],t[2]/100,t[3]/100,1):(t=cd.exec(e))?Ed(t[1],t[2]/100,t[3]/100,t[4]):ud.hasOwnProperty(e)?fd(ud[e]):"transparent"===e?new yd(NaN,NaN,NaN,0):null}function fd(e){return new yd(e>>16&255,e>>8&255,255&e,1)}function md(e,t,n,r){return r<=0&&(e=t=n=NaN),new yd(e,t,n,r)}function gd(e){return e instanceof Qu||(e=pd(e)),e?new yd((e=e.rgb()).r,e.g,e.b,e.opacity):new yd}function bd(e,t,n,r){return 1===arguments.length?gd(e):new yd(e,t,n,null==r?1:r)}function yd(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vd(){return`#${Cd(this.r)}${Cd(this.g)}${Cd(this.b)}`}function Sd(){const e=wd(this.opacity);return`${1===e?"rgb(":"rgba("}${xd(this.r)}, ${xd(this.g)}, ${xd(this.b)}${1===e?")":`, ${e})`}`}function wd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cd(e){return((e=xd(e))<16?"0":"")+e.toString(16)}function Ed(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ld(e,t,n,r)}function kd(e){if(e instanceof Ld)return new Ld(e.h,e.s,e.l,e.opacity);if(e instanceof Qu||(e=pd(e)),!e)return new Ld;if(e instanceof Ld)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 Ld(a,s,l,e.opacity)}function Ld(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Rd(e){return(e=(e||0)%360)<0?e+360:e}function qd(e){return Math.max(0,Math.min(1,e||0))}function Id(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Zu(Qu,pd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dd,formatHex:dd,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return kd(this).formatHsl()},formatRgb:hd,toString:hd}),Zu(yd,bd,Xu(Qu,{brighter(e){return e=null==e?Yu:Math.pow(Yu,e),new yd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new yd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yd(xd(this.r),xd(this.g),xd(this.b),wd(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:vd,formatHex:vd,formatHex8:function(){return`#${Cd(this.r)}${Cd(this.g)}${Cd(this.b)}${Cd(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Sd,toString:Sd})),Zu(Ld,(function(e,t,n,r){return 1===arguments.length?kd(e):new Ld(e,t,n,null==r?1:r)}),Xu(Qu,{brighter(e){return e=null==e?Yu:Math.pow(Yu,e),new Ld(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ld(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 yd(Id(e>=240?e-240:e+120,o,r),Id(e,o,r),Id(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ld(Rd(this.h),qd(this.s),qd(this.l),wd(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=wd(this.opacity);return`${1===e?"hsl(":"hsla("}${Rd(this.h)}, ${100*qd(this.s)}%, ${100*qd(this.l)}%${1===e?")":`, ${e})`}`}}));const _d=Math.PI/180,Od=180/Math.PI,Td=4/29,Pd=6/29,Dd=3*Pd*Pd;function Ad(e){if(e instanceof Md)return new Md(e.l,e.a,e.b,e.opacity);if(e instanceof Wd)return Bd(e);e instanceof yd||(e=gd(e));var t,n,r=Fd(e.r),o=Fd(e.g),i=Fd(e.b),a=Nd((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Nd((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Nd((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Md(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Md(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Nd(e){return e>.008856451679035631?Math.pow(e,1/3):e/Dd+Td}function jd(e){return e>Pd?e*e*e:Dd*(e-Td)}function zd(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 Wd(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Bd(e){if(isNaN(e.h))return new Md(e.l,0,0,e.opacity);var t=e.h*_d;return new Md(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Zu(Md,(function(e,t,n,r){return 1===arguments.length?Ad(e):new Md(e,t,n,null==r?1:r)}),Xu(Qu,{brighter(e){return new Md(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Md(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 yd(zd(3.1338561*(t=.96422*jd(t))-1.6168667*(e=1*jd(e))-.4906146*(n=.82521*jd(n))),zd(-.9787684*t+1.9161415*e+.033454*n),zd(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Zu(Wd,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Wd)return new Wd(e.h,e.c,e.l,e.opacity);if(e instanceof Md||(e=Ad(e)),0===e.a&&0===e.b)return new Wd(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Od;return new Wd(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Wd(e,t,n,null==r?1:r)}),Xu(Qu,{brighter(e){return new Wd(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Wd(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Bd(this).rgb()}}));var Ud=e=>()=>e;function Hd(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ud(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Hd: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):Ud(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=bd(e)).r,(t=bd(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Hd(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 $d,Gd="center",Kd="bottom";function Vd(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 Jd(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Xd)):void 0===t&&(t=Zd);for(var n,r,o,i,a,s=new eh(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 eh(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Yd)}function Zd(e){return e.children}function Xd(e){return Array.isArray(e)?e[1]:null}function Qd(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Yd(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function eh(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Gd,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:Gd,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:Gd,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:Gd},{key:"DataRangeIncludingZero",alignment:Kd},{key:"LimitedData",alignment:Kd},{key:"NegativeOrZeroValues",alignment:Kd}].reduce((function(e,t){return e[t.key]=t,e}),{}),eh.prototype=Jd.prototype={constructor:eh,count:function(){return this.eachAfter(Vd)},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 Jd(this).eachBefore(Qd)},[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)}},$d=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,h=e.length,p=e.search(/[0-9\-\+#]/),f=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=h-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),S=g>0?e.substring(v,h):"";if(n=(t="-"===(e=e.substring(p,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%l,h=d.length,v=0;v<h;v++)m+=d.charAt(v),!((v-b+1)%l)&&v<h-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+S}},Gd({exports:{}});const nh=/,(?![^(]*\))/,rh=/\s(?![^(]*\))/,oh=/^[0-9]+[a-zA-Z%]+?$/,ih=["none","inset","initial","inherit"],ah=e=>{if(!e)return;const t=e.split(rh).filter(e=>!ih.includes(e.toLowerCase())).at(-1),n=!t||(e=>"0"===e||oh.test(e))(t)||ih.includes(t.toLowerCase())?void 0:t;return n},sh=e=>e?e.split(nh).map(e=>e.trim()):[];function lh(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function ch(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:lh(t,n,r,o)}const uh={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},dh={"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 hh(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 ph(e,t,n){const r=null==e?void 0:e.bgImage;if(r){let o="";if("media"===r.mode||"media"===e.useImage){let e;const i=null==r?void 0:r.mediaUrl,{qUrl:a}=(null==i?void 0:i.qStaticContentUrl)||{};o=a?decodeURIComponent(a):void 0,o=hh(t,o),n&&(e=Object.entries(n).map(e=>{let[t,n]=e;return"&".concat(t,"=").concat(encodeURIComponent(n))}).join("&"),o="".concat(o,"?").concat(e))}"expression"===r.mode&&(o=r.expressionUrl?decodeURIComponent(r.expressionUrl):void 0);const i=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=dh[e.bgImage.position]),n}(e),a=function(e){var t;let n=uh.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=uh[r]),n}(e);return o?{url:o,pos:i,size:a}:void 0}}function fh(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):ch(null==r?void 0:r.color,"","backgroundColor",t,n)}function mh(e,t,n){var r,o;const i=lh("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&ih.includes(e.toLowerCase()))return e.toLowerCase();const r=sh(e);if(1!==r.length)return e;let o=n;if(!o){const n=sh(t);if(1!==n.length)return e;o=ah(n[0])}if(!o)return e;const i=ah(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,ch(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function gh(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 bh={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},yh=["theme","selections"];function vh(e){var t,n,r,o,i,a,s,l;let{app:c,themeApi:u,theme:d,queryParams:h,components:p=[],checkboxes:f=!1}=e;const m=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(t=>{const n=null==t?void 0:t.key;yh.includes(n)&&(e[n]=t)}),e}(p),g=(e,t)=>u.getStyle("object.listBox",e,t),b=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e):void 0,y=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,h=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),f=(null===(i=c.selections)||void 0===i?void 0:i.colors)||{},m=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),i=a(f[e])||l("","dataColors.".concat(e))||"possible"===e&&l("","backgroundColor")||(null===(t=s.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||bh[e],c=p?Nu(i,h):h||(null===(n=s.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")]);return{[e]:i,[o]:c}};return te(te(te(te(te({},m("selected")),m("alternative")),m("excluded")),m("selectedExcluded")),m("possible"))}({getColorPickerColor:b,theme:d,getListboxStyle:g,overrides:m,checkboxes:f}),v=m.theme||{},S=b(null===(t=v.header)||void 0===t?void 0:t.fontColor)||g("title.main","color"),w=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?fh({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?ph({bgImage:v.background.image},c,h):void 0,C=w||g("","backgroundColor")||d.palette.background.default,E=function(e,t){const n=Au(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(C,g),k=function(e){return Nu("#fff",e("content","color"))}(g),L=(null===(r=v.header)||void 0===r?void 0:r.fontStyle)||{},R=(null===(o=v.content)||void 0===o?void 0:o.fontStyle)||{},q=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:C,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:S,fontSize:(null===(i=v.header)||void 0===i?void 0:i.fontSize)||g("title.main","fontSize"),fontFamily:(null===(a=v.header)||void 0===a?void 0:a.fontFamily)||g("title.main","fontFamily"),fontWeight:q(L.bold,"bold","normal")||g("title.main","fontWeight")||"bold",textDecoration:L.underline?"underline":"initial",fontStyle:q(L.italic,"italic","normal")||g("title.main","fontStyle")||"initial"},content:{backgroundColor:f?void 0:y.possible,color:y.possibleContrast||g("content","color"),fontSize:(null===(s=v.content)||void 0===s?void 0:s.fontSize)||g("content","fontSize"),fontFamily:(null===(l=v.content)||void 0===l?void 0:l.fontFamily)||g("content","fontFamily"),fontWeight:q(R.bold,"bold","normal")||g("content","fontWeight")||"normal",textDecoration:R.underline?"underline":"initial",fontStyle:q(R.italic,"italic","normal")||g("content","fontStyle")||"initial"},search:{color:k,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:E,backdropFilter:"blur(8px)"},selections:y}}function Sh(e){let{app:t,themeApi:n,theme:r,queryParams:o,components:i,checkboxes:a}=e;return vh({app:t,themeApi:n,theme:r,queryParams:o,components:i,checkboxes:a})}function wh(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:f="$",autoFocus:m,components:g,checkboxes:b,selectDisabled:y=()=>!1,sortCriteria:v=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:S="ltr"}=e;const w=Boolean(null==p?void 0:p.qLibraryId),x=l&&Boolean(o.current),[C,E]=n(0),k=_a(),L=h(),[q]=ds({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:f,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:v,qFieldDefs:w?void 0:[p]},qLibraryId:w?p.qLibraryId:void 0}},d,p,f),I=c(()=>{q.lock("/qListObjectDef")},[q]),O=c(()=>{q.unlock("/qListObjectDef")},[q]),{translator:P,themeApi:D,keyboardNavigation:A,hostConfig:M}=s(os),N=h(),j=h(),[z]=yu(d,q,j),[F]=gs(q),[$]=n(()=>vu({selectDisabled:y})),W=yl({containerRef:j,enabled:A}),{checkboxes:B=b}=F||{},U=Sh({themeApi:D,theme:k,components:g,checkboxes:B});if(r(()=>{z&&x&&(z.isModal(q)||z.goModal("/qListObjectDef"))},[z,x]),!(q&&F&&P&&U))return null;const H=!0===F.qListObject.qDimensionInfo.qLocked,G=(e,t)=>{const n="escapeKeyDown"!==t;z.noModal(n),u()},K=Fc({layout:F,model:q,translator:P,selectionState:$,selections:z}),V=wu(F);return t.createElement(T,{className:"listbox-container",open:x,onClose:G,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?G():void 0,direction:S},t.createElement(R,{container:!0,direction:"column",gap:0,ref:j},t.createElement(R,{item:!0,container:!0,style:{direction:S,padding:k.spacing(1)}},t.createElement(R,{item:!0},H?t.createElement(_,{onClick:O,disabled:!H,size:"large"},t.createElement(xs,{title:P.get("Listbox.Unlock")})):t.createElement(_,{onClick:I,disabled:!V,size:"large"},t.createElement(Es,{title:P.get("Listbox.Lock")}))),t.createElement(R,{item:!0,xs:!0}),t.createElement(R,{item:!0},t.createElement(su,{layout:F,more:{enabled:!H,actions:K,alignTo:N,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:z,onConfirm:G,onCancel:()=>G(0,"escapeKeyDown")}}))),t.createElement(R,{item:!0,xs:!0},t.createElement("div",{ref:N}),t.createElement(R,{item:!0},t.createElement(pu,{ref:L,popoverOpen:x,styles:U,visible:!0,model:q,listCount:C,selections:z,selectionState:$,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:W.focusSelection},autoFocus:null==m||m,direction:S})),t.createElement(Ac,{model:q,app:d,layout:F,selections:z,selectionState:$,direction:S,onSetListCount:e=>E(e),onCtrlF:()=>{L.current.focus()},styles:U,keyboard:W}))))}function xh(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:l=null,onClose:c=()=>{}}=e;const{translator:u}=s(os),d=l||h(),p=_a(),[f,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!f)},b=()=>{m(!1),c()},y=r.selections[i];void 0===y.qTotal&&(y.qTotal=0);const v=y.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},S=(v.qSelected+v.qLocked)/y.qTotal,w=v.qAlternative/y.qTotal,x=(v.qExcluded+v.qLockedExcluded+v.qSelectedExcluded)/y.qTotal,C=v.qSelected+v.qSelectedExcluded+v.qLocked+v.qLockedExcluded,k=0===C&&0===y.qTotal;let L="";y.qTotal===C&&y.qTotal>1?L=u.get("CurrentSelections.All"):C>1&&y.qTotal?L=u.get("CurrentSelections.Of",[C,y.qTotal]):y.qSelectedFieldSelectionInfo&&(L=y.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==r.states[i]&&(L="".concat(r.states[i],": ").concat(L));const q=[{color:p.palette.selected.main,ratio:S},{color:p.palette.selected.alternative,ratio:w},{color:p.palette.selected.excluded,ratio:x}];q.forEach((e,t)=>{e.offset=t?q[t-1].offset+q[t-1].ratio:0});let I=null,O=null,T=null,P=null;return l||(I=t.createElement(R,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:y.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"}},L)),y.qLocked?O=t.createElement(R,{item:!0},t.createElement(_,{size:"large"},t.createElement(xs,null))):y.qOneAndOnlyOne||(O=t.createElement(R,{item:!0},t.createElement(_,{title:u.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(y.qField,r.states[i])},size:"large"},t.createElement(ws,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===k&&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,"%")}}))),P=t.createElement(R,{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,f&&t.createElement(wh,{alignTo:d,show:f,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}))),l?t.createElement(wh,{alignTo:d,show:!0,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}):P}var Ch=e=>Ss((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 Eh={item:"".concat("MultiState","-item")},kh=Ua(R)(e=>{let{theme:t}=e;return{["&.".concat(Eh.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}});function Lh(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=()=>{}}=e;const[l,c]=n(!!i),[u,d]=n(-1),[p,f]=n(i?i.current:null),m=i||h(),{translator:g}=s(os),b=g.get("Selection.ClearAllStates"),y=()=>{d(-1),a()};let v=null;i||(v=t.createElement(t.Fragment,null,t.createElement(R,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(z,{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(R,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(R,{item:!0},t.createElement(_,{size:"large"},t.createElement(Ch,null)))));const S=t.createElement(F,{dense:!0},t.createElement($,{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($,{key:n,title:r.label,onClick:e=>((e,t)=>{e.stopPropagation(),c(!1),d(t)})(e,n)},t.createElement(L,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(xh,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0}))))),w=t.createElement(T,{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),x=i?w:t.createElement(kh,{container:!0,gap:0,className:Eh.item,onClick:e=>{e.currentTarget.contains(e.target)&&(f(e.currentTarget),m.current=e.currentTarget,c(!l))}},v,l&&w,u>-1&&t.createElement(wh,{alignTo:m,show:u>-1,close:y,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}));return i&&u>-1?t.createElement(wh,{alignTo:m,show:u>-1,close:y,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}):x}const Rh="More",qh={item:"".concat(Rh,"-item"),badge:"".concat(Rh,"-badge")},Ih=Ua(R)(e=>{let{theme:t}=e;return{["&.".concat(qh.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(qh.badge)]:{padding:t.spacing(0,1)}}});function _h(e){let{items:r=[],api:o}=e;const i=_a(),[a,s]=n(!1),[l,c]=n(-1),[u,d]=n(null),p=h(),f=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(Lh,{field:r[l],api:o,moreAlignTo:p,onClose:f}):t.createElement(xh,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:p,onClose:f})),t.createElement(Ih,{container:!0,gap:0,className:qh.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),p.current=e.currentTarget,s(!a))}},t.createElement(R,{item:!0},t.createElement(L,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(E,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(R,{item:!0},t.createElement(_,{size:"large"},t.createElement(Ch,null))),a&&t.createElement(T,{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(F,{dense:!0},r.map((e,n)=>t.createElement($,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(L,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(Lh,{field:e,api:o}):t.createElement(xh,{field:e,api:o})))))),m)}function Oh(e){let{api:o,app:i}=e;const a=_a(),[l]=ps(i),[c]=gs(l),[u,d]=n({items:[],more:[]}),{modalObjectStore:h}=s(os).selectionStore,[p,f]=ys(),[m,g]=n(0);return r(()=>{if(!f)return;const{width:e}=f,t=Math.floor(e)-72,n=Math.floor(t/120);g(n)},[f]),r(()=>{if(!(i&&l&&c&&m))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach(e=>{const r=e.qField;let o=t[r];var i;void 0===o&&(o={name:r,label:(null===(i=e.qDimensionReferences)||void 0===i||null===(i=i.find(e=>e.qLabel))||void 0===i?void 0:i.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)})}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach(e=>n(e.qSelectionObject,e.stateName)),Object.keys(t).map(e=>t[e]).filter(e=>!e.selections.some(e=>e.qIsHidden))}(c);d(t=>{const n=e;if((()=>{const{model:e}=h.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(R,{ref:p,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},u.items.map(e=>t.createElement(R,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(Lh,{field:e,api:o}):t.createElement(xh,{field:e,api:o}))),u.more.length>0&&t.createElement(R,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(_h,{items:u.more,api:o})))}var Th=e=>Ss((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 Ph=e=>Ss((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));function Dh(e){const[t]=ps(e),[o]=gs(t),[i]=bs(e),[a,s]=n(null);return r(()=>{i&&t&&o&&((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)})(t,o,i)},[i,t,o]),r(()=>{if(!o)return;let e=!1,t=!1,n=!1;[o,...o.alternateStates||[]].forEach(r=>{e=e||r.qSelectionObject&&r.qSelectionObject.qBackCount>0,t=t||r.qSelectionObject&&r.qSelectionObject.qForwardCount>0,n=n||(r.qSelectionObject&&r.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),s({canGoBack:e,canGoForward:t,canClear:n})},[o]),[a,t,o]}function Ah(e){let{api:n,app:r}=e;const{translator:o}=s(os),[i]=Dh(r);return t.createElement(R,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(R,{item:!0},t.createElement(_,{style:{marginRight:"8px"},disabled:!i||!i.canGoBack,title:o.get("Navigate.Back"),onClick:()=>n.back(),size:"large"},t.createElement(Th,null))),t.createElement(R,{item:!0},t.createElement(_,{style:{marginRight:"8px"},disabled:!i||!i.canGoForward,title:o.get("Navigate.Forward"),onClick:()=>n.forward(),size:"large"},t.createElement(Ph,null))),t.createElement(R,{item:!0},t.createElement(_,{disabled:!i||!i.canClear,title:o.get("Selection.ClearAll"),onClick:()=>n.clear(),size:"large"},t.createElement(Vc,null))))}const Mh=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Nh(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function jh(){return Mh.map(Nh).join("")}function zh(e){let{app:n}=e;const r=_a(),[o]=fu(n);return o?t.createElement(R,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(R,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(Ah,{api:o,app:n})),t.createElement(R,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(Oh,{api:o,app:n}))):null}let Fh;Fh="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let $h=null,Wh=null;const Bh=Fh.clearTimeout,Uh=Fh.setTimeout,Hh=Fh.cancelAnimationFrame||Fh.mozCancelAnimationFrame||Fh.webkitCancelAnimationFrame,Gh=Fh.requestAnimationFrame||Fh.mozRequestAnimationFrame||Fh.webkitRequestAnimationFrame;function Kh(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__&&$h(this.__resizeRAF__),this.__resizeRAF__=Wh(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=Fh.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==Hh||null==Gh?($h=Bh,Wh=function(e){return Uh(e,20)}):($h=function([e,t]){Hh(e),Bh(t)},Wh=function(e){const t=Gh(function(){Bh(n),e()}),n=Uh(function(){Hh(t),e()},20);return[t,n]});class Vh extends f{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,h=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===h&&this.state.scaledWidth===u)||(this.setState({height:d,width:h,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:h}))}},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=Kh(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:h,scaledWidth:f,width:m}=this.state,g={overflow:"visible"},b={};let y=!1;return r||(0===d&&(y=!0),g.height=0,b.height=d,b.scaledHeight=h),o||(0===m&&(y=!0),g.width=0,b.width=m,b.scaledWidth=f),i&&(y=!1),p(c,{ref:this._setRef,style:{...g,...l},...u},!y&&e(b))}}function Jh(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 ml.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(r){wl(a)||Sl(a)||Cl(e,t)}else{if(!(xl(a)||Sl(a)||wl(a)))break}o();break;case ml.ENTER:case ml.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case ml.ESCAPE:Cl(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 ml.ARROW_UP:r({up:1});break;case ml.ARROW_DOWN:r({down:1});break;case ml.PAGE_UP:r({up:o.stop-o.start});break;case ml.PAGE_DOWN:r({down:o.stop-o.start});break;case ml.HOME:r({scrollPosition:s&&l?"overflowStart":"start"});break;case ml.END:r({scrollPosition:s&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Zh=Ua("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function Xh(e){let{text:n}=e;const{translator:r}=s(os);return t.createElement(Zh,null,r.get(n))}const Qh={fontSize:"12px"},Yh=Ua(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(7,"px")}}}),ep=Ua(R,{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}})}),tp=Ua(E)(e=>{let{styles:t}=e;return te(te({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})});function np(e){let{translator:n,toggleLock:r,keyboard:o,isLoading:i}=e;const a=n.get("SelectionToolbar.ClickToUnlock");return t.createElement(Yh,{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(xs,{disableRipple:!0,style:Qh}),!i&&t.createElement(E,{fontSize:"14px"},a))}var rp=e=>Ss((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 op=e=>Ss((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 ip=e=>Ss((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 ap="H",sp="C";var lp=e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:i,keyboard:a}=e;switch(t.qGrouping){case ap:return{icon:op,tooltip:"Listbox.DrillDown",onClick:void 0};case sp:{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?ip:rp,tooltip:"Listbox.Cyclic",onClick:e?s:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case ml.SPACE:case ml.ENTER:s();break;case ml.TAB:{if(!a.enabled)return;let n;n=e.shiftKey?a.focusSelection():Sl(t)||wl(t),n||Cl(e,a)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}};const cp=O(W)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0}));function up(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,h=r.get(l);return c?t.createElement(cp,{variant:"outlined",onClick:c,tabIndex:a.innerTabStops?0:-1,title:h,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:h,size:"large",style:te(te({},o),{},{padding:"".concat(7,"px")})})}let dp=0;function hp(e){var o,i,a;let{layout:s,translator:l,styles:c,isRtl:u,showLock:d,showSearchIcon:p,constraints:f,onShowSearch:m,classes:g,containerRect:b,isPopover:y,showToolbar:v,showDetachedToolbarOnly:S,containerRef:w,model:x,selectionState:C,isDirectQuery:E,selections:k,keyboard:L,autoConfirm:q,app:I,disablePortal:O}=e;const[T,P]=n(S),[D,A]=n(null==s||null===(o=s.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked),[M,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=h(null),z=lp({dimInfo:null==s||null===(a=s.qListObject)||void 0===a?void 0:a.qDimensionInfo,app:I,selections:k,isPopover:y,active:!(null!=f&&f.active),keyboard:L}),F=d&&D,$=!d&&D,W=p||$||z,B=9-(W?7:0),U=u?9-(W?7:0):4,H=(p?28:0)+($?28:0)+(z?28:0),G=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-dp<500)return Promise.resolve();if(r)return()=>{};i(!0),dp=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch(()=>{n(t)}).finally(()=>{setTimeout(()=>{i(!1)},0)})}}({isLocked:D,setLocked:A,settingLockedState:M,setSettingLockedState:N,model:x}),K=Fc({layout:s,model:x,translator:l,selectionState:C,isDirectQuery:E,selections:k}),V=D||!d?void 0:[{key:"lock",type:void 0,label:l.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Cs,enabled:()=>!M&&!C.selectDisabled()&&wu(s),action:G}],J=null!=f&&f.active?t.createElement(lu,{title:l.get("Listbox.Search"),size:"large",style:te(te({},Qh),{},{padding:"".concat(7,"px")})}):t.createElement(_,{onClick:m,tabIndex:-1,title:l.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(lu,{style:Qh}));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,h=(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&&!h)}({containerRect:b,titleRef:j,iconsWidth:H,paddingLeft:B,paddingRight:U});P(S||e)},[H,B,U,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:!y&&T,showToolbar:v,containerRef:w,isLocked:D,extraItems:V,listboxSelectionToolbarItems:K,selections:k,keyboard:L,autoConfirm:q,disablePortal:O}),X=t.createElement(su,Y({isRtl:u,layout:s},Z));if(S)return X;const Q=$?t.createElement(xs,{size:"large",style:te(te({},Qh),{},{padding:"".concat(7,"px")})}):void 0;return t.createElement(ep,{item:!0,container:!0,styles:c,isRtl:u,marginY:1,paddingLeft:"".concat(B,"px"),paddingRight:"".concat(U,"px"),className:"header-container"},F&&t.createElement(np,{isLoading:M,translator:l,toggleLock:G,keyboard:L}),W&&t.createElement(R,{item:!0,container:!0,alignItems:"center",width:H,className:"header-action-container"},Q||p&&J,t.createElement(up,{iconData:z,iconStyle:Qh,disabled:k.isActive()&&y,translator:l,keyboard:L})),t.createElement(R,{item:!0,xs:!0,minWidth:0,justifyContent:u?"flex-end":"flex-start",className:g.listBoxHeader},t.createElement(tp,{variant:"h6",noWrap:!0,ref:j,title:s.title,styles:c},s.title)),t.createElement(R,{item:!0,display:"flex"},X))}const pp="ListBoxInline",fp={listBoxHeader:"".concat(pp,"-listBoxHeader"),screenReaderOnly:"".concat(pp,"-screenReaderOnly"),listboxWrapper:"".concat(pp,"-listboxWrapper")},mp=Ua(R,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})(e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return te(te({},o.background),{},{["& .".concat(fp.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(fp.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(fp.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 gp=t.memo(function(e){var o,a,l,u;let{options:d,layout:p}=e;const{app:f,direction:m,frequencyMode:g,checkboxes:b,search:y=!0,focusSearch:v=!1,rangeSelect:S=!0,model:w,selections:x,update:C,fetchStart:E,postProcessPages:k,calculatePagesHeight:L,showGray:q=!0,scrollState:I,renderedCallback:_,toolbar:O=!0,isPopover:T=!1,showLock:P=!1,components:D,selectDisabled:A=()=>!1,disablePortal:M=!0}=d,N=_a(),{translator:j,keyboardNavigation:z,themeApi:F,queryParams:$,constraints:W}=s(os),{checkboxes:B=b}=p||{},U=Sh({app:f,themeApi:F,theme:N,queryParams:$,components:D,checkboxes:B}),H=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==f?void 0:f.layout}),G=h(),K=h(),[V,J]=ys(),[Z,X]=n(!1),[Q,Y]=n(!1),ee=h(!1),[ne,re]=n({down:0,up:0,scrollPosition:""}),oe=e=>re(t=>te(te({},t),e)),[ie,ae]=n({start:0,stop:0}),[se]=fu(f),[le]=n(()=>vu({selectDisabled:A})),ce=yl({containerRef:G,enabled:z}),ue=c(()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:f,appSelections:se}),[f,se]),de=null==p?void 0:p.qListObject.qDimensionInfo.qError,he=de&&W.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:pe,handleOnMouseEnter:fe,handleOnMouseLeave:me,globalKeyDown:ge}=i(()=>Jh({keyboard:ce,hovering:ee,updateKeyScroll:oe,currentScrollIndex:ie,constraints:W,isModal:ue,selections:x}),[ce,ee,oe,G,ie,f,se,W,ue]);r(()=>(document.addEventListener("keydown",ge),()=>{document.removeEventListener("keydown",ge)}),[ge]),r(()=>{!0===y&&Y(!0);const e=()=>{X(!0)},t=()=>{X(!1),"toggle"===y&&Y(!1)};return T&&(x.isActive()||(x.on("activated",e),x.on("deactivated",t)),X(T)),O&&x&&(x.isModal()||(x.on("activated",e),x.on("deactivated",t)),X(T||x.isActive())),()=>{x&&x.removeListener&&(x.removeListener("activated",e),x.removeListener("deactivated",t))}},[O,x,T]);const{wildCardSearch:be,searchEnabled:ye,autoConfirm:ve=!1,layoutOptions:Se={}}=null!=p?p:{},we=null==p||null===(o=p.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked,xe=!1!==ye&&"toggle"===y&&!we,Ce=(null==p||null===(a=p.title)||void 0===a?void 0:a.length)&&!1!==(null==p?void 0:p.showTitle),Ee=O&&!Ce&&!T,ke=O&&Ce||T,Le="rtl"===m;if(!(w&&p&&j&&U))return null;const Re=!0===y||"toggle"===y&&Q&&!1!==ye,qe=null!==(l=Se.dense)&&void 0!==l&&l,Ie=()=>{Y(!Q)},_e=()=>{"toggle"===y?Ie():K.current.focus()},Oe=Re&&("toggle"===y||v),Te="grid"===(null==Se?void 0:Se.dataLayout),Pe=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=tc({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:Te,dense:qe,height:null===(u=G.current)||void 0===u?void 0:u.clientHeight,layoutOrder:Se.layoutOrder});de&&(null==_||_());const De=ke?30:0,Ae=t.createElement(hp,{app:f,showSearchIcon:xe,onShowSearch:Ie,isPopover:T,showToolbar:Z,isDirectQuery:H,autoConfirm:ve,showDetachedToolbarOnly:Ee,layout:p,translator:j,styles:U,isRtl:Le,showLock:P,constraints:W,classes:fp,containerRect:J,containerRef:G,model:w,selectionState:le,selections:x,keyboard:ce,disablePortal:M});return t.createElement(t.Fragment,null,Ee&&Ae,t.createElement(mp,{className:"listbox-container",container:!0,tabIndex:ce.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Pe,styles:U,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:pe,onMouseEnter:fe,onMouseLeave:me,ref:e=>{G.current=e,V(e)},isGridMode:Te,"aria-label":ce.active?j.get("Listbox.ScreenReaderInstructions"):""},ke&&Ae,t.createElement(R,{item:!0,container:!0,direction:"column",height:"100%",minHeight:De,role:"region","aria-label":j.get("Listbox.ResultFilterLabel")},t.createElement(R,{item:!0},t.createElement(pu,{ref:K,selections:x,selectionState:le,model:w,dense:qe,keyboard:ce,visible:Re,search:y,autoFocus:Oe,beginSelectionOnFocus:!T,wildCardSearch:be,searchEnabled:ye,direction:m,hide:xe&&Ie,styles:U})),t.createElement(R,{item:!0,xs:!0,className:fp.listboxWrapper},de?t.createElement(Xh,{text:he}):t.createElement(Vh,null,e=>{let{height:n,width:r}=e;return t.createElement(Ac,{model:w,app:f,constraints:W,layout:p,selections:x,selectionState:le,direction:m,frequencyMode:g,rangeSelect:S,checkboxes:B,height:n,width:r,update:C,fetchStart:E,postProcessPages:k,calculatePagesHeight:L,keyboard:ce,showGray:q,scrollState:I,keyScroll:{state:ne,reset:()=>re({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:ie,set:ae},renderedCallback:_,onCtrlF:_e,isModal:ue,styles:U})})))))});function bp(e){let{options:n={}}=e;const{model:r}=n,[o]=gs(r);return t.createElement(gp,{options:n,layout:o})}function yp(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=us(),{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 vp={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 Sp(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 wp=["__DO_NOT_USE__"],xp=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,wp)),n),t)},Cp=o((e,o)=>{let{app:s,fieldIdentifier:l,qId:c,stateName:u,element:d,initialOptions:p,renderedCallback:f}=e;const[m,g]=n(p),{isExistingObject:b,hasExternalSelectionsApi:y}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:c,options:m});b||Object.assign(m,{frequencyMode:Sp(m.frequencyMode)});const[v,S]=n(0);r(()=>{if(v)throw new Error("Source or selection Api can not change after a listbox has been mounted");S(v+1)},[b,y]);const w=b?yp({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,f]=n(),[m,g]=n(),b=null!==(t=s.title)&&void 0!==t?t:m;let{histogram:y=!1,frequencyMode:v="N"}=s;l&&l.failedToFetchFieldDef&&(y=!1,v="N"),r(()=>{const e=y||"N"!==v;i.qLibraryId&&e?async function(){try{const e=await o.getDimension(i.qLibraryId),t=await e.getLayout();g(t.qDim.title),"N"===t.qDim.qGrouping?c(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):c({multiFieldDim:!0}),d(!1)}catch(e){throw d(!1),c({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(d(!1),g(i))},[]);const{dense:S,checkboxes:w,listLayout:x,properties:C={}}=s,E={dense:S};"horizontal"===x&&(E.dataLayout="grid",E.layoutOrder="column",E.maxVisibleColumns={auto:!0},E.maxVisibleRows={auto:!1,maxRows:1});const k=h();k.current||(k.current=jh());const L=Je(!0,{},vp,{qInfo:{qId:k.current},qListObjectDef:{qStateName:a,qFrequencyMode:y&&"N"===v?"V":v},histogram:y,checkboxes:w,layoutOptions:E,title:b});let R;if(Je(!0,L,C),i.qLibraryId?(L.qListObjectDef.qLibraryId=i.qLibraryId,R=i.qLibraryId):(L.qListObjectDef.qDef.qFieldDefs=[i],R=i),"P"!==v&&y)if(null!=l&&l.multiFieldDim)L.frequencyMax="fetch";else{const e=i.qLibraryId?l:R;L.frequencyMax={qValueExpression:Oc(e)}}const[q]=ds(L,u?null:o,R,a);return r(()=>{q&&f(q)},[q]),p}({app:s,fieldIdentifier:l,stateName:u,options:m}),x=h(d),C=y?m.selectionsApi:yu(s,w,[x,".njs-action-toolbar-more",".njs-action-toolbar-popover"],m)[0],E=i(()=>te(te({},m),{},{selections:C,model:w,app:s,renderedCallback:f}),[m,C,w,s]);return a(o,()=>({setOptions:e=>g(e)}),[]),C&&w?t.createElement(bp,{options:E}):null});const Ep={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function kp(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(wh,{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 Lp(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Rp(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function qp(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):te(te({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||jh(),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),Lp(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 Rp(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):te(te({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||jh(),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),Lp(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];Rp(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}function Ip(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):te(te({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||jh(),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 _p=e=>({qDef:{qFieldDefs:[e]}});function Op(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=(e=>{let t;return t="string"==typeof e?Je(!0,{},vp,{qListObjectDef:_p(e)}):e.qListObjectDef?Je(!0,{},vp,e):Je(!0,{},vp,{qListObjectDef:e}),t})(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||jh(),!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 Tp(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 Pp(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")?Ip:e.match("/qChildListDef")?Op:qp}(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"===Tp(t)?await d.addMeasure(t):await d.addDimension(t)}}var Dp={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 Ap={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 Mp=2**53-1;function Np(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function jp(e,t){const n=Je(!0,{},t,e);return Dp.getValue(n,"qOtherTotalSpec.qOtherCounted")||Dp.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Dp.getValue(n,"qOtherTotalSpec.qOtherLimit")||Dp.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function zp(e,t){return Je(!0,{},t,e)}function Fp(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var $p={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===Dp.getValue(e,t)&&Dp.setValue(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:Np,importCommonProperties:function(e,t,n){const r="masterobject"===Dp.getValue(t,"properties.qInfo.qType")?"masterobject":Dp.getValue(n,"qInfo.qType");Dp.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:jp,createDefaultMeasure:zp,resolveValue:Fp,getHypercubePath:function(e){const t=Dp.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?(Ap.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Ap.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=Je(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?Dp.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||Np(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),o=Je(!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=Fp(i.max,r.dimensions.length,Mp),s=Fp(i.min,r.dimensions.length,0);return{maxDimensions:Fp(o.max,a,Mp),minDimensions:Fp(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(jp(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(jp(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(jp(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(jp(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(jp(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(zp(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(zp(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(zp(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(zp(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(zp(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=Dp.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=Dp.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach(r=>{e.qMeasures.push(r),n.measures.added(r,t)})}}};var Wp={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=Dp.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();Ap.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&&($p.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!Dp.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=$p.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=Dp.getValue(n,i||"").qHyperCubeDef,c=Dp.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:h,minMeasures:p}=$p.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=$p.getDefaultDimension(),defaultMeasure:m=$p.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,$p.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:h,minMeasures:p})&&$p.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:h,minMeasures:p,newHyperCubeDef:c}),$p.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:f}),$p.addDefaultMeasures({exportFormat:t,maxMeasures:h,minMeasures:p,newHyperCubeDef:c,defaultMeasure:m}),$p.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),$p.copyPropertyIfExist("qMaxStackedCells",l,c),$p.copyPropertyIfExist("qNoOfLeftDims",l,c),$p.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),$p.copyPropertyOrSetDefault("qMode",l,c,"S"),$p.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),$p.copyPropertyOrSetDefault("qSortbyYValue",l,c),$p.copyPropertyOrSetDefault("qIndentMode",l,c),$p.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),$p.importCommonProperties(s,t,n),$p.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),$p.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const Bp=e=>Dp.getValue(e,"data.targets.0.propertyPath"),Up=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Wp.exportProperties})(Bp(e))},Hp=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Wp.importProperties})(Bp(e))},Gp=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=Up(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,h=Hp(d);if(!h)throw new Error("Target chart does not support conversion");return h({exportFormat:c({propertyTree:s,hypercubePath:$p.getHypercubePath(l),viewDataMode:a}),initialProperties:te({qInfo:{qType:o},visualization:o},Dp.getValue(d,"properties.initial",{})),dataDefinition:Dp.getValue(d,"data.targets.0.",{}),hypercubePath:$p.getHypercubePath(d),viewDataMode:a})},Kp={hypercube:Wp};var Vp=e=>Ss((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 Jp(e){let{d:n}=e;const r=_a();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(H,null,n.missing||n.error?t.createElement(Vp,{style:a}):t.createElement(js,{style:a})));return t.createElement(R,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(R,{item:!0},s),t.createElement(R,{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 Zp(e){let{data:n}=e;const r=_a();return t.createElement(R,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map((e,n)=>{const o=e.descriptions.map((e,n)=>t.createElement(Jp,{d:e,key:n}));return o.length>0&&t.createElement(R,{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 Xp(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(R,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(R,{item:!0},t.createElement(Vp,{style:{fontSize:"38px"}})),t.createElement(R,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(R,{item:!0},t.createElement(E,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(Zp,{data:o}))}const Qp=["size"],Yp="Progress",ef={root:"".concat(Yp,"-root"),front:"".concat(Yp,"-front"),back:"".concat(Yp,"-back")},tf=Ua("div")(e=>{let{theme:t}=e;return{["&.".concat(ef.root)]:{position:"relative",display:"inline-block"},["& .".concat(ef.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(ef.back)]:{color:t.palette.divider}}}),nf={small:16,medium:32,large:64,xlarge:128};function rf(e){let{size:n="medium"}=e,r=ne(e,Qp);const o=nf[n];return t.createElement(tf,{className:ef.root},t.createElement(U,Y({variant:"determinate",value:100,className:ef.back,size:o,thickness:3},r)),t.createElement(U,Y({variant:"indeterminate",disableShrink:!0,className:ef.front,size:o,thickness:3},r)))}const of=["cancel","translator"],af=["retry","translator"],sf={stripes:"".concat("LongRunningQuery","-stripes")},lf=Ua(R)(()=>({["& .".concat(sf.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 cf(e){let{cancel:n,translator:r}=e,o=ne(e,of);return t.createElement(t.Fragment,null,t.createElement(lf,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(R,{item:!0},t.createElement(rf,null)),t.createElement(R,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(R,Y({item:!0},o),t.createElement(W,{variant:"contained",onClick:n},r.get("Cancel"))))}function uf(e){let{retry:n,translator:r}=e,o=ne(e,af);return t.createElement(t.Fragment,null,t.createElement(R,{item:!0},t.createElement(Vp,{style:{fontSize:"38px"}})),t.createElement(R,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(R,{item:!0},t.createElement(W,Y({variant:"contained",onClick:n},o),r.get("Retry"))))}function df(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=s(os);return t.createElement(R,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:sf.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(cf,{cancel:o.cancel,translator:i,className:sf.cancel}),r&&t.createElement(uf,{retry:o.retry,translator:i,className:sf.retry}))}function hf(){return t.createElement(R,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(rf,{size:"large"}))}const pf={width:0,height:0},ff="Header",mf={containerStyle:"".concat(ff,"-containerStyle"),containerTitleStyle:"".concat(ff,"-containerTitleStyle")},gf=Ua(R)(e=>{let{theme:t}=e;return{["&.".concat(mf.containerStyle)]:{flexGrow:0},["&.".concat(mf.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}}),bf="njs-cell-title",yf="njs-cell-sub-title";function vf(e){let{id:o,layout:i,sn:a,anchorEl:s,hovering:l,focusHandler:c,titleStyles:u={},isRtl:d,translator:h}=e;const p=i.showTitles&&!!i.title,f=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 y=[mf.containerStyle,...p||f?[mf.containerTitleStyle]:[]],v=l||m,S=t.createElement(su,{show:!1,selections:{show:m,api:a.component.selections,onKeyDeactivate:c.refocusContent},actions:g,popover:{show:v,anchorEl:s},focusHandler:c,layout:i,isRtl:d});return t.createElement(gf,{item:!0,container:!0,wrap:"nowrap",className:y.join(" ")},t.createElement(R,{item:!0,zeroMinWidth:!0,xs:!0,dir:d?"rtl":"ltr"},t.createElement(R,{container:!0,wrap:"nowrap",direction:"column"},p?t.createElement(q,{title:i.title},t.createElement(E,{id:"".concat(o,"_title"),variant:"h6",noWrap:!0,className:bf,style:u.main},i.title)):t.createElement("div",{id:"".concat(o,"_title"),style:pf,"aria-label":h.get("Accessibility.Object.NoTitle")}),f&&t.createElement(q,{title:i.subtitle},t.createElement(E,{variant:"body2",noWrap:!0,className:yf,style:u.subTitle},i.subtitle)))),t.createElement(R,{item:!0},S))}const Sf="condition",wf="search",xf="clear_selection",Cf="matches_exactly",Ef="starts_with",kf="ends_with",Lf="beginning_of_word",Rf="general",qf="fixed_value",If=(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 wf:o+=(e=>{var t,n,r;let o="",i="";switch(null===(t=e.options)||void 0===t?void 0:t.mode){case Lf:o="*^",i="*";break;case kf:o="*";break;case Ef:i="*";break;case Cf: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 Sf:o+=(e=>{var t,n,r,o,i,a,s;const{options:l}=e,c=(null==l?void 0:l.mode)===Rf,u=(null==l||null===(t=l.modifier)||void 0===t?void 0:t.type)===qf,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 h,p,f="=";var m,g,b;if(c&&u)h="".concat(null===(m=l.conditionField)||void 0===m?void 0:m.aggregator,"(").concat(_c(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 y;h="",p="".concat(null===(y=l.firstValue)||void 0===y?void 0:y.fixedValue),f=""}else if(c||u){var v,S,w,x;h="".concat(null===(v=l.conditionField)||void 0===v?void 0:v.aggregator,"(").concat(_c(null===(S=l.conditionField)||void 0===S?void 0:S.field),")"),p="".concat(null===(w=l.firstValue)||void 0===w?void 0:w.aggregator,"(").concat(_c(null===(x=l.firstValue)||void 0===x?void 0:x.field),")")}else{var C,E;h="".concat(_c(e.field)),p="".concat(null===(C=l.firstValue)||void 0===C?void 0:C.aggregator,"(total ").concat(_c(null===(E=l.firstValue)||void 0===E?void 0:E.field),")")}const k="".concat(f).concat(h).concat(d[0]).concat(p);let L="";if(d.length>1){var R,q,I;if(!u&&(null===(R=l.secondValue)||void 0===R||!R.aggregator||null===(q=l.secondValue)||void 0===q||!q.field)||u&&(null===(I=l.secondValue)||void 0===I||!I.fixedValue))return"";let e,t;var _;if(c&&u)e="".concat(null===(_=l.secondValue)||void 0===_?void 0:_.fixedValue),t=" and ".concat(h);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,P;e="".concat(null===(T=l.secondValue)||void 0===T?void 0:T.aggregator,"(").concat(_c(null===(P=l.secondValue)||void 0===P?void 0:P.field),")"),t=" and ".concat(h)}else{var D,A;e="".concat(null===(D=l.secondValue)||void 0===D?void 0:D.aggregator,"(total ").concat(_c(null===(A=l.secondValue)||void 0===A?void 0:A.field),")"),t=" and ".concat(h)}L="".concat(t).concat(d[1]).concat(e)}return'"'.concat(k).concat(L,'"')})(e);break;case xf: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)},_f=(e,t)=>If(e,t).map(e=>"".concat(e.field,": ").concat(e.label)).join("; ");var Of=e=>Ss((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 Tf(e){let{styles:n,children:r}=e;return t.createElement(E,{noWrap:!0,variant:"body2",style:te(te({},n),{},{fontStyle:"italic"})},r)}function Pf(e){var n;let{layout:r,translator:o,filtersFootnoteString:i,footerStyle:a,isRtl:s}=e;const l=If(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(q,{title:i},t.createElement(R,{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(R,{item:!0,display:"flex"},t.createElement(Of,{style:{fontSize:"12px",color:a.color,margin:"auto"}}),t.createElement(Tf,{styles:te(te({},c),{},{marginLeft:"2px"})},o.get("Object.FiltersApplied")," ")),t.createElement(R,{item:!0,display:"flex"},l.map(e=>t.createElement(R,{container:!0,wrap:"nowrap",key:"".concat(e.field,"-").concat(e.label)},t.createElement(Tf,{styles:te(te({},c),{},{fontWeight:"bold"})},"".concat(e.field,":")),t.createElement(Tf,{styles:c}," ",e.label," "))))))}const Df={itemStyle:"".concat("Footer","-itemStyle")},Af=Ua(R)(()=>({["& .".concat(Df.itemStyle)]:{minWidth:0,width:"100%"}})),Mf="njs-cell-footer";function Nf(e){var n,r,o;let{layout:i,titleStyles:a={},translator:s,flags:l,isCardTheme:c,isRtl:u}=e;const d=a.footer,h=(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=_f(null!==(o=null==i?void 0:i.filters)&&void 0!==o?o:[],s),f=!(null!=i&&i.footnote)&&h&&p,m=null==l?void 0:l.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),g=c?"1px":"6px";return i&&i.showTitles&&(i.footnote||f)?t.createElement(Af,{container:!0},t.createElement(R,{item:!0,className:Df.itemStyle,"data-testid":Mf,sx:{paddingTop:e=>m?g:e.spacing(1)}},i.footnote&&t.createElement(q,{title:i.footnote},t.createElement(E,{noWrap:!0,variant:"body2",className:Mf,style:d,align:u?"right":"left"},i.footnote)),f&&t.createElement(Pf,{layout:i,translator:s,filtersFootnoteString:p,footerStyle:d,isRtl:u}))):null}class jf{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 zf="njs-viz";function Ff(e){let{sn:o,snOptions:i,snPlugins:a,layout:l,appLayout:u,halo:d,cellId:h}=e;const{component:p}=o,{theme:f,language:m,constraints:g,interactions:b,keyboardNavigation:y}=s(os),[v]=n(()=>new jf),[S,w]=n(!1),[x,C]=n(0),[E,k,L]=ys(),[R,q]=n(null),I=c(e=>{e&&q(e)},[]);return r(()=>{if(R)return p.created({options:i}),p.mounted(R),w(!0),()=>{v.stop(),p.willUnmount()}},[R,p]),r(()=>{S&&R&&k&&(!p.isHooked&&l&&l.qSelectionInfo&&l.qSelectionInfo.qInSelections||v.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:te({constraints:g,interactions:b,theme:d.public.theme,appLayout:u,keyboardNavigation:y},p.isHooked?{}:{logicalSize:o.logicalSize({layout:l}),localeInfo:(u||{}).qLocaleInfo,permissions:e})})).then(e=>{!1!==e&&(0===x&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),C(x+1))})}))},[k,i,a,R,L,l,u,f,m,g,b,S,y]),t.createElement("div",{ref:E,"data-render-count":x,style:{position:"relative",height:"100%"},className:zf},t.createElement("div",{ref:I,id:"".concat(h,"_content"),style:{position:"absolute",width:"100%",height:"100%"}}))}const $f={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"},Wf=e=>{let{layout:t,theme:n,app:r,themeName:o,disableThemeBorder:a,queryParams:s}=e;const l=i(()=>{if(t&&n){const o=t.components?t.components.find(e=>"general"===e.key):null,i=(e=t.visualization,$f[e.toLowerCase()]?$f[e.toLowerCase()]:e),l={main:gh(o,"main",n,i),footer:gh(o,"footer",n,i),subTitle:gh(o,"subTitle",n,i)},c=fh(o,n,i),u=ph(o,r,s),d=function(e,t,n,r){const o=ch(null==e?void 0:e.borderColor,"","borderColor",t,n);let i=null==e?void 0:e.borderWidth;return!i&&!r&&(i=lh("","borderWidth",t,n)),i&&o?"".concat(i," solid ").concat(o):void 0}(o,n,i,a),h=function(e,t,n){return(null==e?void 0:e.borderRadius)||lh("","borderRadius",t,n)}(o,n,i);return{titleStyles:l,bgColor:c,bgImage:u,border:d,borderRadius:h,boxShadow:mh(o,n,i)}}var e;return{}},[t,n,r,o,a]);return l};class Bf extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const Uf=["action-button","sn-nav-menu","filterpane","sn-shape"],Hf=[...Uf,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],Gf=e=>-1===Uf.indexOf(e),Kf=e=>Gf(e)?"10px 10px 0":"10px 0 0",Vf=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=_f(null!==(l=null==t?void 0:t.filters)&&void 0!==l?l:[],i),h=!(null!=t&&t.footnote)&&c&&d,p=(null==t?void 0:t.showTitles)&&(!(null==t||!t.footnote)||h);let f;return e&&(o.main.padding=Kf(u)),r&&(o.subTitle.padding=((e,t)=>{const n=Gf(e);return t?n?"0 10px":"0":Kf(e)})(u,e)),p&&(-1===Uf.indexOf(u)&&(o.footer.borderTop="1px solid #d9d9d9"),o.footer.padding="6px 10px"),(n||-1===Hf.indexOf(u))&&(f="".concat(e||r?"0":"10px"," 10px ").concat(p?"0":"5px")),f}},Jf=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;Jf.set(t,n)});const Zf="njs-cell",Xf="njs-cell-body";const Qf=(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 Yf(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(hf,null):null}const em=e=>!e.qError||7005===e.qError.qErrorCode,tm=(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}}),nm=e=>e&&(Array.isArray(e)?e:[e])||[],rm=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),s=tm(o,nm(a.qDimensionInfo||a.qItems),e=>r.dimensions.description(n,e),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=tm(i,nm(a.qMeasureInfo),e=>r.measures.description(n,e),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:s,reqMeasErrors:l}},om=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(),h=u.measures.min(),p=u.resolveLayout(n),f=nm(p.qDimensionInfo||p.qItems).filter(em),m=nm(p.qMeasureInfo).filter(em);if(o+=d,i+=h,(f.length<d||m.length<h)&&(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 h=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=h||await r.getProperties();h=n;const o=rm(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const p=u.filter(e=>!(e.missing||e.error)).length,f=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:f,descriptions:[...u]},{title:g,descriptions:[...d]}],y=l?c:b;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:y}]};function im(){return new de}const am=o((e,o)=>{var i,c;let{halo:u,model:d,initialSnOptions:p,initialSnPlugins:f,initialError:m,onMount:g,currentId:b,emitter:y,navigation:v,onError:S}=e;const{app:w,types:x}=u,{nebbie:C}=u.public,{theme:E,translator:k,language:L,keyboardNavigation:q,externalFocusManagement:_,disableCellPadding:O=!1,navigation:T,queryParams:P}=s(os),[D]=n(y||im),A=_a(),[M,N,j]=ys(),[z,F]=l(Qf,{loading:!1,loaded:!1,longRunningQuery:!1,error:($=m)?{title:$.message}:null,sn:null,visualization:null});var $;const[W,B]=n(d),[U,{validating:H,canCancel:G,canRetry:K},V]=gs(W),[J]=bs(w),[Z,X,Q]=ys(),[Y,ee]=n(p),[ne,re]=n(f),oe="njs-cell-".concat(b),[ie]=yu(w,W,["#".concat(oe),".njs-action-toolbar-popover"]),[ae,se]=n(!1),le=h({enter:null,leave:null}),{titleStyles:ce,bgColor:ue,bgImage:de,border:he,borderRadius:pe,boxShadow:fe}=Wf({layout:U,theme:u.public.theme,app:u.app,themeName:E,disableThemeBorder:null==Y?void 0:Y.disableThemeBorder,queryParams:P}),me=!("rtl"!==(null==Y?void 0:Y.direction)),ge=h({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r(()=>{mu(ge.current),ge.current.blurCallback=e=>{ge.current.onBlurHandler?ge.current.onBlurHandler(e):(u.root.toggleFocusOfCells(),e&&Q&&Q.focus())},ge.current.refocusContent=()=>{z.sn.component&&"function"==typeof z.sn.component.focus&&z.sn.component.focus()}},[]);r(()=>{if(m)return void g();if(!J||!U)return;if(z.visualization===U.visualization&&z.sn)return void(async e=>{const[t,n]=await om(k,U,e.generator.qae.data,W);F(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:z.sn,layout:U,model:W})})(z.sn);const e=x.getSupportedVersion(U.visualization,U.version);return(async(e,t)=>{F({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:h}=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:h});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:F,types:x,visualization:e,version:t,model:W,app:w,selections:ie,nebbie:C,focusHandler:ge.current,emitter:D,onMount:g,navigation:null!=v?v:T})})(U.visualization,e),()=>{}},[x,z.sn,W,ie,U,J,L]),r(()=>{if(!H)return;const e=setTimeout(()=>F({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[H]),a(o,()=>({getQae:()=>z.sn.generator.qae,getExtensionDefinition:()=>z.sn.generator.definition.ext,support(e,t,n){if(U&&z.loaded&&!z.error){var r;const o=t||(null===(r=z.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 z.sn.component.focus&&(e?z.sn.component.focus():z.sn.component.blur())},setOnBlurHandler(e){ge.current.onBlurHandler=e},setSnOptions:ee,setSnPlugins:re,setModel:B,getImperativeHandle(){var e;return null!==(e=z.sn)&&void 0!==e&&e.component&&"function"==typeof z.sn.component.getImperativeHandle?z.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=z.sn)||void 0===e?void 0:e.component.onContextMenu(...n)},async takeSnapshot(){const{width:e,height:t}=N;let n=JSON.parse(JSON.stringify(U));return"function"==typeof z.sn.component.setSnapshotData&&(n=await z.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:k.language(),theme:A.name,appLayout:J,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)}}),[z.sn,X,N,U,A.name,J]);let be=null;if(z.loading&&!z.longRunningQuery)be=t.createElement(Yf,null);else if(z.error){if(S){S(z.error.errorObject?z.error.errorObject:new Bf(z.error.title))}be=t.createElement(Xp,z.error)}else z.loaded&&(be=t.createElement(Ff,{key:U.visualization,sn:z.sn,halo:u,snOptions:Y,snPlugins:ne,layout:U,appLayout:J,cellId:b}));const ye=!(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 Se,we;O?(Se=!1,we=void 0):null!=ve&&ve.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(Se=!1,we=Vf({layout:U,isError:z.error,isCardTheme:ye,titleStyles:ce,translator:k})):(Se=!0,we=void 0);const xe=Jf.get(null==U?void 0:U.visualization),Ce=k.get(xe);return t.createElement(I,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:ue||"unset",backgroundImage:de&&de.url?"url(".concat(de.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:de&&de.size,backgroundPosition:de&&de.pos,border:he,borderRadius:pe,boxShadow:fe,boxSizing:"border-box"},elevation:0,square:!0,className:Zf,ref:M,id:oe,onMouseEnter:()=>{le.current.leave&&clearTimeout(le.current.leave),le.enter||(le.current.enter=setTimeout(()=>{se(!0),le.current.enter=null},250))},onMouseLeave:()=>{le.current.enter&&clearTimeout(le.current.enter),le.current.leave||(le.current.leave=setTimeout(()=>{se(!1),le.current.leave=null},750))}},t.createElement(R,{container:!0,direction:"column",gap:0,style:te(te({position:"relative",width:"100%",height:"100%"},Se?{padding:A.spacing(1)}:{}),z.longRunningQuery?{opacity:"0.3"}:{}),"aria-labelledby":"".concat(b,"_title ").concat(b,"_type ").concat(b,"_content")},U&&t.createElement("div",{id:"".concat(b,"_type"),style:pf,"aria-label":null!=Ce?Ce:U.visualization}),j&&U&&z.sn&&t.createElement(vf,{layout:U,sn:z.sn,anchorEl:j,hovering:ae,focusHandler:ge.current,titleStyles:ce,isRtl:me,id:b,translator:k}," "),t.createElement(R,{tabIndex:q&&!_?0:-1,onKeyDown:q&&!_?e=>{["Enter"," ","Spacebar"].includes(e.key)&&u.root.toggleFocusOfCells(b)}:null,item:!0,xs:!0,className:Xf,style:te({height:"100%"},we?{padding:we}:{}),ref:Z},be),j&&U&&z.sn&&t.createElement(Nf,{layout:U,titleStyles:ce,translator:k,flags:ve,isCardTheme:ye,isRtl:me})),z.longRunningQuery&&t.createElement(df,{canCancel:G,canRetry:K,api:V}))});function sm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function lm(){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 sm(e)&&sm(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(...lm("".concat(e).concat(o,"/"),t[o],n[o]))}),r}function cm(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'))})}function um(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const dm=1e3,hm=1e3,pm=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],fm=(e,t)=>e&&e.find(e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t})||null,mm=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:jh()})})},gm=e=>{var t;return te(te({},mm(e)),{},{qOtherTotalSpec:null!==(t=e.qOtherTotalSpec)&&void 0!==t?t:{}})},bm=(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]})},ym=new Error("Not supported in this object, need to implement in subclass."),vm=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})},Sm=(e,t)=>{if(e)return t&&Dp(e,t)?Dp(e,t).qHyperCube:e.qHyperCube};function wm(e,t){return e.filter((e,n)=>t.includes(n))}function xm(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 Cm(e,t,n){Ap.indexAdded(e.hcProperties.qInterColumnSortOrder,null!=n?n:t.length-1)}function Em(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 km(e,t){return e.getAlternativeDimensions().length+t.length>=dm}function Lm(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<dm}async function Rm(e,t,n,r,o,i){await e.autoSortDimension(t),Ap.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 qm(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 Im(e,t){Ap.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function _m(e,t,n){return n||e.maxMeasures()<=t.length&&t.length<hm}function Om(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 Tm{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=fm(n,e))&&void 0!==t?t:fm(r,e)}static getAlternativeDimensions(){throw new Error("Method not implemented.")}static addDimension(){throw ym}static addDimensions(){throw ym}static removeDimension(){throw ym}static removeDimensions(){throw ym}static autoSortDimension(){throw ym}static replaceDimension(){throw ym}static getSorting(){throw ym}createLibraryDimension(e,t){var n,r;const o=Je(!0,{},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=pm,delete o.qDef.qFieldDefs,delete o.qDef.qFieldLabels,o}createFieldDimension(e,t,n){var r,o;const i=Je(!0,{},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=pm,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=um("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=fm(n,e))&&void 0!==t?t:fm(r,e)}static getMeasures(){return[]}static getAlternativeMeasures(){throw new Error("Method not implemented.")}static addMeasure(){throw ym}static addMeasures(){throw ym}static removeMeasure(){throw ym}static removeMeasures(){throw ym}static autoSortMeasure(){throw ym}static replaceMeasure(){throw ym}createExpressionMeasure(e,t,n){var r,o;const i=Je(!0,{},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=Je(!0,{},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:{},um("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=um("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 Pm(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then(async()=>(Cm(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 Dm(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(()=>(Im(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 Am(e,t){!function(e,t){Ap.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 Mm(e,t){!function(e,t){Ap.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 Nm(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 jm(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),Im(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 zm extends Tm{constructor(e){super(e),this.path=e.path}setProperties(e){return e?(super.setProperties(e),this.hcProperties=this.path?Dp.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=vm(this.hcProperties.qDimensions),this.hcProperties.qMeasures=vm(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=Sm(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=gm(e);return Lm(this,t)?xm(this,r,n):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?Pm(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=Z(e);s=!(c=await u.next()).done;s=!1){const e=c.value;{if(km(this,n))return o;const a=gm(e);if(Lm(this,t)){const e=await xm(this,a);o.push(e)}else n.length<this.maxDimensions()&&(await Rm(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&&Nm(this,e),Am(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=wm(n,e);var a,s=!1,l=!1;try{for(var c,u=Z(i);s=!(c=await u.next()).done;s=!1){const e=c.value;await Nm(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=wm(r,e);var d,h=!1,p=!1;try{for(var f,m=Z(i);h=!(f=await m.next()).done;h=!1){const e=f.value;await Am(this,e)}}catch(e){p=!0,d=e}finally{try{h&&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=te(te({},n),{},{qDef:te(te({},n.qDef),{},{cId:jh()})});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=mm(e);return Lm(this,t)?xm(this,r,n).then(()=>{Em(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),Cm(e,r),Em(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(Ap.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(Om(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;Ap.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&&bm(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&&bm([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=Sm(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=mm(e);return _m(this,r,t)?qm(this,o,n):Dm(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>=hm}(this,n))return!1;const i=mm(e);return _m(this,n,t)?(qm(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},Ap.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),Mm(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=wm(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=wm(n,e);const t=[...e].sort((e,t)=>t-e);var i,a=!1,s=!1;try{for(var l,c=Z(t);a=!(l=await c.next()).done;a=!1){const e=l.value;await Mm(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=te(te({},n),{},{qDef:te(te({},n.qDef),{},{cId:jh()})});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=mm(e);return _m(this,r,t)?qm(this,o,n):jm(this,o,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(Ap.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?Om(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;Ap.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){Dp.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 Fm=Je.bind(null,!0),$m={},{isArray:Wm}=Array;function Bm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Um(e){return void 0===e}function Hm(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Gm(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]=Um(e[r||t])?i:e[t],e=e[r||t]}),e}function Km(e,t){let n=!0;if(Bm(e)&&Bm(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{Km(e[r],t[r])||(n=!1)}),n);if(Wm(e)&&Wm(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Km(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?Fm({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Km(i,a)||Hm(t,o)||(Um(a)?r.push({op:"add",path:s,value:i}):Bm(i)&&Bm(a)?r=r.concat($m.generate(a,i,s)):Wm(i)&&Wm(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]&&Um(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(Km(t,o))return r;if(!Um(t[0])&&Um(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=>{Um(t[o])&&!Hm(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},$m.apply=function(e,t){t.forEach(t=>{let n=Gm(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(Wm(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Wm(o)&&Wm(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Bm(o)&&Bm(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Hm(a,e)&&delete a[e]}),Fm(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=Gm(e,t.from);Wm(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Wm(n)?n.splice(+r,1):delete n[r]);var a})},$m.clone=function(e){return Fm({},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)):Fm(e,t)};const Vm=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(de.prototype).forEach(e=>{r[e]=de.prototype[e]}),de.init(r),r);var r;return n};let Jm,Zm;function Xm(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 Qm(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 Ym(e){tg(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 eg(e){if(e.__hooks.obsolete)return Promise.resolve();Zm=-1,Jm=e,Jm.__hooks.initiated&&Jm.__hooks.list.length;try{Jm.fn.call(null)}catch(e){console.error(e)}Jm.__hooks.initiated=!0;const t=Jm.__hooks;return ig(Jm),Zm=void 0,Jm=void 0,t.chain.promise||(t.chain.promise=new Promise(e=>{t.chain.resolve=e})),function(e){tg(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame(()=>{!function(e){tg(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 tg(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 ng(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 rg(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 og(e){return e.__hooks.imperativeHandle}function ig(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function ag(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,ig(e))}function sg(e){if(void 0===Jm)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Jm.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function lg(e){sg(++Zm);return Jm.context[e]}function cg(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function ug(e){return{__hooked:!0,fn:e,initiate:Qm,run:eg,teardown:Ym,runSnaps:ng,runMenu:rg,focus:Wg,blur:Bg,observeActions:ag,getImperativeHandle:og,updateRectOnNextRun:cg}}function dg(e){const t=sg(++Zm);if(!t.value){t.component=Jm;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,eg(r)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function hg(e,t){const n=sg(++Zm);Xm(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Jm.__hooks.pendingEffects.indexOf(n)&&Jm.__hooks.pendingEffects.push(n))}function pg(e,t){const n=sg(++Zm);Xm(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Jm.__hooks.pendingLayoutEffects.push(n))}function fg(e,t){const n=sg(++Zm);return Xm(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function mg(e){return fg(()=>({current:e}),[])}function gg(e,t){const[n,r]=dg(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=sg(++Zm);return o.component||(o.component=Jm),pg(()=>{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 bg(){return lg("element")}function yg(){const e=bg(),t=Jm.__hooks.resizer,[n,r]=dg(()=>{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()),pg(()=>{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 vg(){return lg("layout")}function Sg(){const e=lg("layout"),[t]=dg({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function wg(){return lg("appLayout")}function xg(){const e=lg("model");return e&&e.session?e:void 0}function Cg(){const e=lg("app");return e&&e.session?e:void 0}function Eg(){const e=lg("global");return e&&e.session?e:void 0}function kg(){return lg("selections")}function Lg(){return lg("theme")}function Rg(){return lg("nebbie")}function qg(){return lg("translator")}function Ig(){return lg("deviceType")}function _g(){return lg("navigation")}function Og(){return lg("plugins")}function Tg(e,t){const[n]=dg({action(){n._config.action.call(null)}});return n.component||(n.component=Jm,Jm.__hooks.actions.list.push(n)),fg(()=>{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 Pg(){return lg("constraints")}function Dg(){return lg("interactions")}function Ag(){return lg("options")}function Mg(e,t){const n=sg(++Zm);if(n.imperative||(n.imperative=!0),Xm(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Jm.__hooks.imperativeHandle=r}}function Ng(e){const t=sg(++Zm);t.value||(t.value=1,Jm.__hooks.snaps.push(t)),t.fn=e}function jg(e){const t=sg(++Zm);t.value||(t.value=1,Jm.__hooks.menus.push(t)),t.fn=e}function zg(){sg(++Zm);const e=Jm.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function Fg(){return lg("emitter")}function $g(){const e=lg("keyboardNavigation"),t=lg("focusHandler");if(!Jm.__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&&(Bg(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Jm);Jm.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Wg(this))}.bind(Jm);Jm.__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(Jm);Jm.__hooks.accessibility.focusSelectionFunction=r}const n=Jm.__hooks.accessibility.focusFunction,r=Jm.__hooks.accessibility.exitFunction,o=Jm.__hooks.accessibility.focusSelectionFunction,[i,a]=dg({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Jm.__hooks.accessibility.setter=a,Jm.__hooks.accessibility.enabled=e,hg(()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o}),[e]),i}function Wg(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 Bg(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 Ug={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Hg=Object.keys(Ug);function Gg(e,t){const n=te({},Ug);var r;r=n,Object.keys(de.prototype).forEach(e=>{r[e]=de.prototype[e]}),de.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach(t=>{-1!==Hg.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]});const i=function(e){let{sn:t,component:n}=e;const r={},o=[],i=Vm(n);return((t.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=i(e);r[e.key]=t,o.push(t)}),(t.definition.actions||[]).forEach(e=>{const t=i(e);r[e.key]=t}),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:o}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:a,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}function Kg(e,t,n){"function"==typeof e.component&&(e.component=ug(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):Gg(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 Vg=()=>{};function Jg(e,t){return void 0===e?()=>t:()=>e}function Zg(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Jg(t.min,0),max:"function"==typeof t.max?t.max:Jg(t.max,1e3),added:t.added||t.add||Vg,description:t.description||Vg,moved:t.moved||t.move||Vg,removed:t.removed||t.remove||Vg,replaced:t.replaced||t.replace||Vg,isDefined:()=>!!e}}function Xg(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o})(e,n,{}),dimensions:Zg(e.dimensions),measures:Zg(e.measures)}}function Qg(){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(Xg)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function Yg(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Qg(n.qae),component:n.component||{},create:e=>Kg(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new zm(e)}:{}};return Object.keys(n).forEach(e=>{r[e]||(r.definition[e]=n[e])}),r}const eb=(e,t,n)=>{if(!e)return Promise.resolve();let r=$m.generate(t,n);return Je(!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()},tb=()=>{};function nb(){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]:{},h=tb,p=null,f=null,g=null,b=null,y=!1;const v=new Promise(e=>{g=e}),S=new Promise(e=>{b=e}),w=e=>()=>{null==e||e(),b(),u(),y=!0};let x={},C=[];const E=new de;let k={};null!==(e=a.context)&&void 0!==e&&e.enablePrivateExperimental&&(k={support(e){var t;return!(!f||!y)&&p.current.support(e,null===(t=r)||void 0===t?void 0:t.support,o)},getPropertyPanelDefinition:()=>!(!f||!y)&&(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=te(te({id:i.id,model:i,async destroy(){await c(),h(),h=tb},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){if((e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))})(await i.getLayout())&&!t){const t=await Gp({halo:a,model:i,cellRef:p,newType:e});return await((e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t))(i,t.qProperty),t}const n=await i.getEffectiveProperties(),r=await Gp({halo:a,model:i,cellRef:p,newType:e,properties:n}),o=r.qProperty;return await eb(i,n,o),r}return await Gp({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 Gp({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){E.addListener(e,t)},removeListener(e,t){E.removeListener(e,t)},getImperativeHandle:async()=>(await S,p.current.getImperativeHandle()),takeSnapshot:async()=>(await S,p.current.takeSnapshot())},k),{},{__DO_NOT_USE__:{mount(e){if(f)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return f=e,[h,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:h}=n,p=t.createRef(),f=jh(),g=m.createPortal(t.createElement(am,{ref:p,halo:n,model:o,currentId:f,initialSnOptions:i,initialSnPlugins:a,initialError:c,onMount:s,emitter:l,navigation:u,onError:d}),r,f),b=()=>{h.remove(g),o.removeListener("closed",b)};return o.on("closed",b),h.addCell(f,p),(async()=>{try{await h.add(g,b)}catch(e){b(),s(),d(e)}})(),[b,p]}({halo:a,element:e,model:i,initialSnOptions:x,initialSnPlugins:C,initialError:l,onMount:g,emitter:E,navigation:s,onError:d}),v},async applyProperties(e){const t=lm("/",e,await i.getEffectiveProperties());if(t.length)return i.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;f?(async()=>{await v,p.current.setSnOptions(te(te(te({},x),e),{onInitialRender:w(t)}))})():x=te(te(te({},x),e),{onInitialRender:w(t)})})(e)},plugins(e){(async e=>{cm(e),f?(async()=>{await v,p.current.setSnPlugins(e)})():C=e})(e)},exportImage:()=>p.current.exportImage(),takeSnapshot:()=>p.current.takeSnapshot(),getModel:()=>i,convert:{async toType(e){const t=await i.getEffectiveProperties(),n=await Gp({halo:a,model:i,cellRef:p,newType:e,properties:t}),r=n.qProperty;return await eb(i,t,r),n},async revert(){await i.clearSoftPatches()}}}});return L}async function rb(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=nb({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 ob(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 Pp({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 ib="njs-sheet";function ab(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 sb=o((e,o)=>{var l;let{model:c,halo:u,initialSnOptions:d,initialSnPlugins:p,initialError:f,onMount:m,unmount:g,navigation:b,onError:y}=e;const{root:v}=u,[S,w]=n(c),[x]=gs(S),{theme:C,modelStore:E}=s(os),[k,L]=n([]),[R,q]=n(void 0),[I,_]=n(void 0),[O,T]=n(""),P=h({cellCount:0,cellsRendered:0,initialRender:!1});null==b||null===(l=b.setCurrentSheetId)||void 0===l||l.call(b,S.id),r(()=>{if(x){const e=JSON.stringify(x.cells);if(e===O)return;T(e);const n=async()=>{k.forEach(e=>{v.removeCell(e.currentId)});const e=x.cells;P.cellCount=e.length,P.cellsRendered=0;const n=()=>{P.cellsRendered++,P.cellsRendered!==P.cellCount||P.initialRender||(P.initialRender=!0,d.onInitialRender())},{columns:r,rows:o}=x,i=await Promise.all(e.map(async e=>{let i;const a=new Promise(e=>{i=e}),s=k.find(t=>t.id===e.name);if(s)return s.bounds=ab(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),rb(d,{options:o,plugins:i,element:a},t)}({id:e.name},u,E);return{model:l.model,id:e.name,bounds:ab(e,r,o),cellRef:t.createRef(),currentId:jh(),mounted:i,mountedPromise:a,options:te(te({},d),{onInitialRender:n})}}));i.forEach(e=>v.addCell(e.currentId,e.cellRef)),L(i)};n()}},[x]),r(()=>{const e=()=>{S.removeListener("closed",e),g()};return S.on("closed",e),()=>S.removeListener("closed",e)},[S]);const D=i(()=>k?k.map(e=>function(e,n,r,o,i,a,s,l){var c;const{x:u,y:d,width:h,height:p}=e.bounds,f={left:"".concat(u,"%"),top:"".concat(d,"%"),width:"".concat(h,"%"),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")&&(f.boxSizing="border-box",f.padding="4px"),t.createElement("div",{style:f,key:e.model.id},t.createElement(am,{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,f,e.mounted,b,y)):[],[k]);r(()=>{const e=null!=x&&x.components?x.components.find(e=>"general"===e.key):null;q(fh(e,u.public.theme)),_(ph(e,u.app))},[x,u.public.theme,u.app,C]),a(o,()=>({setModel:w}),[]);const A=!x||void 0===x.height||Number.isNaN(x.height)?"100%":"".concat(Number(x.height),"%"),M=k.map(e=>e.mountedPromise),N=M.filter(e=>!!e);return N.length&&Promise.all(M).then(()=>{m()}),t.createElement("div",{className:ib,style:{width:"100%",height:A,position:"relative",backgroundColor:R,backgroundImage:I&&I.url?"url(".concat(I.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:I&&I.size,backgroundPosition:I&&I.pos}},D)});const lb=()=>{};function cb(){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=lb,c=null,u=null,d=null,h=null;const p=new Promise(e=>{d=e}),f=new Promise(e=>{h=e}),g=e=>()=>{null==e||e(),h(),a()};let b={},y=[];const v={id:e.id,model:e,navigation:r,getImperativeHandle:async()=>(await f,c.current.getImperativeHandle()),async destroy(){await i(),l(),l=lb},__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,h=t.createRef();let p;const f=()=>{d.remove(p)};return p=m.createPortal(t.createElement(sb,{ref:h,halo:n,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s,unmount:f,navigation:c,onError:u}),r,o.id),c.setSheetRef(h),d.add(p,f),[f,h]}({halo:n,element:i,model:e,initialSnOptions:b,initialSnPlugins:y,initialError:o,onMount:d,navigation:r,onError:s}),p},async applyProperties(t){const n=lm("/",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=>{cm(e),u?(async()=>{await p,c.current.setSnPlugins(e)})():y=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return v}async function ub(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,h="".concat(r);let p=d.get(h);p||(p=t.app.getObject(r),d.set(h,p));const f=await p;u.set(h,f);const m=c||("sheet"===f.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},s={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:l}=t,c="".concat(n);let u,d=l.get(c);d||(d=e.app.getObject(n),l.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,s.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return mu(s),s}(t,n,f):void 0);return"sheet"===f.genericType?async function(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=cb({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}(f,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m):rb(f,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m)}var db,hb,pb,fb;function mb(){if(fb)return pb;fb=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return pb=n=>n?"object"!=typeof n?e:n:t}var gb,bb,yb,vb,Sb,wb,xb,Cb,Eb,kb,Lb,Rb,qb,Ib,_b,Ob,Tb,Pb,Db,Ab,Mb,Nb,jb,zb,Fb,$b,Wb,Bb,Ub,Hb,Gb,Kb={exports:{}};function Vb(){if(bb)return gb;bb=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return gb={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 Jb(){if(vb)return yb;vb=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return yb=e}function Zb(){return Sb||(Sb=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Vb(),i=Jb(),a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const h="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[h,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=d++;i(e,o,t),u[e]=o,l[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),f("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${h}+`),f("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),f("FULL",`^${l[u.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),f("LOOSE",`^${l[u.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),f("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),f("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",l[u.COERCE],!0),f("COERCERTLFULL",l[u.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Kb,Kb.exports)),Kb.exports}function Xb(){if(Eb)return Cb;Eb=1;const e=Jb(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Vb(),{safeRe:r,t:o}=Zb(),i=mb(),{compareIdentifiers:a}=function(){if(xb)return wb;xb=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 wb={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},wb}();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 "${typeof a}".`);if(a.length>t)throw new TypeError(`version is longer than ${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: ${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=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${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=`-${t}`.match(this.options.loose?r[o.PRERELEASELOOSE]:r[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${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 ${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: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Cb=s}function Qb(){if(Lb)return kb;Lb=1;const e=Xb();return kb=(t,n,r)=>new e(t,r).compare(new e(n,r)),kb}function Yb(){if(Fb)return zb;Fb=1;const e=function(){if(qb)return Rb;qb=1;const e=Qb();return Rb=(t,n,r)=>0===e(t,n,r),Rb}(),t=function(){if(_b)return Ib;_b=1;const e=Qb();return Ib=(t,n,r)=>0!==e(t,n,r),Ib}(),n=function(){if(Tb)return Ob;Tb=1;const e=Qb();return Ob=(t,n,r)=>e(t,n,r)>0,Ob}(),r=function(){if(Db)return Pb;Db=1;const e=Qb();return Pb=(t,n,r)=>e(t,n,r)>=0,Pb}(),o=function(){if(Mb)return Ab;Mb=1;const e=Qb();return Ab=(t,n,r)=>e(t,n,r)<0,Ab}(),i=function(){if(jb)return Nb;jb=1;const e=Qb();return Nb=(t,n,r)=>e(t,n,r)<=0,Nb}();return zb=(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: ${s}`)}},zb}function ey(){if(Ub)return Bb;Ub=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: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!f(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(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,R(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),i("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),i("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),i("caret trim",e);let g=e.split(" ").map(e=>b(e,this.options)).join(" ").split(/\s+/).map(e=>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 y=new Map,v=g.map(e=>new o(e,this.options));for(const e of v){if(f(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const S=[...y.values()];return n.set(t,S),S}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(t=>g(t,n)&&e.set.some(e=>g(e,n)&&t.every(t=>e.every(e=>t.intersects(e,n)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(q(this.set[t],e,this.options))return!0;return!1}}Bb=t;const n=new(hb?db:(hb=1,db=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=mb(),o=function(){if(Wb)return $b;Wb=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: ${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(">")))}}$b=t;const n=mb(),{safeRe:r,t:o}=Zb(),i=Yb(),a=Jb(),s=Xb(),l=ey();return $b}(),i=Jb(),a=Xb(),{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=Zb(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:p}=Vb(),f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every(e=>o.intersects(e,t)),o=r.pop();return n},b=(e,t)=>(i("comp",e,t),e=w(e,t),i("caret",e),e=v(e,t),i("tildes",e),e=C(e,t),i("xrange",e),e=k(e,t),i("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,(t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),y(n)?s="":y(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:y(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(i("replaceTilde pr",a),s=`>=${n}.${r}.${o}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",s),s})},w=(e,t)=>e.trim().split(/\s+/).map(e=>x(e,t)).join(" "),x=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),y(n)?l="":y(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(a)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(i("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${a}-${s} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${s} <${+n+1}.0.0-0`):(i("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${a}${r} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),i("caret return",l),l})},C=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map(e=>E(e,t)).join(" ")),E=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,(n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=y(o),u=c||y(a),d=u||y(s),h=d;return"="===r&&h&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&h?(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=`${r+o}.${a}.${s}${l}`):u?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:d&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),i("xRange return",n),n})},k=(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],"")),R=e=>(t,n,r,o,i,a,s,l,c,u,d,h)=>`${n=y(r)?"":y(o)?`>=${r}.0.0${e?"-0":""}`:y(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=y(c)?"":y(u)?`<${+c+1}.0.0-0`:y(d)?`<${c}.${+u+1}.0-0`:h?`<=${c}.${u}.${d}-${h}`:e?`<${c}.${u}.${+d+1}-0`:`<=${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 Bb}var ty=function(){if(Gb)return Hb;Gb=1;const e=ey();return Hb=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},Hb}(),ny=G(ty);const ry={};function oy(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)||ny(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!ry[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);ry[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 Bf("Failed to load visualization: '".concat(n,"'"),e)})}return ry[i]}(a.name,a.version,t,o.load).then(e=>(n=n||Yg(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?(Je(!0,n,e),n):te(te({},n),e)})}};return a}function iy(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]=oy({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 ay(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=iy(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(ry).forEach(t=>{t.split("__")[0]===e&&(ry[t]=void 0)})}(e)}}}const sy={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())}},ly={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};sy.context=ly;const cy=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)},uy=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 dy=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ce(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=te(te({},n.context),{},{translator:r.translator,hostConfig:n.hostConfig});const[s,l]=cs({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),Ct(5e3,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},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:um(n.flags),deviceType:Et(n.context.deviceType),hostConfig:n.hostConfig,anything:n.anything},theme:c.externalAPI,translator:r.translator,nebbie:null},d={app:e,root:s,config:n,public:u,context:a,types:null},h=ay({halo:d});n.types.forEach(e=>h.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let p=new Promise(e=>{(async()=>{if(await c.setTheme(n.context.theme),n.hostConfig&&oe&&oe.getWebResourceAuthParams){const{queryParams:e}=await oe.getWebResourceAuthParams({hostConfig:n.hostConfig});a.queryParams=e,s.context(a)}})().then(e)}),f=null,g=null;const b={render:async e=>(await p,e.id?ub(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:h,onError:p}=e,f={};const m=[],{modelStore:g,subscribe:b}=n;let y;try{const e=t.types.get({name:r,version:o});f=await e.initialProperties(a,u);const n=await e.supernova();i&&await Pp({sn:n,properties:f,fields:i,children:m},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},f)}catch(e){y=e,f={qInfo:{qType:r},visualization:r}}const v=await t.app.createSessionObject(f);m.length>0&&await v.setFullPropertyTree({qProperty:f,qChildren:m}),g.set(v.id,v);const S=b(v);return rb(v,{options:s,plugins:l,element:c,onRender:h,onError:p},t,d,y,async()=>{await t.app.destroySessionObject(v.id),S()})}(e,d,l)),destroy:async()=>{s.destroy()},create:async e=>ob(e,d,!1,l),generateProperties:async e=>ob(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&&(await p,p=c.setTheme(t.theme),await p),t.language&&d.public.translator.language(t.language),s.context(a))},selections:async()=>(f||(f={mount(n){g||(g=function(e){let{element:n,app:r}=e;return m.createPortal(t.createElement(zh,{app:r}),n,jh())}({element:n,app:e}),s.add(g))},unmount(){g&&(s.remove(g),g=null)}}),f),field:async n=>{let r;const o="string"==typeof n?n:n.qLibraryId;if(n.qId)r=n.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const i={fieldName:o,async mount(a){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(o||r," not provided"));if(this._instance)throw new Error("Field or object ".concat(o||r," already mounted"));const c=()=>i.emit("selectionActivated"),u=()=>i.emit("selectionDeactivated");return new Promise(o=>{[this._instance,this._ref]=function(e){let{element:n,app:r,fieldIdentifier:o,qId:i,stateName:a="$",options:s={},renderedCallback:l}=e;const c=t.createRef();return[m.createPortal(t.createElement(Cp,{ref:c,app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,initialOptions:s,renderedCallback:l}),n,jh()),c]}({element:a,app:e,fieldIdentifier:n,qId:r,options:xp(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=xp(te({onSelectionActivated:n,onSelectionDeactivated:r},e));i._ref.current.setOptions(t)}}}};return mu(i),i},getRegisteredTypes:h.getList,__DO_NOT_USE__:{types:h,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({},Ep);return Je(!0,t,e),t}(te({onPopoverClose:()=>b.emit("fieldPopoverClose")},o));b._popoverInstance=t.createElement(kp,{element:n,key:jh(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(b._popoverInstance)}}};return d.public.nebbie=b,d.types=h,mu(b),b}return o.createConfiguration=t=>e(((e,t)=>({context:cy(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:te({},t.snapshot||e.snapshot),types:uy(e.types,t.types),themes:uy(e.themes,t.themes),flags:cy(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:cy(e.anything,t.anything)}))(n,t)),o.config=n,o}(sy);function hy(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const py=globalThis.crypto||{getRandomValues:()=>123456};function fy(e){return t=>{const n=Je({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^py.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)));const r=n._mock;let o=n;return r&&(delete n._mock,o=Je({},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 my=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},gy=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=my(e,{defaultValue:t,args:i});return n?new Promise(e=>{setTimeout(()=>e(s),r)}):s}},by=["id","session"],yy=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function vy(e){return!yy.includes(e)}function Sy(e){const t=my(e.getLayout);return t.qInfo&&t.qInfo.qId}function wy(e,t){return e.reduce((e,n)=>te(te({},e),function(e,t){let n=Sy(e);const{delay:r}=t,{id:o,session:i}=e,a=ne(e,by);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));n=n||o||"object - ".concat(+Date.now());const s=te(te({id:n,session:my(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce((e,t)=>{let[n,o]=t;return te(te({},e),{},{[n]:gy(o,{async:vy(n),delay:r})})},{})),{},{genericType:e.type});return{[n]:s}}(n,t)),{})}function xy(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Sy(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Cy(){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(xy);const n=wy(e,t);return async e=>Promise.resolve(n[e])}function Ey(){return()=>Promise.resolve({id:"app-layout"})}const ky={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new hy,r=new fy(n),o=new Cy(e,t),i=new Ey,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]:{})}},Ly={generator:Yg,hook:ug,theme:xt,locale:ie};function Ry(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.self}function qy(){return!("undefined"==typeof process||!process.version||!process.versions.node)}function Iy(e){if(Array.isArray(e))return e.map(Iy);if("object"==typeof(t=e)&&null!==t&&t.constructor===Object){const t={};for(const n of Object.keys(e).sort())t[n]=Iy(e[n]);return t}var t;return e}function _y(e){if(Array.isArray(e))return e.map(e=>"object"==typeof e&&null!==e?_y(e):e).filter(e=>"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e&&""!==e);if("object"==typeof e&&null!==e){const t={};for(const n of Object.keys(e)){const r=e[n];switch(typeof r){case"undefined":break;case"boolean":r&&(t[n]=r);break;case"string":{const e=r.trim();""!==e&&(t[n]=e);break}case"object":{if(null===r)break;const e=_y(r);e&&(Array.isArray(e)&&e.length>0||"object"==typeof e&&Object.keys(e).length>0)&&(t[n]=e);break}case"function":case"number":t[n]=r;break;default:console.warn(`Unexpected type for key "${n}": ${typeof r}`),t[n]=r}}if(0===Object.keys(t).length)return;return t}return e}let Oy;Oy=function(){const e=[...Oy?.getInterceptors()||[]];return{addInterceptor:t=>(e.push(t),t),removeInterceptor:t=>{const n=e.indexOf(t);let r;return-1!==n&&(r=e.splice(n,1)[0]),r||null},getInterceptors:()=>e}}();const Ty=["authType","autoRedirect","authRedirectUserConfirmation","embedRuntimeUrl","host","onAuthFailed"],Py=["apikey","oauth2","cookie","windowscookie","reference","anonymous"];let Dy=e=>crypto.getRandomValues(new Uint8Array(e)),Ay=(e,t=21)=>((e,t,n)=>{let r=(2<<Math.log2(e.length-1))-1,o=-~(1.6*r*t/e.length);return(i=t)=>{let a="";for(;;){let t=n(o),s=0|o;for(;s--;)if(a+=e[t[s]&r]||"",a.length>=i)return a}}})(e,0|t,Dy);const My={};const Ny=async({hostConfig:e,noCache:t}={})=>{const n=ES(e),r=`${n}/resources/autogenerated/product-info.json`;try{if(!(r in My)){const e={};globalThis.QlikMain&&globalThis.QlikMain.resourceNeedsCredentials(r)&&(e.credentials="include");const t=fetch(r,e).then(async e=>e.ok?{data:await e.json(),status:e.status}:{data:void 0,status:e.status});My[r]=t}const e=await My[r];return(e.status>=400||!e.data)&&delete My[r],e}catch{return delete My[r],{data:void 0,status:500}}finally{t&&delete My[r]}},jy=e=>{const t=e.externalUrls;if(!t)return;const n=e.composition?.productName??"Qlik",r=e.composition?.releaseLabel||"-",o="-"===r?n:`${n} (${r})`;return{productId:e.composition?.senseId??"qlik",productLabel:o,version:e.composition?.version,urls:{personalHelpBaseUrl:t.personalHelpBaseUrl,personalUpgradeBase:t.personalUpgradeBase,personalUpgradeUrl:t.personalUpgradeUrl,serverHelpBaseUrl:t.serverHelpBaseUrl,qlikWebPageUrl:t.qlikWebPageUrl}}},zy=e=>({isNodeEnv:!1,isCloud:!1,isQCS:!1,isQCG:!1,isCloudConsole:!1,isControlCenter:!1,isWindows:!1,isQSE:!1,isQSD:!1,isUnknown:!1,isAnonymous:!1,...e});function Fy(e){return((e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t})(e)}const $y="__QLIK_INTERNAL__DO_NOT_USE_OR_YOU_WILL_BE_FIRED";const Wy="qlik-qmfe-api";function By(e){let t=e.clientId+(e.scope?`_${e.scope}`:"_user_default");return e.subject&&(t+=`_${e.subject}`),e.userId&&(t+=`_${e.userId}`),t}function Uy(e){return`${e.accessCode}_${e.clientId}`}const Hy={};function Gy(e,t,n){localStorage.setItem(`${Wy}-${e}-${t}`,n)}function Ky(e,t,n){sessionStorage.setItem(`${Wy}-${e}-${t}`,n)}function Vy(e,t){return localStorage.getItem(`${Wy}-${e}-${t}`)||void 0}function Jy(e,t){return sessionStorage.getItem(`${Wy}-${e}-${t}`)||void 0}function Zy(e,t){t.forEach(t=>localStorage.removeItem(`${Wy}-${e}-${t}`))}function Xy(e,t){t.forEach(t=>sessionStorage.removeItem(`${Wy}-${e}-${t}`))}function Qy(e,t){const n=`${Wy}-${e}-${t}`,r=sessionStorage.getItem(n)||void 0;return sessionStorage.removeItem(n),r}async function Yy(e,t){if(!e.clientId)throw new lS('A host config with authType set to "oauth2" has to also provide a clientId');return ev(By(e),t,e.noCache,e.accessTokenStorage)}async function ev(e,t,n,r){if(n)return t();const o=Ry(),i=Hy[e]||(o?function(e,t){let n,r;if("local"===t?(n=Vy(e,"access-token"),r=Vy(e,"refresh-token")):"session"===t&&(n=Jy(e,"access-token"),r=Jy(e,"refresh-token")),n)return{accessToken:n,refreshToken:r}}(e,r):void 0);if(i)return Hy[e]=i,Promise.resolve(i);const a=t();if(Hy[e]=a,o){const t=await a;"local"===r&&t?(t.accessToken&&Gy(e,"access-token",t.accessToken),t.refreshToken&&Gy(e,"refresh-token",t.refreshToken)):"session"===r&&t&&(t.accessToken&&Ky(e,"access-token",t.accessToken),t.refreshToken&&Ky(e,"refresh-token",t.refreshToken))}return a}function tv(e){const t=By(e);delete Hy[t],Ry()&&(Zy(t,["access-token","refresh-token"]),Xy(t,["access-token","refresh-token"]))}function nv(e){if("string"==typeof e){const t=globalThis[e];if(!t)throw new Error(`No such function: ${e}`);return t}return e}function rv(e){if(e.errors)throw new hS(e.errors)}function ov(e){const t=Object.keys(e);t.sort();return t.map(t=>`${t}=${e[t]}`).join("&")}async function iv(e){const t=(new TextEncoder).encode(e),n=await globalThis.crypto.subtle.digest("SHA-256",t),r=function(e){let t="";if(Ry()){const n=String.fromCharCode.apply(null,e);t=btoa(n)}else{if(!qy())throw new Error("Environment not supported for oauth2 authentication");t=Buffer.from(e).toString("base64")}return t}(Array.from(new Uint8Array(n)));return r.replaceAll(/\+/g,"-").replaceAll(/\//g,"_").replace(/=+$/,"")}async function av(e){const t=e.clientId||"",n=ES(e),r=Fy(128),o=Fy(43),i=await iv(r),a=e.redirectUri||globalThis.location.href,s=By(e);tv(e),Ky(s,"state",o),Ky(s,"verifier",r),Ky(s,"href",globalThis.location.href),Ky("","client-in-progress",s);const l=`${n}/oauth/authorize?${ov({response_type:"code",client_id:t,redirect_uri:a,scope:e.scope||"user_default",state:o,code_challenge:i,code_challenge_method:"S256"})}`;globalThis.location.replace(l)}async function sv(e,t,n,r){try{const o=await fetch(`${ES(e)}/oauth/token`,{method:"POST",credentials:"include",mode:"cors",headers:{"content-type":"application/json"},redirect:"follow",body:JSON.stringify({grant_type:"authorization_code",scope:e.scope||"user_default",...t?{code:t}:{},redirect_uri:r||globalThis.location.href,...n?{code_verifier:n}:{},client_id:e.clientId})}),i=await o.json();return rv(i),{accessToken:i.access_token,refreshToken:i.refresh_token,errors:i.errors}}catch(e){return console.error(e),new Promise(()=>{})}}function lv(e,t,n,r,o){const i={client_id:e,client_secret:t,scope:n};return r?{...i,grant_type:"urn:qlik:oauth:user-impersonation",user_lookup:{field:"subject",value:r}}:o?{...i,grant_type:"urn:qlik:oauth:user-impersonation",user_lookup:{field:"userId",value:o}}:{...i,grant_type:"client_credentials"}}async function cv(e){const{clientId:t,clientSecret:n}=e;if(!t||!n)throw new lS('A host config with authType set to "oauth2" has to provide a clientId and a clientSecret');const r=await Yy(e,async()=>{if(!e.clientId||!e.clientSecret)throw new lS('A host config with authType set to "oauth2" has to provide a clientId and a clientSecret');return async function(e,t,n,r="user_default",o,i){const a=await fetch(`${e}/oauth/token`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify(lv(t,n,r,o,i))}),s=await a.json();return{accessToken:s.access_token,refreshToken:s.refresh_token,errors:s.errors}}(ES(e),e.clientId,e.clientSecret,e.scope,e.subject,e.userId)});return r}async function uv(e){const{clientId:t}=e;if(!t)throw new lS('A host config with authType set to "oauth2" has to also provide a clientId');const n=await Yy(e,async()=>{if(e.getAccessToken)try{const t="string"==typeof e.getAccessToken?await function(e){return globalThis[e]}(e.getAccessToken)():await e.getAccessToken();return{accessToken:t,refreshToken:void 0,errors:void 0}}catch{return fv("Could not fetch access token using custom function")}if(e.performInteractiveLogin){let t;try{const n=Fy(128),r=Fy(43),{code:o,state:i}=function(e){if("string"==typeof e){const t=new URLSearchParams(new URL(e).search);return{code:t.get("code")||"",state:t.get("state")||""}}return e}(await nv(e.performInteractiveLogin)({getLoginUrl:async({redirectUri:o})=>(t=o,async function(e,t,n,r){const o=e.clientId||"",i=ES(e),a=await iv(r);return`${i}/oauth/authorize?${ov({response_type:"code",client_id:o,redirect_uri:t,scope:e.scope||"user_default",state:n,code_challenge:a,code_challenge_method:"S256"})}`}(e,o,r,n))}));if(!t)return fv("No redirect uri provided");if(r!==i)return fv("State returned by custom interactive login function does not match original");if(!o)return fv("No code found in response from custom interactive login function");return await sv(e,o,n,t)}catch(e){return{accessToken:void 0,refreshToken:void 0,errors:[{code:"",status:401,title:"Could not perform custom interactive login",detail:`${e}`}]}}}const t=By(e),n=Qy(t,"code"),r=Qy(t,"verifier");if(n&&r){const t=await sv(e,n,r,e.redirectUri);if(t)return t}});return n||(e.performInteractiveLogin||(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),av(e)),new Promise(()=>{}))}!function(e,t){(globalThis.location?.origin.startsWith("https://localhost:")||globalThis.location?.origin?.endsWith("qlik-stage.com"))&&(void 0===globalThis[$y]&&(globalThis[$y]={}),globalThis[$y][e]=t)}("clearAllAccessTokens",()=>{console.log("Clearing tokens",Hy),Object.keys(Hy).forEach(e=>{console.log("Clearing access tokens for",e),Zy(e,["access-token","refresh-token"]),Xy(e,["access-token","refresh-token"])}),function(){for(const e in Hy)delete Hy[e]}()});let dv=Promise.resolve("");async function hv(e){if(qy()){const t=await cv(e);return t?(rv(t),t.accessToken||""):""}return Ry()&&(dv=dv.then(async()=>{const t=await uv(e);return t?(rv(t),t.accessToken||""):""})),dv}async function pv(e){const t=await async function(e){return Hy[By(e)]}(e);if(tv(e),t&&t.refreshToken&&e.clientSecret){const n=await Yy(e,async()=>{if(!t||!t.refreshToken||!e.clientSecret)throw new Error("Trying to refresh tokens without refreshToken or clientSecret");return async function(e,t,n){const r=await fetch(`${e}/oauth/token`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:"refresh_token",refresh_token:t,client_secret:n})}),o=await r.json();return{accessToken:o.access_token,refreshToken:o.refresh_token,errors:o.errors}}(ES(e),t.refreshToken,e.clientSecret)});n&&rv(n)}}function fv(e){return{accessToken:void 0,refreshToken:void 0,errors:[{code:"",status:401,title:e,detail:""}]}}async function mv(e,t,n){const r=await fetch(`${ES(e)}/oauth/token`,{method:"POST",credentials:"include",mode:"cors",headers:{"content-type":"application/json"},redirect:"follow",body:JSON.stringify({subject_token:t,subject_token_type:"urn:ietf:params:oauth:token-type:access_token",grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",purpose:n,redirect_uri:globalThis.location?.href,client_id:e.clientId})});if(200!==r.status)throw await async function(e){const t=await e.text();try{const e=JSON.parse(t);return new hS(e.errors)}catch{return new hS([{code:"unknown",status:e.status,detail:t,title:"Unknown authentication error"}])}}(r);return(await r.json()).access_token}async function gv(e,t){try{return await t()}catch(n){const{retry:r}=await vv({hostConfig:e});if(r)return t();throw n}}function bv(){const e=Math.floor(Date.now()/1e3).toString(16);var t;return`${e}${t=40-e.length,Ay("1234567890abcdef",t)()}`}async function yv(e){const{accessCode:t,clientId:n}=e;if(!t||!n)throw new lS('A host config with authType set to "anonymous" has to provide both an accessCode and clientId');const r=await async function(e,t){if(!e.accessCode)throw new lS('A host config with authType set to "anonymous" has to also provide an accessCode');return ev(Uy(e),t,!1,void 0)}(e,async()=>{const r=ES(e),o=await async function(e){let t;if(Ry()){const n=Uy(e);t=Vy(n,"tracking-code"),t||(t=bv()),Gy(n,"tracking-code",t)}else t=bv();return t}(e);return async function(e,t,n,r){const o=await fetch(`${e}/oauth/token/anonymous-embed`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify({eac:t,client_id:n,grant_type:"urn:qlik:oauth:anonymous-embed",tracking_code:r})}),i=await o.json();return{accessToken:i.access_token,refreshToken:i.refresh_token,errors:i.errors}}(r,t,n,o)});if(!r)return"";if(r.errors)throw new hS(r.errors);return r.accessToken?r.accessToken:""}async function vv({hostConfig:e}){return function(e){const t=Uy(e);delete Hy[t],Ry()&&(Zy(t,["access-token","refresh-token"]),Xy(t,["access-token","refresh-token"]))}(e),{preventDefault:!1,retry:!0}}var Sv={requiredProps:["clientId","accessCode"],optionalProps:[],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{Authorization:`Bearer ${await yv(e)}`},queryParams:{},credentials:"omit"}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await gv(e,async()=>{const t=await yv(e);return mv(e,t,"websocket")})}}},getWebResourceAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await gv(e,async()=>{const t=await yv(e);return mv(e,t,"websocket")})}}},handleAuthenticationError:vv};var wv={requiredProps:["apiKey"],optionalProps:[],getRestCallAuthParams:function({hostConfig:e}){return Promise.resolve({headers:{Authorization:`Bearer ${e?.apiKey}`},queryParams:{},credentials:"omit"})},getWebSocketAuthParams:async function(){return{queryParams:{}}},handleAuthenticationError:function(){return Promise.resolve({})}},xv=class extends Error{status;headers;data;constructor(e,t,n,r){super(e),this.status=t,this.headers=n,this.data=r,this.stack=Lv(this.stack)}},Cv=class extends Error{contentType;data;constructor(e,t,n){super(e),this.contentType=t,this.data=n,this.stack=Lv(this.stack)}};const Ev=/^.+\/qmfe-api(?:\.js)?:(\d+)(?::\d+)?$/gim,kv=e=>{const t=e.match(Ev);return Boolean(t&&t.length>0)};function Lv(e){if(!e)return e;const t=[],n=e.split("\n");n.reverse();for(const e of n){if(kv(e))break;t.unshift(e)}return t.join("\n")}function Rv(e,t,n,r){let o=e;return""!==t&&(o=o.concat(`?${t}`)),r&&(o=o.concat(`+headers=${JSON.stringify(r)}`)),n&&(o=o.concat(`+host-config=${n}`)),o}function qv(e){return e&&(e instanceof Blob||e instanceof Object&&"[object Blob]"===e.toString())||e&&e instanceof ReadableStream||"string"==typeof e?e:JSON.parse(JSON.stringify(e))}function Iv(e){return!("get"===e||"GET"===e)}function _v(e){const t=e.indexOf("?");if(t>=0)return e.substring(0,t);const n=e.indexOf("+headers=");if(n>=0)return e.substring(0,n);const r=e.indexOf("+host-config=");return r>=0?e.substring(0,r):e}function Ov(e){return e.then(e=>{const t={data:qv(e.data),headers:e.headers,status:e.status};return e.next&&(t.next=e.next),e.prev&&(t.prev=e.prev),t})}const Tv={};function Pv(e){return e instanceof Error?e.cause?e.message?`${e.message} - ${Pv(e.cause)}`:Pv(e.cause):e.message:String(e)}async function Dv(e,t,n,r,o,i,a,s){const{body:l,contentTypeHeader:c,requestOptions:u}=function(e,t){if(!e)return{body:null,contentTypeHeader:{},requestOptions:{}};const n={},r={};let o=null;switch(t){case"":case"application/json":n["Content-Type"]="application/json",o=JSON.stringify(e);break;case"multipart/form-data":o=function(e){const t="multipart/form-data";if("object"!=typeof e)throw new Cv(`Cannot encode ${typeof e} as ${t}, body should be an object.`,t,e);if(Array.isArray(e))throw new Cv(`Cannot encode ${typeof e} as ${t}, body should be an object.`,t,e);if(e instanceof FormData)return e;const n=new FormData;return Object.entries(e).forEach(r=>{const[o,i]=r;switch(typeof i){case"boolean":case"number":case"string":n.set(o,`${i}`);break;case"object":if(i instanceof Blob)n.set(o,i);else if(i instanceof Uint8Array){const e=new Blob([i],{type:"application/octet-stream"});n.set(o,e)}else{const e=JSON.stringify(i),t=new Blob([e],{type:"application/json"});n.set(o,t,"")}break;default:throw new Cv(`Cannot encode multipart-field "${o}" with value of type ${typeof i}, values must be objects, strings, numbers or boolean.`,t,e)}}),n}(e);break;case"application/octet-stream":n["Content-Type"]=t,r.duplex="half",o=e;break;case"text/plain":if("string"!=typeof e)throw new Cv(`Cannot send ${typeof e} as ${t}, body should be a string.`,t,e);n["Content-Type"]=t,o=e;break;default:throw new Cv(`Unsupported content-type "${t}", supported are: application/json, multipart/form-data, application/octet-stream and text/plain`,t,e)}return{body:o,contentTypeHeader:n,requestOptions:r}}(n,r??""),d={...c,...i,...o?.headers,...zv()};!d["User-Agent"]&&s&&(d["User-Agent"]=s);const h={method:e,credentials:a,mode:"cors",headers:d,redirect:await CS(o?.hostConfig)?"manual":"follow",keepalive:o?.keepalive,progress:o?.progress,body:l,...u};let p,f;if(o?.signal)h.signal=o.signal;else if(o?.timeoutMs&&o.timeoutMs>0){const e=new AbortController;p=setTimeout(()=>{e.abort()},o.timeoutMs),h.signal=e.signal}f=o?.progress?await async function(e,{method:t,headers:n,credentials:r,keepalive:o,body:i,signal:a,progress:s}){const l=new XMLHttpRequest;let c,u;const d=new Promise((e,t)=>{c=e,u=t});if(l.open(t||"GET",e),"object"!=typeof n)throw Error("malformed headers",n);for(const[e,t]of Object.entries(n))l.setRequestHeader(e,t);o&&l.setRequestHeader("Connection","keep-alive"),a&&a.addEventListener("abort",()=>{l.abort(),u()}),l.withCredentials="include"===r,s?.onUpload&&(l.upload.onprogress=e=>{const{loaded:t,total:n,lengthComputable:r}=e;s.onUpload?.({loaded:t,total:r?n:void 0})}),s?.onDownload&&(l.onprogress=e=>{const{loaded:t,total:n,lengthComputable:r}=e;s.onDownload?.({loaded:t,total:r?n:void 0})}),l.onloadend=()=>{const{status:e}=l,t={};for(const e of l.getAllResponseHeaders().split("\r\n")){const[n,r]=e.split(":",2);n&&r&&(t[n]=r)}l.response?c(new Response(l.response,{status:e,headers:t})):c(new Response(void 0,{status:e,headers:t}))};try{const e=i;l.send(e)}catch(e){return Promise.reject(new xv(Pv(e),0,new Headers,{}))}return d}(t,h):await async function(e,t){try{return await fetch(e,t)}catch(e){return Promise.reject(new xv(Pv(e),0,new Headers,{}))}}(t,h),p&&clearTimeout(p);const m=await async function(e,t){let n;const r=e.headers.get("content-type")?.split(";")[0],o=e.headers.get("content-disposition")?.split(";");if(o&&"attachment"===o[0]){let t="";for(let e=1;e<o.length;e++){const n=o[e].trim();if(0===n.indexOf("filename")){const e=n.indexOf('"'),r=n.lastIndexOf('"');t=n.slice(e+1,r)}}n=Fv(await e.blob(),t)}else switch(r){case"image/png":case"image/jpeg":case"image/x-icon":case"application/offset+octet-stream":case"application/octet-stream":case"application/zip":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":case"application/pdf":n=Fv(await e.blob());break;case"text/event-stream":n=e.body;break;default:try{n=await e.text(),n=JSON.parse(n)}catch{}}const{status:i,statusText:a,headers:s}=e,l=`request to '${t}' failed with status ${i} ${a}.`;if(i>=300)throw new xv(l,i,s,n);if(0===i)throw new xv(l,302,s,n);const c={status:i,headers:s,data:n};return c}(f,t);return m}async function Av({method:e,pathTemplate:t,pathVariables:n,query:r,options:o}){const i=ES(o?.hostConfig),{headers:a,queryParams:s,credentials:l}=await IS({hostConfig:o?.hostConfig,method:e}),c=i+function(e,t){let n=e;return t&&Object.keys(t).forEach(e=>{n=n.replace(`{${e}}`,t[e])}),n}(t,n),u=function(e){return e?Object.entries(e).map(e=>{const[,t]=e;if(void 0!==t)return e.map(e=>encodeURIComponent(e)).join("=")}).filter(Boolean).join("&"):""}({...r,...s}),d=function(e,t){return""!==t?`${e}?${t}`:e}(c,u);return{completeUrl:d,cacheKey:Rv(c,u,DS(o?.hostConfig),o?.headers),authHeaders:a,credentials:l}}function Mv(e,t){return Nv(e,t,async()=>{const{cacheKey:n,authHeaders:r,credentials:o}=await Av(t);return Nv(e,{...t,cacheKey:n,authHeaders:r,credentials:o,options:{...t.options,noCache:!0}},void 0)})}function Nv(e,{method:t,completeUrl:n,cacheKey:r,body:o,options:i,authHeaders:a,credentials:s,contentType:l,userAgent:c},u){Tv[e]||(Tv[e]={});const d=Iv(t)?void 0:Tv[e][r];if(Iv(t)&&function(e,t){const n=_v(t);for(const t in e){const r=_v(t);(n.startsWith(r)||r.startsWith(n))&&delete e[t]}}(Tv[e],r),d&&function(e,t,n){if(!t||void 0===t.value)return!1;if(e?.noCache)return!1;if(e?.useCacheIfAfter)return e.useCacheIfAfter.getTime()<=t.lastPulled;const r=Date.now()-t.lastPulled;return e?.maxCacheAge?r<=e?.maxCacheAge:r<n}(i,d,6e5))return d.lastHit=new Date,d.hitCount+=1,d.accessedPaths.add(globalThis.location?globalThis.location.pathname:"node"),Ov(d.value);const h=Dv(t,n,o,l,i,a,s,c),p=async function(e,t,n){try{return await t}catch(t){const r=t,o=r.data;if(401===r.status||403===r.status&&"CSRF-TOKEN-2"===o?.code||(301===r.status||302===r.status)&&await CS(e)){if(globalThis.loggingOut)return jv();const{retry:t,preventDefault:i}=await qS({hostConfig:e,status:r.status,headers:r.headers,errorBody:o,canRetry:!!n});if(t&&n)return n();if(i)return jv()}throw t}}(i?.hostConfig,h,u),f=function(e,t,n,r,o,i,a){const s=DS(o?.hostConfig);return t.then(t=>{const l=t.data;if(!l)return t;const c=l.links?.prev?.href,u=l.links?.next?.href;return c&&(t.prev=t=>Mv(e,{method:n,completeUrl:c,body:r,options:t||o,cacheKey:Rv(c,"",s,o?.headers),authHeaders:i,credentials:a})),u&&(t.next=t=>Mv(e,{method:n,completeUrl:u,body:r,options:t||o,cacheKey:Rv(u,"",s,o?.headers),authHeaders:i,credentials:a})),t})}(e,p,t,o,i,a,s),m=function(e,t,n){return n.catch(n=>(delete e[t],Promise.reject(n)))}(Tv[e],r,f);if((e=>"get"===e||"GET"===e)(t)){if(Object.hasOwn&&!Object.hasOwn(Tv,e)||"__proto__"===e)throw new Error(`Forbidden api name: ${e}`);Tv[e][r]={lastPulled:Date.now(),value:m,lastHit:null,hitCount:0,accessedPaths:new Set}}return Ov(m)}function jv(){return new Promise(()=>{})}function zv(){if(!Ry())return{};const e=localStorage.getItem("qmfe-api-service-overrides-header");return e?{"X-Qlik-Overrides":e}:{}}function Fv(e,t){const n=e;return n.download=t?(n=t)=>$v(e,n):t=>$v(e,t),n}async function $v(e,t){if(Ry()){const n=document.createElement("a"),r=window.URL.createObjectURL(e);n.href=r,n.download=t,n.click(),window.URL.revokeObjectURL(r)}else{const{writeFileSync:n}=await Promise.resolve().then(function(){return BS}),r=await e.arrayBuffer();n(t,new Uint8Array(r))}}globalThis.__API_CACHE__DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tv;const Wv="qmfe-api/latest";async function Bv(e,t,n){const r=(Oy.getInterceptors()||[]).reduce((e,t)=>n=>t(n,e),t=>async function(e,t){let n;(function(e){const t=jS(e);if(xS(t)){if(0===Object.keys(t).length)throw new lS("a host config must be provided when making a cross domain request");if(!t.host)throw new lS("A 'host' property must be set in host config when making a cross domain request")}})(t.options?.hostConfig),n=t?.userAgent?t.userAgent:Ry()?`${window.navigator.userAgent} ${Wv}`:Wv;const{completeUrl:r,cacheKey:o,authHeaders:i,credentials:a}=await Av(t);return Mv(e,{...t,method:t.method.toUpperCase(),completeUrl:r,cacheKey:o,authHeaders:i,credentials:a,userAgent:n})}(e,t));return r(t)}async function Uv(e,t){const n=ES(e);let r;r=await CS(e)?"/qps/csrftoken":"/api/v1/csrf-token";const o=async()=>{try{const t=(await Bv("csrf-token",{method:"get",pathTemplate:r,options:{hostConfig:e,noCache:!0}})).headers.get("qlik-csrf-token");return t||""}catch(e){if(404===e.status)return"";throw e}};return t?(Hv[n]=o(),Hv[n]):(Hv[n]=Hv[n]||o(),Hv[n])}const Hv={};function Gv(e){return!1===e.crossSiteCookies?"same-origin":xS(e)?"include":"same-origin"}var Kv={requiredProps:[],optionalProps:["webIntegrationId","crossSiteCookies","anonymousMode"],getRestCallAuthParams:async function({hostConfig:e,method:t}){const n={};var r;return"get"!==(r=t)&&"GET"!==r&&(n["qlik-csrf-token"]=await Uv(e)),e.webIntegrationId&&(n["qlik-web-integration-id"]=e.webIntegrationId),{headers:n,queryParams:{},credentials:Gv(e)}},getWebSocketAuthParams:async function({hostConfig:e}){const t={"qlik-csrf-token":await Uv(e,!0)};return e.webIntegrationId&&(t["qlik-web-integration-id"]=e.webIntegrationId),{queryParams:t}},handleAuthenticationError:async function({hostConfig:e,status:t}){if(function(e){const t=ES(e);delete Hv[t]}(e),403===t)return{preventDefault:!1,retry:!0};const n=e.webIntegrationId?`qlik-web-integration-id=${e?.webIntegrationId}&`:"",r=ES(e);return e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),globalThis.location.replace(`${r}/login?${n}returnto=${encodeURIComponent(globalThis.location.href)}`),{preventDefault:!0}}};var Vv={requiredProps:[],optionalProps:[],getRestCallAuthParams:function(){return Promise.resolve({headers:{},queryParams:{},credentials:"same-origin"})},getWebSocketAuthParams:function(){return Promise.resolve({queryParams:{}})},handleAuthenticationError:function(){return Promise.resolve({})}};async function Jv(e,t){try{return await t()}catch(n){const{retry:r}=await Zv({hostConfig:e});if(r)return t();throw n}}async function Zv({hostConfig:e}){return e.getAccessToken?(tv(e),{preventDefault:!1,retry:!0}):Ry()?e.performInteractiveLogin?(tv(e),{retry:!0}):(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),av(e),{preventDefault:!0}):(await pv(e),{preventDefault:!1,retry:!0})}Ry()&&function(){const e=new URLSearchParams(globalThis.location.search),t=e.get("code")||void 0,n=e.get("state")||void 0;if(e.get("error")){const t=document.createElement("pre");t.innerText=`<code>${JSON.stringify({error:e.get("error"),error_code:e.get("error_code"),error_description:e.get("error_description"),error_detail:e.get("error_detail"),error_uri:e.get("error_uri")})}</code>`,document.body.prepend(t)}const r=Qy("","client-in-progress");if(r&&t&&n){const e=Qy(r,"state"),o=Qy(r,"href");e&&e===n&&o&&(Ky(r,"code",t),o!==globalThis.location.href&&globalThis.location.replace(o))}}();var Xv={requiredProps:["clientId"],optionalProps:["clientSecret","redirectUri","accessTokenStorage","scope","subject","userId","noCache","getAccessToken","performInteractiveLogin"],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{Authorization:`Bearer ${await hv(e)}`},queryParams:{},credentials:"omit"}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await Jv(e,async()=>{const t=await hv(e);return mv(e,t,"websocket")})}}},getWebResourceAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await Jv(e,async()=>{const t=await hv(e);return mv(e,t,"webresource")})}}},handleAuthenticationError:Zv};var Qv={requiredProps:["reference"],optionalProps:[],getRestCallAuthParams:function(){throw new Error("getRestCallAuthParams should never be called for reference auth module")},getWebSocketAuthParams:function(){throw new Error("getWebSocketAuthParams should never be called for reference auth module")},handleAuthenticationError:function(){throw new Error("handleAuthenticationError should never be called for reference auth module")}};const Yv={};function eS(e){const t=ES(e);return Yv[t]=Yv[t]||function(){let e="";for(let t=0;t<16;t+=1){const t=Math.floor(62*Math.random());e+=t<10?t:t>9&&t<36?String.fromCharCode(t+55):String.fromCharCode(t+61)}return e}(),Yv[t]}var tS={requiredProps:[],optionalProps:["loginUri","crossSiteCookies"],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{"X-Qlik-XrfKey":eS(e)},queryParams:{xrfkey:eS(e)},credentials:Gv(e)}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{xrfkey:eS(e),"qlik-csrf-token":await Uv(e,!0)}}},handleAuthenticationError:async function({hostConfig:e}){return e.loginUri?(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),globalThis.location.replace(e.loginUri.replace("{location}",encodeURIComponent(globalThis.location.href))),{preventDefault:!0}):{}}};const nS={};let rS=Promise.resolve(),oS=!1;function iS(e,t){nS[e.toLowerCase()]=t}async function aS(e){const t=jS(e),n=await sS(t);rS&&await rS;let r=function(e){return nS[e.toLowerCase()]}(n);if(r||(rS=(async()=>{r=await async function(e){const t=globalThis[e];if(t){let n;if(n="function"==typeof t?await t():t,n&&n.getRestCallAuthParams&&n.getWebSocketAuthParams&&n.handleAuthenticationError)return n;throw console.error("Not a valid auth module",n),new uS(e)}return Promise.resolve(void 0)}(n),r&&iS(n,r)})(),await rS),!r)throw new uS(n);return r.validateHostConfig?r.validateHostConfig({authType:n,...t}):function(e,{requiredProps:t,optionalProps:n}){const r=[];for(const n of t)e[n]||r.push(n);if(r.length>0)throw new lS(`missing required properties in host config; '${r.join("', '")}'`);const o=[...Ty,...t,...n],i=[];Object.keys(e).forEach(e=>{o.includes(e)||i.push(e)}),i.length>0&&console.warn(`WARNING: unknown properties in host config; '${i.join("', '")}'`)}({authType:n,...t},{requiredProps:r.requiredProps||[],optionalProps:r.optionalProps||[]}),r}async function sS(e){return e.authType?e.authType:e.apiKey?"apikey":e.accessCode?"anonymous":e.clientId?"oauth2":e.webIntegrationId?"cookie":e.reference?"reference":await CS(e)?"windowscookie":"cookie"}oS||(iS("apikey",wv),iS("cookie",Kv),iS("none",Vv),iS("oauth2",Xv),iS("anonymous",Sv),iS("windowscookie",tS),iS("reference",Qv),oS=!0);var lS=class extends Error{constructor(e){super(`Invalid host config: ${e}`),this.name="InvalidHostConfigError"}},cS=class extends Error{constructor(...e){const t=e.map((e,t)=>0===t?`"${e}"`:`or "${e}"`).join(" ");super(`HostConfig is not properly configured. authType is expected to be ${t}`),this.name="UnexpectedAuthTypeError"}},uS=class extends Error{constructor(e){super(`Not a valid auth type: ${e}, valid auth types are; '${Object.keys(nS).filter(e=>"qmfeembedframerauthmodule"!==e.toLowerCase()).join("', '")}'`),this.name="InvalidAuthTypeError"}};function dS({title:e,detail:t,code:n,status:r}){return t?`${e} - ${t} (Status: ${r}, Code: ${n})`:`${e} (Status: ${r}, Code: ${n})`}var hS=class extends Error{errors;constructor(e){if("object"!=typeof e)return void super("Unknown error");const t=Array.isArray(e)?e:[e];super(t.map(dS).join(", ")),this.errors=t}};function pS(e){const t=_y(e)||{};return t.host&&(t.host=ES(t)),Ry()&&ES(t)===window.location.origin&&delete t.host,t.authType&&Py.includes(t.authType)&&delete t.authType,t}function fS(e,t){if("function"!=typeof t)return t}const mS=new Map;function gS(e,t){const n=t?.reference||null;if(n&&!mS.has(n))throw new lS(`Host config with reference "${n}" is not registered. Please register it before using it.`);mS.has(e)&&console.warn(`registerHostConfig: Host config with name "${e}" is already registered. Overwriting.`),mS.set(e,t)}function bS(e){return mS.get(e)}function yS(){return bS("default")||{}}globalThis.loggingOut=!1;let vS="";function SS({message:e}){e!==vS&&(vS=e,console.error(e))}function wS(e){return sS(e)}function xS(e){if(!globalThis.location?.origin)return!0;const t=jS(e);if(0===Object.keys(t).length)return!1;try{return new URL(ES(t)).origin!==globalThis.location.origin}catch{}return!1}async function CS(e){const t=jS(e);return"boolean"==typeof t.forceIsWindows?t.forceIsWindows:"cookie"!==t.authType&&("windowscookie"===t.authType||(await(async(e={})=>{const t=jS(e.hostConfig),n="anonymous"===t?.authType||!!t.accessCode;if("undefined"==typeof window)return zy({isNodeEnv:!0,isAnonymous:n});const{data:r,status:o}=await Ny(e);if(404===o)return zy({isUnknown:!0,isAnonymous:n});if(!r||o<=399&&o>=300)return zy({isQSE:!0,isWindows:!0,isAnonymous:n});const i=(r.composition?.deploymentType||"").toLowerCase(),a="controlcenter"===i;return"qliksenseserver"===i?zy({isQSE:!0,isWindows:!0,isAnonymous:n,meta:jy(r)}):"qliksensedesktop"===i?zy({isQSD:!0,isWindows:!0,isAnonymous:n,meta:jy(r)}):"qliksensemobile"===i?zy({isQSE:!0,isWindows:!0,isAnonymous:n,meta:jy(r)}):"cloud-console"===i?zy({isCloud:!0,isCloudConsole:!0,isAnonymous:n,meta:jy(r)}):"fedramp"===r.composition?.provider?zy({isCloud:!0,isQCG:!0,isControlCenter:a,isAnonymous:n,meta:jy(r)}):zy({isCloud:!0,isQCS:!0,isControlCenter:a,isAnonymous:n,meta:jy(r)})})({hostConfig:e})).isWindows)}function ES(e){const t=jS(e)?.host?.trim();let n;for(n=t?t.toLowerCase().startsWith("https://")||t.toLowerCase().startsWith("http://")?t:`https://${t}`:"";"/"===n[n.length-1];)n=n.substring(0,n.length-1);return n}function kS(e){const t=jS(e)?.host;let n;for(n=t?t.toLowerCase().startsWith("https://")||t.toLowerCase().startsWith("http://")?t:`https://${t}`:globalThis.location.origin;"/"===n[n.length-1];)n=n.substring(0,n.length-1);return n.replace(MS,"ws")}async function LS(e){const t=jS(e.hostConfig);try{const n=await aS(t);return await n.getWebSocketAuthParams({...e,hostConfig:t})}catch(e){throw(t.onAuthFailed||SS)(NS(e)),e}}async function RS(e){const t=jS(e.hostConfig);try{const n=await aS(t);return await(n.getWebResourceAuthParams?.({...e,hostConfig:t}))||{queryParams:{}}}catch(e){throw(t.onAuthFailed||SS)(NS(e)),e}}async function qS(e){const t=jS(e.hostConfig),n=await aS(t),r=await n.handleAuthenticationError({...e,hostConfig:t}),o=e.canRetry&&r.retry,i=r.preventDefault;if(!o&&!i){const{status:n,errorBody:r}=e;(t.onAuthFailed||SS)(function({errorBody:e,status:t}){const n=e;if("object"==typeof n?.errors){return{message:new hS(n?.errors).message}}return{message:`HTTP ${t}`}}({status:n,errorBody:r}))}return r}async function IS(e){const t=jS(e.hostConfig);try{const n=await aS(t);return await n.getRestCallAuthParams({...e,hostConfig:t})}catch(e){throw(t.onAuthFailed||SS)(NS(e)),e}}function _S(e,t){iS(e,t)}function OS(e){!function(e){gS("default",e||{})}(e)}function TS(e,t){gS(e,t)}function PS(e){!function(e){mS.has(e)?mS.delete(e):console.warn(`unregisterHostConfig: Host config with name "${e}" not found.`)}(e)}function DS(e){return function(e){const t=Iy(pS(jS(e)));return JSON.stringify(t,fS)}(e)}const AS=()=>{globalThis.loggingOut=!0,globalThis.location.href="/logout"},MS=/^http/;function NS(e){return{message:e.message||"Unknown error"}}function jS(e){if(e?.reference){const t=bS(e.reference);if(!t)throw new lS(`Host config with name "${e.reference}" not found.`);return t}return e&&Object.keys(e).length>0?e:yS()}function zS(){return yS()}var FS={determineAuthType:wS,getDefaultHostConfig:zS,getRestCallAuthParams:IS,getWebResourceAuthParams:RS,getWebSocketAuthParams:LS,handleAuthenticationError:qS,isHostCrossOrigin:xS,isWindows:CS,logout:AS,registerAuthModule:_S,registerHostConfig:TS,serializeHostConfig:DS,setDefaultHostConfig:OS,toValidLocationUrl:ES,toValidWebsocketLocationUrl:kS,unregisterHostConfig:PS},$S=Object.freeze({__proto__:null,AuthorizationError:hS,InvalidAuthTypeError:uS,InvalidHostConfigError:lS,UnexpectedAuthTypeError:cS,default:FS,determineAuthType:wS,getAccessToken:async function(e){const t=await IS({method:"GET",...e}),n=t.headers?.Authorization;if(0===n.indexOf("Bearer "))return n.substring(7);throw new Error("Unknown format of authorization header returned by remote auth module")},getDefaultHostConfig:zS,getRestCallAuthParams:IS,getWebResourceAuthParams:RS,getWebSocketAuthParams:LS,handleAuthenticationError:qS,isHostCrossOrigin:xS,isWindows:CS,logout:AS,registerAuthModule:_S,registerHostConfig:TS,serializeHostConfig:DS,setDefaultHostConfig:OS,toValidLocationUrl:ES,toValidWebsocketLocationUrl:kS,unregisterHostConfig:PS});window.__qlikMainPrivateResolvers=window.__qlikMainPrivateResolvers||{},window.__qlikMainPrivateResolvers.mainUrlPromise=window.__qlikMainPrivateResolvers.mainUrlPromise||new Promise(e=>{window.__qlikMainPrivateResolvers.resolveMainJsUrl=t=>e(t)}),window.__qlikMainPrivateResolvers.qlikMainPromise=window.__qlikMainPrivateResolvers.qlikMainPromise||(async()=>{if(window.QlikMain)return window.QlikMain;const e=setTimeout(()=>{console.warn("Waiting for a host parameter pointing to a Qlik runtime system")},5e3),t=await window.__qlikMainPrivateResolvers.mainUrlPromise;return clearTimeout(e),new Promise(e=>{if(window.QlikMain)e(window.QlikMain);else{const n=window.document.createElement("script");n.src=t,n.addEventListener("error",()=>{console.error(`Qlik runtime system not found: ${t}`)}),n.addEventListener("load",()=>{window.QlikMain&&e(window.QlikMain)}),window.document.head.appendChild(n)}})})();var WS=Object.freeze({__proto__:null,importRuntimeModule:async function(e,t){return t?.runtimeModuleMocks?.[e]?t?.runtimeModuleMocks?.[e]:(function(e){const t=/\/+$/,n=function(e){const n=e?.embedRuntimeUrl||e?.url||e?.host;if(!n)return;let r;return r=n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")?n:`https://${n}`,r=r.replace(t,""),`${r}/qlik-embed/main.js`}(e);n&&window.__qlikMainPrivateResolvers.resolveMainJsUrl(n)}(t),async function(e){return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}}),BS=Object.freeze({__proto__:null});export{ky as EnigmaMocker,Ly as __DO_NOT_USE__,Kp as conversion,dy as embed,jg as onContextMenu,Ng as onTakeSnapshot,Tg as useAction,Cg as useApp,wg as useAppLayout,Pg as useConstraints,Ig as useDeviceType,hg as useEffect,bg as useElement,Rg as useEmbed,Fg as useEmitter,Eg as useGlobal,Mg as useImperativeHandle,Dg as useInteractionState,$g as useKeyboard,vg as useLayout,fg as useMemo,xg as useModel,_g as useNavigation,Ag as useOptions,Og as usePlugins,gg as usePromise,yg as useRect,mg as useRef,zg as useRenderState,kg as useSelections,Sg as useStaleLayout,dg as useState,Lg as useTheme,qg as useTranslator};
|
|
16
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,h=e.length,p=e.search(/[0-9\-\+#]/),f=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=h-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),S=g>0?e.substring(v,h):"";if(n=(t="-"===(e=e.substring(p,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%l,h=d.length,v=0;v<h;v++)m+=d.charAt(v),!((v-b+1)%l)&&v<h-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+S}},$d({exports:{}});const th=/,(?![^(]*\))/,nh=/\s(?![^(]*\))/,rh=/^[0-9]+[a-zA-Z%]+?$/,oh=["none","inset","initial","inherit"],ih=e=>{if(!e)return;const t=e.split(nh).filter((e=>!oh.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||rh.test(e))(t)||oh.includes(t.toLowerCase())?void 0:t;return n},ah=e=>e?e.split(th).map((e=>e.trim())):[];function sh(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function lh(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:sh(t,n,r,o)}const ch={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},uh={"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 dh(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 hh(e,t,n){const r=null==e?void 0:e.bgImage;if(r){let o="";if("media"===r.mode||"media"===e.useImage){let e;const i=null==r?void 0:r.mediaUrl,{qUrl:a}=(null==i?void 0:i.qStaticContentUrl)||{};o=a?decodeURIComponent(a):void 0,o=dh(t,o),n&&(e=Object.entries(n).map((e=>{let[t,n]=e;return"&".concat(t,"=").concat(encodeURIComponent(n))})).join("&"),o="".concat(o,"?").concat(e))}"expression"===r.mode&&(o=r.expressionUrl?decodeURIComponent(r.expressionUrl):void 0);const i=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=uh[e.bgImage.position]),n}(e),a=function(e){var t;let n=ch.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=ch[r]),n}(e);return o?{url:o,pos:i,size:a}:void 0}}function ph(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):lh(null==r?void 0:r.color,"","backgroundColor",t,n)}function fh(e,t,n){var r,o;const i=sh("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&oh.includes(e.toLowerCase()))return e.toLowerCase();const r=ah(e);if(1!==r.length)return e;let o=n;if(!o){const n=ah(t);if(1!==n.length)return e;o=ih(n[0])}if(!o)return e;const i=ih(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,lh(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function mh(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 gh={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},bh=["theme","selections"];function yh(e){var t,n,r,o,i,a,s,l;let{app:c,themeApi:u,theme:d,queryParams:h,components:p=[],checkboxes:f=!1}=e;const m=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;bh.includes(n)&&(e[n]=t)})),e}(p),g=(e,t)=>u.getStyle("object.listBox",e,t),b=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e):void 0,y=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,h=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),f=(null===(i=c.selections)||void 0===i?void 0:i.colors)||{},m=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),i=a(f[e])||l("","dataColors.".concat(e))||"possible"===e&&l("","backgroundColor")||(null===(t=s.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||gh[e];return{[e]:i,[o]:p?Mu(i,h):h||(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:b,theme:d,getListboxStyle:g,overrides:m,checkboxes:f}),v=m.theme||{},S=b(null===(t=v.header)||void 0===t?void 0:t.fontColor)||g("title.main","color"),w=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?ph({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?hh({bgImage:v.background.image},c,h):void 0,C=w||g("","backgroundColor")||d.palette.background.default,E=function(e,t){const n=Du(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(C,g),k=function(e){return Mu("#fff",e("content","color"))}(g),L=(null===(r=v.header)||void 0===r?void 0:r.fontStyle)||{},R=(null===(o=v.content)||void 0===o?void 0:o.fontStyle)||{},q=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:C,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:S,fontSize:(null===(i=v.header)||void 0===i?void 0:i.fontSize)||g("title.main","fontSize"),fontFamily:(null===(a=v.header)||void 0===a?void 0:a.fontFamily)||g("title.main","fontFamily"),fontWeight:q(L.bold,"bold","normal")||g("title.main","fontWeight")||"bold",textDecoration:L.underline?"underline":"initial",fontStyle:q(L.italic,"italic","normal")||g("title.main","fontStyle")||"initial"},content:{backgroundColor:f?void 0:y.possible,color:y.possibleContrast||g("content","color"),fontSize:(null===(s=v.content)||void 0===s?void 0:s.fontSize)||g("content","fontSize"),fontFamily:(null===(l=v.content)||void 0===l?void 0:l.fontFamily)||g("content","fontFamily"),fontWeight:q(R.bold,"bold","normal")||g("content","fontWeight")||"normal",textDecoration:R.underline?"underline":"initial",fontStyle:q(R.italic,"italic","normal")||g("content","fontStyle")||"initial"},search:{color:k,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:E,backdropFilter:"blur(8px)"},selections:y}}function vh(e){let{app:t,themeApi:n,theme:r,queryParams:o,components:i,checkboxes:a}=e;return yh({app:t,themeApi:n,theme:r,queryParams:o,components:i,checkboxes:a})}function Sh(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:f="$",autoFocus:m,components:g,checkboxes:b,selectDisabled:y=(()=>!1),sortCriteria:v=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:S="ltr"}=e;const w=Boolean(null==p?void 0:p.qLibraryId),x=l&&Boolean(o.current),[C,E]=n(0),k=sa(),L=h(),[q]=Ba({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:f,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:v,qFieldDefs:w?void 0:[p]},qLibraryId:w?p.qLibraryId:void 0}},d,p,f),I=c((()=>{q.lock("/qListObjectDef")}),[q]),O=c((()=>{q.unlock("/qListObjectDef")}),[q]),{translator:P,themeApi:D,keyboardNavigation:A,hostConfig:M}=s(Aa),N=h(),j=h(),[z]=bu(d,q,j),[F]=Va(q),[W]=n((()=>yu({selectDisabled:y}))),B=dl({containerRef:j,enabled:A}),{checkboxes:U=b}=F||{},H=vh({themeApi:D,theme:k,components:g,checkboxes:U});if(r((()=>{z&&x&&(z.isModal(q)||z.goModal("/qListObjectDef"))}),[z,x]),!(q&&F&&P&&H))return null;const $=!0===F.qListObject.qDimensionInfo.qLocked,G=(e,t)=>{const n="escapeKeyDown"!==t;z.noModal(n),u()},K=jc({layout:F,model:q,translator:P,selectionState:W,selections:z}),V=Su(F);return t.createElement(T,{className:"listbox-container",open:x,onClose:G,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?G():void 0,direction:S},t.createElement(R,{container:!0,direction:"column",gap:0,ref:j},t.createElement(R,{item:!0,container:!0,style:{direction:S,padding:k.spacing(1)}},t.createElement(R,{item:!0},$?t.createElement(_,{onClick:O,disabled:!$,size:"large"},t.createElement(es,{title:P.get("Listbox.Unlock")})):t.createElement(_,{onClick:I,disabled:!V,size:"large"},t.createElement(ns,{title:P.get("Listbox.Lock")}))),t.createElement(R,{item:!0,xs:!0}),t.createElement(R,{item:!0},t.createElement(au,{layout:F,more:{enabled:!$,actions:K,alignTo:N,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:z,onConfirm:G,onCancel:()=>G(0,"escapeKeyDown")}}))),t.createElement(R,{item:!0,xs:!0},t.createElement("div",{ref:N}),t.createElement(R,{item:!0},t.createElement(hu,{ref:L,popoverOpen:x,styles:H,visible:!0,model:q,listCount:C,selections:z,selectionState:W,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:B.focusSelection},autoFocus:null==m||m,direction:S})),t.createElement(Pc,{model:q,app:d,layout:F,selections:z,selectionState:W,direction:S,onSetListCount:e=>E(e),onCtrlF:()=>{L.current.focus()},styles:H,keyboard:B}))))}function wh(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:l=null,onClose:c=(()=>{})}=e;const{translator:u}=s(Aa),d=l||h(),p=sa(),[f,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!f)},b=()=>{m(!1),c()},y=r.selections[i];void 0===y.qTotal&&(y.qTotal=0);const v=y.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},S=(v.qSelected+v.qLocked)/y.qTotal,w=v.qAlternative/y.qTotal,x=(v.qExcluded+v.qLockedExcluded+v.qSelectedExcluded)/y.qTotal,C=v.qSelected+v.qSelectedExcluded+v.qLocked+v.qLockedExcluded,k=0===C&&0===y.qTotal;let L="";y.qTotal===C&&y.qTotal>1?L=u.get("CurrentSelections.All"):C>1&&y.qTotal?L=u.get("CurrentSelections.Of",[C,y.qTotal]):y.qSelectedFieldSelectionInfo&&(L=y.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(L="".concat(r.states[i],": ").concat(L));const q=[{color:p.palette.selected.main,ratio:S},{color:p.palette.selected.alternative,ratio:w},{color:p.palette.selected.excluded,ratio:x}];q.forEach(((e,t)=>{e.offset=t?q[t-1].offset+q[t-1].ratio:0}));let I=null,O=null,T=null,P=null;return l||(I=t.createElement(R,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:y.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"}},L)),y.qLocked?O=t.createElement(R,{item:!0},t.createElement(_,{size:"large"},t.createElement(es,null))):y.qOneAndOnlyOne||(O=t.createElement(R,{item:!0},t.createElement(_,{title:u.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(y.qField,r.states[i])},size:"large"},t.createElement(Ya,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===k&&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,"%")}})))),P=t.createElement(R,{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,f&&t.createElement(Sh,{alignTo:d,show:f,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}))),l?t.createElement(Sh,{alignTo:d,show:!0,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}):P}var xh=e=>Qa((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 Ch={item:"".concat("MultiState","-item")},Eh=wa(R)((e=>{let{theme:t}=e;return{["&.".concat(Ch.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function kh(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[l,c]=n(!!i),[u,d]=n(-1),[p,f]=n(i?i.current:null),m=i||h(),{translator:g}=s(Aa),b=g.get("Selection.ClearAllStates"),y=()=>{d(-1),a()};let v=null;i||(v=t.createElement(t.Fragment,null,t.createElement(R,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(z,{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(R,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(R,{item:!0},t.createElement(_,{size:"large"},t.createElement(xh,null)))));const S=t.createElement(F,{dense:!0},t.createElement(W,{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(W,{key:n,title:r.label,onClick:e=>((e,t)=>{e.stopPropagation(),c(!1),d(t)})(e,n)},t.createElement(L,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(wh,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),w=t.createElement(T,{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),x=i?w:t.createElement(Eh,{container:!0,gap:0,className:Ch.item,onClick:e=>{e.currentTarget.contains(e.target)&&(f(e.currentTarget),m.current=e.currentTarget,c(!l))}},v,l&&w,u>-1&&t.createElement(Sh,{alignTo:m,show:u>-1,close:y,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}));return i&&u>-1?t.createElement(Sh,{alignTo:m,show:u>-1,close:y,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}):x}const Lh="More",Rh={item:"".concat(Lh,"-item"),badge:"".concat(Lh,"-badge")},qh=wa(R)((e=>{let{theme:t}=e;return{["&.".concat(Rh.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(Rh.badge)]:{padding:t.spacing(0,1)}}}));function Ih(e){let{items:r=[],api:o}=e;const i=sa(),[a,s]=n(!1),[l,c]=n(-1),[u,d]=n(null),p=h(),f=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(kh,{field:r[l],api:o,moreAlignTo:p,onClose:f}):t.createElement(wh,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:p,onClose:f})),t.createElement(qh,{container:!0,gap:0,className:Rh.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),p.current=e.currentTarget,s(!a))}},t.createElement(R,{item:!0},t.createElement(L,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(E,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(R,{item:!0},t.createElement(_,{size:"large"},t.createElement(xh,null))),a&&t.createElement(T,{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(F,{dense:!0},r.map(((e,n)=>t.createElement(W,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(L,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(kh,{field:e,api:o}):t.createElement(wh,{field:e,api:o}))))))),m)}const _h=120,Oh=72;function Th(e){let{api:o,app:i}=e;const a=sa(),[l]=Ha(i),[c]=Va(l),[u,d]=n({items:[],more:[]}),{modalObjectStore:h}=s(Aa).selectionStore,[p,f]=Za(),[m,g]=n(0);return r((()=>{if(!f)return;const{width:e}=f,t=Math.floor(e)-Oh,n=Math.floor(t/_h);g(n)}),[f]),r((()=>{if(!(i&&l&&c&&m))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach((e=>{const r=e.qField;let o=t[r];var i;void 0===o&&(o={name:r,label:(null===(i=e.qDimensionReferences)||void 0===i||null===(i=i.find((e=>e.qLabel)))||void 0===i?void 0:i.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)}))}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach((e=>n(e.qSelectionObject,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(c);d((t=>{const n=e;if((()=>{const{model:e}=h.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(R,{ref:p,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},u.items.map((e=>t.createElement(R,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(_h,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(kh,{field:e,api:o}):t.createElement(wh,{field:e,api:o})))),u.more.length>0&&t.createElement(R,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(Oh,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(Ih,{items:u.more,api:o})))}var Ph=e=>Qa((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 Dh=e=>Qa((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 Ah=(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 Mh(e){let{api:o,app:i}=e;const{translator:a}=s(Aa),[l]=function(e){const[t]=Ha(e),[o]=Va(t),[i]=Ja(e),[a,s]=n(null);return r((()=>{i&&t&&o&&Ah(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(R,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(R,{item:!0},t.createElement(_,{style:{marginRight:"8px"},disabled:!l||!l.canGoBack,title:a.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},t.createElement(Ph,null))),t.createElement(R,{item:!0},t.createElement(_,{style:{marginRight:"8px"},disabled:!l||!l.canGoForward,title:a.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},t.createElement(Dh,null))),t.createElement(R,{item:!0},t.createElement(_,{disabled:!l||!l.canClear,title:a.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},t.createElement(Gc,null))))}const Nh=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function jh(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function zh(){return Nh.map(jh).join("")}function Fh(e){let{app:n}=e;const r=sa(),[o]=pu(n);return o?t.createElement(R,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(R,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(Mh,{api:o,app:n})),t.createElement(R,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(Th,{api:o,app:n}))):null}let Wh;Wh="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let Bh=null,Uh=null;const Hh=Wh.clearTimeout,$h=Wh.setTimeout,Gh=Wh.cancelAnimationFrame||Wh.mozCancelAnimationFrame||Wh.webkitCancelAnimationFrame,Kh=Wh.requestAnimationFrame||Wh.mozRequestAnimationFrame||Wh.webkitRequestAnimationFrame;function Vh(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__&&Bh(this.__resizeRAF__),this.__resizeRAF__=Uh((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=Wh.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==Gh||null==Kh?(Bh=Hh,Uh=function(e){return $h(e,20)}):(Bh=function([e,t]){Gh(e),Hh(t)},Uh=function(e){const t=Kh((function(){Hh(n),e()})),n=$h((function(){Gh(t),e()}),20);return[t,n]});class Jh extends f{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,h=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===h&&this.state.scaledWidth===u)||(this.setState({height:d,width:h,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:h}))}},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=Vh(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:h,scaledWidth:f,width:m}=this.state,g={overflow:"visible"},b={};let y=!1;return r||(0===d&&(y=!0),g.height=0,b.height=d,b.scaledHeight=h),o||(0===m&&(y=!0),g.width=0,b.width=m,b.scaledWidth=f),i&&(y=!1),p(c,{ref:this._setRef,style:{...g,...l},...u},!y&&e(b))}}function Zh(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 ll.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(r){fl(a)||pl(a)||gl(e,t)}else{if(!(ml(a)||pl(a)||fl(a)))break}o();break;case ll.ENTER:case ll.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case ll.ESCAPE:gl(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 ll.ARROW_UP:r({up:1});break;case ll.ARROW_DOWN:r({down:1});break;case ll.PAGE_UP:r({up:o.stop-o.start});break;case ll.PAGE_DOWN:r({down:o.stop-o.start});break;case ll.HOME:r({scrollPosition:s&&l?"overflowStart":"start"});break;case ll.END:r({scrollPosition:s&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Xh=wa("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Qh(e){let{text:n}=e;const{translator:r}=s(Aa);return t.createElement(Xh,null,r.get(n))}const Yh={fontSize:"12px"},ep=wa(U)((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(xs,"px")}}})),tp=wa(R,{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}})})),np=wa(E)((e=>{let{styles:t}=e;return te(te({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function rp(e){let{translator:n,toggleLock:r,keyboard:o,isLoading:i}=e;const a=n.get("SelectionToolbar.ClickToUnlock");return t.createElement(ep,{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(es,{disableRipple:!0,style:Yh}),!i&&t.createElement(E,{fontSize:"14px"},a))}var op=e=>Qa((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 ip=e=>Qa((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 ap=e=>Qa((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 sp="H",lp="C";var cp={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:i,keyboard:a}=e;switch(t.qGrouping){case sp:return{icon:ip,tooltip:"Listbox.DrillDown",onClick:void 0};case lp:{const e=n&&i,s=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?ap:op,tooltip:"Listbox.Cyclic",onClick:e?s:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case ll.SPACE:case ll.ENTER:s();break;case ll.TAB:{if(!a.enabled)return;let n;n=e.shiftKey?a.focusSelection():pl(t)||fl(t),n||gl(e,a)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const up=O(B)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function dp(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,h=r.get(l);return c?t.createElement(up,{variant:"outlined",onClick:c,tabIndex:a.innerTabStops?0:-1,title:h,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:h,size:"large",style:te(te({},o),{},{padding:"".concat(xs,"px")})})}const hp=500;let pp=0;function fp(e){var o,i,a;let{layout:s,translator:l,styles:c,isRtl:u,showLock:d,showSearchIcon:p,constraints:f,onShowSearch:m,classes:g,containerRect:b,isPopover:y,showToolbar:v,showDetachedToolbarOnly:S,containerRef:w,model:x,selectionState:C,isDirectQuery:E,selections:k,keyboard:L,autoConfirm:q,app:I,disablePortal:O}=e;const[T,P]=n(S),[D,A]=n(null==s||null===(o=s.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked),[M,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=h(null),z=cp.createDimensionIconData({dimInfo:null==s||null===(a=s.qListObject)||void 0===a?void 0:a.qDimensionInfo,app:I,selections:k,isPopover:y,active:!(null!=f&&f.active),keyboard:L}),F=d&&D,W=!d&&D,B=p||W||z,U=Ss-(B?xs:0),H=u?Ss-(B?xs:0):ws,$=(p?Cs:0)+(W?Cs:0)+(z?Cs:0),G=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-pp<hp)return Promise.resolve();if(r)return()=>{};i(!0),pp=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:D,setLocked:A,settingLockedState:M,setSettingLockedState:N,model:x}),K=jc({layout:s,model:x,translator:l,selectionState:C,isDirectQuery:E,selections:k}),V=D||!d?void 0:[{key:"lock",type:void 0,label:l.get("SelectionToolbar.ClickToLock"),getSvgIconShape:ts,enabled:()=>!M&&!C.selectDisabled()&&Su(s),action:G}],J=null!=f&&f.active?t.createElement(su,{title:l.get("Listbox.Search"),size:"large",style:te(te({},Yh),{},{padding:"".concat(xs,"px")})}):t.createElement(_,{onClick:m,tabIndex:-1,title:l.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(su,{style:Yh}));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,h=(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&&!h)}({containerRect:b,titleRef:j,iconsWidth:$,paddingLeft:U,paddingRight:H});P(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:!y&&T,showToolbar:v,containerRef:w,isLocked:D,extraItems:V,listboxSelectionToolbarItems:K,selections:k,keyboard:L,autoConfirm:q,disablePortal:O}),X=t.createElement(au,Y({isRtl:u,layout:s},Z));if(S)return X;const Q=W?t.createElement(es,{size:"large",style:te(te({},Yh),{},{padding:"".concat(xs,"px")})}):void 0;return t.createElement(tp,{item:!0,container:!0,styles:c,isRtl:u,marginY:1,paddingLeft:"".concat(U,"px"),paddingRight:"".concat(H,"px"),className:"header-container"},F&&t.createElement(rp,{isLoading:M,translator:l,toggleLock:G,keyboard:L}),B&&t.createElement(R,{item:!0,container:!0,alignItems:"center",width:$,className:"header-action-container"},Q||p&&J,t.createElement(dp,{iconData:z,iconStyle:Yh,disabled:k.isActive()&&y,translator:l,keyboard:L})),t.createElement(R,{item:!0,xs:!0,minWidth:0,justifyContent:u?"flex-end":"flex-start",className:g.listBoxHeader},t.createElement(np,{variant:"h6",noWrap:!0,ref:j,title:s.title,styles:c},s.title)),t.createElement(R,{item:!0,display:"flex"},X))}const mp="ListBoxInline",gp={listBoxHeader:"".concat(mp,"-listBoxHeader"),screenReaderOnly:"".concat(mp,"-screenReaderOnly"),listboxWrapper:"".concat(mp,"-listboxWrapper")},bp=wa(R,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return te(te({},o.background),{},{["& .".concat(gp.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(gp.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(gp.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 yp=t.memo((function(e){var o,a,l,u;let{options:d,layout:p}=e;const{app:f,direction:m,frequencyMode:g,checkboxes:b,search:y=!0,focusSearch:v=!1,rangeSelect:S=!0,model:w,selections:x,update:C,fetchStart:E,postProcessPages:k,calculatePagesHeight:L,showGray:q=!0,scrollState:I,renderedCallback:_,toolbar:O=!0,isPopover:T=!1,showLock:P=!1,components:D,selectDisabled:A=(()=>!1),disablePortal:M=!0}=d,N=sa(),{translator:j,keyboardNavigation:z,themeApi:F,queryParams:W,constraints:B}=s(Aa),{checkboxes:U=b}=p||{},H=vh({app:f,themeApi:F,theme:N,queryParams:W,components:D,checkboxes:U}),$=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==f?void 0:f.layout}),G=h(),K=h(),[V,J]=Za(),[Z,X]=n(!1),[Q,Y]=n(!1),ee=h(!1),[ne,re]=n({down:0,up:0,scrollPosition:""}),oe=e=>re((t=>te(te({},t),e))),[ie,ae]=n({start:0,stop:0}),[se]=pu(f),[le]=n((()=>yu({selectDisabled:A}))),ce=dl({containerRef:G,enabled:z}),ue=c((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:f,appSelections:se})),[f,se]),de=null==p?void 0:p.qListObject.qDimensionInfo.qError,he=de&&B.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:pe,handleOnMouseEnter:fe,handleOnMouseLeave:me,globalKeyDown:ge}=i((()=>Zh({keyboard:ce,hovering:ee,updateKeyScroll:oe,currentScrollIndex:ie,constraints:B,isModal:ue,selections:x})),[ce,ee,oe,G,ie,f,se,B,ue]);r((()=>(document.addEventListener("keydown",ge),()=>{document.removeEventListener("keydown",ge)})),[ge]),r((()=>{!0===y&&Y(!0);const e=()=>{X(!0)},t=()=>{X(!1),"toggle"===y&&Y(!1)};return T&&(x.isActive()||(x.on("activated",e),x.on("deactivated",t)),X(T)),O&&x&&(x.isModal()||(x.on("activated",e),x.on("deactivated",t)),X(T||x.isActive())),()=>{x&&x.removeListener&&(x.removeListener("activated",e),x.removeListener("deactivated",t))}}),[O,x,T]);const{wildCardSearch:be,searchEnabled:ye,autoConfirm:ve=!1,layoutOptions:Se={}}=null!=p?p:{},we=null==p||null===(o=p.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked,xe=!1!==ye&&"toggle"===y&&!we,Ce=(null==p||null===(a=p.title)||void 0===a?void 0:a.length)&&!1!==(null==p?void 0:p.showTitle),Ee=O&&!Ce&&!T,ke=O&&Ce||T,Le="rtl"===m;if(!(w&&p&&j&&H))return null;const Re=!0===y||"toggle"===y&&Q&&!1!==ye,qe=null!==(l=Se.dense)&&void 0!==l&&l,Ie=()=>{Y(!Q)},_e=()=>{"toggle"===y?Ie():K.current.focus()},Oe=Re&&("toggle"===y||v),Te="grid"===(null==Se?void 0:Se.dataLayout),Pe=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=Zl({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:Te,dense:qe,height:null===(u=G.current)||void 0===u?void 0:u.clientHeight,layoutOrder:Se.layoutOrder});de&&(null==_||_());const De=ke?Ts+ks:0,Ae=t.createElement(fp,{app:f,showSearchIcon:xe,onShowSearch:Ie,isPopover:T,showToolbar:Z,isDirectQuery:$,autoConfirm:ve,showDetachedToolbarOnly:Ee,layout:p,translator:j,styles:H,isRtl:Le,showLock:P,constraints:B,classes:gp,containerRect:J,containerRef:G,model:w,selectionState:le,selections:x,keyboard:ce,disablePortal:M});return t.createElement(t.Fragment,null,Ee&&Ae,t.createElement(bp,{className:"listbox-container",container:!0,tabIndex:ce.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Pe,styles:H,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:pe,onMouseEnter:fe,onMouseLeave:me,ref:e=>{G.current=e,V(e)},isGridMode:Te,"aria-label":ce.active?j.get("Listbox.ScreenReaderInstructions"):""},ke&&Ae,t.createElement(R,{item:!0,container:!0,direction:"column",height:"100%",minHeight:De,role:"region","aria-label":j.get("Listbox.ResultFilterLabel")},t.createElement(R,{item:!0},t.createElement(hu,{ref:K,selections:x,selectionState:le,model:w,dense:qe,keyboard:ce,visible:Re,search:y,autoFocus:Oe,beginSelectionOnFocus:!T,wildCardSearch:be,searchEnabled:ye,direction:m,hide:xe&&Ie,styles:H})),t.createElement(R,{item:!0,xs:!0,className:gp.listboxWrapper},de?t.createElement(Qh,{text:he}):t.createElement(Jh,null,(e=>{let{height:n,width:r}=e;return t.createElement(Pc,{model:w,app:f,constraints:B,layout:p,selections:x,selectionState:le,direction:m,frequencyMode:g,rangeSelect:S,checkboxes:U,height:n,width:r,update:C,fetchStart:E,postProcessPages:k,calculatePagesHeight:L,keyboard:ce,showGray:q,scrollState:I,keyScroll:{state:ne,reset:()=>re({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:ie,set:ae},renderedCallback:_,onCtrlF:_e,isModal:ue,styles:H})}))))))}));function vp(e){let{options:n={}}=e;const{model:r}=n,[o]=Va(r);return t.createElement(yp,{options:n,layout:o})}function Sp(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 wp={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function xp(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const Cp=["__DO_NOT_USE__"],Ep=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,Cp)),n),t)},kp=o(((e,o)=>{let{app:s,fieldIdentifier:l,qId:c,stateName:u,element:d,initialOptions:p,renderedCallback:f}=e;const[m,g]=n(p),{isExistingObject:b,hasExternalSelectionsApi:y}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:c,options:m});b||Object.assign(m,{frequencyMode:xp(m.frequencyMode)});const[v,S]=n(0);r((()=>{if(v)throw new Error("Source or selection Api can not change after a listbox has been mounted");S(v+1)}),[b,y]);const w=b?Sp({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,f]=n(),[m,g]=n(),b=null!==(t=s.title)&&void 0!==t?t:m;let{histogram:y=!1,frequencyMode:v="N"}=s;l&&l.failedToFetchFieldDef&&(y=!1,v="N"),r((()=>{const e=y||"N"!==v;i.qLibraryId&&e?async function(){try{const e=await o.getDimension(i.qLibraryId),t=await e.getLayout();g(t.qDim.title),"N"===t.qDim.qGrouping?c(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):c({multiFieldDim:!0}),d(!1)}catch(e){throw d(!1),c({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(d(!1),g(i))}),[]);const{dense:S,checkboxes:w,listLayout:x,properties:C={}}=s,E={dense:S};"horizontal"===x&&(E.dataLayout="grid",E.layoutOrder="column",E.maxVisibleColumns={auto:!0},E.maxVisibleRows={auto:!1,maxRows:1});const k=h();k.current||(k.current=zh());const L=Je(!0,{},wp,{qInfo:{qId:k.current},qListObjectDef:{qStateName:a,qFrequencyMode:y&&"N"===v?"V":v},histogram:y,checkboxes:w,layoutOptions:E,title:b});let R;if(Je(!0,L,C),i.qLibraryId?(L.qListObjectDef.qLibraryId=i.qLibraryId,R=i.qLibraryId):(L.qListObjectDef.qDef.qFieldDefs=[i],R=i),"P"!==v&&y)if(null!=l&&l.multiFieldDim)L.frequencyMax="fetch";else{const e=i.qLibraryId?l:R;L.frequencyMax={qValueExpression:qc(e)}}const[q]=Ba(L,u?null:o,R,a);return r((()=>{q&&f(q)}),[q]),p}({app:s,fieldIdentifier:l,stateName:u,options:m}),x=h(d),C=y?m.selectionsApi:bu(s,w,[x,".njs-action-toolbar-more",".njs-action-toolbar-popover"],m)[0],E=i((()=>te(te({},m),{},{selections:C,model:w,app:s,renderedCallback:f})),[m,C,w,s]);return a(o,(()=>({setOptions:e=>g(e)})),[]),C&&w?t.createElement(vp,{options:E}):null}));const Lp={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function Rp(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(Sh,{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 qp(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Ip(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 _p=e=>({qDef:{qFieldDefs:[e]}}),Op=e=>({qDef:{qDef:e}});function Tp(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?_p(e):te(te({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||zh(),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),qp(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 Ip(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?Op(e):te(te({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||zh(),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),qp(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];Ip(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 Pp=e=>({qDef:{qFieldDefs:[e]}});function Dp(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?Pp(e):te(te({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||zh(),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 Ap=e=>({qDef:{qFieldDefs:[e]}}),Mp=e=>{let t;return t="string"==typeof e?Je(!0,{},wp,{qListObjectDef:Ap(e)}):e.qListObjectDef?Je(!0,{},wp,e):Je(!0,{},wp,{qListObjectDef:e}),t};function Np(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=Mp(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||zh(),!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 jp(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 zp(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")?Dp:e.match("/qChildListDef")?Np:Tp}(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"===jp(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 Wp={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 Bp=2**53-1;function Up(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Hp(e,t){const n=Je(!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 $p(e,t){return Je(!0,{},t,e)}function Gp(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var Kp={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:Up,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:Hp,createDefaultMeasure:$p,resolveValue:Gp,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?(Wp.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Wp.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=Je(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?Fp.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||Up(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Je(!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=Gp(i.max,r.dimensions.length,Bp),s=Gp(i.min,r.dimensions.length,0);return{maxDimensions:Gp(o.max,a,Bp),minDimensions:Gp(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(Hp(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Hp(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Hp(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(Hp(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Hp(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($p(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push($p(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push($p(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push($p(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push($p(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 Vp={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();Wp.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&&(Kp.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=Kp.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=Fp.getValue(n,i||"").qHyperCubeDef,c=Fp.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:h,minMeasures:p}=Kp.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=Kp.getDefaultDimension(),defaultMeasure:m=Kp.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,Kp.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:h,minMeasures:p})&&Kp.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:h,minMeasures:p,newHyperCubeDef:c}),Kp.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:f}),Kp.addDefaultMeasures({exportFormat:t,maxMeasures:h,minMeasures:p,newHyperCubeDef:c,defaultMeasure:m}),Kp.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),Kp.copyPropertyIfExist("qMaxStackedCells",l,c),Kp.copyPropertyIfExist("qNoOfLeftDims",l,c),Kp.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),Kp.copyPropertyOrSetDefault("qMode",l,c,"S"),Kp.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),Kp.copyPropertyOrSetDefault("qSortbyYValue",l,c),Kp.copyPropertyOrSetDefault("qIndentMode",l,c),Kp.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),Kp.importCommonProperties(s,t,n),Kp.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),Kp.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const Jp=e=>Fp.getValue(e,"data.targets.0.propertyPath"),Zp=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Vp.exportProperties})(Jp(e))},Xp=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Vp.importProperties})(Jp(e))},Qp=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=Zp(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,h=Xp(d);if(!h)throw new Error("Target chart does not support conversion");return h({exportFormat:c({propertyTree:s,hypercubePath:Kp.getHypercubePath(l),viewDataMode:a}),initialProperties:te({qInfo:{qType:o},visualization:o},Fp.getValue(d,"properties.initial",{})),dataDefinition:Fp.getValue(d,"data.targets.0.",{}),hypercubePath:Kp.getHypercubePath(d),viewDataMode:a})},Yp={hypercube:Vp};var ef=e=>Qa((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 tf(e){let{d:n}=e;const r=sa();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(ef,{style:a}):t.createElement(gs,{style:a})));return t.createElement(R,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(R,{item:!0},s),t.createElement(R,{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 nf(e){let{data:n}=e;const r=sa();return t.createElement(R,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(tf,{d:e,key:n})));return o.length>0&&t.createElement(R,{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 rf(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(R,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(R,{item:!0},t.createElement(ef,{style:{fontSize:"38px"}})),t.createElement(R,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(R,{item:!0},t.createElement(E,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(nf,{data:o}))}const of=["size"],af="Progress",sf={root:"".concat(af,"-root"),front:"".concat(af,"-front"),back:"".concat(af,"-back")},lf=wa("div")((e=>{let{theme:t}=e;return{["&.".concat(sf.root)]:{position:"relative",display:"inline-block"},["& .".concat(sf.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(sf.back)]:{color:t.palette.divider}}})),cf={small:16,medium:32,large:64,xlarge:128};function uf(e){let{size:n="medium"}=e,r=ne(e,of);const o=cf[n];return t.createElement(lf,{className:sf.root},t.createElement(H,Y({variant:"determinate",value:100,className:sf.back,size:o,thickness:3},r)),t.createElement(H,Y({variant:"indeterminate",disableShrink:!0,className:sf.front,size:o,thickness:3},r)))}const df=["cancel","translator"],hf=["retry","translator"],pf={stripes:"".concat("LongRunningQuery","-stripes")},ff=wa(R)((()=>({["& .".concat(pf.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 mf(e){let{cancel:n,translator:r}=e,o=ne(e,df);return t.createElement(t.Fragment,null,t.createElement(ff,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(R,{item:!0},t.createElement(uf,null)),t.createElement(R,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(R,Y({item:!0},o),t.createElement(B,{variant:"contained",onClick:n},r.get("Cancel"))))}function gf(e){let{retry:n,translator:r}=e,o=ne(e,hf);return t.createElement(t.Fragment,null,t.createElement(R,{item:!0},t.createElement(ef,{style:{fontSize:"38px"}})),t.createElement(R,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(R,{item:!0},t.createElement(B,Y({variant:"contained",onClick:n},o),r.get("Retry"))))}function bf(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=s(Aa);return t.createElement(R,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:pf.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(mf,{cancel:o.cancel,translator:i,className:pf.cancel}),r&&t.createElement(gf,{retry:o.retry,translator:i,className:pf.retry}))}function yf(){return t.createElement(R,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(uf,{size:"large"}))}const vf={width:0,height:0},Sf="Header",wf={containerStyle:"".concat(Sf,"-containerStyle"),containerTitleStyle:"".concat(Sf,"-containerTitleStyle")},xf=wa(R)((e=>{let{theme:t}=e;return{["&.".concat(wf.containerStyle)]:{flexGrow:0},["&.".concat(wf.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Cf="njs-cell-title",Ef="njs-cell-sub-title";function kf(e){let{id:o,layout:i,sn:a,anchorEl:s,hovering:l,focusHandler:c,titleStyles:u={},isRtl:d,translator:h}=e;const p=i.showTitles&&!!i.title,f=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 y=[wf.containerStyle,...p||f?[wf.containerTitleStyle]:[]],v=l||m,S=t.createElement(au,{show:!1,selections:{show:m,api:a.component.selections,onKeyDeactivate:c.refocusContent},actions:g,popover:{show:v,anchorEl:s},focusHandler:c,layout:i,isRtl:d});return t.createElement(xf,{item:!0,container:!0,wrap:"nowrap",className:y.join(" ")},t.createElement(R,{item:!0,zeroMinWidth:!0,xs:!0,dir:d?"rtl":"ltr"},t.createElement(R,{container:!0,wrap:"nowrap",direction:"column"},p?t.createElement(q,{title:i.title},t.createElement(E,{id:"".concat(o,"_title"),variant:"h6",noWrap:!0,className:Cf,style:u.main},i.title)):t.createElement("div",{id:"".concat(o,"_title"),style:vf,"aria-label":h.get("Accessibility.Object.NoTitle")}),f&&t.createElement(q,{title:i.subtitle},t.createElement(E,{variant:"body2",noWrap:!0,className:Ef,style:u.subTitle},i.subtitle)))),t.createElement(R,{item:!0},S))}const Lf="condition",Rf="search",qf="clear_selection",If="matches_exactly",_f="starts_with",Of="ends_with",Tf="beginning_of_word",Pf="general",Df="fixed_value",Af=(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 Rf:o+=(e=>{var t,n,r;let o="",i="";switch(null===(t=e.options)||void 0===t?void 0:t.mode){case Tf:o="*^",i="*";break;case Of:o="*";break;case _f:i="*";break;case If: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 Lf:o+=(e=>{var t,n,r,o,i,a,s;const{options:l}=e,c=(null==l?void 0:l.mode)===Pf,u=(null==l||null===(t=l.modifier)||void 0===t?void 0:t.type)===Df,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 h,p,f="=";var m,g,b;if(c&&u)h="".concat(null===(m=l.conditionField)||void 0===m?void 0:m.aggregator,"(").concat(Rc(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 y;h="",p="".concat(null===(y=l.firstValue)||void 0===y?void 0:y.fixedValue),f=""}else if(c||u){var v,S,w,x;h="".concat(null===(v=l.conditionField)||void 0===v?void 0:v.aggregator,"(").concat(Rc(null===(S=l.conditionField)||void 0===S?void 0:S.field),")"),p="".concat(null===(w=l.firstValue)||void 0===w?void 0:w.aggregator,"(").concat(Rc(null===(x=l.firstValue)||void 0===x?void 0:x.field),")")}else{var C,E;h="".concat(Rc(e.field)),p="".concat(null===(C=l.firstValue)||void 0===C?void 0:C.aggregator,"(total ").concat(Rc(null===(E=l.firstValue)||void 0===E?void 0:E.field),")")}const k="".concat(f).concat(h).concat(d[0]).concat(p);let L="";if(d.length>1){var R,q,I;if(!u&&(null===(R=l.secondValue)||void 0===R||!R.aggregator||null===(q=l.secondValue)||void 0===q||!q.field)||u&&(null===(I=l.secondValue)||void 0===I||!I.fixedValue))return"";let e,t;var _;if(c&&u)e="".concat(null===(_=l.secondValue)||void 0===_?void 0:_.fixedValue),t=" and ".concat(h);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,P;e="".concat(null===(T=l.secondValue)||void 0===T?void 0:T.aggregator,"(").concat(Rc(null===(P=l.secondValue)||void 0===P?void 0:P.field),")"),t=" and ".concat(h)}else{var D,A;e="".concat(null===(D=l.secondValue)||void 0===D?void 0:D.aggregator,"(total ").concat(Rc(null===(A=l.secondValue)||void 0===A?void 0:A.field),")"),t=" and ".concat(h)}L="".concat(t).concat(d[1]).concat(e)}return'"'.concat(k).concat(L,'"')})(e);break;case qf: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))},Mf=(e,t)=>Af(e,t).map((e=>"".concat(e.field,": ").concat(e.label))).join("; ");var Nf=e=>Qa((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 jf(e){let{styles:n,children:r}=e;return t.createElement(E,{noWrap:!0,variant:"body2",style:te(te({},n),{},{fontStyle:"italic"})},r)}function zf(e){var n;let{layout:r,translator:o,filtersFootnoteString:i,footerStyle:a,isRtl:s}=e;const l=Af(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(q,{title:i},t.createElement(R,{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(R,{item:!0,display:"flex"},t.createElement(Nf,{style:{fontSize:"12px",color:a.color,margin:"auto"}}),t.createElement(jf,{styles:te(te({},c),{},{marginLeft:"2px"})},o.get("Object.FiltersApplied")," ")),t.createElement(R,{item:!0,display:"flex"},l.map((e=>t.createElement(R,{container:!0,wrap:"nowrap",key:"".concat(e.field,"-").concat(e.label)},t.createElement(jf,{styles:te(te({},c),{},{fontWeight:"bold"})},"".concat(e.field,":")),t.createElement(jf,{styles:c}," ",e.label," ")))))))}const Ff={itemStyle:"".concat("Footer","-itemStyle")},Wf=wa(R)((()=>({["& .".concat(Ff.itemStyle)]:{minWidth:0,width:"100%"}}))),Bf="njs-cell-footer";function Uf(e){var n,r,o;let{layout:i,titleStyles:a={},translator:s,flags:l,isCardTheme:c,isRtl:u}=e;const d=a.footer,h=(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=Mf(null!==(o=null==i?void 0:i.filters)&&void 0!==o?o:[],s),f=!(null!=i&&i.footnote)&&h&&p,m=null==l?void 0:l.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),g=c?"1px":"6px";return i&&i.showTitles&&(i.footnote||f)?t.createElement(Wf,{container:!0},t.createElement(R,{item:!0,className:Ff.itemStyle,"data-testid":Bf,sx:{paddingTop:e=>m?g:e.spacing(1)}},i.footnote&&t.createElement(q,{title:i.footnote},t.createElement(E,{noWrap:!0,variant:"body2",className:Bf,style:d,align:u?"right":"left"},i.footnote)),f&&t.createElement(zf,{layout:i,translator:s,filtersFootnoteString:p,footerStyle:d,isRtl:u}))):null}class Hf{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 $f="njs-viz";function Gf(e){let{sn:o,snOptions:i,snPlugins:a,layout:l,appLayout:u,halo:d,cellId:h}=e;const{component:p}=o,{theme:f,language:m,constraints:g,interactions:b,keyboardNavigation:y}=s(Aa),[v]=n((()=>new Hf)),[S,w]=n(!1),[x,C]=n(0),[E,k,L]=Za(),[R,q]=n(null),I=c((e=>{e&&q(e)}),[]);return r((()=>{if(R)return p.created({options:i}),p.mounted(R),w(!0),()=>{v.stop(),p.willUnmount()}}),[R,p]),r((()=>{S&&R&&k&&(!p.isHooked&&l&&l.qSelectionInfo&&l.qSelectionInfo.qInSelections||v.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:te({constraints:g,interactions:b,theme:d.public.theme,appLayout:u,keyboardNavigation:y},p.isHooked?{}:{logicalSize:o.logicalSize({layout:l}),localeInfo:(u||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===x&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),C(x+1))}))})))}),[k,i,a,R,L,l,u,f,m,g,b,S,y]),t.createElement("div",{ref:E,"data-render-count":x,style:{position:"relative",height:"100%"},className:$f},t.createElement("div",{ref:I,id:"".concat(h,"_content"),style:{position:"absolute",width:"100%",height:"100%"}}))}const Kf={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"},Vf=e=>{let{layout:t,theme:n,app:r,themeName:o,disableThemeBorder:a,queryParams:s}=e;const l=i((()=>{if(t&&n){const o=t.components?t.components.find((e=>"general"===e.key)):null,i=(e=t.visualization,Kf[e.toLowerCase()]?Kf[e.toLowerCase()]:e),l={main:mh(o,"main",n,i),footer:mh(o,"footer",n,i),subTitle:mh(o,"subTitle",n,i)},c=ph(o,n,i),u=hh(o,r,s),d=function(e,t,n,r){const o=lh(null==e?void 0:e.borderColor,"","borderColor",t,n);let i=null==e?void 0:e.borderWidth;return!i&&!r&&(i=sh("","borderWidth",t,n)),i&&o?"".concat(i," solid ").concat(o):void 0}(o,n,i,a),h=function(e,t,n){return(null==e?void 0:e.borderRadius)||sh("","borderRadius",t,n)}(o,n,i);return{titleStyles:l,bgColor:c,bgImage:u,border:d,borderRadius:h,boxShadow:fh(o,n,i)}}var e;return{}}),[t,n,r,o,a]);return l};class Jf extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const Zf=["action-button","sn-nav-menu","filterpane","sn-shape"],Xf=[...Zf,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],Qf=e=>-1===Zf.indexOf(e),Yf=e=>Qf(e)?"10px 10px 0":"10px 0 0",em=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=Mf(null!==(l=null==t?void 0:t.filters)&&void 0!==l?l:[],i),h=!(null!=t&&t.footnote)&&c&&d,p=(null==t?void 0:t.showTitles)&&(!(null==t||!t.footnote)||h);let f;return e&&(o.main.padding=Yf(u)),r&&(o.subTitle.padding=((e,t)=>{const n=Qf(e);return t?n?"0 10px":"0":Yf(e)})(u,e)),p&&(-1===Zf.indexOf(u)&&(o.footer.borderTop="1px solid #d9d9d9"),o.footer.padding="6px 10px"),(n||-1===Xf.indexOf(u))&&(f="".concat(e||r?"0":"10px"," 10px ").concat(p?"0":"5px")),f}},tm=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;tm.set(t,n)}));const nm="njs-cell",rm="njs-cell-body";const om=(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 im(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(yf,null):null}const am=e=>!e.qError||7005===e.qError.qErrorCode,sm=(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}})),lm=e=>e&&(Array.isArray(e)?e:[e])||[],cm=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),s=sm(o,lm(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=sm(i,lm(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:s,reqMeasErrors:l}},um=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(),h=u.measures.min(),p=u.resolveLayout(n),f=lm(p.qDimensionInfo||p.qItems).filter(am),m=lm(p.qMeasureInfo).filter(am);if(o+=d,i+=h,(f.length<d||m.length<h)&&(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 h=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=h||await r.getProperties();h=n;const o=cm(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const p=u.filter((e=>!(e.missing||e.error))).length,f=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:f,descriptions:[...u]},{title:g,descriptions:[...d]}],y=l?c:b;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:y}]};function dm(){return new de}const hm=o(((e,o)=>{var i,c;let{halo:u,model:d,initialSnOptions:p,initialSnPlugins:f,initialError:m,onMount:g,currentId:b,emitter:y,navigation:v,onError:S}=e;const{app:w,types:x}=u,{nebbie:C}=u.public,{theme:E,translator:k,language:L,keyboardNavigation:q,externalFocusManagement:_,disableCellPadding:O=!1,navigation:T,queryParams:P}=s(Aa),[D]=n(y||dm),A=sa(),[M,N,j]=Za(),[z,F]=l(om,{loading:!1,loaded:!1,longRunningQuery:!1,error:(W=m)?{title:W.message}:null,sn:null,visualization:null});var W;const[B,U]=n(d),[H,{validating:$,canCancel:G,canRetry:K},V]=Va(B),[J]=Ja(w),[Z,X,Q]=Za(),[Y,ee]=n(p),[ne,re]=n(f),oe="njs-cell-".concat(b),[ie]=bu(w,B,["#".concat(oe),".njs-action-toolbar-popover"]),[ae,se]=n(!1),le=h({enter:null,leave:null}),{titleStyles:ce,bgColor:ue,bgImage:de,border:he,borderRadius:pe,boxShadow:fe}=Vf({layout:H,theme:u.public.theme,app:u.app,themeName:E,disableThemeBorder:null==Y?void 0:Y.disableThemeBorder,queryParams:P}),me=!("rtl"!==(null==Y?void 0:Y.direction)),ge=h({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{fu(ge.current),ge.current.blurCallback=e=>{ge.current.onBlurHandler?ge.current.onBlurHandler(e):(u.root.toggleFocusOfCells(),e&&Q&&Q.focus())},ge.current.refocusContent=()=>{z.sn.component&&"function"==typeof z.sn.component.focus&&z.sn.component.focus()}}),[]);r((()=>{if(m)return void g();if(!J||!H)return;if(z.visualization===H.visualization&&z.sn)return void(async e=>{const[t,n]=await um(k,H,e.generator.qae.data,B);F(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:z.sn,layout:H,model:B})})(z.sn);const e=x.getSupportedVersion(H.visualization,H.version);return(async(e,t)=>{F({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:h}=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:h});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:F,types:x,visualization:e,version:t,model:B,app:w,selections:ie,nebbie:C,focusHandler:ge.current,emitter:D,onMount:g,navigation:null!=v?v:T})})(H.visualization,e),()=>{}}),[x,z.sn,B,ie,H,J,L]),r((()=>{if(!$)return;const e=setTimeout((()=>F({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[$]),a(o,(()=>({getQae:()=>z.sn.generator.qae,getExtensionDefinition:()=>z.sn.generator.definition.ext,support(e,t,n){if(H&&z.loaded&&!z.error){var r;const o=t||(null===(r=z.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||H)}return!1},toggleFocus(e){"function"==typeof z.sn.component.focus&&(e?z.sn.component.focus():z.sn.component.blur())},setOnBlurHandler(e){ge.current.onBlurHandler=e},setSnOptions:ee,setSnPlugins:re,setModel:U,getImperativeHandle(){var e;return null!==(e=z.sn)&&void 0!==e&&e.component&&"function"==typeof z.sn.component.getImperativeHandle?z.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=z.sn)||void 0===e?void 0:e.component.onContextMenu(...n)},async takeSnapshot(){const{width:e,height:t}=N;let n=JSON.parse(JSON.stringify(H));return"function"==typeof z.sn.component.setSnapshotData&&(n=await z.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:k.language(),theme:A.name,appLayout:J,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)}})),[z.sn,X,N,H,A.name,J]);let be=null;if(z.loading&&!z.longRunningQuery)be=t.createElement(im,null);else if(z.error){if(S){S(z.error.errorObject?z.error.errorObject:new Jf(z.error.title))}be=t.createElement(rf,z.error)}else z.loaded&&(be=t.createElement(Gf,{key:H.visualization,sn:z.sn,halo:u,snOptions:Y,snPlugins:ne,layout:H,appLayout:J,cellId:b}));const ye=!(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 Se,we;O?(Se=!1,we=void 0):null!=ve&&ve.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(Se=!1,we=em({layout:H,isError:z.error,isCardTheme:ye,titleStyles:ce,translator:k})):(Se=!0,we=void 0);const xe=tm.get(null==H?void 0:H.visualization),Ce=k.get(xe);return t.createElement(I,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:ue||"unset",backgroundImage:de&&de.url?"url(".concat(de.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:de&&de.size,backgroundPosition:de&&de.pos,border:he,borderRadius:pe,boxShadow:fe,boxSizing:"border-box"},elevation:0,square:!0,className:nm,ref:M,id:oe,onMouseEnter:()=>{le.current.leave&&clearTimeout(le.current.leave),le.enter||(le.current.enter=setTimeout((()=>{se(!0),le.current.enter=null}),250))},onMouseLeave:()=>{le.current.enter&&clearTimeout(le.current.enter),le.current.leave||(le.current.leave=setTimeout((()=>{se(!1),le.current.leave=null}),750))}},t.createElement(R,{container:!0,direction:"column",gap:0,style:te(te({position:"relative",width:"100%",height:"100%"},Se?{padding:A.spacing(1)}:{}),z.longRunningQuery?{opacity:"0.3"}:{}),"aria-labelledby":"".concat(b,"_title ").concat(b,"_type ").concat(b,"_content")},H&&t.createElement("div",{id:"".concat(b,"_type"),style:vf,"aria-label":null!=Ce?Ce:H.visualization}),j&&H&&z.sn&&t.createElement(kf,{layout:H,sn:z.sn,anchorEl:j,hovering:ae,focusHandler:ge.current,titleStyles:ce,isRtl:me,id:b,translator:k}," "),t.createElement(R,{tabIndex:q&&!_?0:-1,onKeyDown:q&&!_?e=>{["Enter"," ","Spacebar"].includes(e.key)&&u.root.toggleFocusOfCells(b)}:null,item:!0,xs:!0,className:rm,style:te({height:"100%"},we?{padding:we}:{}),ref:Z},be),j&&H&&z.sn&&t.createElement(Uf,{layout:H,titleStyles:ce,translator:k,flags:ve,isCardTheme:ye,isRtl:me})),z.longRunningQuery&&t.createElement(bf,{canCancel:G,canRetry:K,api:V}))}));function pm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function fm(){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 pm(e)&&pm(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(...fm("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function mm(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 gm=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},bm=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t);function ym(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const vm=1e3,Sm=1e3,wm=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],xm=(e,t)=>e&&e.find((e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t}))||null,Cm=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:zh()})})},Em=e=>{var t;return te(te({},Cm(e)),{},{qOtherTotalSpec:null!==(t=e.qOtherTotalSpec)&&void 0!==t?t:{}})},km=(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]}))},Lm=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?te(te({},e),{},{qDef:te(te({},e.qDef),{},{autoSort:e.autoSort}),autoSort:void 0}):e}))},qm=(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 _m(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 Om(e,t,n){Wp.indexAdded(e.hcProperties.qInterColumnSortOrder,null!=n?n:t.length-1)}function Tm(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 Pm(e,t){return e.getAlternativeDimensions().length+t.length>=vm}function Dm(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<vm}async function Am(e,t,n,r,o,i){await e.autoSortDimension(t),Wp.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 Mm(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 Nm(e,t){Wp.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function jm(e,t,n){return n||e.maxMeasures()<=t.length&&t.length<Sm}function zm(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 Fm{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=xm(n,e))&&void 0!==t?t:xm(r,e)}static getAlternativeDimensions(){throw new Error("Method not implemented.")}static addDimension(){throw Lm}static addDimensions(){throw Lm}static removeDimension(){throw Lm}static removeDimensions(){throw Lm}static autoSortDimension(){throw Lm}static replaceDimension(){throw Lm}static getSorting(){throw Lm}createLibraryDimension(e,t){var n,r;const o=Je(!0,{},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=wm,delete o.qDef.qFieldDefs,delete o.qDef.qFieldLabels,o}createFieldDimension(e,t,n){var r,o;const i=Je(!0,{},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=wm,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=ym("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=xm(n,e))&&void 0!==t?t:xm(r,e)}static getMeasures(){return[]}static getAlternativeMeasures(){throw new Error("Method not implemented.")}static addMeasure(){throw Lm}static addMeasures(){throw Lm}static removeMeasure(){throw Lm}static removeMeasures(){throw Lm}static autoSortMeasure(){throw Lm}static replaceMeasure(){throw Lm}createExpressionMeasure(e,t,n){var r,o;const i=Je(!0,{},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=Je(!0,{},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:{},ym("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=ym("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 Wm(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then((async()=>(Om(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 Bm(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((()=>(Nm(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 Um(e,t){!function(e,t){Wp.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 Hm(e,t){!function(e,t){Wp.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 $m(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 Gm(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),Nm(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 Km extends Fm{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=qm(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=Em(e);return Dm(this,t)?_m(this,r,n):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?Wm(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=Z(e);s=!(c=await u.next()).done;s=!1){const e=c.value;{if(Pm(this,n))return o;const a=Em(e);if(Dm(this,t)){const e=await _m(this,a);o.push(e)}else n.length<this.maxDimensions()&&(await Am(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&&$m(this,e),Um(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=Z(i);s=!(c=await u.next()).done;s=!1){const e=c.value;await $m(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,h=!1,p=!1;try{for(var f,m=Z(i);h=!(f=await m.next()).done;h=!1){const e=f.value;await Um(this,e)}}catch(e){p=!0,d=e}finally{try{h&&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=te(te({},n),{},{qDef:te(te({},n.qDef),{},{cId:zh()})});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=Cm(e);return Dm(this,t)?_m(this,r,n).then((()=>{Tm(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),Om(e,r),Tm(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(Wp.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(zm(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;Wp.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&&km(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&&km([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=qm(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=Cm(e);return jm(this,r,t)?Mm(this,o,n):Bm(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>=Sm}(this,n))return!1;const i=Cm(e);return jm(this,n,t)?(Mm(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},Wp.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),Hm(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=Z(t);a=!(l=await c.next()).done;a=!1){const e=l.value;await Hm(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=te(te({},n),{},{qDef:te(te({},n.qDef),{},{cId:zh()})});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=Cm(e);return jm(this,r,t)?Mm(this,o,n):Gm(this,o,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(Wp.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?zm(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;Wp.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 Vm=Je.bind(null,!0),Jm={},{isArray:Zm}=Array;function Xm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Qm(e){return void 0===e}function Ym(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function eg(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]=Qm(e[r||t])?i:e[t],e=e[r||t]})),e}function tg(e,t){let n=!0;if(Xm(e)&&Xm(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{tg(e[r],t[r])||(n=!1)})),n);if(Zm(e)&&Zm(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!tg(e[n],t[n]))return!1;return!0}return e===t}Jm.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Vm({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);tg(i,a)||Ym(t,o)||(Qm(a)?r.push({op:"add",path:s,value:i}):Xm(i)&&Xm(a)?r=r.concat(Jm.generate(a,i,s)):Zm(i)&&Zm(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]&&Qm(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(tg(t,o))return r;if(!Qm(t[0])&&Qm(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(Jm.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=>{Qm(t[o])&&!Ym(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},Jm.apply=function(e,t){t.forEach((t=>{let n=eg(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(Zm(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Zm(o)&&Zm(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Xm(o)&&Xm(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Ym(a,e)&&delete a[e]})),Vm(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=eg(e,t.from);Zm(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Zm(n)?n.splice(+r,1):delete n[r]);var a}))},Jm.clone=function(e){return Vm({},e)},Jm.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},Jm.updateObject=function(e,t){Object.keys(e).length?Jm.apply(e,Jm.generate(e,t)):Vm(e,t)};const ng=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(de.prototype).forEach((e=>{r[e]=de.prototype[e]})),de.init(r),r);var r;return n};let rg,og;function ig(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 ag(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 sg(e){cg(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 lg(e){if(e.__hooks.obsolete)return Promise.resolve();og=-1,rg=e,rg.__hooks.initiated&&rg.__hooks.list.length;try{rg.fn.call(null)}catch(e){console.error(e)}rg.__hooks.initiated=!0;const t=rg.__hooks;return pg(rg),og=void 0,rg=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){cg(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){cg(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 cg(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 ug(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 dg(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 hg(e){return e.__hooks.imperativeHandle}function pg(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function fg(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,pg(e))}function mg(e){if(void 0===rg)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=rg.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function gg(e){mg(++og);return rg.context[e]}function bg(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function yg(e){return{__hooked:!0,fn:e,initiate:ag,run:lg,teardown:sg,runSnaps:ug,runMenu:dg,focus:Zg,blur:Xg,observeActions:fg,getImperativeHandle:hg,updateRectOnNextRun:bg}}function vg(e){const t=mg(++og);if(!t.value){t.component=rg;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,lg(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Sg(e,t){const n=mg(++og);ig(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===rg.__hooks.pendingEffects.indexOf(n)&&rg.__hooks.pendingEffects.push(n))}function wg(e,t){const n=mg(++og);ig(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],rg.__hooks.pendingLayoutEffects.push(n))}function xg(e,t){const n=mg(++og);return ig(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Cg(e){return xg((()=>({current:e})),[])}function Eg(e,t){const[n,r]=vg((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=mg(++og);return o.component||(o.component=rg),wg((()=>{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 kg(){return gg("element")}function Lg(){const e=kg(),t=rg.__hooks.resizer,[n,r]=vg((()=>{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()),wg((()=>{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 gg("layout")}function qg(){const e=gg("layout"),[t]=vg({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Ig(){return gg("appLayout")}function _g(){const e=gg("model");return e&&e.session?e:void 0}function Og(){const e=gg("app");return e&&e.session?e:void 0}function Tg(){const e=gg("global");return e&&e.session?e:void 0}function Pg(){return gg("selections")}function Dg(){return gg("theme")}function Ag(){return gg("nebbie")}function Mg(){return gg("translator")}function Ng(){return gg("deviceType")}function jg(){return gg("navigation")}function zg(){return gg("plugins")}function Fg(e,t){const[n]=vg({action(){n._config.action.call(null)}});return n.component||(n.component=rg,rg.__hooks.actions.list.push(n)),xg((()=>{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 Wg(){return gg("constraints")}function Bg(){return gg("interactions")}function Ug(){return gg("options")}function Hg(e,t){const n=mg(++og);if(n.imperative||(n.imperative=!0),ig(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],rg.__hooks.imperativeHandle=r}}function $g(e){const t=mg(++og);t.value||(t.value=1,rg.__hooks.snaps.push(t)),t.fn=e}function Gg(e){const t=mg(++og);t.value||(t.value=1,rg.__hooks.menus.push(t)),t.fn=e}function Kg(){mg(++og);const e=rg.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function Vg(){return gg("emitter")}function Jg(){const e=gg("keyboardNavigation"),t=gg("focusHandler");if(!rg.__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&&(Xg(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(rg);rg.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Zg(this))}.bind(rg);rg.__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(rg);rg.__hooks.accessibility.focusSelectionFunction=r}const n=rg.__hooks.accessibility.focusFunction,r=rg.__hooks.accessibility.exitFunction,o=rg.__hooks.accessibility.focusSelectionFunction,[i,a]=vg({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return rg.__hooks.accessibility.setter=a,rg.__hooks.accessibility.enabled=e,Sg((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function Zg(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 Xg(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 Qg={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Yg=Object.keys(Qg),eb=e=>(Object.keys(de.prototype).forEach((t=>{e[t]=de.prototype[t]})),de.init(e),e);function tb(e,t){const n=te({},Qg);eb(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==Yg.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=ng(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 nb(e,t,n){"function"==typeof e.component&&(e.component=yg(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):tb(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=Jm.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Jm.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const s=Jm.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 rb=()=>{};function ob(e,t){return void 0===e?()=>t:()=>e}function ib(e){const t=e||{};return{min:"function"==typeof t.min?t.min:ob(t.min,0),max:"function"==typeof t.max?t.max:ob(t.max,1e3),added:t.added||t.add||rb,description:t.description||rb,moved:t.moved||t.move||rb,removed:t.removed||t.remove||rb,replaced:t.replaced||t.replace||rb,isDefined:()=>!!e}}const ab=(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 sb(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=>ab(e,n,{}),dimensions:ib(e.dimensions),measures:ib(e.measures)}}function lb(){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(sb)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function cb(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:lb(n.qae),component:n.component||{},create:e=>nb(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new Km(e)}:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const ub=(e,t,n)=>{if(!e)return Promise.resolve();let r=Jm.generate(t,n);return Je(!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()},db=()=>{};function hb(){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]:{},h=db,p=null,f=null,g=null,b=null,y=!1;const v=new Promise((e=>{g=e})),S=new Promise((e=>{b=e})),w=e=>()=>{null==e||e(),b(),u(),y=!0};let x={},C=[];const E=new de;let k={};null!==(e=a.context)&&void 0!==e&&e.enablePrivateExperimental&&(k={support(e){var t;return!(!f||!y)&&p.current.support(e,null===(t=r)||void 0===t?void 0:t.support,o)},getPropertyPanelDefinition:()=>!(!f||!y)&&(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=te(te({id:i.id,model:i,async destroy(){await c(),h(),h=db},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(gm(n)&&!t){const t=await Qp({halo:a,model:i,cellRef:p,newType:e});return await bm(i,t.qProperty),t}const r=await i.getEffectiveProperties(),o=await Qp({halo:a,model:i,cellRef:p,newType:e,properties:r}),s=o.qProperty;return await ub(i,r,s),o}return await Qp({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 Qp({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){E.addListener(e,t)},removeListener(e,t){E.removeListener(e,t)},getImperativeHandle:async()=>(await S,p.current.getImperativeHandle()),takeSnapshot:async()=>(await S,p.current.takeSnapshot())},k),{},{__DO_NOT_USE__:{mount(e){if(f)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return f=e,[h,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:h}=n,p=t.createRef(),f=zh(),g=m.createPortal(t.createElement(hm,{ref:p,halo:n,model:o,currentId:f,initialSnOptions:i,initialSnPlugins:a,initialError:c,onMount:s,emitter:l,navigation:u,onError:d}),r,f),b=()=>{h.remove(g),o.removeListener("closed",b)};return o.on("closed",b),h.addCell(f,p),(async()=>{try{await h.add(g,b)}catch(e){b(),s(),d(e)}})(),[b,p]}({halo:a,element:e,model:i,initialSnOptions:x,initialSnPlugins:C,initialError:l,onMount:g,emitter:E,navigation:s,onError:d}),v},async applyProperties(e){const t=fm("/",e,await i.getEffectiveProperties());if(t.length)return i.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;f?(async()=>{await v,p.current.setSnOptions(te(te(te({},x),e),{onInitialRender:w(t)}))})():x=te(te(te({},x),e),{onInitialRender:w(t)})})(e)},plugins(e){(async e=>{mm(e),f?(async()=>{await v,p.current.setSnPlugins(e)})():C=e})(e)},exportImage:()=>p.current.exportImage(),takeSnapshot:()=>p.current.takeSnapshot(),getModel:()=>i,convert:{async toType(e){const t=await i.getEffectiveProperties(),n=await Qp({halo:a,model:i,cellRef:p,newType:e,properties:t}),r=n.qProperty;return await ub(i,t,r),n},async revert(){await i.clearSoftPatches()}}}});return L}async function pb(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=hb({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 fb(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 zp({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 mb="njs-sheet";function gb(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 bb=o(((e,o)=>{var l;let{model:c,halo:u,initialSnOptions:d,initialSnPlugins:p,initialError:f,onMount:m,unmount:g,navigation:b,onError:y}=e;const{root:v}=u,[S,w]=n(c),[x]=Va(S),{theme:C,modelStore:E}=s(Aa),[k,L]=n([]),[R,q]=n(void 0),[I,_]=n(void 0),[O,T]=n(""),P=h({cellCount:0,cellsRendered:0,initialRender:!1});null==b||null===(l=b.setCurrentSheetId)||void 0===l||l.call(b,S.id),r((()=>{if(x){const e=JSON.stringify(x.cells);if(e===O)return;T(e);const n=async()=>{k.forEach((e=>{v.removeCell(e.currentId)}));const e=x.cells;P.cellCount=e.length,P.cellsRendered=0;const n=()=>{P.cellsRendered++,P.cellsRendered!==P.cellCount||P.initialRender||(P.initialRender=!0,d.onInitialRender())},{columns:r,rows:o}=x,i=await Promise.all(e.map((async e=>{let i;const a=new Promise((e=>{i=e})),s=k.find((t=>t.id===e.name));if(s)return s.bounds=gb(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),pb(d,{options:o,plugins:i,element:a},t)}({id:e.name},u,E);return{model:l.model,id:e.name,bounds:gb(e,r,o),cellRef:t.createRef(),currentId:zh(),mounted:i,mountedPromise:a,options:te(te({},d),{onInitialRender:n})}})));i.forEach((e=>v.addCell(e.currentId,e.cellRef))),L(i)};n()}}),[x]),r((()=>{const e=()=>{S.removeListener("closed",e),g()};return S.on("closed",e),()=>S.removeListener("closed",e)}),[S]);const D=i((()=>k?k.map((e=>function(e,n,r,o,i,a,s,l){var c;const{x:u,y:d,width:h,height:p}=e.bounds,f={left:"".concat(u,"%"),top:"".concat(d,"%"),width:"".concat(h,"%"),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")&&(f.boxSizing="border-box",f.padding="4px"),t.createElement("div",{style:f,key:e.model.id},t.createElement(hm,{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,f,e.mounted,b,y))):[]),[k]);r((()=>{const e=null!=x&&x.components?x.components.find((e=>"general"===e.key)):null;q(ph(e,u.public.theme)),_(hh(e,u.app))}),[x,u.public.theme,u.app,C]),a(o,(()=>({setModel:w})),[]);const A=!x||void 0===x.height||Number.isNaN(x.height)?"100%":"".concat(Number(x.height),"%"),M=k.map((e=>e.mountedPromise)),N=M.filter((e=>!!e));return N.length&&Promise.all(M).then((()=>{m()})),t.createElement("div",{className:mb,style:{width:"100%",height:A,position:"relative",backgroundColor:R,backgroundImage:I&&I.url?"url(".concat(I.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:I&&I.size,backgroundPosition:I&&I.pos}},D)}));const yb=()=>{};function vb(){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=yb,c=null,u=null,d=null,h=null;const p=new Promise((e=>{d=e})),f=new Promise((e=>{h=e})),g=e=>()=>{null==e||e(),h(),a()};let b={},y=[];const v={id:e.id,model:e,navigation:r,getImperativeHandle:async()=>(await f,c.current.getImperativeHandle()),async destroy(){await i(),l(),l=yb},__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,h=t.createRef();let p;const f=()=>{d.remove(p)};return p=m.createPortal(t.createElement(bb,{ref:h,halo:n,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s,unmount:f,navigation:c,onError:u}),r,o.id),c.setSheetRef(h),d.add(p,f),[f,h]}({halo:n,element:i,model:e,initialSnOptions:b,initialSnPlugins:y,initialError:o,onMount:d,navigation:r,onError:s}),p},async applyProperties(t){const n=fm("/",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=>{mm(e),u?(async()=>{await p,c.current.setSnPlugins(e)})():y=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return v}async function Sb(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,h="".concat(r);let p=d.get(h);p||(p=t.app.getObject(r),d.set(h,p));const f=await p;u.set(h,f);const m=c||("sheet"===f.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},s={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:l}=t,c="".concat(n);let u,d=l.get(c);d||(d=e.app.getObject(n),l.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,s.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return fu(s),s}(t,n,f):void 0);return"sheet"===f.genericType?async function(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:a,onError:s}=t,l=vb({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:s});return t.options&&l.__DO_NOT_USE__.options(t.options),t.plugins&&l.__DO_NOT_USE__.plugins(t.plugins),t.element&&await l.__DO_NOT_USE__.mount(t.element),l}(f,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m):pb(f,{options:o,plugins:i,element:a,onRender:s,onError:l},t,m)}var wb,xb,Cb,Eb;function kb(){if(Eb)return Cb;Eb=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Cb=n=>n?"object"!=typeof n?e:n:t}var Lb,Rb,qb,Ib,_b,Ob,Tb,Pb,Db,Ab,Mb,Nb,jb,zb,Fb,Wb,Bb,Ub,Hb,$b,Gb,Kb,Vb,Jb,Zb,Xb,Qb,Yb,ey,ty,ny,ry={exports:{}};function oy(){if(Rb)return Lb;Rb=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return Lb={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 iy(){if(Ib)return qb;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 qb=e}function ay(){return _b||(_b=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=oy(),i=iy(),a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const h="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[h,r]],f=(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)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(h,"*")),f("MAINVERSION","(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")\\.")+"(".concat(l[u.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[u.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(l[u.NONNUMERICIDENTIFIER],"|").concat(l[u.NUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[u.NONNUMERICIDENTIFIER],"|").concat(l[u.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASE","(?:-(".concat(l[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(l[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[u.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(h,"+")),f("BUILD","(?:\\+(".concat(l[u.BUILDIDENTIFIER],"(?:\\.").concat(l[u.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(l[u.MAINVERSION]).concat(l[u.PRERELEASE],"?").concat(l[u.BUILD],"?")),f("FULL","^".concat(l[u.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(l[u.MAINVERSIONLOOSE]).concat(l[u.PRERELEASELOOSE],"?").concat(l[u.BUILD],"?")),f("LOOSE","^".concat(l[u.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(l[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(l[u.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIER],")")+"(?:".concat(l[u.PRERELEASE],")?").concat(l[u.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[u.PRERELEASELOOSE],")?").concat(l[u.BUILD],"?")+")?)?"),f("XRANGE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(l[u.GTLT],"\\s*").concat(l[u.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),f("COERCE","".concat(l[u.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",l[u.COERCEPLAIN]+"(?:".concat(l[u.PRERELEASE],")?")+"(?:".concat(l[u.BUILD],")?")+"(?:$|[^\\d])"),f("COERCERTL",l[u.COERCE],!0),f("COERCERTLFULL",l[u.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(l[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(l[u.LONETILDE]).concat(l[u.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(l[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(l[u.LONECARET]).concat(l[u.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(l[u.GTLT],"\\s*(").concat(l[u.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(l[u.GTLT],"\\s*(").concat(l[u.LOOSEPLAIN],"|").concat(l[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(l[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[u.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(ry,ry.exports)),ry.exports}function sy(){if(Db)return Pb;Db=1;const e=iy(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=oy(),{safeRe:r,t:o}=ay(),i=kb(),{compareIdentifiers:a}=function(){if(Tb)return Ob;Tb=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 Ob={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},Ob}();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 Pb=s}function ly(){if(Mb)return Ab;Mb=1;const e=sy();return Ab=(t,n,r)=>new e(t,r).compare(new e(n,r)),Ab}function cy(){if(Zb)return Jb;Zb=1;const e=function(){if(jb)return Nb;jb=1;const e=ly();return Nb=(t,n,r)=>0===e(t,n,r),Nb}(),t=function(){if(Fb)return zb;Fb=1;const e=ly();return zb=(t,n,r)=>0!==e(t,n,r),zb}(),n=function(){if(Bb)return Wb;Bb=1;const e=ly();return Wb=(t,n,r)=>e(t,n,r)>0,Wb}(),r=function(){if(Hb)return Ub;Hb=1;const e=ly();return Ub=(t,n,r)=>e(t,n,r)>=0,Ub}(),o=function(){if(Gb)return $b;Gb=1;const e=ly();return $b=(t,n,r)=>e(t,n,r)<0,$b}(),i=function(){if(Vb)return Kb;Vb=1;const e=ly();return Kb=(t,n,r)=>e(t,n,r)<=0,Kb}();return Jb=(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))}},Jb}function uy(){if(ey)return Yb;ey=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(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,R(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),i("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),i("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),i("caret trim",e);let g=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>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 y=new Map,v=g.map((e=>new o(e,this.options)));for(const e of v){if(f(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const S=[...y.values()];return n.set(t,S),S}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(q(this.set[t],e,this.options))return!0;return!1}}Yb=t;const n=new(xb?wb:(xb=1,wb=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=kb(),o=function(){if(Qb)return Xb;Qb=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(">")))}}Xb=t;const n=kb(),{safeRe:r,t:o}=ay(),i=cy(),a=iy(),s=sy(),l=uy();return Xb}(),i=iy(),a=sy(),{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=ay(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:p}=oy(),f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},b=(e,t)=>(i("comp",e,t),e=w(e,t),i("caret",e),e=v(e,t),i("tildes",e),e=C(e,t),i("xrange",e),e=k(e,t),i("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),y(n)?s="":y(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):y(o)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(i("replaceTilde pr",a),s=">=".concat(n,".").concat(r,".").concat(o,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),i("tilde return",s),s}))},w=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{i("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),y(n)?l="":y(o)?l=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):y(a)?l="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(i("replaceCaret pr",s),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(i("no pr"),l="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(o,".").concat(+a+1,"-0"):">=".concat(n,".").concat(o,".").concat(a).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(a," <").concat(+n+1,".0.0-0")),i("caret return",l),l}))},C=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=y(o),u=c||y(a),d=u||y(s),h=d;return"="===r&&h&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&h?(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}))},k=(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],"")),R=e=>(t,n,r,o,i,a,s,l,c,u,d,h)=>(n=y(r)?"":y(o)?">=".concat(r,".0.0").concat(e?"-0":""):y(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=y(c)?"":y(u)?"<".concat(+c+1,".0.0-0"):y(d)?"<".concat(c,".").concat(+u+1,".0-0"):h?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(h):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 Yb}var dy=function(){if(ny)return ty;ny=1;const e=uy();return ty=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},ty}(),hy=G(dy);const py={};function fy(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)||hy(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!py[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);py[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 Jf("Failed to load visualization: '".concat(n,"'"),e)}))}return py[i]}(a.name,a.version,t,o.load).then((e=>(n=n||cb(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?(Je(!0,n,e),n):te(te({},n),e)}))}};return a}function my(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]=fy({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 gy(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=my(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(py).forEach((t=>{t.split("__")[0]===e&&(py[t]=void 0)}))}(e)}}}const by={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()))}},yy={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};by.context=yy;const vy=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)},Sy=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 wy=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ce(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=te(te({},n.context),{},{translator:r.translator,hostConfig:n.hostConfig});const[s,l]=Fa({app:e,context:a}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=Ct();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),Et(kt,{__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:ym(n.flags),deviceType:Lt(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},h=gy({halo:d});n.types.forEach((e=>h.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=new Promise((e=>{(async()=>{if(await c.setTheme(n.context.theme),n.hostConfig&&oe&&oe.getWebResourceAuthParams){const{queryParams:e}=await oe.getWebResourceAuthParams({hostConfig:n.hostConfig});a.queryParams=e,s.context(a)}})().then(e)})),f=null,g=null;const b={render:async e=>(await p,e.id?Sb(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:h,onError:p}=e,f={};const m=[],{modelStore:g,subscribe:b}=n;let y;try{const e=t.types.get({name:r,version:o});f=await e.initialProperties(a,u);const n=await e.supernova();i&&await zp({sn:n,properties:f,fields:i,children:m},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},f)}catch(e){y=e,f={qInfo:{qType:r},visualization:r}}const v=await t.app.createSessionObject(f);m.length>0&&await v.setFullPropertyTree({qProperty:f,qChildren:m}),g.set(v.id,v);const S=b(v);return pb(v,{options:s,plugins:l,element:c,onRender:h,onError:p},t,d,y,(async()=>{await t.app.destroySessionObject(v.id),S()}))}(e,d,l)),destroy:async()=>{s.destroy()},create:async e=>fb(e,d,!1,l),generateProperties:async e=>fb(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&&(await p,p=c.setTheme(t.theme),await p),t.language&&d.public.translator.language(t.language),s.context(a))},selections:async()=>(f||(f={mount(n){g||(g=function(e){let{element:n,app:r}=e;return m.createPortal(t.createElement(Fh,{app:r}),n,zh())}({element:n,app:e}),s.add(g))},unmount(){g&&(s.remove(g),g=null)}}),f),field:async n=>{let r;const o="string"==typeof n?n:n.qLibraryId;if(n.qId)r=n.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const i={fieldName:o,async mount(a){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(o||r," not provided"));if(this._instance)throw new Error("Field or object ".concat(o||r," already mounted"));const c=()=>i.emit("selectionActivated"),u=()=>i.emit("selectionDeactivated");return new Promise((o=>{[this._instance,this._ref]=function(e){let{element:n,app:r,fieldIdentifier:o,qId:i,stateName:a="$",options:s={},renderedCallback:l}=e;const c=t.createRef();return[m.createPortal(t.createElement(kp,{ref:c,app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,initialOptions:s,renderedCallback:l}),n,zh()),c]}({element:a,app:e,fieldIdentifier:n,qId:r,options:Ep(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=Ep(te({onSelectionActivated:n,onSelectionDeactivated:r},e));i._ref.current.setOptions(t)}}}};return fu(i),i},getRegisteredTypes:h.getList,__DO_NOT_USE__:{types:h,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({},Lp);return Je(!0,t,e),t}(te({onPopoverClose:()=>b.emit("fieldPopoverClose")},o));b._popoverInstance=t.createElement(Rp,{element:n,key:zh(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(b._popoverInstance)}}};return d.public.nebbie=b,d.types=h,fu(b),b}return o.createConfiguration=t=>e(((e,t)=>({context:vy(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:te({},t.snapshot||e.snapshot),types:Sy(e.types,t.types),themes:Sy(e.themes,t.themes),flags:vy(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:vy(e.anything,t.anything)}))(n,t)),o.config=n,o}(by);function xy(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Cy=globalThis.crypto||{getRandomValues:()=>123456};function Ey(e){return t=>{const n=Je({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Cy.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=Je({},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 ky=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},Ly=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=ky(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},Ry=["id","session"],qy=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Iy(e){return!qy.includes(e)}function _y(e){const t=ky(e.getLayout);return t.qInfo&&t.qInfo.qId}function Oy(e,t){return e.reduce(((e,n)=>te(te({},e),function(e,t){let n=_y(e);const{delay:r}=t,{id:o,session:i}=e,a=ne(e,Ry);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:ky(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return te(te({},e),{},{[n]:Ly(o,{async:Iy(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Ty(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!_y(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Py(){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(Ty);const n=Oy(e,t);return async e=>Promise.resolve(n[e])}function Dy(){return()=>Promise.resolve({id:"app-layout"})}const Ay={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new xy,r=new Ey(n),o=new Py(e,t),i=new Dy,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]:{})}},My={generator:cb,hook:yg,theme:Ct,locale:ie};function Ny(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.self}function jy(){return!("undefined"==typeof process||!process.version||!process.versions.node)}function zy(e){if(Array.isArray(e))return e.map(zy);if("object"==typeof(t=e)&&null!==t&&t.constructor===Object){const t={};for(const n of Object.keys(e).sort())t[n]=zy(e[n]);return t}var t;return e}function Fy(e){if(Array.isArray(e))return e.map((e=>"object"==typeof e&&null!==e?Fy(e):e)).filter((e=>"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e&&""!==e));if("object"==typeof e&&null!==e){const t={};for(const n of Object.keys(e)){const r=e[n];switch(typeof r){case"undefined":break;case"boolean":r&&(t[n]=r);break;case"string":{const e=r.trim();""!==e&&(t[n]=e);break}case"object":{if(null===r)break;const e=Fy(r);e&&(Array.isArray(e)&&e.length>0||"object"==typeof e&&Object.keys(e).length>0)&&(t[n]=e);break}case"function":case"number":t[n]=r;break;default:console.warn(`Unexpected type for key "${n}": ${typeof r}`),t[n]=r}}if(0===Object.keys(t).length)return;return t}return e}let Wy;Wy=function(){const e=[...Wy?.getInterceptors()||[]];return{addInterceptor:t=>(e.push(t),t),removeInterceptor:t=>{const n=e.indexOf(t);let r;return-1!==n&&(r=e.splice(n,1)[0]),r||null},getInterceptors:()=>e}}();const By=["authType","autoRedirect","authRedirectUserConfirmation","embedRuntimeUrl","host","onAuthFailed"],Uy=["apikey","oauth2","cookie","windowscookie","reference","anonymous"];let Hy=e=>crypto.getRandomValues(new Uint8Array(e)),$y=(e,t=21)=>((e,t,n)=>{let r=(2<<Math.log2(e.length-1))-1,o=-~(1.6*r*t/e.length);return(i=t)=>{let a="";for(;;){let t=n(o),s=0|o;for(;s--;)if(a+=e[t[s]&r]||"",a.length>=i)return a}}})(e,0|t,Hy),Gy=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};const Ky=async(e={})=>{const t=YS(e.hostConfig),n="anonymous"===t?.authType||!!t.accessCode;if("undefined"==typeof window)return Xy({isNodeEnv:!0,isAnonymous:n});const{data:r,status:o}=await Jy(e);if(404===o)return Xy({isUnknown:!0,isAnonymous:n});if(!r||o<=399&&o>=300)return Xy({isQSE:!0,isWindows:!0,isAnonymous:n});const i=(r.composition?.deploymentType||"").toLowerCase(),a="controlcenter"===i;return"qliksenseserver"===i?Xy({isQSE:!0,isWindows:!0,isAnonymous:n,meta:Zy(r)}):"qliksensedesktop"===i?Xy({isQSD:!0,isWindows:!0,isAnonymous:n,meta:Zy(r)}):"qliksensemobile"===i?Xy({isQSE:!0,isWindows:!0,isAnonymous:n,meta:Zy(r)}):"cloud-console"===i?Xy({isCloud:!0,isCloudConsole:!0,isAnonymous:n,meta:Zy(r)}):"fedramp"===r.composition?.provider?Xy({isCloud:!0,isQCG:!0,isControlCenter:a,isAnonymous:n,meta:Zy(r)}):Xy({isCloud:!0,isQCS:!0,isControlCenter:a,isAnonymous:n,meta:Zy(r)})},Vy={};const Jy=async({hostConfig:e,noCache:t}={})=>{const n=zS(e),r=`${n}/resources/autogenerated/product-info.json`;try{if(!(r in Vy)){const e={};globalThis.QlikMain&&globalThis.QlikMain.resourceNeedsCredentials(r)&&(e.credentials="include");const t=fetch(r,e).then((async e=>e.ok?{data:await e.json(),status:e.status}:{data:void 0,status:e.status}));Vy[r]=t}const e=await Vy[r];return(e.status>=400||!e.data)&&delete Vy[r],e}catch{return delete Vy[r],{data:void 0,status:500}}finally{t&&delete Vy[r]}},Zy=e=>{const t=e.externalUrls;if(!t)return;const n=e.composition?.productName??"Qlik",r=e.composition?.releaseLabel||"-",o="-"===r?n:`${n} (${r})`;return{productId:e.composition?.senseId??"qlik",productLabel:o,version:e.composition?.version,urls:{personalHelpBaseUrl:t.personalHelpBaseUrl,personalUpgradeBase:t.personalUpgradeBase,personalUpgradeUrl:t.personalUpgradeUrl,serverHelpBaseUrl:t.serverHelpBaseUrl,qlikWebPageUrl:t.qlikWebPageUrl}}},Xy=e=>({isNodeEnv:!1,isCloud:!1,isQCS:!1,isQCG:!1,isCloudConsole:!1,isControlCenter:!1,isWindows:!1,isQSE:!1,isQSD:!1,isUnknown:!1,isAnonymous:!1,...e});function Qy(e){return Gy(e)}const Yy="__QLIK_INTERNAL__DO_NOT_USE_OR_YOU_WILL_BE_FIRED";const ev="qlik-qmfe-api";function tv(e){let t=e.clientId+(e.scope?`_${e.scope}`:"_user_default");return e.subject&&(t+=`_${e.subject}`),e.userId&&(t+=`_${e.userId}`),t}function nv(e){return`${e.accessCode}_${e.clientId}`}const rv={};function ov(e,t,n){localStorage.setItem(`${ev}-${e}-${t}`,n)}function iv(e,t,n){sessionStorage.setItem(`${ev}-${e}-${t}`,n)}function av(e,t){return localStorage.getItem(`${ev}-${e}-${t}`)||void 0}function sv(e,t){return sessionStorage.getItem(`${ev}-${e}-${t}`)||void 0}function lv(e,t){t.forEach((t=>localStorage.removeItem(`${ev}-${e}-${t}`)))}function cv(e,t){t.forEach((t=>sessionStorage.removeItem(`${ev}-${e}-${t}`)))}function uv(e,t){const n=`${ev}-${e}-${t}`,r=sessionStorage.getItem(n)||void 0;return sessionStorage.removeItem(n),r}async function dv(e,t){if(!e.clientId)throw new CS('A host config with authType set to "oauth2" has to also provide a clientId');return hv(tv(e),t,e.noCache,e.accessTokenStorage)}async function hv(e,t,n,r){if(n)return t();const o=Ny(),i=rv[e]||(o?function(e,t){let n,r;if("local"===t?(n=av(e,"access-token"),r=av(e,"refresh-token")):"session"===t&&(n=sv(e,"access-token"),r=sv(e,"refresh-token")),n)return{accessToken:n,refreshToken:r}}(e,r):void 0);if(i)return rv[e]=i,Promise.resolve(i);const a=t();if(rv[e]=a,o){const t=await a;"local"===r&&t?(t.accessToken&&ov(e,"access-token",t.accessToken),t.refreshToken&&ov(e,"refresh-token",t.refreshToken)):"session"===r&&t&&(t.accessToken&&iv(e,"access-token",t.accessToken),t.refreshToken&&iv(e,"refresh-token",t.refreshToken))}return a}function pv(e){const t=tv(e);delete rv[t],Ny()&&(lv(t,["access-token","refresh-token"]),cv(t,["access-token","refresh-token"]))}function fv(e){if("string"==typeof e){const t=globalThis[e];if(!t)throw new Error(`No such function: ${e}`);return t}return e}function mv(e){if(e.errors)throw new RS(e.errors)}function gv(e){const t=Object.keys(e);t.sort();return t.map((t=>`${t}=${e[t]}`)).join("&")}async function bv(e){const t=(new TextEncoder).encode(e),n=await globalThis.crypto.subtle.digest("SHA-256",t),r=function(e){let t="";if(Ny()){const n=String.fromCharCode.apply(null,e);t=btoa(n)}else{if(!jy())throw new Error("Environment not supported for oauth2 authentication");t=Buffer.from(e).toString("base64")}return t}(Array.from(new Uint8Array(n)));return r.replaceAll(/\+/g,"-").replaceAll(/\//g,"_").replace(/=+$/,"")}async function yv(e){const t=e.clientId||"",n=zS(e),r=Qy(128),o=Qy(43),i=await bv(r),a=e.redirectUri||globalThis.location.href,s=tv(e);pv(e),iv(s,"state",o),iv(s,"verifier",r),iv(s,"href",globalThis.location.href),iv("","client-in-progress",s);const l=`${n}/oauth/authorize?${gv({response_type:"code",client_id:t,redirect_uri:a,scope:e.scope||"user_default",state:o,code_challenge:i,code_challenge_method:"S256"})}`;globalThis.location.replace(l)}async function vv(e,t,n,r){try{const o=await fetch(`${zS(e)}/oauth/token`,{method:"POST",credentials:"include",mode:"cors",headers:{"content-type":"application/json"},redirect:"follow",body:JSON.stringify({grant_type:"authorization_code",scope:e.scope||"user_default",...t?{code:t}:{},redirect_uri:r||globalThis.location.href,...n?{code_verifier:n}:{},client_id:e.clientId})}),i=await o.json();return mv(i),{accessToken:i.access_token,refreshToken:i.refresh_token,errors:i.errors}}catch(e){return console.error(e),new Promise((()=>{}))}}function Sv(e,t,n,r,o){const i={client_id:e,client_secret:t,scope:n};return r?{...i,grant_type:"urn:qlik:oauth:user-impersonation",user_lookup:{field:"subject",value:r}}:o?{...i,grant_type:"urn:qlik:oauth:user-impersonation",user_lookup:{field:"userId",value:o}}:{...i,grant_type:"client_credentials"}}async function wv(e){const{clientId:t,clientSecret:n}=e;if(!t||!n)throw new CS('A host config with authType set to "oauth2" has to provide a clientId and a clientSecret');const r=await dv(e,(async()=>{if(!e.clientId||!e.clientSecret)throw new CS('A host config with authType set to "oauth2" has to provide a clientId and a clientSecret');return async function(e,t,n,r="user_default",o,i){const a=await fetch(`${e}/oauth/token`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify(Sv(t,n,r,o,i))}),s=await a.json();return{accessToken:s.access_token,refreshToken:s.refresh_token,errors:s.errors}}(zS(e),e.clientId,e.clientSecret,e.scope,e.subject,e.userId)}));return r}async function xv(e){const{clientId:t}=e;if(!t)throw new CS('A host config with authType set to "oauth2" has to also provide a clientId');const n=await dv(e,(async()=>{if(e.getAccessToken)try{const t="string"==typeof e.getAccessToken?await function(e){return globalThis[e]}(e.getAccessToken)():await e.getAccessToken();return{accessToken:t,refreshToken:void 0,errors:void 0}}catch{return Lv("Could not fetch access token using custom function")}if(e.performInteractiveLogin){let t;try{const n=Qy(128),r=Qy(43),{code:o,state:i}=function(e){if("string"==typeof e){const t=new URLSearchParams(new URL(e).search);return{code:t.get("code")||"",state:t.get("state")||""}}return e}(await fv(e.performInteractiveLogin)({getLoginUrl:async({redirectUri:o})=>(t=o,async function(e,t,n,r){const o=e.clientId||"",i=zS(e),a=await bv(r);return`${i}/oauth/authorize?${gv({response_type:"code",client_id:o,redirect_uri:t,scope:e.scope||"user_default",state:n,code_challenge:a,code_challenge_method:"S256"})}`}(e,o,r,n))}));if(!t)return Lv("No redirect uri provided");if(r!==i)return Lv("State returned by custom interactive login function does not match original");if(!o)return Lv("No code found in response from custom interactive login function");return await vv(e,o,n,t)}catch(e){return{accessToken:void 0,refreshToken:void 0,errors:[{code:"",status:401,title:"Could not perform custom interactive login",detail:`${e}`}]}}}const t=tv(e),n=uv(t,"code"),r=uv(t,"verifier");if(n&&r){const t=await vv(e,n,r,e.redirectUri);if(t)return t}}));return n||(e.performInteractiveLogin||(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),yv(e)),new Promise((()=>{})))}!function(e,t){(globalThis.location?.origin.startsWith("https://localhost:")||globalThis.location?.origin?.endsWith("qlik-stage.com"))&&(void 0===globalThis[Yy]&&(globalThis[Yy]={}),globalThis[Yy][e]=t)}("clearAllAccessTokens",(()=>{console.log("Clearing tokens",rv),Object.keys(rv).forEach((e=>{console.log("Clearing access tokens for",e),lv(e,["access-token","refresh-token"]),cv(e,["access-token","refresh-token"])})),function(){for(const e in rv)delete rv[e]}()}));let Cv=Promise.resolve("");async function Ev(e){if(jy()){const t=await wv(e);return t?(mv(t),t.accessToken||""):""}return Ny()&&(Cv=Cv.then((async()=>{const t=await xv(e);return t?(mv(t),t.accessToken||""):""}))),Cv}async function kv(e){const t=await async function(e){return rv[tv(e)]}(e);if(pv(e),t&&t.refreshToken&&e.clientSecret){const n=await dv(e,(async()=>{if(!t||!t.refreshToken||!e.clientSecret)throw new Error("Trying to refresh tokens without refreshToken or clientSecret");return async function(e,t,n){const r=await fetch(`${e}/oauth/token`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:"refresh_token",refresh_token:t,client_secret:n})}),o=await r.json();return{accessToken:o.access_token,refreshToken:o.refresh_token,errors:o.errors}}(zS(e),t.refreshToken,e.clientSecret)}));n&&mv(n)}}function Lv(e){return{accessToken:void 0,refreshToken:void 0,errors:[{code:"",status:401,title:e,detail:""}]}}async function Rv(e,t,n){const r=await fetch(`${zS(e)}/oauth/token`,{method:"POST",credentials:"include",mode:"cors",headers:{"content-type":"application/json"},redirect:"follow",body:JSON.stringify({subject_token:t,subject_token_type:"urn:ietf:params:oauth:token-type:access_token",grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",purpose:n,redirect_uri:globalThis.location?.href,client_id:e.clientId})});if(200!==r.status)throw await async function(e){const t=await e.text();try{const e=JSON.parse(t);return new RS(e.errors)}catch{return new RS([{code:"unknown",status:e.status,detail:t,title:"Unknown authentication error"}])}}(r);return(await r.json()).access_token}async function qv(e,t){try{return await t()}catch(n){const{retry:r}=await Ov({hostConfig:e});if(r)return t();throw n}}function Iv(){const e=Math.floor(Date.now()/1e3).toString(16);var t;return`${e}${t=40-e.length,$y("1234567890abcdef",t)()}`}async function _v(e){const{accessCode:t,clientId:n}=e;if(!t||!n)throw new CS('A host config with authType set to "anonymous" has to provide both an accessCode and clientId');const r=await async function(e,t){if(!e.accessCode)throw new CS('A host config with authType set to "anonymous" has to also provide an accessCode');return hv(nv(e),t,!1,void 0)}(e,(async()=>{const r=zS(e),o=await async function(e){let t;if(Ny()){const n=nv(e);t=av(n,"tracking-code"),t||(t=Iv()),ov(n,"tracking-code",t)}else t=Iv();return t}(e);return async function(e,t,n,r){const o=await fetch(`${e}/oauth/token/anonymous-embed`,{method:"POST",mode:"cors",headers:{"content-type":"application/json"},body:JSON.stringify({eac:t,client_id:n,grant_type:"urn:qlik:oauth:anonymous-embed",tracking_code:r})}),i=await o.json();return{accessToken:i.access_token,refreshToken:i.refresh_token,errors:i.errors}}(r,t,n,o)}));if(!r)return"";if(r.errors)throw new RS(r.errors);return r.accessToken?r.accessToken:""}async function Ov({hostConfig:e}){return function(e){const t=nv(e);delete rv[t],Ny()&&(lv(t,["access-token","refresh-token"]),cv(t,["access-token","refresh-token"]))}(e),{preventDefault:!1,retry:!0}}var Tv={requiredProps:["clientId","accessCode"],optionalProps:[],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{Authorization:`Bearer ${await _v(e)}`},queryParams:{},credentials:"omit"}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await qv(e,(async()=>{const t=await _v(e);return Rv(e,t,"websocket")}))}}},getWebResourceAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await qv(e,(async()=>{const t=await _v(e);return Rv(e,t,"websocket")}))}}},handleAuthenticationError:Ov};var Pv={requiredProps:["apiKey"],optionalProps:[],getRestCallAuthParams:function({hostConfig:e}){return Promise.resolve({headers:{Authorization:`Bearer ${e?.apiKey}`},queryParams:{},credentials:"omit"})},getWebSocketAuthParams:async function(){return{queryParams:{}}},handleAuthenticationError:function(){return Promise.resolve({})}},Dv=class extends Error{status;headers;data;constructor(e,t,n,r){super(e),this.status=t,this.headers=n,this.data=r,this.stack=jv(this.stack)}},Av=class extends Error{contentType;data;constructor(e,t,n){super(e),this.contentType=t,this.data=n,this.stack=jv(this.stack)}};const Mv=/^.+\/qmfe-api(?:\.js)?:(\d+)(?::\d+)?$/gim,Nv=e=>{const t=e.match(Mv);return Boolean(t&&t.length>0)};function jv(e){if(!e)return e;const t=[],n=e.split("\n");n.reverse();for(const e of n){if(Nv(e))break;t.unshift(e)}return t.join("\n")}function zv(e,t,n,r){let o=e;return""!==t&&(o=o.concat(`?${t}`)),r&&(o=o.concat(`+headers=${JSON.stringify(r)}`)),n&&(o=o.concat(`+host-config=${n}`)),o}const Fv=e=>"get"===e||"GET"===e;function Wv(e){return e&&(e instanceof Blob||e instanceof Object&&"[object Blob]"===e.toString())||e&&e instanceof ReadableStream||"string"==typeof e?e:JSON.parse(JSON.stringify(e))}function Bv(e){return!("get"===e||"GET"===e)}function Uv(e){const t=e.indexOf("?");if(t>=0)return e.substring(0,t);const n=e.indexOf("+headers=");if(n>=0)return e.substring(0,n);const r=e.indexOf("+host-config=");return r>=0?e.substring(0,r):e}function Hv(e){return e.then((e=>{const t={data:Wv(e.data),headers:e.headers,status:e.status};return e.next&&(t.next=e.next),e.prev&&(t.prev=e.prev),t}))}let $v=6e5;const Gv={};function Kv(e){return e instanceof Error?e.cause?e.message?`${e.message} - ${Kv(e.cause)}`:Kv(e.cause):e.message:String(e)}async function Vv(e,t,n,r,o,i,a,s){const{body:l,contentTypeHeader:c,requestOptions:u}=function(e,t){if(!e)return{body:null,contentTypeHeader:{},requestOptions:{}};const n={},r={};let o=null;switch(t){case"":case"application/json":n["Content-Type"]="application/json",o=JSON.stringify(e);break;case"multipart/form-data":o=function(e){const t="multipart/form-data";if("object"!=typeof e)throw new Av(`Cannot encode ${typeof e} as ${t}, body should be an object.`,t,e);if(Array.isArray(e))throw new Av(`Cannot encode ${typeof e} as ${t}, body should be an object.`,t,e);if(e instanceof FormData)return e;const n=new FormData;return Object.entries(e).forEach((r=>{const[o,i]=r;switch(typeof i){case"boolean":case"number":case"string":n.set(o,`${i}`);break;case"object":if(i instanceof Blob)n.set(o,i);else if(i instanceof Uint8Array){const e=new Blob([i],{type:"application/octet-stream"});n.set(o,e)}else{const e=JSON.stringify(i),t=new Blob([e],{type:"application/json"});n.set(o,t,"")}break;default:throw new Av(`Cannot encode multipart-field "${o}" with value of type ${typeof i}, values must be objects, strings, numbers or boolean.`,t,e)}})),n}(e);break;case"application/octet-stream":n["Content-Type"]=t,r.duplex="half",o=e;break;case"text/plain":if("string"!=typeof e)throw new Av(`Cannot send ${typeof e} as ${t}, body should be a string.`,t,e);n["Content-Type"]=t,o=e;break;default:throw new Av(`Unsupported content-type "${t}", supported are: application/json, multipart/form-data, application/octet-stream and text/plain`,t,e)}return{body:o,contentTypeHeader:n,requestOptions:r}}(n,r??""),d={...c,...i,...o?.headers,...Yv()};!d["User-Agent"]&&s&&(d["User-Agent"]=s);const h={method:e,credentials:a,mode:"cors",headers:d,redirect:await jS(o?.hostConfig)?"manual":"follow",keepalive:o?.keepalive,progress:o?.progress,body:l,...u};let p,f;if(o?.signal)h.signal=o.signal;else if(o?.timeoutMs&&o.timeoutMs>0){const e=new AbortController;p=setTimeout((()=>{e.abort()}),o.timeoutMs),h.signal=e.signal}f=o?.progress?await async function(e,{method:t,headers:n,credentials:r,keepalive:o,body:i,signal:a,progress:s}){const l=new XMLHttpRequest;let c,u;const d=new Promise(((e,t)=>{c=e,u=t}));if(l.open(t||"GET",e),"object"!=typeof n)throw Error("malformed headers",n);for(const[e,t]of Object.entries(n))l.setRequestHeader(e,t);o&&l.setRequestHeader("Connection","keep-alive"),a&&a.addEventListener("abort",(()=>{l.abort(),u()})),l.withCredentials="include"===r,s?.onUpload&&(l.upload.onprogress=e=>{const{loaded:t,total:n,lengthComputable:r}=e;s.onUpload?.({loaded:t,total:r?n:void 0})}),s?.onDownload&&(l.onprogress=e=>{const{loaded:t,total:n,lengthComputable:r}=e;s.onDownload?.({loaded:t,total:r?n:void 0})}),l.onloadend=()=>{const{status:e}=l,t={};for(const e of l.getAllResponseHeaders().split("\r\n")){const[n,r]=e.split(":",2);n&&r&&(t[n]=r)}l.response?c(new Response(l.response,{status:e,headers:t})):c(new Response(void 0,{status:e,headers:t}))};try{const e=i;l.send(e)}catch(e){return Promise.reject(new Dv(Kv(e),0,new Headers,{}))}return d}(t,h):await async function(e,t){try{return await fetch(e,t)}catch(e){return Promise.reject(new Dv(Kv(e),0,new Headers,{}))}}(t,h),p&&clearTimeout(p);const m=await async function(e,t){let n;const r=e.headers.get("content-type")?.split(";")[0],o=e.headers.get("content-disposition")?.split(";");if(o&&"attachment"===o[0]){let t="";for(let e=1;e<o.length;e++){const n=o[e].trim();if(0===n.indexOf("filename")){const e=n.indexOf('"'),r=n.lastIndexOf('"');t=n.slice(e+1,r)}}n=eS(await e.blob(),t)}else switch(r){case"image/png":case"image/jpeg":case"image/x-icon":case"application/offset+octet-stream":case"application/octet-stream":case"application/zip":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":case"application/pdf":n=eS(await e.blob());break;case"text/event-stream":n=e.body;break;default:try{n=await e.text(),n=JSON.parse(n)}catch{}}const{status:i,statusText:a,headers:s}=e,l=`request to '${t}' failed with status ${i} ${a}.`;if(i>=300)throw new Dv(l,i,s,n);if(0===i)throw new Dv(l,302,s,n);const c={status:i,headers:s,data:n};return c}(f,t);return m}async function Jv({method:e,pathTemplate:t,pathVariables:n,query:r,options:o}){const i=zS(o?.hostConfig),{headers:a,queryParams:s,credentials:l}=await HS({hostConfig:o?.hostConfig,method:e}),c=i+function(e,t){let n=e;return t&&Object.keys(t).forEach((e=>{n=n.replace(`{${e}}`,t[e])})),n}(t,n),u=function(e){return e?Object.entries(e).map((e=>{const[,t]=e;if(void 0!==t)return e.map((e=>encodeURIComponent(e))).join("=")})).filter(Boolean).join("&"):""}({...r,...s}),d=function(e,t){return""!==t?`${e}?${t}`:e}(c,u);return{completeUrl:d,cacheKey:zv(c,u,JS(o?.hostConfig),o?.headers),authHeaders:a,credentials:l}}function Zv(e,t){return Xv(e,t,(async()=>{const{cacheKey:n,authHeaders:r,credentials:o}=await Jv(t);return Xv(e,{...t,cacheKey:n,authHeaders:r,credentials:o,options:{...t.options,noCache:!0}},void 0)}))}function Xv(e,{method:t,completeUrl:n,cacheKey:r,body:o,options:i,authHeaders:a,credentials:s,contentType:l,userAgent:c},u){Gv[e]||(Gv[e]={});const d=Bv(t)?void 0:Gv[e][r];if(Bv(t)&&function(e,t){const n=Uv(t);for(const t in e){const r=Uv(t);(n.startsWith(r)||r.startsWith(n))&&delete e[t]}}(Gv[e],r),d&&function(e,t,n){if(!t||void 0===t.value)return!1;if(e?.noCache)return!1;if(e?.useCacheIfAfter)return e.useCacheIfAfter.getTime()<=t.lastPulled;const r=Date.now()-t.lastPulled;return e?.maxCacheAge?r<=e?.maxCacheAge:r<n}(i,d,$v))return d.lastHit=new Date,d.hitCount+=1,d.accessedPaths.add(globalThis.location?globalThis.location.pathname:"node"),Hv(d.value);const h=Vv(t,n,o,l,i,a,s,c),p=async function(e,t,n){try{return await t}catch(t){const r=t,o=r.data;if(401===r.status||403===r.status&&"CSRF-TOKEN-2"===o?.code||(301===r.status||302===r.status)&&await jS(e)){if(globalThis.loggingOut)return Qv();const{retry:t,preventDefault:i}=await US({hostConfig:e,status:r.status,headers:r.headers,errorBody:o,canRetry:!!n});if(t&&n)return n();if(i)return Qv()}throw t}}(i?.hostConfig,h,u),f=function(e,t,n,r,o,i,a){const s=JS(o?.hostConfig);return t.then((t=>{const l=t.data;if(!l)return t;const c=l.links?.prev?.href,u=l.links?.next?.href;return c&&(t.prev=t=>Zv(e,{method:n,completeUrl:c,body:r,options:t||o,cacheKey:zv(c,"",s,o?.headers),authHeaders:i,credentials:a})),u&&(t.next=t=>Zv(e,{method:n,completeUrl:u,body:r,options:t||o,cacheKey:zv(u,"",s,o?.headers),authHeaders:i,credentials:a})),t}))}(e,p,t,o,i,a,s),m=function(e,t,n){return n.catch((n=>(delete e[t],Promise.reject(n))))}(Gv[e],r,f);if(Fv(t)){if(Object.hasOwn&&!Object.hasOwn(Gv,e)||"__proto__"===e)throw new Error(`Forbidden api name: ${e}`);Gv[e][r]={lastPulled:Date.now(),value:m,lastHit:null,hitCount:0,accessedPaths:new Set}}return Hv(m)}function Qv(){return new Promise((()=>{}))}function Yv(){if(!Ny())return{};const e=localStorage.getItem("qmfe-api-service-overrides-header");return e?{"X-Qlik-Overrides":e}:{}}function eS(e,t){const n=e;return n.download=t?(n=t)=>tS(e,n):t=>tS(e,t),n}async function tS(e,t){if(Ny()){const n=document.createElement("a"),r=window.URL.createObjectURL(e);n.href=r,n.download=t,n.click(),window.URL.revokeObjectURL(r)}else{const{writeFileSync:n}=await Promise.resolve().then((function(){return ow})),r=await e.arrayBuffer();n(t,new Uint8Array(r))}}globalThis.__API_CACHE__DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gv;const nS="qmfe-api/latest";async function rS(e,t,n){const r=(Wy.getInterceptors()||[]).reduce(((e,t)=>n=>t(n,e)),(t=>async function(e,t){let n;(function(e){const t=YS(e);if(NS(t)){if(0===Object.keys(t).length)throw new CS("a host config must be provided when making a cross domain request");if(!t.host)throw new CS("A 'host' property must be set in host config when making a cross domain request")}})(t.options?.hostConfig),n=t?.userAgent?t.userAgent:Ny()?`${window.navigator.userAgent} ${nS}`:nS;const{completeUrl:r,cacheKey:o,authHeaders:i,credentials:a}=await Jv(t);return Zv(e,{...t,method:t.method.toUpperCase(),completeUrl:r,cacheKey:o,authHeaders:i,credentials:a,userAgent:n})}(e,t)));return r(t)}const oS="qlik-csrf-token";async function iS(e,t){const n=zS(e);let r;r=await jS(e)?"/qps/csrftoken":"/api/v1/csrf-token";const o=async()=>{try{const t=(await rS("csrf-token",{method:"get",pathTemplate:r,options:{hostConfig:e,noCache:!0}})).headers.get(oS);return t||""}catch(e){if(404===e.status)return"";throw e}};return t?(aS[n]=o(),aS[n]):(aS[n]=aS[n]||o(),aS[n])}const aS={};function sS(e){return!1===e.crossSiteCookies?"same-origin":NS(e)?"include":"same-origin"}var lS={requiredProps:[],optionalProps:["webIntegrationId","crossSiteCookies","anonymousMode"],getRestCallAuthParams:async function({hostConfig:e,method:t}){const n={};var r;return"get"!==(r=t)&&"GET"!==r&&(n["qlik-csrf-token"]=await iS(e)),e.webIntegrationId&&(n["qlik-web-integration-id"]=e.webIntegrationId),{headers:n,queryParams:{},credentials:sS(e)}},getWebSocketAuthParams:async function({hostConfig:e}){const t={"qlik-csrf-token":await iS(e,!0)};return e.webIntegrationId&&(t["qlik-web-integration-id"]=e.webIntegrationId),{queryParams:t}},handleAuthenticationError:async function({hostConfig:e,status:t}){if(function(e){const t=zS(e);delete aS[t]}(e),403===t)return{preventDefault:!1,retry:!0};const n=e.webIntegrationId?`qlik-web-integration-id=${e?.webIntegrationId}&`:"",r=zS(e);return e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),globalThis.location.replace(`${r}/login?${n}returnto=${encodeURIComponent(globalThis.location.href)}`),{preventDefault:!0}}};var cS={requiredProps:[],optionalProps:[],getRestCallAuthParams:function(){return Promise.resolve({headers:{},queryParams:{},credentials:"same-origin"})},getWebSocketAuthParams:function(){return Promise.resolve({queryParams:{}})},handleAuthenticationError:function(){return Promise.resolve({})}};async function uS(e,t){try{return await t()}catch(n){const{retry:r}=await dS({hostConfig:e});if(r)return t();throw n}}async function dS({hostConfig:e}){return e.getAccessToken?(pv(e),{preventDefault:!1,retry:!0}):Ny()?e.performInteractiveLogin?(pv(e),{retry:!0}):(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),yv(e),{preventDefault:!0}):(await kv(e),{preventDefault:!1,retry:!0})}Ny()&&function(){const e=new URLSearchParams(globalThis.location.search),t=e.get("code")||void 0,n=e.get("state")||void 0;if(e.get("error")){const t=document.createElement("pre");t.innerText=`<code>${JSON.stringify({error:e.get("error"),error_code:e.get("error_code"),error_description:e.get("error_description"),error_detail:e.get("error_detail"),error_uri:e.get("error_uri")})}</code>`,document.body.prepend(t)}const r=uv("","client-in-progress");if(r&&t&&n){const e=uv(r,"state"),o=uv(r,"href");e&&e===n&&o&&(iv(r,"code",t),o!==globalThis.location.href&&globalThis.location.replace(o))}}();var hS={requiredProps:["clientId"],optionalProps:["clientSecret","redirectUri","accessTokenStorage","scope","subject","userId","noCache","getAccessToken","performInteractiveLogin"],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{Authorization:`Bearer ${await Ev(e)}`},queryParams:{},credentials:"omit"}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await uS(e,(async()=>{const t=await Ev(e);return Rv(e,t,"websocket")}))}}},getWebResourceAuthParams:async function({hostConfig:e}){return{queryParams:{accessToken:await uS(e,(async()=>{const t=await Ev(e);return Rv(e,t,"webresource")}))}}},handleAuthenticationError:dS};var pS={requiredProps:["reference"],optionalProps:[],getRestCallAuthParams:function(){throw new Error("getRestCallAuthParams should never be called for reference auth module")},getWebSocketAuthParams:function(){throw new Error("getWebSocketAuthParams should never be called for reference auth module")},handleAuthenticationError:function(){throw new Error("handleAuthenticationError should never be called for reference auth module")}};const fS={};function mS(e){const t=zS(e);return fS[t]=fS[t]||function(){let e="";for(let t=0;t<16;t+=1){const t=Math.floor(62*Math.random());e+=t<10?t:t>9&&t<36?String.fromCharCode(t+55):String.fromCharCode(t+61)}return e}(),fS[t]}var gS={requiredProps:[],optionalProps:["loginUri","crossSiteCookies"],getRestCallAuthParams:async function({hostConfig:e}){return{headers:{"X-Qlik-XrfKey":mS(e)},queryParams:{xrfkey:mS(e)},credentials:sS(e)}},getWebSocketAuthParams:async function({hostConfig:e}){return{queryParams:{xrfkey:mS(e),"qlik-csrf-token":await iS(e,!0)}}},handleAuthenticationError:async function({hostConfig:e}){return e.loginUri?(e.authRedirectUserConfirmation&&await e.authRedirectUserConfirmation(),globalThis.location.replace(e.loginUri.replace("{location}",encodeURIComponent(globalThis.location.href))),{preventDefault:!0}):{}}};const bS={};let yS=Promise.resolve(),vS=!1;function SS(e,t){bS[e.toLowerCase()]=t}async function wS(e){const t=YS(e),n=await xS(t);yS&&await yS;let r=function(e){return bS[e.toLowerCase()]}(n);if(r||(yS=(async()=>{r=await async function(e){const t=globalThis[e];if(t){let n;if(n="function"==typeof t?await t():t,n&&n.getRestCallAuthParams&&n.getWebSocketAuthParams&&n.handleAuthenticationError)return n;throw console.error("Not a valid auth module",n),new kS(e)}return Promise.resolve(void 0)}(n),r&&SS(n,r)})(),await yS),!r)throw new kS(n);return r.validateHostConfig?r.validateHostConfig({authType:n,...t}):function(e,{requiredProps:t,optionalProps:n}){const r=[];for(const n of t)e[n]||r.push(n);if(r.length>0)throw new CS(`missing required properties in host config; '${r.join("', '")}'`);const o=[...By,...t,...n],i=[];Object.keys(e).forEach((e=>{o.includes(e)||i.push(e)})),i.length>0&&console.warn(`WARNING: unknown properties in host config; '${i.join("', '")}'`)}({authType:n,...t},{requiredProps:r.requiredProps||[],optionalProps:r.optionalProps||[]}),r}async function xS(e){return e.authType?e.authType:e.apiKey?"apikey":e.accessCode?"anonymous":e.clientId?"oauth2":e.webIntegrationId?"cookie":e.reference?"reference":await jS(e)?"windowscookie":"cookie"}vS||(SS("apikey",Pv),SS("cookie",lS),SS("none",cS),SS("oauth2",hS),SS("anonymous",Tv),SS("windowscookie",gS),SS("reference",pS),vS=!0);var CS=class extends Error{constructor(e){super(`Invalid host config: ${e}`),this.name="InvalidHostConfigError"}},ES=class extends Error{constructor(...e){const t=e.map(((e,t)=>0===t?`"${e}"`:`or "${e}"`)).join(" ");super(`HostConfig is not properly configured. authType is expected to be ${t}`),this.name="UnexpectedAuthTypeError"}},kS=class extends Error{constructor(e){super(`Not a valid auth type: ${e}, valid auth types are; '${Object.keys(bS).filter((e=>"qmfeembedframerauthmodule"!==e.toLowerCase())).join("', '")}'`),this.name="InvalidAuthTypeError"}};function LS({title:e,detail:t,code:n,status:r}){return t?`${e} - ${t} (Status: ${r}, Code: ${n})`:`${e} (Status: ${r}, Code: ${n})`}var RS=class extends Error{errors;constructor(e){if("object"!=typeof e)return void super("Unknown error");const t=Array.isArray(e)?e:[e];super(t.map(LS).join(", ")),this.errors=t}};function qS(e){const t=Fy(e)||{};return t.host&&(t.host=zS(t)),Ny()&&zS(t)===window.location.origin&&delete t.host,t.authType&&Uy.includes(t.authType)&&delete t.authType,t}function IS(e,t){if("function"!=typeof t)return t}const _S=new Map;function OS(e,t){const n=t?.reference||null;if(n&&!_S.has(n))throw new CS(`Host config with reference "${n}" is not registered. Please register it before using it.`);_S.has(e)&&console.warn(`registerHostConfig: Host config with name "${e}" is already registered. Overwriting.`),_S.set(e,t)}function TS(e){return _S.get(e)}function PS(){return TS("default")||{}}globalThis.loggingOut=!1;let DS="";function AS({message:e}){e!==DS&&(DS=e,console.error(e))}function MS(e){return xS(e)}function NS(e){if(!globalThis.location?.origin)return!0;const t=YS(e);if(0===Object.keys(t).length)return!1;try{return new URL(zS(t)).origin!==globalThis.location.origin}catch{}return!1}async function jS(e){const t=YS(e);return"boolean"==typeof t.forceIsWindows?t.forceIsWindows:"cookie"!==t.authType&&("windowscookie"===t.authType||(await Ky({hostConfig:e})).isWindows)}function zS(e){const t=YS(e)?.host?.trim();let n;for(n=t?t.toLowerCase().startsWith("https://")||t.toLowerCase().startsWith("http://")?t:`https://${t}`:"";"/"===n[n.length-1];)n=n.substring(0,n.length-1);return n}function FS(e){const t=YS(e)?.host;let n;for(n=t?t.toLowerCase().startsWith("https://")||t.toLowerCase().startsWith("http://")?t:`https://${t}`:globalThis.location.origin;"/"===n[n.length-1];)n=n.substring(0,n.length-1);return n.replace(XS,"ws")}async function WS(e){const t=YS(e.hostConfig);try{const n=await wS(t);return await n.getWebSocketAuthParams({...e,hostConfig:t})}catch(e){throw(t.onAuthFailed||AS)(QS(e)),e}}async function BS(e){const t=YS(e.hostConfig);try{const n=await wS(t);return await(n.getWebResourceAuthParams?.({...e,hostConfig:t}))||{queryParams:{}}}catch(e){throw(t.onAuthFailed||AS)(QS(e)),e}}async function US(e){const t=YS(e.hostConfig),n=await wS(t),r=await n.handleAuthenticationError({...e,hostConfig:t}),o=e.canRetry&&r.retry,i=r.preventDefault;if(!o&&!i){const{status:n,errorBody:r}=e;(t.onAuthFailed||AS)(function({errorBody:e,status:t}){const n=e;if("object"==typeof n?.errors){return{message:new RS(n?.errors).message}}return{message:`HTTP ${t}`}}({status:n,errorBody:r}))}return r}async function HS(e){const t=YS(e.hostConfig);try{const n=await wS(t);return await n.getRestCallAuthParams({...e,hostConfig:t})}catch(e){throw(t.onAuthFailed||AS)(QS(e)),e}}function $S(e,t){SS(e,t)}function GS(e){!function(e){OS("default",e||{})}(e)}function KS(e,t){OS(e,t)}function VS(e){!function(e){_S.has(e)?_S.delete(e):console.warn(`unregisterHostConfig: Host config with name "${e}" not found.`)}(e)}function JS(e){return function(e){const t=zy(qS(YS(e)));return JSON.stringify(t,IS)}(e)}const ZS=()=>{globalThis.loggingOut=!0,globalThis.location.href="/logout"},XS=/^http/;function QS(e){return{message:e.message||"Unknown error"}}function YS(e){if(e?.reference){const t=TS(e.reference);if(!t)throw new CS(`Host config with name "${e.reference}" not found.`);return t}return e&&Object.keys(e).length>0?e:PS()}function ew(){return PS()}var tw={determineAuthType:MS,getDefaultHostConfig:ew,getRestCallAuthParams:HS,getWebResourceAuthParams:BS,getWebSocketAuthParams:WS,handleAuthenticationError:US,isHostCrossOrigin:NS,isWindows:jS,logout:ZS,registerAuthModule:$S,registerHostConfig:KS,serializeHostConfig:JS,setDefaultHostConfig:GS,toValidLocationUrl:zS,toValidWebsocketLocationUrl:FS,unregisterHostConfig:VS},nw=Object.freeze({__proto__:null,AuthorizationError:RS,InvalidAuthTypeError:kS,InvalidHostConfigError:CS,UnexpectedAuthTypeError:ES,default:tw,determineAuthType:MS,getAccessToken:async function(e){const t=await HS({method:"GET",...e}),n=t.headers?.Authorization;if(0===n.indexOf("Bearer "))return n.substring(7);throw new Error("Unknown format of authorization header returned by remote auth module")},getDefaultHostConfig:ew,getRestCallAuthParams:HS,getWebResourceAuthParams:BS,getWebSocketAuthParams:WS,handleAuthenticationError:US,isHostCrossOrigin:NS,isWindows:jS,logout:ZS,registerAuthModule:$S,registerHostConfig:KS,serializeHostConfig:JS,setDefaultHostConfig:GS,toValidLocationUrl:zS,toValidWebsocketLocationUrl:FS,unregisterHostConfig:VS});window.__qlikMainPrivateResolvers=window.__qlikMainPrivateResolvers||{},window.__qlikMainPrivateResolvers.mainUrlPromise=window.__qlikMainPrivateResolvers.mainUrlPromise||new Promise((e=>{window.__qlikMainPrivateResolvers.resolveMainJsUrl=t=>e(t)})),window.__qlikMainPrivateResolvers.qlikMainPromise=window.__qlikMainPrivateResolvers.qlikMainPromise||(async()=>{if(window.QlikMain)return window.QlikMain;const e=setTimeout((()=>{console.warn("Waiting for a host parameter pointing to a Qlik runtime system")}),5e3),t=await window.__qlikMainPrivateResolvers.mainUrlPromise;return clearTimeout(e),new Promise((e=>{if(window.QlikMain)e(window.QlikMain);else{const n=window.document.createElement("script");n.src=t,n.addEventListener("error",(()=>{console.error(`Qlik runtime system not found: ${t}`)})),n.addEventListener("load",(()=>{window.QlikMain&&e(window.QlikMain)})),window.document.head.appendChild(n)}}))})();var rw=Object.freeze({__proto__:null,importRuntimeModule:async function(e,t){return t?.runtimeModuleMocks?.[e]?t?.runtimeModuleMocks?.[e]:(function(e){const t=/\/+$/,n=function(e){const n=e?.embedRuntimeUrl||e?.url||e?.host;if(!n)return;let r;return r=n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")?n:`https://${n}`,r=r.replace(t,""),`${r}/qlik-embed/main.js`}(e);n&&window.__qlikMainPrivateResolvers.resolveMainJsUrl(n)}(t),async function(e){return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}}),ow=Object.freeze({__proto__:null});export{Ay as EnigmaMocker,My as __DO_NOT_USE__,Yp as conversion,wy as embed,Gg as onContextMenu,$g as onTakeSnapshot,Fg as useAction,Og as useApp,Ig as useAppLayout,Wg as useConstraints,Ng as useDeviceType,Sg as useEffect,kg as useElement,Ag as useEmbed,Vg as useEmitter,Tg as useGlobal,Hg as useImperativeHandle,Bg as useInteractionState,Jg as useKeyboard,Rg as useLayout,xg as useMemo,_g as useModel,jg as useNavigation,Ug as useOptions,zg as usePlugins,Eg as usePromise,Lg as useRect,Cg as useRef,Kg as useRenderState,Pg as useSelections,qg as useStaleLayout,vg as useState,Dg as useTheme,Mg as useTranslator};
|
|
17
17
|
//# sourceMappingURL=index.js.map
|